From mboxrd@z Thu Jan 1 00:00:00 1970 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 F07A9C79F8C for ; Wed, 9 Sep 2026 07:48:08 +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=d1nAZDQT/TA+H2inuB0ViZceos9GynQ0h9nJpR7hJ4I=; b=AZOzp7eiHk9tJd/NUaifbGTRve UFbaTMXgBjCcwWoZCFI7pfD6LVUa77tjkkMsfXCuX1PZAkeOfWsXZ4YnJEE/uFMdnOGRKUo9JdEwD 6w44F5jfZFJK6DeVYGbXREKHGH0x664YE3kTYxYGE/aryS/qOlmpqTCszHCkMnsPxaL8hpwdiR6LF iKl/X8vfRi1zMvwXOO3Kc9GsnjMbfAgx8r6yBZq2xQuvhWpxNair1F0uazgNYNn5bWtgedqsH48vH t+C5fqD0tkJRKrsC29LPjz9wcT0/xtn4hLz1RwbImgDXgs0FcfDbUtC22bfdjXVet0ALdVuVl4MHQ eKuu2eDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4D2H-0000000B1Iz-3ote; Wed, 09 Sep 2026 07:48:01 +0000 Received: from smtpout-03.galae.net ([185.246.85.4]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4D2E-0000000B1Hh-2oh4 for linux-arm-kernel@lists.infradead.org; Wed, 09 Sep 2026 07:48:00 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 1FEE24E415AD; Wed, 9 Sep 2026 07:47:56 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id DA76A60448; Wed, 9 Sep 2026 07:47:55 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 827AA11C7AF4F; Wed, 9 Sep 2026 09:47:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788940074; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=d1nAZDQT/TA+H2inuB0ViZceos9GynQ0h9nJpR7hJ4I=; b=EvIGIL8CWA+u36nsng+YyqHSm9Dljq7Xz3bf3BHaXMVJjE8cNgcFhk7k+RV3472MsQMr5n 1t2f5nNMu7CpBvUIvtFSUmTye93FIWs+t7pdxb8egLoCnPT0DZvYBOgZxg6k0r6dBdbkQJ 2UW8cfI9CimyMj7RGgb1ruDN3uvxqYfTlGbvDPAy3akfhstn/WGEcL7TicxTx1wR2cWIaS S0Y7f2BfBoW1qnn1y4NsVBRRaJJ3rJ9+JfwSFv1YY+maODan/3Z1L1JfhAmkGxY4p8if+7 lLo42qNrikL50OPObVlyMgHLd+/ru9DxuBMEdfsn2/978k4xWZp+VmAFVopeuA== From: Maxime Chevallier To: Andrew Lunn , davem@davemloft.net, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , Heiner Kallweit , =?UTF-8?q?Alexis=20Lothor=C3=A9?= , Maxime Coquelin , Alexandre Torgue , Emil Renner Berthing , Minda Chen , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jan Petrous , Ovidiu Panait , Jose.Abreu@synopsys.com Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, PKneuper@dspace.de, David Laight Subject: [PATCH net 0/6] net: stmmac: More selftest-related fixes Date: Wed, 9 Sep 2026 09:47:33 +0200 Message-ID: <20260909074740.1247762-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260909_004759_028007_EECBA694 X-CRM114-Status: GOOD ( 10.61 ) 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 Hi everyone, This is another round of stmmac selftest fixes, mostly about the selftests themselves but a few things were discovered w.r.t MTU and buffer size handling, see patch 5. I've continued expanding the test devices I'm running this on, more devices should come in the future. With this series, _almost_ everything is green, except for some flow control stuff that is either a false positive or a real thing that needs investigating. After this is merged, I consider the selftests to be now reliable enough to run them nightly on every stmmac series that's sent, and I'll be requiring clean selftests for new glue drivers. I've been running this on : - Altera CycloneV (dwmac-socfpga, dwmac1000 IP, v3.70a) - NXP imx8mp (dwmac-imx, dwmac4, v5.10a) - Allwinner H2S (dwmac-sun8i, dwmac1000) - Amlogic S905X3 (dwmac-meson8b, dwmac1000, v3.70a) - STM32mp157a (dwmac-stm32, dwmac4, v4.20a) - SiFive JH7110 (dwmac-starfive, dwmac4, v5.20) - Motorcomm YT8061 (PCIe, dwmac-motorcomm, dwmac4) - Qualcomm IPQ8064 (dwmac-ipq806x, dwmac1000) Tests are OK if return is 0 or -95 (-EOPNOTSUPP), tests are KO otherwise Before the series : Test imx socfpga sun8i meson8b stm32 starV mcom ipq806x MAC Loopback 0 0 0 0 0 0 0 -110 MMC Counters 0 0 -95 0 0 0 0 -110 EEE -95 -95 -95 -110 -110 -95 -95 -95 Hash Filter MC 0 0 -95 0 0 0 0 -95 Perfect Filter UC -95 0 0 -95 -95 -95 -95 -95 MC Filter -95 0 -95 -95 -95 -95 -95 -95 UC Filter -95 0 -95 -95 -95 -95 -95 -95 Flow Control -95 0 -110 0 -110 -95 -110 -110 RSS -95 -95 -95 -95 -95 -95 -95 -95 VLAN Filtering -110 -95 -95 -95 -110 -110 -95 -95 VLAN Filtering (perf) -110 -95 -95 -95 -110 -110 -95 -95 Double VLAN Filter -110 -95 -95 -95 -110 -110 -95 -95 Double VLAN Filter (perf) -110 -95 -95 -95 -110 -110 -95 -95 Flexible RX Parser 0 -95 -95 -95 -95 -95 -95 -95 SA Insertion (desc) 0 -95 -95 -95 0 0 0 -95 SA Replacement (desc) 0 -95 -95 -95 0 0 0 -95 SA Insertion (reg 0 -95 -95 -95 0 0 0 -95 SA Replacement (reg) 0 -95 -95 -95 0 0 0 -95 VLAN TX Insertion -110 -95 -95 -95 -110 -110 -110 -95 SVLAN TX Insertion -110 -95 -95 -95 -110 -95 -110 -95 L3 DA Filtering 0 -95 -95 -95 -95 -95 -95 -95 L3 SA Filtering 0 -95 -95 -95 -95 -95 -95 -95 L4 DA TCP Filtering 0 -95 -95 -95 -95 -95 -95 -95 L4 SA TCP Filtering 0 -95 -95 -95 -95 -95 -95 -95 L4 DA UDP Filtering 0 -95 -95 -95 -95 -95 -95 -95 L4 SA UDP Filtering 0 -95 -95 -95 -95 -95 -95 -95 ARP Offload -95 -95 -95 -95 -110 -110 -110 -95 Jumbo Frame 0 -110 -110 0 0 0 0 -110 Multichannel Jumbo 0 -95 -95 -95 -95 -95 -95 -95 Split Header --95 -95 -95 -95 -95 -95 0 -95 TBS (ETF Scheduler) --95 -95 -95 -95 -95 -95 -95 -95 ARP offload's still there as this was a net-next patch and I've ran these checks on the net tree. Jumbo frame tests on dwmac1000 started failing after : commit 23680bf5f8c6 ("net: stmmac: restore NET_IP_ALIGN in the RX DMA offset") This commit is OK though, it just made the selftest reveal the cracks hiding beneath the surface of MTU/bufsz handling. After this series : Test imx socfpga sun8i meson8b stm32 starV mcom ipq806x MAC Loopback 0 0 0 0 0 0 0 0 MMC Counters 0 0 -95 0 0 0 0 0 EEE -95 -95 -95 0 0 -95 -95 -95 Hash Filter MC 0 0 -95 0 0 0 0 -95 Perfect Filter UC -95 0 0 -95 -95 -95 -95 -95 MC Filter -95 0 -95 -95 -95 -95 -95 -95 UC Filter -95 0 -95 -95 -95 -95 -95 -95 Flow Control -95 0 -110 0 -110 -95 -110 -110 RSS -95 -95 -95 -95 -95 -95 -95 -95 VLAN Filtering 0 -95 -95 -95 0 0 -95 -95 VLAN Filtering (perf) 0 -95 -95 -95 0 0 -95 -95 Double VLAN Filter 0 -95 -95 -95 0 0 -95 -95 Double VLAN Filter (perf) 0 -95 -95 -95 0 0 -95 -95 Flexible RX Parser 0 -95 -95 -95 -95 -95 -95 -95 SA Insertion (desc) 0 -95 -95 -95 0 0 0 -95 SA Replacement (desc) 0 -95 -95 -95 0 0 0 -95 SA Insertion (reg 0 -95 -95 -95 0 0 0 -95 SA Replacement (reg) 0 -95 -95 -95 0 0 0 -95 VLAN TX Insertion 0 -95 -95 -95 0 0 0 -95 SVLAN TX Insertion -95 -95 -95 -95 -95 -95 -95 -95 L3 DA Filtering 0 -95 -95 -95 -95 -95 -95 -95 L3 SA Filtering 0 -95 -95 -95 -95 -95 -95 -95 L4 DA TCP Filtering 0 -95 -95 -95 -95 -95 -95 -95 L4 SA TCP Filtering 0 -95 -95 -95 -95 -95 -95 -95 L4 DA UDP Filtering 0 -95 -95 -95 -95 -95 -95 -95 L4 SA UDP Filtering 0 -95 -95 -95 -95 -95 -95 -95 ARP Offload -95 -95 -95 -95 -110 -110 -110 -95 Jumbo Frame 0 0 0 0 0 0 0 0 Multichannel Jumbo 0 -95 -95 -95 -95 -95 -95 -95 Split Header -95 -95 -95 -95 -95 -95 0 -95 TBS (ETF Scheduler) -95 -95 -95 -95 -95 -95 -95 -95 ARP can be ignored, and Flow control needs some more attention, but we're getting there :) Thanks, Maxime Maxime Chevallier (6): net: stmmac: selftests: Support running selftests on DSA conduits net: stmmac: selftests: Validate EEE based on the actual LPI timer value net: stmmac: selftests: Check the dev->features for S-TAG offload testing net: stmmac: selftests: Capture all packets for vlan checks net: stmmac: size the RX buffers from the frame length, not the MTU net: stmmac: selftests: Account for alignment shift on dwmac1000 for Jumbo test .../net/ethernet/stmicro/stmmac/stmmac_main.c | 20 ++-- .../stmicro/stmmac/stmmac_selftests.c | 110 +++++++++++++++--- 2 files changed, 102 insertions(+), 28 deletions(-) -- 2.55.0