From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,6a6068428ab68f38 X-Google-Attributes: gid1164f8,public From: Fred Kleinsorge Subject: Re: Dense/Sparse mapping of PCI device on Alpha Date: 1996/09/04 Message-ID: <322D569A.1FC3392D@star.enet.dec.com>#1/1 X-Deja-AN: 178434601 references: content-type: text/plain; charset=us-ascii organization: OpenVMS Engineering mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 2.02b1 (X11; I; DEC 3000 - M700 ) Timothy Miller wrote: > > I've got a card on a PCI bus in a Dec Alpha box (2100) that gets mapped > into sparse I/O space, which is not what I want. Has anyone had any success > with remapping a device from sparse into dense? Is there any way to trick > the system into putting it into dense in the first place? The PCI prefetch > bit is not set on the PCI interface, but we need it to be. Any ideas? > If you are using OpenVMS or UNIX, it can't be done with the current firmware. Because the amount of sparse and dense address space were not the same on the AlphaServers, the hardware group chose to not overlap the address spaces. The firmware looks at the attributes in the PCI config space to see if the memory is prefetchable, if it is - you get dense space - it assumes that longword reads and writes have no side effects. If it isn't you get sparse space to give you partial word I/O. On *AlphaStations*, you can figure out how to permute the PA and get both a valid dense space address *and* a valid sparse space address for the _same_ memory address range. You can't on an AlphaServer. Been there. Tried that. I wrote much of the low-end graphics code and attempt to overmap the frame buffer in both spaces for performance reasons. Now. If you can figure out what dense address space range is free (and you really can't because apparently felt the need to make this available) - you could simply fabricate a dense space address, and override the PA by writing the new PA into the PCI config space for the device. The only other alternative is to convince the hardware group to change the firmware and overlap the dense and sparse spaces, even though they are not symetric (the choice of how to map these spaces is done by the firmware at power up).