From: Sunil Khatri Date: Mon, 1 Jun 2026 14:45:34 +0000 (+0530) Subject: drm/amdgpu: validate the mes firmware version for gfx12.1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=bfc6042540b7795d2f96a6ddc71442f74438dc73;p=thirdparty%2Flinux.git drm/amdgpu: validate the mes firmware version for gfx12.1 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 Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c b/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c index b169e577e583..8a90ad5a51b8 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c @@ -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.