Skip to contentSkip to conversation

drm/amdgpu/psp: support CONFIG_SQ_PERFMON on MP0 13.0.15

PATCH New Filip Adzic 1 participant 1 message Aug 25

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/psp: support CONFIG_SQ_PERFMON on MP0 13.0.15

Extend the MP0 IP version check for CONFIG_SQ_PERFMON to include v13.0.15, matching other supported 13.0.x revisions

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +2 -1
index a0f6df5067e6..9784ea5488aa 100644
@@ -4708,7 +4708,8 @@ int psp_config_sq_perfmon(struct psp_context *psp,
 		return -EINVAL;
 	}
 
-	if (amdgpu_ip_version(psp->adev, MP0_HWIP, 0) != IP_VERSION(13, 0, 6)) {
+	if (amdgpu_ip_version(psp->adev, MP0_HWIP, 0) != IP_VERSION(13, 0, 6) &&
+	    amdgpu_ip_version(psp->adev, MP0_HWIP, 0) != IP_VERSION(13, 0, 15)) {
 		dev_err(psp->adev->dev, "Unsupported MP0 version 0x%x for CONFIG_SQ_PERFMON command\n",
 			amdgpu_ip_version(psp->adev, MP0_HWIP, 0));
 		return -EINVAL;
Signature · 1 line
2.43.0