Skip to content

Commit 3eb6357

Browse files
hogandertursulin
authored andcommitted
drm/i915/display: Ensure phy is accessible on lfps configuration
Ensure phy is accessible on lfps configuration by adding intel_cx0_phy_transaction_begin/end around it. Fixes: 9dc6196 ("drm/i915/display: Add function to configure LFPS sending") Suggested-by: Gustavo Sousa <gustavo.sousa@intel.com> 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-4-jouni.hogander@intel.com (cherry picked from commit cf433f9) Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
1 parent c338923 commit 3eb6357

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/gpu/drm/i915/display/intel_cx0_phy.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3239,6 +3239,7 @@ void intel_lnl_mac_transmit_lfps(struct intel_encoder *encoder,
32393239
const struct intel_crtc_state *crtc_state)
32403240
{
32413241
struct intel_display *display = to_intel_display(encoder);
3242+
intel_wakeref_t wakeref;
32423243
int i;
32433244
u8 owned_lane_mask;
32443245

@@ -3247,6 +3248,9 @@ void intel_lnl_mac_transmit_lfps(struct intel_encoder *encoder,
32473248
return;
32483249

32493250
owned_lane_mask = intel_cx0_get_owned_lane_mask(encoder);
3251+
3252+
wakeref = intel_cx0_phy_transaction_begin(encoder);
3253+
32503254
for (i = 0; i < 4; i++) {
32513255
int tx = i % 2 + 1;
32523256
u8 lane_mask = i < 2 ? INTEL_CX0_LANE0 : INTEL_CX0_LANE1;
@@ -3258,6 +3262,8 @@ void intel_lnl_mac_transmit_lfps(struct intel_encoder *encoder,
32583262
CONTROL0_MAC_TRANSMIT_LFPS,
32593263
CONTROL0_MAC_TRANSMIT_LFPS, MB_WRITE_COMMITTED);
32603264
}
3265+
3266+
intel_cx0_phy_transaction_end(encoder, wakeref);
32613267
}
32623268

32633269
static u8 cx0_power_control_disable_val(struct intel_encoder *encoder)

0 commit comments

Comments
 (0)