[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c58a62cc2971476b95e34096eb32f852@bgmail102.nvidia.com>
Date: Thu, 26 Oct 2017 10:51:27 +0000
From: Bhadram Varka <vbhadram@...dia.com>
To: Jose Abreu <Jose.Abreu@...opsys.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: Joao Pinto <Joao.Pinto@...opsys.com>,
"David S. Miller" <davem@...emloft.net>,
Giuseppe Cavallaro <peppe.cavallaro@...com>,
Alexandre Torgue <alexandre.torgue@...com>
Subject: RE: [PATCH net] net: stmmac: First Queue must always be in DCB mode
Hi Jose,
> -----Original Message-----
> From: netdev-owner@...r.kernel.org [mailto:netdev-
> owner@...r.kernel.org] On Behalf Of Jose Abreu
> Sent: Thursday, October 26, 2017 2:37 PM
> To: netdev@...r.kernel.org; linux-kernel@...r.kernel.org
> Cc: Jose Abreu <Jose.Abreu@...opsys.com>; Joao Pinto
> <Joao.Pinto@...opsys.com>; David S. Miller <davem@...emloft.net>;
> Giuseppe Cavallaro <peppe.cavallaro@...com>; Alexandre Torgue
> <alexandre.torgue@...com>
> Subject: [PATCH net] net: stmmac: First Queue must always be in DCB mode
>
> According to DWMAC databook the first queue operating mode must always
> be in DCB.
>
> As MTL_QUEUE_DCB = 1, we need to always set the first queue operating
> mode to DCB otherwise driver will think that queue is in AVB mode (because
> MTL_QUEUE_AVB = 0).
>
> Signed-off-by: Jose Abreu <joabreu@...opsys.com>
> Cc: Joao Pinto <jpinto@...opsys.com>
> Cc: David S. Miller <davem@...emloft.net>
> Cc: Giuseppe Cavallaro <peppe.cavallaro@...com>
> Cc: Alexandre Torgue <alexandre.torgue@...com>
> ---
> drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
> b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
> index 21f59fe..603225b 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
> @@ -150,6 +150,13 @@ static void stmmac_mtl_setup(struct
> platform_device *pdev,
> plat->rx_queues_to_use = 1;
> plat->tx_queues_to_use = 1;
>
> + /* First Queue must always be in DCB mode. As MTL_QUEUE_DCB =
> 1 we need
> + * to always set this, otherwise Queue will be classified as AVB
> + * (because MTL_QUEUE_AVB = 0).
> + */
Its better if we can check whether IP HW features (register - 0x120) supports the DCB or not. If yes, then set the DCB mode.
There is possibility that DCB feature not enable for few of the Synopsys IP's.
Thanks,
Bhadram.
Powered by blists - more mailing lists