From: "Souza, Jose" <jose.souza@intel.com>
To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH 1/3] drm/i915/display: Do not schedule DRRS work thread when it is not active
Date: Fri, 29 Apr 2022 21:23:03 +0000 [thread overview]
Message-ID: <441e57f7631ea8b682a1a8e03d8adf9fedff0ce6.camel@intel.com> (raw)
In-Reply-To: <YmwLqETt7MXafIRg@intel.com>
On Fri, 2022-04-29 at 19:00 +0300, Ville Syrjälä wrote:
> On Thu, Apr 28, 2022 at 02:10:56PM -0700, José Roberto de Souza wrote:
> > Frontbuffer updates were scheduling the execution of DRRS work thread
> > even if DRRS is not active.
> > There was no issues with it because intel_drrs_downclock_work() checks
> > if DRRS is active but there is no reason to keep scheduling this work
> > thread and wasting CPU time.
> >
> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
> > ---
> > drivers/gpu/drm/i915/display/intel_drrs.c | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_drrs.c b/drivers/gpu/drm/i915/display/intel_drrs.c
> > index 166caf293f7bc..04bc296761be0 100644
> > --- a/drivers/gpu/drm/i915/display/intel_drrs.c
> > +++ b/drivers/gpu/drm/i915/display/intel_drrs.c
> > @@ -236,6 +236,11 @@ static void intel_drrs_frontbuffer_update(struct drm_i915_private *dev_priv,
> > else
> > crtc->drrs.busy_frontbuffer_bits &= ~frontbuffer_bits;
> >
> > + if (!intel_drrs_is_active(crtc)) {
> > + mutex_unlock(&crtc->drrs.mutex);
> > + continue;
> > + }
>
> Should be impossible due to crtc->drrs.frontbuffer_bits==0.
Yep, my bad this patch is not needed.
Can you review the remaining?
I have one more patch to this series that avoids DP link configuration change during seamless mode change, when possible.
Planning to send new version with this patch any other changes that you request.
thanks
>
> > +
> > /* flush/invalidate means busy screen hence upclock */
> > intel_drrs_set_state(crtc, DRRS_REFRESH_RATE_HIGH);
> >
> > --
> > 2.36.0
>
prev parent reply other threads:[~2022-04-29 21:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-28 21:10 [Intel-gfx] [PATCH 1/3] drm/i915/display: Do not schedule DRRS work thread when it is not active José Roberto de Souza
2022-04-28 21:10 ` [Intel-gfx] [PATCH 2/3] drm/i915/display: Allow DRRS to be enabled during driver load José Roberto de Souza
2022-04-28 21:10 ` [Intel-gfx] [PATCH 3/3] drm/i915/display: Implement seamless mode switch José Roberto de Souza
2022-04-28 21:54 ` [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/3] drm/i915/display: Do not schedule DRRS work thread when it is not active Patchwork
2022-04-28 23:23 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2022-04-29 16:00 ` [Intel-gfx] [PATCH 1/3] " Ville Syrjälä
2022-04-29 21:23 ` Souza, Jose [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=441e57f7631ea8b682a1a8e03d8adf9fedff0ce6.camel@intel.com \
--to=jose.souza@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--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