Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp557184pxj; Thu, 20 May 2021 16:10:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6xYc3sPELtF2udUMPueccrpvGEicA6w6438E7eRaJRAG9Jx/Vg9dMUw7CZo/8AMnzxO+q X-Received: by 2002:aa7:cc98:: with SMTP id p24mr7666712edt.353.1621552202668; Thu, 20 May 2021 16:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621552202; cv=none; d=google.com; s=arc-20160816; b=Pr6uhlFitfclwgaQ2EnGORvhu9d5UZo0chsdJVDMGZioMs4qCe+ncbOcsXponMIEwx KebprNDJ4STzp7Rs3PgxtE0YQPvwDSglsG7/aqjf7rLkQdh9R5Tu4+9DxqZ7impj6beP BN/vnulV//ORMrI7nIFVo1yCYoNy3VhMDk1hcNYPRgHCnaRW/cQnZqc/hGS8J3mb4D5t 5pxqeonEZW0SxWkKCVyvjpF++CS5UB3rU5dzP/+74N/97CMYCNpW06vV9z5BSVrxwH/p jpwPzYyChMp0kW/HzSDRLpz50pBvTeqRinrrRNcN3wfanwdommoAehutMu5IP62keKIJ BH0A== 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=s56DhvmsoEO4E0ncXUFJj4O0Y8uUZWVOy3WNWAB0kU8=; b=rmxG8LOwm/rEIv39hg6DfVAELb8tBa36lOyGnDXOWMsxFaxv9IjRvBcwi+cNKytuP1 YOV11T6hGTibNAFp6/7jB2t6ky/B/ZZh5CDBht8Wci543nvu83wUScT6y617vamJt/Pf bDWXa8ND4YKhNNW1HQDiQZjvtK7P7K+665i9g1q92tA5QCm+ipfAElw4g8uUvyHPEEtt XSD+Ro395WZBRzWrhEZpBf735jIxkT5nFFpRQ19RXqjLGk8dZeDP2t2nGcirUBcCF2nH fuydXWTSkcDH1JCYBvox1zEH7LrQtPkpxxq+BNe4YyG+ONlzFS76+GeUofQk3ELVktaJ edCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q2oMMULW; 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 b13si3457689edt.321.2021.05.20.16.09.29; Thu, 20 May 2021 16:10:02 -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=q2oMMULW; 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 S239544AbhETLUJ (ORCPT + 99 others); Thu, 20 May 2021 07:20:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:57186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239618AbhETK76 (ORCPT ); Thu, 20 May 2021 06:59:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 675C26191C; Thu, 20 May 2021 10:03:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504989; bh=AMAJjQ9ujnVW2iJvR7jMrwqJOFWID0e5DYKKQR9xvCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q2oMMULWlr4hrpc79V9EPeSy8u40Pk4zic/+tBxUiTBtj+7cC6DrXQQO9QZBZxQbY 4LSKA2XXzXMocyKAftGpNHj0JldUHKmLhEy/ZtGLcINQ27hrLzQfdEZ1jBYiIOAi7C JBZJnGJhytLHcQ3ok4hqlg90FzGJj17lR5ub/Vqc= 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.9 172/240] net: stmmac: Set FIFO sizes for ipq806x Date: Thu, 20 May 2021 11:22:44 +0200 Message-Id: <20210520092114.427578636@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092108.587553970@linuxfoundation.org> References: <20210520092108.587553970@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 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