summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2017-05-31 10:35:42 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-06-06 16:59:30 -0400
commit916910ad916a5c63dcd724a557bab092abdb9e7b (patch)
tree21dbd68c9b48a82917ff6b57901f39e7eb059884 /drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
parenta0bae3577f46f6b61ccfa4cb0772fd804be1de96 (diff)
downloadop-kernel-dev-916910ad916a5c63dcd724a557bab092abdb9e7b.zip
op-kernel-dev-916910ad916a5c63dcd724a557bab092abdb9e7b.tar.gz
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_v7_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
index 8b39d9a..1326c1f 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
@@ -970,6 +970,8 @@ static int gmc_v7_0_sw_init(void *handle)
*/
adev->mc.mc_mask = 0xffffffffffULL; /* 40 bit MC */
+ adev->mc.stolen_size = 256 * 1024;
+
/* set DMA mask + need_dma32 flags.
* PCIE - can handle 40-bits.
* IGP - can handle 40-bits
OpenPOWER on IntegriCloud