# US 2022/0283946 A1 · Method, system, and apparatus for supporting multiple address spaces to facilitate data movement

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

- Number: US 2022/0283946 A1
- Document ID: US20220283946A1
- Status: Published application
- Kind: A1
- Application number: 17/189,844
- Filed: 2021-03-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-02
- Assignees: ATI Technologies ULC; Advanced Micro Devices, Inc.
- Applicants: Ati Technologies Ulc; Advanced Micro Devices, Inc.
- Inventors: Philip Ng; Nippon Raval; BuHeng Xu; Rostislav S. Dobrin; Shawn Han
- Web page: https://patentgrep.com/patent/US20220283946A1

## CPC

- G06F 12/0835: {for main memory peripheral accesses (e.g. I/O or DMA)}
- G06F 13/1663: {Access to shared memory}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 13/122: {where hardware performs an I/O function other than control of data transfer}
- G06F 13/1668: {Details of memory controller}
- G06F 13/24: using interrupt (G06F13/32 takes precedence)
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 13/4022: {using switching circuits, e.g. switching matrix, connection or expansion network (G06F13/4009 takes precedence)}
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/151: Emulated environment, e.g. virtual machine
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and apparatuses provide support for multiple address spaces in order to facilitate data movement. One system includes a host processor; a memory; a data fabric coupled to the host processor and to the memory; a first input/output memory manage unit (IOMMU) and a second IOMMU, each of the first and second IOMMUs coupled to the data fabric; a first root port and a second root port, each of the first and second root ports coupled to a corresponding IOMMU of the first and second IOMMUs; and a first peripheral component endpoint and a second peripheral component endpoint, each of the first and second peripheral component endpoints coupled to a corresponding root port of the first and second root ports, wherein each of the first and second root ports comprises hardware control logic operative to: synchronize the first and second root ports.

## Claims

### Claim 1

A method for providing data movement among multiple address spaces, the method comprising:
storing, by a first root port, context data of a second root port, wherein each of the first and second root ports is coupled to a corresponding first and second input/output memory management unit (IOMMU) and a corresponding first and second peripheral component endpoints that are associated with a different respective address spaces;
receiving, by the first root port, a direct memory access (DMA) request targeted at a memory address space associated with the second IOMMU; and
providing, via the first root port, direct memory access to the memory address space belonging to the second IOMMU in response to the DMA request based on the context data of the second root port.

### Claim 2 (depends on 1)

The method according to claim 1, wherein each of the first and second root ports includes a plurality of registers.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
synchronizing, by the first root port, the plurality of registers of the first root port with a plurality of registers of the second root port.

### Claim 4 (depends on 3)

The method according to claim 3, wherein synchronizing the plurality of registers of the first root port with the plurality of registers of the second root port includes:
initializing, by the first root port, the plurality of registers of the first root port with the data of the plurality of registers of the second root port; and
tracking, by the first root port, changes to the plurality of registers of the first and second root ports.

### Claim 5 (depends on 4)

The method according to claim 4, wherein initializing the plurality of registers of the first root port with the data of the plurality of registers of the second root port includes:
receiving, by the first root port from the second root port, a context ID of the second root port.

### Claim 6 (depends on 4)

The method according to claim 4, wherein tracking changes to the plurality of registers of the first and second root ports includes:
transmitting, by the first root port, to the second root port a message when a register of the first root port changes; and
receiving, by the first root port from the second root port, a message when a register of the second root port changes.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the transmitting and receiving is through a register bus.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the DMA request including context data and a function identifier of a function targeted at the memory address space associated with the second IOMMU.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the function is at least one of a physical function and a virtual function of a plurality of virtual functions.

### Claim 10

A method for supporting multiple memory address spaces to facilitate data movement, the method comprising:
receiving, at a first root port of, context data of at least a second root port, wherein each root port coupled to a corresponding input/output memory management unit (IOMMU) and a corresponding peripheral component endpoint;
synchronizing, by the first root port, a plurality of registers of the first root port with a plurality of registers of the at least the second root port;
receiving, from the corresponding peripheral component endpoint coupled to the first root port, a direct memory access (DMA) request, the DMA request targeted at a memory address space associated with the at least the second IOMMU; and
providing, by the first root port, the DMA request to the corresponding IOMMU of the first root port based on the context data of the at least second root port.

