summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-08-30 09:44:31 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-09-02 10:16:51 -0500
commit95010ba79baae078c2bcabda49cf564261d0b796 (patch)
tree89469804c5d4371207970b5988264cd50a2cbe0f /drivers
parent6fb81375db0f959ea7fda02ecc5388f65ab4ac7c (diff)
drm/amdgpu/gmc9: don't keep stolen memory on vega12
vega12 does not appear to be affected by the same issue as vega10. Enable the full stolen memory handling on vega12. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 938d03593713..3180113f49ae 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -707,8 +707,9 @@ static bool gmc_v9_0_keep_stolen_memory(struct amdgpu_device *adev)
switch (adev->asic_type) {
case CHIP_RAVEN:
return false;
- case CHIP_VEGA10:
case CHIP_VEGA12:
+ return false;
+ case CHIP_VEGA10:
case CHIP_VEGA20:
default:
return true;