aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/sgi-xp/xp_main.c
AgeCommit message (Collapse)AuthorFilesLines
2020-10-07x86/platform/uv: Update Copyrights to conform to HPE standardsMike Travis1-0/+1
Add Copyrights to those files that have been updated for UV5 changes. Signed-off-by: Mike Travis <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
2020-10-07drivers/misc/sgi-xp: Adjust references in UV kernel modulesMike Travis1-2/+2
Remove the define is_uv() is_uv_system and just use the latter as is. This removes a conflict with a new symbol in the generated uv_mmrs.h file (is_uv()). Signed-off-by: Mike Travis <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Dimitri Sivanich <[email protected]> Reviewed-by: Steve Wahl <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
2020-07-01misc: sgi-xp: xp_main: Staticify local functions xp_init() and xp_exit()Lee Jones1-2/+2
These functions are not exported and no external prototypes exist Fixes W=1 kernel build warning(s): drivers/misc/sgi-xp/xp_main.c:227:1: warning: no previous prototype for ‘xp_init’ [-Wmissing-prototypes] 227 | xp_init(void) | ^~~~~~~ drivers/misc/sgi-xp/xp_main.c:250:1: warning: no previous prototype for ‘xp_exit’ [-Wmissing-prototypes] 250 | xp_exit(void) | ^~~~~~~ Cc: Cliff Whickman <[email protected]> Cc: Robin Holt <[email protected]> Cc: Dean Nelson <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
2019-08-16misc/sgi-xp: remove SGI SN2 supportChristoph Hellwig1-6/+2
Note this also marks xp broken on ia64 now, as the UV support, which was disable in generic kernels before actually never compiled due to undefined uv_gpa_to_soc_phys_ram and uv_gpa_in_mmr_space symbols since at least commit c2c9f1157414 ("x86: uv: update XPC to handle updated BIOS interface"). Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Tony Luck <[email protected]>
2017-05-28sgi-xp: Use designated initializersKees Cook1-29/+7
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. In this case, no initializers are needed (they can be NULL initialized and callers adjusted to check for NULL, which is more efficient than an indirect call). Cc: Robin Holt <[email protected]> Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
2009-12-16x86: uv: xpc needs to provide an abstraction for uv_gpaRobin Holt1-0/+3
Provide an SGI SN2/UV agnositic method for converting a global physical address into a socket physical address. Signed-off-by: Robin Holt <[email protected]> Cc: Jack Steiner <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-04-21sgi-xp/sgi-gru: allow modules to load on non-uv systemsRobin Holt1-6/+6
For an upcoming distro release, we need to have the xp kernel module loadable even when not on UV equipment. The xpc module will not load. This will allow one set of modules dependent upon xp to work on either UV or non-UV equipment. Signed-off-by: Robin Holt <[email protected]> Signed-off-by: Jack Steiner <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-01-06SGI: struct device - replace bus_id with dev_name(), dev_set_name()Kay Sievers1-1/+1
CC: Jack Steiner <[email protected]> Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2008-11-05sgi-xp: define xp_expand_memprotect() and xp_restrict_memprotect()Dean Nelson1-0/+7
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 <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
2008-07-30sgi-xp: setup the notify GRU message queueDean Nelson1-2/+5
Setup the notify GRU message queue that is used for sending user messages on UV systems. Signed-off-by: Dean Nelson <[email protected]> Cc: Jack Steiner <[email protected]> Cc: "Luck, Tony" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-07-30sgi-xp: add usage of GRU driver by xpc_remote_memcpy()Dean Nelson1-1/+5
Add UV support to xpc_remote_memcpy(), which involves interfacing to the GRU driver. Signed-off-by: Dean Nelson <[email protected]> Cc: Jack Steiner <[email protected]> Cc: "Luck, Tony" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-07-30sgi-xp: enable building of XPC/XPNET on x86_64Dean Nelson1-1/+9
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 <[email protected]> Cc: Jack Steiner <[email protected]> Cc: "Luck, Tony" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-07-30sgi-xp: move xpc_allocate() into xpc_send()/xpc_send_notify()Dean Nelson1-14/+9
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-07-30sgi-xp: create a common xp_remote_memcpy() functionDean Nelson1-0/+3
Create a common remote memcpy function that maps to what the hardware booted supports. Signed-off-by: Dean Nelson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-07-30sgi-xp: support runtime selection of xp_max_npartitionsDean Nelson1-50/+34
Support runtime selection of the max number of partitions based on the hardware being run on. Signed-off-by: Dean Nelson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-05-13drivers/misc/sgi-xp: replace partid_t with a shortDean Nelson1-15/+15
In preparation for supporting greater than 64 partitions replace partid_t by short in drivers/misc/sgi-xp. Signed-off-by: Dean Nelson <[email protected]> Acked-by: Robin Holt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-05-13drivers/misc/sgi-xp: clean up return valuesDean Nelson1-19/+19
Make XP return values more generic to XP and not so tied to XPC by changing enum xpc_retval to xp_retval, along with changing return value prefixes from xpc to xp. Also, cleanup a comment block that referenced some of these return values as well as the handling of BTE related return values. Signed-off-by: Dean Nelson <[email protected]> Acked-by: Robin Holt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-04-22[IA64] run drivers/misc/sgi-xp through scripts/checkpatch.plDean Nelson1-21/+20
Addressed issues raised by scripts/checkpatch.pl. Removed unnecessary curly braces. Eliminated uses of volatiles and use of kernel_thread() and daemonize(). Signed-off-by: Dean Nelson <[email protected]> Signed-off-by: Tony Luck <[email protected]>
2008-04-22[IA64] run some drivers/misc/sgi-xp through scripts/LindentDean Nelson1-54/+44
Ran patches through scripts/Lindent (part 1). Signed-off-by: Dean Nelson <[email protected]> Signed-off-by: Tony Luck <[email protected]>
2008-04-22[IA64] move XP and XPC to drivers/misc/sgi-xpDean Nelson1-0/+290
Move XPC and XPNET from arch/ia64/sn/kernel to drivers/misc/sgi-xp. Signed-off-by: Dean Nelson <[email protected]> Signed-off-by: Tony Luck <[email protected]>