]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86: SGI UV: Fix writes to led registers on remote uv hubs
authorMike Travis <travis@sgi.com>
Mon, 28 Dec 2009 21:28:25 +0000 (13:28 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:03:47 +0000 (15:03 -0800)
commitacb8be461bc008fea70999310812a4f4638d9596
tree29c2fbbdbd62bfcae1d7217e19d6ca4f713c7d47
parent4ba51fe7d303115c0eef7cfe4a326fdff536302f
x86: SGI UV: Fix writes to led registers on remote uv hubs

commit 39d30770992895d55789de64bad2349510af68d0 upstream.

The wrong address was being used to write the SCIR led regs on
remote hubs.  Also, there was an inconsistency between how BIOS
and the kernel indexed these regs.  Standardize on using the
lower 6 bits of the APIC ID as the index.

This patch fixes the problem of writing to an errant address to
a cpu # >= 64.

Signed-off-by: Mike Travis <travis@sgi.com>
Reviewed-by: Jack Steiner <steiner@sgi.com>
Cc: Robin Holt <holt@sgi.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <4B3922F9.3060905@sgi.com>
[ v2: fix a number of annoying checkpatch artifacts and whitespace noise ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/uv/uv_hub.h
arch/x86/kernel/apic/x2apic_uv_x.c