Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/display: convert W/As in skl_watermark.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-17-luciano.coelho@intel.com
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>

+5 -1
+2
drivers/gpu/drm/i915/display/intel_display_wa.c
··· 142 142 IS_DISPLAY_STEP(display, STEP_A0, STEP_B0)); 143 143 case INTEL_DISPLAY_WA_22010178259: 144 144 return DISPLAY_VER(display) == 12; 145 + case INTEL_DISPLAY_WA_22010947358: 146 + return display->platform.alderlake_p; 145 147 case INTEL_DISPLAY_WA_22012278275: 146 148 return display->platform.alderlake_p && 147 149 IS_DISPLAY_STEP(display, STEP_A0, STEP_E0);
+1
drivers/gpu/drm/i915/display/intel_display_wa.h
··· 54 54 INTEL_DISPLAY_WA_16025596647, 55 55 INTEL_DISPLAY_WA_18034343758, 56 56 INTEL_DISPLAY_WA_22010178259, 57 + INTEL_DISPLAY_WA_22010947358, 57 58 INTEL_DISPLAY_WA_22011320316, 58 59 INTEL_DISPLAY_WA_22012278275, 59 60 INTEL_DISPLAY_WA_22012358565,
+2 -1
drivers/gpu/drm/i915/display/skl_watermark.c
··· 22 22 #include "intel_display_rpm.h" 23 23 #include "intel_display_types.h" 24 24 #include "intel_display_utils.h" 25 + #include "intel_display_wa.h" 25 26 #include "intel_dram.h" 26 27 #include "intel_fb.h" 27 28 #include "intel_fixed.h" ··· 3413 3412 if (DISPLAY_VER(display) >= 14) 3414 3413 val |= dbuf_state->joined_mbus ? 3415 3414 MBUS_DBOX_A_CREDIT(12) : MBUS_DBOX_A_CREDIT(8); 3416 - else if (display->platform.alderlake_p) 3415 + else if (intel_display_wa(display, INTEL_DISPLAY_WA_22010947358)) 3417 3416 /* Wa_22010947358:adl-p */ 3418 3417 val |= dbuf_state->joined_mbus ? 3419 3418 MBUS_DBOX_A_CREDIT(6) : MBUS_DBOX_A_CREDIT(4);