# US 2019/0377687 A1 · Mmio addressing using a translation lookaside buffer

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0377687 A1
- Document ID: US20190377687A1
- Status: Published application
- Kind: A1
- Application number: 16/003,808
- Filed: 2018-06-08
- Published: 2019-12-12
- Earliest claimed: 2018-06-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Christoph Raisch; Marco Kraemer; Carsten Otte; Jonathan D. Bradbury; David Craddock
- Web page: https://patentgrep.com/patent/US20190377687A1

## CPC

- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 12/1441: {for a range}
- G06F 13/1668: {Details of memory controller}
- G06F 2212/1008: Correctness of operation, e.g. memory ordering
- G06F 2212/206: Memory mapped I/O
- G06F 2212/657: Virtual address space management
- G06F 2212/68: Details of translation look-aside buffer [TLB]
- G06F 2213/0026: PCI express
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for processing an instruction by a processor operationally connected to one or more buses comprises determining the instruction is to access an address of an address space that maps a memory and comprises a range of MMIO addresses. The method determines the address being accessed is within the range of MMIO addresses and generates, based on the determination, a first translation of the address being accessed to a bus identifier identifying one of the buses and a bus address of a bus address space. The bus address resulting from the translation is assigned to a device accessible via the identified bus. The method generates an entry in a translation lookaside buffer. A request directed to the device is sent via the identified bus to the bus address resulting from the translation.

## Claims

### Claim 1

A method for processing an instruction by a processor, wherein the processor is operationally connected to one or more buses, wherein the method comprises:
determining the instruction is to access an address of an address space, wherein the address space maps a memory, and wherein the address space additionally comprises a range of Memory Mapped Input/Output (MMIO) addresses;
determining the address being accessed by the instruction is within the range of MMIO addresses;
generating, based on the determination that the address being accessed is within the range of MMIO addresses, a first translation of the address being accessed to a bus identifier identifying one of the buses and a bus address of a bus address space assigned to the identified bus using a translation table, wherein the bus address resulting from the translation is assigned to a device accessible via the identified bus;
generating an entry in a translation lookaside buffer, wherein the generated entry enables a translation of the address being accessed to the bus identifier and bus address resulting from the translation using the translation table; and
sending, based on the instruction, a request directed to the device via the identified bus to the bus address resulting from the first translation.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
receiving a second instruction;
determining the second instruction is to access the address of the address space;
generating, based on the determination that the address being accessed is within the range of MMIO addresses, a second translation of the address being accessed to a bus identifier identifying one of the buses and a bus address of a bus address space assigned to the identified bus using the translation lookaside buffer; and
sending, based on the second instruction, a second request directed to the device via the identified bus to the bus address resulting from the second translation.

### Claim 3 (depends on 2)

The method of claim 2, wherein the processor determines, whether the bus address resulting from the second translation lies within the range of the bus address space assigned to the bus identified by the bus identifier resulting from the second translation.

### Claim 4 (depends on 3)

The method of claim 3, wherein the translation lookaside buffer contains identifiers identifying an upper limit and a lower limit of the bus address space assigned to the bus identified by the bus identifier resulting from the second translation for determining whether the resulting bus address lies within the range defined by the upper limit and the lower limit.

### Claim 5 (depends on 3)

The method of claim 3, wherein the translation table comprises identifiers identifying an upper limit and a lower limit of the bus address space assigned to the bus identified by the bus identifier resulting from the first translation for determining whether the resulting bus address lies within the range defined by the upper limit and the lower limit.

### Claim 6 (depends on 2)

The method of claim 2, wherein the address being accessed by the instruction comprises a first section encoding an identifier for identifying the bus identifier.

### Claim 7 (depends on 6)

The method of claim 6, wherein the identifier for identifying the bus identifier comprises an entry identifier identifying an entry in the translation lookaside buffer, wherein the respective entry to be identified is assigned with an equal entry identifier and wherein a translation lookaside buffer hit results from finding the entry identifier provided by the address to be accessed in an entry in the translation lookaside buffer assigned with an equal entry identifier.

### Claim 8 (depends on 7)

