Skip to content

Commit 2ff3a30

Browse files
aristeumchehab
authored andcommitted
sb_edac: fix socket detection on Ivy Bridge controllers
This patch fixes the obvious bug while handling the socket/HA bitmask used in Ivy Bridge memory controllers. Cc: Tony Luck <tony.luck@intel.com> Signed-off-by: Aristeu Rozanski <aris@redhat.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
1 parent 66ca727 commit 2ff3a30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/edac/sb_edac.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ static u8 get_node_id(struct sbridge_pvt *pvt)
616616
static inline u8 sad_pkg_socket(u8 pkg)
617617
{
618618
/* on Ivy Bridge, nodeID is SASS, where A is HA and S is node id */
619-
return (pkg >> 3) | (pkg & 0x3);
619+
return ((pkg >> 3) << 2) | (pkg & 0x3);
620620
}
621621

622622
static inline u8 sad_pkg_ha(u8 pkg)

0 commit comments

Comments
 (0)