From: Bjorn Helgaas <bhelgaas@google.com>
To: "Izumi, Taku" <izumi.taku@jp.fujitsu.com>
Cc: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: [PATCH] PCI/AER: Cleanup AER error status registers on probing devices
Date: Tue, 1 Sep 2015 16:45:54 -0500 [thread overview]
Message-ID: <20150901214554.GA829@google.com> (raw)
In-Reply-To: <E86EADE93E2D054CBCD4E708C38D364A54276116@G01JPEXMBYT01>
On Tue, Sep 01, 2015 at 08:14:41AM +0000, Izumi, Taku wrote:
> Dear Bjorn,
>
> Thanks for reviewing.
>
> > Hello Taku-san,
> >
> > On Wed, Aug 05, 2015 at 01:42:13AM +0900, Taku Izumi wrote:
> > > AER uncorrectable or correctable error might be recorded
> > > when power on devices. These errors can be ignored, so
> > > BIOS usually clean up these registers ahead of OS's scanning
> > > devices.
> > > However, in case of hot-plug PCIe devices, BIOS can't care.
> >
> > What happens when we power down a device for suspend or because it's idle?
> > Can we get spurious AER errors when we power the device back up? This
> > patch only covers the enumeration path, so we'd need to do more if it can
> > happen during suspend/resume.
>
> Our server only supports "suspend to disk". In that case,
> BIOS cleans up those registers like boot-time.
> So It seems that no troubles are previously reported other
> than hot-plug case.
>
> However, if box supports suspend-to-RAM, similar problem may happen.
> It is true that that register clean-up should be done during suspend/resume
> case. Should we cover during-suspend/resume case ?
Yes, I think so. pci_restore_state() restores a lot of other
configuration; maybe it should do something with AER also.
There is a disturbing lack of symmetry between the boot/hot-add paths and
the resume-from-D3 path. We're doing similar things, at least from the
hardware point of view, but the code is not similar at all. It would be
nice if we could unify those somehow.
Bjorn
prev parent reply other threads:[~2015-09-01 21:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 16:42 [PATCH] PCI/AER: Cleanup AER error status registers on probing devices Taku Izumi
2015-08-28 21:31 ` Bjorn Helgaas
2015-09-01 8:14 ` Izumi, Taku
2015-09-01 21:45 ` Bjorn Helgaas [this message]
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=20150901214554.GA829@google.com \
--to=bhelgaas@google.com \
--cc=izumi.taku@jp.fujitsu.com \
--cc=linux-pci@vger.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;
as well as URLs for NNTP newsgroup(s).