* after the PLL is enabled (which is already done as part of the
* normal flow of _bxt_set_cdclk()).
*/
- if (intel_display_wa(display, 13012396614))
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_13012396614))
intel_de_rmw(display, CDCLK_CTL, MDCLK_SOURCE_SEL_MASK, MDCLK_SOURCE_SEL_CD2XCLK);
intel_de_rmw(display, BXT_DE_PLL_ENABLE,
* icl_cdclk_pll_disable(). Here we are just making sure
* we keep the expected value.
*/
- if (intel_display_wa(display, 13012396614) && vco == 0)
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_13012396614) &&
+ vco == 0)
val |= MDCLK_SOURCE_SEL_CD2XCLK;
else
val |= xe2lpd_mdclk_source_sel(display);
if (audio_enabling(old_crtc_state, new_crtc_state))
intel_encoders_audio_enable(state, crtc);
- if (intel_display_wa(display, 14011503117)) {
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_14011503117)) {
if (old_crtc_state->pch_pfit.enabled != new_crtc_state->pch_pfit.enabled)
adl_scaler_ecc_unmask(new_crtc_state);
}
if (irq_pipe_mask) {
gen8_irq_power_well_post_enable(display, irq_pipe_mask);
- if (intel_display_wa(display, 22021048059))
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_22021048059))
dss_pipe_gating_enable_disable(display, irq_pipe_mask, false);
}
}
u8 irq_pipe_mask)
{
if (irq_pipe_mask) {
- if (intel_display_wa(display, 22021048059))
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_22021048059))
dss_pipe_gating_enable_disable(display, irq_pipe_mask, true);
gen8_irq_power_well_pre_disable(display, irq_pipe_mask);
case INTEL_DISPLAY_WA_22021048059:
return IS_DISPLAY_VER(display, 14, 35);
default:
- drm_WARN(display->drm, 1, "Missing Wa number: %s\n", name);
+ drm_WARN(display->drm, 1, "Missing Wa: %s\n", name);
break;
}
bool __intel_display_wa(struct intel_display *display, enum intel_display_wa wa, const char *name);
#define intel_display_wa(__display, __wa) \
- __intel_display_wa((__display), INTEL_DISPLAY_WA_##__wa, __stringify(__wa))
+ __intel_display_wa((__display), __wa, __stringify(__wa))
#endif
* Fixes: Screen flicker with FBC and Package C state enabled
* Workaround: Forced SLB invalidation before start of new frame.
*/
- if (intel_display_wa(display, 22014263786))
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_22014263786))
intel_de_rmw(display, ILK_DPFC_CHICKEN(fbc->id),
0, DPFC_CHICKEN_FORCE_SLB_INVALIDATION);
* Fixes: SoC hardware issue in read caching
* Workaround: disable cache read setting which is enabled by default.
*/
- if (!intel_display_wa(display, 14025769978))
+ if (!intel_display_wa(display, INTEL_DISPLAY_WA_14025769978))
/* Cache read enable is set by default */
reg |= FBC_SYS_CACHE_READ_ENABLE;
return 0;
}
- if (intel_display_wa(display, 16023588340)) {
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_16023588340)) {
plane_state->no_fbc_reason = "Wa_16023588340";
return 0;
}
* Fixes: Underrun during media decode
* Workaround: Do not enable FBC
*/
- if (intel_display_wa(display, 15018326506)) {
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_15018326506)) {
plane_state->no_fbc_reason = "Wa_15018326506";
return 0;
}
preserve_bits |= GPIO_DATA_PULLUP_DISABLE | GPIO_CLOCK_PULLUP_DISABLE;
/* Wa_16025573575: the masks bits need to be preserved through out */
- if (intel_display_wa(display, 16025573575))
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_16025573575))
preserve_bits |= GPIO_CLOCK_DIR_MASK | GPIO_CLOCK_VAL_MASK |
GPIO_DATA_DIR_MASK | GPIO_DATA_VAL_MASK;
if (display->platform.pineview)
pnv_gmbus_clock_gating(display, false);
- if (intel_display_wa(display, 16025573575))
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_16025573575))
ptl_handle_mask_bits(bus, true);
set_data(bus, 1);
if (display->platform.pineview)
pnv_gmbus_clock_gating(display, true);
- if (intel_display_wa(display, 16025573575))
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_16025573575))
ptl_handle_mask_bits(bus, false);
}
crtc_state->scaler_state.scaler_id < 0))
return;
- if (intel_display_wa(display, 14011503117))
+ if (intel_display_wa(display, INTEL_DISPLAY_WA_14011503117))
adl_scaler_ecc_mask(crtc_state);
drm_rect_init(&src, 0, 0,