mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
drm/i915/display: convert W/As in intel_ddi.c to new framework
Convert the low-hanging fruits of workaround checks to the workaround framework. Instead of having display structure checks for the workarounds all over, concentrate the checks in intel_display_wa.c. Acked-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://patch.msgid.link/20260305100100.332956-7-luciano.coelho@intel.com Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
7bad5d5c18
commit
cc81de748d
|
|
@ -52,6 +52,7 @@
|
|||
#include "intel_display_regs.h"
|
||||
#include "intel_display_types.h"
|
||||
#include "intel_display_utils.h"
|
||||
#include "intel_display_wa.h"
|
||||
#include "intel_dkl_phy.h"
|
||||
#include "intel_dkl_phy_regs.h"
|
||||
#include "intel_dp.h"
|
||||
|
|
@ -1401,8 +1402,7 @@ static void tgl_dkl_phy_set_signal_levels(struct intel_encoder *encoder,
|
|||
int level;
|
||||
|
||||
/* Wa_16011342517:adl-p */
|
||||
if (display->platform.alderlake_p &&
|
||||
IS_DISPLAY_STEP(display, STEP_A0, STEP_D0)) {
|
||||
if (intel_display_wa(display, INTEL_DISPLAY_WA_16011342517)) {
|
||||
if ((intel_encoder_is_hdmi(encoder) &&
|
||||
crtc_state->port_clock == 594000) ||
|
||||
(intel_encoder_is_dp(encoder) &&
|
||||
|
|
|
|||
|
|
@ -99,6 +99,9 @@ bool __intel_display_wa(struct intel_display *display, enum intel_display_wa wa,
|
|||
return DISPLAY_VER(display) == 20;
|
||||
case INTEL_DISPLAY_WA_15018326506:
|
||||
return display->platform.battlemage;
|
||||
case INTEL_DISPLAY_WA_16011342517:
|
||||
return display->platform.alderlake_p &&
|
||||
IS_DISPLAY_STEP(display, STEP_A0, STEP_D0);
|
||||
case INTEL_DISPLAY_WA_16023588340:
|
||||
return intel_display_needs_wa_16023588340(display);
|
||||
case INTEL_DISPLAY_WA_16025573575:
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ enum intel_display_wa {
|
|||
INTEL_DISPLAY_WA_14025769978,
|
||||
INTEL_DISPLAY_WA_15013987218,
|
||||
INTEL_DISPLAY_WA_15018326506,
|
||||
INTEL_DISPLAY_WA_16011342517,
|
||||
INTEL_DISPLAY_WA_16023588340,
|
||||
INTEL_DISPLAY_WA_16025573575,
|
||||
INTEL_DISPLAY_WA_22010178259,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user