From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9a2ad83fe3431aa3 X-Google-Attributes: gid1164f8,public From: ron@topaz.sensor.com (Ron Natalie) Subject: Re: QBus Question: C/D slots Date: 1995/08/18 Message-ID: <4124r8$rsv@topaz.sensor.com>#1/1 X-Deja-AN: 108418443 distribution: world references: <40qmoi$l1q@explorer.csc.com> <40thqr$i1d@nntpd.lkg.dec.com> <40u0ad$iql@topaz.sensor.com> <41077c$99p@nntpd.lkg.dec.com> organization: Sensor Systems newsgroups: comp.sys.dec Stephen Hoffman (hoffman@xdelta.enet.dec.com) wrote: : Oh how I wish this were true. :-) It is true. : The VAX Architecture does make an effort to avoid implementation : details, but all memory is not created equal, and the architecture : does make various differentiations -- even the 1981 Architecture : Handbook points out differences. As one works at the device driver : level, one will find that not all memory reacts in quite the same : fashion -- one will find various differences. (Most (all?) are : even documented. :-) Didn't say the memory acted differently, just said that they all share the same "space," which is true. : In the specific MicroVAX Q-bus case I was referencing, there exist : three regions: Q-bus I/O space, Q-bus memory space, and VAX memory : space. There is no such difference Q-Bus I/O space vs Q-Bus memory space. They share the same space. Now by convention I/O devices have different addresses but as far as the bus goes, things DONT care. : Q-bus memory space is not typically mapped into system physical or : system virtual address space as most folks do not have Q-bus memory : installed, but it can be done. (The MicroVAX I was limited to the : use of Q-bus memory space. The MicroVAX II moved the main memory : off the Q-bus.) And depending on the widget(s) involved, one may : need to do a little work with the CSR and with the page tables. : Obviously, one finds mostly CSRs in I/O space. How the individual buses get mapped in, has nothing to do with the fact that they are the same space. : Qbus space and VAX memory spaces are treated differently for certain : driver-visible operations, though they are all mapped (or can all be : mapped, depending on the particular Q-bus widgets involved) into the : processor's system physical or virtual address space. One salient : example of the differences between memory and I/O: not all VAX : instructions can be safely used in I/O space -- one can safely use : only a subset of the available VAX instructions. One can find the : read and write order processing and the interlocks constrained, : depending on the particular reference and/or the particular widget : and/or the alignment of the reference. : And one can also find a few (weird) I/O widgets where one issues a : read instruction to activate or otherwise alter the contents of the : CSR. (One does not find this read-to-write behaviour in memory space.) : And I'll completely ignore the I/O widgets that can (and do) reference : the host page tables. Again, I never said that some addresses in the space don't act differently than others. That however doesn't alter the fundamental pressence. They are all the same space. The PDP-11 and VAX architectures do not differ in the treatment of memory vs. I/O. It's just that certain addresses you choose to *TREAT* differently. That is, avoiding read-modify-write cycles and caching. Compare this to any of the Intel processors, or to most of the processors that pre-date the PDP-11. You have to use special instructions to touch I/O devices compared to memory. -Ron