Merge "msm: kgsl: Skip importing memalloc based on flag"

This commit is contained in:
qctecmdr 2021-05-14 09:51:38 -07:00 committed by Gerrit - the friendly Code Review server
commit 68da7f2b94
2 changed files with 8 additions and 2 deletions

View File

@ -725,8 +725,11 @@ static struct hfi_mem_alloc_entry *get_mem_alloc_entry(
entry->desc.size = entry->gpu_md->size;
if (!(desc->flags & HFI_MEMFLAG_GMU_ACC))
goto done;
/*
* Map all buffers in GMU. If this fails, then we have to live with
* If gmu mapping fails, then we have to live with
* leaking the gpu global buffer allocated above.
*/
ret = gmu_import_buffer(adreno_dev, entry, desc->flags);

View File

@ -749,8 +749,11 @@ static struct hfi_mem_alloc_entry *get_mem_alloc_entry(
entry->desc.size = entry->gpu_md->size;
if (!(desc->flags & HFI_MEMFLAG_GMU_ACC))
goto done;
/*
* Map all buffers in GMU. If this fails, then we have to live with
* If gmu mapping fails, then we have to live with
* leaking the gpu global buffer allocated above.
*/
ret = gmu_import_buffer(adreno_dev, entry, desc->flags);