Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2981862pxj; Mon, 17 May 2021 14:49:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmFCxyuPeFGg35nBPYQQzo75VblvWanZyE5ALMCRt24STHfkROeBUcrT6N4csHmzVwS7Zt X-Received: by 2002:a02:3506:: with SMTP id k6mr2065260jaa.39.1621288155385; Mon, 17 May 2021 14:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621288155; cv=none; d=google.com; s=arc-20160816; b=HfK7uj5tvYKRgtakD7+DCtN52f97MC16cw7X8mRJA3D9Ub6e/U6IzBipc9v+VL1Tye DJzqxQH3MapwUspjj4r1a9CzjCjvazgJ/oZ9L6ETPsbb809kPZkUitmV54FmNC4cxy57 hsy3cRTMcUjXAk7ArCxf9P7kFpy0kdqtWN971GcR6Q7M4saVTN0gFdJmaDQz8bfCdikI v+2Ej4MRDtGi2GxVnaWi7Iewbx5ukz3htH6PVK6Wy+2AODsJuh6wfZbfEFJeqBg5iXil 0diqhp9Qaict5gzzCQA70GwQsquT6DplzEOnW8+6o4VIKnEq+wgyHThNLEfS0dnoPyW1 r/qw== 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=fOQv+7eZ0c18QMKEjO2g+ZzJKmkn4AqsLiqPV5A606brr2TGg95QV8irHdDYKoWdil y8p0snLF7JBKSRFJhdVmescuJsssVldRt2QrfnDAmen3OSyO1wJLuKJBWmBdN+giAcx0 pU63nj80tN8fF2ZCxuTNOfUiKsw5o91PWgcMieSmFmRLh7gbHrVL1ffM2SvFJuMInwvR AbMrcHwHO0gGsZridJlviQc5fSQ/k1c9ofoR98PBtUdhdo4N4EaIG3bbODPwUXre3uhO jytjLQtf6mzlQCyr8vqq1mSiovZsEbOjWzuXsWOq8tpQi39PcuupsqFrLPHAiaPPoeXi ykiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yhTbX3sx; 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 y7si1949684jap.36.2021.05.17.14.49.02; Mon, 17 May 2021 14:49:15 -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=yhTbX3sx; 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 S238659AbhEQOLk (ORCPT + 99 others); Mon, 17 May 2021 10:11:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:59648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238220AbhEQOJh (ORCPT ); Mon, 17 May 2021 10:09:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4DAC661354; Mon, 17 May 2021 14:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260413; bh=kEnxKvRvXtsSjAMGQKobqwfi53MrIc8FrAhY6aWVDy8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yhTbX3sxfVH6k2uyObFBiFYAiBOcoUPYT6y9AeRSBzcRCH4TrefbPnRJUuUd/L7zZ qvy8LMZ9X7IB+TpK9znrEwiy1q/amWxgrgWSwou6NAM6+c0VyGrPJh3Kc4x3471RhP uQtq87T/p60iF5aKoNC3zHmkiMbgYDU/GNnRbBHI= 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.12 025/363] net: stmmac: Set FIFO sizes for ipq806x Date: Mon, 17 May 2021 15:58:11 +0200 Message-Id: <20210517140303.426610972@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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