drm/i915/gt: Pull engine w/a initialisation into common
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jul 2019 13:58:05 +0000 (14:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jul 2019 18:22:11 +0000 (19:22 +0100)
commitab9e2f77768211a8ef5263e0c3a939c9b2de01a7
tree32b2d24aa8945fa15c0be36f87c4cbc6b85921e3
parent4a54da35102925401b1d670de468127914c67034
drm/i915/gt: Pull engine w/a initialisation into common

We need to setup the workarounds on all engines, with the knowledge
about which platforms each workaround applies to kept together in the
workaround list. As such, we can pull the w/a initialisation into the
common setup and try to avoid duplicating knowledge about when to setup
the workarounds.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190703135805.7310-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/intel_workarounds.c