Re: Disabling DMA with ICH10?

From: Krzysztof Halasa
Date: Wed Sep 30 2009 - 08:22:01 EST


Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> writes:

> INB foo
>
> CPU -> PCI device read this register
> PCI device -> Disk
> trundle whirr whirrr
> clunk clunk thud
> Disk -> PCI device
> PCI device -> CPU... "5"
>
> INB completes
>
> The INB is not interruptible mid instruction and stalls the CPU for the
> full period of the message passing back and forth across the bus. So PIO
> 0 on PCI stalls the bus for the equivalent of an ISA access, and PIO4
> while a good deal faster is still a very long stall in hard real time
> terms.

Sure :-)

That's why I wrote it's a bad idea. I just wanted to correct the
statement about ISA speed - it's not (necessarily) ISA speed, though
it's slow and uses 100% CPU (core) time. (And PIO on PCI* in general
is not much faster, though usually faster than ISA).
--
Krzysztof Halasa
--
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/