loongarchlinux / extra

extra repo
https://loongarchlinux.org/packages/?repo=extra
4 stars 7 forks source link

xorg-server: add loongson GPU fixes for the modesetting driver #3

Closed cl91 closed 9 months ago

cl91 commented 9 months ago

This commit fixes the xf86-video-modesetting driver for the GPU device in the Loongson 7A2000 bridge chip. There are two fixes:

  1. Enable udev_kms when configuring the package. This is needed so the platform bus support is compiled for the modesetting driver.
  2. Patch the modesetting driver to accept the PCI device class 0x4 subclass 0x0 (Multimedia Video Controllers). This is because the GPUs in LS7A2000 identifies as a Multimedia Video Controller.

With these changes the modesetting driver works flawlessly against both the upstream loongson KMS driver as well as the gsgpu kernel driver that I maintain.

yetist commented 9 months ago

LGTM, thank you.