diff options
author | Mike Travis <travis@sgi.com> | 2016-04-29 17:54:11 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-05-04 02:48:48 -0400 |
commit | a2f28e6950cec75320a8c3c8747a6e3ad08cfd2b (patch) | |
tree | 387ed241e92435d119a675d74a96822e50cfa689 /arch/x86 | |
parent | b608f87fe886d3ef7f9f8eb8ba58f45beb61c286 (diff) |
x86/platform/UV: Update MMIOH setup function to work for both UV3 and UV4
Since UV3 and UV4 MMIOH regions are setup the same, we can use a common
function to setup both.
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/20160429215404.100504077@asylum.americas.sgi.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/apic/x2apic_uv_x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index db5d980ad85d..4ca87b9c8cfe 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c | |||
@@ -608,6 +608,7 @@ static __initdata struct mmioh_config mmiohs[] = { | |||
608 | }, | 608 | }, |
609 | }; | 609 | }; |
610 | 610 | ||
611 | /* UV3 & UV4 have identical MMIOH overlay configs */ | ||
611 | static __init void map_mmioh_high_uv3(int index, int min_pnode, int max_pnode) | 612 | static __init void map_mmioh_high_uv3(int index, int min_pnode, int max_pnode) |
612 | { | 613 | { |
613 | union uv3h_rh_gam_mmioh_overlay_config0_mmr_u overlay; | 614 | union uv3h_rh_gam_mmioh_overlay_config0_mmr_u overlay; |
@@ -687,7 +688,7 @@ static __init void map_mmioh_high(int min_pnode, int max_pnode) | |||
687 | unsigned long mmr, base; | 688 | unsigned long mmr, base; |
688 | int shift, enable, m_io, n_io; | 689 | int shift, enable, m_io, n_io; |
689 | 690 | ||
690 | if (is_uv3_hub()) { | 691 | if (is_uv3_hub() || is_uv4_hub()) { |
691 | /* Map both MMIOH Regions */ | 692 | /* Map both MMIOH Regions */ |
692 | map_mmioh_high_uv3(0, min_pnode, max_pnode); | 693 | map_mmioh_high_uv3(0, min_pnode, max_pnode); |
693 | map_mmioh_high_uv3(1, min_pnode, max_pnode); | 694 | map_mmioh_high_uv3(1, min_pnode, max_pnode); |