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>
Cc: Jens Axboe <axboe@suse.de>, linux-kernel@vger.kernel.org
Subject: Re: Linux 2.5.67-ac2: ide reset issue
Date: Sat, 19 Apr 2003 15:38:17 +0800	[thread overview]
Message-ID: <3EA0FCE9.5FC04124@mic.com.tw> (raw)
In-Reply-To: 200304181146.h3IBkOx06987@devserv.devel.redhat.com

Alan Cox wrote:

> >     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?
>
> BWGROUP(drive)->busy should never reach zero until the reset is
> done. The 50mS miught be enough that this occurs, as might waiting
> for HWGROUP(drive)->busy hitting 0. I don't yet understand why it
> matters, and to fix it properly I have to figure that out.
>
> If you need reliable reset for something like a test harness, or
> IDE drive tester its a usable workaround, but I need to fix it
> properly (eventually)
>

I agree. I found the reason seems some strange there. reset call set
a 50ms's wait handler and return to user at once, when succeed in
the first poll and handler return, there's always about another 50ms
needed to cleanup the path(I once tested values lager and smaller
than 50ms and found about 48ms needed at least on my box).  so
the following call would race it if there's no such a delay, although
there's actually few chances to do continuous reset call, I thought.

> > +                     /* wait for another 50ms */
> > +                     mdelay(50);
>
> In your test set is HWGROUP(drive)->busy always zero after the
> mdelay ?

I think it is.


  reply	other threads:[~2003-04-19  7:26 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 ` Linux 2.5.67-ac2: ide reset issue rain.wang
2003-04-18 11:46   ` Alan Cox
2003-04-19  7:38     ` rain.wang [this message]
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=3EA0FCE9.5FC04124@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