Panfrost fixes for Linux 5.5-rc6
This patch won't be needed for 5.5.0 as it has now been upstreamed.
This patch is a rebase of panfrost/5.4-fixes onto 5.5-rc6.
If you don't want to recompile the whole kernel, you can recompile just the panfrost module:
Extract the kernel sources for the running kernel
Download this patch
Apply the patch, either with
patch -p1 -i
zcat /proc/config.gz >.config
Copy the module somewhere:
sudo cp drivers/gpu/drm/panfrost/panfrost.ko /opt/panfrost.ko
To switch to the new module, stop any X or Wayland sessions and run:
sudo rmmod panfrost; sudo insmod /opt/panfrost.ko