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: Enable/disable casf

Call intel_casf_enable and intel_casf_disable
in atomic commit path to enable and disable casf.
Call intel_casf_update_strength to only update
the desired strength value.

v2: Introduce casf_enable here.[Ankit]
v3: Use is_disabling in casf_disabling.[Ankit]
v4: Swap old_state and new_state param.[Ankit]
v5: In disable fn move win_sz after sharpness_ctl.
v6: Rebase and update commit message.

Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patch.msgid.link/20251028120747.3027332-10-ankit.k.nautiyal@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

authored by

Nemesa Garg and committed by
Jani Nikula
39f39d2e 5f331b24

+26
+26
drivers/gpu/drm/i915/display/intel_display.c
··· 980 980 memcmp(old_crtc_state->eld, new_crtc_state->eld, MAX_ELD_BYTES) != 0); 981 981 } 982 982 983 + static bool intel_casf_enabling(const struct intel_crtc_state *new_crtc_state, 984 + const struct intel_crtc_state *old_crtc_state) 985 + { 986 + if (!new_crtc_state->hw.active) 987 + return false; 988 + 989 + return is_enabling(hw.casf_params.casf_enable, old_crtc_state, new_crtc_state); 990 + } 991 + 992 + static bool intel_casf_disabling(const struct intel_crtc_state *old_crtc_state, 993 + const struct intel_crtc_state *new_crtc_state) 994 + { 995 + if (!new_crtc_state->hw.active) 996 + return false; 997 + 998 + return is_disabling(hw.casf_params.casf_enable, old_crtc_state, new_crtc_state); 999 + } 1000 + 983 1001 #undef is_disabling 984 1002 #undef is_enabling 985 1003 ··· 1152 1134 1153 1135 if (audio_disabling(old_crtc_state, new_crtc_state)) 1154 1136 intel_encoders_audio_disable(state, crtc); 1137 + 1138 + if (intel_casf_disabling(old_crtc_state, new_crtc_state)) 1139 + intel_casf_disable(new_crtc_state); 1155 1140 1156 1141 intel_drrs_deactivate(old_crtc_state); 1157 1142 ··· 6755 6734 cmrr_params_changed(old_crtc_state, new_crtc_state)) 6756 6735 intel_vrr_set_transcoder_timings(new_crtc_state); 6757 6736 } 6737 + 6738 + if (intel_casf_enabling(new_crtc_state, old_crtc_state)) 6739 + intel_casf_enable(new_crtc_state); 6740 + else if (new_crtc_state->hw.casf_params.strength != old_crtc_state->hw.casf_params.strength) 6741 + intel_casf_update_strength(new_crtc_state); 6758 6742 6759 6743 intel_fbc_update(state, crtc); 6760 6744