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

powerpc: Don't try OPAL takeover on old 970 blades

The firmware on old 970 blades supports some kind of takeover called
"TNK takeover" which will crash if we try to probe for OPAL takeover,
so don't do it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

+10
+10
arch/powerpc/kernel/prom_init.c
··· 1313 1313 { 1314 1314 long rc; 1315 1315 1316 + /* We must not query for OPAL presence on a machine that 1317 + * supports TNK takeover (970 blades), as this uses the same 1318 + * h-call with different arguments and will crash 1319 + */ 1320 + if (PHANDLE_VALID(call_prom("finddevice", 1, 1, 1321 + ADDR("/tnk-memory-map")))) { 1322 + prom_printf("TNK takeover detected, skipping OPAL check\n"); 1323 + return; 1324 + } 1325 + 1316 1326 prom_printf("Querying for OPAL presence... "); 1317 1327 rc = opal_query_takeover(&RELOC(prom_opal_size), 1318 1328 &RELOC(prom_opal_align));