mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
edac: i5000_edac critical fix panic out of bounds
EDAC MC0: INTERNAL ERROR: channel-b out of range (4 >= 4) Kernel panic - not syncing: EDAC MC0: Uncorrected Error (XEN) Domain 0 crashed: 'noreboot' set - not rebooting. This happens because FERR_NF_FBD bit 28 is not updated on i5000. Due to that, both bits 28 and 29 may be equal to one, returning channel = 3. As this value is invalid, EDAC core generates the panic. Addresses http://bugzilla.kernel.org/show_bug.cgi?id=14568 Signed-off-by: Tamas Vincze <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Doug Thompson <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
355e8e8d1b
commit
118f3e1afd
1 changed files with 7 additions and 1 deletions
|
|
@ -577,7 +577,13 @@ static void i5000_process_nonfatal_error_info(struct mem_ctl_info *mci,
|
|||
debugf0("\tUncorrected bits= 0x%x\n", ue_errors);
|
||||
|
||||
branch = EXTRACT_FBDCHAN_INDX(info->ferr_nf_fbd);
|
||||
channel = branch;
|
||||
|
||||
/*
|
||||
* According with i5000 datasheet, bit 28 has no significance
|
||||
* for errors M4Err-M12Err and M17Err-M21Err, on FERR_NF_FBD
|
||||
*/
|
||||
channel = branch & 2;
|
||||
|
||||
bank = NREC_BANK(info->nrecmema);
|
||||
rank = NREC_RANK(info->nrecmema);
|
||||
rdwr = NREC_RDWR(info->nrecmema);
|
||||
|
|
|
|||
Loading…
Reference in a new issue