Re: [PATCH] 'ata_dmasetup: transfer active on this device!' problem on resume
Hi, >>> Thu, 05 Sep 2002 11:40:39 +0900 (JST), >>> Mitsuru IWASAKI <[EMAIL PROTECTED]> said: iwasaki> My patches will do those things during suspend time; iwasaki> - wait for DMA transfer completion if it is on the way. iwasaki> - cancel new requests (yes, it's possible even during suspend iwasaki>time) for ATA disks and remain them in ATA queue. Oh, it's great. My problem was gone. Thanks! -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan [EMAIL PROTECTED] [EMAIL PROTECTED] ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: [PATCH] 'ata_dmasetup: transfer active on this device!'problem on resume
Sorry, typo... > @@ -674,6 +712,20 @@ > ad_start(&ch->device[MASTER]); > if (ch->devices & (ATA_ATA_SLAVE) && ch->device[SLAVE].driver) > ad_start(&ch->device[SLAVE]); > +} > +if (ch->devices & (ATA_ATA_MASTER) && ch->device[MASTER].driver) { > + if (ch->device[MASTER].suspended && ch->device[MASTER].mode >= ATA_DMA) { > + printf("%s: going to suspend, ignoring.\n", __func__); > + splx(s); > + return; > + } > +} > +if (ch->devices & (ATA_ATA_SLAVE) && ch->device[SLAVE].driver) { > + if (ch->device[SLAVE].suspended && ch->device[MASTER].mode >= ATA_DMA) { ^^^ SLAVE Thanks To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message