All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/dp_mst: Fix getting display pointer in intel_dp_mst_compute_min_hblank()
@ 2025-02-05 23:28 Imre Deak
  2025-02-05 23:41 ` Almahallawy, Khaled
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: Imre Deak @ 2025-02-05 23:28 UTC (permalink / raw)
  To: intel-gfx; +Cc: Khaled Almahallawy, Arun R Murthy, Suraj Kandpal

The MST intel_connector::encoder pointer is NULL if the connector hasn't
been enabled before, so it can't be used to retrieve the display
pointer. Use instead the connector pointer directly, which also
simplifies things.

Fixes: a5ebe00c2ace ("drm/i915/dp: Guarantee a minimum HBlank time")
Reported-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
Cc: Arun R Murthy <arun.r.murthy@intel.com>
Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp_mst.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
index f58d56a1ea03a..1d43c2574e616 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
@@ -213,8 +213,7 @@ static void intel_dp_mst_compute_min_hblank(struct intel_crtc_state *crtc_state,
 					    struct intel_connector *connector,
 					    int bpp_x16)
 {
-	struct intel_encoder *encoder = connector->encoder;
-	struct intel_display *display = to_intel_display(encoder);
+	struct intel_display *display = to_intel_display(connector);
 	const struct drm_display_mode *adjusted_mode =
 					&crtc_state->hw.adjusted_mode;
 	int symbol_size = intel_dp_is_uhbr(crtc_state) ? 32 : 8;
-- 
2.44.2


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-02-06 19:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-05 23:28 [PATCH] drm/i915/dp_mst: Fix getting display pointer in intel_dp_mst_compute_min_hblank() Imre Deak
2025-02-05 23:41 ` Almahallawy, Khaled
2025-02-05 23:57 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2025-02-06  0:17 ` [PATCH v2] " Imre Deak
2025-02-06  1:23 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-06  1:23 ` ✓ CI.checkpatch: " Patchwork
2025-02-06  1:24 ` ✓ CI.KUnit: " Patchwork
2025-02-06  1:41 ` ✓ CI.Build: " Patchwork
2025-02-06  1:43 ` ✓ CI.Hooks: " Patchwork
2025-02-06  1:44 ` ✓ CI.checksparse: " Patchwork
2025-02-06  2:04 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-02-06  2:57 ` ✗ Xe.CI.Full: " Patchwork
2025-02-06 14:59 ` ✓ i915.CI.BAT: success " Patchwork
2025-02-06 15:06 ` ✓ i915.CI.BAT: success for drm/i915/dp_mst: Fix getting display pointer in intel_dp_mst_compute_min_hblank() (rev2) Patchwork
2025-02-06 16:43   ` Imre Deak
2025-02-06 19:49 ` ✓ i915.CI.Full: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.