projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25b223d
)
EDAC, thunderx: Change LMC index calculation
author
Sergey Temerkhanov
<
[email protected]
>
Thu, 6 Apr 2017 11:37:55 +0000
(11:37 +0000)
committer
Borislav Petkov
<
[email protected]
>
Fri, 7 Apr 2017 09:47:44 +0000
(11:47 +0200)
Shift the node number by 3 bits instead of 8 allowing proper functioning
with default EDAC_MAX_MCS.
Signed-off-by: Sergey Temerkhanov <
[email protected]
>
Cc: David Daney <
[email protected]
>
Cc:
[email protected]
Cc: linux-edac <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Borislav Petkov <
[email protected]
>
drivers/edac/thunderx_edac.c
patch
|
blob
|
history
diff --git
a/drivers/edac/thunderx_edac.c
b/drivers/edac/thunderx_edac.c
index f39f4bb7b0f9420030a75dd2527b712ff1310fab..955f73cdd5fdf561ff9fded8b9228db6224f3370 100644
(file)
--- 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;
}