drm/i915/execlists: Refactor CSB state machine
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Jul 2019 10:04:54 +0000 (11:04 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Jul 2019 16:23:54 +0000 (17:23 +0100)
commit8759aa4cc1d36749845b7c99b12ab180e12f2699
tree491e8c63ba7c733bc18f61c19d6b0cc4b3215ea8
parentf80c9a9a04d3fa8231d2477f6a2c8b66a84ab41b
drm/i915/execlists: Refactor CSB state machine

Daniele pointed out that the CSB status information will change with
Tigerlake and suggested that we could rearrange our state machine to
hide the differences in generation. gcc also prefers the explicit state
machine, so make it so:

process_csb                                 1980    1967     -13

Suggested-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190701100502.15639-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c