drm/i915/gt: Move hsw GT workarounds from init_clock_gating to workarounds
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 11 Jun 2020 09:30:15 +0000 (10:30 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 11 Jun 2020 15:11:39 +0000 (16:11 +0100)
commitf93ec5fb563779bda4501890b1854526de58e0f1
treeb5b625b561858bccb9a4723e50b160ea2dd2650a
parentad2ad80e646242bc9b0bb91f72a1dd211b7d8b4c
drm/i915/gt: Move hsw GT workarounds from init_clock_gating to workarounds

Rescue the GT workarounds from being buried inside init_clock_gating so
that we remember to apply them after a GT reset, and that they are
included in our verification that the workarounds are applied.

v2: Leave HSW_SCRATCH to set an explicit value, not or in our disable
bit.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2011
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20200611093015.11370-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_workarounds.c
drivers/gpu/drm/i915/intel_pm.c