diff options
author | Xianzhong <b07117@freescale.com> | 2013-07-01 20:04:33 +0800 |
---|---|---|
committer | Xianzhong <b07117@freescale.com> | 2013-07-02 18:49:59 +0800 |
commit | 06bc5bf8a1497765a4567cf8e40d4f2c641b9891 (patch) | |
tree | 0d1c7417161c5a766d45fcd9875c988f421f653f /drivers/mxc/gpu-viv | |
parent | 0811ac80f423c18f6de1889490a1f68ccff64bfb (diff) |
ENGR00263482 fix random dma flush hang in monkey test
The random hang is still found in one SabreSD RevB board
Signed-off-by: Xianzhong <b07117@freescale.com>
Acked-by: Lily Zhang
Diffstat (limited to 'drivers/mxc/gpu-viv')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c | 4 |
1 files changed, 4 insertions, 0 deletions
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]), |