drm/amdgpu/mes: fetch fw version from firmware header
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 31 Oct 2024 02:54:38 +0000 (22:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Nov 2024 15:33:39 +0000 (10:33 -0500)
commite89bd3615bc0883adc90209c1aac6d4bac7d221f
tree6dac1c26f1de2756ab13842d4e12747123c0dad1
parentcfffd980bf21b5a84fd364861d482d5a2ec21c49
drm/amdgpu/mes: fetch fw version from firmware header

We need this prior to the firmware being loaded so fetch
from the header.

v2: fetch directly from the firmware
v3: store both fw versions

Reviewed-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h