diff options
author | Christian König <christian.koenig@amd.com> | 2016-08-23 05:18:59 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-24 16:25:07 -0400 |
commit | 7b4d3e297e8a7d3b82e68231ff077e891c370349 (patch) | |
tree | 22da1859d4fb20889e2ac8eb66cd2a337f1a7edf /drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | |
parent | ba0b2275a6781b2f3919d931d63329b5548f6d5f (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c index 05865ce35351..da52af2a935a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | |||
@@ -282,8 +282,8 @@ int amdgpu_vce_resume(struct amdgpu_device *adev) | |||
282 | 282 | ||
283 | hdr = (const struct common_firmware_header *)adev->vce.fw->data; | 283 | hdr = (const struct common_firmware_header *)adev->vce.fw->data; |
284 | offset = le32_to_cpu(hdr->ucode_array_offset_bytes); | 284 | offset = le32_to_cpu(hdr->ucode_array_offset_bytes); |
285 | memcpy(cpu_addr, (adev->vce.fw->data) + offset, | 285 | memcpy_toio(cpu_addr, adev->vce.fw->data + offset, |
286 | (adev->vce.fw->size) - offset); | 286 | adev->vce.fw->size - offset); |
287 | 287 | ||
288 | amdgpu_bo_kunmap(adev->vce.vcpu_bo); | 288 | amdgpu_bo_kunmap(adev->vce.vcpu_bo); |
289 | 289 | ||