Cc: Yinghai Lu <yinghai.lu@...>, Andrew Morton <akpm@...>, LKML <linux-kernel@...>, Pavel Machek <pavel@...>, Thomas Gleixner <tglx@...>, H. Anvin <hpa@...>, Arjan van de Ven <arjan@...>, Greg Kroah-Hartman <gregkh@...>
thanks Rafael for bisecting this!
This was a rather nasty problem - and i'm wondering what else we could
do to harden our hw resource management code. I'm wondering, is there
any particular reason why clearly broken resource setup is not detected
somewhere, automatically, and WARN_ON()-ed about?
for example, in the scheduler code we used to have similar bug patterns
again and again: architecture code set up scheduler domains incorrectly
and broke the system in subtle ways. So we added sched_domain_debug()
which is active under CONFIG_SCHED_DEBUG=y and does a few sanity checks
and complains if something is wrong. This caught quite a few bugs
whenever the sched-domains code was modified.
Ingo
--