[PATCH] drm,i915: Introduce drm_malloc_gfp()

2015-10-08 Thread Ville Syrjälä
On Thu, Oct 08, 2015 at 02:39:24PM +0100, Chris Wilson wrote: > I have instances where I want to use drm_malloc_ab() but with a custom > gfp mask. And with those, where I want a temporary allocation, I want to > try a high-order kmalloc() before using a vmalloc(). > > So refactor my usage into drm

[PATCH] drm,i915: Introduce drm_malloc_gfp()

2015-10-08 Thread Chris Wilson
I have instances where I want to use drm_malloc_ab() but with a custom gfp mask. And with those, where I want a temporary allocation, I want to try a high-order kmalloc() before using a vmalloc(). So refactor my usage into drm_malloc_gfp(). Signed-off-by: Chris Wilson Cc: dri-devel at lists.free