Dean Nelson
6c1c325de9
sgi-xp: define xp_expand_memprotect() and xp_restrict_memprotect()
...
Define xp_expand_memprotect() and xp_restrict_memprotect() so they can be
tailered to the hardware they are run on.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2008-11-05 20:32:20 -08:00
Dean Nelson
bd3e64c175
sgi-xp: setup the notify GRU message queue
...
Setup the notify GRU message queue that is used for sending user messages
on UV systems.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Cc: Jack Steiner <steiner@sgi.com >
Cc: "Luck, Tony" <tony.luck@intel.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
5b8669dfd1
sgi-xp: setup the activate GRU message queue
...
Setup the activate GRU message queue that is used for partition activation
and channel connection on UV systems.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Cc: Jack Steiner <steiner@sgi.com >
Cc: "Luck, Tony" <tony.luck@intel.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
83469b5525
sgi-xp: cleanup naming of partition defines
...
Cleanup naming of partition defines.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Cc: Jack Steiner <steiner@sgi.com >
Cc: "Luck, Tony" <tony.luck@intel.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
61deb86e98
sgi-xp: move xpc_check_remote_hb() to support both SN2 and UV
...
Move xpc_check_remote_hb() so it can support both SN2 and UV.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Cc: Jack Steiner <steiner@sgi.com >
Cc: "Luck, Tony" <tony.luck@intel.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
a812dcc3a2
sgi-xp: add usage of GRU driver by xpc_remote_memcpy()
...
Add UV support to xpc_remote_memcpy(), which involves interfacing to the
GRU driver.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Cc: Jack Steiner <steiner@sgi.com >
Cc: "Luck, Tony" <tony.luck@intel.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
261f3b4979
sgi-xp: enable building of XPC/XPNET on x86_64
...
Get XPC/XPNET to build on x86_64. Trying to modprobe them up on a non-UV
or sn2 system will result in a -ENODEV.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Cc: Jack Steiner <steiner@sgi.com >
Cc: "Luck, Tony" <tony.luck@intel.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
81fe7883d2
sgi-xp: add 'jiffies' to reserved page's timestamp name
...
Rename XPC's reserved page's timestamp member to reflect the units of time
involved.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
04de741885
sgi-xp: use standard bitops macros and functions
...
Change sgi-xp to use the standard bitops macros and functions instead of
trying to invent its own mechanism.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
ea57f80c8c
sgi-xp: eliminate '>>>' in comments
...
Comments in /drivers/misc/sgi-xp has been using '>>>' as a means to draw
attention to something that needs to be done or considered. To avoid
colliding with git rejects, '>>>' will now be replaced by '!!!' to
indicate something to do, and by '???' to indicate something to be
considered.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
8e85c23ef0
sgi-xp: add _sn2 suffix to a few variables
...
Add an '_sn2' suffix to some variables found in xpc_sn2.c.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
ee6665e3b6
sgi-xp: isolate remote copy buffer to sn2 only
...
Make the remote copy buffer an sn2 only item.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:50 -07:00
Dean Nelson
185c3a1b4b
sgi-xp: isolate allocation of XPC's msgqueues to sn2 only
...
Move the allocation of XPC's msgqueues to xpc_sn2.c.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00
Dean Nelson
c39838ce21
sgi-xp: replace AMO_t typedef by struct amo
...
Replace the AMO_t typedef by a direct reference to 'struct amo'.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00
Dean Nelson
7fb5e59d63
sgi-xp: separate chctl_flags from XPC's notify IRQ
...
Tie current IPI references to either XPC's notify IRQ or channel control
flags.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00
Dean Nelson
a47d5dac9d
sgi-xp: isolate additional sn2 specific code
...
Move additional sn2 specific code into xpc_sn2.c.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00
Dean Nelson
6e41017aad
sgi-xp: isolate activate IRQ's hardware specific components
...
Isolate architecture specific code related to XPC's activate IRQ.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00
Dean Nelson
97bf1aa1e1
sgi-xp: move xpc_allocate() into xpc_send()/xpc_send_notify()
...
Move xpc_allocate() functionality into xpc_send()/xpc_send_notify() so
xpc_allocate() no longer needs to be called by XPNET.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00
Dean Nelson
aaa3cd694c
sgi-xp: base xpc_rsvd_page's timestamp on jiffies
...
Change XPC's reserved page timestamp to be based on jiffies.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00
Dean Nelson
33ba3c7724
sgi-xp: isolate xpc_vars structure to sn2 only
...
Isolate the xpc_vars structure of XPC's reserved page to sn2 only.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00
Dean Nelson
e17d416b1b
sgi-xp: isolate xpc_vars_part structure to sn2 only
...
Isolate the xpc_vars_part structure of XPC's reserved page to sn2 only.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00
Dean Nelson
94bd2708d4
sgi-xp: prepare xpc_rsvd_page to work on either sn2 or uv hardware
...
Prepare XPC's reserved page header to work for either sn2 or uv.
Signed-off-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:49 -07:00