[PATCH v3 2/2] cmd: brcm: netXtreme commands

Roman Bacik roman.bacik at broadcom.com
Wed Oct 27 18:47:01 CEST 2021

Hi Marek

> -----Original Message-----
> From: Marek Behún <kabel at kernel.org>
> Sent: Wednesday, October 27, 2021 9:36 AM
> To: Roman Bacik <roman.bacik at broadcom.com>
> Cc: Simon Glass <sjg at chromium.org>; U-Boot Mailing List <u-
> boot at lists.denx.de>; Bharat Gooty <bharat.gooty at broadcom.com>;
> Aswath Govindraju <a-govindraju at ti.com>; Bin Meng
> <bmeng.cn at gmail.com>; Franck LENORMAND
> <franck.lenormand at nxp.com>; Heinrich Schuchardt
> <xypron.glpk at gmx.de>; Kory Maincent <kory.maincent at bootlin.com>;
> Michal Simek <michal.simek at xilinx.com>; Patrick Delaunay
> <patrick.delaunay at foss.st.com>; Peng Fan <peng.fan at nxp.com>; Priyanka
> Jain <priyanka.jain at nxp.com>; Rayagonda Kokatanur
> <rayagonda.kokatanur at broadcom.com>; Sean Anderson
> <sean.anderson at seco.com>
> Subject: Re: [PATCH v3 2/2] cmd: brcm: netXtreme commands
> On Wed, 27 Oct 2021 08:05:11 -0700
> Roman Bacik <roman.bacik at broadcom.com> wrote:
> > chimp_ld_secure #this command loads FW, which is necessary for PCIe to
> > enumerate it
> > pci enum #this command is necessary to call bnxt_bind
> Wait, so what is this firmware for? Is it firmware for the netXtreme
> controller or for PCIe controller itself?

It is FW for netXtreme controller.

> If it is for the ethernet controller, you should be able to determine
> whether there is netXtreme card present on the PCI bus without loading
> the firmware, by looking at PCI vendor / device ID.

The current code fails to enumerate PCI if FW is not loaded. Loading FW
and trying to enumerate again still fails. Only reset helps after that.

> In that case the firmware should be loaded when the ethernet controller
> is requested for, i.e. the ethact env variable points to that
> controller and a network command is executed (dhcp, tftpboot, ...).
> (The ethact variable is used to set which ethernet controller is used
>  for network commands when there are multiple etherent controllers.)



This electronic communication and the information and any files transmitted 
with it, or attached to it, are confidential and are intended solely for 
the use of the individual or entity to whom it is addressed and may contain 
information that is confidential, legally privileged, protected by privacy 
laws, or otherwise restricted from disclosure to anyone else. If you are 
not the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, you are hereby notified that any use, 
copying, distributing, dissemination, forwarding, printing, or copying of 
this e-mail is strictly prohibited. If you received this e-mail in error, 
please return the e-mail to the sender, delete it from your computer, and 
destroy any printed copy of it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4206 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211027/304d5627/attachment.bin>

More information about the U-Boot mailing list