Christoph Hellwig
32988cfd57
x86/platform/uv: Remove the uv_partition_coherence_id() macro
...
uv_partition_coherence_id() is only used once. Just open code it in the
only user.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-3-hch@lst.de
2020-05-07 15:32:19 +02:00
Christoph Hellwig
30ad8db3a2
x86/platform/uv: Mark uv_bios_call() and uv_bios_call_irqsave() static
...
Both functions are only used inside of bios_uv.c.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-2-hch@lst.de
2020-05-07 15:32:19 +02:00
Mike Travis
9743cb68f7
x86/platform/uv: Add return code to UV BIOS Init function
...
Add a return code to the UV BIOS init function that indicates the
successful initialization of the kernel/BIOS callback interface.
Signed-off-by: Mike Travis <mike.travis@hpe.com >
Reviewed-by: Steve Wahl <steve.wahl@hpe.com >
Reviewed-by: Dimitri Sivanich <dimitri.sivanich@hpe.com >
Cc: Andrew Morton <akpm@linux-foundation.org >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Christoph Hellwig <hch@infradead.org >
Cc: H. Peter Anvin <hpa@zytor.com >
Cc: Hedi Berriche <hedi.berriche@hpe.com >
Cc: Justin Ernst <justin.ernst@hpe.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Russ Anderson <russ.anderson@hpe.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Link: https://lkml.kernel.org/r/20190910145839.895739629@stormcage.eag.rdlabs.hpecorp.net
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2019-10-07 13:42:10 +02:00
Thomas Gleixner
1a59d1b8e0
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
...
Based on 1 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license as published by
the free software foundation either version 2 of the license or at
your option any later version this program is distributed in the
hope that it will be useful but without any warranty without even
the implied warranty of merchantability or fitness for a particular
purpose see the gnu general public license for more details you
should have received a copy of the gnu general public license along
with this program if not write to the free software foundation inc
59 temple place suite 330 boston ma 02111 1307 usa
extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-or-later
has been chosen to replace the boilerplate/reference in 1334 file(s).
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Allison Randal <allison@lohutok.net >
Reviewed-by: Richard Fontana <rfontana@redhat.com >
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190527070033.113240726@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-05-30 11:26:35 -07:00
Linus Torvalds
610cd4eade
Merge branch 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
...
Pull x86 UV updates from Ingo Molnar:
"Three UV related cleanups"
* 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/platform/UV: Use efi_enabled() instead of test_bit()
x86/platform/UV: Remove uv_bios_call_reentrant()
x86/platform/UV: Remove unnecessary #ifdef CONFIG_EFI
2019-03-07 18:26:39 -08:00
Hedi Berriche
f331e766c4
x86/platform/UV: Use efi_runtime_lock to serialise BIOS calls
...
Calls into UV firmware must be protected against concurrency, expose the
efi_runtime_lock to the UV platform, and use it to serialise UV BIOS
calls.
Signed-off-by: Hedi Berriche <hedi.berriche@hpe.com >
Signed-off-by: Borislav Petkov <bp@suse.de >
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Russ Anderson <rja@hpe.com >
Reviewed-by: Dimitri Sivanich <sivanich@hpe.com >
Reviewed-by: Mike Travis <mike.travis@hpe.com >
Cc: Andy Shevchenko <andy@infradead.org >
Cc: Bhupesh Sharma <bhsharma@redhat.com >
Cc: Darren Hart <dvhart@infradead.org >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: linux-efi <linux-efi@vger.kernel.org >
Cc: platform-driver-x86@vger.kernel.org
Cc: stable@vger.kernel.org # v4.9+
Cc: Steve Wahl <steve.wahl@hpe.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: x86-ml <x86@kernel.org >
Link: https://lkml.kernel.org/r/20190213193413.25560-5-hedi.berriche@hpe.com
2019-02-15 15:19:56 +01:00
Hedi Berriche
f816525d61
x86/platform/UV: Remove uv_bios_call_reentrant()
...
uv_bios_call_reentrant() has no callers nor is it exported, remove it.
Cleanup, no functional changes.
Signed-off-by: Hedi Berriche <hedi.berriche@hpe.com >
Signed-off-by: Borislav Petkov <bp@suse.de >
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Russ Anderson <rja@hpe.com >
Reviewed-by: Dimitri Sivanich <sivanich@hpe.com >
Reviewed-by: Mike Travis <mike.travis@hpe.com >
Cc: Andy Shevchenko <andy@infradead.org >
Cc: Bhupesh Sharma <bhsharma@redhat.com >
Cc: Darren Hart <dvhart@infradead.org >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: linux-efi <linux-efi@vger.kernel.org >
Cc: platform-driver-x86@vger.kernel.org
Cc: Steve Wahl <steve.wahl@hpe.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: x86-ml <x86@kernel.org >
Link: https://lkml.kernel.org/r/20190213193413.25560-3-hedi.berriche@hpe.com
2019-02-15 15:13:48 +01:00
Hedi Berriche
30ad3e031d
x86/platform/UV: Remove unnecessary #ifdef CONFIG_EFI
...
CONFIG_EFI is implied by CONFIG_X86_UV and x86/platform/uv/bios_uv.c
requires the latter, get rid of the redundant #ifdef CONFIG_EFI
directives.
Cleanup, no functional changes.
Signed-off-by: Hedi Berriche <hedi.berriche@hpe.com >
Signed-off-by: Borislav Petkov <bp@suse.de >
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Russ Anderson <rja@hpe.com >
Reviewed-by: Dimitri Sivanich <sivanich@hpe.com >
Reviewed-by: Mike Travis <mike.travis@hpe.com >
Cc: Andy Shevchenko <andy@infradead.org >
Cc: Bhupesh Sharma <bhsharma@redhat.com >
Cc: Darren Hart <dvhart@infradead.org >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: linux-efi <linux-efi@vger.kernel.org >
Cc: platform-driver-x86@vger.kernel.org
Cc: Steve Wahl <steve.wahl@hpe.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: x86-ml <x86@kernel.org >
Link: https://lkml.kernel.org/r/20190213193413.25560-2-hedi.berriche@hpe.com
2019-02-15 15:05:15 +01:00
Mike Travis
22ac2bca92
x86/platform/UV: Fix problem with UV4 BIOS providing incorrect PXM values
...
There are some circumstances where the UV4 BIOS cannot provide the
correct Proximity Node values to associate with specific Sockets and
Physical Nodes. The decision was made to remove these values from BIOS
and for the kernel to get these values from the standard ACPI tables.
Tested-by: Frank Ramsay <framsay@sgi.com >
Tested-by: John Estabrook <estabrook@sgi.com >
Signed-off-by: Mike Travis <travis@sgi.com >
Reviewed-by: Dimitri Sivanich <sivanich@sgi.com >
Reviewed-by: Nathan Zimmer <nzimmer@sgi.com >
Cc: Alex Thorlton <athorlton@sgi.com >
Cc: Andrew Banman <abanman@sgi.com >
Cc: Andrew Morton <akpm@linux-foundation.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Russ Anderson <rja@sgi.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Link: http://lkml.kernel.org/r/20160801184050.414210079@asylum.americas.sgi.com
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-08-10 15:55:38 +02:00
Mike Travis
ef93bf8039
x86/platform/UV: Add obtaining GAM Range Table from UV BIOS
...
UV4 uses a GAM (globally addressed memory) architecture that supports
variable sized memory per node. This replaces the old "M" value (number
of address bits per node) with a range table for conversions between
addresses and physical node (pnode) id's. This table is obtained from UV
BIOS via the EFI UVsystab table. Support for older EFI UVsystab tables
is maintained.
Tested-by: Dimitri Sivanich <sivanich@sgi.com >
Tested-by: John Estabrook <estabrook@sgi.com >
Tested-by: Gary Kroening <gfk@sgi.com >
Tested-by: Nathan Zimmer <nzimmer@sgi.com >
Signed-off-by: Mike Travis <travis@sgi.com >
Cc: Andrew Banman <abanman@sgi.com >
Cc: Andrew Morton <akpm@linux-foundation.org >
Cc: Andy Lutomirski <luto@amacapital.net >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Brian Gerst <brgerst@gmail.com >
Cc: Denys Vlasenko <dvlasenk@redhat.com >
Cc: H. Peter Anvin <hpa@zytor.com >
Cc: Len Brown <len.brown@intel.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Russ Anderson <rja@sgi.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Link: http://lkml.kernel.org/r/20160429215405.329827545@asylum.americas.sgi.com
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-05-04 08:48:50 +02:00
Linus Torvalds
30ff056c42
Merge branch 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
...
* 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
x86, uv: Remove recursion in uv_heartbeat_enable()
x86, uv: uv_global_gru_mmr_address() macro fix
x86, uv: Add serial number parameter to uv_bios_get_sn_info()
2010-02-28 11:00:55 -08:00
Mike Travis
841582ea9e
x86, uv: Update UV arch to target Legacy VGA I/O correctly.
...
Add function to direct Legacy VGA I/O traffic to correct I/O Hub.
Signed-off-by: Mike Travis <travis@sgi.com >
LKML-Reference: <201002022238.o12McEbi018727@imap1.linux-foundation.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Robin Holt <holt@sgi.com >
Cc: Jack Steiner <steiner@sgi.com >
Cc: Ingo Molnar <mingo@elte.hu >
Cc: Jesse Barnes <jbarnes@virtuousgeek.org >
Cc: David Airlie <airlied@linux.ie >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2010-02-05 14:05:41 -08:00
Russ Anderson
b76365a18f
x86, uv: Add serial number parameter to uv_bios_get_sn_info()
...
Add system_serial_number to the information returned by
uv_bios_get_sn_info() UV BIOS call.
Signed-off-by: Russ Anderson <rja@sgi.com >
LKML-Reference: <20091217165323.GA30774@sgi.com >
Cc: Jack Steiner <steiner@sgi.com >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2009-12-17 11:33:51 -08:00
Robin Holt
c2c9f11574
x86: uv: update XPC to handle updated BIOS interface
...
The UV BIOS has moved the location of some of their pointers to the
"partition reserved page" from memory into a uv hub MMR. The GRU does not
support bcopy operations from MMR space so we need to special case the MMR
addresses using VLOAD operations.
Additionally, the BIOS call for registering a message queue watchlist has
removed the 'blade' value and eliminated the structure that was being
passed in. This is also reflected in this patch.
Signed-off-by: Robin Holt <holt@sgi.com >
Cc: Jack Steiner <steiner@sgi.com >
Cc: Ingo Molnar <mingo@elte.hu >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2009-12-16 07:20:14 -08:00
Russ Anderson
c8182f0016
sgi-xp: xpc needs to pass the physical address, not virtual
...
Impact: fix crash
xpc needs to pass the physical address, not virtual.
Testing uncovered this problem. The virtual address happens to work
most of the time due to the way bios was masking off the node bits.
Passing the physical address makes it work all of the time.
Signed-off-by: Russ Anderson <rja@sgi.com >
Acked-by: Dean Nelson <dcn@sgi.com >
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2008-12-16 23:04:24 +01:00
Russ Anderson
23c357003b
x86: uv: Add UV reserved page bios call
...
Add UV bios call to get the address of the reserved page.
Signed-off-by: Russ Anderson <rja@sgi.com >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2008-11-05 20:30:25 -08:00
Russ Anderson
e8929c8a6a
x86: uv: Add UV memory protection bios call
...
Add UV bios call to change memory protections.
Signed-off-by: Russ Anderson <rja@sgi.com >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2008-11-05 20:30:20 -08:00
Russ Anderson
64ccf2f9a7
x86: uv: Add UV watchlist bios call
...
Add UV bios calls to allocate and free watchlists.
Signed-off-by: Russ Anderson <rja@sgi.com >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2008-11-05 20:30:15 -08:00
Ingo Molnar
5292ae11ba
Merge commit 'v2.6.28-rc2' into x86/uv
2008-10-27 12:38:02 +01:00
H. Peter Anvin
05e4d3169b
x86: drop double underscores from header guards
...
Drop double underscores from header guards in arch/x86/include. They
are used inconsistently, and are not necessary.
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2008-10-23 00:01:39 -07:00
H. Peter Anvin
1965aae3c9
x86: Fix ASM_X86__ header guards
...
Change header guards named "ASM_X86__*" to "_ASM_X86_*" since:
a. the double underscore is ugly and pointless.
b. no leading underscore violates namespace constraints.
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2008-10-22 22:55:23 -07:00
Al Viro
bb8985586b
x86, um: ... and asm-x86 move
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2008-10-22 22:55:20 -07:00