All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave.Martin@arm.com (Dave Martin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64/sve: Document firmware support requirements in Kconfig
Date: Fri, 23 Mar 2018 17:36:14 +0000	[thread overview]
Message-ID: <20180323173612.GF16308@e103592.cambridge.arm.com> (raw)
In-Reply-To: <4dc6666d-e293-026a-e4fd-93238c1daf61@arm.com>

On Fri, Mar 23, 2018 at 05:27:32PM +0000, Suzuki K Poulose wrote:
> On 21/03/18 11:54, Dave Martin wrote:
> >Use of SVE by EL2 and below requires explicit support in the
> >firmware.  There is no means to hide the presence of SVE from EL2,
> >so a kernel configured with CONFIG_ARM64_SVE=y will typically not
> >work correctly on SVE capable hardware unless the firmware does
> >include the appropriate support.
> >
> >This is not expected to pose a problem in the wild, since platform
> >integrators are responsible for ensuring that they ship up-to-date
> >firmware to support their hardware.  However, developers may hit
> >the issue when using mismatched compoments.
> >
> >In order to draw attention to the issue and how to solve it, this
> >patch adds some Kconfig text giving a brief explanation and details
> >of compatible firmware versions.
> >
> >Signed-off-by: Dave Martin <Dave.Martin@arm.com>
> >---
> >
> >No functional change, but it would be good to get this explanatory text
> >merged since developers who try Linux on SVE-enabled models may hit
> >this problem, and fixed versions of ARM TF and the bootwrapper are now
> >available.
> >
> >  arch/arm64/Kconfig | 17 +++++++++++++++++
> >  1 file changed, 17 insertions(+)
> >
> >diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> >index 7381eeb..e6fa47b 100644
> >--- a/arch/arm64/Kconfig
> >+++ b/arch/arm64/Kconfig
> >@@ -1104,6 +1104,23 @@ config ARM64_SVE
> >  	  To enable use of this extension on CPUs that implement it, say Y.
> >+	  Note that for architectural reasons, firmware _must_ implement SVE
> >+	  support when running on SVE capable hardware.  The required support
> >+	  is present in:
> >+
> >+	    * version 1.5 and later of the ARM Trusted Firmware
> >+	    * the AArch64 boot wrapper since commit 5e1261e08abf
> >+	      ("bootwrapper: SVE: Enable SVE for EL2 and below").
> >+
> >+	  For other firmware implementations, consult the firware documentation
> 
> minor nit: 	s/firware/firmware/

Thanks, I'll repost with that fixed.

Cheers
---Dave

      reply	other threads:[~2018-03-23 17:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-21 11:54 [PATCH] arm64/sve: Document firmware support requirements in Kconfig Dave Martin
2018-03-23 17:12 ` Catalin Marinas
2018-03-23 17:39   ` Dave Martin
2018-03-23 17:27 ` Suzuki K Poulose
2018-03-23 17:36   ` Dave Martin [this message]

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=20180323173612.GF16308@e103592.cambridge.arm.com \
    --to=dave.martin@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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.