public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Caz Yokoyama <Caz.Yokoyama@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH v2 2/2] add DROP_SUSPEND.
Date: Tue, 12 Mar 2019 08:52:09 -0700	[thread overview]
Message-ID: <036722020211f41dd4123fbffab4c41ef3be1607.camel@intel.com> (raw)
In-Reply-To: <155240462188.30003.14575301314188159944@skylake-alporthouse-com>

On Tue, 2019-03-12 at 15:30 +0000, Chris Wilson wrote:
> Quoting Caz Yokoyama (2019-03-12 03:31:32)
> > +       if (val & DROP_SUSPEND) {
> > +               struct device *dev = i915->drm.dev;
> > +
> > +               dev_info(dev, "%s() %d: runtime_status: %d\n",
> > __func__, __LINE__,
> > +                        dev->power.runtime_status);
> 
> 
> > +               pm_runtime_disable(dev);
> > +               if (!pm_runtime_status_suspended(dev)) {
> > +                       dev_warn(dev, "%s() %d: runtime_status:
> > %d\n", __func__, __LINE__,
> > +                                dev->power.runtime_status);
> > +               }
> > +               pm_runtime_enable(dev);
> 
> ret = pm_runtime_force_suspend(i915->drm.dev);
> 
Yes, this works. However, pm_runtime_force_suspend() always exits on 
	if (pm_runtime_status_suspended(dev))
		return 0;
Therefore, this patch is meaningless after suspended state.
-caz

> -Chris

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2019-03-12 15:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-12  3:31 [igt-dev] [PATCH i-g-t v2 1/1] i915_pm_rpm: gem-execbuf-stress-extra-wait faster Caz Yokoyama
2019-03-12  3:31 ` [igt-dev] [PATCH v2 2/2] add DROP_SUSPEND Caz Yokoyama
2019-03-12 15:30   ` Chris Wilson
2019-03-12 15:52     ` Caz Yokoyama [this message]
2019-03-12 15:51       ` Chris Wilson
2019-03-12 16:11         ` Caz Yokoyama
2019-03-12 16:09           ` Chris Wilson
2019-03-12 17:14             ` Caz Yokoyama
2019-03-12 22:36       ` Caz Yokoyama
2019-03-12 22:42         ` Chris Wilson
2019-03-12 15:14 ` [igt-dev] [PATCH i-g-t v2 1/1] i915_pm_rpm: gem-execbuf-stress-extra-wait faster Caz Yokoyama
2019-03-12 15:24 ` Chris Wilson

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=036722020211f41dd4123fbffab4c41ef3be1607.camel@intel.com \
    --to=caz.yokoyama@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox