From: Mark Yao Date: Fri, 28 Apr 2017 01:57:54 +0000 (+0800) Subject: video/rockchip: rga2: fix error page on cache flush X-Git-Tag: release-20171130_firefly~4^2~703 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c06e1d104b701a1bc062604f529e0858cb56b569;p=firefly-linux-kernel-4.4.55.git video/rockchip: rga2: fix error page on cache flush Change-Id: Ic23e0f6c25f68c28a87f4e4ef459bda56d4990ba Signed-off-by: Mark Yao --- 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;