# US 2025/0165402 A1 · Memory-Access Policies in Peripheral Device based on Memory Usage Characteristics

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

- Number: US 2025/0165402 A1
- Document ID: US20250165402A1
- Status: Published application
- Kind: A1
- Application number: 18/513,563
- Filed: 2023-11-19
- Published: 2025-05-22
- Earliest claimed: 2023-11-19
- Assignees: Mellanox Technologies, Ltd.
- Applicants: Mellanox Technologies, Ltd.
- Inventors: Ran Avraham Koren; Daniel Marcovitch; Gal Shalom; Ariel Shahar
- Web page: https://patentgrep.com/patent/US20250165402A1

## CPC

- G06F 12/0862: with prefetch
- G06F 12/0835: {for main memory peripheral accesses (e.g. I/O or DMA)}
- G06F 13/1663: {Access to shared memory}
- 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 system includes a processing device and a peripheral device. The processing device is to assign a memory region in a memory. The peripheral device is to set a memory-access policy responsively to usage characteristics of the memory region, and to access data in the memory region using Direct Memory Access (DMA) in accordance with the memory-access policy.

## Claims

### Claim 1

A system, comprising:
a processing device, to assign a memory region in a memory; and
a peripheral device, to set a memory-access policy responsively to usage characteristics of the memory region, and to access data in the memory region using Direct Memory Access (DMA) in accordance with the memory-access policy.

### Claim 2 (depends on 1)

The system according to claim 1, wherein the processing device is to provide to the peripheral device context information describing the memory region, and wherein the peripheral device is to access data in the memory region in accordance with the context information.

### Claim 3 (depends on 1)

The system according to claim 1, wherein the memory-access policy specifies a caching policy for caching, in the peripheral device, portions of the data or portions of context information describing the memory region.

### Claim 4 (depends on 1)

The system according to claim 1, wherein the memory-access policy specifies a prefetching policy for prefetching, in the peripheral device, portions of the data or portions of context information describing the memory region.

### Claim 5 (depends on 1)

The system according to claim 1, wherein the usage characteristics comprise one or more of:
a pattern of addresses that characterizes access to the memory region;
an access frequency that characterizes access to the memory region;
an access direction that characterizes access to the memory region;
a location of the memory region; and
whether the memory region is pinned or unpinned.

### Claim 6 (depends on 1)

The system according to claim 1, wherein the peripheral device is to deduce the usage characteristics by tracking memory-access transactions performed in the memory region.

### Claim 7 (depends on 1)

The system according to claim 1, wherein the processing device is to generate a hint that is indicative of the usage characteristics of the memory region and to provide the hint to the peripheral device, and wherein the peripheral device is to set the memory-access policy responsively to the hint.

### Claim 8 (depends on 7)

The system according to claim 7, wherein the processing device is to select the hint from a defined set of hints, and wherein the peripheral device is to select the memory-access policy from a defined set of memory-access policies.

### Claim 9 (depends on 8)

The system according to claim 8, wherein one or both of the processing device and the peripheral device are to adaptively modify one or more of:
one or more of the hints;
one or more of the memory-access policies; and
a mapping between the hints and the memory-access policies.

### Claim 10 (depends on 7)

The system according to claim 7, wherein the memory-access policy, and a mapping between the hint and the memory-access policy, are internal to the peripheral device and are not accessible to the processing device.

### Claim 11 (depends on 7)

The system according to claim 7, wherein one or both of the processing device and the peripheral device are to provide an Application Programming Interface (API) for specifying one or more of:
the hint;
the memory-access policy; and
a mapping between the hint and the memory-access policy.

### Claim 12 (depends on 7)

The system according to claim 7, wherein the hint is an ad-hoc hint that is valid for a defined time period or for one or more memory-access transactions to be performed in the memory region.

### Claim 13

A method, comprising:
using a processing device, assigning a memory region in a memory; and
in a peripheral device, setting a memory-access policy responsively to usage characteristics of the memory region, and accessing data in the memory region using Direct Memory Access (DMA) in accordance with the memory-access policy.

### Claim 14 (depends on 13)

The method according to claim 13, further comprising providing from the processing device to the peripheral device context information describing the memory region, wherein accessing data in the memory region is performed in accordance with the context information.

### Claim 15 (depends on 13)

The method according to claim 13, wherein the memory-access policy specifies a caching policy for caching, in the peripheral device, portions of the data or portions of context information describing the memory region.

### Claim 16 (depends on 13)

The method according to claim 13, wherein the memory-access policy specifies a prefetching policy for prefetching, in the peripheral device, portions of the data or portions of context information describing the memory region.

### Claim 17 (depends on 13)

The method according to claim 13, wherein the usage characteristics comprise one or more of:
a pattern of addresses that characterizes access to the memory region;
an access frequency that characterizes access to the memory region;
an access direction that characterizes access to the memory region;
a location of the memory region; and
whether the memory region is pinned or unpinned.

### Claim 18 (depends on 13)

The method according to claim 13, further comprising deducing the usage characteristics by the peripheral device, by tracking memory-access transactions performed in the memory region.

### Claim 19 (depends on 13)

The method according to claim 13, further comprising generating, by the processing device, a hint that is indicative of the usage characteristics of the memory region, and providing the hint from the processing device to the peripheral device, wherein setting the memory-access policy is performed responsively to the hint.

### Claim 20 (depends on 19)

The method according to claim 19, wherein generating the hint comprises selecting the hint from a defined set of hints, and wherein setting the memory-access policy comprises selecting the memory-access policy from a defined set of memory-access policies.

### Claim 21 (depends on 20)

The method according to claim 20, further comprising adaptively modifying one or more of:
one or more of the hints;
one or more of the memory-access policies; and
a mapping between the hints and the memory-access policies.

### Claim 22 (depends on 19)

The method according to claim 19, wherein the memory-access policy, and a mapping between the hint and the memory-access policy, are internal to the peripheral device and are not accessible to the processing device.

### Claim 23 (depends on 19)

The method according to claim 19, further comprising providing an Application Programming Interface (API) for specifying one or more of:
the hint;
the memory-access policy; and
a mapping between the hint and the memory-access policy.

### Claim 24 (depends on 19)

The method according to claim 19, wherein the hint is an ad-hoc hint that is valid for a defined time period or for one or more memory-access transactions to be performed in the memory region.
