mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
gpu: add dsb() before gpu start
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user