# US 2009/0276544 A1 · Mapping a Virtual Address to PCI Bus Address

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

- Number: US 2009/0276544 A1
- Document ID: US20090276544A1
- Status: Published application
- Kind: A1
- Application number: 12/114,954
- Filed: 2008-05-05
- Published: 2009-11-05
- Earliest claimed: 2008-05-05
- Assignees: International Business Machines Corporation
- Inventors: Richard L. Arndt; Aaron C. Brown; Gregory F. Pfister; Renato J. Recio; Steven M. Thurber
- Web page: https://patentgrep.com/patent/US20090276544A1

## CPC

- G06F 13/387: {for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Registering memory space within a data processing system is performed. One or more open calls are received from an application to access one or more input/output (I/O) devices. Responsive to receiving the one or more open calls, one or more I/O map and pin calls are sent in order to register memory space for the one or more I/O devices within at least one storage area that will be accessed by the application. At least one virtual I/O bus address is received for each registered memory space of the one or more I/O devices. At least one I/O command is executed using the at least one virtual I/O bus address without intervention by an operating system or operating system image.

## Claims

### Claim 1

A method, in a data processing system, for registering memory space, the method comprising:
receiving one or more open calls from an application to access one or more input/output (I/O) devices;
responsive to receiving the one or more open calls, sending one or more I/O map and pin calls in order to register memory space for the one or more I/O devices within at least one storage area that will be accessed by the application;
receiving at least one virtual I/O bus address for each registered memory space of the one or more I/O devices; and
executing at least one I/O command using the at least one virtual I/O bus address without intervention by an operating system or operating system image.

### Claim 2 (depends on 1)

The method of claim 1, wherein executing the at least one I/O command further comprises:
building the at least one I/O command in a command response queue;
signaling an I/O adapter of the at least one I/O command;
determining if a I/O response to the at least one I/O command has been received from the I/O adapter; and
responsive to receiving the I/O response, signaling the application that I/O response may be processed.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
receiving one or more close calls from the application in order to close access to the one or more I/O devices; and
responsive to receiving the one or more close calls, sending one or more I/O un-map and unpin calls in order to close the registered memory space within the at least one storage area.

### Claim 4 (depends on 1)

The method of claim 1, wherein the one or more open calls includes at least one of a starting virtual address and a length of memory required or a starting virtual address and an ending virtual address.

### Claim 5 (depends on 1)

The method of claim 1, wherein the at least one I/O command comprises a direct memory access address of at least one of an input buffer or an output buffer.

### Claim 6 (depends on 5)

The method of claim 5, wherein the direct memory access address of the input buffer or the output buffer is computed as a virtual address of a start of operation data minus a virtual address of a start of the input buffer or the output buffer plus the at least one virtual I/O bus address.

### Claim 7 (depends on 1)

The method of claim 1, wherein the one or more I/O map and pin calls are sent by a device driver associated with an application.

### Claim 8 (depends on 1)

The method of claim 1, wherein the at least one storage comprises at least one of a command response queue, an input buffer, or an output buffer.

### Claim 9 (depends on 1)

The method of claim 1, wherein the at least one virtual I/O bus address indicates a beginning virtual address of the at least one storage area.

### Claim 10 (depends on 1)

The method of claim 1, wherein registering the memory space for the one or more I/O devices within the at least one storage area comprises:
receiving the one or more I/O map and pin calls, wherein the one or more open calls comprise at least one of a starting virtual address and a length of memory required or a starting virtual address and an ending virtual address;
searching a translation control entry table to identify a set of consecutive translation control entries;
responsive to identifying a set of consecutive translation control entries, pinning real page numbers associated with each translation control entry in the set of translation control entries for the at least one storage area;
allocating the set of consecutive translation control entries for the at least one storage area;
loading the real page numbers into each translation control entry in the set of consecutive translation control entries;
setting a page size and an address for a physical address space for each translation vector entry in a translation validation table of a peripheral component interconnect (PCI) host bridge associated with the one or more I/O devices; and
returning the at least one virtual I/O bus addresses associated with the virtual address for at least one storage area.

### Claim 11

A computer program product comprising a computer recordable medium having a computer readable program recorded thereon, wherein the computer readable program, when executed on a computing device, causes the computing device to:
receive one or more open calls from an application to access one or more input/output (I/O) devices;
responsive to receiving the one or more open calls, send one or more I/O map and pin calls in order to register memory space for the one or more I/O devices within at least one storage area that will be accessed by the application;
receive at least one virtual I/O bus address for each registered memory space of the one or more I/O devices; and
execute at least one I/O command using the at least one virtual I/O bus address without intervention by an operating system or operating system image.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the computer readable program to execute the at least one I/O command further includes computer readable program that causes the computing device to:
build the at least one I/O command in a command response queue;
signal an I/O adapter of the at least one I/O command;
determine if a I/O response to the at least one I/O command has been received from the I/O adapter; and
responsive to receiving the I/O response, signal the application that I/O response may be processed.

### Claim 13 (depends on 11)

The computer program product of claim 11, wherein the computer readable program further causes the computing device to:
receive one or more close calls from the application in order to close access to the one or more I/O devices; and
responsive to receiving the one or more close calls, send one or more I/O un-map and unpin calls in order to close the registered memory space within the at least one storage area.

### Claim 14 (depends on 11)

The computer program product of claim 11, wherein the at least one storage comprises at least one of a command response queue, an input buffer, or an output buffer.

### Claim 15 (depends on 11)

The computer program product of claim 11, wherein the computer readable program to register the memory space for the one or more I/O devices within the at least one storage area further includes computer readable program that causes the computing device to:
receive the one or more I/O map and pin calls, wherein the one or more open calls comprise at least one of a starting virtual address and a length of memory required or a starting virtual address and an ending virtual address;
search a translation control entry table to identify a set of consecutive translation control entries;
responsive to identifying a set of consecutive translation control entries, pin real page numbers associated with each translation control entry in the set of translation control entries for the at least one storage area;
allocate the set of consecutive translation control entries for the at least one storage area;
load the real page numbers into each translation control entry in the set of consecutive translation control entries;
set a page size and an address for a physical address space for each translation vector entry in a translation validation table of a peripheral component interconnect (PCI) host bridge associated with the one or more I/O devices; and
return the at least one virtual I/O bus addresses associated with the virtual address for at least one storage area.

### Claim 16

An apparatus, comprising:
a processor; and
a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to:
receive one or more open calls from an application to access one or more input/output (I/O) devices;
responsive to receiving the one or more open calls, send one or more I/O map and pin calls in order to register memory space for the one or more I/O devices within at least one storage area that will be accessed by the application;
receive at least one virtual I/O bus address for each registered memory space of the one or more I/O devices; and
execute at least one I/O command using the at least one virtual I/O bus address without intervention by an operating system or operating system image.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the instructions to execute the at least one I/O command further cause the processor to:
build the at least one I/O command in a command response queue;
signal an I/O adapter of the at least one I/O command;
determine if a I/O response to the at least one I/O command has been received from the I/O adapter; and
responsive to receiving the I/O response, signal the application that I/O response may be processed.

### Claim 18 (depends on 16)

The apparatus of claim 16, wherein the instructions further cause the processor to:
receive one or more close calls from the application in order to close access to the one or more I/O devices; and
responsive to receiving the one or more close calls, send one or more I/O un-map and unpin calls in order to close the registered memory space within the at least one storage area.

### Claim 19 (depends on 16)

The apparatus of claim 16, wherein the at least one storage comprises at least one of a command response queue, an input buffer, or an output buffer.

### Claim 20 (depends on 16)

The apparatus of claim 16, wherein the instructions to register the memory space for the one or more I/O devices within the at least one storage area further cause the processor to:
receive the one or more I/O map and pin calls, wherein the one or more open calls comprise at least one of a starting virtual address and a length of memory required or a starting virtual address and an ending virtual address;
search a translation control entry table to identify a set of consecutive translation control entries;
responsive to identifying a set of consecutive translation control entries, pin real page numbers associated with each translation control entry in the set of translation control entries for the at least one storage area;
allocate the set of consecutive translation control entries for the at least one storage area;
load the real page numbers into each translation control entry in the set of consecutive translation control entries;
set a page size and an address for a physical address space for each translation vector entry in a translation validation table of a peripheral component interconnect (PCI) host bridge associated with the one or more I/O devices; and
return the at least one virtual I/O bus addresses associated with the virtual address for at least one storage area.
