drm/i915: add a context parameter to {en, dis}able zero address mapping
authorDavid Weinehall <david.weinehall@linux.intel.com>
Wed, 20 May 2015 14:00:13 +0000 (17:00 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 29 May 2015 08:15:19 +0000 (10:15 +0200)
commitb1b38278e12b04cf9a227f6af2c24651cf6e8a85
treee433227e4e8f1fffc26c55c55ade6086b1ea0197
parent4373f0f24ed52549d4d6a0d7e155301476ec0a36
drm/i915: add a context parameter to {en, dis}able zero address mapping

Export a new context parameter that can be set/queried through the
context_{get,set}param ioctls.  This parameter is passed as a context
flag and decides whether or not a GPU address mapping is allowed to
be made at address zero.  The default is to allow such mappings.

Signed-off-by: David Weinehall <david.weinehall@intel.com>
Acked-by: "Zou, Nanhai" <nanhai.zou@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c
include/uapi/drm/i915_drm.h