All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Board-Maintainers] Raspberry pi 4 - u-boot - genet / scb
Date: Thu, 12 Dec 2019 18:38:29 +0000	[thread overview]
Message-ID: <20191212183829.1ab3fdf6@donnerap.cambridge.arm.com> (raw)
In-Reply-To: <02f18c7a-08cd-c5e8-164a-14dd9e472b6c@gmail.com>

On Thu, 12 Dec 2019 10:13:27 -0800
Florian Fainelli <f.fainelli@gmail.com> wrote:

Hi Florian,

thanks for chiming in!

> On 12/12/19 3:59 AM, Matthias Brugger wrote:
> > 
> > 
> > On 12/12/2019 11:41, Andre Przywara wrote:  
> >> On Wed, 11 Dec 2019 10:23:16 +0100
> >> Matthias Brugger <matthias.bgg@gmail.com> wrote:
> >>
> >> Hi,
> >>  
> >>> On 09/12/2019 14:33, Sascha Dewald wrote:  
> >>>> Hello Amit,
> >>>>
> >>>> no problem.
> >>>>
> >>>> Is there some git feature branch, to have a look ?    
> >>>
> >>> Yes I'd love to have a look as well :)  
> >>
> >> We will send an RFC later this week, Amit is doing some cleanup now. At the moment transfers work up to 256 packets (375KB when using TFTP), at this point it breaks, because recycling DMA descriptors is not working for some reason. I haven't found any documentation for the MAC, so I am reverse engineering the Linux driver and doing printf and tcpdump debugging right now. Looking forward to people joining us in this effort ;-)
> >>  
> > 
> > Thanks for the update. I CC'ed Florian who I think is the SW expert on that
> > chip. Maybe he can help you.  
> 
> Transfers work for up to 256 packets in which direction? Are you
> properly consuming descriptors that were produced by the RDMA (on
> receive), 

Yes, not sure we do it properly, but we do.

The problem I see is that the TDMA_CONS_INDEX does not increase after it reaches 256, although RDMA_PROD_INDEX does. Is there any cleanup in the actual descriptors needed?
Did I get this right that those indices are just linear "progress counters", and not actual descriptor indices? I see the Linux code masks them with 0xffff, not with the number of descriptors.

Will try to dig a bit deeper on this.

> conversely, polling the TDMA consumer index on transmit?

Yes, I switched over to that (from polling for the DMA_OWN bit).

> Can you share your code somewhere so I could see if there are obvious problems?

Of course, we just need to clean it up a bit, and it's getting late for Amit today. We will CC: you on the post tomorrow.

Thanks for you help!

Cheers,
Andre.

  reply	other threads:[~2019-12-12 18:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAOdpyqzG0EQMCWqU33cXKHW1ipDLMr3y3Pu7PcRoAxGUeUKAMg@mail.gmail.com>
     [not found] ` <ebfa4fcf-5e5a-4eae-837d-ae1c359e6b55@suse.com>
     [not found]   ` <CAOdpyqxP1c9iGWr3X2PqbcVZE9zB0W4KAjZsKY43v=3v4Dw5Pw@mail.gmail.com>
     [not found]     ` <CAPnjgZ34Ck0o2X=+LNy-_JZ+-YJ2jdVnEBrmbX_MMs-en+OKRA@mail.gmail.com>
     [not found]       ` <CAOdpyqzzA-ixd0tzpQBfc4L47xbcgTHhD+8cpoij5Zev0cMpmw@mail.gmail.com>
     [not found]         ` <CAPnjgZ1+OS5FK4H3VGZa_uPv5Zp6+-XQ-vMQ6QTiMW=pMoPkVw@mail.gmail.com>
     [not found]           ` <898283c3-6300-7146-8207-bc12829bfcef@gmx.de>
     [not found]             ` <3c0d3e6f-6827-e5be-7bd7-ed4d172f0513@suse.com>
     [not found]               ` <20191120112030.1877e0f9@donnerap.cambridge.arm.com>
     [not found]                 ` <CAOdpyqzBSQomDThtHUAgQ8Q52S4msT5tsC-SS7A3g2Ds8Yap4g@mail.gmail.com>
     [not found]                   ` <ed7832b4-b168-aea5-386b-065dcfa3e39f@arm.com>
     [not found]                     ` <CAOdpyqxJwzEfJSOGV+ZpMp4tMATshBBpNEoKQd1utAkAn3cP0w@mail.gmail.com>
2019-12-07  9:27                       ` [U-Boot-Board-Maintainers] Raspberry pi 4 - u-boot - genet / scb Andreas Färber
2019-12-07 19:29                         ` Sascha Dewald
2019-12-09 11:11                           ` Amit Tomer
2019-12-09 13:33                             ` Sascha Dewald
2019-12-11  9:23                               ` Matthias Brugger
2019-12-12 10:41                                 ` Andre Przywara
2019-12-12 11:59                                   ` Matthias Brugger
2019-12-12 18:13                                     ` Florian Fainelli
2019-12-12 18:38                                       ` Andre Przywara [this message]
2019-12-12 19:07                                         ` Florian Fainelli

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=20191212183829.1ab3fdf6@donnerap.cambridge.arm.com \
    --to=andre.przywara@arm.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.