diff options
-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 edb86dcbd7d6..eda7e53c6f55 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 | |||
@@ -2113,8 +2113,12 @@ gckOS_AllocateCMAMemoryFSL( | |||
2113 | #if gcdUSE_NON_PAGED_MEMORY_CACHE | 2113 | #if gcdUSE_NON_PAGED_MEMORY_CACHE |
2114 | if(addr == gcvNULL) | 2114 | if(addr == gcvNULL) |
2115 | { | 2115 | { |
2116 | MEMORY_UNLOCK(Os); | ||
2117 | locked = gcvFALSE; | ||
2116 | /*Free all cache and try again*/ | 2118 | /*Free all cache and try again*/ |
2117 | _FreeAllNonPagedMemoryCache(Os); | 2119 | _FreeAllNonPagedMemoryCache(Os); |
2120 | MEMORY_LOCK(Os); | ||
2121 | locked = gcvTRUE; | ||
2118 | addr = dma_alloc_writecombine(gcvNULL, | 2122 | addr = dma_alloc_writecombine(gcvNULL, |
2119 | mdl->numPages * PAGE_SIZE, | 2123 | mdl->numPages * PAGE_SIZE, |
2120 | &mdl->dmaHandle, | 2124 | &mdl->dmaHandle, |