]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC, pnd2: Mask off the lower four bits of a BAR
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Mon, 14 Aug 2017 15:48:13 +0000 (23:48 +0800)
committerBorislav Petkov <bp@suse.de>
Sat, 19 Aug 2017 08:33:30 +0000 (10:33 +0200)
commit65c1b8e9802a30ed74aa060ad39b38a5c1a1142b
treeeb0bcc349837dcac5486c54d9b749af6de6a162c
parent71e056247c441385af50b1b085c8c40dc091bb82
EDAC, pnd2: Mask off the lower four bits of a BAR

Bit[0] of BAR is always zero. Bit[2:1] and bit[3] of BAR contain the
information of 'type' and the 'prefetchable' accordingly. Therefore,
mask the lower four bits to retrieve the actual base address of a BAR.

Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170814154813.21619-1-qiuxu.zhuo@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/pnd2_edac.c