[lkml]   [2015]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/2] x86: Add IMR support to Quark/Galileo
On 06/01/15 16:48, Darren Hart wrote:
>> Correct. Firmware locks the IMRs around ACPI runtime data data.
>> In the patch here, we cycle though every unlocked IMR and zap it - which
>> will include tear-down of the IMRs placed around the compressed kernel image
>> and boot params data structure. Firmware puts those IMRs in place to ensure
>> no invalid DMA, SMM access to the compressed kernel image during boot can
>> take place.
> Thanks Bryan, this clears these questions up for me.
> Are we confident that the tear-down of the IMRs around the compressed kernel
> image happens early enough and deterministically, such that there is no race
> condition in which a driver could get DMA into this memory?

Yes confident :)

Tested by baking IMR-platform code + MMC into the kernel and mounting
the rootfs on Galileo from MMC.

Also tested the reverse case. Attempting to mount an SD kills every
version of the tip-of-tree I've used with an IMR reset.

Just to be really sure, it's also been tested with the initial 0.7.5 and
0.8.0 release which didn't have DMI strings to identify the board.

So - with this change in place tip-of-tree should work for everybody on
Galileo Gen1/Gen2.

It should get the Galileo Debian people out of the business of needing
to have a separate kernel to boot - though obvious more enabling work
needs to happen in SoC space still.

Also I'm hoping - though I don't have the exact details of this - that
the crash/non-boot situation for CentOs on Galileo may be as a result of
IMRs, so hopefully will be of use there too.

 \ /
  Last update: 2015-01-06 18:41    [W:0.067 / U:2.832 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site