From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA765C54ED1 for ; Thu, 22 May 2025 23:26:05 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4b3PWP1RfYz3cJF; Fri, 23 May 2025 09:24:17 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c04:e001:324:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1747956257; cv=none; b=h6M6rJxP31Gvz8x+qAZhc59Ds0DJsqQxkehJ4iK0xyHopvcDLOYuwfyhdAb/EHNw3SnVOkk3KXDiTkqVPpj7hgczxTwpNk/72dw2iAP3xx/OWi+TSYJ8ZYKXi86M5Asqf/N4fKr8gM3Q3WHeEWbdyDekLv2N2a/dCdbKl4IP1+ekOoE947SSKIzKe026Pv3+ofPGAezACogNMEKyYexblD0uFUvogQf9UcIGLONXsk71RUTdKF9LI/euwu50nsoorJgiRFNtgWab+mHQWEHiDRYOSCSdU9wNU9qAxuTNN4OVYhYCMOcjYJgvJKUVJ/Y6lfwDhboViZcSVXGeg1q6/w== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1747956257; c=relaxed/relaxed; bh=bNF7uQ7mgqWDFHnFZghX7mdBdleb2xL4+LLtBhAQWvY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Fc+HIpHuMwDy2bgcVzAa6/w6oqiIcI2B4YA8t5DqwQo0DyefS15djBXNVdQ9FXfuU4StpnHoTNV9O1X7gHi4VpEqXUEDcPFMKs1Vil/h7xvPeSu+sXY9UPtRq1ofSQL4GeQ804X5nlN2IhhCAOlCiyRR+Po2iBPRvGpMIuvz0uQOgI3z46j/YBfk+qsE8HntQR+2jkjziK7QCb0jSnZp3PUWYVP5/rIz/wqVf/RK7H0j2LxMTDG3lsZTEHQ9nyTfOpQoAnqTeb6rgVZkllv/F7sV9Z9dZtyFJJ7Vj9gUNpMbbyeIP5BUr9QcMIicnuGP/djIPfQ8SnlKwS7vZZmrEg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=vRTxT7w5; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=helgaas@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=vRTxT7w5; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=helgaas@kernel.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [IPv6:2600:3c04:e001:324:0:1991:8:25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4b3PWN3774z3c6f for ; Fri, 23 May 2025 09:24:16 +1000 (AEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 8DBE362A59; Thu, 22 May 2025 23:24:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CAF9C4CEEF; Thu, 22 May 2025 23:24:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747956254; bh=y7e9P3hEYVjb2rwfefX+/4+/9fyA9woYlogIdjnrYWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vRTxT7w5ShuM+U2ecxDsu8/xXhl5mZOvdjWYRV2H8si8LbPzsJoUftWYXxdNS27wp +Ic3RyhnRXODUlHfylAMidD569hQ+GGYGjIyeeEtMlxpst51OgSBDvIEtgEeF2V82J ontzSuYHEeAKvBaJqfA8A2I3hP2MBVp9qeVIbKPC26a/hkqL9X4zfYrrqQwKNmfdct skZolLoqVSbZieVayTQj5Zb/kqzatohTnb99SNjle3UVkcWo7A1KUxHATiKeARQLlB WjF224kN2hX/0ztPcQOpbj1Is1T1y0RjG457NlEjZEjvLUGVNx+61bFDYV1ljMPfYV zA69skxAww3/A== From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: Jon Pan-Doh , Karolina Stolarek , Weinan Liu , Martin Petersen , Ben Fuller , Drew Walton , Anil Agrawal , Tony Luck , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Sathyanarayanan Kuppuswamy , Lukas Wunner , Jonathan Cameron , Sargun Dhillon , "Paul E . McKenney" , Mahesh J Salgaonkar , Oliver O'Halloran , Kai-Heng Feng , Keith Busch , Robert Richter , Terry Bowman , Shiju Jose , Dave Jiang , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas Subject: [PATCH v8 19/20] PCI/AER: Add ratelimits to PCI AER Documentation Date: Thu, 22 May 2025 18:21:25 -0500 Message-ID: <20250522232339.1525671-20-helgaas@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250522232339.1525671-1-helgaas@kernel.org> References: <20250522232339.1525671-1-helgaas@kernel.org> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Jon Pan-Doh Add ratelimits section for rationale and defaults. [bhelgaas: note fatal errors are not ratelimited] Signed-off-by: Karolina Stolarek Signed-off-by: Jon Pan-Doh Tested-by: Krzysztof WilczyƄski Reviewed-by: Kuppuswamy Sathyanarayanan Acked-by: Paul E. McKenney Signed-off-by: Bjorn Helgaas Link: https://patch.msgid.link/20250520215047.1350603-17-helgaas@kernel.org --- Documentation/PCI/pcieaer-howto.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 ------------------------- -- 2.43.0