]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: validate the mes firmware version for gfx12
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 1 Jun 2026 14:44:50 +0000 (20:14 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2026 19:25:49 +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_0.c

index 023c7345ea548536744138eabebe649cba632356..7453fb11289e72df3bacf12c941b6c25c4d11958 100644 (file)
@@ -1871,6 +1871,7 @@ static int mes_v12_0_hw_init(struct amdgpu_ip_block *ip_block)
        if (r)
                goto failure;
 
+       amdgpu_mes_validate_fw_version(adev);
 out:
        /*
         * Disable KIQ ring usage from the driver once MES is enabled.