From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,a26719078e81005d,start X-Google-Attributes: gid1164f8,public From: lapresto@surgery.ccf.org (Eric LaPresto) Subject: newbie Digital Unix PCI device driver question Date: 1997/03/21 Message-ID: <5gue6u$dmk@slider.bme.ri.ccf.org>#1/1 X-Deja-AN: 228237920 Organization: Cleveland Clinic Foundation Newsgroups: comp.sys.dec 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