aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGustavo Sousa <gustavo.sousa@intel.com>2025-02-27 17:28:17 -0300
committerGustavo Sousa <gustavo.sousa@intel.com>2025-02-28 11:14:53 -0300
commit02649bbde017a3ff0ff24105d791016022bd443d (patch)
tree3080e99df1d6838fb229f0ab34ef85c13cdbb024
parentMerge drm/drm-next into drm-intel-next (diff)
downloadwireguard-linux-02649bbde017a3ff0ff24105d791016022bd443d.tar.xz
wireguard-linux-02649bbde017a3ff0ff24105d791016022bd443d.zip
drm/i915/display: Use IP version check for Wa_14020863754
Wa_14020863754 applies to the display IP, so we should be checking on display IP version instead of platform. So, let's replace display->platform.battlemage with the proper IP version check (14.01 for Xe2_HPD). Furthermore, for workarounds, we should be checking on full IP versions to avoid applying the workaround to some variant of the IP that could theoretically appear in the future (which is likely to have a different minor release number), since the issue addressed by the workaround could be fixed in such new release. Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250227-xe3lpd-wa-14020863754-v2-1-92b35de1c563@intel.com Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
-rw-r--r--drivers/gpu/drm/i915/display/intel_audio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_audio.c b/drivers/gpu/drm/i915/display/intel_audio.c
index aaba438ab41e..115c30a5ff70 100644
--- a/drivers/gpu/drm/i915/display/intel_audio.c
+++ b/drivers/gpu/drm/i915/display/intel_audio.c
@@ -190,7 +190,8 @@ static const struct hdmi_aud_ncts hdmi_aud_ncts_36bpp[] = {
*/
static bool needs_wa_14020863754(struct intel_display *display)
{
- return DISPLAY_VER(display) == 20 || display->platform.battlemage;
+ return DISPLAY_VERx100(display) == 2000 ||
+ DISPLAY_VERx100(display) == 1401;
}
/* get AUD_CONFIG_PIXEL_CLOCK_HDMI_* value for mode */