# US 2021/0173789 A1 · 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 2021/0173789 A1
- Document ID: US20210173789A1
- Status: Published application
- Kind: A1
- Application number: 17/181,879
- Filed: 2021-02-22
- Published: 2021-06-10
- 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/US20210173789A1

## 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 at position 1

-20. (canceled)

### Claim 21

A method, comprising:
determining that first data is to be evicted from a first cache; and
transferring the first data from the first cache to a way of a second cache indicated by location information that is stored prior to determining that the first data is to be evicted from the first cache.

### Claim 22 (depends on 21)

The method of claim 21, wherein the first data is stored at the way of the second cache indicated by the location information prior to the first data being stored at the first cache.

### Claim 23 (depends on 22)

The method of claim 22, further comprising:
prior to determining that the first data is to be evicted from the first cache, transferring the first data from the way of a second cache to the first cache; and
storing, in a portion of bits of the first data at the first cache, the location information indicating the way of the second cache.

### Claim 24 (depends on 23)

The method of claim 23, wherein storing the location information comprises:
generating a location tag that includes the location information indicating the way of the second cache.

### Claim 25 (depends on 24)

The method of claim 24, wherein generating the location tag comprises modifying status bits of the first data to include the location tag, wherein the status bits indicate a memory coherence status of the first data.

### Claim 26 (depends on 24)

The method of claim 24, wherein storing the location information comprises:
storing the location tag in a location tag buffer; and
storing the location tag with the first data at the first cache.

### Claim 27 (depends on 21)

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

### Claim 28

A method, comprising:
determining that first data is to be evicted from a first cache; and
in response to determining that the first data is to be evicted from the first cache, transferring the first data to an entry of a second cache indicated by a location tag that is stored at the first cache.

### Claim 29 (depends on 28)

The method of claim 28, further comprising:
before determining that the first data is to be evicted from the first cache, transferring the first data to the first cache; and
storing, in the first cache, the location tag with the first data.

### Claim 30 (depends on 29)

The method of claim 29, further comprising:
before transferring the first data from the second cache to the first cache, generating, in response to a memory access request for the first data located in the second cache, the location tag indicating the entry of the second cache that stores the first data.

### Claim 31 (depends on 30)

The method of claim 30, wherein generating the location tag comprises:
storing the location tag in a portion of bits of the first data, wherein the location tag indicates a set and way of the entry of the second cache.

### Claim 32 (depends on 31)

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

### Claim 33 (depends on 28)

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

### Claim 34

A device, comprising:
a first cache;
a second cache; and
a cache controller, associated with the second cache, the cache controller configured to:
determine that first data is to be evicted from the first cache; and
in response to determining that the first data is to be evicted from the first cache, transferring the first data from the first cache to an entry of the second cache indicated by location information stored at the first cache.

### Claim 35 (depends on 34)

The device of claim 34, wherein the cache controller is further configured to:
prior to determining that the first data is to be evicted from the first cache, transfer the first data from the entry in the second cache to the first cache.

### Claim 36 (depends on 35)

The device of claim 35, wherein the cache controller is further configured to:
prior to determining that the first data is to be evicted from the first cache, store, in the first cache, the location information indicating the entry of the second cache.

### Claim 37 (depends on 36)

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

### Claim 38 (depends on 36)

The device of claim 36, wherein the cache controller is further configured to:
store the location information in a subset of bits of the first data.

### Claim 39 (depends on 36)

The device of claim 36, wherein the cache controller is further configured to:
store the location information in a subset of status bits of the first data, wherein the status bits indicate a coherency status of the data.

### Claim 40 (depends on 34)

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