# US 10,073,776 B2 · Shadow tag memory to monitor state of cachelines at different cache level

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

- Number: US 10,073,776 B2
- Document ID: US10073776B2
- Status: Granted
- Kind: B2
- Application number: 15/190,607
- Filed: 2016-06-23
- Published: 2017-12-28
- Granted: 2018-09-11
- Earliest claimed: 2016-06-23
- Assignees: Advanced Micro Device, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Sriram Srinivasan; William L. Walker
- Web page: https://patentgrep.com/patent/US10073776B2

## CPC

- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0815: Cache consistency protocols
- G06F 12/084: with a shared cache
- G06F 12/0842: for multiprocessing or multitasking
- G06F 12/0846: Cache with multiple tag or data arrays being simultaneously accessible
- G06F 12/0831: using a bus scheme, e.g. with bus monitoring or watching means
- G06F 2212/1016: Performance improvement
- G06F 2212/6042: Allocation of cache space to multiple users or processors
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processing system includes a plurality of processor cores and a plurality of private caches. Each private cache is associated with a corresponding processor core of the plurality of processor cores and includes a corresponding first set of cachelines. The processing system further includes a shared cache shared by the plurality of processor cores. The shared cache includes a second set of cachelines, and a shadow tag memory including a plurality of entries, each entry storing state information for a corresponding cacheline of the first set of cachelines of one of the private caches.

## Claims

### Claim 1

A processing system comprising:
a plurality of processor cores;
a plurality of private caches, each private cache associated with a corresponding processor core of the plurality of processor cores and comprising a corresponding set of cachelines, the plurality of private caches configured to store coherency states for the cachelines of the corresponding sets of cachelines in accordance with a first set of coherency states; and
a shared cache shared by the plurality of processor cores, the shared cache comprising:
a second set of cachelines; and
a shadow tag memory comprising a plurality of entries, each entry storing state and address information for a corresponding cacheline of the set of cachelines of one of the private caches, the shadow tag memory configured to store coherency states for the cachelines of the sets of cachelines of the plurality of private caches in accordance with a second set of coherency states, the second set of coherency states comprising a superset of the first set of coherency states, wherein the state information comprises coherency states for at least a subset of the cachelines of the plurality of private caches in accordance with the second set of coherency states.

### Claim 2 (depends on 1)

The processing system of claim 1, wherein the second set of coherency states includes a coherency state that signals that an associated cacheline was obtained from one of the plurality of private caches that had exclusive access to the associated cacheline.

### Claim 3 (depends on 1)

The processing system of claim 1, wherein the second set of coherency states includes a coherency state that signals that an associated cacheline was obtained in modified form from one of the plurality of private caches that had exclusive access to the associated cacheline.

### Claim 4 (depends on 1)

The processing system of claim 1, wherein the shared cache further comprises:
a controller to filter cache probes based on the shadow tag memory.

### Claim 5 (depends on 4)

The processing system of claim 4, wherein the controller is to filter cache probes by:
searching the shadow tag memory to determine whether the shadow tag memory has a valid entry for a cacheline associated with a cache probe; and
responsive to determining the shadow tag memory does not have a valid entry for the cacheline, signaling a cache miss in response to the cache probe.

### Claim 6 (depends on 4)

The processing system of claim 4, wherein the controller is to filter cache probes further by:
responsive to determining the shadow tag memory has a valid entry for the cacheline, identifying the private cache associated with the valid entry and forwarding the cache probe to the identified private cache.

### Claim 7 (depends on 1)

The processing system of claim 1, wherein:
the plurality of private caches comprises a plurality of level 2 (L2) caches; and
the shared cache comprises a level 3 (L3) cache.

### Claim 8

A processing system comprising:
a plurality of processor cores;
a plurality of private caches, each private cache associated with a corresponding processor core of the plurality of processor cores and comprising a corresponding set of cachelines; and
a shared cache shared by the plurality of processor cores, the shared cache comprising:
a second set of cachelines: and
a shadow tag memory comprising a plurality of entries, each entry storing state and address information for a corresponding cacheline of the set of cachelines of one of the private caches
wherein:
responsive to determining that a fill request for a private cache will result in eviction of a victim cacheline from the private cache, the private cache is to transmit to the shared cache a single request packet that identifies both the fill request to be performed and a victim request to store the victim cacheline that is to be evicted to the shared cache; and
responsive to receiving the single request packet, the shared cache is to buffer the fill request in a fill request queue and to buffer the victim request in a victim request queue.

