89d01c24d1
mp_maxid or CPU_FOREACH() as appropriate. This fixes a number of places in the kernel that assumed CPU IDs are dense in [0, mp_ncpus) and would try, for example, to run tasks on CPUs that did not exist or to allocate too few buffers on systems with sparse CPU IDs in which there are holes in the range and mp_maxid > mp_ncpus. Such circumstances generally occur on systems with SMT, but on which SMT is disabled. This patch restores system operation at least on POWER8 systems configured in this way. There are a number of other places in the kernel with potential problems in these situations, but where sparse CPU IDs are not currently known to occur, mostly in the ARM machine-dependent code. These will be fixed in a follow-up commit after the stable/11 branch. PR: kern/210106 Reviewed by: jhb Approved by: re (glebius) |
||
---|---|---|
.. | ||
_align.h | ||
_bus.h | ||
_inttypes.h | ||
_limits.h | ||
_stdint.h | ||
_types.h | ||
altivec.h | ||
asm.h | ||
atomic.h | ||
bat.h | ||
bus_dma.h | ||
bus.h | ||
clock.h | ||
counter.h | ||
cpu.h | ||
cpufunc.h | ||
db_machdep.h | ||
dbdma.h | ||
dump.h | ||
elf.h | ||
endian.h | ||
exec.h | ||
float.h | ||
floatingpoint.h | ||
fpu.h | ||
frame.h | ||
gdb_machdep.h | ||
hid.h | ||
ieee.h | ||
ieeefp.h | ||
in_cksum.h | ||
intr_machdep.h | ||
kdb.h | ||
limits.h | ||
machdep.h | ||
md_var.h | ||
memdev.h | ||
metadata.h | ||
mmuvar.h | ||
ofw_machdep.h | ||
openpicreg.h | ||
openpicvar.h | ||
param.h | ||
pcb.h | ||
pcpu.h | ||
pio.h | ||
platform.h | ||
platformvar.h | ||
pmap.h | ||
pmc_mdep.h | ||
proc.h | ||
profile.h | ||
psl.h | ||
pte.h | ||
ptrace.h | ||
reg.h | ||
reloc.h | ||
resource.h | ||
rtas.h | ||
runq.h | ||
sc_machdep.h | ||
setjmp.h | ||
sigframe.h | ||
signal.h | ||
slb.h | ||
smp.h | ||
spr.h | ||
sr.h | ||
stack.h | ||
stdarg.h | ||
sysarch.h | ||
tlb.h | ||
trap.h | ||
ucontext.h | ||
varargs.h | ||
vdso.h | ||
vm.h | ||
vmparam.h |