* [PATCH] drm/exynos: fix to detach device of iommu
@ 2015-10-02 0:30 Joonyoung Shim
2015-10-13 5:10 ` Inki Dae
0 siblings, 1 reply; 2+ messages in thread
From: Joonyoung Shim @ 2015-10-02 0:30 UTC (permalink / raw)
To: dri-devel; +Cc: stable, inki.dae, sw0312.kim, m.szyprowski, jy0922.shim
The arm_iommu_detach_device() is a function to detach device of iommu
attached by arm_iommu_attach_device(). The exynos-drm uses
arm_iommu_attach_device() so it should use arm_iommu_detach_device() to
detach device of iommu, not iommu_detach_device().
The drm_release_iommu_mapping() is a function to release mapping of
iommu created by arm_iommu_create_mapping(). It is called by
exynos_drm_unload() so shouldn't be called by drm_iommu_detach_device().
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: <stable@vger.kernel.org> # v3.8+
---
drivers/gpu/drm/exynos/exynos_drm_iommu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_iommu.c b/drivers/gpu/drm/exynos/exynos_drm_iommu.c
index 055e8ec..d73b9ad 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_iommu.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_iommu.c
@@ -139,6 +139,5 @@ void drm_iommu_detach_device(struct drm_device *drm_dev,
if (!mapping || !mapping->domain)
return;
- iommu_detach_device(mapping->domain, subdrv_dev);
- drm_release_iommu_mapping(drm_dev);
+ arm_iommu_detach_device(subdrv_dev);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/exynos: fix to detach device of iommu
2015-10-02 0:30 [PATCH] drm/exynos: fix to detach device of iommu Joonyoung Shim
@ 2015-10-13 5:10 ` Inki Dae
0 siblings, 0 replies; 2+ messages in thread
From: Inki Dae @ 2015-10-13 5:10 UTC (permalink / raw)
To: Joonyoung Shim, dri-devel; +Cc: stable, sw0312.kim, m.szyprowski
Merged.
Thanks,
Inki Dae
2015년 10월 02일 09:30에 Joonyoung Shim 이(가) 쓴 글:
> The arm_iommu_detach_device() is a function to detach device of iommu
> attached by arm_iommu_attach_device(). The exynos-drm uses
> arm_iommu_attach_device() so it should use arm_iommu_detach_device() to
> detach device of iommu, not iommu_detach_device().
>
> The drm_release_iommu_mapping() is a function to release mapping of
> iommu created by arm_iommu_create_mapping(). It is called by
> exynos_drm_unload() so shouldn't be called by drm_iommu_detach_device().
>
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> Cc: <stable@vger.kernel.org> # v3.8+
> ---
> drivers/gpu/drm/exynos/exynos_drm_iommu.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_iommu.c b/drivers/gpu/drm/exynos/exynos_drm_iommu.c
> index 055e8ec..d73b9ad 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_iommu.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_iommu.c
> @@ -139,6 +139,5 @@ void drm_iommu_detach_device(struct drm_device *drm_dev,
> if (!mapping || !mapping->domain)
> return;
>
> - iommu_detach_device(mapping->domain, subdrv_dev);
> - drm_release_iommu_mapping(drm_dev);
> + arm_iommu_detach_device(subdrv_dev);
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-13 5:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02 0:30 [PATCH] drm/exynos: fix to detach device of iommu Joonyoung Shim
2015-10-13 5:10 ` Inki Dae
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).