]> Git Repo - J-linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
Merge tag 'xtensa-20190715' of git://github.com/jcmvbkbc/linux-xtensa
[J-linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_object.c
index 16f96f2e3671201f9b85e9b1ff32b5d1e303e887..bea6f298dfdc5b47132abdba12a2b4999f693ac0 100644 (file)
@@ -495,7 +495,11 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
 #endif
 
        bo->tbo.bdev = &adev->mman.bdev;
-       amdgpu_bo_placement_from_domain(bo, bp->domain);
+       if (bp->domain & (AMDGPU_GEM_DOMAIN_GWS | AMDGPU_GEM_DOMAIN_OA |
+                         AMDGPU_GEM_DOMAIN_GDS))
+               amdgpu_bo_placement_from_domain(bo, AMDGPU_GEM_DOMAIN_CPU);
+       else
+               amdgpu_bo_placement_from_domain(bo, bp->domain);
        if (bp->type == ttm_bo_type_kernel)
                bo->tbo.priority = 1;
 
@@ -975,6 +979,7 @@ static const char *amdgpu_vram_names[] = {
        "HBM",
        "DDR3",
        "DDR4",
+       "GDDR6",
 };
 
 /**
This page took 0.037656 seconds and 4 git commands to generate.