# US 10,956,325 B2 · Instruction and logic for flushing memory ranges in a distributed shared memory system

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

- Number: US 10,956,325 B2
- Document ID: US10956325B2
- Status: Granted
- Kind: B2
- Application number: 15/375,675
- Filed: 2016-12-12
- Published: 2018-06-14
- Granted: 2021-03-23
- Earliest claimed: 2016-12-12
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Francesc Guim Bernat; Karthik Kumar; Mohan J. Kumar; Thomas Willhalm; Robert G. Blankenship
- Web page: https://patentgrep.com/patent/US10956325B2

## CPC

- G06F 12/0808: with cache invalidating means (G06F12/0815 takes precedence)
- G06F 13/1663: {Access to shared memory}
- G06F 12/0831: using a bus scheme, e.g. with bus monitoring or watching means
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/12: Replacement control
- G06F 12/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- G06F 2212/1024: Latency reduction
- G06F 2212/621: Coherency control relating to peripheral accessing, e.g. from DMA or I/O device
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments provide for a processor including a cache a caching agent and a processing node to decode an instruction including at least one operand specifying an address range within a distributed shared memory (DSM) and perform a flush to a first of a plurality of memory devices in the DSM at the specified address range.

## Claims

### Claim 1

A non-transitory machine-readable medium having stored thereon an instruction, which when performed by a machine causes the machine to perform a method comprising:
decoding an instruction including at least a base address operand and a size operand to be used together to specify a contiguous address range within a distributed shared memory (DSM), the specified address range comprising a plurality of cache lines; and
executing the decoded instruction, which causes performing a flush to a first of a plurality of memory devices in the DSM at the specified address range, wherein performing the flush comprises performing a plurality of in-die interface (IDI) protocol flush commands upon a determination that the specified address range is greater than a hashing granularity and performing a single IDI protocol flush command upon a determination that the specified address range is not greater than the hashing granularity, the IDI flush commands to be transmitted by a core to a caching agent.

### Claim 2 (depends on 1)

The machine-readable medium as in claim 1, having stored thereon the instruction, which when performed by a machine causes the machine to further perform invalidating cache lines at a processing node corresponding to the specified address range.

### Claim 3 (depends on 1)

The machine-readable medium as in claim 1, wherein two or more cores of a plurality of cores are coupled via an in-die interface (IDI), and at least one core of the two or more cores executes the decoded instruction.

### Claim 4 (depends on 1)

The machine-readable medium as in claim 1, wherein performing the flush comprises copying the specified address range to the first memory device via a direct memory access (DMA) in response to the IDI protocol command.

### Claim 5 (depends on 4)

The machine-readable medium as in claim 4, wherein performing the flush further comprises:
receiving a notification that the flush has been performed; and
invalidating cache lines.

### Claim 6 (depends on 5)

The machine-readable medium as in claim 5, wherein invalidating the cache lines comprises issuing an invalidate command to each cache line in the specified address range.

### Claim 7 (depends on 5)

The machine-readable medium as in claim 5, wherein invalidating the cache lines comprises flushing the cache lines corresponding to the specified address range.

### Claim 8 (depends on 5)

The machine-readable medium as in claim 5, wherein invalidating the cache lines comprises performing a flush of the cache lines specified in the address range in response to receiving the IDI protocol command.

### Claim 9

A system comprising:
a distributed shared memory (DSM) comprising a plurality of memory devices; and
a processor to decode an instruction including at least a base address operand and a size operand to be used together to specify a contiguous address range comprising a plurality of cache lines within the DSM, and to perform a flush to a first of the plurality of memory devices at the specified address range, wherein the processor is operable to perform the flush by performing a plurality of in-die interface (IDI) protocol flush commands upon a determination that the specified address range is greater than a hashing granularity and performing a single IDI protocol flush command upon a determination that the specified address range is not greater than the hashing granularity, the plurality of IDI flush commands to be transmitted by a core to a caching agent.

### Claim 10 (depends on 9)

The system as in claim 9, further comprising a cache coupled to the processor, wherein the processor invalidates cache lines in the cache corresponding to the specified address range.

### Claim 11 (depends on 10)

The system as in claim 10, wherein performing the flush comprises copying the specified address range to the first memory device via a direct memory access (DMA).

### Claim 12 (depends on 10)

The system as in claim 10, wherein invalidating the cache lines comprises issuing an invalidate command to each cache line in the specified address range.

### Claim 13 (depends on 10)

The system as in claim 10, wherein invalidating the cache lines comprises flushing the cache lines corresponding to the specified address range.

### Claim 14

A processor comprising:
a cache;
a caching agent; and
a processing node to decode an instruction including at least a base address operand and a size operand to be used together to specify a contiguous address range comprising a plurality of cache lines within a distributed shared memory (DSM), and to perform a flush to a first of a plurality of memory devices in the DSM at the specified address range, wherein the processing node is operable to perform the flush by performing a plurality of in-die interface (IDI) protocol flush commands upon a determination that the specified address range is greater than a hashing granularity and performing a single IDI protocol flush command upon a determination that the specified address range is not greater than the hashing granularity, the plurality of IDI flush commands to be transmitted by a core to a caching agent.

### Claim 15 (depends on 14)

The processor as in claim 14, wherein the processing node transmits a command to the caching agent to invalidate cache lines in the cache corresponding to the specified address range.

### Claim 16 (depends on 15)

The processor as in claim 15, further comprising a controller, wherein performing the flush comprises the controller copying the specified address range via a direct memory access (DMA) to the first memory device.
