[PATCH 2/2] drm/amdgpu: reserve stollen vram for raven series

Timo Aaltonen tjaalton at ubuntu.com
Mon Jul 1 11:52:16 UTC 2019


From: Flora Cui <flora.cui at amd.com>

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

to avoid screen corruption during modprobe.

Signed-off-by: Flora Cui <flora.cui at amd.com>
Reviewed-by: Huang Rui <ray.huang at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
(cherry picked from commit 02122753f1d0ac39d8c89f20f541a519a3002e92)
Signed-off-by: Timo Aaltonen <timo.aaltonen at canonical.com>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index e6b7c9511344..bdbacb46a3bb 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -709,9 +709,8 @@ static bool gmc_v9_0_keep_stolen_memory(struct amdgpu_device *adev)
 	 */
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
-		return true;
 	case CHIP_RAVEN:
-		return (adev->pdev->device == 0x15d8);
+		return true;
 	case CHIP_VEGA12:
 	case CHIP_VEGA20:
 	default:
-- 
2.17.1




More information about the kernel-team mailing list