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

Signed-off-by: Filip Adzic <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index a0f6df5067e6..9784ea5488aa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -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;
-- 
2.43.0

Reply via email to