netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joao Pinto <Joao.Pinto@synopsys.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>,
	Joao Pinto <Joao.Pinto@synopsys.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
	"David S. Miller" <davem@davemloft.net>,
	Giuseppe CAVALLARO <peppe.cavallaro@st.com>,
	Alexandre TORGUE <alexandre.torgue@st.com>,
	netdev <netdev@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 net-next 01/11] net: stmmac: prepare dma op mode config for multiple queues
Date: Mon, 8 May 2017 13:02:12 +0100	[thread overview]
Message-ID: <54cd5a46-eed3-bce7-5280-c5e95957e8e6@synopsys.com> (raw)
In-Reply-To: <CAHp75Vc1YeD9DvwVLh7U1CtDWRGpm-zQSbf4d8C=skLcf_ucBg@mail.gmail.com>

Às 12:56 PM de 5/8/2017, Andy Shevchenko escreveu:
> On Mon, May 8, 2017 at 2:40 PM, Joao Pinto <Joao.Pinto@synopsys.com> wrote:
>> Às 12:34 PM de 5/8/2017, Andy Shevchenko escreveu:
>>> On Mon, May 8, 2017 at 1:42 PM, Joao Pinto <Joao.Pinto@synopsys.com> wrote:
>>>> Às 11:12 AM de 5/8/2017, Andy Shevchenko escreveu:
>>>>> On Mon, May 8, 2017 at 12:54 PM, Joao Pinto <Joao.Pinto@synopsys.com> 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

  reply	other threads:[~2017-05-08 12:02 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-15 11:04 [PATCH v3 net-next 00/11] net: stmmac: prepare dma operations for multiple queues Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 01/11] net: stmmac: prepare dma op mode config " Joao Pinto
2017-05-08  6:56   ` Jan Kiszka
2017-05-08  9:36     ` Andy Shevchenko
2017-05-08  9:54       ` Joao Pinto
2017-05-08 10:12         ` Andy Shevchenko
2017-05-08 10:42           ` Joao Pinto
2017-05-08 11:34             ` Andy Shevchenko
2017-05-08 11:40               ` Joao Pinto
2017-05-08 11:56                 ` Andy Shevchenko
2017-05-08 12:02                   ` Joao Pinto [this message]
2017-05-08 12:36                     ` Jan Kiszka
2017-03-15 11:04 ` [PATCH v3 net-next 02/11] net: stmmac: enable/disable dma irq prepared " Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 03/11] net: stmmac: rx/tx dma start/stop " Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 04/11] net: stmmac: prepare stmmac_tx_err " Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 05/11] net: stmmac: prepare dma interrupt treatment " Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 06/11] net: stmmac: rx watchdog config prepared " Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 07/11] net: stmmac: rx and tx ring length " Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 08/11] net: stmmac: prepare rx/tx set tail function " Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 09/11] net: stmmac: dma channel init prepared " Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 10/11] net: stmmac: tso " Joao Pinto
2017-03-15 11:04 ` [PATCH v3 net-next 11/11] net: stmmac: stmmac interrupt treatment " Joao Pinto
2017-03-15 21:44 ` [PATCH v3 net-next 00/11] net: stmmac: prepare dma operations " David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54cd5a46-eed3-bce7-5280-c5e95957e8e6@synopsys.com \
    --to=joao.pinto@synopsys.com \
    --cc=alexandre.torgue@st.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=davem@davemloft.net \
    --cc=jan.kiszka@siemens.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).