|
@@ -441,6 +441,13 @@ static int uvd_v7_0_sw_init(void *handle)
|
|
|
adev->firmware.ucode[AMDGPU_UCODE_ID_UVD].fw = adev->uvd.fw;
|
|
|
adev->firmware.fw_size +=
|
|
|
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
|
|
|
+
|
|
|
+ if (adev->uvd.num_uvd_inst == UVD7_MAX_HW_INSTANCES_VEGA20) {
|
|
|
+ adev->firmware.ucode[AMDGPU_UCODE_ID_UVD1].ucode_id = AMDGPU_UCODE_ID_UVD1;
|
|
|
+ adev->firmware.ucode[AMDGPU_UCODE_ID_UVD1].fw = adev->uvd.fw;
|
|
|
+ adev->firmware.fw_size +=
|
|
|
+ ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
|
|
|
+ }
|
|
|
DRM_INFO("PSP loading UVD firmware\n");
|
|
|
}
|
|
|
|