Re: Totally broken PCI PM calls
From: Benjamin Herrenschmidt
Date: Sun Oct 10 2004 - 23:29:20 EST
On Mon, 2004-10-11 at 14:08, Linus Torvalds wrote:
> On Mon, 11 Oct 2004, Benjamin Herrenschmidt wrote:
> >
> > Disagreed. Sorry, but can you give me a good example ? The drivers still
> > do the broken assumptions of passing directly the state parameter to
> > pci_set_power_state() (or whatever we call this one these days) but this
> > is worked around by defining PM_SUSPEND_MEM to 3 in pm.h.
>
> .. take a look at PM_SUSPEND_DISK for a moment.
>
> If you only care about PM_SUSPEND_MEM, then what's your problem? You get
> the right value already.
How so ? I care about both. We had 2 different problems. One was
PM_SUSPEND_MEM would be defined to 2 which caused dumb drivers to try to
go to D2 instead of D3, and one is that some drivers are still mixing up
PM_SUSPEND_DISK, and I don't think the "fix" in pci-driver.c is any good
for that...
> And if you _do_ care about PM_SUSPEND_DISK, then don't ignore it in the
> discussion. You can't have it both ways.
I'm not ignoring it. I pretend that it's wrong.
> The fact is, my laptop can now (finally) do suspend-to-disk. It never
> could do that before. And yes, it does use radeonfb, so your arguments
> hold no water with me.
But radeonfb ends up suspending the display at a wrong time and you miss
half of the output, which makes any kind of debugging near to
impossible.
> I told you what can done to fix things up. Stop ignoring that reality.
I'm not ignoring that reality and I may well come up with a patch for
after 2.6.9 but I consider the current state of things broken.
Ben.
-
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/