From: Imre Deak <imre.deak@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
"Matthew Auld" <matthew.auld@intel.com>
Subject: Re: [PATCH 01/10] drm/i915/display: convert inner wakeref get towards get_if_in_use
Date: Mon, 11 Mar 2024 17:06:32 +0200 [thread overview]
Message-ID: <Ze8d+ABttapojKHq@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <ZessnpTxaTDvmvGz@intel.com>
On Fri, Mar 08, 2024 at 10:19:58AM -0500, Rodrigo Vivi wrote:
> [...]
> >
> > The difference between a wakeref (aka wakelock) and a raw-wakeref is
> > that the former is required for accessing the HW, which is asserted when
> > reading/writing a register. A raw-wakeref is not enough for this and is
> > only taken to prevent runtime suspending, for instance held after
> > dropping a display power reference, until the power well is actually
> > disabled in a delayed manner. During this time any register access is
> > considered invalid.
>
> ah okay, so it is not just about the GT, but also about MMIO accesses.
> So the ones in display looks better now. Thanks for this correction.
>
> >
> > Both wakerefs and raw-wakerefs are tracked.
>
> Indeed. And also it is worth to say that this patch doesn't introduce
> any change on that.
>
> both
> intel_runtime_pm_get()
> and
> intel_runtime_pm_get_if_in_use()
>
> calls
> intel_runtime_pm_acquire(rpm, true);
> return track_intel_runtime_pm_wakeref(rpm);
>
> so, can we move forward with this change or do you guys see any blocker?
I also think intel_runtime_pm_get_noresume() would be more logical here,
as it's already known that rpm->usecount is non-zero,
intel_runtime_pm_get_if_in_use() also works though. Either way:
Acked-by: Imre Deak <imre.deak@intel.com>
> Thanks a lot,
> Rodrigo.
>
> >
> > > One thing that crossed my mind many times already is to simply entirely
> > > remove the runtime_pm from display and do like other drivers simply
> > > checking for crtc connection at runtime_idle.
> > >
> > > But then there are places where current display code uses the rpm
> > > in use to take different code paths, and also all the possible impact
> > > with the dc states transitions and other cases that I always gave up
> > > on the thought very quickly.
> > >
> > > But you are right, we will have to comeback and clean things up
> > > one way or another.
> > >
> > > But I wish we can have at least this small change in first so I don't
> > > get blocked by xe's lockdep annotation and I also don't have to
> > > workaround the annotation itself.
> > >
> > > >
> > > > >
> > > > > for_each_power_domain(domain, mask) {
> > > > > /* Clear before put, so put's sanity check is happy. */
> > > > > --
> > > > > 2.43.2
> > > >
> > > > --
> > > > Ville Syrjälä
> > > > Intel
next prev parent reply other threads:[~2024-03-11 15:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-07 0:15 [PATCH 01/10] drm/i915/display: convert inner wakeref get towards get_if_in_use Rodrigo Vivi
[not found] ` <ZekKtpIobqZzyvDR@intel.com>
2024-03-07 14:46 ` Rodrigo Vivi
2024-03-07 20:14 ` Imre Deak
2024-03-08 15:19 ` Rodrigo Vivi
2024-03-11 15:06 ` Imre Deak [this message]
2024-03-11 18:36 ` Rodrigo Vivi
2024-03-15 11:16 ` Ville Syrjälä
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=Ze8d+ABttapojKHq@ideak-desk.fi.intel.com \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.auld@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=ville.syrjala@linux.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