# US 2008/0189509 A1 · Data Processing System and Computer Program Product to Allow PCI Host Bridge (PHB) to Handle Pre-Fetch Read Transactions on the PCI Bus Which Access System Memory Through Translation Control Entry (TCE) Table

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

- Number: US 2008/0189509 A1
- Document ID: US20080189509A1
- Status: Published application
- Kind: A1
- Application number: 12/105,113
- Filed: 2008-04-17
- Published: 2008-08-07
- Earliest claimed: 2004-03-25
- Assignees: International Business Machines Corporation
- Inventors: Van Hoa Lee
- Web page: https://patentgrep.com/patent/US20080189509A1

## CPC

- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 12/0284: {Multiple user address space allocation, e.g. using different base addresses (interprocessor communication G06F15/163)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, system, and computer instructions for providing valid translation entries in the TCE table for all supported DMA addresses to prevent the occurrence of system errors due to prefetching. The mechanism of the present invention reserves a page in system memory. This reserved page is made unavailable to the operating system and may not be utilized by any software in the system. The reserved page is also written with all bytes set to 0xFF. The system firmware then selects a region in system memory for the TCE table. The TCE table is initialized, with all entries within the TCE table initialized to be valid as well as contain the corresponding address of the reserved page. In this manner, all supported DMA page addresses will have valid TCE entries which translate the DMA addresses into the reserved page memory. Thus, prefetched DMA addresses will not encounter invalid DMA address translation, and crash the system.

## Claims

### Claim at position 1

-10. (canceled)

### Claim 11

A data processing system for providing valid translation entries in a translation control entry table for all supported direct memory addresses, comprising:
reserving means for reserving a page in system memory to form a reserved page;
writing means for writing the reserved page;
selecting means for selecting a region in the system memory for the translation control entry table;
initializing means for initializing all entries in the translation control entry table, wherein all entries are initialized to be valid and contain an address of the reserved page; and
updating means for updating an entry in the translation control entry table, wherein a physical memory page replaces the reserved page when the entry is used by an operating system's device driver.

### Claim 12 (depends on 11)

The data processing system of claim 11, further comprising:
restoring means for restoring the entry in the translation control entry table with the reserved page when the entry is no longer used by an operating system.

### Claim 13 (depends on 11)

The data processing system of claim 11, further comprising:
determining means for determining whether a direct memory address translation corresponding to the entry has been cached in a translation lookaside buffer; and
clearing means for clearing the direct memory address translation from the translation lookaside buffer in response to a determination that the direct memory address translation exists.

### Claim 14 (depends on 11)

The data processing system of claim 11, wherein the reserved page is inaccessible to an operating system running on the data processing system.

### Claim 15 (depends on 11)

The data processing system of claim 11, wherein writing the reserved page includes setting all bytes within the reserved page to 0xFF.

### Claim 16 (depends on 11)

The data processing system of claim 11, wherein initializing all entries to be valid includes setting all valid bits to “1”.

### Claim 17

(canceled)

### Claim 18 (depends on 11)

The data processing system of claim 11, wherein the translation control entry table comprises a 2 MB Translation Control Entry table having 512K 4-byte entries.

### Claim 19

(canceled)

### Claim 20

A computer program product in a recordable-type medium for providing valid translation entries in a translation control entry table for all supported direct memory addresses, comprising:
first instructions for reserving a page in system memory to form a reserved page;
second instructions for writing the reserved page;
third instructions for selecting a region in the system memory for the translation control entry table;
fourth instructions for initializing all entries in the translation control entry table, wherein all entries are initialized to be valid and contain an address of the reserved page; and
fifth instructions for updating an entry in the translation control entry table, wherein a physical memory page replaces the reserved page when the entry is used by an operating system's device driver.

### Claim 21 (depends on 20)

The computer program product of claim 20, further comprising:
sixth instructions for restoring the entry in the translation control entry table with the reserved page when the entry is no longer used by an operating system.

### Claim 22 (depends on 20)

The computer program product of claim 20, further comprising:
sixth instructions for determining whether a direct memory address translation corresponding to the entry has been cached in a translation lookaside buffer; and
seventh instructions for clearing the direct memory address translation from the translation lookaside buffer in response to a determination that the direct memory address translation exists.

### Claim 23 (depends on 20)

The computer program product of claim 20, wherein the reserved page is inaccessible to an operating system running on a data processing system.

### Claim 24 (depends on 20)

The computer program product of claim 20, wherein writing the reserved page includes setting all bytes within the reserved page to 0xFF.

### Claim 25 (depends on 20)

The computer program product of claim 20, wherein initializing all entries to be valid includes setting all valid bits to “1”.

### Claim 26

(canceled)

### Claim 27 (depends on 20)

The computer program product of claim 20, wherein the translation control entry table comprises a 2 MB Translation Control Entry table having 512K 4-byte entries.

### Claim 28 (depends on 2)

The method of claim 2, wherein the reserved page is utilized for DMA address translation.

### Claim 29 (depends on 11)

The data processing system of claim 11, wherein the reserved page is utilized for DMA address translation.

### Claim 30 (depends on 20)

The computer program product of claim 20, wherein the reserved page is utilized for DMA address translation.
