[PATCH] ARM64: juno: add NOR flash to device tree

Linus Walleij linus.walleij at linaro.org
Mon Oct 19 14:55:32 PDT 2015

On Mon, Oct 19, 2015 at 1:39 PM, Mark Rutland <mark.rutland at arm.com> wrote:

> As I mentioned, I was under the impression that at least a portion of
> the flash was used by UEFI for variable storage, and that UEFI could
> therefore access the flash at runtime (due to runtime services calls).

OK I see. But doesn't that portion of the flash live inside one of the
AFS partitions simply?

If it is not then Juno has a mess of structured/unstructured flash
layout and it should be fixed by wrapping it into an AFS partition.

> Accessing the flash at the same time as another agent (UEFI or the
> Trusted Firmare) does not seem like a good idea, and is potentially
> unsafe (see Sudeep's example w.r.t. cpuidle).

No why would anyone do that. As with all file systems and
partitions it is possible to destroy them if you can access them,
with great power comes great responsibility as always, I'm just
not fond of the idea of hiding things behind the back for hackers
"for their own good", that is not the right spirit I think.

> Given that there is no mechanism to mediate access to the flash,
> allowing Linux to access it does not seem safe.

Linux does not access it, it just gives it a name and says
"there it is". Policy regarding accessing it is another issue
altogether. I also made the series with AFSv2 support.


More information about the linux-arm-kernel mailing list