Skip to contentSkip to conversation

drm/exynos: IOMMU support should not be selectable by user

PATCH Applied Marek Szyprowski 3 participants 4 messages Jan 20, 2015 – Feb 4, 2015

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

PATCH 1/1 drm/exynos: IOMMU support should not be selectable by user

If system provides IOMMU feature, Exynos DRM should use it by default, because the Exynos DRM subdrivers don't work correctly when Exynos IOMMU driver has been enabled and no IOMMU support has been compiled into Exynos DRM driver.

---
 drivers/gpu/drm/exynos/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/exynos/Kconfig +2 -3
index 7f9f6f9e9b7e..39fe490efcd4 100644
@@ -13,10 +13,9 @@ config DRM_EXYNOS
 	  If M is selected the module will be called exynosdrm.
 
 config DRM_EXYNOS_IOMMU
-	bool "EXYNOS DRM IOMMU Support"
+	bool
 	depends on DRM_EXYNOS && EXYNOS_IOMMU && ARM_DMA_USE_IOMMU
-	help
-	  Choose this option if you want to use IOMMU feature for DRM.
+	default y
 
 config DRM_EXYNOS_DMABUF
 	bool "EXYNOS DRM DMABUF"
Signature · 1 line
1.9.2
#1 lore raw

Hello!

Quoted 18 lines · Marek Szyprowski

If system provides IOMMU feature, Exynos DRM should use it by default, because the Exynos DRM subdrivers don't work correctly when Exynos IOMMU driver has been enabled and no IOMMU support has been compiled into Exynos DRM driver.

---
 drivers/gpu/drm/exynos/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/exynos/Kconfig +0 -0
index 7f9f6f9e9b7e..39fe490efcd4 100644
@@ -13,10 +13,9 @@ config DRM_EXYNOS
 	  If M is selected the module will be called exynosdrm.
 

drivers/gpu/drm/exynos/Kconfig config DRM_EXYNOS · line 21

Quoted 10 lines
drivers/gpu/drm/exynos/Kconfig +2 -3
 config DRM_EXYNOS_IOMMU
-	bool "EXYNOS DRM IOMMU Support"
+	bool
 	depends on DRM_EXYNOS && EXYNOS_IOMMU && ARM_DMA_USE_IOMMU
-	help
-	  Choose this option if you want to use IOMMU feature for DRM.
+	default y
 
 config DRM_EXYNOS_DMABUF
 	bool "EXYNOS DRM DMABUF"

I tested Exynos DRM with the IOMMU enabled today and couldn't find any of the previous issues.

A few things that I noticed though:

1) Without the IOMMU I get these powerdomain infos in the kernel logs:
"lcd0-power-domain: Power-on latency exceeded, new value 416167 ns" "tv-power-domain: Power-on latency exceeded, new value 456125 ns" These don't appear with the IOMMU, so I was wondering if the powerdomains are now staying on the whole time?

2) With Exynos DRM now having a dependency on IOMMU (when it is enabled), I was wondering if anything needs to be done for the old 's5p-tv' driver to work properly now?

With best wishes,
Tobias

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

#2 lore raw

Hello,

Quoted 26 lines · Tobias Jakobi
Quoted 25 lines · Marek Szyprowski

If system provides IOMMU feature, Exynos DRM should use it by default, because the Exynos DRM subdrivers don't work correctly when Exynos IOMMU driver has been enabled and no IOMMU support has been compiled into Exynos DRM driver.

---
  drivers/gpu/drm/exynos/Kconfig | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/exynos/Kconfig +2 -3
index 7f9f6f9e9b7e..39fe490efcd4 100644
@@ -13,10 +13,9 @@ config DRM_EXYNOS
  	  If M is selected the module will be called exynosdrm.
 
  config DRM_EXYNOS_IOMMU
-	bool "EXYNOS DRM IOMMU Support"
+	bool
  	depends on DRM_EXYNOS && EXYNOS_IOMMU && ARM_DMA_USE_IOMMU
-	help
-	  Choose this option if you want to use IOMMU feature for DRM.
+	default y
 
Quoted 5 lines

drivers/gpu/drm/exynos/Kconfig config DRM_EXYNOS · line 21

Quoted 3 lines
drivers/gpu/drm/exynos/Kconfig +0 -0
  config DRM_EXYNOS_DMABUF
  	bool "EXYNOS DRM DMABUF"

I tested Exynos DRM with the IOMMU enabled today and couldn't find any of the previous issues.

Thanks for testing!

Quoted 7 lines

A few things that I noticed though:

1) Without the IOMMU I get these powerdomain infos in the kernel logs:
"lcd0-power-domain: Power-on latency exceeded, new value 416167 ns" "tv-power-domain: Power-on latency exceeded, new value 456125 ns" These don't appear with the IOMMU, so I was wondering if the powerdomains are now staying on the whole time?

Yes, when IOMMU is enabled, it keeps power domains enabled all the time. Proper implementation of runtime power management is on my todo list and needs some more discussions about the way it will be integrated with power domain code. For the initial version I just wanted to have a working IOMMU driver, aggressive runtime pm will be implemented later.

Quoted 3 lines

2) With Exynos DRM now having a dependency on IOMMU (when it is enabled), I was wondering if anything needs to be done for the old 's5p-tv' driver to work properly now?

The old driver should work fine with and without IOMMU, because it doesn't do any fancy buffer management like Exynos DRM drivers.

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland
maintainer Applied
#3 lore raw
In reply to Marek Szyprowski
Quoted 4 lines · Marek Szyprowski

If system provides IOMMU feature, Exynos DRM should use it by default, because the Exynos DRM subdrivers don't work correctly when Exynos IOMMU driver has been enabled and no IOMMU support has been compiled into Exynos DRM driver.

Applied.

Thanks,
Inki Dae

Quoted 24 lines
---
 drivers/gpu/drm/exynos/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/exynos/Kconfig +2 -3
index 7f9f6f9e9b7e..39fe490efcd4 100644
@@ -13,10 +13,9 @@ config DRM_EXYNOS
 	  If M is selected the module will be called exynosdrm.
 
 config DRM_EXYNOS_IOMMU
-	bool "EXYNOS DRM IOMMU Support"
+	bool
 	depends on DRM_EXYNOS && EXYNOS_IOMMU && ARM_DMA_USE_IOMMU
-	help
-	  Choose this option if you want to use IOMMU feature for DRM.
+	default y
 
 config DRM_EXYNOS_DMABUF
 	bool "EXYNOS DRM DMABUF"