Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2505129lqo; Mon, 20 May 2024 07:56:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXC6vErNRUaoUKVLDE9Shv4odp18NiMGUFB4d8VQOakviTzB+jeKqYWw191t/q4aCBaU3lwe/1Mr/85AP6VCsK0FCwnAuX8tK560i/fGQ== X-Google-Smtp-Source: AGHT+IHlRymoB52CsMD8Pr9bwl0I6cAi6PkA56F9AjvPkmi77SgdRvcZgXxuEv1dYzt5M7gYLcKF X-Received: by 2002:a05:6e02:1c48:b0:36a:fe5f:732d with SMTP id e9e14a558f8ab-36cc148e306mr366038215ab.12.1716216968809; Mon, 20 May 2024 07:56:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716216968; cv=pass; d=google.com; s=arc-20160816; b=r4PzE/hRJH+lL7x23djh36qfyCdPW6bjBXPOMAejAhvlFOqU/01Xfscgib4XO3K/jQ sKgIayW7PYojaV20GqEUPA+LGQIILwSjo7peJofBqGAi9ubAiHjw/TyKP721SoWlk9Lo QkCyxDjWDwlX2r8fScUhiDhy1hUcSSEZV7KZGwR/voRi0LadQ79EsghytA/mpqX5uzLu 4n4Vf4+XzeEVTJrG93SnOZH4JuvDzUy6Ho+KSoyHsCs2qatJnjeSSg41kDO592H7l4M0 gfE+W6qOPB/BixgGPa2yAM77rQK9/BiAKYOwJMJ5jVVEcF6ib1pnSQHAhgJqiZO6Os34 OEdw== 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=PrNml9blRRL1fcGRyH/rzAV0JJEGMb8alRHEE/fx5Zw=; b=ehoTmM5AhXff56N7bRrNF7ohCX+W/lpdnMTm15adGxpd57B78bjXgAsGw/prwYKRk+ s3qwulyB1HFjB1mHWot2VA1+0se4ldFYghODyuNkyX+cxS1RsK8VWpog84DGz6sRfjUm 7L6SiUtWRmK4Mod3bZiz3sNAJPRuy5KDO3TW2A9e3JzlfJOcovhM64ZKnyxQ1c85W/yA tpv/ef5rXCqgq8fHPYxjmMZp/j3rXHRgubA5HO5MAl5xXswokcRQLPQ76d2Bcftu7T2r XIFWfkczauNkvHVj4bMNKoxneFr0PJQEfksQLAd8SzbCZRl/iZQO5Y8WyuZHZY/nFV5M jZhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="pBvoH/8e"; 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-183864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e81786si2882122a12.116.2024.05.20.07.56.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 07:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="pBvoH/8e"; 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-183864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183864-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5C2F6B20C83 for ; Mon, 20 May 2024 14:55:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7711813791B; Mon, 20 May 2024 14:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="pBvoH/8e" Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 1005D137744 for ; Mon, 20 May 2024 14:54:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716216863; cv=none; b=KctW50M3qio6xR2cBRQqStA1Bt2kxL/gcxXwIjKRZ3pZy/LpNuz3ybsy6vwzAQm2a5nVrnKA5axK5HF8B44gu8N7CWuN9bi/6CaRNIu+WR17FQdHAULRjyRC1uYAQ2dWPjUSycTthyImzmn5jU9zkOEFdMs87NeN1g+h2rZPEyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716216863; c=relaxed/simple; bh=Z1/InqPro1U0+pj2thLeLheiLnUhwHnjffb+hYMRUik=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=h0nsbH/ceSQ2A06yRTP0DZMA7hn4LcGvwQ+Y1Kl/rGBwWdB0au+HP7akU0Lw0r9UETKQHxFgVHhCnEzIaw+vTy+n8xDPIFIffgLmyPuFMHfyd7z+oB8fYdVB0/6GqE+6A9YwDRorTGIyafwEYcBI0OLYbs75MHvD+blu7hEPc1A= 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=pBvoH/8e; arc=none smtp.client-ip=91.218.175.186 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-Envelope-To: lpieralisi@kernel.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1716216860; 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=pBvoH/8efJEugUE9jNRbNpcO7Ugvrf9vZkfx0TBnxwyqrjgD15xaD1qrOPoURAeXuuCwC+ 9BmLFlJl3xeq2Le1KR/sxxnOIZ4nJh6F3v/b/OwL1tj+07PNhV4GxktJZxtA+LsUrOQlid xl1NFvbvhGruDAT+u1+58x0jT4r2UAE= X-Envelope-To: kw@linux.com X-Envelope-To: robh@kernel.org X-Envelope-To: linux-pci@vger.kernel.org X-Envelope-To: michal.simek@amd.com X-Envelope-To: thippeswamy.havalige@amd.com X-Envelope-To: linux-arm-kernel@lists.infradead.org X-Envelope-To: bhelgaas@google.com X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: sean.anderson@linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson To: Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , linux-pci@vger.kernel.org Cc: Michal Simek , Thippeswamy Havalige , linux-arm-kernel@lists.infradead.org, Bjorn Helgaas , linux-kernel@vger.kernel.org, Sean Anderson Subject: [PATCH v3 4/7] PCI: xilinx-nwl: Rate-limit misc interrupt messages Date: Mon, 20 May 2024 10:53:59 -0400 Message-Id: <20240520145402.2526481-5-sean.anderson@linux.dev> In-Reply-To: <20240520145402.2526481-1-sean.anderson@linux.dev> References: <20240520145402.2526481-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