diff options
author | Huang Rui <ray.huang@amd.com> | 2017-05-31 10:35:42 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-06-06 16:59:30 -0400 |
commit | 916910ad916a5c63dcd724a557bab092abdb9e7b (patch) | |
tree | 21dbd68c9b48a82917ff6b57901f39e7eb059884 /drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | |
parent | a0bae3577f46f6b61ccfa4cb0772fd804be1de96 (diff) | |
download | linux-stable-916910ad916a5c63dcd724a557bab092abdb9e7b.tar.gz linux-stable-916910ad916a5c63dcd724a557bab092abdb9e7b.tar.bz2 linux-stable-916910ad916a5c63dcd724a557bab092abdb9e7b.zip |
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/gmc_v6_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c index 569828ced31d..a33ba60f64a2 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c @@ -834,6 +834,8 @@ static int gmc_v6_0_sw_init(void *handle) adev->mc.mc_mask = 0xffffffffffULL; + adev->mc.stolen_size = 256 * 1024; + adev->need_dma32 = false; dma_bits = adev->need_dma32 ? 32 : 40; r = pci_set_dma_mask(adev->pdev, DMA_BIT_MASK(dma_bits)); |