Solution for issue with 'panfrost' module not initializing due to missing dependency
#1
I have noticed that there have been reports of not getting 'panfrost' graphics acceleration working properly. I have problems myself recently with the installation of vanilla Debian Bullseye. I found that there is a hidden dependency on a kernel module that is not yet loaded during early boot, and will (probably by coincidence) be loaded late. Too late for 'panfrost' to initialize before Xorg starts. Consequently, Xorg starts with 'LLVMpipe' DRI display support. Basically, no graphics support.

In the case of Debian, (configuration works slightly differently in other distributions) I fixed this with a 'modprobe.d' config file:

Code:
softdep panfrost pre: governor_simpleondemand
Then run 'update-initramfs -u' to make the modprobe-config part of the early boot process. ('governor_simpleondemand' seems to be part of 'gpu_sched' which 'panfrost' depends on, but it won't pull in 'governor_simpleondemand' by default.)

I have not saved a copy of the error message. However, `dmesg` would repeatedly try to load 'panfrost' in the first few seconds of booting the linux kernel, and fail.

I would be able to get accelerated support if I manually remove and reload the 'panfrost' module, then restart the desktop manager (`lightdm` in my case).
Code:
glxinfo
would show 'LLVMpipe' support on boot. Then, after reloading and restarting desktop manager, it would show "Panfrost" support correctly.

Upon searching the web, I found some occurrences of these issues in various distros but without clear solutions. For me, this works as a solution, so I wanted to share it.

This solution works for me on Debian's 5.10 and 5.14 kernels.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  kernel module that supports usb-c hdmi alexandre 13 5,947 06-26-2022, 02:22 AM
Last Post: alexandre
  Unable to install Debian Bullseye because of missing wifi firmware Pino64 2 422 05-27-2022, 11:00 PM
Last Post: Pino64
  [Panfrost] now support stable OpenGL ES 3.1 rimaille 0 1,128 06-10-2021, 11:23 PM
Last Post: rimaille
  Battery gauge issue (mainline kernel) lfourquaux 4 2,647 05-22-2021, 02:43 PM
Last Post: jiyong
  Keyboard issue: Debian PineSupporter 8 4,321 02-01-2021, 09:57 PM
Last Post: PineSupporter
  Sporadic Wifi initialization issue xyzzy 0 1,179 11-20-2020, 03:16 PM
Last Post: xyzzy
  KSysgGuard missing information Perl6_user 0 1,039 10-07-2020, 01:55 PM
Last Post: Perl6_user
  Printer driver lib32-glibc dependency definitiv. 4 3,587 07-05-2020, 08:04 AM
Last Post: wdt
  No EDID data for built in screen, PHY missing? bus-error 0 1,587 06-07-2020, 12:23 PM
Last Post: bus-error
  Manjaro 20.04 KDE update issue mlentink 5 4,521 06-06-2020, 08:49 PM
Last Post: erock22

Forum Jump:


Users browsing this thread: 1 Guest(s)