Support Get and Set access for memory mappings

Mapping memory handles to virtual memory addresses do not make them
accessible. The set access function is needed to make the memory
mappings accessible to specific agents. The get access function
returns current access properties for individual agents.

This is part of patch series for Virtual Memory API.

Change-Id: I152ba0557fd2a802eb9d840568b68cdd1911b72c
Tento commit je obsažen v:
David Yat Sin
2022-12-19 00:04:08 +00:00
rodič 179dcf1c77
revize 13fbd8a232
9 změnil soubory, kde provedl 281 přidání a 1 odebrání
+11
Zobrazit soubor
@@ -1259,6 +1259,17 @@ hsa_status_t HSA_API hsa_amd_vmem_unmap(void* va, size_t size) {
return amdExtTable->hsa_amd_vmem_unmap_fn(va, size);
}
hsa_status_t HSA_API hsa_amd_vmem_set_access(void* va, size_t size,
const hsa_amd_memory_access_desc_t* desc,
const size_t desc_cnt) {
return amdExtTable->hsa_amd_vmem_set_access_fn(va, size, desc, desc_cnt);
}
hsa_status_t HSA_API hsa_amd_vmem_get_access(void* va, hsa_access_permission_t* perms,
const hsa_agent_t agent_handle) {
return amdExtTable->hsa_amd_vmem_get_access_fn(va, perms, agent_handle);
}
// Tools only table interfaces.
namespace rocr {