Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12279083rwl; Tue, 3 Jan 2023 11:44:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXtAMuUPvoTpQEbxQK25ih38Rv2qybtTTmmbQYoFOi/UtcxR1muW4ZmR8vaDz/8H0K4nny2a X-Received: by 2002:a17:906:18e2:b0:7c1:4bb:b157 with SMTP id e2-20020a17090618e200b007c104bbb157mr47004092ejf.4.1672775070620; Tue, 03 Jan 2023 11:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672775070; cv=none; d=google.com; s=arc-20160816; b=SybTC/ClOygs5/zJbIEO89yVoRVIhu4M0ORLdm1yNeXz2MkM+pxxMi7nIef4e7CK2q jMD8JJ/4OMzuKo3WJKlxffUdHiYasex1xwoqINaW7Hs/ihgEs3XncFb+CAw8wkML4DOp 3AIoP2lG+9eRhYMwDla9j+c7ErjivMCr4OuZX1/b5Z/XJWY2oE8OMj5qj9U+MAckt9dS uCJ+rvsfpbT+i2N0h9THr+8sr9KOb5FvXk7gFv9uHEKANHU6AYyAHyYUCyNQJFS6kLQq H9C+wvuKwy73p91j3isljJdz3Bbf8+axl0xH2pQ2QNsccMgV4uIGnQuvJcsieMH6R51s 2epQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=7Wc/ZWgkE7EaqA7FTDVq6HzvWiBn2qagA8cq/pl+hAE=; b=XbutNH1qLjbcsXhHLGGkT1d4eFaS8R7AGquHJoQ+VJkcqSffyr6j0ukq44CsQ6VjHk iAyy86pNylZklxHUlELB53u+OzY/D1aObdkoTlB5oPX+xBLi8NzCowU8eOOZ3NlNqp5y LGTsnEqyGDBAnXoT8WsOqJz6z9mtQ03/cdv6ER+CfI1eJYT856Nzvu1wkWOqSuHTkssl Ypga9yVLATlg480qZgIzyvDnbk3+Dx1w/w23vTAPHT9i9j6LXfm02Xv5Qu17mSkcDmD8 BwfMq051fhyywC88nLH+/wbpUIWLUvn0EbDXf8yobABAE7ZFZLNKJrEn7/++eloWbEGu jyhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Dngi/WyC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh17-20020a1709076e9100b007c1031ebabasi28467592ejc.49.2023.01.03.11.44.16; Tue, 03 Jan 2023 11:44:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Dngi/WyC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238947AbjACTQV (ORCPT + 59 others); Tue, 3 Jan 2023 14:16:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238919AbjACTPi (ORCPT ); Tue, 3 Jan 2023 14:15:38 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74B1A13F3E; Tue, 3 Jan 2023 11:14:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 24357B80FEE; Tue, 3 Jan 2023 19:14:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A7F3C433EF; Tue, 3 Jan 2023 19:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672773259; bh=N7ivNyN5VHZFUOKbQyORtcjA8BMgy+b684iiJd7PPSs=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Dngi/WyCrOY2KGRTUf8TvHZdV0rakljdaE//Cillu5tPz2ToFWupNzRFMO4yo6u46 8j8pIeiGmcQoP+w+LtfwW1jdN6gl4vPp7ITE7J+ddxCFjkTBh5dVWlDB94cxD2J8fM 9hJbwkKlT9DPwlC7vkD4n8WHF3hIE+ST0G05gfnVnPZiRyVRoIw5FgVtv+JD+uJgaH M8DodmOHRajphU+quYr09cfTNb6VAphaMKmfXZ789dF72V5T6lZvXiVQqgwkb33uy3 qMO3m3yyV4i9ZvhR7AEFBvaxoS0EXdFcO/dI8Up3djZ4OkbmkkwH5WqAfgXrhlaWkz pIx7HX82+Y+/A== Date: Tue, 3 Jan 2023 13:14:18 -0600 From: Bjorn Helgaas To: Rajat Khandelwal Cc: ruscur@russell.cc, oohall@gmail.com, bhelgaas@google.com, linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, rajat.khandelwal@intel.com, Paul Menzel , "Neftin, Sasha" , Leon Romanovsky , Frederick Zhang Subject: Re: [PATCH] PCI/AER: Rate limit the reporting of the correctable errors Message-ID: <20230103191418.GA1011392@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230103165548.570377-1-rajat.khandelwal@linux.intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+cc Paul, Sasha, Leon, Frederick] (Please cc folks who have commented on previous versions of your patch.) On Tue, Jan 03, 2023 at 10:25:48PM +0530, Rajat Khandelwal wrote: > There are many instances where correctable errors tend to inundate > the message buffer. We observe such instances during thunderbolt PCIe > tunneling. > > It's true that they are mitigated by the hardware and are non-fatal > but we shouldn't be spamming the logs with such correctable errors as it > confuses other kernel developers less familiar with PCI errors, support > staff, and users who happen to look at the logs, hence rate limit them. I want a better understanding of why we have so many errors before rate-limiting everybody. > A typical example log inside an HP TBT4 dock: > [54912.661142] pcieport 0000:00:07.0: AER: Multiple Corrected error received: 0000:2b:00.0 > [54912.661194] igc 0000:2b:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) > [54912.661203] igc 0000:2b:00.0: device [8086:5502] error status/mask=00001100/00002000 > [54912.661211] igc 0000:2b:00.0: [ 8] Rollover > [54912.661219] igc 0000:2b:00.0: [12] Timeout > [54982.838760] pcieport 0000:00:07.0: AER: Corrected error received: 0000:2b:00.0 > [54982.838798] igc 0000:2b:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID) > [54982.838808] igc 0000:2b:00.0: device [8086:5502] error status/mask=00001000/00002000 > [54982.838817] igc 0000:2b:00.0: [12] Timeout Please remove the timestamps; they don't contribute to understanding the problem. > This gets repeated continuously, thus inundating the buffer. Did you verify that we actually clear the Correctable Error Status register? https://bugzilla.kernel.org/show_bug.cgi?id=216863 looks like a similar issue. The issue Frederick is seeing happens when resuming from sleep. Is there some event that triggers the correctable errors you see? Bjorn