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 <Hongkun.Zhang@amd.com>
Reviewed-by: Flora Cui <flora.cui@amd.com>
Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/34>
This commit is contained in:
Horatio Zhang
2025-02-17 18:26:32 +08:00
committed by Frank Min
parent ee73fc046e
commit 914a8ecbc0
+2 -1
View File
@@ -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;