projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba0b227
)
drm/amdgpu: use memcpy_toio for VCE firmware upload
author
Christian König
<
[email protected]
>
Tue, 23 Aug 2016 09:18:59 +0000
(11:18 +0200)
committer
Alex Deucher
<
[email protected]
>
Wed, 24 Aug 2016 20:25:07 +0000
(16:25 -0400)
Try to be clean here, even when it's a noop on x86.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
index 05865ce35351919cda021e1d5d121dabeda6758e..da52af2a935ac4f4e60ed9112faea1da1a149621 100644
(file)
--- 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)
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
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);