# US 9,355,052 B2 · Dynamically resizing direct memory access (DMA) windows

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

- Number: US 9,355,052 B2
- Document ID: US9355052B2
- Status: Granted
- Kind: B2
- Application number: 13/974,460
- Filed: 2013-08-23
- Published: 2015-02-26
- Granted: 2016-05-31
- Earliest claimed: 2013-08-23
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Anjan Kumar Guttahalli Krishna; Travis J. Pizel
- Web page: https://patentgrep.com/patent/US9355052B2

## CPC

- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A dynamic DMA window mechanism can resize DMA windows dynamically by increasing one DMA window at the expense of reducing a neighboring DMA window. The dynamic DMA window mechanism can decide to dynamically resize DMA windows based on a request from a system administrator, based on a request by an operating system device driver for an I/O adapter, or based on a performance monitor determining such a resizing would benefit system performance. Once one DMA window has been increased by allocating a portion of a donor DMA window, device drivers for the I/O devices corresponding to the two windows are updated to reflect the new DMA window sizes.

## Claims

### Claim 1

A computer system comprising:
at least one processor;
a memory coupled to the at least one processor;
a plurality of address translation tables in the memory that point to a corresponding plurality of direct memory access (DMA) windows, each of the plurality of DMA windows defining a contiguous block of addresses for a device driver of a corresponding I/O device; and
a dynamic DMA window mechanism that determines when a change to a window size of a specified one of the plurality of DMA windows is needed when at least one of the following occurs:
when a request is received from a system administrator to increase the window size of the specified DMA window;
when a request is received from an operating system device driver for an I/O adapter corresponding to the specified DMA window to increase the window size of the specified DMA window; and
when a DMA performance monitor determines performance of the computer system can be increased by increasing the window size of the specified DMA window;
in response to determining the change to the window size of the specified DMA window is needed, the dynamic DMA window mechanism identifies a donor DMA window that is adjacent to the specified DMA window, dynamically shrinks the donor DMA window by a specified block, dynamically increases the specified DMA window to use the specified block that was formerly in the donor DMA window, invalidates a portion of at least one of the plurality of contiguous address translation tables that used to point to the specified block that was formerly in the donor DMA window, creates a new address translation table distinct from the plurality of contiguous address translation tables corresponding to the specified DMA window to point to the specified block, returns to a device driver of an I/O device that corresponds to the donor DMA window an address range corresponding to the shrunk donor DMA window, and returns to a device driver of an I/O device that corresponds to the specified DMA window an address range corresponding to the increased specified DMA window.

### Claim 2 (depends on 1)

The computer system of claim 1 wherein the computer system is a logically partitioned computer system.

### Claim 3 (depends on 2)

The computer system of claim 2 wherein the dynamic DMA window mechanism operates on a plurality of logical partitions on the logically partitioned computer system.
