From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F449606A322 for ; Thu, 3 Dec 2026 03:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=gRelkJYK; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=ob5aBqHs 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-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=wOuYWHcCHo7hOZlmzY2m19VLRLZPj/YCOyiKm+udysY=; b=gRelkJYKdKgP1bYgsq30KB3yMb KdRJj7/Y195rpabxB3RUcGnVDeEP1tYUQ8nYxg44m3GGxpDaysGWJNV09uwwsG2v/7k7OpDtFmTeE nZ/OimKv7+DbgKAjKeZ3B+akcimZqb+repg4rm3UnUhmRX5BDRMC9w7gmhcSwho2WLsiDYc54TWV7 k8p6G3bBY297eKYJlwCyuL9gVoy/q3W0Wp7Jm97wT/j5GyY4sV9sGuXLPbK4e2QfgWXMqC3MBoHrB CSMMV4QGQAmVjFv5MPSnfH6zaHbKIYKc1QY6JezPr9MY9Uxl74ed/rHHVVd2hl03BNBQfYV4drJQP pdKxHx4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYxg8-0000000DPWD-02n3; Thu, 03 Dec 2026 03:40:16 +0000 Received: from mail-qv1-xf46.google.com ([2607:f8b0:4864:20::f46]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYxg4-0000000DPUl-2KiN for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 03:40:14 +0000 Received: by mail-qv1-xf46.google.com with SMTP id 6a1803df08f44-920fb8b9859so20320666d6.2 for ; Wed, 02 Dec 2026 19:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796269210; x=1796874010; darn=lists.infradead.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=wOuYWHcCHo7hOZlmzY2m19VLRLZPj/YCOyiKm+udysY=; b=ob5aBqHsO6WAwlbyhIShSXFaBlJ1BEXUKhxcV5NDpVeo/CYJNJvV1d2OUrfuX340k0 jsmypwQkV5i5Vafpa2VT0WrWAqd8V5dZ8wAodYbBtKrkjH0+KcTCjo53X+Ni0kHSm/Cj gSEiU+xFNuJv+E6/GLRvVBH0rhD9YWkrfEL3/1BBfZtLJn3VWBBx265+Rn3eZXudOO4W 0hBg2KjTqCiDR3QImsPVnrXM5tFVFa2t8TPUQh2rJUzAqgAJ66oR0cPbQg3U149e7kLs B4mDtPVMlhCvOZ2k+LYCCxQUR3HHjU2SWA23fdwA+HYB0MzWNe3igmiGSaztufYuPyYL oriw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796269210; x=1796874010; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=wOuYWHcCHo7hOZlmzY2m19VLRLZPj/YCOyiKm+udysY=; b=tY98QvpfCmtIi5nLS4NagDzDMPKg9bn4L4NmdMr9hKPB1yak4hHX04Ir2ebrUL5YJh A37B3F+adFUJ0B2kfOpUn7zFhrVSUGgbv+YoaTzTf0/GcE1XmYcLIpMQAmWxVWB1SBAc zv84L3vifkZfUPlq+wyVQTy+bmrnEi4h3EHK7PLm0cktDCZcBYvuYvQ8fECUmio7Md3V ITDuv8IoQnuJetlXDB23yb1nUZzGoXvnuJzefKB7+ZcY8ysef9JGw51YM2rCB+2Rgo8M X+5cDyptsN8zNKUGmds2Km2p/NKUiFj8My3tASlj+kG5L8kYlpKVpjH3xi+fqFyvVNq+ 6mRg== X-Forwarded-Encrypted: i=1; AL+hErF+AGqSr4Dt0/WEBimJVB8wa+8nEO8V3j9N3eEbjX73Kb0vIn3GHMv5k/8DBh7HGG7x4pY/UPz6iwBf05T0DGGJ@lists.infradead.org X-Gm-Message-State: APuU4Z+/PI66JzeULQmTNU4Z9xuqfqLw58SfLj1MkGwmReXQJ/EdieM+ nxK2saLwqx8JfSBSL5o3g2YsGxZeeRhB3bz6iy/DuSfPjsU0mZoFE1yn8qEEw1qhgWBhv/I6jaF qWa2st7UjsA== X-Received: from qkhk21.prod.google.com ([2002:a05:620a:b95:b0:94a:91f:7324]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:620a:649a:b0:949:752d:31e6 with SMTP id af79cd13be357-949bac8557bmr7003350485a.79.1796269210330; Wed, 02 Dec 2026 19:40:10 -0800 (PST) Date: Wed, 02 Dec 2026 22:40:09 -0500 In-Reply-To: <19878e38-4d48-401c-b3fb-24ea6b428f66@bootlin.com> X-Archived-By: Mime-Version: 1.0 References: <20261126031300.211248-1-jjc@jclark.com> <19878e38-4d48-401c-b3fb-24ea6b428f66@bootlin.com> Message-ID: Subject: Re: [PATCH net] net: stmmac: dwmac-socfpga: disable split header on Agilex 5 From: willemb@google.com To: Maxime Chevallier , James Clark , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Rohan G Thomas Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, "=?UTF-8?B?QWxleGFuZHJhIMOYc3Rlcm1hcms=?=" Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_194012_769268_60DC893F X-CRM114-Status: GOOD ( 21.80 ) X-Spam-Score: -9.5 (---------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-18.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Maxime Chevallier wrote: > Hi, > On 11/26/26 04:13, James Clark wrote: > > On Agilex 5, received IPv4 fragments are corrupted when RX checksum > > offload is on. > > > > This was observed as corrupted downloads on a Terasic DE25-Nano over > > a PPPoE connection with TCP MSS not clamped. It can be reproduced by > > running ping -s 2000 to another host on the LAN: ping reports every > > reply as corrupted. > > > > Agilex 5 has an XGMAC core, and stmmac turns split header on whenever > > RX checksum offload is on. > > > > Set STMMAC_FLAG_SPH_DISABLE for Agilex 5. Other glue drivers set this > > flag already. The same failure with fragmented ping is described in > > commit 47f753c1108e ("net: stmmac: disable Split Header (SPH) for Intel > > platforms"), which noted that according to the DesignWare Ethernet > > QoS (not XGMAC) datasheet, split header is not supported for IPv4 > > fragments. > > > > With the flag set, fragments are received intact. > > > > Fixes: 93d46ea3e984 ("net: stmmac: socfpga: Agilex5 EMAC platform > configuration") > > Cc: stable@vger.kernel.org > > Signed-off-by: James Clark > Maybe there's a way to properly process these unsplit packets, it seems to > me (running some tests on DE25-nano too) that the first 256 bytes are in > buf1 (matches HDSMS, the max size of the header) and the rest is in buf2 > but I > haven't dug deeper. I'll drop a message to Synopsys, maybe they can shed > some > light here. Agreed. If we understand *how* these IP fragments are corrupted, maybe it can be fixed up in software. Rather than having to disable header-split for all packets. > In the meantime, let's have that disabled on this glue, and wait to see if > any other XGMAC glues face that. > Reviewed-by: Maxime Chevallier