* newbie Digital Unix PCI device driver question
@ 1997-03-21 5:00 Eric LaPresto
0 siblings, 0 replies; only message in thread
From: Eric LaPresto @ 1997-03-21 5:00 UTC (permalink / raw)
I'm relatively new at writing device drivers for Digital
Unix, so please pardon any stupid questions on my part :-)
I've got an Alpha 500/333 with a PCI bus. A new device
developed for us is basically a 1MB memory controller,
no DMA capability, no "burst" mode capability (i.e., the
prefetch bit is not set). The barx register lists the
io_handle_t address as being a memory-mapping rather than
io-mapping. BTW, OS is Digital Unix 4.0.
I've successfully implemented a driver to perform reads
and writes, but the performance is dismal. On 1 MB transfers,
my read() speeds are about 7 MB/sec. The hardware developer,
working on a PC (DOS/Win95) could get approximately 30MB/sec.
Writes for me are about twice as fast.
Is there any way to improve performance????
I'm currently using the memory transfer scheme of
1) copy data from device memory to kernel buffer using
io_copyin(),
2) copy data from kernel buffer to user's buffer using
uiomove().
uiomove() states that it is "optimized" for 32bit transfers.
Nothing said about io_copyxx.
Thanks in advance,
Eric
---------------------------+--------------------------
Eric LaPresto Systems Analyst
lapresto@surgery.ccf.org Dept. of Neurosurgery/CAMIS
(216) 445-9368 Cleveland Clinic Foundation
(216) 444-4795 FAX Cleveland, OH 44195
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-03-21 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-21 5:00 newbie Digital Unix PCI device driver question Eric LaPresto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox