Re: [PATCH] IDE: Fix Power Management request race on resume

From: Benjamin Herrenschmidt
Date: Wed Sep 10 2003 - 04:32:06 EST


On Wed, 2003-09-10 at 11:25, cb-lkml@xxxxxxxxxxxxxxxxx wrote:
> On Wed, Sep 10, 2003 at 11:16:15AM +0200, Benjamin Herrenschmidt wrote:
> > On Wed, 2003-09-10 at 11:04, cb-lkml@xxxxxxxxxxxxxxxxx wrote:
> > > I applied this patch to 2.6.0-test5 and still have this problem:
> > >
> > > http://marc.theaimsgroup.com/?l=linux-kernel&m=106218353005043&w=2
> >
> > There are a couple of other fixes pending though I don't thing
> > they are related to your problem. Do you have a slave drive on
> > this channel ? What driver are you using for the host controller ?
> > Does it have a dma_check() function ?
>
> It's a laptop, so there's no slave drive.

Some laptops have the CD/DVD as a slave
>
> The host controller is a PIIX4, using CONFIG_BLK_DEV_PIIX. (Presumably
> drivers/ide/pci/piix.c)
>
> $ grep dma_check piix.c
> hwif->ide_dma_check = &piix_config_drive_xfer_rate;

Can you put some printk in there to verify it's properly called on
wakeup and that it actually does something ?

Note that problem may be unrelated to the IDE driver, it could also
be some APIC problem messing with interrupts...

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/