|
@@ -282,8 +282,8 @@ int amdgpu_vce_resume(struct amdgpu_device *adev)
|
|
|
|
|
|
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
|
|
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
|
|
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
|
|
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
|
|
- memcpy(cpu_addr, (adev->vce.fw->data) + offset,
|
|
|
|
- (adev->vce.fw->size) - offset);
|
|
|
|
|
|
+ memcpy_toio(cpu_addr, adev->vce.fw->data + offset,
|
|
|
|
+ adev->vce.fw->size - offset);
|
|
|
|
|
|
amdgpu_bo_kunmap(adev->vce.vcpu_bo);
|
|
amdgpu_bo_kunmap(adev->vce.vcpu_bo);
|
|
|
|
|