]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/mce: Fix misleading print for TLB mutlihit
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Tue, 26 Mar 2019 12:30:31 +0000 (18:00 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 29 Mar 2019 05:59:19 +0000 (16:59 +1100)
commita9bd1599277e499dee59a5314fee73d75f1e7340
treeafd85a4db32aa98fcb4217e52bc549f0244554ae
parent2e3fd4ee805a574c668e836368df202783c30f9e
powerpc/pseries/mce: Fix misleading print for TLB mutlihit

On pseries, TLB multihit are reported as D-Cache Multihit. This is because
the wrongly populated mc_err_types[] array. Per PAPR, TLB error type is 0x04
and mc_err_types[4] points to "D-Cache" instead of "TLB" string. Fixup the
mc_err_types[] array.

Machine check error type per PAPR:
  0x00 = Uncorrectable Memory Error (UE)
  0x01 = SLB error
  0x02 = ERAT Error
  0x04 = TLB error
  0x05 = D-Cache error
  0x07 = I-Cache error

Fixes: 1943e1d61eae ("powerpc/pseries: Display machine check error details.")
Cc: stable@vger.kernel.org # v4.20+
Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/ras.c