diff options
author | 2014-02-18 10:15:56 -0800 | |
---|---|---|
committer | 2014-04-01 22:58:15 +0200 | |
commit | d728c8ef8bea6e81f44933c0237531cda499577e (patch) | |
tree | aabab09a47102cdb0924ed77d8b2cc9869eed385 /drivers/gpu/drm/i915/i915_dma.c | |
parent | drm/i915: Reject commands that would store to global HWS page (diff) | |
download | linux-d728c8ef8bea6e81f44933c0237531cda499577e.tar.gz linux-d728c8ef8bea6e81f44933c0237531cda499577e.tar.bz2 linux-d728c8ef8bea6e81f44933c0237531cda499577e.zip |
drm/i915: Add a CMD_PARSER_VERSION getparam
So userspace can query the kernel for command parser support.
v2: Add i915_cmd_parser_get_version(), history log, and kerneldoc
OTC-Tracker: AXIA-4631
Change-Id: I58af650db9f6753c2dcac9c54ab432fd31db302f
Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 96177eec0a0e..0b38f88c35f0 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1017,6 +1017,9 @@ static int i915_getparam(struct drm_device *dev, void *data, case I915_PARAM_HAS_EXEC_HANDLE_LUT: value = 1; break; + case I915_PARAM_CMD_PARSER_VERSION: + value = i915_cmd_parser_get_version(); + break; default: DRM_DEBUG("Unknown parameter %d\n", param->param); return -EINVAL; |