Message ID | 20200622182940.GA6991@earth.li (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=n8be=AD=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 58C1214B7 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 Jun 2020 18:31:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 3044F20732 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 Jun 2020 18:31:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hOYZAZV2"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="CXFhhJXJ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=earth.li header.i=@earth.li header.b="izC/D2Dn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3044F20732 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=earth.li Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=SxifUnVfZvmtwic68E6buzpr4qPHf+kkvebf1HUTjdg=; b=hOYZAZV2+iViSjS8WFopdfC8IP Q+xqlTx2vTqAQlcgvnd4CHVn9iGNtIes6Fwy4nGbNUZN+D45ygPK2iGy83zZIQBmwOTvWZJPIaPE6 +RGZq4tlouewKjlWSGaGI8275JIeIWeivIWnYeU7pCDDxFE5ohQECugceYqRJaMZOE47zBUU/jr9i HHFgfHEqe/kLobq4bHWqUeTqNT23vuUYZpI3lgtWwP7VGPgYA07oJmkVEjpY86AJNgtk0NmL8l2PH CW1OvFpy7U7BwEk6W/Yy40mRxNC8BLfKoeSBNE9i5rtjUpQG0yar1Z+AOHsnPn9lq3AORZird3QhF Iw8NpdnA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnRCe-0005as-4F; Mon, 22 Jun 2020 18:29:56 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnRCb-0005aN-JL for linux-arm-kernel@merlin.infradead.org; Mon, 22 Jun 2020 18:29:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=CHDPQRCF8RcUn1ZfKaD8qjSY2WQnALFRzpAXrVpnKI0=; b=CXFhhJXJpsNMJia0jTaF+FdWuv LAWWMnvzavMwlP3Hbw6w/wsMEp0o++iTM42RQpc9khJYXJLzdMxFCCJ0xjluLfOQYJKJKCUx1RGk+ GpxjoVctYnygFrZicP2Ll1p9okwHb8LIemnBfHnXBsOsAzlXElUbmHTBh04oFSqNzI0sKPAmSCTv1 IZ2yq5nHe2/2F/g0NxhwmrYgazJf936KjJtJ2nHNrsDSrBJ/fBZ5EOcmQMhFe8fV/QLSytDKKj3n4 zpgqTPcVJ2WyjByJz5D3j3vDtuFU/vXz0zZ/iAN/mg2Ml43g+jQ2t10xsr9qR4CxpwP8fdngPjey7 j/9HzU4g==; Received: from the.earth.li ([2a00:1098:86:4d:c0ff:ee:15:900d]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnRCY-0006rJ-HF for linux-arm-kernel@lists.infradead.org; Mon, 22 Jun 2020 18:29:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CHDPQRCF8RcUn1ZfKaD8qjSY2WQnALFRzpAXrVpnKI0=; b=izC/D2DnG2aP9tepJ2H+BFC2Ug JmxyKdCL6mkil1f9KdbZtEzf5zpYswLlpRJdw6bFUlydhcq9hcCKGr58lrKn99BiLzNLAxb4V8TGi rEvMoKFqE0s/Q0GTDTx7WpJkwBjtQjlh6R3qwswx2zaL73Ds6QhadbawwNTxdbZ9dpfSeOIi/oOT8 mBIQOfrjgxfsU44yloKOvNlwGRqYQtp+u4Zwrbpl8ZvjRxg/uC0oXKgcWsdEXdD/yUdeiiCg0YH96 WHR7QVCiY9J5wGPv2B06iVP4ArqXPlyUFtxocDOubenxs7phzDiTanRq7cN7Zz1XZ8kOFNEV6ZGCW 6CYixE6Q==; Received: from noodles by the.earth.li with local (Exim 4.92) (envelope-from <noodles@earth.li>) id 1jnRCO-00020W-KS; Mon, 22 Jun 2020 19:29:40 +0100 Date: Mon, 22 Jun 2020 19:29:40 +0100 From: Jonathan McDowell <noodles@earth.li> To: netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, Mathieu Olivari <mathieu@codeaurora.org> Subject: [RFC PATCH] net: stmmac: Set FIFO sizes for ipq806x Message-ID: <20200622182940.GA6991@earth.li> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200622_192950_682365_169EAF8A X-CRM114-Status: GOOD ( 13.58 ) X-Spam-Score: -2.1 (--) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Alexandre Torgue <alexandre.torgue@st.com>, linux-stm32@st-md-mailman.stormreply.com, Jose Abreu <joabreu@synopsys.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Jakub Kicinski <kuba@kernel.org>, Giuseppe Cavallaro <peppe.cavallaro@st.com>, David Miller <davem@davemloft.net>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
[RFC] net: stmmac: Set FIFO sizes for ipq806x
|
expand
|
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c index 02102c781a8c..546b37ebd3b0 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c @@ -351,6 +351,8 @@ static int ipq806x_gmac_probe(struct platform_device *pdev) plat_dat->has_gmac = true; plat_dat->bsp_priv = gmac; plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; + plat_dat->tx_fifo_size = 8192; + plat_dat->rx_fifo_size = 8192; err = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); if (err)
(This is an RFC in the hope someone with better knowledge of the Qualcomm IPQ806x hardware can confirm 8k is the correct FIFO depth. I've plucked that value from the MikroTik kernel patch, and it works for me, and 0 definitely isn't the right value.) 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 + TX buffers can be up to 8k, so set appropriately. Signed-off-by: Jonathan McDowell <noodles@earth.li> --- drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | 2 ++ 1 file changed, 2 insertions(+)