public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Port 0x80 writes considered harmful
@ 2003-04-16  6:28 Kasper Dupont
  2003-04-16 11:26 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Kasper Dupont @ 2003-04-16  6:28 UTC (permalink / raw)
  To: Linux-Kernel

I have had quite some problems with the parallel port on a
computer of the model "F@MILY net" (details available on
request). While Linux was running there would constantly be
changing output lines on the parallel port.

The problem was observed with different kernel versions and
even a 2.4.19 kernel stripped so much down that it could
merely boot and panic because of missing root filesystem
drivers.

I found that if I from a userspace program using ioperm and
outb blocked interrupts the output would stop. I busylooped
for a few seconds using the TSC, and then reenabled interrupts
while interrupts was disabled there was no activity on the
parallel port.

Then I inserted port 0x80 writes in the loop, and at that
point there would be parallel port output during the entire
execution of the loop.

What would be the best solution to my problem?

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);

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

* Re: [RFC] Port 0x80 writes considered harmful
  2003-04-16  6:28 [RFC] Port 0x80 writes considered harmful Kasper Dupont
@ 2003-04-16 11:26 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2003-04-16 11:26 UTC (permalink / raw)
  To: Kasper Dupont; +Cc: Linux Kernel Mailing List

On Mer, 2003-04-16 at 07:28, Kasper Dupont wrote:
> Then I inserted port 0x80 writes in the loop, and at that
> point there would be parallel port output during the entire
> execution of the loop.
> 
> What would be the best solution to my problem?

If the parallel port is picking up 0x80 writes then either its
at a very weird and very stupid address or its got some kind
of decode problem.



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

end of thread, other threads:[~2003-04-16 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-16  6:28 [RFC] Port 0x80 writes considered harmful Kasper Dupont
2003-04-16 11:26 ` Alan Cox

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