From: Imre Deak <imre.deak@intel.com>
To: "Hogander, Jouni" <jouni.hogander@intel.com>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 1/2] drm/i915/ddi: Fix cleanup after DP connector init failure
Date: Fri, 8 May 2026 15:38:55 +0300 [thread overview]
Message-ID: <af3ZX8JZHwo91I6t@ideak-desk.lan> (raw)
In-Reply-To: <789f07e13b359dff1f4fb273a4a27dea7eb51883.camel@intel.com>
On Fri, May 08, 2026 at 03:26:43PM +0300, Hogander, Jouni wrote:
> On Thu, 2026-05-07 at 09:59 +0300, Imre Deak wrote:
> > Fix the error path during DDI encoder/connector initialization by
> > calling the missing TC port cleanup function.
> >
> > This fixes the leaked TC port state.
>
> Do we need "Fixes:" line here? Otherwise patch looks ok:
Wondered about it too. Fixes: involves the automatic stable backporting
of the patch and the criteria for a stable backport is whether the patch
fixes an actual usecase for someone. The likelihood for that is close to
0, it's an error path and even if that ran for someone (due to -ENOMEM)
the leaks wouldn't be the real issue.
> Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
>
> >
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
> > ---
> > drivers/gpu/drm/i915/display/intel_ddi.c | 13 ++++++++-----
> > 1 file changed, 8 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c
> > b/drivers/gpu/drm/i915/display/intel_ddi.c
> > index 2681940a5cfe3..e37cc32ee83ed 100644
> > --- a/drivers/gpu/drm/i915/display/intel_ddi.c
> > +++ b/drivers/gpu/drm/i915/display/intel_ddi.c
> > @@ -5411,7 +5411,7 @@ void intel_ddi_init(struct intel_display
> > *display,
> > if (need_aux_ch(encoder, init_dp)) {
> > dig_port->aux_ch = intel_dp_aux_ch(encoder);
> > if (dig_port->aux_ch == AUX_CH_NONE)
> > - goto err;
> > + goto err_aux_ch_init;
> > }
> >
> > /*
> > @@ -5447,7 +5447,7 @@ void intel_ddi_init(struct intel_display
> > *display,
> > dig_port->unlock = intel_tc_port_unlock;
> >
> > if (intel_tc_port_init(dig_port, is_legacy) < 0)
> > - goto err;
> > + goto err_aux_ch_init;
> > }
> >
> > drm_WARN_ON(display->drm, port > PORT_I);
> > @@ -5478,7 +5478,7 @@ void intel_ddi_init(struct intel_display
> > *display,
> >
> > if (init_dp) {
> > if (intel_ddi_init_dp_connector(dig_port))
> > - goto err;
> > + goto err_dp_connector_init;
> >
> > dig_port->hpd_pulse = intel_dp_hpd_pulse;
> >
> > @@ -5492,12 +5492,15 @@ void intel_ddi_init(struct intel_display
> > *display,
> > */
> > if (encoder->type != INTEL_OUTPUT_EDP && init_hdmi) {
> > if (intel_ddi_init_hdmi_connector(dig_port))
> > - goto err;
> > + goto err_dp_connector_init;
> > }
> >
> > return;
> >
> > -err:
> > +err_dp_connector_init:
> > + if (intel_encoder_is_tc(encoder))
> > + intel_tc_port_cleanup(dig_port);
> > +err_aux_ch_init:
> > drm_encoder_cleanup(&encoder->base);
> > kfree(dig_port);
> > }
>
prev parent reply other threads:[~2026-05-08 12:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 6:59 [PATCH 1/2] drm/i915/ddi: Fix cleanup after DP connector init failure Imre Deak
2026-05-07 6:59 ` [PATCH 2/2] drm/i915/ddi: Fix cleanup after HDMI " Imre Deak
2026-05-08 14:29 ` Hogander, Jouni
2026-05-08 14:34 ` Imre Deak
2026-05-07 10:58 ` ✗ i915.CI.BAT: failure for series starting with [1/2] drm/i915/ddi: Fix cleanup after DP " Patchwork
2026-05-08 10:10 ` Imre Deak
2026-05-08 12:26 ` [PATCH 1/2] " Hogander, Jouni
2026-05-08 12:38 ` Imre Deak [this message]
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=af3ZX8JZHwo91I6t@ideak-desk.lan \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jouni.hogander@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