From patchwork Tue Jul 9 08:21:25 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: 13727427 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 F146CC3DA41 for ; Tue, 9 Jul 2024 08:24:39 +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=ETQ1Az9wlQRIwVfJaj8s9DEGWwFkHYmCUfhq50YE6H8=; b=EfSm33E5xGAXWf8+1ClqhnMrdm r18yvsjJkvHrTD50oH5s2W/BAVl7EkflXTedvL9LY1JyPGu754ISnGTolwRLMIF4FHRh+y25qYoG9 6BJztUc6Utd5EJ9fxl+FPES9Ekg9PNWS2poiFeFhTJzavhnvclSfEhGjIUQVjUQGvI1pMf9XUvgD9 5QHX40oik93G3HO4+FK6hd2ToLNgJCU6SAeCjRSGvjOI8s/xpQC9048VJha6LpOI0h7daXVgJSWaL ar+nEgkdP89zO+Ru+3pfKsjdX3G+HAJHEllQ6dCBzp5kJiS6mrO3l7TwvvaSgqoypIRlmlBazVMaK VdLgz43A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR69B-00000006OSL-3qHS; Tue, 09 Jul 2024 08:24:25 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR68W-00000006O7g-3j7S for linux-arm-kernel@lists.infradead.org; Tue, 09 Jul 2024 08:23:46 +0000 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2c9e37bdd6fso1792415a91.3 for ; Tue, 09 Jul 2024 01:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720513423; x=1721118223; 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=ETQ1Az9wlQRIwVfJaj8s9DEGWwFkHYmCUfhq50YE6H8=; b=D+4oeR8SwMHXD7jyBbs6Z4+MKXsXNeKEtpwcSuDINA7dhYriaVhEaPMpE9CZ069R9Q pZinfcCQjmUcqz1u7itOvZ/dzyoEaQhzINZKffbYDGkZ63QQbbsBtqvv+0VLAhIDNURP ZOiRnfJ/rZx2ThfR1g6Dz88H/DBqpuANDbZtlKPwY+EO9gf9/rXyuEWl+XAKzwAnLOII YFOV49FMeVojkJHQDlXifzr+qcetletrQ4N3rF9FAKCamN77bdgAHbQM11L5sXJgMJpY QzxkQND5n0etdoR/ioFEf+6Wx6dlAG74qVsdxwBuZ0o2/8heDnoG+r++nXKnwN6Y97zo IACw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720513423; x=1721118223; 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=ETQ1Az9wlQRIwVfJaj8s9DEGWwFkHYmCUfhq50YE6H8=; b=sd44GHHXx1/4v1f8U3nj4iEEu/exS4wGH+sDeVP/V80X1digbWWwA3nAfJwqvPYmR/ R1UVHJAF421oTHthBdqdQ97nNnmypbpvMN44FkKowfxJsISM2xceSntf0rzNd66KpWLn KGDvyMRWZiJUSmxgrdceEnjW4ZZZB81zZaXtalKzSwA3zxXbP+JmfJiXSWr2ZtcS8bNK 2s/cb+3sUCnvVsCJFNEr+ooQ5/d1F/6KteiFnv+kgBN5ZVF0MjCK6y5GALkYDNdrhTpw RvHA7de5iVPSR3h7Dfm3gIhmGeIjMLXTxClU2ZM+Emmu9byO8P3wBBWTF0pihThlPNGg 7vRA== X-Forwarded-Encrypted: i=1; AJvYcCWvt4gyl1MagdRxV+FtBNqj3dMkvBLkeOaRaWjQygwzXccn20/l6wdz5f6pPeYf4p9W3pEzCXQp+3gQmo9rup1OAOYSJCLAgHdPPWMo/tB1y0drdXs= X-Gm-Message-State: AOJu0Yyqf+fRLkMCltcEQbyGEG2CQ/oJhvvu5wLsGRW1xpvrFc+PnQH9 0boPVzxA3b5LzaHTh4neI1iKT3eik7ohWaqhClKv1GS99Y2EgRLS X-Google-Smtp-Source: AGHT+IEVYnLUHa1kgLdWSapSU4Nr9l01XJ3I7VWvMs6KV7BVQGoIhoK6qMFuFZbgFcihFFyg/q6Bbw== X-Received: by 2002:a17:90b:110:b0:2c4:d00a:15cb with SMTP id 98e67ed59e1d1-2ca35c69723mr1851012a91.21.1720513423275; Tue, 09 Jul 2024 01:23:43 -0700 (PDT) Received: from localhost.localdomain ([129.146.253.192]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2c99a92a430sm9588929a91.4.2024.07.09.01.23.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 01:23:42 -0700 (PDT) From: Furong Xu <0x1207@gmail.com> To: Andrew Lunn , "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 7/7] net: stmmac: xgmac: enable Frame Preemption Interrupt by default Date: Tue, 9 Jul 2024 16:21:25 +0800 Message-Id: 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-20240709_012344_952739_89560686 X-CRM114-Status: GOOD ( 11.94 ) 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 Frame Preemption Interrupt is required to finish FPE handshake. XGMAC_FPEIE is read-only reserved if FPE is not supported by HW. There is no harm that we always set XGMAC_FPEIE bit. Signed-off-by: Furong Xu <0x1207@gmail.com> --- drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h index c66fa6040672..f359d70beb83 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h @@ -96,10 +96,11 @@ #define XGMAC_LPIIS BIT(5) #define XGMAC_PMTIS BIT(4) #define XGMAC_INT_EN 0x000000b4 +#define XGMAC_FPEIE BIT(15) #define XGMAC_TSIE BIT(12) #define XGMAC_LPIIE BIT(5) #define XGMAC_PMTIE BIT(4) -#define XGMAC_INT_DEFAULT_EN (XGMAC_LPIIE | XGMAC_PMTIE) +#define XGMAC_INT_DEFAULT_EN (XGMAC_FPEIE | XGMAC_LPIIE | XGMAC_PMTIE) #define XGMAC_Qx_TX_FLOW_CTRL(x) (0x00000070 + (x) * 4) #define XGMAC_PT GENMASK(31, 16) #define XGMAC_PT_SHIFT 16