]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Print CM error reports upon bus errors
authorPaul Burton <paul.burton@imgtec.com>
Wed, 5 Oct 2016 17:18:17 +0000 (18:18 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 6 Oct 2016 16:02:18 +0000 (18:02 +0200)
commit767e02bad07b670e305a01484e2464751c1ae77b
tree01cd0f619f8062353aa77724fd4b9857e6c00a3f
parent7b8c48595be23d5628842e5ceeb3f2290a1860ee
MIPS: Print CM error reports upon bus errors

If a bus error occurs on a system with a MIPS Coherence Manager (CM)
then the CM may hold useful diagnostic information. Printing this out
has so far been left up to boards, with the requirement that they
register a board_be_handler function & call mips_cm_error_decode() from
there.

In order to avoid boards other than Malta needing to duplicate this
code, call mips_cm_error_decode() automatically if the board registers
no board_be_handler, and remove the Malta implementation of that.

This patch results in no functional change, but removes a further piece
of platform-specific code.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14350/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c
arch/mips/mti-malta/malta-int.c
arch/mips/mti-malta/malta-setup.c