Re: [PATCH 2/3] x86: Add UV memory protection bios call

From: Russ Anderson
Date: Wed Oct 22 2008 - 10:40:32 EST


On Wed, Oct 22, 2008 at 08:22:35AM +0200, Ingo Molnar wrote:
>
> * Russ Anderson <rja@xxxxxxx> wrote:
>
> > Add UV bios call to change memory protections.
> >
> > Signed-off-by: Russ Anderson <rja@xxxxxxx>
> >
> > ---
> > arch/x86/kernel/bios_uv.c | 8 ++++++++
> > include/asm-x86/uv/bios.h | 10 +++++++++-
> > 2 files changed, 17 insertions(+), 1 deletion(-)
>
> > - UV_BIOS_WATCHLIST_FREE
> > + UV_BIOS_WATCHLIST_FREE,
> > + UV_BIOS_MEMPROTECT
>
> > +enum uv_memprotect {
> > + UV_MEMPROT_RESTRICT_ACCESS,
> > + UV_MEMPROT_ALLOW_AMO,
> > + UV_MEMPROT_ALLOW_RW
>
> hm, what does this do? Does it twiddle the southbridge to protect given
> physical RAM rages from the CPU altogether?

The SGI UV hardware has memory protection to control what types of memory
references are allowed to specific physical RAM ranges. This bios call
is used to change the protection settings.

This is used by the xp driver (drivers/misc/sgi-xp/xp_sn2.c).
Dean Nelson submitted a patch yesterday that uses this bios call.

http://marc.info/?l=linux-kernel&m=122462425819289&w=2

Thanks,
--
Russ Anderson, OS RAS/Partitioning Project Lead
SGI - Silicon Graphics Inc rja@xxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/