Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1496908lqh; Mon, 6 May 2024 09:17:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXX51ziJW+kAgkAOsow5pXG3LKDJ+kl5NnNHJxX03uPVfKfzPpgKT/o35i2940tt3i71KiZ2GTevFyB62ks1ngm89Hz8KTcdTahBjdOtQ== X-Google-Smtp-Source: AGHT+IG3gVboHfJyEf1jhC8+zgud2uAT321yLtqUTP7pbW49L4a4D2EExxCh1oUqExWCsBhi3LOR X-Received: by 2002:a17:902:a617:b0:1eb:d914:64e4 with SMTP id u23-20020a170902a61700b001ebd91464e4mr9920083plq.32.1715012256767; Mon, 06 May 2024 09:17:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715012256; cv=pass; d=google.com; s=arc-20160816; b=K7N7CXhTqoj1/I9Qciuyp+vbkgcCb8KnpX8HCNJAD5a/8gjqWbE/u018WAMKl4cstL PGkM2ChcHgU77Gt0YlxBaveYnO3oWpulraRk4MP8uhqXMHWGimoMAH7l6cNLJgy32KeA VX/G/F2c/l2ZKGCHnI24giL8ynrFBRabIJdVKjQ+qni/6LUD4E+yhCHCR9A/JL43rSM3 FpiccLcZznm32SuiIvPZaFLPQLVgu3G/j9Pe933pCx2Xn+m9XAZ0nJwHFdDU41Pl5oi0 aO4vBHAHuwxIWUkjdF4B35wEVi/Uefeg/jzcN1CZIQEBuZjGgGss4ANRLwBpzGj6WFZ7 IHRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=aQwH77/vqcL6nAroUqOCPsVDtJd7S7+cLJcYruhNakw=; fh=KupMnq9ceVvc4p2IECG1TNVL5WBx7IQx3UIjaGArgQg=; b=QQaCENirHLO6CPfjB19Mk+J1A6+gumwC2l2gXcd7srWbgFEOO9hSy97ngkFDR8HDRl PWKyVFp/Yh4mlk7D7To0DbR408cLHyyRMz67Yu98k2p9tPrmuwiCAp1osePPKd2doBe0 EM4m6WCA99W4ftN4Hyp/UYK9gYJIWHfG3rWEhmYlXjLJL1cPbZMlv4PMEcu2bdX+K0Bn 5HNKwQK4WoUbA7Q0LSFPqE/lyXJIWfVNyJZZeqbbYS6Rk2OpnrpnpEVlYjN75cTAZn81 qgsNJbHDMS3DceKgThfF/di3hPEsyK1MBAhyG9r8eIH7o6EcV282+M/54v54GnPiwVL6 /euw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="V8HnOUT/"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-170138-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k12-20020a170902c40c00b001e435156497si9104571plk.240.2024.05.06.09.17.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 09:17:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170138-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="V8HnOUT/"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-170138-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 70045282D56 for ; Mon, 6 May 2024 16:16:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48E70156665; Mon, 6 May 2024 16:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="V8HnOUT/" Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18753156F4B for ; Mon, 6 May 2024 16:15:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715012137; cv=none; b=gjWb2pUlARr8may4en2lQee34Gg69iowsTR11krnf61tWra8p958edueV/eYnENdRj9+eJeYZQut/V0kLRf/pVd7CHSymUSpGnHHgFY4AAO4bN0SKgjYb4VPb9fENmXd95ohufLACUvlwX6pqrm/wfY19Mgm9UFY+bcO+N902sc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715012137; c=relaxed/simple; bh=Z1/InqPro1U0+pj2thLeLheiLnUhwHnjffb+hYMRUik=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BNQhS7wxEgzLWvgzAMLvoPuPhlpRO1CUBlDL8y9t9F37TMZaNemx16fSskpdKhpeiWyqwkFgeGjc9a+4a7v1l8gGo8kCUtR1oXB74Bc5Z3+DkWxICXiZXrnvwiZ1cOq92lFjCgJZ05B7453kFU11C7adYUQKaGCR59RMAVx6b7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=V8HnOUT/; arc=none smtp.client-ip=91.218.175.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1715012134; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aQwH77/vqcL6nAroUqOCPsVDtJd7S7+cLJcYruhNakw=; b=V8HnOUT/VokwW+uYWJOISqr2V5v6Hx9Xoch5AKCRFlN5KF9ZmcjEHTt060RfbQ2OyloYl0 ulGRfNMLiLhxQ39fynU7VsQN3xOB4F++inlb8uUHUllvZCCTQmyTrtrBGnDz3rG6hdLDJs VVEciYL6NT/6ir8pzFieDDiO7D1GnU8= From: Sean Anderson To: Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , linux-pci@vger.kernel.org Cc: Michal Simek , Bjorn Helgaas , Thippeswamy Havalige , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sean Anderson Subject: [PATCH v2 4/7] PCI: xilinx-nwl: Rate-limit misc interrupt messages Date: Mon, 6 May 2024 12:15:07 -0400 Message-Id: <20240506161510.2841755-5-sean.anderson@linux.dev> In-Reply-To: <20240506161510.2841755-1-sean.anderson@linux.dev> References: <20240506161510.2841755-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT The conditions logged by the misc interrupt can occur repeatedly and continuously. Avoid rendering the console unusable by rate-limiting these messages. Signed-off-by: Sean Anderson --- (no changes since v1) drivers/pci/controller/pcie-xilinx-nwl.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/pci/controller/pcie-xilinx-nwl.c b/drivers/pci/controller/pcie-xilinx-nwl.c index ce881baac6d8..c0a60cebdb2e 100644 --- a/drivers/pci/controller/pcie-xilinx-nwl.c +++ b/drivers/pci/controller/pcie-xilinx-nwl.c @@ -267,37 +267,37 @@ static irqreturn_t nwl_pcie_misc_handler(int irq, void *data) return IRQ_NONE; if (misc_stat & MSGF_MISC_SR_RXMSG_OVER) - dev_err(dev, "Received Message FIFO Overflow\n"); + dev_err_ratelimited(dev, "Received Message FIFO Overflow\n"); if (misc_stat & MSGF_MISC_SR_SLAVE_ERR) - dev_err(dev, "Slave error\n"); + dev_err_ratelimited(dev, "Slave error\n"); if (misc_stat & MSGF_MISC_SR_MASTER_ERR) - dev_err(dev, "Master error\n"); + dev_err_ratelimited(dev, "Master error\n"); if (misc_stat & MSGF_MISC_SR_I_ADDR_ERR) - dev_err(dev, "In Misc Ingress address translation error\n"); + dev_err_ratelimited(dev, "In Misc Ingress address translation error\n"); if (misc_stat & MSGF_MISC_SR_E_ADDR_ERR) - dev_err(dev, "In Misc Egress address translation error\n"); + dev_err_ratelimited(dev, "In Misc Egress address translation error\n"); if (misc_stat & MSGF_MISC_SR_FATAL_AER) - dev_err(dev, "Fatal Error in AER Capability\n"); + dev_err_ratelimited(dev, "Fatal Error in AER Capability\n"); if (misc_stat & MSGF_MISC_SR_NON_FATAL_AER) - dev_err(dev, "Non-Fatal Error in AER Capability\n"); + dev_err_ratelimited(dev, "Non-Fatal Error in AER Capability\n"); if (misc_stat & MSGF_MISC_SR_CORR_AER) - dev_err(dev, "Correctable Error in AER Capability\n"); + dev_err_ratelimited(dev, "Correctable Error in AER Capability\n"); if (misc_stat & MSGF_MISC_SR_UR_DETECT) - dev_err(dev, "Unsupported request Detected\n"); + dev_err_ratelimited(dev, "Unsupported request Detected\n"); if (misc_stat & MSGF_MISC_SR_NON_FATAL_DEV) - dev_err(dev, "Non-Fatal Error Detected\n"); + dev_err_ratelimited(dev, "Non-Fatal Error Detected\n"); if (misc_stat & MSGF_MISC_SR_FATAL_DEV) - dev_err(dev, "Fatal Error Detected\n"); + dev_err_ratelimited(dev, "Fatal Error Detected\n"); if (misc_stat & MSGF_MISC_SR_LINK_AUTO_BWIDTH) dev_info(dev, "Link Autonomous Bandwidth Management Status bit set\n"); -- 2.35.1.1320.gc452695387.dirty