summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-08-30 09:46:27 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-09-02 10:16:52 -0500
commit6abc0c8f8cf3e0c47707b01f027f9f9b9aa75646 (patch)
tree0fa7c13d77420aa12bc3f77211f0bee487bc9b7e /drivers
parent95010ba79baae078c2bcabda49cf564261d0b796 (diff)
drm/amdgpu/gmc9: don't keep stolen memory on vega20
Vega20 does not appear to be affected by the same issue as vega10. Enable the full stolen memory handling on vega20. Reserve the appropriate size at init time to avoid display artifacts and then free it at the end of init once the new FB is up and running. Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 3180113f49ae..f467638eb49d 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -705,14 +705,13 @@ static bool gmc_v9_0_keep_stolen_memory(struct amdgpu_device *adev)
* Also check code in gmc_v9_0_get_vbios_fb_size and gmc_v9_0_late_init
*/
switch (adev->asic_type) {
+ case CHIP_VEGA10:
+ return true;
case CHIP_RAVEN:
- return false;
case CHIP_VEGA12:
- return false;
- case CHIP_VEGA10:
case CHIP_VEGA20:
default:
- return true;
+ return false;
}
}