]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Report command parser version 0 if disabled
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 May 2016 13:25:36 +0000 (14:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 May 2016 07:40:02 +0000 (08:40 +0100)
commit44f71bfd10451b71691946db34b307d7183a172a
tree3fa0b1567219c80d2c71b09e02ee4293a5766b7b
parentef68014b0e7e3e4cfd17cb7c70f278d05ff03a7d
drm/i915: Report command parser version 0 if disabled

If the command parser is not active, then it is appropriate to report it
as operating at version 0 as no higher mode is supported. This greatly
simplifies userspace querying for the command parser as we then do not
need to second guess when it will be active (a mixture of module
parameters and generational support, which may change over time).

v2: s/comand/command/ misspelling in comment

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1462368336-21230-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h