public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@redhat.com>
To: andre@linux-ide.org (Andre Hedrick)
Cc: rusty@rustcorp.com.au (Rusty Russell), alan@redhat.com (Alan Cox),
	linux-kernel@vger.kernel.org, vojtech@suse.cz (Vojtech Pavlik)
Subject: Re: [PATCH] Experimental IDE oops dumper v0.1
Date: Tue, 17 Sep 2002 05:57:21 -0400 (EDT)	[thread overview]
Message-ID: <200209170957.g8H9vMw17037@devserv.devel.redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10209170028370.11597-100000@master.linux-ide.org> from "Andre Hedrick" at Sep 17, 2002 12:42:56 AM

> > 	if (ioctl(devfd, HDIO_GET_IDENTITY, &hdid) < 0) {
> > 		perror("Getting identity of drive");
> > 		exit(1);
> > 	}
> 
> Uses and interrupt and nIEN = 0, BUG() for polling

That data can be captured early, in fact if you trust the data structures
a little its potentially still there

> > > Be careful here - one or two drives get nIEN backwards, you might just
> > > want to turn off interrupts and be done with it
> > 
> > Hmm... I have interrupts disabled so I don't really care: should be OK
> > I think.  Or were you thinking of something else?
> 
> Kernel interrupts are not Device.

Should be fine, except as Andre notes you have to poll, but for the simple
commands I don't think thats exactly a killer.

> Depends of if you want hard or soft reset and if you care about signature
> decoding for redetecting presence of attached devices.

I'd guess not. The disk was there, it needs to be in some kind of working
form so resetting it all and pretending to be DOS should do ?

Alan

  reply	other threads:[~2002-09-17  9:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-16 11:52 [PATCH] Experimental IDE oops dumper v0.1 Rusty Russell
2002-09-16 12:18 ` Alan Cox
2002-09-16 12:39   ` jbradford
2002-09-16  9:43     ` Rob Landley
2002-09-16 15:14       ` jbradford
2002-09-16 19:55       ` Vojtech Pavlik
2002-09-16 19:52   ` Vojtech Pavlik
2002-09-16 22:22     ` Alan Cox
2002-09-17  0:49   ` Rusty Russell
2002-09-17  7:42     ` Andre Hedrick
2002-09-17  9:57       ` Alan Cox [this message]
2002-09-18  4:19       ` Rusty Russell
2002-09-18  6:00         ` Andre Hedrick

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=200209170957.g8H9vMw17037@devserv.devel.redhat.com \
    --to=alan@redhat.com \
    --cc=andre@linux-ide.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=vojtech@suse.cz \
    /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