]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
As it turns out r227960 may still be insufficient with PREEMPTION
authormarius <marius@FreeBSD.org>
Sat, 28 Jan 2012 22:42:33 +0000 (22:42 +0000)
committermarius <marius@FreeBSD.org>
Sat, 28 Jan 2012 22:42:33 +0000 (22:42 +0000)
commit16da82cb91108c4e008daff98e810a876f3c3b94
tree774b0c51e4edc1c0511e3d1a4f80961d2fa8d9bd
parent921264fd36b524146d6421b307894396ad4a8c7a
As it turns out r227960 may still be insufficient with PREEMPTION
so try harder to get the CDMA sync interrupt delivered and also in
a more efficient way:
- wrap the whole process of sending and receiving the CDMA sync
  interrupt in a critical section so we don't get preempted,
- send the CDMA sync interrupt to the CPU that is actually waiting
  for it to happen so we don't take a detour via another CPU,
- instead of waiting for up to 15 seconds for the interrupt to
  trigger try the whole process for up to 15 times using a one
  second timeout (the code was also changed to just ignore belated
  interrupts of a previous tries should they appear).

According to testing done by Peter Jeremy with the debugging also
added as part of this commit the first two changes apparently are
sufficient to now properly get the CDMA sync interrupts delivered
at the first try though.
sys/sparc64/pci/schizo.c
sys/sparc64/pci/schizovar.h