mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 20:14:25 +08:00
drm/amdgpu: use memcpy_toio for VCE firmware upload
Try to be clean here, even when it's a noop on x86. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ba0b2275a6
commit
7b4d3e297e
@ -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,
|
memcpy_toio(cpu_addr, adev->vce.fw->data + offset,
|
||||||
(adev->vce.fw->size) - offset);
|
adev->vce.fw->size - offset);
|
||||||
|
|
||||||
amdgpu_bo_kunmap(adev->vce.vcpu_bo);
|
amdgpu_bo_kunmap(adev->vce.vcpu_bo);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user