freebsd-skq/sys/sun4v/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
..
cddl add declaration for new helper function 2006-12-18 07:25:26 +00:00
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h
asi.h Work around Cheetah+ erratum 34 (USIII+ erratum #10) by relocating 2008-09-10 20:07:08 +00:00
asm.h In contrast to the non-obvious and flexible nature of the optimized bcopy in t1_copy.S (which 2006-11-23 02:25:16 +00:00
asmacros.h add trap tracing to cpu mondo handler and tsb miss handler 2006-11-15 03:16:30 +00:00
atomic.h - bump __FreeBSD version to reflect added buf_ring, memory barriers, 2008-11-22 05:55:56 +00:00
bus_dma.h
bus_private.h
bus.h - Rename UPA_BUS_SPACE to NEXUS_BUS_SPACE; besides an UPA bus, nexus(4) 2007-01-18 18:32:26 +00:00
ccr.h
clock.h Remove two variables which are handled MI now. 2008-03-26 20:28:52 +00:00
cpu.h Remove old sysctl stuff which is long gone in other arch's. 2008-03-26 13:03:51 +00:00
cpufunc.h MUTEX_PROFILING has been generalized to LOCK_PROFILING. We now profile 2006-11-11 03:18:07 +00:00
db_machdep.h
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 In the replacement text of the __bswapN_const() macros encapsulate the 2006-10-30 21:50:11 +00:00
exec.h
float.h
floatingpoint.h
fp.h
frame.h Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
fsr.h Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
gdb_machdep.h
hv_api.h Declare hypervisor system initiated reset function 2006-11-26 22:47:52 +00:00
hv_pcivar.h
hviommu.h
hypervisorvar.h add interrupt cookie hypervisor functions 2006-11-26 04:37:49 +00:00
idprom.h
ieee.h
ieeefp.h
in_cksum.h Given that sun4u uses sparc64/sparc64/in_cksum.c, use the sparc64 2008-06-25 21:03:26 +00:00
instr.h
intr_machdep.h o break newbus api: add a new argument of type driver_filter_t to 2007-02-23 12:19:07 +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
mdesc_bus_subr.h
mdesc_bus.h
memdev.h Remove the unused major/minor numbers from iodev and memdev. 2008-06-25 07:45:31 +00:00
metadata.h
mmu.h
mutex.h
nexusvar.h
ofw_machdep.h Missed the sun4v update to ofw_machdep.h in the OFW modularization commit. 2008-12-20 15:11:00 +00:00
ofw_mem.h
ofw_nexus.h
param.h Cleanup ALIGNED_POINTER: 2009-07-05 17:45:48 +00:00
pcb.h Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
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 - Add bits for userland profiling. For sun4u this is compile-tested only. 2007-05-11 23:43:55 +00:00
pstate.h
ptrace.h
reg.h
reloc.h Remove 3rd clause, renumber, ok per email 2007-01-12 07:26:21 +00:00
resource.h
runq.h
sc_machdep.h
setjmp.h Remove 3rd clause, renumber, ok per email 2007-01-12 07:26:21 +00:00
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 __builtin_stdarg_start was renamed to __builtin_va_start a long 2007-11-19 07:34:57 +00:00
sun4v_cpufunc.h - Comment most of the remaining hypercalls in hcall.S 2006-11-24 05:27:49 +00:00
sysarch.h
tick.h
tlb.h
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 - separate out rounding memory ranges to 4M boundaries from OFW memory allocation bug workaround 2006-12-04 19:35:40 +00:00
tstate.h
tte_hash.h add support for resizing the the tte_hash of multi-threaded processes 2006-11-22 04:33:34 +00:00
tte.h - Reimplement {d,i}tlb_enter() and {d,i}tlb_va_to_pa() in C. There's 2008-08-07 22:46:25 +00:00
ucontext.h
upa.h Given that these sparc64 (as in sun4u) specific headers only exist 2007-05-20 13:19:32 +00:00
utrap.h Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
varargs.h
ver.h Given that these sparc64 (as in sun4u) specific headers only exist 2007-05-20 13:19:32 +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-11 07:50:07 +00:00
watch.h
wstate.h