Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/powernv: Remove machine check handling in OPAL.

Now that we are ready to handle machine check directly in linux, do not
register with firmware to handle machine check exception.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Mahesh Salgaonkar and committed by
Benjamin Herrenschmidt
28446de2 b5ff4211

+2 -6
+2 -6
arch/powerpc/platforms/powernv/opal.c
··· 89 89 if (!(powerpc_firmware_features & FW_FEATURE_OPAL)) 90 90 return -ENODEV; 91 91 92 - /* Hookup some exception handlers. We use the fwnmi area at 0x7000 93 - * to provide the glue space to OPAL 92 + /* Hookup some exception handlers except machine check. We use the 93 + * fwnmi area at 0x7000 to provide the glue space to OPAL 94 94 */ 95 95 glue = 0x7000; 96 - opal_register_exception_handler(OPAL_MACHINE_CHECK_HANDLER, 97 - __pa(opal_mc_secondary_handler[0]), 98 - glue); 99 - glue += 128; 100 96 opal_register_exception_handler(OPAL_HYPERVISOR_MAINTENANCE_HANDLER, 101 97 0, glue); 102 98 glue += 128;