]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/display: Eliminate IS_METEORLAKE checks
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 21 Aug 2023 18:06:28 +0000 (11:06 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 22 Aug 2023 00:13:11 +0000 (17:13 -0700)
commite388ae97e2253363275396b0f74c0df7d3f03b15
tree8a4ab98009656b17460446ea1f8549b602ef3718
parent213454b3af2e35c2ce9bbfa3e648bcde6d60eac5
drm/i915/display: Eliminate IS_METEORLAKE checks

Most of the IS_METEORLAKE checks in the display code shouldn't actually
be tied to MTL as a platform, but rather to the Xe_LPD+ display IP
(which is used in MTL, but may show up again in future platforms).  In
cases where we're trying to match that specific IP, use a version check
against IP_VER(14, 0).  For cases where we're just handling new behavior
introduced by this IP (but which may also be inherited by future IP as
well), use a ver >= 14 check.

The one exception here is the stolen memory workaround Wa_13010847436
(which is mislabelled as "Wa_22018444074" in the code).  That's truly a
MTL-specific issue rather than being tied to any of the IP blocks, so
leaving the condition as IS_METEORLAKE is correct there.

v2:
 - cdclk check should be >=, not >.  (Gustavo)

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230821180619.650007-19-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_cdclk.c
drivers/gpu/drm/i915/display/intel_cx0_phy.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_dmc.c