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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6C87BC433F5 for ; Thu, 16 Dec 2021 06:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yGv6oFxHbXtw3mdZaS/rd13xhZpHK+YaGpWem2+poxE=; b=1P0saePnkH8ws7 158KSv79prYxibUV2rirIkRYI4Re6Wzw56sROxrY+JSok4rQln6KQljC44J3apMdpwRFDLLrmeSNm UPIQ4fcsOeUPOksvDFWrUYNOX2TtcP8XR7YmbxDdagyDRxWmcUYVtjr/Kl4KePJ2Da6Z2yUIXYClg trGVBZzF1jrmFh3yVJzr55R+8h0modtVHGV8Ldro5j6YnAWCZEscuFDGdgI1Mbl0PPhJqnDuzJKt6 iyIPBHeLQjHafdLbdUoLWIcIROD7XNxmszLxMk9NOeyka50vs7fpCnalwbJwnF1R1HIa9TKLgOx5S P6suXwOsfUzQVSXXziHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxka6-003oyr-4F; Thu, 16 Dec 2021 06:49:34 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxka2-003oxi-Hr for linux-arm-kernel@lists.infradead.org; Thu, 16 Dec 2021 06:49:32 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 253CF61BF7; Thu, 16 Dec 2021 06:49:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB31BC36AE4; Thu, 16 Dec 2021 06:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639637369; bh=7bvL5hDSJ7fdSl4gbMctBcUCFh5zcS7vNHoxGI5MSo0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rR7NMNgHONWMJMJ/7b0ptVDtxIccYvBdtV/r6qwDBIX6fITBvEYAjgrdQ0gD+Eyyo VXzPvgc1aFeNz/O1H0X4FZItuoraxgNKY3+QRG88NTBZap79GfDt8HJM83Ciqus6Gl 5KTVOHOiC1S7yeok57BVL5GxGpS/hOoGscyx8NWhUPH5/A7t9DNrSBALFw3KIthcDy mnpTavLOdPmWVHgHDoQQI3a8O1GGaQ6Rwr6LS26ciE8fVlZjkjnDo/A16T3wPBqKi5 l8QGlOX06Xa1QDnpzvr56gaQiHR066cgjHj8YjVnxpWojfbVFSyuHqdeuKWxXIEyo2 tPejS3DfsCszg== Date: Thu, 16 Dec 2021 14:49:23 +0800 From: Shawn Guo To: Xiaoliang Yang Cc: robh+dt@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, devicetree@vger.kernel.org, qiangqing.zhang@nxp.com Subject: Re: [PATCH v2] arm64: dts: imx8mp-evk: configure multiple queues on eqos Message-ID: <20211216064922.GW4216@dragon> References: <20211213044546.9903-1-xiaoliang.yang_1@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211213044546.9903-1-xiaoliang.yang_1@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_224930_695893_63931519 X-CRM114-Status: GOOD ( 20.88 ) 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 On Mon, Dec 13, 2021 at 12:45:46PM +0800, Xiaoliang Yang wrote: > Eqos ethernet support five queues on hardware, enable these queues and > configure the priority of each queue. Uses Strict Priority as scheduling > algorithms to ensure that the TSN function works. > > The priority of each queue is a bitmask value that maps VLAN tag > priority to the queue. Since the hardware only supports five queues, > this patch maps priority 0-4 to queues one by one, and priority 5-7 to > queue 4. > > The total fifo size of 5 queues is 8192 bytes, if enable 5 queues with > store-and-forward mode, it's not enough for large packets, which would > trigger fifo overflow frequently. This patch set DMA to thresh mode to > enable all 5 queues. > > Signed-off-by: Xiaoliang Yang > --- > arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 57 ++++++++++++++++++++ > 1 file changed, 57 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > index 7b99fad6e4d6..e4c69594f067 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > @@ -86,6 +86,9 @@ > pinctrl-0 = <&pinctrl_eqos>; > phy-mode = "rgmii-id"; > phy-handle = <ðphy0>; > + snps,force_thresh_dma_mode; > + snps,mtl-tx-config = <&mtl_tx_setup>; > + snps,mtl-rx-config = <&mtl_rx_setup>; > status = "okay"; > > mdio { > @@ -99,6 +102,60 @@ > eee-broken-1000t; > }; > }; > + > + mtl_tx_setup: tx-queues-config { > + snps,tx-queues-to-use = <5>; > + snps,tx-sched-sp; Please have a newline between properties and child node ... > + queue0 { > + snps,dcb-algorithm; > + snps,priority = <0x1>; > + }; ... and also between nodes. > + queue1 { > + snps,dcb-algorithm; > + snps,priority = <0x2>; > + }; > + queue2 { > + snps,dcb-algorithm; > + snps,priority = <0x4>; > + }; > + queue3 { > + snps,dcb-algorithm; > + snps,priority = <0x8>; > + }; > + queue4 { > + snps,dcb-algorithm; > + snps,priority = <0xf0>; > + }; > + }; Ditto Shawn > + mtl_rx_setup: rx-queues-config { > + snps,rx-queues-to-use = <5>; > + snps,rx-sched-sp; > + queue0 { > + snps,dcb-algorithm; > + snps,priority = <0x1>; > + snps,map-to-dma-channel = <0>; > + }; > + queue1 { > + snps,dcb-algorithm; > + snps,priority = <0x2>; > + snps,map-to-dma-channel = <1>; > + }; > + queue2 { > + snps,dcb-algorithm; > + snps,priority = <0x4>; > + snps,map-to-dma-channel = <2>; > + }; > + queue3 { > + snps,dcb-algorithm; > + snps,priority = <0x8>; > + snps,map-to-dma-channel = <3>; > + }; > + queue4 { > + snps,dcb-algorithm; > + snps,priority = <0xf0>; > + snps,map-to-dma-channel = <4>; > + }; > + }; > }; > > &fec { > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel