Skip to content

Commit 826ea8f

Browse files
tbreedsLinus Torvalds
authored andcommitted
Revert "[POWERPC] Do firmware feature fixups after features are initialised"
This reverts commit 5a26f6b. The original patch causes boot failures when built with ppc64_defconfig. The quickest fix is to revert it while alterates are investigated. Signed-off-by: Tony Breeds <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 4f3731d commit 826ea8f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

arch/powerpc/kernel/setup_64.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,13 @@ void __init setup_system(void)
350350
{
351351
DBG(" -> setup_system()\n");
352352

353-
/* Apply CPUs-specific fixups to kernel text (nop out sections
354-
* not relevant to this CPU)
353+
/* Apply the CPUs-specific and firmware specific fixups to kernel
354+
* text (nop out sections not relevant to this CPU or this firmware)
355355
*/
356356
do_feature_fixups(cur_cpu_spec->cpu_features,
357357
&__start___ftr_fixup, &__stop___ftr_fixup);
358+
do_feature_fixups(powerpc_firmware_features,
359+
&__start___fw_ftr_fixup, &__stop___fw_ftr_fixup);
358360

359361
/*
360362
* Unflatten the device-tree passed by prom_init or kexec
@@ -392,12 +394,6 @@ void __init setup_system(void)
392394
if (ppc_md.init_early)
393395
ppc_md.init_early();
394396

395-
/* Apply firmware specific fixups to kernel text (nop out
396-
* sections not relevant to this firmware)
397-
*/
398-
do_feature_fixups(powerpc_firmware_features,
399-
&__start___fw_ftr_fixup, &__stop___fw_ftr_fixup);
400-
401397
/*
402398
* We can discover serial ports now since the above did setup the
403399
* hash table management for us, thus ioremap works. We do that early

0 commit comments

Comments
 (0)