public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 1/7] ls2080: Exit dpaa only right before exiting U-Boot
Date: Mon, 17 Oct 2016 11:45:01 +0200	[thread overview]
Message-ID: <58049D9D.4090502@suse.de> (raw)
In-Reply-To: <DB5PR0401MB19587E7AB4877AC30C7AB87C97D00@DB5PR0401MB1958.eurprd04.prod.outlook.com>



On 10/17/2016 10:56 AM, Prabhakar Kushwaha wrote:
>> -----Original Message-----
>> From: Alexander Graf [mailto:agraf at suse.de]
>> Sent: Monday, October 17, 2016 12:28 PM
>> To: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; u-
>> boot at lists.denx.de
>> Cc: york sun <york.sun@nxp.com>
>> Subject: Re: [PATCH v5 1/7] ls2080: Exit dpaa only right before exiting U-Boot
>>
>> Hi Prabhakara,
>>
>> On 17.10.16 05:42, Prabhakar Kushwaha wrote:
>>> Hi Alex,
>>>
>>>> -----Original Message-----
>>>> From: Alexander Graf [mailto:agraf at suse.de]
>>>> Sent: Saturday, October 15, 2016 3:33 PM
>>>> To: u-boot at lists.denx.de
>>>> Cc: york sun <york.sun@nxp.com>; Prabhakar Kushwaha
>>>> <prabhakar.kushwaha@nxp.com>
>>>> Subject: [PATCH v5 1/7] ls2080: Exit dpaa only right before exiting U-Boot
>>>>
>>>> On ls2080 we have a separate network fabric component which we need to
>>>> shut down before we enter Linux (or any other OS). Along with that also
>>>> comes configuration of the fabric using a description file.
>>>>
>>>> Today we always stop and configure the fabric in the boot script and
>>>> (again) exit it on device tree generation. This works ok for the normal
>>>> booti case, but with bootefi the payload we're running may still want to
>>>> access the network.
>>>>
>>>> So let's add a new fsl_mc command that defers configuration and stopping
>>>> the hardware to when we actually exit U-Boot, so that we can still use
>>>> the fabric from an EFI payload.
>>>>
>>>> For existing boot scripts, nothing should change with this patch.
>>>>
>>>> Signed-off-by: Alexander Graf <agraf@suse.de>
>>>>
>>> Can we get one small modification in this patch to include env variable.
>>> So if a user **always** want " lazyapply", this info can be stored in env
>> variable. This env variable will be used after reset without explicit u-boot
>> command.
>>
>> I'm not sure I understand your suggestion. We use "lazyapply" because
>> EFI payloads need to be able to use the fabric for network I/O which is
>> impossible after a normal apply.
>>
>> Because we don't know in bootcmd whether we will end up in the old bootm
>> path or in the fallback distro path (which again potentially means
>> efi_loader), we have to play safe (lazyapply) by default.
>>
> If I understand correctly, this patch defines a variable mc_lazy_dpl_addr.  It is set via " fsl_mc lazyapply DPL" u-boot command.
> If this variable set
>    - Apply DPL file during bootm (no user intervention)
> Else
>   - Assume user to apply dpl manually by " fsl_mc apply DPL" before running bootm.
>
> One modification can be done to store value mc_lazy_dpl_addr in env so that " fsl_mc lazyapply DPL " will not be required to run after every reset.

Ah, I see what you're getting at. I like the idea, but I'm not sure this 
is what users would expect. So imagine you do

   # fsl_mc lazyapply ...
   # <attempt boot, fails>
   # <modify environment for next time
   # saveenv

then suddenly you have the lazyapply in your environment. In *most* 
parts of U-Boot environment variables are not used for state transfer 
(one function sets it, another one reads it). So having it here would be 
pretty unnatural and potentially confusing to users.

I'd leave the decision up to York though, it's his command :). Changing 
it to be env based instead is trivial.


Alex

  reply	other threads:[~2016-10-17  9:45 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-15 10:03 [U-Boot] [PATCH v5 0/7] LS2080ARDB: Enable EFI boot support Alexander Graf
2016-10-15 10:03 ` [U-Boot] [PATCH v5 1/7] ls2080: Exit dpaa only right before exiting U-Boot Alexander Graf
2016-10-15 16:47   ` york sun
2016-10-17  3:42   ` Prabhakar Kushwaha
2016-10-17  6:58     ` Alexander Graf
2016-10-17  8:56       ` Prabhakar Kushwaha
2016-10-17  9:45         ` Alexander Graf [this message]
2016-10-18 15:48           ` york sun
2016-10-15 10:03 ` [U-Boot] [PATCH v5 2/7] efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3 Alexander Graf
2016-10-15 16:48   ` york sun
2016-10-15 10:03 ` [U-Boot] [PATCH v5 3/7] ls2080ardb: Reserve DP-DDR RAM Alexander Graf
2016-10-15 16:48   ` york sun
2016-10-15 10:03 ` [U-Boot] [PATCH v5 4/7] ls2080ardb: Convert to distro boot Alexander Graf
2016-10-15 16:56   ` york sun
2016-10-17  6:54     ` Alexander Graf
2016-10-15 10:03 ` [U-Boot] [PATCH v5 5/7] armv8: ls2080a: Declare spin tables as reserved for efi loader Alexander Graf
2016-10-15 16:57   ` york sun
2016-10-17  7:01     ` Alexander Graf
2016-10-18 15:42       ` york sun
2016-10-15 10:03 ` [U-Boot] [PATCH v5 6/7] armv8: fsl-layerscape: Add support for efi_loader RTS reset Alexander Graf
2016-10-15 16:57   ` york sun
2016-10-15 10:03 ` [U-Boot] [PATCH v5 7/7] efi_loader: Declare secure memory as reserved Alexander Graf
2016-10-15 16:58   ` york sun
2016-10-17  7:10     ` Alexander Graf
2016-10-18 15:46       ` york sun
2016-10-19 14:25         ` Alexander Graf

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=58049D9D.4090502@suse.de \
    --to=agraf@suse.de \
    --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