The method of claim 7, wherein a translation lookaside buffer miss results from finding the entry identifier provided by the address to be accessed to not match any entry in the translation lookaside buffer assigned with an equal entry identifier.

### Claim 9 (depends on 6)

The method of claim 6, wherein the address comprises a second section encoding the bus address of the bus address space assigned to the device accessible via the bus identified by the first section.

### Claim 10 (depends on 6)

The method of claim 6, wherein the identifier for identifying the bus identifier comprises an entry identifier identifying an entry in the translation table providing the bus identifier.

### Claim 11 (depends on 1)

The method of claim 1, wherein the translation lookaside buffer has no remaining capacity for adding additional entries, and wherein the generating of the entry in the translation lookaside buffer comprises replacing an existing entry of the translation lookaside buffer with the entry to be generated.

### Claim 12 (depends on 1)

The method of claim 1, wherein the buses are PCIe (Peripheral Component Interconnect Express) buses, wherein the device is a PCIe device and wherein the bus address is a PCIe bus address.

### Claim 13 (depends on 1)

The method of claim 1, wherein entries comprised by the translation lookaside buffer are each assigned to individual partitions, wherein the address space comprising the address accessed by the instruction is an absolute partition address space assigned to a partition, and wherein the instruction is an instruction issued by the respective partition.

### Claim 14 (depends on 1)

The method of claim 1, wherein the processor is provided with a partition identifier identifying the partition issuing the instruction.

### Claim 15 (depends on 1)

The method of claim 1, wherein the translation table contains translations for each address of the MMIO range, wherein each address of the MMIO range has an assigned access indicator which indicates whether an access to the respective address of the MMIO range is allowed.

### Claim 16 (depends on 1)

The method of claim 1, wherein the translation table only contains translations for addresses of the MMIO range the partition is allowed to access.

### Claim 17 (depends on 1)

The method of claim 1, wherein write combine is enabled for the addresses of the MMIO range using an aggregation buffer for aggregating requests.

### Claim 18 (depends on 17)

The method of claim 17, wherein for each combination of bus identifier and bus address two addresses are provided in the MMIO range, wherein a first one of the two addresses is provided for executing a write through to the respective bus address and a second one of the two addresses is provided for executing a write combine to the respective bus address.

### Claim 19

A system for processing an instruction by a processor comprising:
one or more processors, wherein the one or more processors are operationally connected to one or more buses; and
a memory communicatively coupled to the one or more processors,
wherein the memory comprises instructions which, when executed by the one or more processors, cause the one or more processors to perform a method comprising:
determining the instruction is to access an address of an address space, wherein the address space maps a memory, and wherein the address space additionally comprises a range of Memory Mapped Input/Output (MMIO) addresses;
determining the address being accessed by the instruction is within the range of MMIO addresses;
generating, based on the determination that the address being accessed is within the range of MMIO addresses, a first translation of the address being accessed to a bus identifier identifying one of the buses and a bus address of a bus address space assigned to the identified bus using a translation table, wherein the bus address resulting from the translation is assigned to a device accessible via the identified bus;
generating an entry in a translation lookaside buffer, wherein the generated entry enables a translation of the address being accessed to the bus identifier and bus address resulting from the translation using the translation table; and
sending, based on the instruction, a request directed to the device via the identified bus to the bus address resulting from the first translation.

### Claim 20

A computer program product for processing an instruction by a processor, the computer program product comprising a computer readable storage medium having machine executable program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a computer to perform a method comprising:
determining the instruction is to access an address of an address space, wherein the address space maps a memory, and wherein the address space additionally comprises a range of Memory Mapped Input/Output (MMIO) addresses;
determining the address being accessed by the instruction is within the range of MMIO addresses;
generating, based on the determination that the address being accessed is within the range of MMIO addresses, a first translation of the address being accessed to a bus identifier identifying one of the buses and a bus address of a bus address space assigned to the identified bus using a translation table, wherein the bus address resulting from the translation is assigned to a device accessible via the identified bus;
generating an entry in a translation lookaside buffer, wherein the generated entry enables a translation of the address being accessed to the bus identifier and bus address resulting from the translation using the translation table; and
sending, based on the instruction, a request directed to the device via the identified bus to the bus address resulting from the first translation.
