From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Imre Deak <imre.deak@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/gen9_lp: Fix DMC DC counter debugfs output
Date: Thu, 1 Nov 2018 11:34:20 -0700 [thread overview]
Message-ID: <20181101183420.GF2092@intel.com> (raw)
In-Reply-To: <20181031201915.GG16496@ideak-desk.fi.intel.com>
On Wed, Oct 31, 2018 at 10:19:15PM +0200, Imre Deak wrote:
> On Wed, Oct 31, 2018 at 01:08:06PM -0700, Rodrigo Vivi wrote:
> > On Wed, Oct 31, 2018 at 10:02:20PM +0200, Imre Deak wrote:
> > > On GEN9 LP (BXT/GLK) DC6 is not supported, so don't print the counter
> > > on those platforms. So far we did this on GLK too.
> > >
> > > Testcase: igt/pm_dc/dc6-dpms
> > > Cc: Jyoti Yadav <jyoti.r.yadav@intel.com>
> > > Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > > Signed-off-by: Imre Deak <imre.deak@intel.com>
> > > ---
> > > drivers/gpu/drm/i915/i915_debugfs.c | 14 +++++++-------
> > > 1 file changed, 7 insertions(+), 7 deletions(-)
> > >
> > > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> > > index 041319d48ca3..e11714aa1ca9 100644
> > > --- a/drivers/gpu/drm/i915/i915_debugfs.c
> > > +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> > > @@ -2916,15 +2916,15 @@ static int i915_dmc_info(struct seq_file *m, void *unused)
> > > seq_printf(m, "version: %d.%d\n", CSR_VERSION_MAJOR(csr->version),
> > > CSR_VERSION_MINOR(csr->version));
> > >
> > > - if (IS_BROXTON(dev_priv)) {
> > > - seq_printf(m, "DC3 -> DC5 count: %d\n",
> > > - I915_READ(BXT_CSR_DC3_DC5_COUNT));
> > > - } else if (IS_GEN(dev_priv, 9, 11)) {
> > > - seq_printf(m, "DC3 -> DC5 count: %d\n",
> > > - I915_READ(SKL_CSR_DC3_DC5_COUNT));
> > > + if (INTEL_GEN(dev_priv) > 11)
> > > + goto out;
now that we have this block, should we add a MISSING_CASE here
to make sure we don't forget this later?
> > > +
> > > + seq_printf(m, "DC3 -> DC5 count: %d\n",
> > > + I915_READ(IS_BROXTON(dev_priv) ? BXT_CSR_DC3_DC5_COUNT :
> > > + SKL_CSR_DC3_DC5_COUNT));
> > > + if (!IS_GEN9_LP(dev_priv))
> > > seq_printf(m, "DC5 -> DC6 count: %d\n",
> > > I915_READ(SKL_CSR_DC5_DC6_COUNT));
> > > - }
> >
> > What about a simple:
> >
> > - } else if (IS_GEN(dev_priv, 9, 11)) {
> > - } else if (IS_GEN(dev_priv, 9, 10) && !IS_GEMINILAKE(dev_priv)) {
>
> You mean
> - } else if (IS_GEN(dev_priv, 9, 11)) {
> + } else if (IS_GEN(dev_priv, 9, 11) && !IS_GEMINILAKE(dev_priv)) {
> ?
>
> That wouldn't print even the DC5 counter on GLK.
nevermind.
with or without the missing case:
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> >
> > >
> > > out:
> > > seq_printf(m, "program base: 0x%08x\n", I915_READ(CSR_PROGRAM(0)));
> > > --
> > > 2.13.2
> > >
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-11-01 18:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-31 20:02 [PATCH] drm/i915/gen9_lp: Fix DMC DC counter debugfs output Imre Deak
2018-10-31 20:08 ` Rodrigo Vivi
2018-10-31 20:19 ` Imre Deak
2018-11-01 18:34 ` Rodrigo Vivi [this message]
2018-11-01 19:44 ` Imre Deak
2018-10-31 20:45 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-11-01 5:33 ` ✓ Fi.CI.IGT: " Patchwork
2018-11-05 14:58 ` Imre Deak
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=20181101183420.GF2092@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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.