Commit b3ece3a
EDAC/amd64: Add get_err_info() to pvt->ops
GPU Nodes will use a different method to determine the chip select
and channel of an error. A function pointer should be used rather than
introduce another branching condition.
Prepare for this by adding get_err_info() to pvt->ops. This function is
only called from the modern code path, so a legacy function is not
defined.
Make sure to call this after MCA_STATUS[SyndV] is checked, since the
csrow value is found in MCA_SYND.
[ Yazen: rebased/reworked patch and reworded commit message. ]
Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
Co-developed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Co-developed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230127170419.1824692-23-yazen.ghannam@amd.com1 parent f6f3638 commit b3ece3a
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2974 | 2974 | | |
2975 | 2975 | | |
2976 | 2976 | | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
2977 | 2980 | | |
2978 | | - | |
| 2981 | + | |
2979 | 2982 | | |
2980 | | - | |
| 2983 | + | |
| 2984 | + | |
2981 | 2985 | | |
2982 | 2986 | | |
2983 | 2987 | | |
| |||
2999 | 3003 | | |
3000 | 3004 | | |
3001 | 3005 | | |
3002 | | - | |
3003 | | - | |
3004 | 3006 | | |
3005 | 3007 | | |
3006 | 3008 | | |
| |||
3015 | 3017 | | |
3016 | 3018 | | |
3017 | 3019 | | |
3018 | | - | |
| 3020 | + | |
3019 | 3021 | | |
3020 | 3022 | | |
3021 | 3023 | | |
| |||
3685 | 3687 | | |
3686 | 3688 | | |
3687 | 3689 | | |
| 3690 | + | |
3688 | 3691 | | |
3689 | 3692 | | |
3690 | 3693 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
| |||
0 commit comments