# US 2025/0165406 A1 · Row hammer mitigation using a victim cache

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

- Number: US 2025/0165406 A1
- Document ID: US20250165406A1
- Status: Published application
- Kind: A1
- Application number: 19/030,174
- Filed: 2025-01-17
- Published: 2025-05-22
- Earliest claimed: 2022-06-02
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Ameen D. Akel; Shivam Swami
- Web page: https://patentgrep.com/patent/US20250165406A1

## CPC

- G06F 12/122: of the least frequently used [LFU] type, e.g. with individual count value
- G06F 12/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06F 12/0884: Parallel mode, e.g. in parallel with main memory or CPU
- G06F 12/123: with age lists, e.g. queue, most recently used [MRU] list or least recently used [LRU] list
- G06F 2212/1024: Latency reduction
- G06F 2212/1028: Power efficiency
- G06F 2212/1052: Security improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Row hammer attacks takes advantage of unintended and undesirable side effects of memory devices in which memory cells interact electrically between themselves by leaking their charges and possibly changing the contents of nearby memory rows that were not addressed in an original memory access. Row hammer attacks are mitigated by using a victim cache. Data is written to cache lines of a cache. A least recently used cache line of the cache is written to the victim cache.

## Claims

### Claim 1

A method, comprising:
writing data to a first cache;
writing a least recently used cache line from the first cache to a cache line of a second cache; and
writing a least recently used cache line from the second cache back to the second cache.

### Claim 2 (depends on 1)

The method of claim 1, wherein the second cache is a fully associative cache.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first cache is a set associative cache.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first cache and the second cache each operate according to a least recently used (LRU) caching policy.

### Claim 5 (depends on 1)

The method of claim 1, further comprising determining that the least recently used cache line from the second cache is not to be written to a memory device coupled to the first cache or the second cache, or both.

### Claim 6 (depends on 1)

The method of claim 1, further comprising writing the data to the cache lines of the first cache according to a compute express link (CXL) protocol.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first cache comprises a greater quantity of cache lines than the second cache.

### Claim 8

An apparatus, comprising:
a controller;
a first cache coupled to the controller;
a second cache coupled to the controller; and
a memory device coupled to the first cache or the second cache, or both via a memory channel, wherein the controller is configured to:
control writing of data to the first cache; and
control writing of a least recently used cache line of the first cache to the second cache; and
control writing of a least recently used cache line from the second cache back to the second cache.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the controller comprises a central controller portion of a memory controller that is configured to operate according to a Compute Express Link protocol.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the first cache and the second cache are resident on the central controller portion of the memory controller.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the second cache comprises at least 256 cache lines, and wherein the first cache contains at least twice as many cache lines as the second cache.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein:
the first cache is a set associative cache, and
the second cache is a fully associative cache.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein the first cache and the second cache are configured to operate according to a least recently used (LRU) scheme.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the controller is further configured to:
determine that a least recently used cache line from the second cache is not to be written to the memory device.

### Claim 15 (depends on 8)

The apparatus of claim 8, wherein the first cache is physically distinct from the second cache.

### Claim 16

A system, comprising:
a memory controller comprising:
a central controller;
a first cache resident on the central controller;
a second cache resident on the central controller; and
a memory device coupled to the memory controller, wherein the memory controller is configured to:
cause data to be written to the first cache according to a Compute Express Link (CXL) protocol; and
cause a least recently used cache line of the first cache to the second cache; and
cause a least recently used cache line from the second cache to be written back to the second cache.

### Claim 17 (depends on 16)

The system of claim 16, wherein the first cache or the second cache, or both are configured to operate according to a least recently used caching policy.

### Claim 18 (depends on 16)

The system of claim 16, wherein the second cache comprises a lesser quantity of cache lines than the first cache.

### Claim 19 (depends on 16)

The system of claim 16, wherein the memory controller is configured to utilize an instruction level parallelism scheme to cause the data to be written to the first cache.

### Claim 20 (depends on 16)

The system of claim 16, wherein the memory controller is further configured to:
determine that a least recently used cache line from the second cache is not to be written to the memory device.
