IO Address ReMapping


I/O Address ReMapping

Because HT does not directly support I/O address space, it reserves a 32MB of memory address space for transporting I/O addresses across the bus. When the processor initiates and I/O transaction, the address must be translated by the CPU to HT bridge to an address within the reserved HT I/O address range (FD_FC00_0000h- FD_FDFF_FFFFh). HT transports the transaction across the HT chain to the HT-to-PCI bridge which must translate the HT I/O address so that is falls within the expansion bus I/O address range.

The IO Size register within the Address Remapping Capability block supports the I/O address space remapping. This 5-bit register defines the size of the I/O address space on the expansion bus, up to 32MBs. Note that the upper 15 bits of the HT I/O address range (FD_FC00_0000h- FD_FDFF_FFFFh) identifies the address as I/O, while the lower 25 address bits define any location within the 32MB I/O address range. The I/O Size register specifies the number of upper address bits (Addr 24:0) that will not be used when generating an I/O address on the expansion bus. For example, an I/O size value of 01101b (13d) results in an expansion bus I/O range of 4KB (Addr 11:0). The default value of zero causes all 25 bits of a HyperTransport I/O request to be passed to the expansion bus, thereby supporting the maximum 32MB I/O range. The next two sections give example implementation of I/O address remapping.

X86 Processor and PCI I/O Remapping Example

This example assumes that the x86 processor and the PCI bus support a maximum I/O address space of 64KB as illustrated in Figure 21-3 on page 483. The Host to HT bridge translates each processor initiated I/O address up to the reserved HT I/O address range and the HT-to-PCI bridge translates the address back down to the PCI I/O address range. HT-to-PCI bridges use the PCI to PCI bridge's I/O Base and Limit configuration registers that are defined by the PCI 2.3 and earlier specifications, along with the I/O size field of the Address Remapping capability block.

Figure 21-3. X86 Processor I/O Mapping Example

graphics/21fig03.gif

In this example, the processor performs a read from I/O address 058Ah that targets a location within a PCI device. The following actions are taken:

  1. The x86 processor initiates an I/O read transaction from address 058Ah.

  2. The Host to HT bridge forwards the processor read to the HT bus but translates the I/O address to memory location FD_FC00_058Ah.

  3. The HT-to-PCI bridge recognizes that the address falls within the 32MB address range reserved by HT for I/O addresses starting at location FD_FC00_0000h. Once the address is recognized, only the lower 25 bits of the address are relevant (Addr[24:0]).

  4. Configuration software has previously established a value in the I/O size field that represents the maximum address space supported by the PCI bus (64KB in this example). The I/O size value (01001b) specifies that the upper 9 bits of the remaining 25-bit address must be ignored and delivered as all zeros to the PCI bus. This restricts the I/O space to 64KB.

  5. The HT-to-PCI Bridge's I/O Base and Limit registers have also been programmed by configuration software to encompass all locations assigned to PCI devices. In this example addresses within the lower 8KB of I/O address space have been assigned (0000h - 1FFFh). The bridge verifies that the I/O address (058Ah) falls within the address window specified by the I/O Base and Limit registers and forwards the address to the PCI bus.

PowerPC and PCI I/O Remapping Example

Some processors such as the PowerPC may not support I/O address space. In this case, the CPU to HT bridge must translate a range of processor memory address space to the HT I/O address range. The translation from HT-to-PCI I/O address space is accomplished using the I/O Size field of the Address Remapping capability block.

In this example, a 16MB block of processor memory space is dedicated for I/O address mapping. Consequently, the PCI can support up to 16MB of I/O space that can be accessed by software executing on the CPU. Figure 21-4 on page 484 illustrates this address remapping. The I/O Size value in this example would be 00001b to indicate that only the upper address bit of the 24-bit I/O address will be ignored, yielding a valid PCI I/O address of Addr[23:0].

Figure 21-4. PowerPC I/O Mapping Example

graphics/21fig04.jpg



HyperTransport System Architecture
HyperTransportв„ў System Architecture
ISBN: 0321168453
EAN: 2147483647
Year: 2003
Pages: 182

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net