OSDN Git Service

drm/i915/execlists: Move RCS mmio workaround to new common wa_list
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 6 Dec 2018 18:07:13 +0000 (18:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 6 Dec 2018 20:45:40 +0000 (20:45 +0000)
commit5a688ee3a224a9042627441fe6e82bae130be098
treef6756a6a378705aa7f625aeb0fc45d1b35355410
parent3abd6143f97114360118b43f6465abb207be905a
drm/i915/execlists: Move RCS mmio workaround to new common wa_list

We can move the remaining RCS workarounds applied to only gen8 to the
engine->wa_list, and then reduce all engine->init_hw callbacks to common
code. The benefit of using the new wa_list is that we verify that the
registers are indeed restored and keep their magic values.

v2: INSTPM_FORCE_ORDERING is already part of gen8_ctx_workarounds, and
as confirmed by the mmio verification is a part of the context image!
v3: MI_MODE is already part of gen8_ctx_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/20181206180713.6827-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c