Repository navigation
Closed
Description
Raspberrypi 8G
gcc version 10.2.0
Compiled with "make bcm2711_defconfig" then compiled kernel
I am unable to boot into lightdm greeter (I also tried sddm greeter) using "dtoverlay=vc4-fkms-v3d". I am able to boot to the desktop with "dtoverlay=vc4-kms-v3d". I have no issue booting with kernel's 5.10 or 5.12. I get an Internal oops when using "dtoverlay=vc4-fkms-v3d" with kernel 5.13 aarch64:
[ 6.814817] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[ 6.838211] checking generic (3e2fe000 7f8000) vs hw (0 ffffffffffffffff)
[ 6.838247] fb0: switching to vc4drmfb from simple
[ 6.844506] Console: switching to colour dummy device 80x25
[ 6.845388] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[ 6.845435] Mem abort info:
[ 6.845453] ESR = 0x96000005
[ 6.845473] EC = 0x25: DABT (current EL), IL = 32 bits
[ 6.845496] SET = 0, FnV = 0
[ 6.845515] EA = 0, S1PTW = 0
[ 6.845533] Data abort info:
[ 6.845549] ISV = 0, ISS = 0x00000005
[ 6.845568] CM = 0, WnR = 0
[ 6.845586] user pgtable: 4k pages, 39-bit VAs, pgdp=000000010a975000
[ 6.845611] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[ 6.845668] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[ 6.845689] Modules linked in: brcmfmac brcmutil bcm2835_v4l2(C) vc4(+) bcm2835_codec(C) cec v3d sha256_generic bcm2835_isp(C) drm_kms_helper bcm2835_mmal_vchiq(C) gpu_sched videobuf2_vmalloc cfg80211 v4l2_mem2mem rfkill videobuf2_dma_contig videobuf2_memops snd_bcm2835(C) videobuf2_v4l2 videobuf2_common snd_soc_core raspberrypi_hwmon snd_compress snd_pcm_dmaengine snd_pcm vc_sm_cma(C) snd_timer videodev snd mc syscopyarea sysfillrect sysimgblt fb_sys_fops rpivid_mem nvmem_rmem uio_pdrv_genirq uio sch_fq_codel uinput crypto_user drm fuse drm_panel_orientation_quirks backlight ip_tables x_tables ipv6
[ 6.846003] CPU: 2 PID: 197 Comm: systemd-udevd Tainted: G C 5.13.0-1-v8 #1
[ 6.846029] Hardware name: Raspberry Pi 4 Model B Rev 1.4 (DT)
[ 6.846046] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 6.846068] pc : vc4_debugfs_init+0x34/0xac [vc4]
[ 6.846180] lr : drm_debugfs_init+0x10c/0x140 [drm]
[ 6.846425] sp : ffffffc0128d3690
[ 6.846438] x29: ffffffc0128d3690 x28: ffffffc010039840 x27: 0000000000000000
[ 6.846473] x26: ffffffc01143c728 x25: ffffff810dca0680 x24: ffffffc0092df148
[ 6.846506] x23: 0000000000000001 x22: ffffff8100e60cc0 x21: ffffff810dcd4000
[ 6.846537] x20: ffffff810dca0780 x19: ffffff810dca0780 x18: 0000000000000020
[ 6.846568] x17: 0000000000000001 x16: 0000000000000001 x15: ffffff81034ba378
[ 6.846597] x14: ffffffffffffffff x13: ffffffc0928d3707 x12: 0000000000000000
[ 6.846627] x11: 0101010101010101 x10: 0000000000000000 x9 : ffffffc008c7dd3c
[ 6.846658] x8 : 7f7f7f7f7f7f7f7f x7 : ffffff81034b9e40 x6 : 0000000000000000
[ 6.846687] x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffffff810dca07b0
[ 6.846716] x2 : 0000000000000000 x1 : ffffffc0092ebb38 x0 : 0000000000000000
[ 6.846747] Call trace:
[ 6.846759] vc4_debugfs_init+0x34/0xac [vc4]
[ 6.846853] drm_debugfs_init+0x10c/0x140 [drm]
[ 6.847075] drm_minor_register+0x64/0x120 [drm]
[ 6.847292] drm_dev_register+0xb4/0x220 [drm]
[ 6.847505] vc4_drm_bind+0x1d0/0x210 [vc4]
[ 6.847591] try_to_bring_up_master+0x16c/0x1d4
[ 6.847619] component_master_add_with_match+0xbc/0x104
[ 6.847640] vc4_platform_drm_probe+0xd4/0x110 [vc4]
[ 6.847726] platform_probe+0x74/0xe4
[ 6.847747] really_probe+0xec/0x50c
[ 6.847765] driver_probe_device+0x6c/0xd0
[ 6.847782] device_driver_attach+0xcc/0xd4
[ 6.847800] __driver_attach+0x9c/0x13c
[ 6.847817] bus_for_each_dev+0x7c/0xd0
[ 6.847841] driver_attach+0x30/0x40
[ 6.847857] bus_add_driver+0x114/0x200
[ 6.847878] driver_register+0x84/0x140
[ 6.847895] __platform_driver_register+0x34/0x40
[ 6.847915] vc4_drm_register+0x54/0x1000 [vc4]
[ 6.848003] do_one_initcall+0x54/0x2c0
[ 6.848025] do_init_module+0x60/0x29c
[ 6.848048] load_module+0x1fd4/0x23e0
[ 6.848070] __do_sys_finit_module+0xb8/0x100
[ 6.848092] __arm64_sys_finit_module+0x2c/0x40
[ 6.848115] invoke_syscall+0x50/0x120
[ 6.848138] el0_svc_common.constprop.0+0xf4/0x104
[ 6.848160] do_el0_svc+0x30/0x9c
[ 6.848181] el0_svc+0x2c/0x54
[ 6.848204] el0_sync_handler+0x1a4/0x1b0
[ 6.848226] el0_sync+0x198/0x1c0
[ 6.848250] Code: 912ce021 f90013f5 f9400815 f9431ea0 (f9400000)
[ 6.848270] ---[ end trace 7bf4541b6842b390 ]---
Metadata
Metadata
Assignees
Labels
No labels
Activity
popcornmix commentedon Jul 8, 2021
Be ware that 5.13 kernel is very new and has a number of conflicts with kms drivers (as more patches appear upstream in slightly different forms), so issues are not unexpected.
I do have a local tree that replaces more downstream patches with upstream or pending (i.e. in mailing lists discussion), and that is booting with fkms for me. I'll push it later and you can see if it helps.
Dark-Sky commentedon Jul 8, 2021
Thanks! I will be glad to test it.
pelwell commentedon Jul 8, 2021
I've just pushed some updates to rpi-5.13.y that should bring it in line with rpi-5.10.y.
Dark-Sky commentedon Jul 8, 2021
I do not know if you meant this as a FYI but I compiled it:
The internal oops is now gone
I lost the ability to boot to the Desktop with "dtoverlay=vc4-fkms-v3d"
The only way I can now boot to the Desktop is enable either one of the "dtoverlay=vc4-" and install fbturbo. (llvmpipe rendering)
I do not see anything in the logs now except the lightdm-greeter failing to load with either of the "dtoverlay=vc4's" enabled and fbturbo not installed when I view them via ssh.
pelwell commentedon Jul 9, 2021
Linux raspberrypi 5.13.0-v8+ #312 SMP PREEMPT Fri Jul 9 09:11:43 BST 2021 aarch64 GNU/Linuxworks for me, with eithervc4-kms-v3dorvc4-fkms-v3d(32-bit userland).Dark-Sky commentedon Jul 9, 2021
Will not work here with vc4-kms-v3d or vc4-fkms-v3d without fbtubo installed to get V3D rendering in glxgears. The boot process when it tries to load a Greeter to log in stops. There is no issue when I load either the latest 5.10 or 5.12 kernels.
Although it is a manjaro-arm distro our mirrors sync with arch-arm mirrors so the DE packages are the same as arch-arm's. The current 5.13 kernel I am testing the .config was generated with your own "bcm2711_defconfig".
If you need an alternate 64bit OS image one can be downloaded here. (I have not tested the Pi OS 64bit image):
On the first boot it will boot into the desktop to a Calamares Setup GUI and it will take a while for the Desktop to show up (@ 1m after spinning circle goes away) as it is setting it's self up.
https://github-releases.githubusercontent.com/339391081/8ba3f680-dcb2-11eb-9dd7-e7aaa43c3d60?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210709%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210709T131836Z&X-Amz-Expires=300&X-Amz-Signature=7adb03e9832f1dfa9b79880979d1c510b2e9ebfffcf1c3ce2e715115c20d758e&X-Amz-SignedHeaders=host&actor_id=22453495&key_id=0&repo_id=339391081&response-content-disposition=attachment%3B%20filename%3DManjaro-ARM-xfce-rpi4-21.07.img.xz&response-content-type=application%2Foctet-stream
Snapshot of where I replaced the failing 5.13 kernel with the latest 5.10 kernel and rebooted using the same config's and it works with out any issues:
Dark-Sky commentedon Jul 10, 2021
I installed sddm today and got more than messages of it failing other than lightdm just saying "failed" in journalctl with kernel 5.13 trying to boot with glamor X acceleration enabled on V3D 4.2:
Full xorg log with it failing:
When I install kernel 5.10.48 and reboot here is full xorg log showing it booted properly up to where it shows where glamoregl got initialized:
I noticed with the 5.10 kernel when loading properly in the xorg log it adds /dev/dri/card0 & /dev/dri/card1 and uses drv /dev/dri/card0 but with the failed 5.13 kernel /dev/dri/card1 does not exist:
Dark-Sky commentedon Jul 16, 2021
There seems to be some progress today I am able to boot with V3D with kms with commit here:
0956b5e
With fkms It will boot up to a certain point then the screen goes solid black. I can not get to the pi4 via ssh to see the logs.
Booting now with kms V3D:
jameshilliard commentedon Jul 23, 2021
So while trying to debug a wpewebkit crash on 2697f74 I ran into this which looks to be potentially related:
Dark-Sky commentedon Jul 23, 2021
I think so also. My issues started when 5.13 came out and see similar issues with 5.14. Today I compiled the new 5.10.52 and looks like the issues has crept into it now trying to boot with v3d rendering and kms; it just boots so far and all text disappears and locks up with a black screen. The last few previous 5.10 and 5.12 kernels seemed to have changed and starting to get lockups with videos on youtube in firefox and some high intensity video emulator programs being reported on our forums.
popcornmix commentedon Jul 23, 2021
Looks like this issue: #4465 (comment)
We switched to upstream forms of drm commits which seems to have introduced this issue to 5.10.
mkreisl commentedon Jul 26, 2021
I have only created a 32bit kernel here yesterday, but have similar problems, so I report here
Needless to say that it works fine up to the 5.12 kernel
when I remove these two lines
the kernel OOPs does not come. But then of course Kodi does not start
Somehow it gets worse from kernel version to kernel version. Under progress I understand something else than if the things run from version to version worse and worse.
Sorry, but I had to say that. It seems to me that everything is systematically broken here (and of course seen from Kodi, but this is different thing)
pelwell commentedon Jul 26, 2021
The vc4 driver is undergoing rapid change at the moment. We're heading in the right direction but there are bumps along the way, and users choosing to take the path less travelled are more likely to encounter potholes.
mkreisl commentedon Jul 26, 2021
These are not just bumps, but huge potholes, as it seems to me. And quite a few will probably only be closed again in the never-never-ending day, see for example #4112
That's what I meant, everything I use (basically just a well working Kodi) is getting successively worse. and the path I'm on seems to be going nowhere.
mkreisl commentedon Aug 26, 2021
2 months have now passed and still no progress can be seen. Too bad about the time 😞
popcornmix commentedon Aug 26, 2021
The issue has been worked around on 5.10 kernel (#4478).
We're waiting for a fix to the upstream code for newer kernels (which should be considered experimental - we're only heavily testing and shipping 5.10).
Dark-Sky commentedon Aug 26, 2021
I saw that with 5.10 and appreciate it. I for one will patiently wait for the fix with the newer kernels and appreciate all you do.
Dark-Sky commentedon Sep 22, 2021
@popcornmix I now have fkms with V3D rendering on the latest 5.14 and 5.15 kernels. Thanks....
I have not tested this 5.13 kernel lately as it is not much interest to me now since it is EOL.
I will leave it up to you to close this issue.
popcornmix commentedon Sep 22, 2021
Good to hear.
mkreisl commentedon Sep 23, 2021
I read this with pleasure. however, the frustration came back promptly after I did a quick test with kernel 5.14.4.
Kodi starts normally and surface also looks in order
But when playing HEVC videos there is always a crash. AVC videos (h.264) on the other hand are played without errors.
At least a progress
Dark-Sky commentedon Sep 23, 2021
Although a little off topic of this thread and I do not stray away from the 5.10 kernel for kodi I tested it and can comfirm HEVC video crashes big time with the 5.14.4 kernel using fkms. I also can not get kodi with kms to boot up completly with the 5.14.4 kernel. It crashes towards the tail end of the boot. My kernel and OS is 64bit.
I am guessing they probably know about it but here are the logs:
journalctl:
https://drive.google.com/file/d/15F7uEgVN5K0VDlTY3Zsl5E_p0PF1NwLR/view?usp=sharing
kodi crash log:
https://drive.google.com/file/d/1mp1KQdtcTu4AIjTJqvy5rT_zZRYMwchN/view?usp=sharing
With the latest kernel 5.10.63 and firmware Kodi is kicking butt with HEVC with fkms. I can not get kodi to boot all the way either with 5.10.63 and kms though.
The screen shot will not show the video playing because it is not playing in a DE but shows the window dressings:
mkreisl commentedon Oct 9, 2021
Just wanted to report that with the kernel 5.14.9 built today the playback of HEVC videos works again (Kodi v20a1 with current rpi-ffmpeg branch from jc-kynesim)