-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vc4 gpu in raspberrypi3-b arm64 doesn't show up #2315
Comments
Raspberry Pi do not currently support 64 bit operation on the Pi3. From a purely Linux point of view, its mostly works but there are incompatibilities when using the GPU side of things since the GPU is 32bit, and there are some structures that break when the host is 64bit. So you should not be expecting general 64 operation using the GPU acceleration to be fully working in the near future, RPF are not working on it, but there are third parties who are doing some work on it. |
thanks @JamesH65 . After trying in several days, here is my solution: when i2c-bcm2835 module is loaded (or compiled into zImage), set CONFIG_CMA_SIZE_MBYTES=128 in .config , vc4 gpu works, glxgears runs at 60+/s. mpv plays only a silent movie. |
You cannot really compare your laptop and it's GPU with the Raspberry Pi SoC and it's GPU - they are very different things! The VC4 GPU on the Pi is 32bit, and, to put it rather more simply than it actually is, requires 32bit data structures passed to it. However, when you use a 64 bit kernel, some structures are automatically converted to contain some 64bit values which breaks the interface. Those are the things that need fixing. Not impossible, just a lot of work, although a lot of it has already been done by community efforts. |
Oh!Why are you using bcm2837 device tree? |
@yfang1644 I inclined to close this issue, unless you have any other comments. We are not working on this, and are unlikely to do so in the nr future. |
Closing due to lack of activity. Please request to be reopened if you feel this issue is still relevant. |
I tried several versions(rpi-4.9.y, rpi-4.13.y and rpi-4.14.y) and always get these dmesg:
[ 2.669061] vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops): -517
[ 2.691932] vc4-drm soc:gpu: master bind failed: -517
The related settings in config.txt are:
gpu_mem=128
dispmanx_offline=1
gpu_mem_256=112
gpu_mem_512=160
cma_lwm=16device_tree=bcm2837-rpi-3-b.dtb
cma_hwm=32
cma_offline_start=16
dtoverlay=vc4-kms-v3d
device_tree=bcm2837-rpi-3-b.dtb
Some other options such as disable_overscan, hdmi_force_hotplug, etc. are tested
but have not good results ,I always get black screen.
Using bcm2710-rpi-3-b.dtb will bring up framebuffer, but
that is not I want. I need gpu works in arm64.
The text was updated successfully, but these errors were encountered: