]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: validate the mes firmware version for gfx12.1
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 1 Jun 2026 14:45:34 +0000 (20:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2026 19:25:52 +0000 (15:25 -0400)
MES firmware should report the same version whether read from
the register or from the firmware ucode binary. This is not
always the case, so add a log when they mismatch.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v12_1.c

index b169e577e58384ac6caf7c5355d61a05934a4f8e..8a90ad5a51b8b5f402a6339c1a4c053cea83e1aa 100644 (file)
@@ -1917,6 +1917,7 @@ static int mes_v12_1_xcc_hw_init(struct amdgpu_ip_block *ip_block, int xcc_id)
                goto failure;
        }
 
+       amdgpu_mes_validate_fw_version(adev);
 out:
        /*
         * Disable KIQ ring usage from the driver once MES is enabled.