Skip to contentSkip to conversation

drm/rcar-du: Add missing dependency on CMA

PATCH In review Mark Brown 3 participants 4 messages Jul 10, 2013

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 drm/rcar-du: Add missing dependency on CMA

From: Mark Brown <[email protected]>

The driver uses CMA APIs so won't link if CMA is not being built.

---
 drivers/gpu/drm/rcar-du/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/rcar-du/Kconfig +1 -1
index 72887df..e75575a 100644
@@ -1,6 +1,6 @@
 config DRM_RCAR_DU
 	tristate "DRM Support for R-Car Display Unit"
-	depends on DRM && ARM
+	depends on DRM && ARM && CMA
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_GEM_CMA_HELPER
Signature · 1 line
1.8.3.2
#1 lore raw

Hi Mark,

Thanks for the patch.

Quoted 14 lines · On Wednesday 10 July 2013 11:52:14 Mark Brown wrote:

From: Mark Brown <[email protected]>

The driver uses CMA APIs so won't link if CMA is not being built.

---
 drivers/gpu/drm/rcar-du/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/rcar-du/Kconfig index 72887df..e75575a 100644

drivers/gpu/drm/rcar-du/Kconfig line 6

Quoted 7 lines
drivers/gpu/drm/rcar-du/Kconfig +1 -1
@@ -1,6 +1,6 @@
 config DRM_RCAR_DU
 	tristate "DRM Support for R-Car Display Unit"
-	depends on DRM && ARM
+	depends on DRM && ARM && CMA
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_GEM_CMA_HELPER

Shouldn't we instead make DRM_GEM_CMA_HELPER depend on CMA ?

Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw
Quoted 11 lines · Laurent Pinchart

drivers/gpu/drm/rcar-du/Kconfig line 6

Quoted 7 lines · On Wednesday 10 July 2013 11:52:14 Mark Brown wrote:

config DRM_RCAR_DU

drivers/gpu/drm/rcar-du/Kconfig +1 -1
 	tristate "DRM Support for R-Car Display Unit"
-	depends on DRM && ARM
+	depends on DRM && ARM && CMA
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_GEM_CMA_HELPER

Shouldn't we instead make DRM_GEM_CMA_HELPER depend on CMA ?

Sadly select doesn't do the right thing with dependencies - it just ignores them.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 9 lines · On Wednesday 10 July 2013 12:07:24 Mark Brown wrote:
Quoted 8 lines · Laurent Pinchart
Quoted 7 lines · On Wednesday 10 July 2013 11:52:14 Mark Brown wrote:

config DRM_RCAR_DU

drivers/gpu/drm/rcar-du/Kconfig +1 -1
 	tristate "DRM Support for R-Car Display Unit"
 
-	depends on DRM && ARM
+	depends on DRM && ARM && CMA
Quoted 8 lines
Quoted 5 lines

drivers/gpu/drm/rcar-du/Kconfig line 6

Quoted 3 lines
drivers/gpu/drm/rcar-du/Kconfig +0 -0
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_GEM_CMA_HELPER

Shouldn't we instead make DRM_GEM_CMA_HELPER depend on CMA ?

Sadly select doesn't do the right thing with dependencies - it just ignores them.

OK, my bad.

On the other hand, thinking a bit more about this, the DU driver doesn't use the CMA API directly, as there's no CMA API exposed to drivers :-) I've successfully built the driver with CONFIG_CMA disabled. Could you please share the .config that resulted in a link error ?

Signature · 3 lines
Regards,

Laurent Pinchart

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel