Re: Can we kill f inb_p, outb_p and other random I/O on port 0x80,in 2.6?

From: Alan Cox
Date: Mon Sep 22 2003 - 19:18:01 EST


On Llu, 2003-09-22 at 19:58, Eric W. Biederman wrote:
> Alan, can you describe a little more what the original delay is needed
> for? I don't see it documented in my 8254 data sheet. The better I
> can understand the problem the better I can write the comments on this
> magic bit of code as I fix it.

If I remember rightly its because it is a 2Mhz part on an 8Mhz bus.

> The oldest machine I have is a 386 MCA system. Any chance of the bug
> showing up there? I'd love to have a test case.

No idea

> Another reason for fixing this is we are killing who knows how much
> I/O bandwidth with this stream of failing writes to port 0x80.

Definitely - and if we can boot up with udelay() using some pessimal
value then we don't even need the branch, just the udelay for the 8 ISA
cycles.

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/