From 914a8ecbc0236dedc11eed51033bb1b19f4521a9 Mon Sep 17 00:00:00 2001 From: Horatio Zhang Date: Mon, 17 Feb 2025 18:26:32 +0800 Subject: [PATCH] wsl/hsakmt: Configure Capability Info to Disable Fine-Grained VRAM Management This fix is for Unit_cache_coherency_cpu_gpu. Regardless of whether the HSA_FORCE_FINE_GRAIN_PCIE variable is set in the environment, set the user_visible of the region to false. This applies to the functionality of exposing VRAM as uncached/fine grain over PCIe or XGMI. Signed-off-by: Horatio Zhang Reviewed-by: Flora Cui Part-of: --- version.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/version.cpp b/version.cpp index 98b4ad7c34..12c3e861e9 100644 --- a/version.cpp +++ b/version.cpp @@ -49,7 +49,8 @@ hsaKmtGetVersionCapInfo(HsaVersionCapability *VersionCapInfo) { VersionCapInfo->ui64.Image = 0; VersionCapInfo->ui64.EventAge = 0; VersionCapInfo->ui64.Scratch = 0; - VersionCapInfo->ui64.XNack = 0;*/ + VersionCapInfo->ui64.XNack = 0; + VersionCapInfo->ui64.FineGrainPcie = 0;*/ VersionCapInfo->ui64.VendorPacket = enable_vendor_packet;