aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJouni Högander <jouni.hogander@intel.com>2025-07-22 15:56:16 +0300
committerTvrtko Ursulin <tursulin@ursulin.net>2025-07-29 10:20:33 +0100
commitc338923c4c8a89bb81f585732b9b49fcf9465cdd (patch)
tree8ebcd7e58dc84a0372992f01948707ed5f12b393
parentdrm/i915/display: Write PHY_CMN1_CONTROL only when using AUXLess ALPM (diff)
downloadwireguard-linux-c338923c4c8a89bb81f585732b9b49fcf9465cdd.tar.xz
wireguard-linux-c338923c4c8a89bb81f585732b9b49fcf9465cdd.zip
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 (cherry picked from commit d487ed7e2b4ab3126239ab93324405eb1e45ccf5) Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
-rw-r--r--drivers/gpu/drm/i915/display/intel_cx0_phy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_cx0_phy.c b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
index 2b0305bb04cd..2993dabdbee6 100644
--- a/drivers/gpu/drm/i915/display/intel_cx0_phy.c
+++ b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
@@ -3239,13 +3239,14 @@ void intel_lnl_mac_transmit_lfps(struct intel_encoder *encoder,
const struct intel_crtc_state *crtc_state)
{
struct intel_display *display = to_intel_display(encoder);
- u8 owned_lane_mask = intel_cx0_get_owned_lane_mask(encoder);
int i;
+ u8 owned_lane_mask;
if (DISPLAY_VER(display) < 20 ||
!intel_alpm_is_alpm_aux_less(enc_to_intel_dp(encoder), crtc_state))
return;
+ owned_lane_mask = intel_cx0_get_owned_lane_mask(encoder);
for (i = 0; i < 4; i++) {
int tx = i % 2 + 1;
u8 lane_mask = i < 2 ? INTEL_CX0_LANE0 : INTEL_CX0_LANE1;