Read discards in a processor system with write-back caches
AssigneeImagination Technologies Limited
InventorRanjit J. Rozario
Life of this patent
Estimating the term…
Abstract
A system and method provide for a better way of managing a shared memory system. A multiprocessor system includes a first and second CPU, with each CPU having a private L1 cache. The system further includes a level 2 (L2) cache shared between the first CPU and the second CPU, and includes a memory coherency manager (CM) and an I/O device. The second CPU is configured to request ownership of a cache line in the L1 cache of the first CPU that is in a Modified state. Later, upon receiving a read discard command from the I/O device, the second CPU is configured to request the CM update the cache line from a Modified state to a Shared state.
Claims20
A multiprocessor system comprising:
- a first CPU with a private level 1 (L1) cache;
- a second CPU with a private L1 cache;
- a level 2 (L2) cache shared between the first CPU and the second CPU;
- a memory coherency manager (CM);
- an input/output (I/O) device;
- wherein the second CPU is configured to request ownership of a cache line in the L1 cache of the first CPU that is in a Modified state, and wherein the second CPU is configured to request the CM update the cache line from a Modified state to a Shared state upon receiving a read discard command from the I/O device.
A method comprising:
- receiving a read discard command in a CPU that requests a load of data contained in a cache line of an L1 cache privately controlled by the CPU, wherein the cache line is in a Modified state when the read discard command is received;
- changing the cache line from the Modified state to a Shared state after receiving the read discard command;
- and
- writing the cache line back to an L2 cache.
A multiprocessor processor system comprising:
- a first CPU with a private L1 cache;
- a second CPU with a private L1 cache;
- a L2 cache shared between the first CPU and the second CPU;
- a CM tracking states of cache lines in the L2;
- block read detection logic in the first CPU configured to detect that read shared instructions sent to the first CPU by the CM are performing a read of a block of data at least partially contained in a cache line of the L1 cache of the first CPU, wherein the block of data is stored at sequential addresses of memory, and wherein when the block read detection logic determines a block of data is being read the first CPU is configured to request the CM send the first CPU one or more read discard commands to read a remaining portion of the block of data.
Dependencies are inferred from the claim text.