Re: [linux-kernel] Re: [PATCH] x86: provide a DMI based port 0x80I/O delay override.

From: Alan Cox
Date: Wed Jan 16 2008 - 09:58:32 EST


On Thu, 17 Jan 2008 01:06:24 +1030
David Newall <davidn@xxxxxxxxxxxxxxx> wrote:

> This use of port 80 (or insert some other random number) is a croc of
> hackery of the most inexperienced kind.

Wrong. It's a careful designed solution used by all sorts of code for
over 15 years.

The task to be performed is to delay for some period

Wrong, it is for some number of bus clocks which is why I/O cycles are
used

> that an OUT is used because you don't know how long the delay should be
> on any specific machine. What rubbish.

Wrong again.

> I won't even mention the many instances of these delays where no delay
> is what properly is needed. Performance? Who cares about performance?

Correctness, who needs correctness ?

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