From c06e1d104b701a1bc062604f529e0858cb56b569 Mon Sep 17 00:00:00 2001 From: Mark Yao Date: Fri, 28 Apr 2017 09:57:54 +0800 Subject: [PATCH] video/rockchip: rga2: fix error page on cache flush Change-Id: Ic23e0f6c25f68c28a87f4e4ef459bda56d4990ba Signed-off-by: Mark Yao --- drivers/video/rockchip/rga2/rga2_mmu_info.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/rockchip/rga2/rga2_mmu_info.c b/drivers/video/rockchip/rga2/rga2_mmu_info.c index 6ffb3b1acda0..d77a95745194 100644 --- a/drivers/video/rockchip/rga2/rga2_mmu_info.c +++ b/drivers/video/rockchip/rga2/rga2_mmu_info.c @@ -366,8 +366,7 @@ static int rga2_MapUserMemory(struct page **pages, uint32_t *pageTable, << PAGE_SHIFT)) & ~PAGE_MASK)); pte_unmap_unlock(pte, ptl); pageTable[i] = (uint32_t)Address; - - rga_dma_flush_page(pages[i]); + rga_dma_flush_page(pfn_to_page(pfn)); } up_read(¤t->mm->mmap_sem); return status; -- 2.34.1