Skip to content

Commit

Permalink
sb_edac: fix socket detection on Ivy Bridge controllers
Browse files Browse the repository at this point in the history
This patch fixes the obvious bug while handling the socket/HA bitmask used in
Ivy Bridge memory controllers.

Cc: Tony Luck <[email protected]>
Signed-off-by: Aristeu Rozanski <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
aristeu authored and mchehab committed Jun 26, 2014
1 parent 66ca727 commit 2ff3a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/sb_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ static u8 get_node_id(struct sbridge_pvt *pvt)
static inline u8 sad_pkg_socket(u8 pkg)
{
/* on Ivy Bridge, nodeID is SASS, where A is HA and S is node id */
return (pkg >> 3) | (pkg & 0x3);
return ((pkg >> 3) << 2) | (pkg & 0x3);
}

static inline u8 sad_pkg_ha(u8 pkg)
Expand Down

0 comments on commit 2ff3a30

Please sign in to comment.