From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,b3bc575461bc75c5 X-Google-Attributes: gid10f8a1,public X-Google-Thread: fee84,b3bc575461bc75c5 X-Google-Attributes: gidfee84,public From: Fred Zwarts Subject: Re: AXPVME interrupt latency time Date: 1997/07/30 Message-ID: <5rmr1v$j0p$1@info.service.rug.nl>#1/1 X-Deja-AN: 260475891 References: <5rkmbu$ph1@sharon.cilea.it> Organization: Rijksuniversiteit Groningen Newsgroups: comp.unix.osf.osf1,vmsnet.alpha Unknown writes: > We are trying to test the VME I/F of an AXPVME 230 sbc. > In order to do this we followed the DEC documentation > available with Digital UNIX 4.0b. The documents used are: > - Writing Device Drivers: Tutorial (AA-PUBVD-TE); > - Writing VMEbus Device Drivers (AA-Q0R7F-TE), June 1997. I don't know if I am the right person to reply, but since your previous post did not get any response, I'll try anyway. > Following the examples provided in that documents and the > procedure to obtain either the dynamic or the static installation > and using as interrupt generator a Motorola CPU (68020 + interrupt > generator + timer PCC chip based), we observed the following behaviour: > > a) with Digital UNIX it is not possible to use a simple interfacing > mechanism different from a complete device driver; it is impossible > to call a claim_vector mechanism or to associate an interrupt vector > to a signal. > Is this true? I don't know. I have little experience with Unix. > b) The latency time observed has been 562 uS. Repeating the test > the maximum latency time observed has been 1 mS. > Is there a way to lower this interval time? Yes. Use a real time operating system. We use VxWorks and we observe latency times at least a factor of ten less on a similar AXPvme system. > c) The memory of the AXPVME is mapped onto the VMEbus as blocks having > 8 kB size even if the user requires less. This means that the user, > after the buffer allocation, does not have to use the unused part of > the allocated buffer. Example: current buffer size is 1 kB, > required data transfer 256 bytes, the DMA can transfer up to 8 kB > and can corrupt the data from 256 to 1 kB. > Is this true? I don't know if I understand your problem. Yes, if you need a 1kB buffer, 7kB is not used. This is a hardware limitation. Yes, if you setup your DMA incorrectly, you can corrupt data. But why would you transfer 8 kB if you need only 256 bytes? The hardware allows smaller transfers. Is this a Unix limitation? > Thanks in advance. > > Please e-mail to: > villani.g@laben.it Fred Zwarts KVI Internet: F.Zwarts@KVI.nl Phone: (+31)50-3633619 Telefax: (+31)50-3634003 X400: C=nl;ADMD=400net;PRMD=surf;O=KVI;S=Zwarts;G=Fred Zernikelaan 25, 9747 AA Groningen, The Netherlands