diff options
author | Mike Travis <travis@sgi.com> | 2016-04-29 17:54:05 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-05-04 02:48:47 -0400 |
commit | a0ec83f316e1d933d8c820d249972574324c2d25 (patch) | |
tree | 20ca89ac04e2a32b6a0f6fd230ced69f8746f031 /arch/x86/kernel | |
parent | e0ee1c97c3b1cabc3651d7bcf39c1f54d736fd20 (diff) |
x86/platform/UV: Add UV4 Specific Defines
Add UV4 specific defines to determine if current system type is a
UV4 system.
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.072323684@asylum.americas.sgi.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/apic/x2apic_uv_x.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index 8f4942e2bcbb..9086d95031a5 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c | |||
@@ -108,6 +108,9 @@ static int __init early_get_pnodeid(void) | |||
108 | case UV3_HUB_PART_NUMBER_X: | 108 | case UV3_HUB_PART_NUMBER_X: |
109 | uv_min_hub_revision_id += UV3_HUB_REVISION_BASE; | 109 | uv_min_hub_revision_id += UV3_HUB_REVISION_BASE; |
110 | break; | 110 | break; |
111 | case UV4_HUB_PART_NUMBER: | ||
112 | uv_min_hub_revision_id += UV4_HUB_REVISION_BASE - 1; | ||
113 | break; | ||
111 | } | 114 | } |
112 | 115 | ||
113 | uv_hub_info->hub_revision = uv_min_hub_revision_id; | 116 | uv_hub_info->hub_revision = uv_min_hub_revision_id; |
@@ -155,8 +158,10 @@ static int __init uv_acpi_madt_oem_check(char *oem_id, char *oem_table_id) | |||
155 | * SGI: UV100/1000 | 158 | * SGI: UV100/1000 |
156 | * SGI2: UV2000/3000 | 159 | * SGI2: UV2000/3000 |
157 | * SGI3: UV300 (truncated to 4 chars because of different varieties) | 160 | * SGI3: UV300 (truncated to 4 chars because of different varieties) |
161 | * SGI4: UV400 (truncated to 4 chars because of different varieties) | ||
158 | */ | 162 | */ |
159 | uv_hub_info->hub_revision = | 163 | uv_hub_info->hub_revision = |
164 | !strncmp(oem_id, "SGI4", 4) ? UV4_HUB_REVISION_BASE : | ||
160 | !strncmp(oem_id, "SGI3", 4) ? UV3_HUB_REVISION_BASE : | 165 | !strncmp(oem_id, "SGI3", 4) ? UV3_HUB_REVISION_BASE : |
161 | !strcmp(oem_id, "SGI2") ? UV2_HUB_REVISION_BASE : | 166 | !strcmp(oem_id, "SGI2") ? UV2_HUB_REVISION_BASE : |
162 | !strcmp(oem_id, "SGI") ? UV1_HUB_REVISION_BASE : 0; | 167 | !strcmp(oem_id, "SGI") ? UV1_HUB_REVISION_BASE : 0; |
@@ -881,9 +886,10 @@ void __init uv_system_init(void) | |||
881 | unsigned long mmr_base, present, paddr; | 886 | unsigned long mmr_base, present, paddr; |
882 | unsigned short pnode_mask; | 887 | unsigned short pnode_mask; |
883 | unsigned char n_lshift; | 888 | unsigned char n_lshift; |
884 | char *hub = (is_uv1_hub() ? "UV100/1000" : | 889 | char *hub = is_uv4_hub() ? "UV400" : |
885 | (is_uv2_hub() ? "UV2000/3000" : | 890 | is_uv3_hub() ? "UV300" : |
886 | (is_uv3_hub() ? "UV300" : NULL))); | 891 | is_uv2_hub() ? "UV2000/3000" : |
892 | is_uv1_hub() ? "UV100/1000" : NULL; | ||
887 | 893 | ||
888 | if (!hub) { | 894 | if (!hub) { |
889 | pr_err("UV: Unknown/unsupported UV hub\n"); | 895 | pr_err("UV: Unknown/unsupported UV hub\n"); |