From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754003AbdEHMgp (ORCPT ); Mon, 8 May 2017 08:36:45 -0400 Received: from david.siemens.de ([192.35.17.14]:59712 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbdEHMgn (ORCPT ); Mon, 8 May 2017 08:36:43 -0400 Subject: Re: [PATCH v3 net-next 01/11] net: stmmac: prepare dma op mode config for multiple queues To: Joao Pinto , Andy Shevchenko References: <96c988c8-2d4a-33df-0d20-cc8adac3b01c@synopsys.com> <967da95a-cc4e-a0ac-c702-e659bd4f0481@synopsys.com> <54cd5a46-eed3-bce7-5280-c5e95957e8e6@synopsys.com> Cc: "David S. Miller" , Giuseppe CAVALLARO , Alexandre TORGUE , netdev , Linux Kernel Mailing List From: Jan Kiszka Message-ID: <06197e46-0a0e-4aee-3a32-f9acd2d74eb5@siemens.com> Date: Mon, 8 May 2017 14:36:34 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <54cd5a46-eed3-bce7-5280-c5e95957e8e6@synopsys.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017-05-08 14:02, Joao Pinto wrote: > Às 12:56 PM de 5/8/2017, Andy Shevchenko escreveu: >> On Mon, May 8, 2017 at 2:40 PM, Joao Pinto wrote: >>> Às 12:34 PM de 5/8/2017, Andy Shevchenko escreveu: >>>> On Mon, May 8, 2017 at 1:42 PM, Joao Pinto wrote: >>>>> Às 11:12 AM de 5/8/2017, Andy Shevchenko escreveu: >>>>>> On Mon, May 8, 2017 at 12:54 PM, Joao Pinto wrote: >>>>>>> Às 10:36 AM de 5/8/2017, Andy Shevchenko escreveu: >> >>>> >>>> [ 44.374161] stmmac_dvr_probe <<< 0 0 >>>> >>> >>> Ok, so this is the cause of the problem. The driver is geting 0 for real RX and >>> TX queues. >>> >>> Your setup uses standard DT parsing from stmmac_platform or a custom one? >>> >>> If you are using stmmac_probe_config_dt(): >>> https://urldefense.proofpoint.com/v2/url?u=https-3A__git.kernel.org_pub_scm_linux_kernel_git_torvalds_linux.git_tree_drivers_net_ethernet_stmicro_stmmac_stmmac-5Fplatform.c-23n363&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=s2fO0hii0OGNOv9qQy_HRXy-xAJUD1NNoEcc3io_kx0&m=fJQj7RiT2sksJYOAZ9VSJUDnxPR7RlE6Fw_cTV0_Mqc&s=KhdAPUtP0twDkibE89cLYs8JjnxEvBgav5uf08WL_e8&e= >>> >>> You will find a function named stmmac_mtl_setup() being called: >>> https://urldefense.proofpoint.com/v2/url?u=https-3A__git.kernel.org_pub_scm_linux_kernel_git_torvalds_linux.git_tree_drivers_net_ethernet_stmicro_stmmac_stmmac-5Fplatform.c-23n492&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=s2fO0hii0OGNOv9qQy_HRXy-xAJUD1NNoEcc3io_kx0&m=fJQj7RiT2sksJYOAZ9VSJUDnxPR7RlE6Fw_cTV0_Mqc&s=rTxn0fwdudwq9XAquH60xNHN538KBQ6_n4wODdLoyA0&e= >>> >>> In this function, the number of RX and TX queues is being set to 1 by default. >> >> Ah-ha, now I know how it's happened. >> You forget to update all setup() hooks in PCI bus driver :-) >> >> I will prepare a fix. >> Just tell me should I put Fixes tag or not? And if yes, what commit >> should I refer to? >> > > Great, you can use this commit: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c?id=26d6851fd24ed5d88580d66b4c8384947d5ca29b > > Thanks! > > Joao > Perfect, looking forward to try out a fix. Thanks, folks! Jan -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux