When kernel is compiled with clang -Wunused-variable warning
are getting disabled. To match with GCC settings and enable
-Wunused-variable warnings, removing all ununsed local variables.
Change-Id: Ie588eb9d858fa71093d682d2a9a56467e073f9ae
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
The edac framework maintains each cache level and its index is starting
from 0. In order to be consistent with the framework, update our macro
definition to start from index 0 as well.
Change-Id: Ide146e739067d4f06a56a967f1e5aa1f0ba765be
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
In lower levels of LPMs, the errxctlr and errxmisc registers can be wiped
and lose their original value. Restore the errxctlr values and overflow
count on PM_EXIT. Also initialize L3/SCU registers on initial probe.
Change-Id: I19f68fd970b56719ad0cd9f3d247eac40eaa25af
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
In order to catch cases where interrupts might be missed when just exiting
LPM, add a notifier block to check cache ECC errors when we exit LPM.
Change-Id: Ie2808e866edcc93507c0262e829fb90fd0b57903
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Gold cluster has a new mapping of ERRXMISC register, so update
the parsing and printing for edac on sdm855 accordingly.
Change-Id: Ia6ad865e22b6395483d034820dad2dac45e387f3
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Primary error code reporting is out of sync with latest documentation.
Update the error values to properly reflect what is listed. Further add
an initial check for bus errors before reporting any uncorrectable error
so that it will not be confused for an ECC error.
Change-Id: If5e6adee3420751e8ad399c57568985fc63bf66c
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Cache Error Reporting driver receives error interrupts for Single Bit and
Double Bit Errors, checks the corresponding syndrome registers and takes
action based on configuration options. Optional polling of syndrome
registers with single error and double bit errors configurable as panic.
Change-Id: I025037da5c5ac6f5520b683af69c462663c1e4f0
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>