Skip to contentSkip to conversation

drm/amdgpu: reserve stollen vram for raven series

PATCH In review Cui, Flora 2 participants 2 messages May 28, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Cui, Flora

author
#0 lore raw

PATCH 1/1 drm/amdgpu: reserve stollen vram for raven series

to avoid screen corruption during modprobe.

Change-Id I8671de6ed46285585dbe866832c6d2b835ca37f3
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -2
index 602593b..dbc83a1 100644
@@ -624,9 +624,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:
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1559030095-19673-1-git-send-email-flora.cui-5C7GfCeVMHo@public.gmane.org

Reviewed-by Huang Rui
#2 lore raw
Quoted 8 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Cui, Flora
Sent: Tuesday, May 28, 2019 3:55 PM
To: [email protected]
Cc: Cui, Flora <[email protected]>
Subject: [PATCH] drm/amdgpu: reserve stollen vram for raven series

Quoted 4 lines

to avoid screen corruption during modprobe.

Change-Id I8671de6ed46285585dbe866832c6d2b835ca37f3

Thanks. Yes. In raven series, we still found corruption at the start of vram.

Quoted 24 lines
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -2
index 602593b..dbc83a1 100644
@@ -624,9 +624,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.7.4

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx