From patchwork Wed Jul 31 10:43:11 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: 13748469 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 B53A8C3DA64 for ; Wed, 31 Jul 2024 10:44:34 +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=yITlV2EmP04/pdfMm5rgZ7lDN6+U5nqKkJKbXuYj7Jg=; b=U2YIgMfTdl/hAJ6Lzj5d7b3wEb ZbJn0BRTvJ2jyiupeGl9Oq5QkPHgsog5KQU+jnWsFw0xPrORgHym3o+B2/x3Ci4M+dtbPvs3G37Vh Dl5yy7qDScxxDGKmp0aO2bmE6nAb58JGMCE256bjm9UwM/qNuvI+ipOWUBozDIhYmGAvXrh0gXJ8G VMs5IL4rtH3cIBuMU6F6LOrYC59XKOZNqBm+61g3cZCkF5J2+JTQM49olZkNTNrtdZm9KdCOktzs3 frJpCh1wzX0sMFv8/fOQToLlajvn2gQVPqymqXVxgwqcPScaSbFff+B+RBH7BpqcnxOLulRY2JwJq 6HJ+8L+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ6oi-00000000lYk-1Pbb; Wed, 31 Jul 2024 10:44:24 +0000 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ6oB-00000000lMn-0TVK for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 10:43:54 +0000 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-704466b19c4so3384837a34.0 for ; Wed, 31 Jul 2024 03:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722422629; x=1723027429; 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=yITlV2EmP04/pdfMm5rgZ7lDN6+U5nqKkJKbXuYj7Jg=; b=GD7yhk2KtenQyxsetFr63aiZtH9PzmNi0bVFQdMEfh9GZ+8T7n0I01FZIVhahoT0e3 UIYWIl8/JDIL8lsvT/sTvHmHeAUMtVFenuzf8Zw2vmer5vc1s3JscCJxhjKrOH8v7O6/ XGVrDQYrEUDM6h920uysLfne3kzYwDfhlLSOC2TvHTGpdBu5Uk7bD6lXZkzyBGvuhMxA OMd0SVI8h5gJWm8vk0J29mgTFhY0BLHd7jaDF+5rD1AshRdn/x+ViCws4wumFLWGKGQv k0u7Zqgm0AGvFPWr7ZjMG7B/fMZr+wP8UkWMWZSArFBz46VqTRN2lNKgBQMA8lILQnIc 8dZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722422629; x=1723027429; 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=yITlV2EmP04/pdfMm5rgZ7lDN6+U5nqKkJKbXuYj7Jg=; b=EzeeGbavqUcL3aVaqJ24goOQ0HcNGdnfDSJkbu9xdPoi3/cucDc6JgbcaWxQ8W0ghZ Tcjz5DouzId+TiPp1HY4OzBEFwsSKudFG9kKBp//BTuqRCtzDYFIBNu6tm7yp77hE+Ha bjuY/ER7RGq/KFui+aK7jC1eHIEZDe+5Mo2TeaBOK3ZlBdOdCg5JsNjXIfbU5H5pnZJZ cRrPtRbiCzM4AUAoYPijaVxEcOdzvYJD+NE7SA5Z6nybZfQCoDmNW1b7dhlfLx9hYG5O Aky8hgeqWwqY02celP/w4CGQBIPGbpQVFImnGQm53h688g/Z+o91NTzQLdLEKoBO8lok JDPQ== X-Forwarded-Encrypted: i=1; AJvYcCUtqeRyKQ1xRK+aEQ9yX/gTgsGT/lvI9Vlxw3paqjM1RdW1hzFGURSyFfLW4KZnfmr7T6qoNymerVgMTs0zDCbi@lists.infradead.org X-Gm-Message-State: AOJu0YzhH61Eif5JIvWWjhuEv8PgiamBUzz5KEk1nZpfB+N0iLd2TX0B ZtE+aWIDgekEWtxeA8oMJTyUVFeTALpYYSRXtvMGMM6KKtVJy9Tm X-Google-Smtp-Source: AGHT+IF7lo5715caiO5yQuVUS/Wxz7nFOFtJwBaZnI797vwpaHgFj3G+ha2rUkQ1l3bkOpJG6N5crw== X-Received: by 2002:a05:6359:b97:b0:1ac:f3df:3be1 with SMTP id e5c5f4694b2df-1adb243f94amr1301149855d.4.1722422629214; Wed, 31 Jul 2024 03:43:49 -0700 (PDT) Received: from localhost.localdomain ([129.146.253.192]) by smtp.googlemail.com with ESMTPSA id 41be03b00d2f7-7a9f816da59sm8791375a12.29.2024.07.31.03.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 03:43:48 -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 0/5] net: stmmac: FPE via ethtool + tc Date: Wed, 31 Jul 2024 18:43:11 +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-20240731_034351_216638_63D407CD X-CRM114-Status: UNSURE ( 9.62 ) 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. Furong Xu (5): 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: drop unneeded FPE handshake code net: stmmac: silence FPE kernel logs .../net/ethernet/stmicro/stmmac/dwmac4_core.c | 6 + drivers/net/ethernet/stmicro/stmmac/dwmac5.c | 37 +++++- drivers/net/ethernet/stmicro/stmmac/dwmac5.h | 7 ++ drivers/net/ethernet/stmicro/stmmac/hwif.h | 14 +++ drivers/net/ethernet/stmicro/stmmac/stmmac.h | 3 + .../ethernet/stmicro/stmmac/stmmac_ethtool.c | 111 ++++++++++++++++++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 25 ++-- .../net/ethernet/stmicro/stmmac/stmmac_tc.c | 95 ++++++++++----- include/linux/stmmac.h | 2 +- 9 files changed, 248 insertions(+), 52 deletions(-)