Commit ee6e89c0 authored by David Francis's avatar David Francis Committed by Alex Deucher

drm/amd/display: Add DMCU firmware version

Read the version number from the common firmware header and store
it in the dm struct
Signed-off-by: default avatarDavid Francis <David.Francis@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 56ea0976
...@@ -589,6 +589,8 @@ static int load_dmcu_fw(struct amdgpu_device *adev) ...@@ -589,6 +589,8 @@ static int load_dmcu_fw(struct amdgpu_device *adev)
adev->firmware.fw_size += adev->firmware.fw_size +=
ALIGN(le32_to_cpu(hdr->intv_size_bytes), PAGE_SIZE); ALIGN(le32_to_cpu(hdr->intv_size_bytes), PAGE_SIZE);
adev->dm.dmcu_fw_version = le32_to_cpu(hdr->header.ucode_version);
DRM_DEBUG_KMS("PSP loading DMCU firmware\n"); DRM_DEBUG_KMS("PSP loading DMCU firmware\n");
return 0; return 0;
......
...@@ -131,6 +131,7 @@ struct amdgpu_display_manager { ...@@ -131,6 +131,7 @@ struct amdgpu_display_manager {
struct dm_comressor_info compressor; struct dm_comressor_info compressor;
const struct firmware *fw_dmcu; const struct firmware *fw_dmcu;
uint32_t dmcu_fw_version;
}; };
struct amdgpu_dm_connector { struct amdgpu_dm_connector {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment