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 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 E0861C433B4 for ; Wed, 5 May 2021 17:02:05 +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 8FCEB61059 for ; Wed, 5 May 2021 17:02:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8FCEB61059 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=mZJfO1It0j2L+7fJFc2OLp3YC yQv+9lDL9JxH2VbO9HrGhwOuw/fM60dfo4ohs9KtxA7TiIvG1WTVHrkzFQosfHtrDpb1Q6RZ7eEz/ Iqrxele6HhCJRnX9ID1MREBzRpEeazvz7KVDQFiuQjB5TAqwxrmkEB7Bf1t5mx1Rr40NqMCJr9LA+ sT3WgRB/sUQDnnkFmY3z4FSN+YiPmijNEEtQqALvLRaLcnhUsvjQY3/vQtJX6i0XcUq5mZcgI7yqK oBguGB30TQ6/5cDhCicPCTzaWtBRzvKMg+++ItsdZCM1gJvPttslQxp2G/+4kHUKz9cNU4839Djvn Q0xuhBkNA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leKso-001p7r-88; Wed, 05 May 2021 17:00:23 +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 1leKaf-001iG5-T6 for linux-arm-kernel@desiato.infradead.org; Wed, 05 May 2021 16:41:38 +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=e3PlndtgfE0pLmLVAl2AmAhjpd FG/DxjmKldkjbDKct4pUlVB835zVuWcjMs+PyI4rVT5W7KvWbM/UBU775R7gm7sC3CqbkHZWIly8t jOj8UpoBPfyPtdBCE7bm8Q6oJd1IRuDrDbxKBLba2jzrabvC6AdOcHbyEh4FOpXVqfBS5xzJrN+e8 FuITx/D0cijLpVDkIW2aRHo5X6HwkCP0UwAZblgNzMEVbdG5HPpbGLnyDsbNi8ANxFQ9EtMP+g9oy 6t5HSUX4oyh2yZ/tBVnrB68qoEU/byJi7Ske5XTj0ko1sFW7tINmzLCHzcQCvGuovNYkIDfLUdeHo HlaFV1+w==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leKad-004yMI-Al for linux-arm-kernel@lists.infradead.org; Wed, 05 May 2021 16:41:36 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 10831610E7; Wed, 5 May 2021 16:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620232895; bh=AMAJjQ9ujnVW2iJvR7jMrwqJOFWID0e5DYKKQR9xvCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DJLrJX7gp1oGcdv2naMR3mrVtIgs8sX3duKZzJ52eTXuvRLJfycxV4eBv9/FLNiPy mTU1d086PNSeUCiYq3qfoJOLt3x1g4fU9cza+qPtea+nVGEgaxtaT9CvrmjGbXwZWk oMaRdf/m2bQPulNxhczT4w6rPdiBFYWd8c3Ozw8ZWORPnk+hVgBNWcIdOiKRsZwpP7 zJTaLyWGfBLbBnDspBGgGSzY7gC0Ee4IM3SvdxEHQIcsrhbmcALV1ffCAWq7U31wru H6zkgWMKZgp7Ye43RY3whkESd+vhwEuG/BA4tcLElmchoUMxukcmzyxX2MbwbeCTnQ 4zWcjihyRJPCw== 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.9 03/22] net: stmmac: Set FIFO sizes for ipq806x Date: Wed, 5 May 2021 12:41:10 -0400 Message-Id: <20210505164129.3464277-3-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210505164129.3464277-1-sashal@kernel.org> References: <20210505164129.3464277-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_094135_399883_9EE7141F 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