powerpc/papr/scm: Add bad memory ranges to nvdimm bad ranges
authorSantosh Sivaraj <santosh@fossix.org>
Thu, 9 Jul 2020 13:51:42 +0000 (19:21 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Jul 2020 12:57:57 +0000 (22:57 +1000)
commit85343a8da2d969df1a10ada8f7cb857d52ea70a6
tree8b911864813eca7ce7793a5f14fbf913de913e5e
parentc37a63afc429ce959402168f67e4f094ab639ace
powerpc/papr/scm: Add bad memory ranges to nvdimm bad ranges

Subscribe to the MCE notification and add the physical address which
generated a memory error to nvdimm bad range.

Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200709135142.721504-2-santosh@fossix.org
arch/powerpc/platforms/pseries/papr_scm.c