From 06bc5bf8a1497765a4567cf8e40d4f2c641b9891 Mon Sep 17 00:00:00 2001 From: Xianzhong Date: Mon, 1 Jul 2013 20:04:33 +0800 Subject: ENGR00263482 fix random dma flush hang in monkey test The random hang is still found in one SabreSD RevB board Signed-off-by: Xianzhong Acked-by: Lily Zhang --- drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/mxc/gpu-viv') diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c index e7edc39c23ca..3c2fb22aae94 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c @@ -5430,6 +5430,10 @@ OnError: { for (i = 0; i < pageCount; i++) { +#ifdef CONFIG_ARM + gctUINT32 data; + get_user(data, (gctUINT32*)((memory & PAGE_MASK) + i * PAGE_SIZE)); +#endif /* Flush(clean) the data cache. */ gcmkONERROR(gckOS_CacheFlush(Os, _GetProcessID(), gcvNULL, (gctPOINTER)(gctUINTPTR_T)page_to_phys(pages[i]), -- cgit v1.2.3