7 Commits

Author SHA1 Message Date
Prasad Sodagudi
64dad28de5 drivers: msm: Remove all unused local variables
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>
2018-02-15 14:37:24 -08:00
Runmin Wang
133349036e drivers: edac: change the macro definition
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>
2018-02-09 13:52:36 -08:00
Kyle Yan
2ba688bfe1 drivers: edac: Reinitialize errxctlr and overflow counter after PM_EXIT
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>
2018-01-03 14:35:31 -08:00
Kyle Yan
f283d2c6ba drivers: edac: Add PM notifier to check ECC during CPU_EXIT_PM
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>
2018-01-03 14:33:40 -08:00
Runmin Wang
b91147262d drivers: edac: Add support for edac on sdm855
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>
2017-11-01 13:47:24 -07:00
Kyle Yan
2c28af33a5 drivers: edac: Fix error code parsing and initial check for bus errors
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>
2017-08-01 12:29:54 -07:00
Kyle Yan
b05e131028 drivers: edac: Add Cache Error Reporting driver for Kryo processors
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>
2017-06-28 12:21:14 -07:00