# US 2021/0279175 A1 · Method and apparatus for smart store operations with conditional ownership requests

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

- Number: US 2021/0279175 A1
- Document ID: US20210279175A1
- Status: Published application
- Kind: A1
- Application number: 17/328,366
- Filed: 2021-05-24
- Published: 2021-09-09
- Earliest claimed: 2019-02-28
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Alejandro Duran Gonzalez; Francesc Guim Bernat
- Web page: https://patentgrep.com/patent/US20210279175A1

## CPC

- G06F 12/0815: Cache consistency protocols
- G06F 9/30072: {to perform conditional operations, e.g. using predicates or guards}
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0831: using a bus scheme, e.g. with bus monitoring or watching means
- G06F 12/0833: {in combination with broadcast means (e.g. for invalidation or updating)}
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Method and apparatus implementing smart store operations with conditional ownership requests. One aspect includes a method implemented in a multi-core processor, the method comprises: receiving a conditional read for ownership (CondRFO) from a requester in response to an execution of an instruction to modify a target cache line (CL) with a new value, the CondRFO identifying the target CL and the new value; determining from a local cache a local CL corresponding to the target CL; determining a local value from the local CL; comparing the local value with the new value; setting a coherency state of the local CL to (S)hared when the local value is same as the new value; setting the coherency state of the local CL to (I)nvalid when the local value is different than the new value; and sending a response and a copy of the local CL to the requester. Other embodiments include an apparatus configured to perform the actions of the methods.

## Claims

### Claim 1

An apparatus comprising:
decoder circuitry to decode a first instruction, the first instruction specifying a memory address and a new value to be stored to the memory address; and
execution circuitry to execute the decoded first instruction to perform one or more operations including to cause an update to a coherency state of a first cache line associated with the memory address in a remote cache,
wherein the coherency state of the first cache line is to update to a shared state when a first value stored in the first cache line is the same as the new value, and to update to an invalidate state when the first value is different from the new value.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the first instruction further specifies an offset to be applied to the memory address for determining the first value from the first cache line.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the one or more operations further include determining a cache miss for the memory address in a local cache.

### Claim 4 (depends on 3)

The apparatus of claim 3, further comprising a cache agent to transmit, to the remote cache, a conditional read for ownership request responsive to the cache miss, wherein the conditional read for ownership request specifies the memory address, the new value, and the offset.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the local cache is to store a copy of the first cache line received from the remote cache responsive to the conditional read for ownership request.

### Claim 6 (depends on 5)

The apparatus of claim 5, where in the copy of the first cache line received from the remote cache is associated with a shared state when the first value is the same as the new value and associated with an exclusive state when the first value is different from the new value.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the copy of the first cache line stored in the local cache is subsequently changed to the new value.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the coherency state of the copy of the first cache line in the local cache is to update to a modified state.

### Claim 9

A method comprising:
decoding a first instruction, the first instruction specifying a memory address and a new value to be stored to the memory address;
executing the decoded first instruction to cause an update to a coherency state of a first cache line associated with the memory address in a remote cache;
updating the coherency state of the first cache line to a shared state when a first value stored in the first cache line is the same as the new value; and
updating the coherency state of the first cache line to an invalidate state when the first value is different from the new value.

### Claim 10 (depends on 9)

The method of claim 9, wherein the first instruction further specifies an offset to be applied to the memory address for determining the first value from the first cache line.

### Claim 11 (depends on 10)

The method of claim 10, further comprising determining a cache miss for the memory address in a local cache.

### Claim 12 (depends on 11)

The method of claim 11, further comprising transmitting, to the remote cache, a conditional read for ownership request responsive to the cache miss, wherein the conditional read for ownership request specifies the memory address, the new value, and the offset.

### Claim 13 (depends on 12)

The method of claim 12, further comprising storing, in the local cache, a copy of the first cache line received from the remote cache responsive to the conditional read for ownership request.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
associating the copy of the first cache line received from the remote cache with a shared state when the first value is the same as the new value; and
associated the copy of the first cache line received from the remote cache with an exclusive state when the first value is different from the new value.

### Claim 15 (depends on 14)

The method of claim 14, further comprising subsequently updating the copy of the first cache line stored in the local cache with the new value.

### Claim 16 (depends on 15)

The method of claim 15, wherein changing the coherency state of the copy of the first cache line in the local cache to a modified state.

### Claim 17

An apparatus comprising:
decoder circuitry to decode a first instruction, the first instruction specifying a plurality of memory addresses and a plurality of new values, each of the plurality of new values corresponding one of the plurality of memory addresses into which the new value is to be stored; and
execution circuitry to execute the decoded first instruction to cause an update to a coherency state of each of a plurality of cache line in a remote cache, each of the plurality of the cache lines associated with one of the plurality of the memory addresses,
wherein for each of the plurality of cache lines in the remote cache, the coherency state is to update to a shared state when the new value to be stored to the memory address associated with the cache line is the same as a current value stored in the cache line, and to update to an invalidate state when the new value to be stored to the memory address associated with the cache line is different from the current value stored in the cache line.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the first instruction further specifies a plurality of offsets, each offset corresponding to one of the plurality of memory addresses and is to be applied to the corresponding memory address for determining the current value from the cache line associated with the corresponding memory address.

### Claim 19 (depends on 18)

The apparatus of claim 18, further comprising a cache agent to transmit, to the remote cache, a conditional read for ownership request for each one of the plurality of memory addresses that misses a local cache, wherein each of the conditional read for ownership requests specifies one of the memory addresses, a corresponding new value, and a corresponding offset.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the plurality of conditional read for ownership requests includes a first conditional read for ownership request specifying a first memory address, a first new value to be stored to the first memory address, and a first offset, and wherein the local cache is to receive, from the remote cache, a copy of a first cache line associated with the first memory address.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein the copy of the first cache line is associated with a shared state when a current value in the first cache line is the same as the first new value and associated with an exclusive state when the current value is different from the first new value.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein the copy of the first cache line stored in the local cache is subsequently updated with the first new value.

### Claim 23 (depends on 22)

The apparatus of claim 22, wherein the coherency state of the copy of the first cache line in the local cache is updated to a modified state.
