]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
powerpc/mce: Fix MCE handling for huge pages
authorBalbir Singh <bsingharora@gmail.com>
Tue, 20 Aug 2019 08:13:47 +0000 (13:43 +0530)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 18 Oct 2019 08:26:31 +0000 (04:26 -0400)
commit818a74d67767623a8195fdfd4f97f6fce46c8276
treea5f8fb40d935654af08e4ad0a22b9ad9b334db8c
parent8e19dc8f08b145bee78a44b9ac6e3c79b0a739fd
powerpc/mce: Fix MCE handling for huge pages

BugLink: https://bugs.launchpad.net/bugs/1848039
commit 99ead78afd1128bfcebe7f88f3b102fb2da09aee upstream.

The current code would fail on huge pages addresses, since the shift would
be incorrect. Use the correct page shift value returned by
__find_linux_pte() to get the correct physical address. The code is more
generic and can handle both regular and compound pages.

Fixes: ba41e1e1ccb9 ("powerpc/mce: Hookup derror (load/store) UE errors")
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
[arbab@linux.ibm.com: Fixup pseries_do_memory_failure()]
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Tested-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Cc: stable@vger.kernel.org # v4.15+
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190820081352.8641-3-santosh@fossix.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/powerpc/kernel/mce_power.c