wsl/hsakmt: set to system domain when cpu want to access the buffer

Reviewed-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: tiancyin <tianci.yin@amd.com>
This commit is contained in:
tiancyin
2025-02-13 10:57:42 +08:00
کامیت شده توسط Frank Min
والد c83aca9878
کامیت ee73fc046e
+1 -1
مشاهده پرونده
@@ -177,7 +177,7 @@ HSAKMT_STATUS hsaKmtAllocMemoryAlignInternal(HSAuint32 PreferredNode,
create_info.alignment = Alignment;
create_info.va_hint = reinterpret_cast<gpusize>(*MemoryAddress);
if ((PreferredNode == 0 && !MemFlags.ui32.NonPaged)
if ((PreferredNode == 0 && MemFlags.ui32.HostAccess)
|| zfb_support || MemFlags.ui32.GTTAccess) {
if (SizeInBytes > max_single_alloc_size)
return HSAKMT_STATUS_NO_MEMORY;