aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/x2apic_uv_x.c
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2010-01-12 15:09:04 -0600
committerH. Peter Anvin <hpa@zytor.com>2010-01-15 11:08:55 -0800
commit7a1110e861b2666ac09f5708d6fbe71d18ce64bb (patch)
tree2958eb36de538330534c94ccfc5960133b3a4633 /arch/x86/kernel/apic/x2apic_uv_x.c
parentx86: xen: 64-bit kernel RPL should be 0 (diff)
downloadlinux-dev-7a1110e861b2666ac09f5708d6fbe71d18ce64bb.tar.xz
linux-dev-7a1110e861b2666ac09f5708d6fbe71d18ce64bb.zip
x86, uv: Add function retrieving node controller revision number
Add function for determining the revision id of the SGI UV node controller chip (HUB). This function is needed in a subsequent patch. Signed-off-by: Jack Steiner <steiner@sgi.com> LKML-Reference: <20100112210904.GA24546@sgi.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to '')
-rw-r--r--arch/x86/kernel/apic/x2apic_uv_x.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index b8bb869a6618..0e48de9ff864 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -36,6 +36,8 @@ DEFINE_PER_CPU(int, x2apic_extra_bits);
static enum uv_system_type uv_system_type;
static u64 gru_start_paddr, gru_end_paddr;
+int uv_min_hub_revision_id;
+EXPORT_SYMBOL_GPL(uv_min_hub_revision_id);
static inline bool is_GRU_range(u64 start, u64 end)
{
@@ -55,6 +57,10 @@ static int early_get_nodeid(void)
mmr = early_ioremap(UV_LOCAL_MMR_BASE | UVH_NODE_ID, sizeof(*mmr));
node_id.v = *mmr;
early_iounmap(mmr, sizeof(*mmr));
+
+ /* Currently, all blades have same revision number */
+ uv_min_hub_revision_id = node_id.s.revision;
+
return node_id.s.node_id;
}