From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joao Pinto Subject: Re: linux-next-20170320 breaks stmmac on meson (Amlogic S905GXBB) Date: Tue, 21 Mar 2017 10:13:08 +0000 Message-ID: <88d2fa04-a9db-dbab-2c4f-03310ef7d540@synopsys.com> References: <690d5153-7725-83e6-208a-6cb4cac3cd93@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Cc: , "netdev@vger.kernel.org" , Corentin Labbe To: Heiner Kallweit , Joao Pinto Return-path: Received: from smtprelay4.synopsys.com ([198.182.47.9]:46458 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756428AbdCUKWE (ORCPT ); Tue, 21 Mar 2017 06:22:04 -0400 In-Reply-To: <690d5153-7725-83e6-208a-6cb4cac3cd93@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: Hi Heiner and Corentin, Às 9:58 PM de 3/20/2017, Heiner Kallweit escreveu: > As reported by Corentin Labbe before: > stmmac in the latest next kernel is broken also on meson8b. > > The following commit seems to create the trouble: > 6deee2221e11 "net: stmmac: prepare dma op mode config for multiple queues" > > I also get queue timeout errors. >>From what you are describing it seems that the tx op mode is not being configured by some reason and so it is not enabled. Please check if this path is being executed: stmmac_mtl_configuration >> stmmac_dma_operation_mode >> priv->hw->dma->dma_tx_mode It must iterate by all the available channels / queues, that should be =1 since I assume you have a single queue: if (priv->synopsys_id >= DWMAC_CORE_4_00) { for (chan = 0; chan < rx_channels_count; chan++) priv->hw->dma->dma_rx_mode(priv->ioaddr, rxmode, chan, rxfifosz); for (chan = 0; chan < tx_channels_count; chan++) priv->hw->dma->dma_tx_mode(priv->ioaddr, txmode, chan); Could you please check if RX and TX op mode are being programmed? The rx and tx queue counters are initialized in stmmac_mtl_setup() function (stmmac_platform.c). If they are not declared in DT they assume the default value of 1. > > Rgds, Heiner > Thanks.