From 89211fb8a787b9fdf0f6b79549b36577817dc8df Mon Sep 17 00:00:00 2001 From: Jacob Chen Date: Fri, 10 Mar 2017 15:04:59 +0800 Subject: [PATCH] drm/rockchip: rga: don't flush buffer context to save time Change-Id: Ie4a1618eabdbb9ebf5ad0b73b8acc9df884a81bb Signed-off-by: Jacob Chen --- drivers/gpu/drm/rockchip/rockchip_drm_rga.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_rga.c b/drivers/gpu/drm/rockchip/rockchip_drm_rga.c index 441194867fa6..139bf94a4fb0 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_rga.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_rga.c @@ -289,9 +289,7 @@ rga_gem_buf_to_pages(struct rockchip_rga *rga, void **mmu_pages, int fd) for (p = 0; p < len; p++) { dma_addr_t phys = address + (p << PAGE_SHIFT); - void *virt = phys_to_virt(phys); - rga_dma_flush_range(virt, 4 * 1024); pages[mapped_size + p] = phys; } -- 2.34.1