aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
index d91f378bb34d..7b33867036e7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
@@ -451,7 +451,6 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev)
451 uint64_t fw_offset = 0; 451 uint64_t fw_offset = 0;
452 int i; 452 int i;
453 struct amdgpu_firmware_info *ucode = NULL; 453 struct amdgpu_firmware_info *ucode = NULL;
454 const struct common_firmware_header *header = NULL;
455 454
456 /* for baremetal, the ucode is allocated in gtt, so don't need to fill the bo when reset/suspend */ 455 /* for baremetal, the ucode is allocated in gtt, so don't need to fill the bo when reset/suspend */
457 if (!amdgpu_sriov_vf(adev) && (adev->in_gpu_reset || adev->in_suspend)) 456 if (!amdgpu_sriov_vf(adev) && (adev->in_gpu_reset || adev->in_suspend))
@@ -472,7 +471,6 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev)
472 for (i = 0; i < adev->firmware.max_ucodes; i++) { 471 for (i = 0; i < adev->firmware.max_ucodes; i++) {
473 ucode = &adev->firmware.ucode[i]; 472 ucode = &adev->firmware.ucode[i];
474 if (ucode->fw) { 473 if (ucode->fw) {
475 header = (const struct common_firmware_header *)ucode->fw->data;
476 amdgpu_ucode_init_single_fw(adev, ucode, adev->firmware.fw_buf_mc + fw_offset, 474 amdgpu_ucode_init_single_fw(adev, ucode, adev->firmware.fw_buf_mc + fw_offset,
477 adev->firmware.fw_buf_ptr + fw_offset); 475 adev->firmware.fw_buf_ptr + fw_offset);
478 if (i == AMDGPU_UCODE_ID_CP_MEC1 && 476 if (i == AMDGPU_UCODE_ID_CP_MEC1 &&