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
Exclamation 'failed to open panfrost' after system update using archarm Puckla 1 837 03-01-2024, 06:46 PM
Last Post: Puckla
  Manjaro - HIbernate - brcmfmac clk issue pompeyPinePro 1 1,244 08-18-2023, 02:06 AM
Last Post: juliamenendez
  Issue with booting Manjaro from encrypted NVMe drive on pbp Cs137 1 1,384 08-18-2023, 01:58 AM
Last Post: juliamenendez
  Unable to install Debian Bullseye because of missing wifi firmware Pino64 7 5,451 07-15-2023, 02:58 PM
Last Post: u974615
  kernel module that supports usb-c hdmi alexandre 16 17,216 05-14-2023, 09:58 PM
Last Post: rathofkhan3
  Manjaro update: nerd-font-terminus dependency issue Vinay 3 1,923 05-10-2023, 04:51 AM
Last Post: Vinay
  Missing A Few Programs on PostmarketOS on PB Pro publiclewdness 0 789 03-06-2023, 11:33 PM
Last Post: publiclewdness
  Archlinux - missing firmware for wifi adapter RudderDuck 9 6,470 11-07-2022, 04:56 PM
Last Post: wgahnagl
  Manjaro update: wxgtk dependency issue Vinay 5 3,515 09-09-2022, 12:03 PM
Last Post: Vinay
  [Panfrost] now support stable OpenGL ES 3.1 rimaille 0 2,298 06-10-2021, 11:23 PM
Last Post: rimaille

Forum Jump:


Users browsing this thread: 2 Guest(s)