Skip to contentSkip to conversation

Dependencies of DRM_LOONGSON

PATCH Jean Delvare 2 participants 2 messages Nov 10, 2023 – Nov 12, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Jingfeng,

You recently added the loongson drm driver to the Linux kernel tree. Unlike all other loongson drivers, the drm driver doesn't have any dependency set on the platform or architecture, and is therefore proposed on all architectures. As far as I understand, this driver is only useful on Loongson-based MIPS systems, therefore I believe it should only be offered as an option on these systems.

Would the following change be OK with you?

From: Jean Delvare <[email protected]>
Subject: drm/loongson: Add platform dependency

Only offer the Loongson DRM driver as an option on platforms where it makes sense.

---
 drivers/gpu/drm/loongson/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/loongson/Kconfig +1 -0
@@ -3,6 +3,7 @@
 config DRM_LOONGSON
 	tristate "DRM support for Loongson Graphics"
 	depends on DRM && PCI && MMU
+	depends on MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST
 	select DRM_KMS_HELPER
 	select DRM_TTM
 	select I2C

Thanks,

Signature · 2 lines
Jean Delvare
SUSE L3 Support
#1 lore raw

Hi,

Quoted 8 lines · Jean Delvare

Hi Jingfeng,

You recently added the loongson drm driver to the Linux kernel tree. Unlike all other loongson drivers, the drm driver doesn't have any dependency set on the platform or architecture, and is therefore proposed on all architectures. As far as I understand, this driver is only useful on Loongson-based MIPS systems, therefore I believe it should only be offered as an option on these systems.

Yes, you are right for now. Thanks a lot for pointed out. But it is also usable on LoongArch[1] systems.

[1] https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html

Quoted 1 line

Would the following change be OK with you?

"depends on LOONGARCH || MIPS || COMPILE_TEST" should be enough, so please update the patch and resend, thanks a lot. :-)

Quoted 14 lines

From: Jean Delvare <[email protected]>
Subject: drm/loongson: Add platform dependency

Only offer the Loongson DRM driver as an option on platforms where it makes sense.

---
  drivers/gpu/drm/loongson/Kconfig |    1 +
  1 file changed, 1 insertion(+)

drivers/gpu/drm/loongson/Kconfig line 6

Quoted 4 lines
drivers/gpu/drm/loongson/Kconfig +1 -0
@@ -3,6 +3,7 @@
  config DRM_LOONGSON
  	tristate "DRM support for Loongson Graphics"
  	depends on DRM && PCI && MMU
+	depends on MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST

depends on LOONGARCH || MIPS || COMPILE_TEST

Quoted 5 lines
drivers/gpu/drm/loongson/Kconfig +0 -0
  	select DRM_KMS_HELPER
  	select DRM_TTM
  	select I2C

Thanks,