All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sascha Dewald <sascha.dewald@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Board-Maintainers] Raspberry pi 4 - u-boot - genet / scb
Date: Sat, 7 Dec 2019 20:29:01 +0100	[thread overview]
Message-ID: <CAOdpyqy7c7s4rtEjrD=EQd+=9Q50nTtiArnTqJFWViqPnkPc9w@mail.gmail.com> (raw)
In-Reply-To: <c33b1885-a8be-79cf-18c7-5d16140d5de8@suse.de>

Hmm, looks like the google webmail doesn't send multi-mime messages.
I didn't know that yet.

And if there is no progress, then i would look for another solution.
No problem :-)

Am Sa., 7. Dez. 2019 um 10:27 Uhr schrieb Andreas Färber <afaerber@suse.de>:
>
> Sascha,
>
> Am 07.12.19 um 07:23 schrieb Sascha Dewald:
> > Hello,
> >
> > is there any progress yet ?
>
> There is absolutely no reason to annoy all the board maintainers on this
> mailing list with nagging about an unimplemented driver for one board!
> Especially not with HTML mail and top-posting!!! Please take this
> discussion to the u-boot mailing list (Reply-to set).
>
> Regards,
> Andreas
>
> > Am Fr., 22. Nov. 2019 um 00:27 Uhr schrieb André Przywara
> > <andre.przywara at arm.com <mailto:andre.przywara@arm.com>>:
> >
> >     On 21/11/2019 21:46, Sascha Dewald wrote:
> >
> >     Hi,
> >
> >     > could someone give me a summary which is missing in u-boot and what
> >     > needs to be ported ?
> >
> >     The PHY is pretty much standard and already supported, as far as I can
> >     see, the MAC is not.
> >
> >     > I found other broadcom drivers, which are already in u-boot.
> >
> >     The RPi4 uses a Broadcom GENETv5 IP (with a slight tweak). The Linux
> >     driver is quite sophisticated: it supports older revisions (v1..v4),
> >     makes clever use of multiple priority queues and is of course fully
> >     interrupt driven, including napi shortcuts, also enjoys all the glory of
> >     the full Linux driver framework galore.
> >     For U-Boot we can get away with a MUCH simpler driver. Amit and I spent
> >     a while understanding the hardware based on the Linux driver, and Amit
> >     saw the first ARP packet from U-Boot on his laptop yesterday. He is
> >     currently working on the recv() function.
> >
> >     > How difficult is it, to strip the drivers down, from the linux
> >     kernel to
> >     > work with u-boot?
> >
> >     As mentioned, stripping the driver down (as in copying and editing) is
> >     not a good idea, but the basic driver is already somewhat working
> >     (probing, instantiation, sending packets), so we are not far away.
> >
> >     If I could ask for just for a few more days of patience, then I am
> >     looking forward for your help with review and testing!
> >
> >     Cheers,
> >     Andre
> >
> >     > Am Mi., 20. Nov. 2019 um 12:21 Uhr schrieb Andre Przywara
> >     > <andre.przywara at arm.com <mailto:andre.przywara@arm.com>
> >     <mailto:andre.przywara at arm.com <mailto:andre.przywara@arm.com>>>:
> >     >
> >     >     On Wed, 20 Nov 2019 12:13:55 +0100
> >     >     Matthias Brugger <mbrugger at suse.com <mailto:mbrugger@suse.com>
> >     <mailto:mbrugger at suse.com <mailto:mbrugger@suse.com>>> wrote:
> >     >
> >     >     Hi,
> >     >
> >     >     > Adding Andre as he helps in the effort to port the driver. More
> >     >     comments inline.
> >     >     >
> >     >     > On 19/11/2019 22:46, Heinrich Schuchardt wrote:
> >     >     > > On 11/19/19 9:48 PM, Simon Glass wrote:
> >     >     > >> Hi Sascha,
> >     >     > >>
> >     >     > >> On Tue, 19 Nov 2019 at 10:10, Sascha Dewald
> >     >     <sascha.dewald at gmail.com <mailto:sascha.dewald@gmail.com>
> >     <mailto:sascha.dewald at gmail.com <mailto:sascha.dewald@gmail.com>>>
> >     wrote:
> >     >     > >>>
> >     >     > >>> Hi Simon,
> >     >     > >>>
> >     >     > >>> it uses bcmgenet.
> >     >     > >>>
> >     >     > >>> Below some information from "hwinfo" and "dmesg"
> >     >     > >>>
> >     >     > >>
> >     >     > >> OK, well I think this is in linux as
> >     >     drivers/net/ethernet/broadcom/genet
> >     >     > >>
> >     >     > >> I'm not sure about the PHY but it looks like there is no
> >     driver for
> >     >     > >> genet in U-Boot. I suggest poriting it over.
> >     >
> >     >     Amit (CC:ed) is working on that. That is still quite rough and not
> >     >     really working yet, but as of yesterday he saw the first (empty)
> >     >     packets on the line at least.
> >     >     I would assume we get something working still this year.
> >     >
> >     >     > > In linux-next/next-20191119
> >     >     > > arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dtb
> >     >     > > there is no network device.
> >     >     > >
> >     >     > Florian send a new pull request, I think yesterday which
> >     adds the
> >     >     genet driver
> >     >     > to RPi4.
> >     >
> >     >     I found the burst length quirk together with the new compatible
> >     >     string in David's net-next/master two days ago.
> >     >
> >     >     > > On Raspbian you can find for RPi4:
> >     >     > >
> >     >     > > compatible = "brcm,genet-v5"
> >     >     > > relating to Linux
> >     drivers/net/ethernet/broadcom/genet/bcmgenet.c
> >     >     > > CONFIG_BCMGENET "Broadcom GENET internal MAC support"
> >     >     > >
> >     >     >
> >     >     > RPi4 is a special case as DMA burst size is different from plain
> >     >     genet-v5
> >     >     > driver. But that might be of no relevance for U-Boot.
> >     >
> >     >     Yeah, since there is no other user, we could just go ahead and fix
> >     >     the smaller burst length of 8 in U-Boot. I guess we don't care
> >     about
> >     >     the performance impact that has.
> >     >
> >     >     Cheers,
> >     >     Andre.
> >     >
> >     >     >
> >     >     > > compatible = "ethernet-phy-ieee802.3-c22";
> >     >     > > relating to Linux drivers/of/of_mdio.c.
> >     >     > > CONFIG_OF_MDIO OpenFirmware MDIO bus (Ethernet PHY) accessors
> >     >     > >
> >     >     > > compatible = "brcm,genet-mdio-v5";
> >     >     > > relating to Linux drivers/net/phy/mdio-bcm-unimac.c
> >     >     > > CONFIG_MDIO_BCM_UNIMAC "Broadcom UniMAC MDIO bus controller"
> >     >     > >
> >     >     > > So wouldn't we need all three drivers?
> >     >     > >
> >     >     > > Maybe Joe can tell us.
> >     >     > >
> >     >     > > Best regards
> >     >     > >
> >     >     > > Heinrich
> >     >     > >
> >     >     > >
> >     >     > >>
> >     >     > >> Regards,
> >     >     > >> Simon
> >     >     > >> _______________________________________________
> >     >     > >> U-Boot-Board-Maintainers mailing list
> >     >     > >> U-Boot-Board-Maintainers at lists.denx.de
> >     <mailto:U-Boot-Board-Maintainers@lists.denx.de>
> >     >     <mailto:U-Boot-Board-Maintainers@lists.denx.de
> >     <mailto:U-Boot-Board-Maintainers@lists.denx.de>>
> >     >     > >> https://lists.denx.de/listinfo/u-boot-board-maintainers
> >     >     > >>
> >     >     > >
> >     >
> >
>
>
> --
> SUSE Software Solutions Germany GmbH
> Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Felix Imendörffer
> HRB 36809 (AG Nürnberg)

  reply	other threads:[~2019-12-07 19:29 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 [this message]
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
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='CAOdpyqy7c7s4rtEjrD=EQd+=9Q50nTtiArnTqJFWViqPnkPc9w@mail.gmail.com' \
    --to=sascha.dewald@gmail.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.