]> git.baikalelectronics.ru Git - 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)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Aug 2019 12:23:47 +0000 (22:23 +1000)
commit843eae1af7aa2fa707dddba06cc2ad2da5601f5a
treee876d9e2439c0f19c79efca7bb5944199f611b2a
parent80f43de28c825635a6304002ccca8b20cc09f962
powerpc/mce: Fix MCE handling for huge pages

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: 930f954d3a06 ("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
arch/powerpc/kernel/mce_power.c