From cd04105656a0d106ca3da309e1a73e5e0c09f4c5 Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Mon, 25 Jul 2022 17:41:46 -0400 Subject: [PATCH] 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 Tested-by: Laurent Morichetti Change-Id: I7441e214d1a4da8324d775e777976fabd1c81a6f [ROCm/ROCR-Runtime commit: deb7a20c929ff249413279ae55ebf2a56e23874a] --- projects/rocr-runtime/src/queues.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/src/queues.c b/projects/rocr-runtime/src/queues.c index 5702c95329..9518d9ff5b 100644 --- a/projects/rocr-runtime/src/queues.c +++ b/projects/rocr-runtime/src/queues.c @@ -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);