From: Jacob Chen Date: Fri, 10 Mar 2017 07:04:59 +0000 (+0800) Subject: drm/rockchip: rga: don't flush buffer context X-Git-Tag: firefly_0821_release~349 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=89211fb8a787b9fdf0f6b79549b36577817dc8df;p=firefly-linux-kernel-4.4.55.git drm/rockchip: rga: don't flush buffer context to save time Change-Id: Ie4a1618eabdbb9ebf5ad0b73b8acc9df884a81bb Signed-off-by: Jacob Chen --- 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; }