Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47AE2C433B4 for ; Wed, 5 May 2021 17:00:17 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E1E6A613EB for ; Wed, 5 May 2021 17:00:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1E6A613EB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=70cOIvupE9RfkTfgKcGovwcDYs01Hd4aC+Zx9X6XsvI=; b=mITok9FCBcODY5WOacpvIUwmO ZJ/bHnYmvj3MG8ib9E8DDRBofBi4dZRfvpoK0TEahqdadu2Rh0yGgpFVWeZgTpmWQZHvQon1+8AI4 aCT/uTNE/zHOObyeIXVFmCpQ759/xythJamp1nYalJGnhpqK5vnp/dq2u3d7XB59/8OwlAVv/Z+VP FeW2lV5SZpg1XxWAgJgkgfeDzyOjsBQ0mtB9l4dbkvrGCvpG4QyBdViVCuIkSMy6wZJAlQD5+mrdq MElyHNeaWF47PgosE1F7u2pVA71UTaWoQhDt3iKUhD04cRi+HInIT61eWoN6vzq7ryLLfZA6bjiot aZ/ICtwoQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leKrF-001oYH-7b; Wed, 05 May 2021 16:58:45 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leKa4-001hwo-1G for linux-arm-kernel@desiato.infradead.org; Wed, 05 May 2021 16:41:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=s56DhvmsoEO4E0ncXUFJj4O0Y8uUZWVOy3WNWAB0kU8=; b=WfkA1gGqyxAypL1nUOcIhmRiVa TIbM+OztLl4dzMKF76v6doslBSKF/GEKvPq4Op7pefR9QRCHIjvNbL/hZtOXyo+z2By3rryljnjNJ D5hbuqb83LWy+YIb/EzEvX77jjs+p0kBXYq6T8tQ2PUE+PpmCycibHxCrsOS0PFm1jb0O8dQ7rjJf Zqf4HC5cCRvHKGUg/A27Yc4kv3Lr0RUoYzp3TKaVbE42gN3l7pIdaezKKQIlL2YAW130m41QS/J5R w6TXV3WtPJoUhv0/SUffm8EAW0JY69jmh88rOZ1KuuOs8eAAUXUi+XEulwN/+l+87DClkVqk7HBE4 gtpyArCA==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leKa1-004yFY-Fy for linux-arm-kernel@lists.infradead.org; Wed, 05 May 2021 16:40:58 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3356B6141A; Wed, 5 May 2021 16:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620232857; bh=AMAJjQ9ujnVW2iJvR7jMrwqJOFWID0e5DYKKQR9xvCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V0j3MBGNr/oE6Ds0Lo29ahnEDXMSLp8QEod3dss4Er2KiSntp/C8JNRhAMwlt2lx0 1ABVmEb6n2hRNOUlw8cSItiYHxTTUbV7bAxHiWZbnzXn2CYDM2O+D9V070/6VYMAAd oU1Ei8CP2cECXJLBstxNgGtuz5fLoY3WP9itrEbRA9ne3x0k+KQc5qdp9s8LsketTT gOllxxYCOtep/UrSEO5TW1NEjVBa3h7YOIz1Z5Jah9k/JW9v6EEoHZDKC1Qwc+7OKm gbzRGwxgTmz3yFiZP8F+zKSWSo4roMBpQxe5Jyf/7VDlVUrPgCn6Zm4eDV7916GPqc /yVgFr//tT/BA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jonathan McDowell , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.14 03/25] net: stmmac: Set FIFO sizes for ipq806x Date: Wed, 5 May 2021 12:40:29 -0400 Message-Id: <20210505164051.3464020-3-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210505164051.3464020-1-sashal@kernel.org> References: <20210505164051.3464020-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_094057_583721_AAAEF45C X-CRM114-Status: GOOD ( 12.63 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 1924788d28da..f4ff43a1b5ba 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c @@ -363,6 +363,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; err = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); if (err) -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel