aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
index 8c462b091aff..fd435a96481c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
@@ -659,7 +659,7 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,
659 info->version = (uint16_t)le32_to_cpu(header->header.ucode_version); 659 info->version = (uint16_t)le32_to_cpu(header->header.ucode_version);
660 660
661 if (CGS_UCODE_ID_CP_MEC == type) 661 if (CGS_UCODE_ID_CP_MEC == type)
662 info->image_size = (header->jt_offset) << 2; 662 info->image_size = le32_to_cpu(header->jt_offset) << 2;
663 663
664 info->fw_version = amdgpu_get_firmware_version(cgs_device, type); 664 info->fw_version = amdgpu_get_firmware_version(cgs_device, type);
665 info->feature_version = (uint16_t)le32_to_cpu(header->ucode_feature_version); 665 info->feature_version = (uint16_t)le32_to_cpu(header->ucode_feature_version);