Re: max throughput achievable with outb()

2009-09-30 Thread Peter Teoh
On Wed, Sep 30, 2009 at 6:01 AM, Michal Ludvig wrote: > Peter Teoh wrote: >> On Wed, Sep 30, 2009 at 11:47 AM, Michal Ludvig wrote: >>> Hi all, >>> >>> I've got a digital IO card hanging off an ISA bus in PC/104 system. I'm >>> pushing data packets to it, usually 16-32 bytes per transfer, 100x pe

Re: max throughput achievable with outb()

2009-09-30 Thread Peter Teoh
n Wed, Sep 30, 2009 at 3:26 AM, Thomas Petazzoni wrote: > Le Wed, 30 Sep 2009 16:47:33 +1300, > Michal Ludvig a écrit : > >> I've got two questions: >> 1) Can I speed it up somehow? >> 2) Apparently it's quite a lot of time between calling outb() and its >> return. Can the kernel do something els

Re: max throughput achievable with outb()

2009-09-30 Thread Peter Teoh
On Wed, Sep 30, 2009 at 3:18 AM, Thomas Petazzoni wrote: > Le Wed, 30 Sep 2009 13:50:22 +0800, > Peter Teoh a écrit : > >> generally, port i/o programming is always slower than mmio, why don't >> u consider that option? > > Well, it's rarely an option. Either the device is programmed through > PI

Re: max throughput achievable with outb()

2009-09-30 Thread Michal Ludvig
Peter Teoh wrote: > On Wed, Sep 30, 2009 at 11:47 AM, Michal Ludvig wrote: >> Hi all, >> >> I've got a digital IO card hanging off an ISA bus in PC/104 system. I'm >> pushing data packets to it, usually 16-32 bytes per transfer, 100x per >> second. >> >> Apparently ISA bus clock is supposed to run

Re: max throughput achievable with outb()

2009-09-30 Thread Thomas Petazzoni
Le Wed, 30 Sep 2009 16:47:33 +1300, Michal Ludvig a écrit : > I've got two questions: > 1) Can I speed it up somehow? > 2) Apparently it's quite a lot of time between calling outb() and its > return. Can the kernel do something else in the meantime, like > scheduling another process or handling i

Re: max throughput achievable with outb()

2009-09-30 Thread Thomas Petazzoni
Le Wed, 30 Sep 2009 13:50:22 +0800, Peter Teoh a écrit : > generally, port i/o programming is always slower than mmio, why don't > u consider that option? Well, it's rarely an option. Either the device is programmed through PIO *or* through MMIO. And I suspect that most ISA devices can only be p

Re: max throughput achievable with outb()

2009-09-29 Thread Peter Teoh
On Wed, Sep 30, 2009 at 11:47 AM, Michal Ludvig wrote: > Hi all, > > I've got a digital IO card hanging off an ISA bus in PC/104 system. I'm > pushing data packets to it, usually 16-32 bytes per transfer, 100x per > second. > > Apparently ISA bus clock is supposed to run at 8MHz and I expected to

max throughput achievable with outb()

2009-09-29 Thread Michal Ludvig
Hi all, I've got a digital IO card hanging off an ISA bus in PC/104 system. I'm pushing data packets to it, usually 16-32 bytes per transfer, 100x per second. Apparently ISA bus clock is supposed to run at 8MHz and I expected to achieve somewhat close-to-that performance with my driver. To test t