diff mbox series

[1/2] drm/amdgpu: keep stolen memory on picasso

Message ID 20190701115216.24491-2-tjaalton@ubuntu.com
State New
Headers show
Series drm/amdgpu: stolen vram for raven fixing screen corruption v2 | expand

Commit Message

Timo Aaltonen July 1, 2019, 11:52 a.m. UTC
From: Flora Cui <flora.cui@amd.com>

BugLink: http://bugs.launchpad.net/bugs/1831846

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>
(cherry picked from commit 379109351f4f6f2405cf54e7a296055f589c3ad1)
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 278dd55ff476..e6b7c9511344 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -711,6 +711,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: