EDAC, sb_edac: Fix rank lookup on Broadwell
authorTony Luck <tony.luck@intel.com>
Tue, 31 May 2016 18:50:28 +0000 (11:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 16:47:27 +0000 (09:47 -0700)
commit7bf506067c4b2e1109b1462661914c1c0e180847
treedae58d7c158c7136fe28698584c74b0c7f1f37f2
parent96d50acbd447f536b39cc3c2964a6231aeb6bb6f
EDAC, sb_edac: Fix rank lookup on Broadwell

commit c7103f650a11328f28b9fa1c95027db331b7774b upstream.

Broadwell made a small change to the rank target register moving the
target rank ID field up from bits 16:19 to bits 20:23.

Also found that the offset field grew by one bit in the IVY_BRIDGE to
HASWELL transition, so fix the RIR_OFFSET() macro too.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: Aristeu Rozanski <arozansk@redhat.com>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/2943fb819b1f7e396681165db9c12bb3df0e0b16.1464735623.git.tony.luck@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/sb_edac.c