From patchwork Tue Aug 13 11:47:26 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: 13761875 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 794B8C52D7B for ; Tue, 13 Aug 2024 11:48:56 +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: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:In-Reply-To:References:List-Owner; bh=+7d9iEhLFGEdBGoEWb9zLkjiEjssEK611mhoRerD7SA=; b=KmwPIB/w+2dJpw2/UVFLsMEN29 hi+eiDcEGvo8bDPS5x+5uyAgyg0R4y/sGutFATGnyYkHgVZTbJ3g+ijo0CpWlNBzrkTSLoFcNu2/+ Zre0GOpfOukckREUSm9017lfzhfMk47lXq7qQRZ3UGRV/8pXXEjT173zp0VHGvEmRKyE4Tv/bzgvz TceVA9gVpGjrr+3PeBJA4nq7wirxlXMuWnJ6Kj6Z1rqi1bwaQUVowZTNzVNipGxICiOojm6ji7n/w YFWSV1uJBrroTy49ZKT1FB2R3WF5++WUqo7bvYHzjLCWwDZRC9OUXylw6qP6Gz8Q2239yDlVOF5Aq 9MwxFPIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdq15-00000003Z4l-0g1q; Tue, 13 Aug 2024 11:48:43 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdq0T-00000003Ytt-2tOK for linux-arm-kernel@lists.infradead.org; Tue, 13 Aug 2024 11:48:06 +0000 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-710ec581999so2401820b3a.2 for ; Tue, 13 Aug 2024 04:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723549684; x=1724154484; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+7d9iEhLFGEdBGoEWb9zLkjiEjssEK611mhoRerD7SA=; b=ONUp0OJhsU2ImbJ0xx7Ggl6UISAzZZpUTzKxY3xaNozt4IN7ITGCCBESi/MrCs+pF6 ewAgOFcmuNc7yxmcfvFjNpAITEE1CqekqpDw0bve3zBNQS/nX4hOtj56EdJ8n6bv/QW6 /zOzQR2r2EoZd5THoJnCYGIDzExipNlKAyHglZj46ZC50stPsTPgecGfIjQlo92RHdGc 8Y432sjDYWGvl1oGtts65OUQwJO7T8nISGLGAprPSiaEX1CJRVI5qov7rW7mSeEoXzkz 1tPf5e71zzLm+iTnbTS6Pk8+hOgbyglyNbvc6L4/OTmx/akWmtZYyXsMK4QM1wm58buX j/2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723549684; x=1724154484; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+7d9iEhLFGEdBGoEWb9zLkjiEjssEK611mhoRerD7SA=; b=gBcJz9QsfCkWskEif7pFCM9gVcA5Q9uSmLphRHFINPxB9k6ORZqQyEhiEnbEWoIkbg nuxEO7K+R03YFx4PF1T6ZXUwbPzv8FxV0cUDzAUkX10aeCYNSc1Lzi5CCItUPUfJitNw Oe/hndedbTbj9jdxm1aUQxUJrYGZBwYV0UzuV5N1w6eB5u83VdIf9RVEhEY2SBZZSIx/ oEO4IqxpedIZPZxbfNnNNprrNNTnCIDeJfcot2ttGvQS4GDabjrqI4iQQY9Gc6aqF25l 7o8Sz5TGLRnuisngUV2ZsJwMG1iut9Uc98Ivo2xlI0+AD3FYzq6l9gLO+43m9t8SJNgp 3irA== X-Forwarded-Encrypted: i=1; AJvYcCWlJcr40X5iWPe9qQHBTob95w1P3dJTb88n92XQ2Hw7yHM0EhzzzhyEL7Q+M5Rm1fEkwe1+qiIqjqh7YlbDwsU7s4w2fcwHfJYGzQ5pB/QqePz8ZOo= X-Gm-Message-State: AOJu0YyLcGkZEDClRZx8NI1ELbzjEtW7E3P6HaWNBb0fqwn9FVTsXfJ1 PMOYkmqkl6Owf3YMmrfmDdtOckw8z8qGWkIr5ftxbaP6hvpIEFhZ X-Google-Smtp-Source: AGHT+IElTSvIrqpk2wLbRPBuuMsOrLa4kUNZ+aiMqa058Bv7NV0CVIQB6r/9vCRUrMVdnEYlCMWSFQ== X-Received: by 2002:a05:6a00:390d:b0:70b:2233:f43b with SMTP id d2e1a72fcca58-7125516c61bmr3696505b3a.13.1723549684205; Tue, 13 Aug 2024 04:48:04 -0700 (PDT) Received: from localhost.localdomain ([129.146.253.192]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-710e5a562bbsm5548755b3a.111.2024.08.13.04.47.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Aug 2024 04:48:03 -0700 (PDT) From: Furong Xu <0x1207@gmail.com> To: Serge Semin , 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 v2 0/7] net: stmmac: FPE via ethtool + tc Date: Tue, 13 Aug 2024 19:47:26 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240813_044805_748336_DDC38D08 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. 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 Move the Frame Preemption(FPE) over to the new standard API which uses ethtool-mm/tc-mqprio/tc-taprio. Changes in v2: 1. refactor FPE verification processe 2. suspend/resume and kselftest-ethtool_mm, all test cases passed 3. handle TC:TXQ remapping for DWMAC CORE4+ Furong Xu (7): net: stmmac: move stmmac_fpe_cfg to stmmac_priv data net: stmmac: drop stmmac_fpe_handshake net: stmmac: refactor FPE verification processe net: stmmac: configure FPE via ethtool-mm net: stmmac: support fp parameter of tc-mqprio net: stmmac: support fp parameter of tc-taprio net: stmmac: silence FPE kernel logs .../net/ethernet/stmicro/stmmac/dwmac4_core.c | 10 +- drivers/net/ethernet/stmicro/stmmac/dwmac5.c | 96 +++++++++- drivers/net/ethernet/stmicro/stmmac/dwmac5.h | 11 +- .../ethernet/stmicro/stmmac/dwxgmac2_core.c | 4 +- drivers/net/ethernet/stmicro/stmmac/hwif.h | 20 +- drivers/net/ethernet/stmicro/stmmac/stmmac.h | 22 +++ .../ethernet/stmicro/stmmac/stmmac_ethtool.c | 103 +++++++++++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 173 +++++++++--------- .../net/ethernet/stmicro/stmmac/stmmac_tc.c | 115 ++++++++---- include/linux/stmmac.h | 28 --- 10 files changed, 416 insertions(+), 166 deletions(-)