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: Avoid unnecessarily calling intel_cx0_get_owned_lane_mask

Currently we are always calling intel_cx0_get_owned_lane_mask when
intel_lnl_mac_transmit_lfps is called. Avoid this in cases where it's not
needed.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://lore.kernel.org/r/20250722125618.1842615-3-jouni.hogander@intel.com

+2 -1
+2 -1
drivers/gpu/drm/i915/display/intel_cx0_phy.c
··· 3239 3239 const struct intel_crtc_state *crtc_state) 3240 3240 { 3241 3241 struct intel_display *display = to_intel_display(encoder); 3242 - u8 owned_lane_mask = intel_cx0_get_owned_lane_mask(encoder); 3243 3242 int i; 3243 + u8 owned_lane_mask; 3244 3244 3245 3245 if (DISPLAY_VER(display) < 20 || 3246 3246 !intel_alpm_is_alpm_aux_less(enc_to_intel_dp(encoder), crtc_state)) 3247 3247 return; 3248 3248 3249 + owned_lane_mask = intel_cx0_get_owned_lane_mask(encoder); 3249 3250 for (i = 0; i < 4; i++) { 3250 3251 int tx = i % 2 + 1; 3251 3252 u8 lane_mask = i < 2 ? INTEL_CX0_LANE0 : INTEL_CX0_LANE1;