From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796269212; b=z4wsejaLRNkbdU8duxIT4NB0B5Zy68jG/a0XdAWOvjbBgQ2JzyOpwt4t3KLT5mR/bWAy bgVPnI2DAqJExIHTnZdWkAPEmFEMkR9dEU7C4YbLdsJAYMqBe1goeUGXcfSd4m3XWcP3j BcS8te01Z8SlALsFz69CX8nuIRruk+QYIMDdTu9kHIXcnwsWqbmHd6pevid2FIbBRxNOB 4J5MKUHJs4PFEGNbaPKFQkfQY+eRFG3a0ugg+cQsHI7avfaqxWPxcASMoxvZ3dodcy5X8 zbOuJzP1HKa97DY2FHH341vbliEKLgqnypeG0XgVducvXM6OWPsAkyN/pe2KSKIaQfQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796269212; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Received:Date:In-Reply-To:Mime-Version: References:Message-ID:Subject:From:To:Cc:Content-Type; bh=wOuYWHcCHo7hOZlmzY2m19VLRLZPj/YCOyiKm+udysY=; b=0m57O1TKUvQsWxvO3WKxBWgwetmIYH24DhOkQ1O7FxmjMna6p+wnuNrD9RS/HoHw31LJ eXiWtJbaI5cLQ0U1gkmPUPpoYg/ZIlPbUGgvNOw9ZdVuTG/L9VzsOge9oVx5rnzz6f/ju Al/pOcQwWgOZTk7QTbs+08OyqChqdYbkDK+c37KEJIXDtSjJbjvTaO3N7eLTt0Xzl0I7u ItSeSCtbtbctaxEtsZxlQtcANtP43DPXG7qkeedjAeQIyyMnLvP57js+K9RsVKUbgkfbX WzHhL3B8uqrekyMPd5sICvoXggDJ7WRvYcx9AnvWUCBvrgxxaodFLHQvUX4zvkmnjvQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=SgsSzmLn; arc=none smtp.remote-ip=209.85.219.71 Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99998606A322 for ; Thu, 3 Dec 2026 03:40:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 99998606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=SgsSzmLn Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-920fb8b9859so20320646d6.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=vger.kernel.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=SgsSzmLnWFjxDiNNfgRvIgmK+zPuwxLLaaqGbJzfYRBxb7gLD5JijKyotpGhfHgdMu gwAdVIJiEseuWaMHcSxhHYVOixkF1E3NKJkIG1El6MhBi0p00KOhRSp3lHkFMYgEHnDz kFBF5kf6wA9u0w/Ueoa/QAHpPQsphhJkTtmvFDM5JfQPDMsDh8yMhFJfz57voSRtouQV UKDYzul3EdIdwC5x3hofnoFgB8CykObuoa/GeDW4r1V1XbpSub0dAXEeMVSu1lIrD0tv Y1WlgNQyNcy44Byr8NhR9a7b7ics4d0YiFRl8HLtQu/3tqGCv0eAX1Cvfe1jGZc/GEnE 9zIA== 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=BDnKgkm0j05aY4+j9HpqC6WWO/XZ6ATS2BSp/uDK3Rs6Noe9auP5C4btyu3jphUf+8 w2XbMztuBrDtvoHJOCWGH4un4NI9Oo0YxJKWDqjxlIwr8GMdwVbYqrBCmjJWO6rap/ZV v30pJbHtjmGk8QA/ugJEN6j6ms+F5nLARbZoL7krX+C0/TpbKj7TDPjcwx/71eQAM0aS Ya7Blnzn9O1ZV5WY2d+qS7kwZ6Pg1LW33oW9JL0cAueGSzgvw6Iht/5S0CVRrLZydIXG ZMkt5ig5mltseUVJcfuCaqkUegRWZqbKt9DDML5lXtCwrte9hQxjAGdTZuZQVCO+qAEr PVYA== X-Gm-Message-State: APuU4Z/T6VX/3uAnc0ijAYxtSIfPmuOUn27Bu6gOZnYmwsakVlIWggFL vzK8hSoQZuCJ3nDadUVQUR9a9ia9Og42fxc7JW2jyoYndabqbNKBLSQDfVCxXc1mEs+Lk3fH+gv jl8CcpbB3sA== 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-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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