All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: "S, Saichandana" <saichandana.s@intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: "Nikula, Jani" <jani.nikula@intel.com>
Subject: Re: [Intel-gfx] [PATCH v4] drm/i915/debugfs : PM_REQ and PM_RES registers
Date: Fri, 05 Feb 2021 13:09:04 +0000	[thread overview]
Message-ID: <161253054434.17965.6315708704973801912@build.alporthouse.com> (raw)
In-Reply-To: <SN6PR11MB323124F642BB6673B40E2923E7B29@SN6PR11MB3231.namprd11.prod.outlook.com>

Quoting S, Saichandana (2021-02-05 13:05:20)
> 
> 
> > -----Original Message-----
> > From: Chris Wilson <chris@chris-wilson.co.uk>
> > Sent: Friday, January 15, 2021 6:51 PM
> > To: S, Saichandana <saichandana.s@intel.com>; intel-
> > gfx@lists.freedesktop.org
> > Cc: Nikula, Jani <jani.nikula@intel.com>; S, Saichandana
> > <saichandana.s@intel.com>
> > Subject: Re: [Intel-gfx] [PATCH v4] drm/i915/debugfs : PM_REQ and
> > PM_RES registers
> > 
> > Quoting Saichandana S (2021-01-15 13:01:10)
> > > +static int i915_pm_req_res_info(struct seq_file *m, void *unused) {
> > > +       struct drm_i915_private *i915 = node_to_i915(m->private);
> > > +       struct intel_csr *csr = &i915->csr;
> > > +       u32 DC9_status;
> > > +
> > > +       if (!HAS_CSR(i915))
> > > +               return -ENODEV;
> > > +       if (!csr->dmc_payload)
> > > +               return 0;
> > > +       DC9_status = intel_de_read(i915, PM_RSP_DBG_1) &
> > > + PM_RESP_DC9_READY;
> > 
> > A read without waking the device up? Wait until IGT sees this.
> > [wrap with with_intel_runtime_pm(&i915->runtime_pm, wakeref)] -Chris
> >
> >Using wakeref, doesn't allow i915 to go to suspend state, further blocking display DC9 entry. Thus wakeref IGT test will fail.
> >[S, Saichandana]

And yet you cannot read this register without waking the device up.

Do we conclude that this is a bad test design?
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2021-02-05 13:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-04 10:30 [Intel-gfx] [PATCH v2] drm/i915/debugfs : PM_REQ and PM_RES registers Saichandana S
2021-01-04 11:53 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
2021-01-05  5:19 ` [Intel-gfx] [PATCH v2] " Gupta, Anshuman
2021-01-07 17:28 ` Jani Nikula
2021-01-12 13:33 ` [Intel-gfx] [PATCH v3] " Saichandana S
2021-01-12 14:37   ` Gupta, Anshuman
2021-01-12 16:14 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/debugfs : PM_REQ and PM_RES registers (rev2) Patchwork
2021-01-12 21:40 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-01-15 13:01 ` [Intel-gfx] [PATCH v4] drm/i915/debugfs : PM_REQ and PM_RES registers Saichandana S
2021-01-15 13:20   ` Chris Wilson
2021-02-05 13:05     ` S, Saichandana
2021-02-05 13:09       ` Chris Wilson [this message]
2021-02-09 13:31   ` [Intel-gfx] [PATCH v5] drm/i915/debugfs : PCU " Saichandana S
2021-02-09 14:07     ` Gupta, Anshuman
2021-02-12 13:04     ` Jani Nikula
2021-02-15  5:13       ` Gupta, Anshuman
2021-01-15 17:16 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/debugfs : PM_REQ and PM_RES registers (rev3) Patchwork
2021-01-15 23:47 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-02-09 17:11 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/debugfs : PM_REQ and PM_RES registers (rev4) Patchwork
2021-02-09 21:23 ` [Intel-gfx] ✓ Fi.CI.IGT: " 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=161253054434.17965.6315708704973801912@build.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=saichandana.s@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.