projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37cf6b0
)
drm/ttm: non pooled page allocation should have GFP_USER set
author
Jerome Glisse
<jglisse@redhat.com>
Wed, 16 Jun 2010 08:45:22 +0000
(10:45 +0200)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 1 Jul 2010 01:59:25 +0000
(11:59 +1000)
Non pooled page allocation should have GFP_USER set so allocation
can wait and reclaim page from other process (ie non atomic).
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_page_alloc.c
b/drivers/gpu/drm/ttm/ttm_page_alloc.c
index ef910694bd634807631dd0958831bfa8c44421df..2f047577b1e391d1d09a9ba4407c0bc3c4b5b4fc 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_page_alloc.c
+++ b/
drivers/gpu/drm/ttm/ttm_page_alloc.c
@@
-667,7
+667,7
@@
int ttm_get_pages(struct list_head *pages, int flags,
{
struct ttm_page_pool *pool = ttm_get_pool(flags, cstate);
struct page *p = NULL;
- int gfp_flags =
0
;
+ int gfp_flags =
GFP_USER
;
int r;
/* set zero flag for page allocation if required */