summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Pan-Doh <pandoh@google.com>2025-05-23 02:21:25 +0300
committerBjorn Helgaas <bhelgaas@google.com>2025-05-23 19:11:45 +0300
commit24816cc298ee9cc01003b10b888427faada4403d (patch)
tree776718a60925466a03a2c5d1c7d7a72f7d409af7
parenta57f2bfb4a5863f83087867c0e671f2418212d23 (diff)
downloadlinux-24816cc298ee9cc01003b10b888427faada4403d.tar.xz
PCI/AER: Add ratelimits to PCI AER Documentation
Add ratelimits section for rationale and defaults. [bhelgaas: note fatal errors are not ratelimited] Signed-off-by: Karolina Stolarek <karolina.stolarek@oracle.com> Signed-off-by: Jon Pan-Doh <pandoh@google.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Krzysztof WilczyƄski <kwilczynski@kernel.org> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Acked-by: Paul E. McKenney <paulmck@kernel.org> Link: https://patch.msgid.link/20250522232339.1525671-20-helgaas@kernel.org
-rw-r--r--Documentation/PCI/pcieaer-howto.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/PCI/pcieaer-howto.rst b/Documentation/PCI/pcieaer-howto.rst
index f013f3b27c82..6fb31516fff1 100644
--- a/Documentation/PCI/pcieaer-howto.rst
+++ b/Documentation/PCI/pcieaer-howto.rst
@@ -85,6 +85,18 @@ In the example, 'Requester ID' means the ID of the device that sent
the error message to the Root Port. Please refer to PCIe specs for other
fields.
+AER Ratelimits
+--------------
+
+Since error messages can be generated for each transaction, we may see
+large volumes of errors reported. To prevent spammy devices from flooding
+the console/stalling execution, messages are throttled by device and error
+type (correctable vs. non-fatal uncorrectable). Fatal errors, including
+DPC errors, are not ratelimited.
+
+AER uses the default ratelimit of DEFAULT_RATELIMIT_BURST (10 events) over
+DEFAULT_RATELIMIT_INTERVAL (5 seconds).
+
AER Statistics / Counters
-------------------------