From patchwork Wed Jul 31 10:43:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Furong Xu <0x1207@gmail.com> X-Patchwork-Id: 13748505 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 5F1F6C3DA64 for ; Wed, 31 Jul 2024 10:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fu1ouNnrG9bF+uAnA7GwZya1Ys3715c6hhI6EtcZ2RA=; b=uWWYOqSK5Lebj3JtvHhNtzmxqg /gE+TM3tSZBDW6S46C36mFOun+10xyklV/6YUXzCGFZWix6gviQElk0L49MMytmOnCfHXX38lcRBG 4IrnBo1HmfhDVFrUr3l2FCr6Eg5Rl9DzkmrWC+Wr9OHYpbZckgXNnWMsQfyxunV/vsQkUf+q3Ayhx VaxMtOLatVIipW4CH6/qOzBa/wNrR1OIeXijYxjKput5Bq4C5UbCODV+p75QvuYTvbc+RJfjp+M/y Uf2MgIP+26EUF3H1Ip0puchAPkAe+aQl+/cjcWFXyW02WoTaHBpwJJL7hMI+odyiWbJRXNqx8UsF+ v95e5qGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ6qr-00000000mFT-2OOU; Wed, 31 Jul 2024 10:46:37 +0000 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ6ox-00000000le7-05Rj for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 10:44:41 +0000 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-26106ec9336so3079657fac.2 for ; Wed, 31 Jul 2024 03:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722422678; x=1723027478; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fu1ouNnrG9bF+uAnA7GwZya1Ys3715c6hhI6EtcZ2RA=; b=PiXG4Odr3vHfa4p3TJ4uTt5Oc4mcJ9N46re1a8q8GAWvgheiISYcW2CgBgsP3j2Jkt KhtbA3V/XfDYS9DnyYPR1691UwkW3Sc1z+XsgoPOS1GDLHLCD3TvBwbOAxf7BygigW+7 EhW/00/ukVJ6HVu+VGt3OjoYN564AyVXCCFOOzex0UXW2BTUQoxeL7EJe2J8Qmf0bW7P 0wDoXhMUEdT3WBPSlMkwfrYCKotFUalkBA6i1TwiNGEFrm9nM0ZvU8/2gZ/8RIxLQ/ZP +taWe5b/7DzdHAzjK63pG1j8wrNd7YhCye1k1aY82HISxH4Rx5S+PEr14a1gvZmp9+kU 5ZEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722422678; x=1723027478; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fu1ouNnrG9bF+uAnA7GwZya1Ys3715c6hhI6EtcZ2RA=; b=md9DEz2yuU6s3vUXqKGi8Cg+wDE2MikLsXEFFOPHZxqBGUrvphl52tM2x0gwxtrG9j S1LrpqgbMO3n64yWhmuT1toA3CgqbVKUdz+Rkq9T/419fAJGX/DEIeG9IQgdUXN1vegV UGPgS5cVikCsO+9pWn6W7Bv4MciDWMr2kX/hCAk7AG/HWsdb84EtTz9mmYUCUwBEaakv c99zgdcE0/BOgw/PDBoyhuR13CKsvWAyURtHtqRyeF1qUB2IbLGxYu/zcONbu9Fq5KIV 1sen5iCqypGDL3fMRiZX6hKt8PuTJs88Ved1PLtjfk66yehKoHGutzocFNDFxO1ovgYt oE9g== X-Forwarded-Encrypted: i=1; AJvYcCX43Lm7BFARlJrMFtkckZpBAKTs3OiqfyPo+riDUxB1Tk6NN7yapEdqTUX7Ps1eh62VMRMIgmptTyPoRS0+eNaO2sXV0dQsm1zGovsuK00+Gi1dQ3o= X-Gm-Message-State: AOJu0Yz2Z3wMz0WIeHKbbvQeZZ+eLUrnRQVuUHylmbn6N07uhux8cuj3 0xncRE3HeIOJ+6Iy/9wHSklkv0m/VUt0asN3JR5m3wPpNrgMWHCk/39n1A== X-Google-Smtp-Source: AGHT+IEvFA1K3zu3i0XikbrUbT49e6jRM+kXTRxXXH210S3QRwo16GCTK94T7ErsdT4YoniWaIZ6jg== X-Received: by 2002:a05:6870:e244:b0:25e:7a9:b603 with SMTP id 586e51a60fabf-267d4ccf5a4mr14061153fac.5.1722422677818; Wed, 31 Jul 2024 03:44:37 -0700 (PDT) Received: from localhost.localdomain ([129.146.253.192]) by smtp.googlemail.com with ESMTPSA id 41be03b00d2f7-7a9f816da59sm8791375a12.29.2024.07.31.03.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 03:44:37 -0700 (PDT) From: Furong Xu <0x1207@gmail.com> To: Andrew Lunn , Vladimir Oltean , "David S. Miller" , Alexandre Torgue , Jose Abreu , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Joao Pinto Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xfr@outlook.com, rock.xu@nio.com, Furong Xu <0x1207@gmail.com> Subject: [PATCH net-next v1 5/5] net: stmmac: silence FPE kernel logs Date: Wed, 31 Jul 2024 18:43:16 +0800 Message-Id: <370d89a46a15856856c601e1c8036cbb4bc7bb4e.1722421644.git.0x1207@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_034439_088408_48A8A05D X-CRM114-Status: GOOD ( 12.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org ethtool --show-mm can get real-time state of FPE. Those kernel logs should keep quiet. Signed-off-by: Furong Xu <0x1207@gmail.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac5.c | 8 ++++---- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac5.c b/drivers/net/ethernet/stmicro/stmmac/dwmac5.c index 068859284691..3abacd863fe4 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac5.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac5.c @@ -605,22 +605,22 @@ int dwmac5_fpe_irq_status(void __iomem *ioaddr, struct net_device *dev) if (value & TRSP) { status |= FPE_EVENT_TRSP; - netdev_info(dev, "FPE: Respond mPacket is transmitted\n"); + netdev_dbg(dev, "FPE: Respond mPacket is transmitted\n"); } if (value & TVER) { status |= FPE_EVENT_TVER; - netdev_info(dev, "FPE: Verify mPacket is transmitted\n"); + netdev_dbg(dev, "FPE: Verify mPacket is transmitted\n"); } if (value & RRSP) { status |= FPE_EVENT_RRSP; - netdev_info(dev, "FPE: Respond mPacket is received\n"); + netdev_dbg(dev, "FPE: Respond mPacket is received\n"); } if (value & RVER) { status |= FPE_EVENT_RVER; - netdev_info(dev, "FPE: Verify mPacket is received\n"); + netdev_dbg(dev, "FPE: Verify mPacket is received\n"); } return status; diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index fba44bd1990a..5531c26cba34 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -7392,19 +7392,19 @@ static void stmmac_fpe_lp_task(struct work_struct *work) if (*lo_state == FPE_STATE_ENTERING_ON && *lp_state == FPE_STATE_ENTERING_ON) { - netdev_info(priv->dev, "configured FPE\n"); + netdev_dbg(priv->dev, "configured FPE\n"); *lo_state = FPE_STATE_ON; *lp_state = FPE_STATE_ON; - netdev_info(priv->dev, "!!! BOTH FPE stations ON\n"); + netdev_dbg(priv->dev, "!!! BOTH FPE stations ON\n"); break; } if ((*lo_state == FPE_STATE_CAPABLE || *lo_state == FPE_STATE_ENTERING_ON) && *lp_state != FPE_STATE_ON) { - netdev_info(priv->dev, SEND_VERIFY_MPAKCET_FMT, - *lo_state, *lp_state); + netdev_dbg(priv->dev, SEND_VERIFY_MPAKCET_FMT, + *lo_state, *lp_state); stmmac_fpe_send_mpacket(priv, priv->ioaddr, fpe_cfg, MPACKET_VERIFY);