freebsd-nq/sys/amd64
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
..
acpica Handle CPUs with APIC IDs higher than 32 (at least one IBM server uses 2007-05-08 22:01:04 +00:00
amd64 Extend critical section coverage in the low-level interrupt handlers to 2007-11-21 04:03:51 +00:00
compile
conf Link wpi(4) into the build. 2007-11-08 22:09:37 +00:00
ia32 Optimize vmmeter locking. 2007-06-10 21:59:14 +00:00
include - Add constants for the different memory types in the SMAP table. 2007-10-28 21:23:49 +00:00
isa Split /dev/nvram driver out of isa/clock.c for i386 and amd64. I have not 2007-10-26 03:23:54 +00:00
linux32 Fill in cr2 in the signal context from ksi->ksi_addr. 2007-09-20 13:46:26 +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
Makefile