IP Library › Granted Patent US 12,242,388
Granted Patent B2
US 12,242,388 · App. 17/945,702 · Granted Mar 4, 2025

Row hammer mitigation using a victim cache

Inventors: Ameen D. Akel (Rancho Cordova, CA); Shivam Swami (Boise, ID)
Assignee: Micron Technology, Inc.
G06F12/122G06F12/0864G06F12/0884
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,242,388
App. No.
17/945,702
Granted
Mar 4, 2025
Kind
B2
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 (47)

1. A method, comprising:

writing data to cache lines of a first cache; and

performing a row hammer mitigation operation by 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.

2. The method of claim 1 , wherein:

the first cache is a set associative cache, and

the second cache is a fully associative cache.

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

4. The method of claim 1 , further comprising:

determining that a 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.

5. 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.

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

7. An apparatus, comprising:

a controller;

a first cache coupled to the controller, the first cache configured to operate according to a least recently used (LRU) scheme;

a second cache coupled to the controller, the second cache configured to operate according to a LRU scheme; and

a memory device coupled to the first cache or the second cache, or both via at least one memory channel, wherein the controller is configured to:

control writing of data to cache lines of the first cache; and

control writing of a least recently used cache line of the first cache to the second cache to perform a row hammer mitigation operation; and

control writing of a least recently used cache line from the second cache back to the second cache.

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

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

10. The apparatus of claim 7 , 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.

11. The apparatus of claim 7 , wherein:

the first cache is a set associative cache, and

the second cache is a fully associative cache.

12. The apparatus of claim 7 , 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.

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

14. A system, comprising:

a memory controller comprising:

a central controller;

a first cache comprises a first quantity of cache lines resident on the central controller;

a second cache comprising a second quantity of cache lines 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 performance of a row hammer mitigation operation that includes writing a least recently used cache line of the first cache to the second cache;

cause a least recently used cache line from the second cache to be written back to the second cache.

15. The system of claim 14 , wherein:

the first cache is a set associative cache, and

the second cache is a fully associative cache.

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

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

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

19. The system of claim 14 , 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.

20. The system of claim 14 , wherein the memory controller is configured to cause the data to be written to the first cache at a rate of at least 32 gigatransfers per second.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 15, 2022
From: AKEL, AMEEN D.; SWAMI, SHIVAM
To: MICRON TECHNOLOGY, INC.
Reel/Frame 061110/0096 →
Continuity (2)
Provisional Application 63348459 · Jun 2, 2022
Related Publication 20230393992A1 · Dec 7, 2023
References Cited (35)
US 5261066A · Jouppi · 1993 [cited by examiner]
US 5944815A · Witt · 1999 [cited by examiner]
US 6199142B1 · Saulsbury · 2001 [cited by examiner]
US 6223256B1 · Gaither · 2001 [cited by examiner]
US 6397296B1 · Werner · 2002 [cited by examiner]
US 6718439B1 · Jayavant · 2004 [cited by examiner]
US 8327072B2 · Guthrie · 2012 [cited by examiner]
US 9747971B2 · Bains et al. · 2017 [cited by applicant]
US 9792963B2 · Damle et al. · 2017 [cited by applicant]
US 20070239938A1 · Pong · 2007 [cited by examiner]
US 20140006703A1 · Bains et al. · 2014 [cited by applicant]
US 20150052309A1 · Philip · 2015 [cited by examiner]
US 20160224262A1 · Mandava et al. · 2016 [cited by applicant]
US 20170031831A1 · Bohra · 2017 [cited by examiner]
US 20200012600A1 · Konoth · 2020 [cited by examiner]
US 20200371964A1 · Bhoria · 2020 [cited by examiner]
US 20210064787A1 · Saileshwar · 2021 [cited by examiner]
US 20210081575A1 · Saileshwar · 2021 [cited by examiner]
US 20230079210A1 · Klimov · 2023 [cited by examiner]
US 20230350814A1 · Unterluggauer · 2023 [cited by examiner]
Birhanu ANVIL Software Based Protection Against Row Hammer 2016. [cited by examiner]
Chaudhuri Pseudo LIFO 2009. [cited by examiner]
Hilson CXL Protocol Adds Capabilities over PCIe 2020. [cited by examiner]
Jouppi Improving Direct Mapped Cache Performance 1990. [cited by examiner]
Konoth ZebRAM 2018. [cited by examiner]
Lipp Take A Way Exploring the Security Implications Way Predictors 2020. [cited by examiner]
Lou Understanding Rowhammer Attacks Unified Reference Framework 2019. [cited by examiner]
Mann How CXL may change the datacenter as we know it May 2022. [cited by examiner]
Seaborn Exploiting the DRAM rowhammer bug 2015. [cited by examiner]
Tobah SpecHammer Combining Spectre and Rowhammer May 2022. [cited by examiner]
Yan Attack Directories Not Caches 2019. [cited by examiner]
Smith_A Study of Instruction Cache Organizations 1983. [cited by examiner]
NPL Ridder SMASH 2021. [cited by examiner]
NPL Saileshwar Randomized Row Swap Mar. 2022. [cited by examiner]
NPL Zhang PThammer 2020. [cited by examiner]
Cited By (1)
US 12,748,707