Linux Power Management development
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Bjorn Helgaas <helgaas@kernel.org>,
	Maarten Lankhorst <dev@mblankhorst.nl>,
	Michal Hocko <mhocko@kernel.org>,
	Andy Lutomirski <luto@kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	the arch/x86 maintainers <x86@kernel.org>,
	Daniel Vetter <daniel.vetter@intel.com>,
	Bjorn Helgaas <bhelgaas@google.com>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	linux-pci@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: Linux 4.15-rc2: Regression in resume from ACPI S3
Date: Thu, 14 Dec 2017 16:54:09 +0100	[thread overview]
Message-ID: <11146834.AWaDHrVcmB@aspire.rjw.lan> (raw)
In-Reply-To: <alpine.DEB.2.20.1712141648190.4998@nanos>

On Thursday, December 14, 2017 4:52:22 PM CET Thomas Gleixner wrote:
> On Thu, 14 Dec 2017, Rafael J. Wysocki wrote:
> > The problem here is that pci_pm_thaw_noirq() calls pci_restore_state() which
> > in fact requires the device to be in D0, so the caller should put it into
> > D0 instead of trying to "update" its power state.
> > 
> > [Note that the PCI layer doesn't put devices into low-power states during the
> > hibernation's "freeze" transition, but drivers can legitimately do that in
> > their "freeze" callbacks which was overlooked in that code and that's what
> > i915 does.]
> > 
> > So IMO what we need is the change below.  I'm going to test it shortly,
> > but please give it a go too.
> 
> So now this looks more reasonable:
> 
>   irq_migrate_all_off_this_cpu: Mask 125 pci_msi_mask_irq+0x0/0x10
>   __pci_write_msi_msg: 0000:00:02.0 00000000fee0100c 0000412a 
>   __pci_write_msi_msg: Not written
>   ...
>   device_pm_callback_start: i915 0000:00:02.0, parent: pci0000:00, noirq bus [thaw]
>   pci_pm_thaw_noirq <-dpm_run_callback
>   __pci_write_msi_msg: 0000:00:02.0 00000000fee0100c 0000412a 
>   device_pm_callback_end: i915 0000:00:02.0, err=0
>   ...
>   resume_irqs: Resume 125
>   ...
>   irq_handler_entry: irq=125 name=i915

Cool.

Let me respin it with a changelog etc then.

Thanks,
Rafael

  reply	other threads:[~2017-12-14 15:54 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <168050887.sZlTFXWCmO@aspire.rjw.lan>
     [not found] ` <CA+55aFwsMuHUBQz5kDNwRf17JnasXMWjvmLq5qXGH-694yeq1w@mail.gmail.com>
     [not found]   ` <20171206121452.GA6320@dhcp22.suse.cz>
     [not found]     ` <db81e89d-eee6-868c-dc10-c028f4c4be84@mblankhorst.nl>
     [not found]       ` <alpine.DEB.2.20.1712061344560.1724@nanos>
     [not found]         ` <0f1d3d63-fa10-5cef-8014-81753dc60243@mblankhorst.nl>
     [not found]           ` <alpine.DEB.2.20.1712061514420.1724@nanos>
     [not found]             ` <57c8679e-1b88-c9ad-2299-2bea7560b28f@mblankhorst.nl>
     [not found]               ` <alpine.DEB.2.20.1712081129450.1840@nanos>
     [not found]                 ` <alpine.DEB.2.20.1712131507160.1885@nanos>
2017-12-13 16:23                   ` Linux 4.15-rc2: Regression in resume from ACPI S3 Bjorn Helgaas
2017-12-13 16:41                     ` Thomas Gleixner
2017-12-13 17:45                       ` Linus Torvalds
2017-12-13 18:19                         ` Thomas Gleixner
2017-12-13 20:52                           ` Thomas Gleixner
2017-12-13 21:06                             ` Thomas Gleixner
2017-12-13 22:48                               ` Rafael J. Wysocki
2017-12-14 11:54                               ` Thomas Gleixner
2017-12-14 12:12                                 ` Rafael J. Wysocki
2017-12-14 12:30                                   ` Thomas Gleixner
2017-12-14 15:30                                     ` Rafael J. Wysocki
2017-12-14 15:52                                       ` Thomas Gleixner
2017-12-14 15:54                                         ` Rafael J. Wysocki [this message]
2017-12-14 16:17                                           ` Maarten Lankhorst
2017-12-15  2:07                                           ` [PATCH] PCI / PM: Force devices to D0 in pci_pm_thaw_noirq() Rafael J. Wysocki
2017-12-15 14:28                                             ` Rafael J. Wysocki
2017-12-15 18:30                                             ` Bjorn Helgaas
2017-12-15 23:44                                               ` Rafael J. Wysocki
2017-12-14 13:24                                 ` Linux 4.15-rc2: Regression in resume from ACPI S3 Thomas Gleixner
2017-12-14 19:03                                 ` Linus Torvalds
2017-12-14 22:36                                   ` Thomas Gleixner
2017-12-14 22:47                                     ` Linus Torvalds
2017-12-15  9:05                                       ` Thomas Gleixner
2017-12-15  0:34                                     ` Rafael J. Wysocki
2017-12-13 22:39                           ` Rafael J. Wysocki
2017-12-13 23:26                             ` Rafael J. Wysocki

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=11146834.AWaDHrVcmB@aspire.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=bhelgaas@google.com \
    --cc=daniel.vetter@intel.com \
    --cc=dev@mblankhorst.nl \
    --cc=helgaas@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=mhocko@kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@kernel.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