[parisc-linux] Some Questions...
Grant Grundler
grundler@puffin.external.hp.com
Sun, 04 Nov 2001 23:59:08 -0700
Daniel Engstrom wrote:
> 3) String I/O implementation
> The string I/O functions (insl/outsl and friends) are implemented in
> terms of inl/outl and so on. This means that the HPA switch code in
> arch/parisc/kernel/pci.c is executed once per word in the transfer.
> If the pci_hba_data struct had entries for these the test would have
> been done outside of the loop.
It doesn't matter. The cost (in cycles) to perform the read
far exceeds any savings in cpu cycles getting rid of the switch
will bring. I'm talking 500 or so cycles per IO port space read
on a 400Mhz PA8500.
Of course, you could measure inb() precisely with CR16 on *your* box
(using EISA) since YMMV and I haven't done this in a while.
grant