diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2017-08-11 11:43:17 +0200 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2017-08-15 15:28:22 +0200 |
commit | 65375b873cb553c1e52d6e0d77d954011f44433e (patch) | |
tree | fddf8f3654a5fa4029319d9cafb171176fb86ef3 | |
parent | 5247e2aac5c932e6d59af7715854d1bb47ebdf89 (diff) |
drm/etnaviv: switch GEM allocations to __GFP_RETRY_MAYFAIL
Now that we have a GFP flags with the expected semantic of "try reasonably
hard to find memory, but don't OOM", we should start to use it.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem.c b/drivers/gpu/drm/etnaviv/etnaviv_gem.c index 3a2142055392..5a634594a6ce 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gem.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem.c @@ -663,7 +663,7 @@ static struct drm_gem_object *__etnaviv_gem_new(struct drm_device *dev, */ mapping = obj->filp->f_mapping; mapping_set_gfp_mask(mapping, GFP_HIGHUSER | - __GFP_NORETRY | __GFP_NOWARN); + __GFP_RETRY_MAYFAIL | __GFP_NOWARN); } if (ret) |