From: Bjorn Helgaas <helgaas@kernel.org>
To: Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: adrian.hunter@intel.com, ulf.hansson@linaro.org,
Victor Shih <victor.shih@genesyslogic.com.tw>,
Ben Chuang <benchuanggli@gmail.com>,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] mmc: sdhci-pci-gli: GL975x: Mask rootport's replay timer timeout during suspend
Date: Tue, 26 Mar 2024 16:19:54 -0500 [thread overview]
Message-ID: <20240326211954.GA1497572@bhelgaas> (raw)
In-Reply-To: <CAAd53p5p=JJ9OOQd=XPzJgW7yib+hMJxZqj7PZFsd2uFtK94xg@mail.gmail.com>
On Tue, Mar 26, 2024 at 09:52:28AM +0800, Kai-Heng Feng wrote:
> On Tue, Mar 26, 2024 at 3:02 AM Bjorn Helgaas <helgaas@kernel.org> wrote:
> > On Mon, Mar 25, 2024 at 10:02:27AM +0800, Kai-Heng Feng wrote:
> > > On Sat, Mar 23, 2024 at 12:43 AM Bjorn Helgaas <helgaas@kernel.org> wrote:
> ...
> > > > If that's the case, why do the
> > > > masking in the suspend/resume callbacks?
> > >
> > > Because there's no functional impact when the error happens, other
> > > than suspend/resume.
> >
> > Oh, I think I see. Is this accurate?
> >
> > Due to a hardware defect in GL975x, config accesses when ASPM is
> > enabled frequently cause Replay Timer Timeouts in the Port leading
> > to the device.
> >
> > These are Correctable Errors, so the Downstream Port logs it in its
> > PCI_ERR_COR_STATUS and, when the error is not masked, sends an
> > ERR_COR message upstream. The message terminates at a Root Port,
> > which may generate an AER interrupt so the OS can log it.
> >
> > The Correctable Error logging is an annoyance but normally not a
> > major issue. But when the AER interrupt happens during suspend, it
> > can prevent the system from suspending.
>
> That's totally the case here.
>
> This brings up another different but related topic - should the port
> driver disable AER/DPC IRQ during suspend?
> We've discussed this many times, I still think that's the right
> approach to "quiesce" many unexpected errors during system state
> transition.
Maybe so. We can continue that in the context of that patch. Maybe
it needs to be reposted; I can't remember where it's at right now.
> > I think we should log a hint in dmesg that we're masking
> > PCI_ERR_COR_REP_TIMER because the error will still be logged in the
> > PCI_ERR_COR_STATUS register, and that will be visible via lspci, and a
> > dmesg hint will save debugging time when people report that.
>
> Sure. Where do you think it's a better place to implement the quirk? I
> Assume PCI quirk is a better place than driver's probe routine?
Yes, I think drivers/pci/quirks.c is a better place so we can mask it
even if the driver isn't loaded. Users can still run lspci and see
these errors even if the driver isn't loaded.
Bjorn
prev parent reply other threads:[~2024-03-26 21:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-21 3:21 [PATCH v2] mmc: sdhci-pci-gli: GL975x: Mask rootport's replay timer timeout during suspend Kai-Heng Feng
2024-01-03 10:52 ` Ulf Hansson
2024-01-04 4:10 ` Kai-Heng Feng
2024-01-04 19:42 ` Adrian Hunter
2024-01-05 21:19 ` Bjorn Helgaas
2024-01-12 5:14 ` Kai-Heng Feng
2024-01-12 17:37 ` Bjorn Helgaas
2024-01-18 6:40 ` Kai-Heng Feng
2024-01-19 22:40 ` Bjorn Helgaas
2024-03-21 10:05 ` Kai-Heng Feng
2024-03-22 16:43 ` Bjorn Helgaas
2024-03-25 2:02 ` Kai-Heng Feng
2024-03-25 19:02 ` Bjorn Helgaas
2024-03-26 1:52 ` Kai-Heng Feng
2024-03-26 21:19 ` 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=20240326211954.GA1497572@bhelgaas \
--to=helgaas@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=benchuanggli@gmail.com \
--cc=kai.heng.feng@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=victor.shih@genesyslogic.com.tw \
/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