Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp65672pxj; Thu, 20 May 2021 04:42:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsA0lK8juvMsgRo1+fcF1cApwBgmEYQ8ej86Jy1hns4opfqwqoijdtYlDD5AelXfDGC4Z7 X-Received: by 2002:aa7:dac8:: with SMTP id x8mr4416003eds.118.1621510939357; Thu, 20 May 2021 04:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621510939; cv=none; d=google.com; s=arc-20160816; b=zsnNTPuaL5Ln3h9n2ccj9rkY7VwoMrqkn3d74bTmYppKZaoC2Rge8x/OUoFtb4tfXq 7Nor0e0Ei3ko4Vm8heIvUo53zi3tYAkinx87Y7HgzM2fKI+Vz4tqoUbOaaaRXvKizjDo eDmbrKQ/Qcs8IME+rHCaXSeSfry5DNrWpLj3pGgzBRXBp3Nx8Y51v2zGNzSOQ7zux82Y C+GGrj33peL9NWBPEc8eI88pnwyEeFzdHaoAh3So8XL9h0witF4jVlblkKnW2jjK1lLI JPV5YHXUh3ecL4AnecX8HVwXbtpyC0ofaKECjKF+B87YErXzba0COdXZF9i/wPn/YIs6 MZ4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=h82IXexqiOR7JwUmWuKDJhucV1AaPCOfWAvn+Nf13lI=; b=XQHyDP6nP6J1AC/9yKhSWlfPtqsIzviJK72F+6OFS8lMC4urVvXCAGX91t8EmY9p9I YP/yyBZMnq+G1srKVx3azW7jh0glIOCAvkL5RDEIufwaruLHjMlykAgi3BTBFxkwM/D0 SVnsq0v+0c4OKff4I/jbt5Uut7+DWwTe1RQKwF5AbLD551JudlCHAK08iyEw4UWwx6gw A5cC4c5Uwn0H4WnnqJGHTP2L8HuShgCK9Ie32b/XmdOmsalhtLCXBWw8QnhA8ysha3DC yMMo6j075BVuwQmvQuncAaqE6LUTt6pFlJBM7W0CHbv1LOD7ZFqEcTziZ5dFDtggAzkU Lz7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kUOUSuL5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w24si2917909ejb.384.2021.05.20.04.41.56; Thu, 20 May 2021 04:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kUOUSuL5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242760AbhETLka (ORCPT + 99 others); Thu, 20 May 2021 07:40:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:39586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241000AbhETLTt (ORCPT ); Thu, 20 May 2021 07:19:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6D859613E5; Thu, 20 May 2021 10:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505443; bh=UuI6kqth4+CJXrv9i+pQbcCa85wGcLTvm3qUCtZsltg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kUOUSuL5RLCA/ad/ZAt+h/Nqf3pcASr5fG546l2R2jW6u6bJ1aX2ZBoAUmkRIkgrL rf+h5wnj1B+j75Huzuxx71fae0eTY9z3KZg2MILQInwrpjweB+TKyzKbYuos+ALMMI fQDX31WyExF0ZbQzUpQVGbNJ7VCClUbkKXwz1hao= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan McDowell , "David S. Miller" , Sasha Levin Subject: [PATCH 4.4 137/190] net: stmmac: Set FIFO sizes for ipq806x Date: Thu, 20 May 2021 11:23:21 +0200 Message-Id: <20210520092106.723994761@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan McDowell [ Upstream commit e127906b68b49ddb3ecba39ffa36a329c48197d3 ] Commit eaf4fac47807 ("net: stmmac: Do not accept invalid MTU values") started using the TX FIFO size to verify what counts as a valid MTU request for the stmmac driver. This is unset for the ipq806x variant. Looking at older patches for this it seems the RX + TXs buffers can be up to 8k, so set appropriately. (I sent this as an RFC patch in June last year, but received no replies. I've been running with this on my hardware (a MikroTik RB3011) since then with larger MTUs to support both the internal qca8k switch and VLANs with no problems. Without the patch it's impossible to set the larger MTU required to support this.) Signed-off-by: Jonathan McDowell Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c index ee5a7c05a0e6..f1eb9f99076a 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c @@ -361,6 +361,8 @@ static int ipq806x_gmac_probe(struct platform_device *pdev) plat_dat->bsp_priv = gmac; plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; plat_dat->multicast_filter_bins = 0; + plat_dat->tx_fifo_size = 8192; + plat_dat->rx_fifo_size = 8192; return stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); } -- 2.30.2