freebsd-nq/sys/sparc64/include
Attilio Rao dc6fbf6545 * Completely Remove the option STOP_NMI from the kernel. This option
has proven to have a good effect when entering KDB by using a NMI,
but it completely violates all the good rules about interrupts
disabled while holding a spinlock in other occasions.  This can be the
cause of deadlocks on events where a normal IPI_STOP is expected.
* Adds an new IPI called IPI_STOP_HARD on all the supported architectures.
This IPI is responsible for sending a stop message among CPUs using a
privileged channel when disponible. In other cases it just does match a
normal IPI_STOP.
Right now the IPI_STOP_HARD functionality uses a NMI on ia32 and amd64
architectures, while on the other has a normal IPI_STOP effect. It is
responsibility of maintainers to eventually implement an hard stop
when necessary and possible.
* Use the new IPI facility in order to implement a new userend SMP kernel
function called stop_cpus_hard(). That is specular to stop_cpu() but
it does use the privileged channel for the stopping facility.
* Let KDB use the newly introduced function stop_cpus_hard() and leave
stop_cpus() for all the other cases
* Disable interrupts on CPU0 when starting the process of APs suspension.
* Style cleanup and comments adding

This patch should fix the reboot/shutdown deadlocks many users are
constantly reporting on mailing lists.

Please don't forget to update your config file with the STOP_NMI
option removal

Reviewed by:	jhb
Tested by:	pho, bz, rink
Approved by:	re (kib)
2009-08-13 17:09:45 +00:00
..
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h
asi.h For cheetah-class CPUs ensure that the dt512_0 is set to hold 8k pages 2008-09-08 21:24:25 +00:00
asm.h
asmacros.h
atomic.h - bump __FreeBSD version to reflect added buf_ring, memory barriers, 2008-11-22 05:55:56 +00:00
bus_common.h - Use the name returned by device_get_nameunit(9) for the name of the 2008-05-07 21:22:15 +00:00
bus_dma.h
bus_private.h Improve r185008 so the streaming cache is only flushed when 2009-02-10 21:51:33 +00:00
bus.h - Remove the BUS_HANDLE_MIN checking in the __BUS_DEBUG_ACCESS macro; 2008-05-08 21:10:39 +00:00
cache.h - USIII-based machines can consist of CPUs having different cache 2008-09-02 21:13:54 +00:00
ccr.h
clock.h - USIII-based machines can consist of CPUs running at different 2008-09-03 17:39:19 +00:00
cpu.h Flesh out MMU and cache handling of cheetah-class CPUs. 2008-09-04 19:58:52 +00:00
cpufunc.h - USIII-based machines can consist of CPUs running at different 2008-09-03 17:39:19 +00:00
db_machdep.h
dcr.h Flesh out MMU and cache handling of cheetah-class CPUs. 2008-09-04 19:58:52 +00:00
elf.h Add AT_EXECPATH ELF auxinfo entry type. The value's a_ptr is a pointer 2009-03-17 12:50:16 +00:00
endian.h
exec.h
float.h
floatingpoint.h
fp.h
frame.h
fsr.h
gdb_machdep.h
idprom.h
ieee.h
ieeefp.h
in_cksum.h Revert the addition of "__volatile" to "__asm" done in r180011, since 2008-07-05 15:28:30 +00:00
instr.h
intr_machdep.h Use the interrupt level right below PIL_FAST for executing interrupt 2008-11-19 22:12:32 +00:00
iommureg.h - Allow the front-end to specify that iommu(4) should disable 2008-11-16 19:53:49 +00:00
iommuvar.h - Allow the front-end to specify that iommu(4) should disable 2008-11-16 19:53:49 +00:00
kdb.h Add kdb_cpu_sync_icache(), intended to synchronize instruction 2007-06-09 21:55:17 +00:00
kerneldump.h
ktr.h
limits.h
lsu.h
md_var.h The Sun disk label only uses 16-bit fields for cylinders, heads and 2008-02-11 21:40:22 +00:00
memdev.h Remove the unused major/minor numbers from iodev and memdev. 2008-06-25 07:45:31 +00:00
metadata.h
mutex.h
ofw_machdep.h Modularize the Open Firmware client interface to allow run-time switching 2008-12-20 00:33:10 +00:00
ofw_mem.h
ofw_nexus.h
param.h Add a MD __PCI_BAR_ZERO_VALID which denotes that BARs containing 0 2009-07-21 19:06:39 +00:00
pcb.h
pcpu.h Implement a facility for dynamic per-cpu variables. 2009-06-23 22:42:39 +00:00
pmap.h Add support to the virtual memory system for configuring machine- 2009-07-12 23:31:20 +00:00
pmc_mdep.h Add stubs to unbreak LINT. 2007-12-07 13:45:47 +00:00
proc.h
profile.h
pstate.h
ptrace.h
reg.h
reloc.h
resource.h
runq.h
sc_machdep.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smp.h * Completely Remove the option STOP_NMI from the kernel. This option 2009-08-13 17:09:45 +00:00
stack.h Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
stdarg.h
sysarch.h - Include <machine/utrap.h> so this header doesn't have an MD 2008-04-23 20:38:37 +00:00
tick.h Use the STICK timers only when absolutely necessary, i.e. if a machine 2008-09-20 11:26:13 +00:00
tlb.h - Currently the PMAP code is laid out to let the kernel TSB cover the 2009-01-01 14:01:21 +00:00
trap.h - There's no need to wrap kdb_active and kdb_trap() in #ifdef KDB as 2009-03-19 20:46:51 +00:00
tsb.h
tstate.h
tte.h The physical address space of cheetah-class CPUs has been extended 2008-09-04 19:43:14 +00:00
ucontext.h
upa.h
utrap.h
varargs.h
ver.h - USIII-based machines can consist of CPUs running at different 2008-09-03 17:39:19 +00:00
vm.h Add support to the virtual memory system for configuring machine- 2009-07-12 23:31:20 +00:00
vmparam.h - Use the generally more appropriate PROM base rather than the 2009-02-10 21:48:42 +00:00
watch.h
wstate.h