Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lapresto@surgery.ccf.org (Eric LaPresto)
Subject: newbie Digital Unix PCI device driver question
Date: 1997/03/21	[thread overview]
Message-ID: <5gue6u$dmk@slider.bme.ri.ccf.org> (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



                 reply	other threads:[~1997-03-21  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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