From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,257ab661235660ff X-Google-Attributes: gid1164f8,public From: Fred Kleinsorge Subject: Re: Question on Alphastation PCI interface Date: 1996/11/22 Message-ID: <3295AC24.1D8934AE@star.enet.dec.com>#1/1 X-Deja-AN: 198100676 references: content-type: text/plain; charset=us-ascii organization: OpenVMS Engineering mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 2.02b6 (X11; I; DEC 3000 - M700 ) Jun Makino wrote: > > Hi all, > > I have a question concerning the behavior of the PCI inteface of the > Alphastation 600. It seems the bandwidth of the Programmed I/O read is > much lower than what is described in the document, while that of PIO > write operation is okay. > snip > The reason for the low read bandwidth is that the PCI interface of the > Alphastation 600 does not generate the PCI read burst with more than 8 > bytes, while the numbers in the DTJ article clearly indicate that the > read burst should take place when possible. For PIO write, it > generates PCI burst write, as expected. > > I would appreciate any information which might be related to this > difference. > I just saw someone else asking the same question internally... This may have been to answer your question. The answer tends to be - you need the compiler to generate 4 sequential quadword reads - i.e. for (i = 0; i < 256; i+4) { data[i] = *(((long *)mptr)+i); /* read */ data[i+1] = *(((long *)mptr)+i+1); /* read */ data[i+2] = *(((long *)mptr)+i+2); /* read */ data[i+3] = *(((long *)mptr)+i+3); /* read */ } check the generated code. You may need to do a hand coded ASM to get the exact code sequences you want. What you don't want it to do is ldq and then stq to the destination. You want it to do 4 ldq's to registers, and then 4 stq's to the destination.