# US 2021/0081328 A1 · Unified kernel virtual address space for heterogeneous computing

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

- Number: US 2021/0081328 A1
- Document ID: US20210081328A1
- Status: Published application
- Kind: A1
- Application number: 17/105,331
- Filed: 2020-11-25
- Published: 2021-03-18
- Earliest claimed: 2019-07-23
- Assignees: ATI Technologies ULC
- Applicants: ATI Technologies ULC
- Inventors: Tung Chuen Kwong; Benjamin Koon Pan Chan; William Lloyd Atkinson
- Web page: https://patentgrep.com/patent/US20210081328A1

## CPC

- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 9/545: {where tasks reside in different layers, e.g. user- and kernel-space}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, apparatuses, and methods for implementing a unified kernel virtual address space for heterogeneous computing are disclosed. A system includes at least a first subsystem running a first kernel, an input/output memory management unit (IOMMU), and a second subsystem running a second kernel. In order to share a memory buffer between the two subsystems, the first subsystem allocates a block of memory in part of the system memory controlled by the first subsystem. A first mapping is created from a first logical address of the kernel address space of the first subsystem to the block of memory. Then, the IOMMU creates a second mapping to map the physical address of that block of memory from a second logical address of the kernel address space of the second subsystem. These mappings allow the first and second subsystems to share buffer pointers which reference the block of memory.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A method comprising
mapping a first region of a first kernel address space to a first region in a first physical address space;
mapping a first region of a second kernel address space to the first region in first physical address space; and
enabling a common shared region in both the first kernel address space and the second kernel address space for use.

### Claim 22 (depends on 21)

The method as recited in claim 21, wherein mapping the first region of the second kernel address space to the first region in first physical address space comprises mapping the first region of the second kernel address space to a device memory space.

### Claim 23 (depends on 22)

The method as recited in claim 22, wherein the common shared region is enabled for sharing by both a first subsystem and a second subsystem different from the first subsystem.

### Claim 24 (depends on 21)

The method as recited in claim 21, wherein addresses in the first region of the first kernel address space map to same locations in the first physical address space as addresses in the first region of the second kernel address space.

### Claim 25 (depends on 21)

The method as recited in claim 21, wherein said mapping of the first region of the first kernel address space to the first region in the first physical address space is performed by a first subsystem.

### Claim 26 (depends on 25)

The method as recited in claim 25, wherein said mapping of the first region of the second kernel address space to the first region in first physical address space is performed by a second subsystem different from the first subsystem.

### Claim 27 (depends on 26)

The method as recited in claim 26, wherein the second subsystem is an input/output memory management unit.

### Claim 28

A system comprising:
a first subsystem configured to map a first region of a first kernel address space to a first region in a first physical address space;
a second subsystem configured to map a first region of a second kernel address space to the first region in first physical address space; and
wherein the system is configured to enable a common shared region in both the first kernel address space and the second kernel address space for use.

### Claim 29 (depends on 28)

The system as recited in claim 28, wherein the second subsystem is configured to map the first region of the second kernel address space to a device memory space.

### Claim 30 (depends on 28)

The system as recited in claim 28, wherein addresses in the first region of the first kernel address space map to same locations in the first physical address space as addresses in the first region of the second kernel address space.

### Claim 31 (depends on 28)

The system as recited in claim 28, wherein the second subsystem is an input/output memory management unit.

### Claim 32 (depends on 28)

The system as recited in claim 28, wherein the first system is configured to allocate the first region in the first physical address space.

### Claim 33 (depends on 28)

The system as recited in claim 28, wherein the first subsystem is configured to convey to the second subsystem a pointer to a location in the first region of the first physical address space, wherein the first subsystem is configured to convey the pointer to the second subsystem via the common shared region.

### Claim 34 (depends on 33)

The system as recited in claim 33, wherein the second system comprises an input/output memory management unit configured to map the first region of the second kernel address space to the first region in first physical address space.

### Claim 35

A system comprising:
a memory device;
a first processing device configured to map a first region of a first virtual address space to a region in the memory device; and
a second processing device configured to map a first region of a second virtual address space to the region in the memory device such that the region in the memory device is shared by the first processing device and the second processing device.

### Claim 36 (depends on 35)

The system as recited in claim 35, wherein to map the first region of the second virtual address space to the region in the memory device, the second processing device is further configured to map the first region of the second virtual address space to a device memory space which is mapped to the region in the memory device.

### Claim 37 (depends on 35)

The system as recited in claim 35, wherein addresses in the first region of the first virtual address space map to same locations in the memory device as addresses in the first region of the second virtual address space.

### Claim 38 (depends on 35)

The system as recited in claim 35, wherein the second processing device comprises an input/output memory management unit configured to map the device memory space to the region in the memory device.

### Claim 39 (depends on 35)

The system as recited in claim 35, wherein the first processing device is configured to allocate the region in the memory device.

### Claim 40 (depends on 35)

The system as recited in claim 35, wherein the first processing device is configured to convey to the second processing device a pointer to a location in the region of the memory device, wherein the first processing device is configured to convey the pointer to the second processing device via the region in the memory device.
