Subject: Re: need advice regarding Au 1550 (MIPS) memory mapping
To: Garrett D'Amore <email@example.com>
From: Andrey Petrov <firstname.lastname@example.org>
Date: 09/30/2005 08:29:12
On Thu, Sep 29, 2005 at 08:53:56PM -0700, Garrett D'Amore wrote:
> Alex Pelts wrote:
> >I have no experience with that particular board but as far as I know
> >most mips systems have 32 bit address bus. What mips core is on that
> >If this is alchemy core it is only 14 bit address bus, so I can't see
> >how you can address 36bit address space. It also looks like 32 bit
> >mips which makes it questionable about 36 bit access as well.
> It is an Amd/Alchemy Au1550 core.
> >I may be wrong here but I think you are mistaking about 36 bit address
> No, I'm fairly certain about this.
> The core is an Au1 core, and while the processor is indeed a MIPS32
> based core, it has what it calls a 36-bit system bus. The upper 4 bits
> are mapped to various chip selects for peripherial busses.
> For example PCI address look this:
> 0x0140050xx - Au1550 configuration registers
> 0x0140051xx - Au1550 PCI header space
> 0x4xxxxxxxx - PCI memory space
> 0x5xxxxxxxx - PCI I/O space
> 0x6xxxxxxxx - PCI external configuration space
> So you set those top 4 bits (bits 33-35) to indicate use of the PCI bus
> and the type of PCI access to use (memory, IO, or configuration). (The
> other addresses at 14005xxx are for accessing the Au1550's own PCI
> configuration and for configuring things like PCI host operation.
> The manual is also pretty clear in stating that the only way to get at
> this area of address space is thru the TLB, using a 32-bit virtual
> address to map to a 36-bit physical address.
> I guess what I need to do is set up some kind of fixed TLB entries for
> this. Any guidance in how to do *that* would be appreciated.
> As far as I can tell, these addresses are really only necessary for PCI,
> but I've not checked every inch of the 200+ page datasheet for any other
> references to "high" (above 4GB) memory.
Access to devices is handled by bus_space(9) and bus_dma(9) so I'd start from