Re: [PATCH] Experimental IDE oops dumper v0.1

From: Alan Cox (
Date: Tue Sep 17 2002 - 04:57:21 EST

> > 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 ?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:19 EST