# US 2009/0276578 A1 · Cache coherency protocol in a data processing system

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

- Number: US 2009/0276578 A1
- Document ID: US20090276578A1
- Status: Published application
- Kind: A1
- Application number: 12/112,502
- Filed: 2008-04-30
- Published: 2009-11-05
- Earliest claimed: 2008-04-30
- Assignees: Freescale Semiconductor, Inc.
- Inventors: William C. Moyer
- Web page: https://patentgrep.com/patent/US20090276578A1

## CPC

- G06F 12/0831: using a bus scheme, e.g. with bus monitoring or watching means
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data processing system includes a first master having a cache, a second master, a memory operably coupled to the first master and the second master via a system interconnect. The cache includes a cache controller which implements a set of cache coherency states for data units of the cache. The cache coherency states include an invalid state; an unmodified non-coherent state indicating that data in a data unit of the cache has not been modified and is not guaranteed to be coherent with data in at least one other storage device of the data processing system, and an unmodified coherent state indicating that the data of the data unit has not been modified and is coherent with data in the at least one other storage device of the data processing system.

## Claims

### Claim 1

A data processing system, comprising:
a first master, the first master including a cache;
a second master;
a memory, the memory operably coupled to the first master and the second master via a system interconnect;
wherein the cache includes a cache controller, the cache controller implementing a set of cache coherency states for data units of the cache, the cache coherency states including:
an invalid state;
an unmodified non-coherent state, the unmodified coherent state indicating that data in a data unit of the cache has not been modified and is not guaranteed to be coherent with data in at least one other storage device of the data processing system; and
an unmodified coherent state, the unmodified coherent state indicating that the data of the data unit has not been modified and is coherent with data in the at least one other storage device of the data processing system.

### Claim 2 (depends on 1)

The data processing system of claim 1 wherein a transition from the invalid state to the unmodified non-coherent state of a data unit of the cache is made in response to a read miss to the cache wherein the data of the read miss is written to the data unit, wherein no cache coherency operation is performed on any other cache in the data processing system in response to the read miss.

### Claim 3 (depends on 1)

The data processing system of claim 1 wherein:
in response to a write cache miss, a transition from the invalid state to the unmodified non-coherent state of a data unit of the cache where the data of the write miss is written, does not generate a cache coherency operation in the other caches in the data processing system.

### Claim 4 (depends on 1)

The data processing system of claim 1 wherein a transition from the invalid state to the unmodified non-coherent state of a data unit of the cache does not cause a look up operation into other caches of the data processing system to determine whether those caches contain a memory address corresponding to the data being written to the data unit.

### Claim 5 (depends on 1)

The data processing system of claim 1 wherein when a data unit of the cache is in the unmodified non-coherent state, snoop transactions directed towards that data unit do not result in a change of coherency state for that data unit.

### Claim 6 (depends on 1)

The data processing system of claim 1, wherein in response to a cache miss in which the data of the cache miss is written to a data unit of the cache:
a transition to the unmodified non-coherent state from the invalid state of the data unit of the cache is made in response to a write through required attribute indicating that a write through is not required for the data written to the data unit;
a transition to the unmodified coherent state from the invalid state of the data unit of the cache is made in response to the write through required attribute indicating that a write through is required for the data written to the data unit of the cache.

### Claim 7 (depends on 6)

The data processing system of claim 6 wherein:
the cache miss is a write miss;
the data of the write miss is not written in a subsequent copyback bus transaction to the memory if the write through required attribute indicates that a write through is required for the data of the write miss.

### Claim 8 (depends on 1)

The data processing system of claim 1 wherein the cache coherency states further include:
a modified non-coherent state, the modified non-coherent state indicating that data in a data unit of the cache has been modified and is not guaranteed to be coherent with the data in the at least one other storage device of the data processing system.

### Claim 9 (depends on 8)

The data processing system of claim 8 wherein a transition from the unmodified non coherent state to the modified non-coherent state of a data unit of the cache is made in response to a write hit to the data of the data unit.

