[PATCH v3 2/2] PCI/AER: Document ratelimit interval and burst values of 0
From: Yazen Ghannam
Date: Tue Nov 24 2026 - 22:29:23 EST
The AER ratelimit ABI doesn't say what a burst of 0 does, or how it
interacts with an interval of 0.
___ratelimit() checks the interval first. An interval of 0 disables
ratelimiting, so every message is printed regardless of burst. With a
nonzero interval, a burst of 0 suppresses every message.
Document both cases for the correctable and non-fatal attributes.
Suggested-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
Signed-off-by: Yazen Ghannam <yazen.ghannam@xxxxxxx>
---
Applies on top of the pci/aer tip, after "PCI/AER: Enable baseline
capability error reporting", so it keeps that commit's capitalization.
New in v3: split out of v2 2/4, with the wording Bjorn suggested.
(Bjorn)
An LLM coding assistant helped adapt the suggested wording to each
attribute.
v2: https://lore.kernel.org/r/20261123165050.GA1741477@xxxxxxxxxxxxxxxxx
.../ABI/testing/sysfs-bus-pci-devices-aer | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/Documentation/ABI/testing/sysfs-bus-pci-devices-aer b/Documentation/ABI/testing/sysfs-bus-pci-devices-aer
index 9e772e1ed9b3..0f193ccb0e2b 100644
--- a/Documentation/ABI/testing/sysfs-bus-pci-devices-aer
+++ b/Documentation/ABI/testing/sysfs-bus-pci-devices-aer
@@ -140,9 +140,10 @@ What: /sys/bus/pci/devices/<dev>/aer/correctable_ratelimit_interval_ms
Date: May 2025
KernelVersion: 6.16.0
Contact: linux-pci@xxxxxxxxxxxxxxx
-Description: Writing 0 disables Correctable Error log ratelimiting.
- Writing a positive value sets the ratelimit interval in ms.
- Default is DEFAULT_RATELIMIT_INTERVAL (5000 ms).
+Description: Writing 0 disables Correctable Error log ratelimiting and
+ prints all messages, regardless of burst. Writing a
+ positive value sets the ratelimit interval in ms. Default
+ is DEFAULT_RATELIMIT_INTERVAL (5000 ms).
What: /sys/bus/pci/devices/<dev>/aer/correctable_ratelimit_burst
Date: May 2025
@@ -153,14 +154,17 @@ Description: Ratelimit burst for correctable error logs. Writing a value
before ratelimiting. Reading gets the current ratelimit
burst. Default is DEFAULT_RATELIMIT_BURST (10).
+ Writing 0 never prints any messages (unless interval is
+ also 0, which prints all messages regardless of burst).
+
What: /sys/bus/pci/devices/<dev>/aer/nonfatal_ratelimit_interval_ms
Date: May 2025
KernelVersion: 6.16.0
Contact: linux-pci@xxxxxxxxxxxxxxx
Description: Writing 0 disables Non-Fatal Uncorrectable Error log
- ratelimiting. Writing a positive value sets the ratelimit
- interval in ms. Default is DEFAULT_RATELIMIT_INTERVAL
- (5000 ms).
+ ratelimiting and prints all messages, regardless of burst.
+ Writing a positive value sets the ratelimit interval in ms.
+ Default is DEFAULT_RATELIMIT_INTERVAL (5000 ms).
What: /sys/bus/pci/devices/<dev>/aer/nonfatal_ratelimit_burst
Date: May 2025
@@ -171,3 +175,6 @@ Description: Ratelimit burst for non-fatal uncorrectable error logs.
allowed per interval before ratelimiting. Reading gets the
current ratelimit burst. Default is DEFAULT_RATELIMIT_BURST
(10).
+
+ Writing 0 never prints any messages (unless interval is
+ also 0, which prints all messages regardless of burst).
--
2.55.0