lkml.org 
[lkml]   [2008]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] x86: Add UV memory protection bios call
On Wed, Oct 22, 2008 at 08:22:35AM +0200, Ingo Molnar wrote:
>
> * Russ Anderson <rja@sgi.com> wrote:
>
> > Add UV bios call to change memory protections.
> >
> > Signed-off-by: Russ Anderson <rja@sgi.com>
> >
> > ---
> > 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@sgi.com


\
 
 \ /
  Last update: 2008-10-22 16:43    [W:0.032 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site