mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
amd64_edac: fix CECCs reporting
Shift error type bits properly. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
This commit is contained in:
parent
a3c4c58085
commit
17adea01b9
1 changed files with 1 additions and 1 deletions
|
@ -2254,7 +2254,7 @@ static inline void __amd64_decode_bus_error(struct mem_ctl_info *mci,
|
||||||
{
|
{
|
||||||
u32 ec = ERROR_CODE(info->nbsl);
|
u32 ec = ERROR_CODE(info->nbsl);
|
||||||
u32 xec = EXT_ERROR_CODE(info->nbsl);
|
u32 xec = EXT_ERROR_CODE(info->nbsl);
|
||||||
int ecc_type = info->nbsh & (0x3 << 13);
|
int ecc_type = (info->nbsh >> 13) & 0x3;
|
||||||
|
|
||||||
/* Bail early out if this was an 'observed' error */
|
/* Bail early out if this was an 'observed' error */
|
||||||
if (PP(ec) == K8_NBSL_PP_OBS)
|
if (PP(ec) == K8_NBSL_PP_OBS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue