public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Can we kill f inb_p, outb_p and other random I/O on port 0x80, in 2.6?
@ 2003-09-22  0:27 Eric W. Biederman
  2003-09-22 11:22 ` Alan Cox
  0 siblings, 1 reply; 26+ messages in thread
From: Eric W. Biederman @ 2003-09-22  0:27 UTC (permalink / raw)
  To: linux-kernel



inb_p and outb_p issue outb's to port 0x80 to achieve a short delay.
In a reasonable system there is nothing listening to port 0x80 
or there is a post card, but there are no other devices there.

On a modern system with no post card the outb travels it's
way down to the LPC bus, and the outb is terminated by an abort
because nothing is listening.

So far so good.  Except for the fact that recent high volume
ROM chips get confused when they see an abort on the LPC
bus.  Making it problematic to update the ROM from under Linux.

I don't know if there are other buggy LPC devices or not.  But
I do know that it is generally bad form do I/O to a random port.

So can we gradually kill inb_p, outb_p in 2.6?  An the other
miscellaneous users of I/O port 0x80 for I/O delays?

Or possibly rewriting outb_p to look something like:
outb(); udelay(200);  or whatever the appropriate delay is?

When debugging this I modified arch/i386/io.h to read:
#define  __SLOW_DOWN_IO__ ""
Which totally removed the delay and the system ran fine.

Eric

^ permalink raw reply	[flat|nested] 26+ messages in thread
[parent not found: <20030922153651.16497.qmail@science.horizon.com>]
* Re: Can we kill f inb_p, outb_p and other random I/O on port 0x80, in 2.6?
@ 2003-09-22 20:03 John Bradford
  2003-09-22 21:37 ` Jamie Lokier
  0 siblings, 1 reply; 26+ messages in thread
From: John Bradford @ 2003-09-22 20:03 UTC (permalink / raw)
  To: arjanv, ebiederm; +Cc: alan, jamie, linux-kernel

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

Assuming we do stop using I/O to port 0x80 for timing purposes, would
it be worth adding code to make existing POST cards double as a poor
man's front panel display once the kernel has booted?

John.

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2003-09-24 17:44 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-22  0:27 Can we kill f inb_p, outb_p and other random I/O on port 0x80, in 2.6? Eric W. Biederman
2003-09-22 11:22 ` Alan Cox
2003-09-22 16:26   ` Jamie Lokier
2003-09-22 16:33     ` Alan Cox
2003-09-22 17:11       ` Arjan van de Ven
2003-09-22 18:28         ` Jamie Lokier
2003-09-22 19:09           ` Eric W. Biederman
2003-09-22 19:27           ` Arjan van de Ven
2003-09-22 21:46             ` Jamie Lokier
2003-09-23 18:17           ` bill davidsen
2003-09-22 18:58         ` Eric W. Biederman
2003-09-22 19:19           ` Jamie Lokier
2003-09-23  0:09           ` Alan Cox
2003-09-23 18:20             ` bill davidsen
2003-09-22 19:00       ` Jamie Lokier
2003-09-22 20:05         ` Eric W. Biederman
2003-09-23 18:31           ` bill davidsen
2003-09-23  0:13         ` Alan Cox
     [not found] <20030922153651.16497.qmail@science.horizon.com>
2003-09-22 18:35 ` Eric W. Biederman
2003-09-22 21:54   ` Jamie Lokier
2003-09-23 18:41     ` bill davidsen
2003-09-24 17:43       ` Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
2003-09-22 20:03 John Bradford
2003-09-22 21:37 ` Jamie Lokier
2003-09-22 21:42   ` Arjan van de Ven
2003-09-23  0:16   ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox