Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Fred Kleinsorge <kleinsorge@star.enet.dec.com>
Subject: Re: Dense/Sparse mapping of PCI device on Alpha
Date: 1996/09/04	[thread overview]
Message-ID: <322D569A.1FC3392D@star.enet.dec.com> (raw)
In-Reply-To: Pine.SOL.3.95.960826181532.16754A-100000@babbage


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).



  parent reply	other threads:[~1996-09-04  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-26  4:00 Dense/Sparse mapping of PCI device on Alpha Timothy Miller
1996-08-27  4:00 ` Roger Ivie
1996-09-04  4:00   ` zrepachol
1996-09-04  4:00 ` Fred Kleinsorge [this message]
1996-09-13  4:00   ` Fred Kleinsorge
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox