From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3410b34506f92360 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,3410b34506f92360 X-Google-Attributes: gidfee84,public From: grunwald@foobar.cs.colorado.edu (Dirk Grunwald) Subject: Re: PCI Sparse Address Space Date: 1996/09/17 Message-ID: #1/1 X-Deja-AN: 181166854 references: <51k83t$c70@mashie.cs.umd.edu> organization: University of Colorado reply-to: grunwald@foobar.cs.colorado.edu newsgroups: comp.unix.osf.osf1,comp.sys.dec nntp-posting-user: grunwald Here's my experienced based on trying to port the driver for the Myricom Myrinet PCi interface to the DEC Alpha. The system start up code (not certain if it's the SROM bootup or the SRM firmware) puts a device into "sparse space" based on a number of reasons. The importance of this varies from machine to machine. For example, the AlphaServer 2100 PCI interface (the "T3" chip, I think) maps any device as "sparse" if it marks a memory region as "not prefetchable". The myrinet has a 256KByte on-chip SRAM memory that was marked "not prefetchable", and thus communication with that memory requires the PIO functions. More recently, I've received EEPROM upgrades that mark it as "prefetchable", and that should fix the problem ( but I haven't had time to plug it into the 2100's). By comparison, a system using the 21070 or 21170 PCI interface chipset doesn't appear to care diddly about the "prefetch" bit. On both EV4 and EV5 based systems, the same Myrinet card can be mapped into a "dense" address space. If you trace the code path for the code that reads/writes sparse address space, you'll get down ( in .../src/kernel/arch/alpha/hal) to a hardware abstraction layer that diddles the appropriate PCI bridge in the proper manner. We couldn't afford the overhead of those function calls for the Myrinet interface and asked Myricom to spin another FPGA with the prefetch bit marked as prefetchable. Dirk Grunwald Assoc. Prof, Univ. of Colorado at Boulder