From: Stelian Pop <stelian.pop@fr.alcove.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Martin Dalecki <dalecki@evision-ventures.com>,
Jens Axboe <axboe@suse.de>
Subject: Re: hda: error: DMA in progress..
Date: Mon, 24 Jun 2002 10:54:57 +0200 [thread overview]
Message-ID: <20020624085457.GD16752@come.alcove-fr> (raw)
In-Reply-To: <E17LPqm-0006S3-00@come.alcove-fr>
On Fri, Jun 21, 2002 at 04:57:24PM +0200, Stelian Pop wrote:
> Martin, I have the same problem on my Sony Vaio C1VE,
> Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01), HITACHI_DK23AA-12 disk.
>
> It doesn't even boot, the "DMA in progress error..." appears just
> after having mounted the root partition. 2.5.23 worked on this laptop.
Ok, after poking around the "waiting_for_dma" changes, I found that
the attached patch is solving all my problems, my laptop works again.
BIG FAT WARNING: I have a very limited knowledge in the ide driver
internals, the attached patch could destroy all your data!
Please advice.
Stelian.
===== include/linux/ide.h 1.90 vs edited =====
--- 1.90/include/linux/ide.h Thu Jun 20 13:35:15 2002
+++ edited/include/linux/ide.h Mon Jun 24 10:17:00 2002
@@ -766,10 +766,12 @@
*/
static inline ide_startstop_t udma_init(struct ata_device *drive, struct request *rq)
{
- int ret = drive->channel->udma_init(drive, rq);
- if (ret == ide_started)
- set_bit(IDE_DMA, drive->channel->active);
-
+ int ret;
+
+ set_bit(IDE_DMA, drive->channel->active);
+ ret = drive->channel->udma_init(drive, rq);
+ if (ret != ide_started)
+ clear_bit(IDE_DMA, drive->channel->active);
return ret;
}
--
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
prev parent reply other threads:[~2002-06-24 8:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-21 9:24 hda: error: DMA in progress Jens Axboe
2002-06-21 10:05 ` Martin Dalecki
2002-06-21 10:12 ` Jens Axboe
2002-06-21 10:28 ` Jens Axboe
2002-06-21 10:31 ` Martin Dalecki
2002-06-21 10:35 ` Jens Axboe
2002-06-21 11:10 ` Martin Dalecki
2002-06-21 14:57 ` Stelian Pop
2002-06-24 8:54 ` Stelian Pop [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020624085457.GD16752@come.alcove-fr \
--to=stelian.pop@fr.alcove.com \
--cc=axboe@suse.de \
--cc=dalecki@evision-ventures.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox