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:
ba7f478
)
drm/amdgpu: fix total size calculation
author
Christian König
<
[email protected]
>
Mon, 30 Jul 2018 13:33:34 +0000
(15:33 +0200)
committer
Alex Deucher
<
[email protected]
>
Tue, 31 Jul 2018 21:58:16 +0000
(16:58 -0500)
long might only be 32bit in size and we can easily use more than 4GB
here.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Chunming Zhou <
[email protected]
>
Acked-by: Huang Rui <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
index 944868e4711984b0e9c50b0e5a6f974ffe9983ae..6728448167ba37b61164bc6464418b5b88e27b3d 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
@@
-105,9
+105,9
@@
static int amdgpu_bo_list_set(struct amdgpu_device *adev,
struct amdgpu_bo *oa_obj = adev->gds.oa_gfx_bo;
unsigned last_entry = 0, first_userptr = num_entries;
+ uint64_t total_size = 0;
unsigned i;
int r;
- unsigned long total_size = 0;
array = kvmalloc_array(num_entries, sizeof(struct amdgpu_bo_list_entry), GFP_KERNEL);
if (!array)