From: Lukas Wunner <lukas@wunner.de>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Yazen Ghannam <yazen.ghannam@amd.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
bhelgaas@google.com
Subject: Re: [PATCH 4/4] PCI/AER: Hide the "aer" sysfs directory on devices without AER
Date: Tue, 24 Nov 2026 09:01:24 +0100 [thread overview]
Message-ID: <awVEVPX1dzGZeVya@wunner.de> (raw)
In-Reply-To: <20261123234603.GA1123067@bhelgaas>
On Mon, Nov 23, 2026 at 05:46:03PM -0600, Bjorn Helgaas wrote:
> On Sun, Nov 22, 2026 at 06:56:48PM +0100, Lukas Wunner wrote:
> > On Fri, Nov 20, 2026 at 07:31:25PM -0600, Bjorn Helgaas wrote:
> > > If so I might amend this commit log to mention
> > > that, since Lukas's subsequent "PCI/AER: Enable baseline capability
> > > error reporting" enables aer_dev_correctable, aer_dev_fatal, etc even
> > > for non-AER PCIe devices.
> >
> > With that subsequent patch, the "aer" subdirectory with the ratelimiting
> > knobs appears below every PCIe device (unless allocation of aer_info fails
> > due to high memory pressure), but not e.g. below Conventional PCI devices.
>
> Are the ratelimit knobs useful for devices other than Root Ports and
> RCiEPs with an AER Capability? That's the only place we get
> interrupts, isn't it? I guess DPC also?
Ratelimiting is per-device, hence the ratelimiting knobs appear below
every device capable of error reporting (AER or baseline). With baseline
capability error reporting, the same messages appear in dmesg and tracing,
albeit with fewer details.
If your question is whether the ratelimiting knobs are useful unless
there is an AER-capable Root Port above the device (or the device is
associated with an AER-capable RCEC, or is itself an AER-capable
Root Port or RCEC) then the answer is indeed no. They're not useful.
We could hide them if you want. The same applies to the error statistics
exposed in sysfs.
Without an AER-capable Root Port or RCEC, errors can only be signaled
as System Errors. This needs to be enabled in the Root Control register
of Root Ports or RCECs (PCIe r7.1 sec 7.5.3.12), either manually by
the user or by platform firmware. The kernel doesn't set those bits.
It only clears them (in aer_enable_rootport()).
For DPC, there is no ratelimiting implemented. Recovery from DPC normally
takes on the order of seconds, so the recovery procedure limits the amount
of messages emitted via dmesg or tracing.
The DPC driver does call aer_get_device_error_info(), which would perform
ratelimiting. But first of all, this is only called if DPC is triggered
by the Downstream Port itself (e.g. upon an ACS Violation), not when
receiving an Error Message from a subordinate device. I.e. it uses the
Downstream Port's pdev->aer_info struct. And second, the DPC driver
populates the info->ratelimit_print[0] field with "1" beforehand in
dpc_get_aer_uncorrect_severity(), which means "always print".
Thanks,
Lukas
next prev parent reply other threads:[~2026-11-24 8:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 21:56 [PATCH 0/4] AER sysfs fixes Yazen Ghannam
2026-11-10 21:56 ` [PATCH 1/4] MAINTAINERS: Add the AER sysfs ABI file to PCI SUBSYSTEM Yazen Ghannam
2026-11-10 21:56 ` [PATCH 2/4] PCI/AER: Clamp negative ratelimit burst to zero Yazen Ghannam
2026-11-20 18:10 ` Bjorn Helgaas
2026-11-20 21:13 ` Yazen Ghannam
2026-11-21 0:12 ` Bjorn Helgaas
2026-11-23 16:50 ` Yazen Ghannam
2026-11-23 23:38 ` Bjorn Helgaas
2026-11-10 21:56 ` [PATCH 3/4] PCI/AER: Report the ratelimit interval in milliseconds Yazen Ghannam
2026-11-18 16:39 ` Sang-Heon Jeon
2026-11-10 21:56 ` [PATCH 4/4] PCI/AER: Hide the "aer" sysfs directory on devices without AER Yazen Ghannam
2026-11-21 1:31 ` Bjorn Helgaas
2026-11-22 17:56 ` Lukas Wunner
2026-11-23 23:46 ` Bjorn Helgaas
2026-11-24 8:01 ` Lukas Wunner [this message]
2026-11-19 0:02 ` [PATCH 0/4] AER sysfs fixes Bjorn Helgaas
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=awVEVPX1dzGZeVya@wunner.de \
--to=lukas@wunner.de \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=yazen.ghannam@amd.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®