### Claim 11 (depends on 10)

The method according to claim 10, wherein each IOMMU includes a plurality of memory-mapped input/output (MMIO) registers that map memory address spaces belonging to respective IOMMUs, and
wherein the method further comprises:
accessing, by the corresponding IOMMU of the first root port, the plurality of MMIO registers of the corresponding IOMMU based on the data of the DMA request provided from the first root port;
accessing, from the corresponding IOMMU of the first root port, page tables referenced by a context belonging to the corresponding IOMMU of the at least the second root port based on the accessed plurality of MMIO registers;
performing, by the corresponding IOMMU of the first root port, address translation on the DMA request using the accessed page tables; and
performing, by the corresponding IOMMU of the first root port, a memory access based on the DMA request and the translated address.

### Claim 12 (depends on 10)

The method according to claim 10, wherein synchronizing the plurality of registers of the first root port with the plurality of registers of the at least the second root port includes:
initializing, by the first root port, the plurality of registers of the first root port with the data of the plurality of registers of the at least the second root port; and
tracking, by the first root port, changes to the plurality of registers of the first and the at least the second root ports.

### Claim 13 (depends on 12)

The method according to claim 12, wherein initializing the plurality of registers of the first root port with the data of the plurality of registers of the at least the second root port includes:
receiving, by the first root port from the at least the second root port, a context ID of the at least the second root port and address of the at least the second root port.

### Claim 14 (depends on 12)

The method according to claim 12, wherein tracking changes to the plurality of registers of the first and the at least the second root ports includes:
transmitting, by the first root port, to the at least the second root port a message when a register of the first root port changes; and
receiving, by the first root port from the at least the second root port, a message when a register of the at least the second root port changes.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the transmitting and receiving is through a register bus.

### Claim 16

A data processing system, comprising:
a host processor;
a memory;
a data fabric coupled to the host processor and to the memory;
a first input/output memory manage unit (IOMMU) and a second IOMMU, each of the first and second IOMMUs coupled to the data fabric;
a first root port and a second root port, each of the first and second root ports coupled to a corresponding IOMMU of the first and second IOMMUs; and
a first peripheral component endpoint and a second peripheral component endpoint, each of the first and second peripheral component endpoints coupled to a corresponding root port of the first and second root ports,
wherein each of the first and second root ports comprises hardware control logic operative to:
synchronize context data associated with the first and second root ports;
receive, from the corresponding peripheral component endpoint of the first and second peripheral component endpoints coupled to the first root port, a direct memory access (DMA) request, the DMA request targeted at a memory address space associated with the at least the corresponding IOMMU of the second root port; and
provide the DMA request to the corresponding IOMMU of the first root port.

### Claim 17 (depends on 16)

The system according to claim 16, wherein each of the first and second root ports further comprises a plurality of registers, and
wherein the hardware control logic further operative to communicate with each of the plurality of registers of the first and second root ports via a register bus.

### Claim 18 (depends on 16)

The system according to claim 16, wherein each of the first and second peripheral component endpoints comprising hardware control logic operative to:
synchronize the plurality of MMIO registers of the corresponding IOMMUs;
receive, from the corresponding peripheral component endpoint coupled to the corresponding IOMMU via the corresponding root port, the DMA request;
access the plurality of MMIO registers of the corresponding IOMMU based on the data of the DMA request; and
access, from the corresponding IOMMU of the first and second peripheral component endpoints, a function assigned to the memory address space belonging to the corresponding IOMMU based on the accessed plurality of MMIO registers.

### Claim 19 (depends on 16)

The system according to claim 16, wherein the memory includes a memory carve out that stores peripheral component endpoint interrupt information.

### Claim 20 (depends on 19)

The system according to claim 19, wherein each of the first and second peripheral component endpoints comprises hardware control logic operative to retrieve, from memory carve of the memory upon receiving an interrupt request, peripheral component endpoint interrupt information.
