tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: scheduler support to lock user processes out? said:
> : -FreeBSD acquires the big kernel lock before suspending
> :  devices, holding it all the time until after resume.
> For the record, this doesn't work well and is done only because the
> device tree's data structures are protected by Giant. 

You mean, it doesn't work well because it is not a 100%
protection against other code interfering with the
suspend process, or does it have bad side effects?

In my experience, while NetBSD doesn't protect the
device tree either, this was less a problem. I often
got "fp save ipi didn't" panics w/o the biglock, which
might eg. be caused by a CPU reading nonsense from a
suspended device, causing it to spin in a loop.
With the biglock, suspending works perfectly well
on my dual-core.
(I'm not questioning that correct locking everywhere
would be preferrable.)

best regards

Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt

Home | Main Index | Thread Index | Old Index