9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] i/o error: wrenwrite
Date: Wed,  3 Mar 2004 11:37:54 +0000	[thread overview]
Message-ID: <9bd008d2b84df83f80ad7c7c35867818@terzarima.net> (raw)
In-Reply-To: <200403031043.i23Ah5dT098972@adat.davidashen.net>

>>Plan9 has a bug that puts it into endless loop on my hardware
>>after reboot without fshalt. I am asking where to look at to
>>fix the bug.

quite right.

if you can recompile a kernel while the system is up, and run that,
you could try adding code to /sys/src/9/pc/sdata.c to
atainterrupt (say) to help diagnose the i/o error more precisely.
"i/o error" isn't much help as you've discovered.
there might already be debugging code that can be switched on.
(i did have a very quick look at it myself but i didn't see
anything just right for this case, but i might easily have missed it.)

round about here, say:
	if(status & Err)
		drive->error = inb(cmdport+Error);

i suspect the error might happen much earlier, before it gets to
generate an interrupt, but that should become apparent if you
see no error output from that point.  just a print() of the status
might do.  i suspect the controller ends up in a state where its
registers don't look right to the driver, or indeed where the
controller needs a bit of a whack from the driver after the power cycling,
in which case it probably can't generate IO at all and it's (perhaps)
timing out the command.  it's interesting that it's apparently only
wrenwrite not wrenread that generates errors (or i missed something).
that in itself might help pinpoint the problem.


  reply	other threads:[~2004-03-03 11:37 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-03  7:57 David Tolpin
2004-03-03  8:06 ` Fco.J.Ballesteros
2004-03-03  8:10   ` David Tolpin
2004-03-03  8:15     ` Fco.J.Ballesteros
2004-03-03  8:22       ` David Tolpin
2004-03-03  8:34         ` Fco.J.Ballesteros
2004-03-03  8:59           ` David Tolpin
2004-03-03  9:51           ` Geoff Collyer
2004-03-03  9:54             ` David Tolpin
2004-03-03 10:39               ` matt
2004-03-03 10:43                 ` David Tolpin
2004-03-03 11:37                   ` Charles Forsyth [this message]
2004-03-03 12:19                     ` David Tolpin
2004-03-03 12:46                   ` boyd, rounin
2004-03-03 12:44                 ` boyd, rounin
2004-03-03 20:35             ` splite
2004-03-03 21:25               ` Geoff Collyer
2004-03-03 21:42                 ` splite
2004-03-03 22:48                   ` boyd, rounin
2004-03-03  9:55     ` Bruce Ellis
2004-03-03 10:00       ` David Tolpin
2004-03-03 10:47         ` Richard Miller
2004-03-03 11:19           ` David Tolpin
2004-03-03 11:25             ` lucio
2004-03-03 11:34               ` David Tolpin
2004-03-03 20:11                 ` splite
2004-03-03 20:25                   ` David Tolpin
2004-03-03 13:41             ` jmk
2004-03-03 13:45               ` David Tolpin
2004-03-03 13:58                 ` C H Forsyth
2004-03-03 13:58                   ` lucio
2004-03-03 14:07                     ` C H Forsyth
2004-03-03 14:04                       ` David Tolpin
2004-03-03 14:14                         ` lucio
2004-03-03 14:23                           ` jmk
2004-03-03 14:24                             ` David Tolpin
2004-03-03 21:34                             ` Exact Eios " David Tolpin
2004-03-03 14:41                         ` Derek Fawcus
2004-03-03  9:15   ` Richard Miller
2004-03-03  9:18     ` David Tolpin
2004-03-03 12:31 ` boyd, rounin

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=9bd008d2b84df83f80ad7c7c35867818@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).