libhsakmt: Explicitly mark AQL buffers as UC
This change might be redundant if ROCr takes care of it
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Change-Id: I7b67143a8ad21baa61b7eda7b8e5fe0ac1e33830
[ROCm/ROCR-Runtime commit: 10674916e4]
This commit is contained in:
committed by
Kent Russell
parent
a3ef11ce1d
commit
4935d0f012
@@ -1186,7 +1186,8 @@ static uint32_t fmm_translate_hsa_to_ioc_flags(HsaMemFlags flags)
|
||||
uint32_t ioc_flags = 0;
|
||||
|
||||
if (flags.ui32.AQLQueueMemory)
|
||||
ioc_flags |= KFD_IOC_ALLOC_MEM_FLAGS_AQL_QUEUE_MEM;
|
||||
ioc_flags |= (KFD_IOC_ALLOC_MEM_FLAGS_AQL_QUEUE_MEM |
|
||||
KFD_IOC_ALLOC_MEM_FLAGS_UNCACHED);
|
||||
if (!flags.ui32.ReadOnly)
|
||||
ioc_flags |= KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE;
|
||||
/* TODO: Since, ROCr interfaces doesn't allow caller to set page
|
||||
|
||||
Reference in New Issue
Block a user