freebsd-dev/sys/sparc64
Scott Long 8611774e5e Extend critical section coverage in the low-level interrupt handlers to
include the ithread scheduling step.  Without this, a preemption might
occur in between the interrupt getting masked and the ithread getting
scheduled.  Since the interrupt handler runs in the context of curthread,
the scheudler might see it as having a such a low priority on a busy system
that it doesn't get to run for a _long_ time, leaving the interrupt stranded
in a disabled state.  The only way that the preemption can happen is by
a fast/filter handler triggering a schduling event earlier in the handler,
so this problem can only happen for cases where an interrupt is being
shared by both a fast/filter handler and an ithread handler.  Unfortunately,
it seems to be common for this sharing to happen with network and USB
devices, for example.  This fixes many of the mysterious TCP session
timeouts and NIC watchdogs that were being reported.  Many thanks to Sam
Lefler for getting to the bottom of this problem.

Reviewed by: jhb, jeff, silby
2007-11-21 04:03:51 +00:00
..
central Rototill the sparc64 nexus(4) (actually this brings in the code the 2007-03-07 21:13:51 +00:00
compile
conf Let sunkbd(4) emulate an AT keyboard by default. 2007-11-18 18:11:16 +00:00
ebus Set the rid for any resource obtained from rman_reserve_resource. 2006-04-20 04:20:41 +00:00
fhc o Revamp the sparc64 interrupt code in order to be able to interface 2007-09-06 19:16:30 +00:00
include Change the management of cached pages (PQ_CACHE) in two fundamental 2007-09-25 06:25:06 +00:00
isa - Make failure to route a ISA interrupt non fatal. Apparently the 2007-10-28 22:08:37 +00:00
pci Make the PCI code aware of PCI domains (aka PCI segments) so we can 2007-09-30 11:05:18 +00:00
sbus o Revamp the sparc64 interrupt code in order to be able to interface 2007-09-06 19:16:30 +00:00
sparc64 Extend critical section coverage in the low-level interrupt handlers to 2007-11-21 04:03:51 +00:00