aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/drm/i915_drm.h
diff options
context:
space:
mode:
authorDavid Weinehall <david.weinehall@linux.intel.com>2015-05-20 17:00:13 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-05-29 10:15:19 +0200
commitb1b38278e12b04cf9a227f6af2c24651cf6e8a85 (patch)
treee433227e4e8f1fffc26c55c55ade6086b1ea0197 /include/uapi/drm/i915_drm.h
parentdrm/i915: disable IPS while getting the sink CRCs (diff)
downloadlinux-dev-b1b38278e12b04cf9a227f6af2c24651cf6e8a85.tar.xz
linux-dev-b1b38278e12b04cf9a227f6af2c24651cf6e8a85.zip
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>
Diffstat (limited to 'include/uapi/drm/i915_drm.h')
-rw-r--r--include/uapi/drm/i915_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
index 6e1a2ed116cb..92d61a7c942a 100644
--- a/include/uapi/drm/i915_drm.h
+++ b/include/uapi/drm/i915_drm.h
@@ -1106,6 +1106,7 @@ struct drm_i915_gem_context_param {
__u32 size;
__u64 param;
#define I915_CONTEXT_PARAM_BAN_PERIOD 0x1
+#define I915_CONTEXT_PARAM_NO_ZEROMAP 0x2
__u64 value;
};