]> 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)
commit7d1af4644cffe6b81d8a3cf4c5be327d38e52829
tree3fa0b1567219c80d2c71b09e02ee4293a5766b7b
parent54c7cdd015f73ede6fca4148c62f4f2995c9a380
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