Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1394030
| From | tip-bot for Mike Travis <tipbot@zytor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [tip:x86/platform] x86/platform/UV: Add UV MMR Illegal Access Function |
| Date | 2016-05-04 09:20 +0200 |
| Message-ID | <ruZgd-7OK-5@gated-at.bofh.it> (permalink) |
| References | <rtoLM-5gy-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Commit-ID: 7563421b13da21dd7a947f658b5299e65ed95cbe
Gitweb: http://git.kernel.org/tip/7563421b13da21dd7a947f658b5299e65ed95cbe
Author: Mike Travis <travis@sgi.com>
AuthorDate: Fri, 29 Apr 2016 16:54:06 -0500
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 4 May 2016 08:48:47 +0200
x86/platform/UV: Add UV MMR Illegal Access Function
This new function is generated by the UV MMR generation script to
identify MMR registers and fields that are not defined for a specific
UV architecture. With this switch, the immediate panic can be replaced
with a message and a bad return value allowing either hardware or the
emulator to diagnose the problem. It allows functions common to some
UV arches to use common defines that might not be fully defined for all
arches, as long as they do not reference them on the unsupported arches.
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>
Reviewed-by: Dimitri Sivanich <sivanich@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/20160429215403.231926687@asylum.americas.sgi.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/kernel/apic/x2apic_uv_x.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index 9086d95..85c3849 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -55,6 +55,18 @@ EXPORT_SYMBOL_GPL(uv_apicid_hibits);
static struct apic apic_x2apic_uv_x;
+/* Set this to use hardware error handler instead of kernel panic */
+static int disable_uv_undefined_panic = 1;
+unsigned long uv_undefined(char *str)
+{
+ if (likely(!disable_uv_undefined_panic))
+ panic("UV: error: undefined MMR: %s\n", str);
+ else
+ pr_crit("UV: error: undefined MMR: %s\n", str);
+ return ~0ul; /* cause a machine fault */
+}
+EXPORT_SYMBOL(uv_undefined);
+
static unsigned long __init uv_early_read_mmr(unsigned long addr)
{
unsigned long val, *mmr;
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/21] X86_64, UV: Update kernel for SGI UV4 support Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[PATCH 18/21] X86_64, UV: Build GAM reference tables Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Build GAM reference tables tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 17/21] X86_64, UV: Support UV4 socket address changes Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Support UV4 socket address changes tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 09/21] X86_64, UV: Update MMIOH setup function to work for both UV3 and UV4 Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Update MMIOH setup function to work for both UV3 and UV4 tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:20 +0200
[PATCH 03/21] X86_64, UV: Add UV4 Specific Defines Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Add UV4 Specific Defines tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:20 +0200
[PATCH 11/21] X86_64, UV: Move scir info to the per cpu info struct Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Move scir info to the per cpu info struct tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 15/21] X86_64, UV: Add UV4 addressing discovery function Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Add UV4 addressing discovery function tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 13/21] X86_64, UV: Allocate common per node hub info structs on local node Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Allocate common per node hub info structs on local node tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 14/21] X86_64, UV: Fold blade info into per node hub info structs Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Fold blade info into per node hub info structs tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 21/21] X86_64, UV: Fix incorrect nodes and pnodes for cpuless and memoryless nodes Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Fix incorrect nodes and pnodes for cpuless and memoryless nodes tip-bot for Dimitri Sivanich <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 07/21] X86_64, UV: Disable Obsolete APIC ID fixup code used only on UV1 Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
Re: [PATCH 07/21] X86_64, UV: Disable Obsolete APIC ID fixup code used only on UV1 Ingo Molnar <mingo@kernel.org> - 2016-05-03 09:40 +0200
Re: [PATCH 07/21] X86_64, UV: Disable Obsolete APIC ID fixup code used only on UV1 Mike Travis <travis@sgi.com> - 2016-05-03 16:50 +0200
[PATCH 10/21] X86_64, UV: Create per cpu info structs to replace per hub info structs Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Create per cpu info structs to replace per hub info structs tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:20 +0200
[PATCH 20/21] X86_64, UV: Remove Obsolete GRU MMR address translation Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Remove Obsolete GRU MMR address translation tip-bot for Dimitri Sivanich <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 16/21] X86_64, UV: Add obtaining GAM Range Table from UV BIOS Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Add obtaining GAM Range Table from UV BIOS tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 19/21] X86_64, UV: Update physical address conversions for UV4 Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Update physical address conversions for UV4 tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 05/21] X86_64, UV: Prep for UV4 MMR updates Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Prep for UV4 MMR updates tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:20 +0200
[PATCH 02/21] X86_64, UV: Add UV Architecture Defines Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Add UV Architecture Defines tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:20 +0200
[PATCH 01/21] X86_64, UV: Add Initial UV4 definitions Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Add Initial UV4 definitions tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:20 +0200
[PATCH 12/21] X86_64, UV: Move blade local processor ID to the per cpu info struct Mike Travis <travis@sgi.com> - 2016-04-30 00:00 +0200
[tip:x86/platform] x86/platform/UV: Move blade local processor ID to the per cpu info struct tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:30 +0200
[PATCH 04/21] X86_64, UV: Add UV MMR Illegal Access Function Mike Travis <travis@sgi.com> - 2016-04-30 00:10 +0200
[tip:x86/platform] x86/platform/UV: Add UV MMR Illegal Access Function tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:20 +0200
[PATCH 08/21] X86_64, UV: Clean up redunduncies after merge of UV4 MMR definitions Mike Travis <travis@sgi.com> - 2016-04-30 00:10 +0200
[tip:x86/platform] x86/platform/UV: Clean up redunduncies after merge of UV4 MMR definitions tip-bot for Mike Travis <tipbot@zytor.com> - 2016-05-04 09:20 +0200
csiph-web