x86_64 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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Dec 2009 20:25:26 +0000 (12:25 -0800)
commit9a7262a0563da6b91019156abf487bcdf1a41526
tree909e69dbd2752b0a8e38872172d2b2f42820f8f4
parent66f0dc481e5b802ab363b979fc1753410c7d82b5
x86_64 SGI UV: Fix writes to led registers on remote uv hubs.

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: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/uv/uv_hub.h
arch/x86/kernel/apic/x2apic_uv_x.c