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

Alan Cox
2002-09-17T09:52:28Z

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