]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid allocating a vmap arena for a single page
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Apr 2016 11:11:14 +0000 (12:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Apr 2016 16:13:36 +0000 (17:13 +0100)
commitfb8621d3bee88badeb25dccce0fb59ad145dba9e
tree1d9d36caed31d6b5644330137515f227cc53ac14
parentf2a85e1975d80d1b535b4c21517ed15226b96c87
drm/i915: Avoid allocating a vmap arena for a single page

If we want a contiguous mapping of a single page sized object, we can
forgo using vmap() and just use a regular kmap(). Note that this is only
suitable if the desired pgprot_t is compatible.

v2: Use is_vmalloc_addr()

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Dave Gordon <david.s.gordon@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460113874-17366-7-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
drivers/gpu/drm/i915/i915_gem.c