public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "rain.wang" <rain.wang@mic.com.tw>
To: Alan Cox <alan@redhat.com>, Jens Axboe <axboe@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux 2.5.67-ac2: ide reset issue
Date: Fri, 18 Apr 2003 13:59:28 +0800	[thread overview]
Message-ID: <3E9F9440.7F7CBDC8@mic.com.tw> (raw)
In-Reply-To: 200304172319.h3HNJXJ31933@devserv.devel.redhat.com

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

Hi,
    I tested 2.5.67-ac2 with two continuous drive reset call,
dmesged out oops messages as below. system didn't crash
like under 2.4.21-pre1-ac1, but that race still exist.
    oops message:

hda: DMA disabled
------------[ cut here ]------------
kernel BUG at drivers/ide/ide.c:1603!
invalid operand: 0000 [#1]
CPU:    0
EIP:    0060:[<c0216ac1>]    Not tainted
EFLAGS: 00010082
EIP is at generic_ide_ioctl+0x471/0x860
eax: c7e8ee60   ebx: 00000202   ecx: c038be8c   edx: c0211d10
esi: c02ba3cb   edi: c038be8c   ebp: c781df58   esp: c781df0c
ds: 007b   es: 007b   ss: 0068
Process hdparm (pid: 203, threadinfo=c781c000 task=c7bd06a0)
Stack: c7dc21c0 c122f3e0 08049cf4 00000000 00000000 08049cf4 c122f3e0 c7dc6000
       3e9f6c00 00030002
Call Trace:
 [<c0201af2>] blkdev_ioctl+0x82/0x3cc
 [<c0151d41>] sys_ioctl+0x81/0x220
 [<c0142d13>] sys_write+0x33/0x40
 [<c01090e3>] syscall_call+0x7/0xb

Code: 0f 0b 43 06 0a a3 2b c0 c7 40 08 01 00 00 00 53 9d 57 e8 a8
 ide0: reset: success

    I don't know if there's enough reason to change reset semantics
now to wait for completion, so that the next call be free of race.
and  I once had a simpler fix to let it delay another 50ms, that works
on my box but seems not a thorough one. does it help?

Regards
rain.w

[-- Attachment #2: ide.c.diff.3 --]
[-- Type: text/plain, Size: 354 bytes --]

--- /usr/src/linux-2.5.67-ac2/drivers/ide/ide.c	Fri Apr 18 10:11:01 2003
+++ ide.c	Fri Apr 18 11:14:26 2003
@@ -1608,6 +1608,10 @@
 			HWGROUP(drive)->busy = 1;
 			spin_unlock_irqrestore(&ide_lock, flags);
 			(void) ide_do_reset(drive);
+
+			/* wait for another 50ms */
+			mdelay(50);
+
 			if (drive->suspend_reset) {
 /*
  *				APM WAKE UP todo !!

  reply	other threads:[~2003-04-18  5:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-17 23:19 Linux 2.5.67-ac2 Alan Cox
2003-04-18  5:59 ` rain.wang [this message]
2003-04-18 11:46   ` Linux 2.5.67-ac2: ide reset issue Alan Cox
2003-04-19  7:38     ` rain.wang
2003-04-18  6:32 ` Linux 2.5.67-ac2 Rudmer van Dijk
2003-04-18 18:51   ` Bill Davidsen

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=3E9F9440.7F7CBDC8@mic.com.tw \
    --to=rain.wang@mic.com.tw \
    --cc=alan@redhat.com \
    --cc=axboe@suse.de \
    --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