freebsd-skq/sys/powerpc
jhibbits f7e8241ecd Fix wrong cpu0 identification
Summary:
chrp_cpuref_init() was relying on the boot strap processor to be
the first child of /cpus. That was not always the case, specially
on pseries with FDT.

This change uses the "reg" property of each CPU instead and also
adds several sanity checks to avoid unexpected behavior (maybe
too many panics?).

The main observed symptom was interrupts being missed by the main
processor, leading to timeouts and the kernel aborting the boot.

Submitted by:	Leandro Lupori
Reviewed by:	nwhitehorn
Differential Revision: https://reviews.freebsd.org/D15174
2018-05-08 13:23:39 +00:00
..
aim Add support for powernv POWER9 MMU initialization 2018-05-05 16:00:02 +00:00
booke Remove dead errata fixup code 2018-05-01 04:31:17 +00:00
conf PowerNV: Initial support for OPAL I2C transfers 2018-03-01 14:11:07 +00:00
cpufreq [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
fpu sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
include Add support for powernv POWER9 MMU initialization 2018-05-05 16:00:02 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx Remove dead errata fixup code 2018-05-01 04:31:17 +00:00
ofw Increase the fdtmemreserv array limit to boot on POWER9 2018-04-25 02:42:11 +00:00
powermac Fix null pointer dereference on nodes without a "compatible" property. 2018-04-30 19:37:32 +00:00
powernv Reverting r330925 for now 2018-03-15 06:19:45 +00:00
powerpc Break out the cpu_features setup to its own function, to be run earlier 2018-05-05 15:48:39 +00:00
ps3 Move the powerpc64 direct map base address from zero to high memory. This 2018-03-07 17:08:07 +00:00
pseries Fix wrong cpu0 identification 2018-05-08 13:23:39 +00:00
psim Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00