提交 7c2a9acf 编写于 作者: J Jerome Glisse 提交者: Dave Airlie

drm/ttm: non pooled page allocation should have GFP_USER set

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: NJerome Glisse <jglisse@redhat.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 37cf6b03
...@@ -667,7 +667,7 @@ int ttm_get_pages(struct list_head *pages, int flags, ...@@ -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 ttm_page_pool *pool = ttm_get_pool(flags, cstate);
struct page *p = NULL; struct page *p = NULL;
int gfp_flags = 0; int gfp_flags = GFP_USER;
int r; int r;
/* set zero flag for page allocation if required */ /* set zero flag for page allocation if required */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册