Re: [PATCH] Andre's IDE Patch (1/7)

Andre Hedrick (andre@linuxdiskcert.org)
Sat, 19 Jan 2002 18:05:00 -0800 (PST)


Anton is correct, his the first person to ever sit down and do a peer
review of the code otherwise it would have been found earlier.
The code is correct, but how it interfaces to the kernel is dead wrong,
with the exclusion of DMA.

Data should not be damaged, since a simple pio mount would deadlock cold,
or even faster earlier deadlock would happen durning partition checking,
long before.

The full disclosure is one line was stubbed out/ changed to an undef,
thus disk io was not running PIO taskfile, a simple one line change made
things appear one way and not as reality suggested.

For the most part, the patch cleans up all the other automatic services.
This stablized some minor issues but to specifics are not fully chased and
documented.

It comes down to one thing, I got to deep in the hardware to make it run
perfect and clean and forgot how to make it interface to the kernel.

Regards,

On Sun, 20 Jan 2002, Anton Altaparmakov wrote:

> I think I know what Andre is referring to (Andre please correct me if I am
> wrong) and if I am correct than you are still safe to use the currently
> existing big patch (as long as you do NOT tamper with it in any way - I
> mean that, a one line change is sufficient to destroy your data). If you
> split it up, there is a _very_ high chance broken code will be executed
> which will destroy your data on first time a PIO transfer occurs...
>
> Best regards,
>
> Anton
>
> At 00:58 20/01/02, Rob Radez wrote:
> >On Sat, 19 Jan 2002, Andre Hedrick wrote:
> > > Please don't do that. There is a fatal flaw in those patches we all
> > > observed in 2.5.3pre1. I have 2.4.16 as a possible candidate and
> > > auto-patching for 2.4.17 at the moment.
> >
> >On Wed, 16 Jan 2002, Andre Hedrick wrote:
> > > If the driver falls out of DMA, DEADBOX!!!!
> > > There is a conflict of BIO and ACB and it is very fatal.
> >
> >It was my impression that the problem with 2.5.3-pre1 was a complication
> >that existed only because of bio in 2.5. Oops. I assume this means then
> >that all of us running your ide.2.4.16.12102001.patch should immediately
> >revert so Bad Things don't happen?
>
>
>
>
> --
> "I've not lost my mind. It's backed up on tape somewhere." - Unknown
> --
> Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
> Linux NTFS Maintainer / WWW: http://linux-ntfs.sf.net/
> ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/
>

Andre Hedrick
Linux Disk Certification Project Linux ATA Development

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/