libhsakmt: Make CWSR area executable
The debugger depends on the CWSR area being executable. Set the right
flag when registering SVM memory.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Tested-by: Laurent Morichetti <Laurent.Morichetti@amd.com>
Change-Id: I7441e214d1a4da8324d775e777976fabd1c81a6f
[ROCm/ROCR-Runtime commit: deb7a20c92]
This commit is contained in:
@@ -394,7 +394,7 @@ static HSAKMT_STATUS register_svm_range(void *mem, uint32_t size,
|
||||
HSAuint32 nattr;
|
||||
HSAuint32 flags;
|
||||
|
||||
flags = HSA_SVM_FLAG_HOST_ACCESS;
|
||||
flags = HSA_SVM_FLAG_HOST_ACCESS | HSA_SVM_FLAG_GPU_EXEC;
|
||||
|
||||
if (alwaysMapped) {
|
||||
CHECK_KFD_MINOR_VERSION(11);
|
||||
|
||||
Reference in New Issue
Block a user