diff options
author | Sergey Temerkhanov <s.temerkhanov@gmail.com> | 2017-04-06 11:37:55 +0000 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2017-04-07 11:47:44 +0200 |
commit | 3d2d8c0f84ca518da9210b3f855643efd1629e07 (patch) | |
tree | 38ad29657edcb3195b0109a23c3feb3ae5bbe7c9 /drivers/edac | |
parent | 25b223ddfe2a557307c05fe673e09d94ae950877 (diff) | |
download | linux-3d2d8c0f84ca518da9210b3f855643efd1629e07.tar.gz linux-3d2d8c0f84ca518da9210b3f855643efd1629e07.tar.bz2 linux-3d2d8c0f84ca518da9210b3f855643efd1629e07.zip |
EDAC, thunderx: Change LMC index calculation
Shift the node number by 3 bits instead of 8 allowing proper functioning
with default EDAC_MAX_MCS.
Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
Cc: David Daney <david.daney@cavium.com>
Cc: Jan.Glauber@cavium.com
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170406113755.17082-1-s.temerkhanov@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/thunderx_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/thunderx_edac.c b/drivers/edac/thunderx_edac.c index f39f4bb7b0f9..955f73cdd5fd 100644 --- a/drivers/edac/thunderx_edac.c +++ b/drivers/edac/thunderx_edac.c @@ -670,7 +670,7 @@ static inline int pci_dev_to_mc_idx(struct pci_dev *pdev) int node = dev_to_node(&pdev->dev); int ret = PCI_FUNC(pdev->devfn); - ret += max(node, 0) << 8; + ret += max(node, 0) << 3; return ret; } |