From: Pavel Machek <pavel@ucw.cz>
To: "Bryan O'Donoghue" <pure.logic@nexus-software.ie>
Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com,
x86@kernel.org, dvhart@infradead.org, andy.shevchenko@gmail.com,
boon.leong.ong@intel.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/1] x86: Add Isolated Memory Regions for Quark X1000
Date: Mon, 2 Mar 2015 13:19:19 +0100 [thread overview]
Message-ID: <20150302121919.GD27317@amd> (raw)
In-Reply-To: <54ECFDCF.8040902@nexus-software.ie>
On Tue 2015-02-24 22:40:15, Bryan O'Donoghue wrote:
> On 23/02/15 22:18, Pavel Machek wrote:
> >On Mon 2015-01-26 14:15:27, Bryan O'Donoghue wrote:
>
> >
> >Do the applications normally need to manipulate IMRs?
>
>
> Applications could in theory manipulate IMRs - you might want to place an
> IMR around an EFI capsule in memory for example - before calling a capsule
> update.
>
> This code will place an IMR around the kernel .text - .rodata which ensures
> that no unwarranted DMA access can rewrite write-only kernel addresses -
> something the MMU would not fault on - on non-IMR enabled processors.
>
> >Would it be
> >possible to do all IMR manipulations in the bootloader?
> >
>
> Possible yes - in practical terms for Galileo or the SMARC+Quark from
> Kontron for example - you'd be forcing a bootloader change - which most
> users will not pick up.
>
>
> Considering IMRs can reset the system if they aren't sanitized, it's good
> practice for the kernel to go and make sure that every unlocked IMR is
> torn-down and reset.
Ok, makes sense.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2015-03-02 12:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-26 14:15 [PATCH v3 0/1] x86: Add IMR support to Quark/Galileo Bryan O'Donoghue
2015-01-26 14:15 ` [PATCH v3 1/1] x86: Add Isolated Memory Regions for Quark X1000 Bryan O'Donoghue
2015-01-26 16:37 ` Andy Shevchenko
2015-01-26 16:43 ` Andy Shevchenko
2015-01-26 16:59 ` Bryan O'Donoghue
2015-01-26 17:23 ` Andy Shevchenko
2015-01-26 18:02 ` Bryan O'Donoghue
2015-01-26 18:04 ` Bryan O'Donoghue
2015-02-23 22:18 ` Pavel Machek
2015-02-24 22:40 ` Bryan O'Donoghue
2015-03-02 12:19 ` Pavel Machek [this message]
2015-01-26 14:37 ` [PATCH v3 0/1] x86: Add IMR support to Quark/Galileo Bryan O'Donoghue
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=20150302121919.GD27317@amd \
--to=pavel@ucw.cz \
--cc=andy.shevchenko@gmail.com \
--cc=boon.leong.ong@intel.com \
--cc=dvhart@infradead.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pure.logic@nexus-software.ie \
--cc=tglx@linutronix.de \
--cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox