drm/i915/mtl: Fix Wa_16015201720 implementation
authorRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Wed, 1 Mar 2023 20:10:49 +0000 (12:10 -0800)
committerJani Nikula <jani.nikula@intel.com>
Mon, 20 Mar 2023 08:59:54 +0000 (10:59 +0200)
commit364ac7863fc161841e86388884bb7d5f4048031a
tree0b8ece09bc5b502ac81fa557b8152b5952c74868
parente8d018dd0257f744ca50a729e3d042cf2ec9da65
drm/i915/mtl: Fix Wa_16015201720 implementation

The commit 2357f2b271ad ("drm/i915/mtl: Initial display workarounds")
extended the workaround Wa_16015201720 to MTL. However the registers
that the original WA implemented moved for MTL.

Implement the workaround with the correct register.

v3: Skip clock gating for pipe C, D DMC's and fix the title

Fixes: 2357f2b271ad ("drm/i915/mtl: Initial display workarounds")
Cc: Matt Atwood <matthew.s.atwood@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230301201053.928709-2-radhakrishna.sripada@intel.com
(cherry picked from commit 0188be507b973e36f637ba010a369057c8cb7282)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dmc.c
drivers/gpu/drm/i915/i915_reg.h