]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
Merge tag 'sched-urgent-2021-07-11' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_vram_mgr.c
index 436ec246a7daccded3a7f0943a4db29152feaca7..2fd77c36a1ff7932a15c5e2dbf323b493dc96b7b 100644 (file)
@@ -463,6 +463,11 @@ static int amdgpu_vram_mgr_new(struct ttm_resource_manager *man,
        if (i == 1)
                node->base.placement |= TTM_PL_FLAG_CONTIGUOUS;
 
+       if (adev->gmc.xgmi.connected_to_cpu)
+               node->base.bus.caching = ttm_cached;
+       else
+               node->base.bus.caching = ttm_write_combined;
+
        atomic64_add(vis_usage, &mgr->vis_usage);
        *res = &node->base;
        return 0;
This page took 0.034732 seconds and 4 git commands to generate.