public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 07/10][v4] driver: net: fsl-mc: Add DPAA2 commands to manage MC
Date: Wed, 25 Nov 2015 20:50:57 -0800	[thread overview]
Message-ID: <56568FB1.9030804@freescale.com> (raw)
In-Reply-To: <1446620162-21725-8-git-send-email-prabhakar@freescale.com>



On 11/03/2015 10:55 PM, Prabhakar Kushwaha wrote:
> Management complex Firmware, DPL and DPC are depolyed during u-boot boot
> sequence.
> 
> Add new DPAA2 commands to manage Management Complex (MC) i.e. start mc, aiop
> and apply DPL from u-boot command prompt.
> 
> Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
> ---
>  Changes for v2: Sending as it is
>  Changes for v3: fix compilation for ls2085_emu target
>  Changes for v4: Sending as it is
> 
>  arch/arm/cpu/armv8/fsl-layerscape/README.lsch3 |  30 ++
>  drivers/net/fsl-mc/mc.c                        | 382 ++++++++++++-------------
>  include/configs/ls2085aqds.h                   |  12 -
>  include/configs/ls2085ardb.h                   |  12 -
>  include/fsl-mc/fsl_mc.h                        |   5 +
>  include/fsl-mc/fsl_mc_private.h                |   2 +-
>  6 files changed, 220 insertions(+), 223 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/README.lsch3 b/arch/arm/cpu/armv8/fsl-layerscape/README.lsch3
> index 03e18f6..d1f92c4 100644
> --- a/arch/arm/cpu/armv8/fsl-layerscape/README.lsch3
> +++ b/arch/arm/cpu/armv8/fsl-layerscape/README.lsch3
> @@ -242,3 +242,33 @@ MMU Translation Tables
>                            | 0x81_0000_0000 |        | 0x08_0080_0000 |
>                            ------------------        ------------------
>  			         ...	                   ...
> +
> +
> +DPAA2 commands to manage Management complex
> +-------------------------------------------
> +Management complex Firmware, DPL and DPC are depolyed during u-boot boot
> +sequence.
> +
> +New DPAA2 commands has been added to manage Management Complex (MC) i.e.
> +start mc, aiop and apply DPL from command prompt.
> +
> +a) fsl_mc start mc [FW_addr] [DPC_addr] - Start Management Complex
> +b) fsl_mc apply DPL [DPL_addr] - Apply DPL file
> +c) fsl_mc start aiop [FW_addr] - Start AIOP
> +
> +u-boot etherenet support sequence :-
> +a) fsl_mc start mc [FW_addr] [DPC_addr] - Start Management Complex
> +b) DPMACs device will be available now for use
> +
> +Linux boot sequence :-
> +a) fsl_mc start mc [FW_addr] [DPC_addr] - Start Management Complex
> +b) fsl_mc apply DPL [DPL_addr] - Apply DPL file
> +c) No DPMACs availabe for use in u-boot
> +c) boot Linux
> +
> +AIOP boot sequence :-
> +a) fsl_mc start mc [FW_addr] [DPC_addr] - Start Management Complex
> +b) fsl_mc start aiop [FW_addr] - Start AIOP
> +c) fsl_mc apply DPL [DPL_addr] - Apply DPL file
> +d) No DPMACs availabe for use in u-boot

Prabhakar,

The help message is not accurate. The FW_addr and DPC_addr are not optional, are
they? If a user must provide the address, please put the format as

fsl_mc start mc <FW_addr> <DPC_addr>

The [] means optional, <> means mandatory. I am using the old school convention,
hopefully the rest of the world agrees with me.

This change is relative big for using MC. I would appreciate some command
examples with real address in README and in commit message. It is helpful for
the transition.

York

  reply	other threads:[~2015-11-26  4:50 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-04  6:55 [U-Boot] [PATCH 00/10][v4] driver: net: ldpaa: Add support of new architeture Prabhakar Kushwaha
2015-11-04  6:55 ` [U-Boot] [PATCH 01/10][v4] armv8: lsch3: Fix lane protocol parsing logic Prabhakar Kushwaha
2015-11-30 17:01   ` York Sun
2015-11-04  6:55 ` [U-Boot] [PATCH 02/10][v4] driver: net: fsl-mc: Add create, destroy APIs in flibs Prabhakar Kushwaha
2015-11-30 17:02   ` York Sun
2015-11-04  6:55 ` [U-Boot] [PATCH 03/10][v4] driver: net: fsl-mc: Add APIs for DPMAC objects in FLIB Prabhakar Kushwaha
2015-11-30 17:02   ` York Sun
2015-11-04  6:55 ` [U-Boot] [PATCH 04/10][v4] armv8: ls2085aqds: Print function name during SerDes error Prabhakar Kushwaha
2015-11-30 17:02   ` York Sun
2015-11-04  6:55 ` [U-Boot] [PATCH 05/10][v4] driver: ldpaa: Add api to return linked PHY ID of DPMAC Prabhakar Kushwaha
2015-11-30 17:03   ` York Sun
2015-11-04  6:55 ` [U-Boot] [PATCH 06/10][v4] driver: net: fsl-mc: Increase MC command timeout Prabhakar Kushwaha
2015-11-30 17:06   ` York Sun
2015-11-04  6:55 ` [U-Boot] [PATCH 07/10][v4] driver: net: fsl-mc: Add DPAA2 commands to manage MC Prabhakar Kushwaha
2015-11-26  4:50   ` York Sun [this message]
2015-11-30 17:07   ` York Sun
2015-11-04  6:55 ` [U-Boot] [PATCH 08/10][v4] driver: net: fsl-mc: Create DPAA2 object at run-time Prabhakar Kushwaha
2015-11-30 17:07   ` York Sun
2015-11-04  6:56 ` [U-Boot] [PATCH 09/10][v4] driver: net: ldpaa: Use DPMAC as net device Prabhakar Kushwaha
2015-11-30 17:08   ` York Sun
2015-11-04  6:56 ` [U-Boot] [PATCH 10/10][v4] driver: net: ldpaa: Add debug information Prabhakar Kushwaha
2015-11-30 17:08   ` York Sun
2015-11-04  6:56 ` [U-Boot] [PATCH][v2] driver: net: ldpaa: Fix Rx buffer alignment Prabhakar Kushwaha
2015-11-30 17:09   ` York Sun

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=56568FB1.9030804@freescale.com \
    --to=yorksun@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox