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

index ae9002ad5c4e023d665dfa6d80c1656887faaa37..10faa6fa3a0c8fe0a8d209d0cbc9fc170021075c 100755 (executable)
@@ -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;
 }