Re: [RFC][PATCH 2/2] PM: Rework handling of interrupts during suspend-resume
From: Eric W. Biederman
Date: Mon Feb 23 2009 - 04:22:49 EST
Ingo Molnar <mingo@xxxxxxx> writes:
> I think this aspect has been well-understood during the
> discussion of this topic and it's just a slightly misleading
> changelog.
As I was a member of that discussion I did not see that.
It took me several passes through the patches to realize
the goal is to allow drivers to be able to sleep while they
are in their late pm shutdown routines.
Why we want this I don't know. But it seems simple enough
to implement, and it makes it harder to get the late pm
suspend routines wrong, which is always good.
> The new suspend code does not rely on truly disabling IRQs on
> the low level. The purpose is to not get IRQs to drivers - which
> might crash/hang/race/misbehave.
Reasonable. I expect one of the problems with drivers getting it
wrong is that the interface is too complex for mortal humans to
understand.
> Still, it might make sense to not just use the ->disable
> sequence but primarily the ->shutdown irqchip method (when it's
> available in the irqchip).
Disable seems fine to me. This is interesting in the context
of all of the irqs that will when masked show up somewhere
else (think boot interrupts).
> While we obviously cannot turn off the PIC that delivers timer
> IRQs at this stage - there's no theoretical reason why the
> suspend sequence couldnt power down some secondary PICs as well
> - in some arch code, or maybe even in the generic driver suspend
> sequence if the device tree is structured carefully enough so
> that the PIC gets turned off last.
If the point is simply to prevent deliver of irqs to the drivers
I don't see the point of anything more than what the patch does
now.
Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/