diff --git a/libhsakmt/src/fmm.c b/libhsakmt/src/fmm.c index 406e4d687a..7f682e8999 100644 --- a/libhsakmt/src/fmm.c +++ b/libhsakmt/src/fmm.c @@ -1401,8 +1401,11 @@ static uint32_t fmm_translate_hsa_to_ioc_flags(HsaMemFlags flags) KFD_IOC_ALLOC_MEM_FLAGS_UNCACHED); if (!flags.ui32.ReadOnly) ioc_flags |= KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE; - if (flags.ui32.ExecuteAccess) - ioc_flags |= KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE; + /* TODO: Since, ROCr interfaces doesn't allow caller to set page + * permissions, mark all user allocations with exec permission. + * Check for flags.ui32.ExecuteAccess once ROCr is ready. + */ + ioc_flags |= KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE; return ioc_flags; }