### Claim 10 (depends on 9)

The data processing system of claim 9 wherein:
when in the unmodified coherent state, a write hit to data of a data unit of the cache generates a write through of the data to the memory;
when in the unmodified non-coherent state, a write hit to the data of a data unit of the cache does not generate a write through operation of the data.

### Claim 11 (depends on 8)

The data processing system of claim 8 wherein a transition from the modified non-coherent state to the unmodified non-coherent state of a data unit of the cache is made in response to a flush cache operation command for the data unit without an invalidate cache operation command for the data unit and a write through required attribute indicates that a write through is not required for the data of the data unit.

### Claim 12 (depends on 8)

The data processing system of claim 8 wherein a transition from the modified non-coherent state to the unmodified coherent state of a data unit of the cache is made in response to a flush cache operation command for the data unit and a write through required attribute of the data indicates that a write through is required for the data.

### Claim 13 (depends on 8)

The data processing system of claim 8 wherein when a write through required attribute for data in a data unit indicates that a write through is not required for the data, a transition from the modified non-coherent state to the invalid state of the data unit of the cache is made in response to:
a flush cache operation command for the data unit without an invalidate cache operation command for the data unit, wherein the data is written to the memory with a copyback bus transaction in response to the flush cache operation command; or
an invalidate cache operation command for the data unit.

### Claim 14 (depends on 1)

The data processing system of claim 1 wherein when a write through required attribute indicates that a write through is required for data of a data unit of the cache, a transition to the unmodified coherent state from the unmodified non-coherent state of the data unit of the cache is made in response to a flush cache operation command for the data unit without an invalidate cache operation command for the data unit.

### Claim 15 (depends on 1)

The data processing system of claim 1 wherein when a write through required attribute indicates that a write through is not required for the data, a transition to the unmodified non-coherent state from the unmodified coherent state of a data unit of the cache is made in response to a flush cache operation command for the data unit without a invalidate cache operation command for the data unit.

### Claim 16 (depends on 1)

The data processing system of claim 1 wherein a transition from each of the unmodified non-coherent state and the unmodified coherent state to the invalid state of a data unit of the cache is made in response to an invalidate cache operation command for the data unit.

### Claim 17

A method of operating a data processing system, the method comprising:
performing a write transaction of data by a first master that generates a write miss to a cache of the data processing system, the first master is operably coupled to a system interconnect, the data processing system including a second master and a memory operably coupled to the system interconnect;
in response to the write miss, writing the data to the cache;
performing a write through of the data to the memory if a write though required attribute for the data of the write transaction indicates that a write through of the data is required, wherein no write through of the data is performed if the write though required attribute indicates that no write through of the data is required;
searching into at least one other cache of the data processing system to determine whether the at least one other cache contains a memory address corresponding to the write transaction if the write through required attribute indicates that a write through of the data is required, wherein no searching of the at least one other cache is performed if the write through required attribute indicates that no write through of the data is required.

### Claim 18

A data processing system, comprising:
a processor, the processor including a cache;
a second master;
a memory, the memory operably coupled to the processor and the second master via a system interconnect;
memory attribute logic for providing a plurality of attributes associated with locations of the memory, wherein one of the plurality of attributes is a write through required attribute;
wherein the cache includes a cache controller, the cache controller including circuitry implementing a set of cache coherency states for data units of the cache, wherein the cache controller utilizes the write through required attribute for determining whether memory coherency is required for one or more locations within the memory.

### Claim 19 (depends on 18)

The data system of claim 18 further comprising:
a cache coherency manager operably coupled to the system interconnect, wherein when the write through required attribute indicates that memory coherency is required for a write transaction, the cache coherency manager indicates to other caches of the data system to perform a cache coherency lookup operation for a memory address of the write transaction.

### Claim 20 (depends on 19)

The data system of claim 19 wherein when the write through required attribute indicates that memory coherency is not required for the write transaction, no memory coherency transaction in the data system is perform for the write transaction.
