From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "Murthy, Arun R" <arun.r.murthy@intel.com>,
Dibin Moolakadan Subrahmanian
<dibin.moolakadan.subrahmanian@intel.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "Nikula, Jani" <jani.nikula@intel.com>,
"Manna, Animesh" <animesh.manna@intel.com>,
"Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Subject: Re: [PATCHv2 2/2] drm/i915/dp: Rename alpm_init to alpm_init_dpcd
Date: Tue, 3 Mar 2026 11:30:40 +0000 [thread overview]
Message-ID: <0c15c6bf69fb4d205d1ede8ff9d7bca2afbdaf17.camel@intel.com> (raw)
In-Reply-To: <IA0PR11MB730712128783EA3F50860777BA7FA@IA0PR11MB7307.namprd11.prod.outlook.com>
On Tue, 2026-03-03 at 04:10 +0000, Murthy, Arun R wrote:
>
> > -----Original Message-----
> > From: Dibin Moolakadan Subrahmanian
> > <dibin.moolakadan.subrahmanian@intel.com>
> > Sent: Monday, March 2, 2026 8:28 PM
> > To: Murthy, Arun R <arun.r.murthy@intel.com>;
> > intel-gfx@lists.freedesktop.org;
> > intel-xe@lists.freedesktop.org
> > Cc: Manna, Animesh <animesh.manna@intel.com>; Nautiyal, Ankit K
> > <ankit.k.nautiyal@intel.com>; Nikula, Jani <jani.nikula@intel.com>;
> > Hogander,
> > Jouni <jouni.hogander@intel.com>
> > Subject: Re: [PATCHv2 2/2] drm/i915/dp: Rename alpm_init to
> > alpm_init_dpcd
> >
> >
> > On 02-03-2026 14:10, Arun R Murthy wrote:
> > > In the function intel_alpm_init we are reading the
> > > ALPM_CAPABILITIES
> > > and storing them in intel_dp, so appending the function name to
> > > _dpcd
> > > so as to align with other function such as intel_psr_init_dpcd
> > > referenced in the same function.
> >
> > Rename looks okay, but mutex_init(&intel_dp->alpm.lock) looks to be
> > out of the
> > place in intel_psr_init_dpcd.
> >
> A patch for this is already floated by Animesh.
> https://patchwork.freedesktop.org/patch/687711/?series=156417&rev=4
you could already do this in your patch (set). I.e. split
intel_alpm_init as intel_alpm_init_dpcd and intel_alpm_init. Move edp
counterpart as you are doing in this patch and then move
intel_alpm_init into intel_dp_init_connector. Intel_alpm_init
initializing the mutex and intel_alpm_init_dpcd reading sink alpm
capabilities.
Anyways this patch is clearly fixing one issue and not introducing any
new. We are now talking about existing problem where mutex is
initialize inf wrong place:
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
BR,
Jouni Högander
>
> Thanks and Regards,
> Arun R Murthy
> --------------------
>
> > Regards,
> > Dibin
> >
> > > Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com>
> > > ---
> > > drivers/gpu/drm/i915/display/intel_alpm.c | 2 +-
> > > drivers/gpu/drm/i915/display/intel_alpm.h | 2 +-
> > > drivers/gpu/drm/i915/display/intel_dp.c | 2 +-
> > > 3 files changed, 3 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c
> > > b/drivers/gpu/drm/i915/display/intel_alpm.c
> > > index b3334bc4d0f9..8ba7463d7fe1 100644
> > > --- a/drivers/gpu/drm/i915/display/intel_alpm.c
> > > +++ b/drivers/gpu/drm/i915/display/intel_alpm.c
> > > @@ -42,7 +42,7 @@ bool intel_alpm_is_alpm_aux_less(struct
> > > intel_dp
> > *intel_dp,
> > > (crtc_state->has_lobf &&
> > intel_alpm_aux_less_wake_supported(intel_dp));
> > > }
> > >
> > > -void intel_alpm_init(struct intel_dp *intel_dp)
> > > +void intel_alpm_init_dpcd(struct intel_dp *intel_dp)
> > > {
> > > u8 dpcd;
> > >
> > > diff --git a/drivers/gpu/drm/i915/display/intel_alpm.h
> > > b/drivers/gpu/drm/i915/display/intel_alpm.h
> > > index 1cf70668ab1b..a24a7a03bdaa 100644
> > > --- a/drivers/gpu/drm/i915/display/intel_alpm.h
> > > +++ b/drivers/gpu/drm/i915/display/intel_alpm.h
> > > @@ -15,7 +15,7 @@ struct intel_connector;
> > > struct intel_atomic_state;
> > > struct intel_crtc;
> > >
> > > -void intel_alpm_init(struct intel_dp *intel_dp);
> > > +void intel_alpm_init_dpcd(struct intel_dp *intel_dp);
> > > bool intel_alpm_compute_params(struct intel_dp *intel_dp,
> > > struct intel_crtc_state
> > > *crtc_state);
> > > void intel_alpm_lobf_compute_config(struct intel_dp *intel_dp,
> > > diff
> > > --git a/drivers/gpu/drm/i915/display/intel_dp.c
> > > b/drivers/gpu/drm/i915/display/intel_dp.c
> > > index 1544758c0bbc..4e9df88b90cd 100644
> > > --- a/drivers/gpu/drm/i915/display/intel_dp.c
> > > +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> > > @@ -4749,7 +4749,7 @@ intel_edp_init_dpcd(struct intel_dp
> > > *intel_dp,
> > struct intel_connector *connector
> > > intel_dp_init_source_oui(intel_dp);
> > >
> > > /* Read ALPM DPCD caps before reading the PSR CAPS */
> > > - intel_alpm_init(intel_dp);
> > > + intel_alpm_init_dpcd(intel_dp);
> > >
> > > /*
> > > * This has to be called after intel_dp->edp_dpcd is
> > > filled, PSR
> > > checks
next prev parent reply other threads:[~2026-03-03 11:32 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 3:36 [PATCH] drm/i915/dp: ALPM init to be done after DPCD init Arun R Murthy
2026-03-02 3:44 ` ✓ CI.KUnit: success for " Patchwork
2026-03-02 4:27 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-02 5:31 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-02 6:44 ` [PATCH] " Hogander, Jouni
2026-03-02 7:20 ` Murthy, Arun R
2026-03-02 8:00 ` Hogander, Jouni
2026-03-02 8:11 ` Murthy, Arun R
2026-03-02 8:40 ` [PATCHv2 1/2] drm/i915/dp: Read ALPM caps " Arun R Murthy
2026-03-02 8:40 ` [PATCHv2 2/2] drm/i915/dp: Rename alpm_init to alpm_init_dpcd Arun R Murthy
2026-03-02 14:58 ` Dibin Moolakadan Subrahmanian
2026-03-03 4:10 ` Murthy, Arun R
2026-03-03 11:30 ` Hogander, Jouni [this message]
2026-03-04 4:05 ` [PATCHv4] drm/i915/dp: Read ALPM caps after DPCD init Arun R Murthy
2026-03-04 6:05 ` Manna, Animesh
2026-03-04 6:17 ` Hogander, Jouni
2026-03-04 6:22 ` Hogander, Jouni
2026-03-04 6:24 ` Murthy, Arun R
2026-03-04 4:13 ` ✓ CI.KUnit: success for drm/i915/dp: ALPM init to be done after DPCD init (rev4) Patchwork
2026-03-04 4:56 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-03-04 6:38 ` [PATCHv5] drm/i915/dp: Read ALPM caps after DPCD init Arun R Murthy
2026-03-04 6:53 ` Hogander, Jouni
2026-03-04 6:46 ` ✓ CI.KUnit: success for drm/i915/dp: ALPM init to be done after DPCD init (rev5) Patchwork
2026-03-04 7:21 ` [PATCHv6] drm/i915/dp: Read ALPM caps after DPCD init Arun R Murthy
2026-03-09 9:38 ` Manna, Animesh
2026-03-12 11:43 ` Jani Nikula
2026-03-04 7:34 ` ✗ Xe.CI.BAT: failure for drm/i915/dp: ALPM init to be done after DPCD init (rev5) Patchwork
2026-03-04 8:20 ` ✓ CI.KUnit: success for drm/i915/dp: ALPM init to be done after DPCD init (rev6) Patchwork
2026-03-04 9:00 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-03-05 6:06 ` ✗ Xe.CI.FULL: " Patchwork
2026-03-05 9:40 ` ✗ Xe.CI.BAT: " Patchwork
2026-03-05 10:43 ` ✗ Xe.CI.FULL: " Patchwork
2026-03-06 4:49 ` ✓ CI.KUnit: success for drm/i915/dp: ALPM init to be done after DPCD init (rev7) Patchwork
2026-03-06 5:38 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-07 4:01 ` ✗ Xe.CI.FULL: failure " 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=0c15c6bf69fb4d205d1ede8ff9d7bca2afbdaf17.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=animesh.manna@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=dibin.moolakadan.subrahmanian@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@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