# US 2015/0149731 A1 · I/o controller and method for operating an i/o controller

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

- Number: US 2015/0149731 A1
- Document ID: US20150149731A1
- Status: Published application
- Kind: A1
- Application number: 14/608,850
- Filed: 2015-01-29
- Published: 2015-05-28
- Earliest claimed: 2011-12-23
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Florian A. Auernhammer; Patricia M. Sagmeister
- Web page: https://patentgrep.com/patent/US20150149731A1

## CPC

- G06F 12/1063: {the data cache being concurrently virtually addressed}
- G06F 12/0862: with prefetch
- G06F 12/10: Address translation
- 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/122: of the least frequently used [LFU] type, e.g. with individual count value
- G06F 2212/50: Control mechanisms for virtual memory, cache or TLB
- G06F 2212/602: Details relating to cache prefetching
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An I/O controller, coupled to a processing unit and to a memory, includes an I/O link interface configured to receive data packets having virtual addresses; an address translation unit having an address translator to translate received virtual addresses into real addresses by translation control entries and a cache allocated to the address translator to cache a number of the translation control entries; an I/O packet processing unit for checking the data packets received at the I/O link interface and for forwarding the checked data packets to the address translation unit; and a prefetcher to forward address translation prefetch information from a data packet received to the address translation unit; the address translator configured to fetch the translation control entry for the data packet by the address translation prefetch information from the allocated cache or, if the translation control entry is not available in the allocated cache, from the memory.

## Claims

### Claim 1

A method for operating an I/O controller coupled to a processing unit and to a memory, wherein the I/O controller includes an I/O link interface for receiving data packets having virtual addresses, an address translation unit having an address translator for translating received virtual addresses into real addresses by translation control entries and a cache allocated to the address translator for caching a number of the translation control entries, and an I/O packet processing unit for checking the data packets received at the link interface and for forwarding the checked data packets to the address translation unit, the method comprising:
forwarding, with a prefetcher, address translation prefetch information from a data packet received at the I/O link interface to the address translation unit; and
fetching the translation control entry for the data packet by means of the address translation prefetch information from the allocated cache or, if the translation control entry is not available in the allocated cache, from the memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein the I/O packet processing unit is coupled between the I/O link interface and the address translation unit, and the prefetcher is arranged in parallel to the I/O packet processing unit.

### Claim 3 (depends on 1)

The method of claim 1, wherein the prefetcher is configured to forward a Requestor ID (RID) and a virtual address as the address translation prefetch information from the data packet received at the I/O link interface.

### Claim 4 (depends on 3)

The method of claim 3, wherein the address translation unit further includes a request translation unit configured to translate the Requestor ID (RID) into a RID translation entry (RTE) including a translation table base address for translating at least a part of the virtual address into a translation control entry (TCE) index.

### Claim 5 (depends on 4)

The method of claim 4, wherein the Requestor ID translation unit is configured to fetch the RID translation entry by means of the Requestor ID from a cache allocated to the request translation unit or, if the RID translation entry is not available in the allocated cache, from the memory.

### Claim 6 (depends on 1)

The method of claim 1, wherein the address translation unit further includes a bit selection unit configured to select a first parameter indicating I/O page size and a second parameter indicating translation control entry table size index bits from the received virtual address.

### Claim 7 (depends on 6)

The method of claim 6, wherein the request translation unit is configured to control the bit selection unit in dependence on the actual received Requestor ID.

### Claim 8 (depends on 6)

The method of claim 6, wherein the address translator is configured to fetch the translation control entry by a single level translation scheme (SLTS) or by a multi-level translation scheme (MLTS) by using a translation table index which is generated by the first parameter and the second parameter and by using the translation table base address.

### Claim 9 (depends on 1)

The method of claim 1, wherein the address translation unit is configured to serve two types of requests including demand requests for data packets from the packet processing unit and prefetch requests from the prefetcher.

### Claim 10 (depends on 9)

The method of claim 9, wherein the address translator is configured to update a last recently used (LRU) position of the translation control entries in the cache allocated to the address translator for a TCE miss of a prefetch request, for a TCE hit of a prefetch request, for a TCE miss of a demand request and not for a TCE hit of a demand request.

### Claim 11 (depends on 10)

The method of claim 10, wherein, for a TCE miss of a demand request, the address translator is configured to allocate a translation slot in the cache and to update the last recently used position.

### Claim 12 (depends on 9)

The method of claim 9, wherein the cache allocated to the address translator includes separate demand slots for demand lookups triggered by demand requests and prefetch slots for prefetch lookups triggered by prefetch requests.

### Claim 13 (depends on 9)

The method of claim 9, wherein the cache allocated to the address translator includes a first region of slots that is exclusively used for prefetch lookups and a second region of slots that is shared by prefetch lookups and demand lookups triggered by demand requests, the ratio of allocations into the different regions being adapted to reduce the allocation in the shared region compared to the actual number of slots to guarantee recoverability into a non-thrashing prefetch state.

### Claim 14 (depends on 13)

The method of claim 13, wherein an allocation ratio is reset to the actual ratio of slots in the shared and exclusive region, if a demand miss TCE allocation logic detects a stable non-demand miss state.

### Claim 15 (depends on 9)

The method of claim 9, wherein the cache allocated to the address translator is divided into two regions, the two regions being independent from each other and one range being used for read allocations and one for write allocations.

### Claim 16 (depends on 1)

The method of claim 1, wherein the prefetcher includes a read queue for prefetched read requests, a write queue for prefetched write requests, and an arbiter configured to arbitrate the read queue and the write queue.

### Claim 17

The method of 16, wherein the prefetcher further includes a read counter coupled to the read queue to keep track of a defined read prefetch distance and delaying further read prefetches if the defined read prefetch distance reaches a configurable threshold, and a write counter coupled to the write queue to keep track of a defined write prefetch distance and for delaying further write prefetches if the defined write prefetch distance reaches a configurable threshold, wherein the arbiter is configured to arbitrate the read queue and the write queue in dependence on the read counter and the write counter.

### Claim 18 (depends on 1)

The method of claim 1, wherein the number of queue slots of the read queue and the number of issued read prefetches are combined with credit information for read from the I/O packet processing unit to form a link read credit information; and
the number of queue slots of the write queue and the number of issued write prefetches are combined with the credit information for write from the I/O packet processing unit to form a link write credit information.

### Claim 19

A non-transitory computer readable storage medium having instructions stored thereon that when executed by a computer, implement a method for operating an I/O controller coupled to a processing unit and to a memory, wherein the I/O controller includes an I/O link interface for receiving data packets having virtual addresses, an address translation unit having an address translator for translating received virtual addresses into real addresses by translation control entries and a cache allocated to the address translator for caching a number of the translation control entries, and an I/O packet processing unit for checking the data packets received at the link interface and for forwarding the checked data packets to the address translation unit, the method comprising:
forwarding, with a prefetcher, address translation prefetch information from a data packet received at the I/O link interface to the address translation unit; and
fetching the translation control entry for the data packet by means of the address translation prefetch information from the allocated cache or, if the translation control entry is not available in the allocated cache, from the memory.

### Claim 20 (depends on 19)

The non-transitory computer readable storage medium of claim 19, wherein the address translation unit further includes a bit selection unit configured to select a first parameter indicating I/O page size and a second parameter indicating translation control entry table size index bits from the received virtual address.
