projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
112d2aa
)
drm/rockchip: logo: no need IOMMU_WRITE for logo
author
Mark Yao
<mark.yao@rock-chips.com>
Wed, 18 Jan 2017 04:58:31 +0000
(12:58 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Wed, 18 Jan 2017 07:48:16 +0000
(15:48 +0800)
Change-Id: Id047a37db7ffa865403b99429e8cdbd37a588e59
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index 4c58306c606f68d8d7dc7c9683a51c7268b0d450..2da8f030fcd79a2d72c1a39f473abfddce8093b3 100644
(file)
--- 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;