diff options
author | David Francis <David.Francis@amd.com> | 2018-09-13 15:36:27 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-14 09:37:35 -0500 |
commit | ee6e89c0f1d18fef9206e68747577d99bbf923ea (patch) | |
tree | 8ecfe5bf61b026d4e88dbd3a070d17c3ec8ece05 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |
parent | 56ea09760076800f08c57ef2026b67d51f338810 (diff) | |
download | lwn-ee6e89c0f1d18fef9206e68747577d99bbf923ea.tar.gz lwn-ee6e89c0f1d18fef9206e68747577d99bbf923ea.zip |
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: David Francis <David.Francis@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 1ff2e8fd5a22..985c6291dbfd 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -589,6 +589,8 @@ static int load_dmcu_fw(struct amdgpu_device *adev) adev->firmware.fw_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"); return 0; |