# US 10,956,339 B2 · System and method for storing cache location information for cache entry transfer

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

- Number: US 10,956,339 B2
- Document ID: US10956339B2
- Status: Granted
- Kind: B2
- Application number: 15/210,846
- Filed: 2016-07-14
- Published: 2018-01-18
- Granted: 2021-03-23
- Earliest claimed: 2016-07-14
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Paul James Moyer
- Web page: https://patentgrep.com/patent/US10956339B2

## CPC

- G06F 12/0895: of parts of caches, e.g. directory or tag array
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0866: for peripheral storage systems, e.g. disk cache
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 12/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- G06F 12/0815: Cache consistency protocols
- G06F 2212/1016: Performance improvement
- G06F 2212/1028: Power efficiency
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A cache stores, along with data that is being transferred from a higher level cache to a lower level cache, information indicating the higher level cache location from which the data was transferred. Upon receiving a request for data that is stored at the location in the higher level cache, a cache controller stores the higher level cache location information in a status tag of the data. The cache controller then transfers the data with the status tag indicating the higher level cache location to a lower level cache. When the data is subsequently updated or evicted from the lower level cache, the cache controller reads the status tag location information and transfers the data back to the location in the higher level cache from which it was originally transferred.

## Claims

### Claim 1

A method, comprising:
in response to a cache miss at a first cache, transferring first data from an entry of a second cache to the first cache;
storing, in the first cache, location information indicating the entry of the second cache in a portion of bits of the first data; and
in response to receiving updated data at the first cache, transferring the updated data from the first cache to the same entry of the second cache indicated by the stored location information; or
in response to evicting the first data from the first cache, transferring the first data from the first cache to the same entry of the second cache indicated by the stored location information.

### Claim 2 (depends on 1)

The method of claim 1, wherein storing the location information comprises generating a location tag with the location information indicating the entry of the second cache.

### Claim 3 (depends on 2)

The method of claim 2, wherein generating the location tag comprises modifying a status tag indicating a memory coherence status of the first data.

### Claim 4 (depends on 2)

The method of claim 2, further comprising storing the location tag in a location tag buffer.

### Claim 5 (depends on 2)

The method of claim 2, further comprising storing the location tag with the first data at the first cache.

### Claim 6 (depends on 1)

The method of claim 1, further comprising modifying the first data in response to receiving the updated data before transferring the updated data from the first cache to the entry of the second cache.

### Claim 7 (depends on 1)

The method of claim 1, wherein the second cache is inclusive of the first cache.

### Claim 8 (depends on 1)

The method of claim 1, wherein:
storing the location information includes a cache controller storing the location information in a status tag of the bits of the first data;
the location information includes a set and a way of the second cache; and
the second cache is divided into a number of sets, each set including a number of ways, and each way corresponding to a cache entry that stores a cache line.

### Claim 9

A method, comprising:
in response to a memory access request for first data located in a first cache, generating a location tag indicating an entry of the first cache that stores the first data;
storing the location tag in a portion of bits of the first data;
transferring the first data and the location tag to a second cache;
storing, in the second cache, the location tag with the first data; and
in response to receiving, at the second cache, updated data for the first data, transferring the updated data back to the entry of the first cache indicated by the location tag.

### Claim 10 (depends on 9)

The method of claim 9, wherein generating the location tag comprises modifying a status tag indicating a memory coherence status of the first data.

### Claim 11 (depends on 9)

The method of claim 9, wherein generating the location tag comprises storing an index and way of the entry of the first cache.

### Claim 12 (depends on 9)

The method of claim 9, further comprising storing the location tag in a location tag buffer in response to transferring the first data and the location tag to the second cache.

### Claim 13 (depends on 9)

The method of claim 9, wherein the first cache is inclusive of the second cache.

### Claim 14

A device, comprising:
a first cache;
a second cache; and
a cache controller, associated with the second cache, the cache controller configured to:
transfer first data from an entry in the second cache to the first cache;
store, in the first cache, location information indicating the entry of the second cache in a portion of bits of the first data; and
in response to receiving updated data at the first cache for the first data, transferring the updated data from the first cache to the entry of the second cache indicated by the stored location information in the portion of bits of the first data.

### Claim 15 (depends on 14)

The device of claim 14, wherein the cache controller is further configured to update the first data in response to receiving the updated data prior to transferring the updated data from the first cache to a set and way in the second cache indicated by the stored location information.

### Claim 16 (depends on 14)

The device of claim 14, wherein the second cache is inclusive of the first cache.

### Claim 17 (depends on 14)

The device of claim 14, wherein the cache controller is configured to store the location information in a location tag buffer.

### Claim 18 (depends on 14)

The device of claim 14, wherein the cache controller is configured to store the location information in a status tag indicating a coherency status of the data.
