From: Mark Yao Date: Wed, 18 Jan 2017 04:58:31 +0000 (+0800) Subject: drm/rockchip: logo: no need IOMMU_WRITE for logo X-Git-Tag: firefly_0821_release~729 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c68388c460e23ff0705e963a78e1fb25d3759376;p=firefly-linux-kernel-4.4.55.git drm/rockchip: logo: no need IOMMU_WRITE for logo Change-Id: Id047a37db7ffa865403b99429e8cdbd37a588e59 Signed-off-by: Mark Yao --- diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index 4c58306c606f..2da8f030fcd7 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c @@ -149,8 +149,6 @@ static int init_loader_memory(struct drm_device *drm_dev) } if (private->domain) { - int prot = IOMMU_READ | IOMMU_WRITE; - memset(&logo->mm, 0, sizeof(logo->mm)); ret = drm_mm_insert_node_generic(&private->mm, &logo->mm, size, PAGE_SIZE, @@ -164,7 +162,7 @@ static int init_loader_memory(struct drm_device *drm_dev) logo->iommu_map_size = iommu_map_sg(private->domain, logo->dma_addr, sgt->sgl, - sgt->nents, prot); + sgt->nents, IOMMU_READ); if (logo->iommu_map_size < size) { DRM_ERROR("failed to map buffer"); ret = -ENOMEM;