projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0786e79
)
gpu: add dsb() before gpu start
author
杜坤明
<dkm@rockchip.com>
Fri, 25 Mar 2011 04:46:45 +0000
(12:46 +0800)
committer
杜坤明
<dkm@rockchip.com>
Fri, 25 Mar 2011 04:46:45 +0000
(12:46 +0800)
drivers/staging/rk29/vivante/hal/os/linux/kernel/gc_hal_kernel_os.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rk29/vivante/hal/os/linux/kernel/gc_hal_kernel_os.c
b/drivers/staging/rk29/vivante/hal/os/linux/kernel/gc_hal_kernel_os.c
index ae9002ad5c4e023d665dfa6d80c1656887faaa37..10faa6fa3a0c8fe0a8d209d0cbc9fc170021075c 100755
(executable)
--- a/
drivers/staging/rk29/vivante/hal/os/linux/kernel/gc_hal_kernel_os.c
+++ b/
drivers/staging/rk29/vivante/hal/os/linux/kernel/gc_hal_kernel_os.c
@@
-2602,7
+2602,8
@@
gceSTATUS gckOS_MemoryBarrier(
/* Verify thearguments. */
gcmkVERIFY_OBJECT(Os, gcvOBJ_OS);
- mb();
+ //mb();
+ dsb();
/* Success. */
return gcvSTATUS_OK;
@@
-5418,6
+5419,8
@@
gckOS_CacheFlush(
{
#if (1==gcdENABLE_MEM_CACHE)
dmac_clean_range(Logical, Logical+Bytes);
+#elif (2==gcdENABLE_MEM_CACHE)
+ dsb();
#endif
return gcvSTATUS_OK;
}
@@
-5454,6
+5457,8
@@
gckOS_CacheInvalidate(
{
#if (1==gcdENABLE_MEM_CACHE)
dmac_flush_range(Logical, Logical+Bytes);
+#elif (2==gcdENABLE_MEM_CACHE)
+ dsb();
#endif
return gcvSTATUS_OK;
}