# US 2021/0064529 A1 · Producer-to-consumer active direct cache transfers

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

- Number: US 2021/0064529 A1
- Document ID: US20210064529A1
- Status: Published application
- Kind: A1
- Application number: 16/560,217
- Filed: 2019-09-04
- Published: 2021-03-04
- Earliest claimed: 2019-09-04
- Assignees: Xilinx, Inc.
- Applicants: Xilinx, Inc.
- Inventors: Jaideep DASTIDAR; Millind MITTAL
- Web page: https://patentgrep.com/patent/US20210064529A1

## CPC

- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/0831: using a bus scheme, e.g. with bus monitoring or watching means
- G06F 12/121: using replacement algorithms
- G06F 2212/1024: Latency reduction
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/2542: Non-uniform memory access [NUMA] architecture
- G06F 2212/608: Details relating to cache mapping
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The embodiments herein creates DCT mechanisms that initiate a DCT at the time the updated data is being evicted from the producer cache. These DCT mechanisms are applied when the producer is replacing the updated contents in its cache because the producer has either moved on to working on a different data set (e.g., a different task) or moved on to working on a different function, or when the producer-consumer task manager (e.g., a management unit) enforces software coherency by sending Cache Maintenance Operations (CMO). One advantage of the DCT mechanism is that because the direct cache transfer takes place at the time the updated data is being evicted, by the time the consumer begins its task, the updated contents have already been placed in its own cache or another cache within the cache hierarchy.

## Claims

### Claim 1

A computing system, comprising:
a producer comprising a first processing element configured to generate processed data;
a producer cache configured to store the processed data generated by the producer;
a consumer comprising a second processing element configured to receive and process the processed data generated by the producer; and
a consumer cache configured to store the processed data generated by the consumer,
wherein the producer is configured to, in response to receiving a stash cache maintenance operation (stash-CMO), perform a direct cache transfer (DCT) to transfer the processed data from the producer cache to the consumer cache.

### Claim 2 (depends on 1)

The computing system of claim 1, further comprising:
at least one coherent interconnect communicatively coupling the producer to the consumer, wherein the computing system is a Cache-Coherent Non-Uniform Memory Access (CC-NUMA) system.

### Claim 3 (depends on 1)

The computing system of claim 1, wherein the producer knows a location of the consumer before the producer has completed a task that instructs the producer to generate the processed data.

### Claim 4 (depends on 1)

The computing system of claim 1, wherein coherency of the computing system is maintained by hardware elements, wherein the stash-CMO and the DCT are executed in response to the producer determining to update a main memory in the computing system with the processed data currently stored in the producer cache, wherein the stash-CMO is a flush type stash-CMO.

### Claim 5 (depends on 1)

The computing system of claim 1, wherein coherency of the computing system is maintained by hardware elements, wherein the stash-CMO and the DCT are executed in response to the producer cache issuing a capacity eviction to remove at least a portion of the processed data, wherein the stash-CMO is a copy back type stash-CMO.

### Claim 6 (depends on 1)

The computing system of claim 1, wherein the producer does not know a location of the consumer before the producer has completed a task that instructs the producer to generate the processed data.

### Claim 7 (depends on 1)

The computing system of claim 1, wherein coherency of the computing system is maintained by a software management unit, wherein the producer is configured to notify the software management unit when a task that generates the processed data is complete, and wherein the software management unit is configured to instruct a home of the processed data to initiate the DCT.

### Claim 8 (depends on 7)

The computing system of claim 7, wherein the software management unit transmits a first stash-CMO to the home to initiate the DCT on the producer.

### Claim 9 (depends on 8)

The computing system of claim 8, wherein the home, in response to receiving the first stash-CMO, transmits a snoop comprising the stash-CMO to the producer that instructs the producer to perform the DCT.

### Claim 10

A method, comprising:
generating processed data at a producer comprising a first hardware processing element;
storing the processed data in a producer cache;
performing, in response to receiving a stash-CMO, a DCT to transfer the processed data from the producer cache to a consumer cache;
processing, after the DCT, the processed data at a consumer comprising a second hardware processing element; and
storing the processed data generated by the consumer in the consumer cache.

### Claim 11 (depends on 10)

The method of claim 10, wherein the DCT is performed using at least one coherent interconnect communicatively coupling the producer to the consumer, wherein the producer and the consumer are part of a CC-NUMA system.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
informing the producer of a location of the consumer before the producer has completed a task that instructs the producer to generate the processed data.

### Claim 13 (depends on 10)

The method of claim 10, wherein coherency between the consumer and producer is maintained by hardware elements, wherein the stash-CMO and the DCT are executed in response to the producer determining to update a main memory with the processed data currently stored in the producer cache, wherein the stash-CMO is a flush type stash-CMO.

### Claim 14 (depends on 10)

The method of claim 10, wherein coherency between the consumer and producer is maintained by hardware elements, wherein the stash-CMO and the DCT are executed in response to the producer cache issuing a capacity eviction to remove at least a portion of the processed data, wherein the stash-CMO is a copy back type stash-CMO.

### Claim 15 (depends on 10)

The method of claim 10, wherein the producer does not know a location of the consumer before the producer has completed a task that instructs the producer to generate the processed data.

### Claim 16 (depends on 10)

The method of claim 10, wherein coherency between the consumer and producer is maintained by a software management unit, the method further comprising:
notifying the software management unit when a task that generates the processed data is completed by the producer; and
instructing a home of the processed data to initiate the DCT.

### Claim 17 (depends on 16)

The method of claim 16, wherein instructing a home of the processed data to initiate the DCT comprises:
transmitting, from the software management unit, a first stash-CMO to the home to initiate the DCT on the producer; and
transmitting, in response to receiving the first stash-CMO, a snoop from the home to the producer, the snoop comprising the stash-CMO that instructs the producer to perform the DCT.

### Claim 18

(canceled)

### Claim 19 (depends on 17)

The method of claim 17, further comprising:
updating, in response to the snoop, main memory to include the processed data stored in the producer cache.

### Claim 20 (depends on 17)

The method of claim 17, further comprising:
informing, after transmitting the snoop, the consumer that the DCT is complete.

### Claim 21

A computing system, comprising:
a producer comprising a first processing element configured to generate processed data;
a producer cache configured to store the processed data generated by the producer;
a consumer comprising a second processing element configured to receive and process the processed data generated by the producer; and
a consumer cache configured to store the processed data generated by the consumer,
wherein the producer is configured to, in response to receiving a stash cache maintenance operation (stash-CMO), perform a direct cache transfer (DCT) to transfer the processed data from the producer cache to the consumer cache, wherein the stash CMO comprises at least one of: a flush type stash-CMO, a copy back type stash-CMO, or a first-stash-CMO transmitted from a software management unit to a home of the processed data.
