Memory coherence with early store completion
Abstract
In an aspect, an apparatus comprises a writer agent, wherein the writer agent may obtain exclusive access to at least one coherence granule of shared memory with respect to one or more other agents. The writer agent may mark, at the writer agent, completion of a store of the at least one coherence granule prior to receipt of data for the at least one coherence granule from the shared memory. The writer agent may receive the data from the shared memory for the at least one coherence granule. The writer agent may store the data at a local cache of the writer agent. The writer agent may modify the data at the writer agent.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (22 — 5 Independent, 17 Dependent)
- Claim 1Independent Claim
A method executed by a writer agent to maintain memory coherence, comprising: obtaining exclusive access to at least one coherence granule of shared memory with respect to one or more other agents; marking, at the writer agent, completion of a store of the at least one coherence granule prior to receipt of data for the at least one coherence granule from the shared memory, wherein the marking causes snoop responses for the at least one coherence granule to be deferred until after data for the at least one coherence granule is received and modified at the writer agent; receiving the data from the shared memory for the at least one coherence granule; storing the data at a local cache of the writer agent; and modifying the data at the writer agent.
- Claim 2Depends on #1
The method of claim 1, further comprising: preventing access to the at least one coherence granule at the writer agent by the one or more other agents at least until the data has been modified at the writer agent.
- Claim 3Depends on #1
The method of claim 1, wherein: the shared memory comprises system memory, cache memory of a common cache, local cache memory of at least one agent of the one or more other agents, or any combination thereof.
- Claim 4Depends on #1
The method of claim 1, wherein: the data received from the shared memory is obtained under control of a home agent.
- Claim 5Depends on #1
The method of claim 1, wherein: the at least one coherence granule has a size smaller than a single cache line.
- Claim 6Independent Claim
A method executed by a writer agent to maintain memory coherence, comprising: requesting, from a home agent, exclusive access to at least one coherence granule of a shared memory, wherein the shared memory is configured for access to multiple agents; receiving, from the home agent, an indication that the writer agent has exclusive access to the at least one coherence granule of the shared memory, wherein the indicating causes snoop responses for the at least one coherence granule to be deferred until after data for the at least one coherence granule is received and modified at the writer agent; indicating, at the writer agent, completion of a store of the at least one coherence granule prior to receiving data stored in the at least one coherence granule of the shared memory; storing the data received from the shared memory in a local cache of the writer agent; and modifying, at the writer agent, the data stored in the local cache.
- Claim 7Depends on #6
The method of claim 6, further comprising: receiving, from the home agent, a snoop request for access to the at least one coherence granule in the local cache by at least one agent of the multiple agents; and responding to the snoop request only after modifying the data stored in the local cache.
- Claim 8Depends on #6
The method of claim 6, further comprising: executing, at the writer agent, write operations associated with data stores younger than data stores associated with the at least one coherence granule for which the writer agent has exclusive access.
- Claim 9Depends on #6
The method of claim 6, wherein: the at least one coherence granule has a same size as a single cache line.
- Claim 10Depends on #6
The method of claim 6, wherein: the at least one coherence granule has a size smaller than a single cache line.
- Claim 11Depends on #6
The method of claim 6, wherein: the data received from the shared memory is obtained from a cache of at least one agent of the multiple agents.
- Claim 12Depends on #6
The method of claim 6, is wherein: the shared memory comprises system memory, cache memory of a common cache, cache memory of at least one agent of the multiple agents, or any combination thereof.
- Claim 13Independent Claim
An apparatus comprising a writer agent, wherein the writer agent is configured to: obtain exclusive access to at least one coherence granule of shared memory with respect to one or more other agents, wherein the shared memory is configured for access by the one or more other agents; mark completion of a store of the at least one coherence granule prior to receipt of data for the at least one coherence granule from the shared memory, wherein the marking causes snoop responses for the at least one coherence granule to be deferred until after data for the at least one coherence granule is received and modified at the writer agent; receive the data from the shared memory for the at least one coherence granule; storing the data received from the shared memory at a local cache of the writer agent; and modifying the data at the writer agent.
- Claim 14Depends on #13
The apparatus of claim 13, wherein: obtaining exclusive access to the at least one coherence granule of the shared memory comprises: requesting, from a home agent, exclusive access to the at least one coherence granule of the shared memory; and receiving, from the home agent, an indication that the writer agent has exclusive access to the at least one coherence granule of the shared memory.
- Claim 15Depends on #13
The apparatus of claim 13, wherein the writer agent is further configured to: store the data received from the shared memory in a local cache.
- Claim 16Depends on #13
The apparatus of claim 13, wherein the writer agent is further configured to: receive, from a home agent, a snoop request for access to the at least one coherence granule stored in the local cache by at least one agent of the one or more other agents; and respond to the snoop request only after modifying the data stored in the local cache.
- Claim 17Depends on #13
The apparatus of claim 13, wherein the writer agent is further configured to: perform write operations associated with data stores younger than data stores associated with the at least one coherence granule for which the writer agent has exclusive access.
- Claim 18Depends on #13
The apparatus of claim 13, wherein: the local cache is accessible to at least one of the one or more other agents.
- Claim 19Depends on #13
The apparatus of claim 13, wherein: the writer agent is configured to obtain the data from the shared memory under control of a home agent.
- Claim 20Depends on #13
The apparatus of claim 13, wherein: the shared memory includes one or more local caches at one or more of the other agents.
- Claim 21Independent Claim
A writer agent, comprising: means for obtaining exclusive access to at least one coherence granule of shared memory with respect to one or more other agents; means for marking, at the writer agent, completion of a store of the at least one coherence granule prior to receipt of data for the at least one coherence granule from the shared memory, wherein the marking causes snoop responses for the at least one coherence granule to be deferred until after data for the at least one coherence granule is received and modified at the writer agent; means for receiving the data from the shared memory for the at least one coherence granule; means for storing the data at a local cache of the writer agent; and means for modifying the data at the writer agent.
- Claim 22Independent Claim
A non-transitory computer-readable medium storing computer-executable instructions that, when executed by a writer agent, cause the writer agent to: obtain exclusive access to at least one coherence granule of shared memory with respect to one or more other agents; mark, at the writer agent, completion of a store of the at least one coherence granule prior to receipt of data for the at least one coherence granule from the shared memory; receive the data from the shared memory for the at least one coherence granule; store the data at a local cache of the writer agent; and modify the data at the writer agent.
Technical Overview & Description
BACKGROUND OF THE DISCLOSURE 1. Field of the Disclosure Aspects of the disclosure relate generally to memory coherence. More specifically, the disclosure relates, but not exclusively, to early store completion in maintaining memory coherence. 2. Description of the Related Art In a multi-processor system, multiple processors may access and modify the same memory location. Memory coherence ensures that all processors have a consistent view of the memory. For example, if one processor updates a value in memory, all other processors should see that updated value rather than an outdated one. When processors use caches to store frequently accessed data, maintaining memory coherence becomes challenging. Different processors might have different cached copies of the same memory location. Cache coherence protocols ensure that any changes made to the cached data by one processor are reflected across all other caches, keeping the data consistent. SUMMARY The following presents a simplified summary relating to one or more aspects disclosed herein. Thus, the following summary should not be considered an extensive overview relating to all contemplated aspects, nor should the following summary be considered to identify key or critical elements relating to all contemplated aspects or to delineate the scope associated with any particular aspect. Accordingly, the following summary has the sole purpose to present certain concepts relating to one or more aspects relating to the mechanisms disclosed herein in a simplified form to precede the detailed description presented below. In an aspect, a method executed by a writer agent to maintain memory coherence includes obtaining exclusive access to at least one coherence granule of shared memory with respect to one or more other agents; marking, at the writer agent, completion of a store of the at least one coherence granule prior to receipt of data for the at least one coherence granule from the shared memory; receiving the data from the s
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
| Patent | Title | Year | Citations |
|---|