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:
278b6fb
)
drm/amdgpu/sdma5: incorrect variable type for gpu address
author
Jack Xiao
<Jack.Xiao@amd.com>
Wed, 24 Apr 2019 02:55:20 +0000
(10:55 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:27 +0000
(18:59 -0500)
Incorrect programming with 64bit gpu address assignment for
32bit variable.
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
index 32b48c9ca051ac4cea84009331bcb1eaf5b91fd4..3747c3f1f0cc81b4a55b8d2bcb8ba7f4488cb112 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
@@
-565,7
+565,8
@@
static int sdma_v5_0_gfx_resume(struct amdgpu_device *adev)
u32 doorbell;
u32 doorbell_offset;
u32 temp;
- u32 wptr_gpu_addr, wptr_poll_cntl;
+ u32 wptr_poll_cntl;
+ u64 wptr_gpu_addr;
int i, r;
for (i = 0; i < adev->sdma.num_instances; i++) {