All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Belgaumkar, Vinay" <vinay.belgaumkar@intel.com>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v4] drm/i915/slpc: Optmize waitboost for SLPC
Date: Sat, 22 Oct 2022 12:22:05 -0700	[thread overview]
Message-ID: <87tu3vpste.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <102c7cfd-c7b0-48b4-8fa6-7719f5529783@intel.com>

On Sat, 22 Oct 2022 10:56:03 -0700, Belgaumkar, Vinay wrote:
>

Hi Vinay,

> >> diff --git a/drivers/gpu/drm/i915/gt/intel_rps.c b/drivers/gpu/drm/i915/gt/intel_rps.c
> >> index fc23c562d9b2..32e1f5dde5bb 100644
> >> --- a/drivers/gpu/drm/i915/gt/intel_rps.c
> >> +++ b/drivers/gpu/drm/i915/gt/intel_rps.c
> >> @@ -1016,9 +1016,15 @@ void intel_rps_boost(struct i915_request *rq)
> >>		if (rps_uses_slpc(rps)) {
> >>			slpc = rps_to_slpc(rps);
> >>
> >> +			if (slpc->min_freq_softlimit == slpc->boost_freq)
> >> +				return;
> > nit but is it possible that 'slpc->min_freq_softlimit > slpc->boost_freq'
> > (looks possible to me from the code though we might not have intended it)?
> > Then we can change this to:
> >
> >			if (slpc->min_freq_softlimit >= slpc->boost_freq)
> >				return;

Any comment about this? It looks clearly possible to me from the code.

So with the above change this is:

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>

  reply	other threads:[~2022-10-22 19:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-22  0:24 [Intel-gfx] [PATCH v4] drm/i915/slpc: Optmize waitboost for SLPC Vinay Belgaumkar
2022-10-22  0:24 ` Vinay Belgaumkar
2022-10-22  0:57 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/slpc: Optmize waitboost for SLPC (rev4) Patchwork
2022-10-22  1:19 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-10-22  2:11 ` [Intel-gfx] [PATCH v4] drm/i915/slpc: Optmize waitboost for SLPC Dixit, Ashutosh
2022-10-22 17:56   ` Belgaumkar, Vinay
2022-10-22 19:22     ` Dixit, Ashutosh [this message]
2022-10-24 16:17       ` Belgaumkar, Vinay
2022-10-22 22:33 ` [Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/slpc: Optmize waitboost for SLPC (rev4) 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=87tu3vpste.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=vinay.belgaumkar@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.