|
@@ -2273,6 +2273,8 @@ static int gfx_v8_0_rlc_load_microcode(struct amdgpu_device *adev)
|
|
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
|
|
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
|
|
amdgpu_ucode_print_rlc_hdr(&hdr->header);
|
|
amdgpu_ucode_print_rlc_hdr(&hdr->header);
|
|
adev->gfx.rlc_fw_version = le32_to_cpu(hdr->header.ucode_version);
|
|
adev->gfx.rlc_fw_version = le32_to_cpu(hdr->header.ucode_version);
|
|
|
|
+ adev->gfx.rlc_feature_version = le32_to_cpu(
|
|
|
|
+ hdr->ucode_feature_version);
|
|
|
|
|
|
fw_data = (const __le32 *)(adev->gfx.rlc_fw->data +
|
|
fw_data = (const __le32 *)(adev->gfx.rlc_fw->data +
|
|
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
|
|
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
|
|
@@ -2620,6 +2622,8 @@ static int gfx_v8_0_cp_compute_load_microcode(struct amdgpu_device *adev)
|
|
mec_hdr = (const struct gfx_firmware_header_v1_0 *)adev->gfx.mec_fw->data;
|
|
mec_hdr = (const struct gfx_firmware_header_v1_0 *)adev->gfx.mec_fw->data;
|
|
amdgpu_ucode_print_gfx_hdr(&mec_hdr->header);
|
|
amdgpu_ucode_print_gfx_hdr(&mec_hdr->header);
|
|
adev->gfx.mec_fw_version = le32_to_cpu(mec_hdr->header.ucode_version);
|
|
adev->gfx.mec_fw_version = le32_to_cpu(mec_hdr->header.ucode_version);
|
|
|
|
+ adev->gfx.mec_feature_version = le32_to_cpu(
|
|
|
|
+ mec_hdr->ucode_feature_version);
|
|
|
|
|
|
fw_data = (const __le32 *)
|
|
fw_data = (const __le32 *)
|
|
(adev->gfx.mec_fw->data +
|
|
(adev->gfx.mec_fw->data +
|
|
@@ -2639,6 +2643,8 @@ static int gfx_v8_0_cp_compute_load_microcode(struct amdgpu_device *adev)
|
|
mec2_hdr = (const struct gfx_firmware_header_v1_0 *)adev->gfx.mec2_fw->data;
|
|
mec2_hdr = (const struct gfx_firmware_header_v1_0 *)adev->gfx.mec2_fw->data;
|
|
amdgpu_ucode_print_gfx_hdr(&mec2_hdr->header);
|
|
amdgpu_ucode_print_gfx_hdr(&mec2_hdr->header);
|
|
adev->gfx.mec2_fw_version = le32_to_cpu(mec2_hdr->header.ucode_version);
|
|
adev->gfx.mec2_fw_version = le32_to_cpu(mec2_hdr->header.ucode_version);
|
|
|
|
+ adev->gfx.mec2_feature_version = le32_to_cpu(
|
|
|
|
+ mec2_hdr->ucode_feature_version);
|
|
|
|
|
|
fw_data = (const __le32 *)
|
|
fw_data = (const __le32 *)
|
|
(adev->gfx.mec2_fw->data +
|
|
(adev->gfx.mec2_fw->data +
|