Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp220657pxj; Tue, 18 May 2021 01:40:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIq7m6235pRbHgQoK6lykq2YkHDVvxLY763ujAg5vU90QPlsxvxU2/GIPzHqZKl+XXPZtz X-Received: by 2002:a6b:b2c8:: with SMTP id b191mr3437353iof.19.1621327234586; Tue, 18 May 2021 01:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621327234; cv=none; d=google.com; s=arc-20160816; b=wU5nL1IcZNLbOy/Hl93Y3419C3+iF+WxgfyutKkEbIJL9U980l/YV+LhoKI7JaU3dQ Et9tqVAA/KU9wHnQ6RlwKnn6whH9CpzTm4i1HYJQPefPUxin0JkPv6lH0xAYSSoCzz4E GA86Dz+Om9QKSpGtIXVdlCVhQE++3nTuXk899B1ZaibQHeZqzw8egMveEvpB0CLVbAmI stuPEoUMFU7qPEYdGToRZ2pdroU6m0tUOjz6iySD9VdOUJRGbW8Ff1h4Xl0X5uOzSZ8y qylonPJ3byL2/uFYW+zYCvncgxc2luVpbfi3T1rxVeybWhUWXmpHBMW9B6kOXWh9YLWt Ra2w== 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=BkVLaVN9TrFNTXqbioK21JNARIub4ejWNzCCtaQ8SWs=; b=MuYyU/F4qZGyNfU5HkRpX6pDnkHcTQuDcERCSxoLjmYiRiOo8hJ400TVAnprh/R4dP xcXEr4Km0C1b9dWhjG79c3empiAgt0gnTOtG+RhVPZJZdsJZugSiEE+01DUKC+PTQoyL 8/MNaonf3t7OZZaDjH6lZSrmS6MQ7Pev4bd3JNY7M321XtGZ30ExFqB8nw1cmLy7BPi7 k5pKzFNWLplpk3Uz95kQCohULr02v+jkkJeJ19nvrFGbNHt22XodJqZFose0gJvR4y6h jOzN1LowizUOlp20UuM6WWxzZC5yYF3NQzL9ST74uylS3GnhqrMgebuCnlb4ZXC04a9b IdHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u9vVr8WY; 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 r1si4969704ilj.100.2021.05.18.01.40.22; Tue, 18 May 2021 01:40:34 -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=u9vVr8WY; 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 S241195AbhEQPC0 (ORCPT + 99 others); Mon, 17 May 2021 11:02:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:43198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236556AbhEQOwV (ORCPT ); Mon, 17 May 2021 10:52:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9FB866198D; Mon, 17 May 2021 14:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261430; bh=kEnxKvRvXtsSjAMGQKobqwfi53MrIc8FrAhY6aWVDy8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u9vVr8WYdEnjQrikn+RmXZJ+ZUp8iabv/9rvw3ZK312asU8/6vvpmCcVrh0+7aIiA PmV9/fzr0IGzkLpTxtPlqZ6hAibjDko2/NqCb3k7PjRWzsVutfbpqs/AwKdZe9HTd1 bmapc2zk09QMH0mAjrFIwfhsKFOqQLi89AmZDK74= 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 5.10 019/289] net: stmmac: Set FIFO sizes for ipq806x Date: Mon, 17 May 2021 15:59:04 +0200 Message-Id: <20210517140305.826788332@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@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 bf3250e0e59c..749585fe6fc9 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c @@ -352,6 +352,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