OSDN Git Service

mips: cm: Add L2 ECC/parity errors reporting
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Wed, 6 May 2020 17:42:23 +0000 (20:42 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 7 May 2020 11:11:38 +0000 (13:11 +0200)
commit109111b33202e19c956c32cb65960b3b31730650
treef9711a7e1c171e81337da2c86e1fd9d030598f53
parent8a0efb8b101665a843205eab3d67ab09cb2d9a8d
mips: cm: Add L2 ECC/parity errors reporting

According to the MIPS32 InterAptiv software manual error codes 24 - 26
of CM2 indicate L2 ECC/parity error with switching to a corresponding
errors info fields. This patch provides these errors parsing code,
which handles the read/write uncorrectable and correctable ECC/parity
errors, and prints instruction causing the fault, RAM array type, cache
way/dword and syndrome associated with the faulty data.

Co-developed-by: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
Signed-off-by: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: linux-pm@vger.kernel.org
Cc: devicetree@vger.kernel.org
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/mips-cm.c