aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2017-05-30 22:35:42 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-06-06 16:59:30 -0400
commit916910ad916a5c63dcd724a557bab092abdb9e7b (patch)
tree21dbd68c9b48a82917ff6b57901f39e7eb059884 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
parenta0bae3577f46f6b61ccfa4cb0772fd804be1de96 (diff)
drm/amdgpu: fix the gart table cleared issue for S3
Something writes over the first 8 MB so reserve this on vega10 until we root cause it. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 8526a0222268..2ba54e2f5e52 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -1121,7 +1121,7 @@ int amdgpu_ttm_init(struct amdgpu_device *adev)
1121 /* Change the size here instead of the init above so only lpfn is affected */ 1121 /* Change the size here instead of the init above so only lpfn is affected */
1122 amdgpu_ttm_set_active_vram_size(adev, adev->mc.visible_vram_size); 1122 amdgpu_ttm_set_active_vram_size(adev, adev->mc.visible_vram_size);
1123 1123
1124 r = amdgpu_bo_create(adev, 256 * 1024, PAGE_SIZE, true, 1124 r = amdgpu_bo_create(adev, adev->mc.stolen_size, PAGE_SIZE, true,
1125 AMDGPU_GEM_DOMAIN_VRAM, 1125 AMDGPU_GEM_DOMAIN_VRAM,
1126 AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED | 1126 AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED |
1127 AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS, 1127 AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS,