From: Imre Deak <imre.deak@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 1/2] drm/i915/dp: Drop redundant AUX power get/put in intel_dp_force()
Date: Thu, 31 Aug 2023 13:19:47 +0300 [thread overview]
Message-ID: <ZPBpQ4sqKBBGyesL@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <ZO+0pV+B05Q7ea0x@intel.com>
On Wed, Aug 30, 2023 at 05:29:09PM -0400, Rodrigo Vivi wrote:
> On Wed, Aug 30, 2023 at 05:04:20PM +0300, Imre Deak wrote:
> > intel_dp_force() takes the AUX power reference as required by the DP AUX
> > transactions in intel_dp_set_edid(). However the low level AUX handler
>
> you mean intel_dp_aux_xfer right?
Yes, intel_dp_set_edid() -> intel_dp_aux_xfer(), the same way as in
intel_dp_detect().
> > takes this reference already so the get/put in intel_dp_force() can be
> > dropped. This also fixes a problem where the TC port mode changed while
> > the AUX power well was enabled.
> >
> > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8779
> > Signed-off-by: Imre Deak <imre.deak@intel.com>
>
> It makes sense to get that in lower levels, so
>
> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Thanks, I pushed the patches.
> > ---
> > drivers/gpu/drm/i915/display/intel_dp.c | 7 -------
> > 1 file changed, 7 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> > index 9d303caf969e0..16fb12d187a29 100644
> > --- a/drivers/gpu/drm/i915/display/intel_dp.c
> > +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> > @@ -5365,9 +5365,6 @@ intel_dp_force(struct drm_connector *connector)
> > struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
> > struct intel_encoder *intel_encoder = &dig_port->base;
> > struct drm_i915_private *dev_priv = to_i915(intel_encoder->base.dev);
> > - enum intel_display_power_domain aux_domain =
> > - intel_aux_power_domain(dig_port);
> > - intel_wakeref_t wakeref;
> >
> > drm_dbg_kms(&dev_priv->drm, "[CONNECTOR:%d:%s]\n",
> > connector->base.id, connector->name);
> > @@ -5376,11 +5373,7 @@ intel_dp_force(struct drm_connector *connector)
> > if (connector->status != connector_status_connected)
> > return;
> >
> > - wakeref = intel_display_power_get(dev_priv, aux_domain);
> > -
> > intel_dp_set_edid(intel_dp);
> > -
> > - intel_display_power_put(dev_priv, aux_domain, wakeref);
> > }
> >
> > static int intel_dp_get_modes(struct drm_connector *connector)
> > --
> > 2.37.2
> >
next prev parent reply other threads:[~2023-08-31 10:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-30 14:04 [Intel-gfx] [PATCH 1/2] drm/i915/dp: Drop redundant AUX power get/put in intel_dp_force() Imre Deak
2023-08-30 14:04 ` [Intel-gfx] [PATCH 2/2] drm/i915/mtl: Add TC port lockdep assert to AUX power well enabling Imre Deak
2023-08-30 21:31 ` Rodrigo Vivi
2023-08-30 17:46 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/i915/dp: Drop redundant AUX power get/put in intel_dp_force() Patchwork
2023-08-30 18:02 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-08-30 21:29 ` [Intel-gfx] [PATCH 1/2] " Rodrigo Vivi
2023-08-31 10:19 ` Imre Deak [this message]
2023-08-31 2:00 ` [Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] " 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=ZPBpQ4sqKBBGyesL@ideak-desk.fi.intel.com \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=rodrigo.vivi@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