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:
e1f055b
)
drm/amdgpu: double the priority of kernel allocations
author
Christian König
<
[email protected]
>
Mon, 23 Jan 2017 21:28:06 +0000
(16:28 -0500)
committer
Alex Deucher
<
[email protected]
>
Fri, 27 Jan 2017 17:20:34 +0000
(12:20 -0500)
Give kernel allocations a higher priority cause it is often
more work to swap them back in.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Roger.He <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index c43e8c534899f7d0673c2f333e19e85eb3951a21..a97d88314b1b2c627a59f64c8787e6239cf4ce5c 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@
-387,6
+387,8
@@
int amdgpu_bo_create_restricted(struct amdgpu_device *adev,
return r;
bo->tbo.priority = ilog2(bo->tbo.num_pages);
+ if (kernel)
+ bo->tbo.priority *= 2;
bo->tbo.priority = min(bo->tbo.priority, (unsigned)(TTM_MAX_BO_PRIORITY - 1));
if (flags & AMDGPU_GEM_CREATE_VRAM_CLEARED &&