All of lore.kernel.org
 help / color / mirror / Atom feed
From: "André Przywara" <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 3/3] sunxi: add support for Lichee Pi Zero
Date: Thu, 16 Feb 2017 01:32:19 +0000	[thread overview]
Message-ID: <15d19a7e-5324-93b7-ee46-402a462edf1b@arm.com> (raw)
In-Reply-To: <20170214073603.m4w7qwct4rcn2jfd@lukather>

On 14/02/17 07:36, Maxime Ripard wrote:
> On Mon, Feb 13, 2017 at 04:12:04PM +0800, Icenowy Zheng wrote:
>>
>> 2017?2?13? 15:17? Maxime Ripard <maxime.ripard@free-electrons.com>???
>>>
>>> Hi, 
>>>
>>> On Sat, Feb 11, 2017 at 07:11:02PM +0800, Icenowy Zheng wrote: 
>>>> @@ -0,0 +1,13 @@ 
>>>> +CONFIG_ARM=y 
>>>> +CONFIG_ARCH_SUNXI=y 
>>>> +# CONFIG_ARMV7_NONSEC is not set 
>>>
>>> Why? It doesn't have Trustzone? 
>>
>> The CPU has Secure mode, but no TrustZone Peripheral Controller,
>> neither SMP.
> 
> Still, booting in HYP and having PSCI sounds like a good idea.

Yes, so without this option Linux will run in secure state, if I am not
mistaken, which is discouraged. Instead we should enter Linux in
(non-secure) HYP mode [1], which will allow KVM, for instance. So I'd
recommend to remove this last line.
Whether we need PSCI on an UP system is a separate question, I don't
know from the top of my head if ARM(32) uses it for suspend/resume. But
anyway this is not implemented in U-Boot's PSCI implementation, IIRC.
So for just disabling PSCI we could use:

+# CONFIG_ARMV7_PSCI is not set

Cheers,
Andre.

[1] http://lxr.free-electrons.com/source/Documentation/arm/Booting#L188

  reply	other threads:[~2017-02-16  1:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-13  8:12 [U-Boot] [PATCH v3 3/3] sunxi: add support for Lichee Pi Zero Icenowy Zheng
2017-02-14  7:36 ` Maxime Ripard
2017-02-16  1:32   ` André Przywara [this message]
2017-02-16  2:06     ` [U-Boot] [linux-sunxi] " Chen-Yu Tsai
2017-02-16  7:40     ` [U-Boot] " Maxime Ripard
  -- strict thread matches above, loose matches on Subject: below --
2017-02-11 11:11 [U-Boot] [PATCH v3 1/3] sunxi: add basic V3s support Icenowy Zheng
2017-02-11 11:11 ` [U-Boot] [PATCH v3 3/3] sunxi: add support for Lichee Pi Zero Icenowy Zheng
2017-02-13  7:17   ` Maxime Ripard
2017-02-28 14:42   ` Jagan Teki

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=15d19a7e-5324-93b7-ee46-402a462edf1b@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.