From: "Almahallawy, Khaled" <khaled.almahallawy@intel.com>
To: "intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"Deak, Imre" <imre.deak@intel.com>
Cc: "Murthy, Arun R" <arun.r.murthy@intel.com>,
"Kandpal, Suraj" <suraj.kandpal@intel.com>
Subject: Re: [PATCH] drm/i915/dp_mst: Fix getting display pointer in intel_dp_mst_compute_min_hblank()
Date: Wed, 5 Feb 2025 23:41:45 +0000 [thread overview]
Message-ID: <16754ee4cd21d99c1e81c5953134b496dd07630f.camel@intel.com> (raw)
In-Reply-To: <20250205232855.3017421-1-imre.deak@intel.com>
Thank You for the fix.
Tested-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
Reviewed-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
On Thu, 2025-02-06 at 01:28 +0200, Imre Deak wrote:
> 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;
next prev parent reply other threads:[~2025-02-05 23:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2025-02-05 23:57 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2025-02-06 0:17 ` [PATCH v2] " Imre Deak
2025-02-06 14:59 ` ✓ i915.CI.BAT: success for " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16754ee4cd21d99c1e81c5953134b496dd07630f.camel@intel.com \
--to=khaled.almahallawy@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=suraj.kandpal@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox