Revert "Add execution property in register memory for gfx801."
This reverts commitabf7770d46. [ROCm/ROCR-Runtime commit:4c4df38035]
这个提交包含在:
1 父节点
fcf6e22216
当前提交
b6c7551747
2 个文件已更改
+2
-15
没有与搜索条件相匹配的文件
@@ -364,8 +364,7 @@ HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtRegisterMemory(
|
||||
void* MemoryAddress, //IN (page-aligned)
|
||||
HSAuint64 MemorySizeInBytes, //IN (page-aligned)
|
||||
int ExecuteAccess
|
||||
HSAuint64 MemorySizeInBytes //IN (page-aligned)
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -170,23 +170,11 @@ HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtRegisterMemory(
|
||||
void *MemoryAddress, /* IN (page-aligned) */
|
||||
HSAuint64 MemorySizeInBytes, /* IN (page-aligned) */
|
||||
int ExecuteAccess
|
||||
HSAuint64 MemorySizeInBytes /* IN (page-aligned) */
|
||||
)
|
||||
{
|
||||
CHECK_KFD_OPEN();
|
||||
|
||||
int err;
|
||||
/* for CZ ib execution */
|
||||
if (ExecuteAccess) {
|
||||
err = mprotect(MemoryAddress, MemorySizeInBytes,
|
||||
PROT_READ | PROT_WRITE | PROT_EXEC);
|
||||
|
||||
if (err != 0) {
|
||||
free(MemoryAddress);
|
||||
return err;
|
||||
}
|
||||
}
|
||||
return HSAKMT_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户