Skip to contentSkip to conversation

drm/amdgpu: enable Vega20 BACO reset support

PATCH In review Evan Quan 2 participants 2 messages Apr 15, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Evan Quan

author
#0 lore raw

PATCH 1/1 drm/amdgpu: enable Vega20 BACO reset support

PSP SOS firmware needs to be 0x80067 or later.

Change-Id Ia56509c427258e0931dfe55faeac547e96911dd0
---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +6 -0
index bdb5ad93990d..a136632bf91c 100644
@@ -470,6 +470,12 @@ static int soc15_asic_reset(struct amdgpu_device *adev)
 	case CHIP_VEGA12:
 		soc15_asic_get_baco_capability(adev, &baco_reset);
 		break;
+	case CHIP_VEGA20:
+		if (adev->psp.sos_fw_version >= 0x80067)
+			soc15_asic_get_baco_capability(adev, &baco_reset);
+		else
+			baco_reset = false;
+		break;
 	default:
 		baco_reset = false;
 		break;
Signature · 6 lines
2.21.0

_______________________________________________
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): [email protected]

Acked-by
#2 lore raw
Quoted 5 lines · Evan Quan

PSP SOS firmware needs to be 0x80067 or later.

Change-Id Ia56509c427258e0931dfe55faeac547e96911dd0
Quoted 24 lines
---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +6 -1
index bdb5ad93990d..a136632bf91c 100644
@@ -470,6 +470,12 @@ static int soc15_asic_reset(struct amdgpu_device *adev)
        case CHIP_VEGA12:
                soc15_asic_get_baco_capability(adev, &baco_reset);
                break;
+       case CHIP_VEGA20:
+               if (adev->psp.sos_fw_version >= 0x80067)
+                       soc15_asic_get_baco_capability(adev, &baco_reset);
+               else
+                       baco_reset = false;
+               break;
        default:
                baco_reset = false;
                break;
--

2.21.0

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