### Claim 9

A method in a processing system including a plurality of private caches associated with a plurality of processor cores and a shared cache shared by the plurality of processor cores, the method comprising:
maintaining, at the plurality of private caches, coherency information for cachelines stored at the plurality of private caches in accordance with a first set of coherency states; and
maintaining, at a shadow tag memory of the shared cache, coherency information for the cachelines stored at the plurality of private caches in accordance with a second set of coherency states, the second set of coherency states comprising a superset of the first set of coherency states.

### Claim 10 (depends on 9)

The method of claim 9, wherein the second set of coherency states includes a coherency state that signals that an associated cacheline was obtained from one of the plurality of private caches that had exclusive access to the associated cacheline.

### Claim 11 (depends on 9)

The method of claim 9, wherein the second set of coherency states includes a coherency state that signals that an associated cacheline was obtained in modified form from one of the plurality of private caches that had exclusive access to the associated cacheline.

### Claim 12 (depends on 9)

The method of claim 9, further comprising:
filtering, at the shared cache, cache probes based on the shadow tag memory.

### Claim 13 (depends on 12)

The method of claim 12, wherein filtering cache probes comprises:
searching the shadow tag memory to determine whether the shadow tag memory has a valid entry for a cacheline associated with a cache probe; and
responsive to determining the shadow tag memory does not have a valid entry for the cacheline, signaling a cache miss in response to the cache probe.

### Claim 14 (depends on 13)

The method of claim 13, wherein filtering cache probes further comprises:
responsive to determining the shadow tag memory has a valid entry for the cacheline, identifying the private cache associated with the valid entry and forwarding the cache probe to the identified private cache.

### Claim 15 (depends on 9)

The method of claim 9, further comprising:
responsive to determining that a fill request for a private cache will result in eviction of a victim cacheline from the private cache, transmitting from the private cache to the shared cache a single request packet that identifies both the fill request to be performed and a victim request to store the victim cacheline that is to be evicted to the shared cache; and
responsive to receiving the single request packet, buffering, at the shared cache, the fill request in a fill request queue and buffering the victim request in a victim request queue.

### Claim 16 (depends on 9)

The method of claim 9, further comprising:
searching the shadow tag memory to determine whether the shadow tag memory has a valid entry for a cacheline being evicted from the shared cache;
reporting the cacheline as being evicted to a memory controller responsive to determining there is no valid entry for the cacheline; and
refraining from reporting the cacheline as being evicted to the memory controller responsive to determining there is a valid entry for the cacheline.

### Claim 17

A processing system comprising:
a plurality of private caches, each private cache private to a corresponding processor core of a set of processor cores, each of the private caches configured to store coherency states for cachelines of the corresponding private cache in accordance with a first set of coherency states; and
a shared cache shared by the set of processor cores, wherein the shared cache is maintained as data exclusive relative to the plurality of private caches and tag inclusive relative to the plurality of private caches, wherein the shared cache comprises:
a shadow tag memory that stores, in accordance with a second set of coherency states, state information representative of tag information stored by the plurality of private caches, the second set of coherency states comprising a superset of the first set of coherency states, wherein the state information comprises coherency states for at least a subset of the cachelines of the plurality of private caches.

### Claim 18 (depends on 17)

The processing system of claim 17, wherein the second set of coherency states includes a coherency state that signals that an associated cacheline was obtained from one of the plurality of private caches that had exclusive access to the associated cacheline.

### Claim 19 (depends on 17)

The processing system of claim 17, wherein the second set of coherency states includes a coherency state that signals that an associated cacheline was obtained in modified form from one of the plurality of private caches that had exclusive access to the associated cacheline.

### Claim 20 (depends on 17)

The processing system of claim 17, wherein the shared cache further comprises:
a controller to filter cache probes based on the shadow tag memory.

### Claim 21 (depends on 20)

The processing system of claim 20, wherein the controller is to filter cache probes by:
searching the shadow tag memory to determine whether the shadow tag memory has a valid entry for a cacheline associated with a cache probe; and
responsive to determining the shadow tag memory does not have a valid entry for the cacheline, signaling a cache miss in response to the cache probe.

### Claim 22 (depends on 21)

The processing system of claim 21, wherein the controller is to filter cache probes further by:
responsive to determining the shadow tag memory has a valid entry for the cacheline, identifying the private cache associated with the valid entry and forwarding the cache probe to the identified private cache.
