projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e11ddff
)
drm/amdgpu: fix the clearing wb size
author
Huang Rui
<ray.huang@amd.com>
Wed, 15 Mar 2017 02:13:32 +0000
(10:13 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 16 Mar 2017 14:06:35 +0000
(10:06 -0400)
The clearing wb size should be the one that it is assigned.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index
a3a105e
..
de0cf33
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@
-475,7
+475,7
@@
static int amdgpu_wb_init(struct amdgpu_device *adev)
int r;
if (adev->wb.wb_obj == NULL) {
- r = amdgpu_bo_create_kernel(adev, AMDGPU_MAX_WB *
4
,
+ r = amdgpu_bo_create_kernel(adev, AMDGPU_MAX_WB *
sizeof(uint32_t)
,
PAGE_SIZE, AMDGPU_GEM_DOMAIN_GTT,
&adev->wb.wb_obj, &adev->wb.gpu_addr,
(void **)&adev->wb.wb);
@@
-488,7
+488,7
@@
static int amdgpu_wb_init(struct amdgpu_device *adev)
memset(&adev->wb.used, 0, sizeof(adev->wb.used));
/* clear wb memory */
- memset((char *)adev->wb.wb, 0, AMDGPU_
GPU_PAGE_SIZE
);
+ memset((char *)adev->wb.wb, 0, AMDGPU_
MAX_WB * sizeof(uint32_t)
);
}
return 0;