summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlora Cui <flora.cui@amd.com>2019-05-17 05:33:56 +0200
committerAlex Deucher <alexander.deucher@amd.com>2019-05-20 19:47:05 +0200
commit379109351f4f6f2405cf54e7a296055f589c3ad1 (patch)
treecfca640ec7458e445f487f9e6a155c0369da784e
parentdrm/amdkfd: Add missing Polaris10 ID (diff)
downloadlinux-379109351f4f6f2405cf54e7a296055f589c3ad1.tar.xz
linux-379109351f4f6f2405cf54e7a296055f589c3ad1.zip
drm/amdgpu: keep stolen memory on picasso
otherwise screen corrupts during modprobe. Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 3fd79e07944d..4e6fcaeb1303 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -626,6 +626,7 @@ static bool gmc_v9_0_keep_stolen_memory(struct amdgpu_device *adev)
case CHIP_VEGA10:
return true;
case CHIP_RAVEN:
+ return (adev->pdev->device == 0x15d8);
case CHIP_VEGA12:
case CHIP_VEGA20:
default: