Row tracking for row hammer mitigation
By using multiple counters in the memory subsystem to track the number of accesses to a memory row and the command relationship within the refresh window, the loopholes in row hammer attack detection and defense in the existing technology are solved, and effective protection and integrity of memory data are achieved. Assure.
Patent Information
- Application Number
- CN202380024360.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-08-28
- Filing Date
- 2023-08-28
- Publication Date
- 2024-10-15
AI Technical Summary
Existing memory subsystems have loopholes in detection and defense when facing row hammer attacks. Existing row hammer detector algorithms may not be able to completely prevent data corruption, and there is a risk of data loss in frequently accessed address tracking and refresh mechanisms. .
Row hammering attacks are mitigated by implementing multiple counters in the backend of the memory subsystem to track the number of accesses to a memory row and determine when to refresh the memory row during the duration between receipt of the activate command and the precharge command, Ensure data is retained between refresh windows.
Effectively prevent row hammer attacks, reduce the risk of data loss, ensure the integrity and reliability of memory data, and improve the security of the memory subsystem.
Smart Images

Figure CN118786484A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate generally to memory subsystems, and more particularly, to tracking rows for row hammer mitigation. Background Art
[0002] The memory subsystem may include one or more memory devices that store data. The memory devices may be, for example, non-volatile memory devices and volatile memory devices. In general, the host system may utilize the memory subsystem to store data at the memory devices and retrieve data from the memory devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0003] The present disclosure will be more fully understood from the detailed description given below and the accompanying drawings of various embodiments of the present disclosure.
[0004] Figure 1A is a block diagram of a computing system including a memory subsystem according to some embodiments of the present disclosure.
[0005] Figure 1B is a block diagram of a back end of a memory subsystem according to some embodiments of the present disclosure.
[0006] Figure 2 is a block diagram of a back end of a memory subsystem including a row hammer controller according to some embodiments of the present disclosure.
[0007] Figure 3 A block diagram of a back-end memory according to some embodiments of the present disclosure.
[0008] Figure 4 is a flow chart corresponding to a row hammer controller according to some embodiments of the present disclosure.
[0009] Figure 5 is a flow chart corresponding to a row hammer controller according to some embodiments of the present disclosure.
[0010] Fig. 6A is a flow chart corresponding to a row hammer controller according to some embodiments of the present disclosure.
[0011] Figure 6B is a flow chart corresponding to a row hammer controller according to some embodiments of the present disclosure.
[0012] Figure 7 is a block diagram of a back end of a memory subsystem according to some embodiments of the present disclosure.
[0013] Figure 8 is a flowchart corresponding to a method for refreshing a row according to some embodiments of the present disclosure.
[0014] Fig. 9is a block diagram of an example computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION
[0015] Aspects of the present disclosure relate to tracking rows for row hammering, and more particularly to a memory subsystem including a controller to mitigate row hammering attacks. The memory subsystem may be a storage system, a storage device, a memory module, or a combination thereof. An example of a memory subsystem is a storage system, such as a solid state drive (SSD). Examples of storage devices and memory modules are described below in conjunction with FIG. 1 and elsewhere. In general, a host system may utilize a memory subsystem that includes one or more components, such as a memory device that stores data. The host system may provide data for storage at the memory subsystem, and may request retrieval of data from the memory subsystem.
[0016] The front end (e.g., front end interface) and / or back end of a memory subsystem may include row hammer mitigation mechanisms to mitigate row hammer attacks. In various memory subsystems, the front end of the memory subsystem may be connected to a media controller, which may then access various media types, including DRAM, 3DXP, and / or NAND, etc. (e.g., emerging memories). The media controller may be referred to as the back end of the memory subsystem.
[0017] As used herein, a row hammer attack accesses memory cells in a row of a memory array to leak charge stored in the memory cells of the row to memory cells of an adjacent row. For example, memory cells corresponding to a particular row may be affected by a row hammer attack. Row hammering refers to an undesired change in the capacitor voltage of a memory cell that corresponds to a row adjacent to a frequently accessed row. A row hammer attack may be used to intentionally alter data stored in a memory by repeatedly accessing a particular row in rapid succession. The goal of a row hammer attack may be to corrupt data in an adjacent row that is inaccessible.
[0018] For example, a first row adjacent to a second row may be repeatedly accessed over a period of time. Repeated access to the first row may leak voltage from memory cells coupled to the second row to memory cells coupled to the first row. The voltage leakage may cause data corruption in the data stored in the memory cells coupled to the second row. The row hammering attack corrupts data stored in memory cells coupled to the second row by activating memory cells coupled to the first row, where the first row is adjacent to the second row. In some examples, the first row and the second row may not be adjacent, but may be separated from each other by several rows.
[0019] As used herein, memory cells and / or rows may be adjacent to one another if they are physically located close to one another in a memory array, or if there is sufficient physical proximity to allow charge to leak from a memory cell coupled to one row to a different memory cell coupled to a different row. Memory cells of one row may be adjacent to memory cells of a different row if the addresses of the rows are sequential and / or if no other rows exist between adjacent rows. Memory cells may be adjacent to one another if they are coupled to rows that are adjacent to one another.
[0020] Due to various physical effects of shrinking manufacturing process geometries, the row hammer threshold (RHT) of a memory subsystem has been reduced to a level where an application running on a host computer system may inadvertently corrupt its own data or the data of a different application sharing the same system memory. As used herein, the RHT is the threshold amount of access to a row of memory cells after which the memory cells in the row leak charge.
[0021] Various row hammer detector algorithms (e.g., address sampling, priority content addressable memory) may be probabilistic and therefore cannot guarantee perfect (e.g., complete, accurate, and / or precise) protection against data corruption. If an intruder knows enough details about these existing row hammer detection methods and their implementation mechanisms, then the intruder can exploit their weaknesses to bypass or subvert them and corrupt data. Individual row hammer detector algorithm implementations require large amounts of memory and operating power, which are too high to be of practical use. Various row hammer detector algorithms can also track accesses to rows within a given time window. However, data may be lost between the end of each window and the beginning of the next window, which may provide a vulnerability to row hammer attacks.
[0022] Row hammer detection may include determining which addresses of the memory subsystem are most frequently accessed and refreshing the identified addresses. Determining which addresses are most frequently accessed may include storing each address that is accessed and calculating which addresses are accessed the most. However, given memory limitations, it may not be possible to store every address that is accessed. Due to memory limitations, it may also not be possible to keep a count of each address received, particularly if each address received is a different address. Mesa-Grise (e.g., a Mesa-Grise algorithm) may be used to identify the most frequent items in a finite data stream. For example, Mesa-Grise may be used to identify elements that appear more than a predefined number of times. For example, Mesa-Grise may be used to identify elements (e.g., addresses) that appear more than five times in an address stream received from a host.
[0023] The addresses may be stored in a dictionary to detect vulnerability to row hammering attacks. If the dictionary contains the address, then we can store a count for the given address. If the dictionary does not contain the address and there is space in the dictionary, then the address may be added to the dictionary and the corresponding count may be set to 1. However, the count may be reset after a threshold duration. Resetting the count may result in data loss, which may provide vulnerability to row hammering attacks.
[0024] Aspects of the present disclosure address the above and other shortcomings by implementing a control mechanism in the back end of a memory subsystem to refresh rows of memory. Aspects of the present disclosure may utilize multiple counters to track accesses to rows within a duration so that data is retained between the end of a first duration and the beginning of a next duration. Aspects of the present disclosure may also utilize the duration between receiving an activate command and receiving a precharge command to determine when to refresh rows of a memory device to mitigate row hammering attacks. Although the examples provided herein are in the context of row hammering attacks, the examples may also be applied to data loss due to memory cell leakage. Memory leakage may be caused by accessing a memory cell or an adjacent memory cell at a rate greater than the RHT, which is one of the causes of memory leakage of a memory cell.
[0025] Interfaces, such as Peripheral Component Interconnect Express (PCIe), Compute Express Link (CXL), Cache Coherent Interconnect for Accelerators (CCIX), etc., allow various memory devices to be connected to a host system. The combination of interface and memory technology improvements may allow the deployment of "far memory", which may consist of system memory (e.g., memory devices) implemented behind the front end of a memory subsystem (such as PCIe, CXL, CCIX, GenZ, etc.). As used herein, the front end of a memory subsystem may also be referred to as an interface of the memory subsystem or as a front end of a controller of the memory subsystem. As used herein, the front end of a memory subsystem may include hardware and / or firmware configured to receive data (e.g., requests and / or data) and provide data to the back end of the memory subsystem. The back end of the memory subsystem may include hardware and / or firmware to receive data (e.g., requests and / or data) from the front end of the memory subsystem. The back end may execute requests provided from the host on the memory devices of the memory subsystem.
[0026] Figure 1A 1 is a block diagram of a computing system including a memory subsystem 110 according to some embodiments of the present disclosure. Memory subsystem 110 may include media such as one or more volatile memory devices (e.g., memory device 140), one or more non-volatile memory devices (e.g., memory device 130), or a combination of these.
[0027] The memory subsystem 110 may be a storage device, a memory module, or a mixture of a storage device and a memory module. Examples of storage devices include solid state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual in-line memory modules (NVDIMMs).
[0028] The computing system 100 may be a computing device such as a desktop computer, a laptop computer, a server, a network server, a mobile device, a vehicle (e.g., an airplane, a drone, a train, a car, or other transportation), an Internet of Things (IoT) enabled device, an embedded computer (e.g., an embedded computer included in a vehicle, industrial equipment, or a networked commercial device), or such a computing device that includes a memory and a processing device.
[0029] The computing system 100 may include a host system 120 coupled to one or more memory subsystems 110. In some embodiments, the host system 120 is coupled to memory subsystems 110 of different types. Figure 1A An example of a host system 120 coupled to one memory subsystem 110 is illustrated. As used herein, "coupled to" or "coupled with" generally refers to a connection between components, which may be an indirect communication connection or a direct communication connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, and the like.
[0030] The host system 120 may include a processor chipset and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more cache memories, a memory controller (e.g., an SSD controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system 120 uses the memory subsystem 110, for example, to write data to the memory subsystem 110 and read data from the memory subsystem 110.
[0031] The host system 120 may be coupled to the memory subsystem 110 via a physical host interface. Examples of the physical host interface include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a Fibre Channel, a Serial Attached SCSI (SAS), a Double Data Rate (DDR) memory bus, a Small Computer System Interface (SCSI), a Dual In-line Memory Module (DIMM) interface (e.g., a DIMM socket interface supporting Double Data Rate (DDR)), an Open NAND Flash Interface (ONFI), Double Data Rate (DDR), Low Power Double Data Rate (LPDDR), or any other interface. The physical host interface may be used to transfer data between the host system 120 and the memory subsystem 110. When the memory subsystem 110 is coupled to the host system 120 through a PCIe interface, the host system 120 may further utilize an NVM Express (NVMe) interface to access components (e.g., the memory device 130). The physical host interface may provide an interface for passing control, address, data, and other signals between the memory subsystem 110 and the host system 120 . Figure 1A Memory subsystem 110 is illustrated as an example. In general, host system 120 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.
[0032] In some embodiments, the interface may be governed by the Compute Express Link (CXL) protocol and coupled to the host 120 via an interface configured for the Peripheral Component Interconnect Express (PCIe) protocol. CXL is a high-speed central processing unit (CPU)-to-device and CPU-to-memory interconnect designed to facilitate next-generation data center performance. CXL technology maintains memory consistency between the CPU memory space and the memory on the attached device, which allows resource sharing to improve performance, reduce software stack complexity, and reduce overall system cost. With the increasing use of accelerators to supplement the CPU to support emerging applications such as artificial intelligence and machine learning CXL. Designed as an industry open standard interface for high-speed communications, CXL technology is built on the PCIe infrastructure, leveraging the PCIe physical and electrical interface to provide advanced protocols in areas such as input / output (I / O) protocols, memory protocols (e.g., initially allowing the host to share memory with accelerators), and coherent interfaces.
[0033] The memory devices 130, 140 may include any combination of different types of non-volatile memory devices and / or volatile memory devices. Volatile memory devices (e.g., memory device 140) may be, but are not limited to, random access memory (RAM) such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).
[0034] Some examples of nonvolatile memory devices (e.g., memory device 130) include non-and (NAND) type flash memory and write-in-place memory, such as a three-dimensional cross-point ("3D cross-point") memory device, which is a cross-point array of nonvolatile memory cells. The cross-point array of nonvolatile memory can perform bit storage based on changes in body resistance in combination with a stackable cross-grid data access array. In addition, compared to many flash-based memories, cross-point nonvolatile memory can perform write-in-place operations, where nonvolatile memory cells can be programmed without pre-erasing the nonvolatile memory cells. NAND-type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND). Nonvolatile memory devices may also include DRAM and FeRAM, as well as other examples of nonvolatile memory devices.
[0035] Each of the memory devices 130, 140 may include one or more memory cell arrays. For example, one type of memory cell includes a single-level cell (SLC) that can store one bit per cell. Other types of memory cells, such as multi-level cells (MLC), three-level cells (TLC), four-level cells (QLC), and five-level cells (PLC) can store multiple bits per cell. In some embodiments, each of the memory devices 130 may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, or any combination of these. In some embodiments, a particular memory device may include an SLC portion and an MLC portion, a TLC portion, a QLC portion, or a PLC portion of a memory cell. The memory cells of the memory device 130 may be grouped into pages, which may refer to a logical unit of a memory device for storing data. For some types of memory (e.g., NAND), pages may be grouped to form blocks.
[0036] Although nonvolatile memory components such as a three-dimensional cross-point array of nonvolatile memory cells and NAND-type flash memory (e.g., 2D NAND, 3D NAND) are described, the memory device 130 may be based on any other type of nonvolatile memory or storage device, such as read-only memory (ROM), phase change memory (PCM), self-selected memory, other chalcogenide-based memories, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), "NOR" (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).
[0037] The memory subsystem 110 includes a memory subsystem controller 115. The memory subsystem controller 115 includes a front end 121 and a back end 101. The front end 121 may be used to communicate with the host system 120. The front end 121 may convert commands received from the host system into command instructions to access the memory device 130 and / or the memory device 140 and convert responses associated with the memory device 130 and / or the memory device 140 into information for the host system 120. In some embodiments, the front end 121 may include dedicated circuitry in the form of an ASIC, an FPGA, a state machine, and / or other logic circuitry that may allow the front end 121 to program and / or perform operations.
[0038] The back end 101 may communicate with the memory devices 130, 140 to perform operations such as reading data, writing data, or erasing data at the memory devices 130, 140, as well as other such operations. Although the back end 101 is shown as being included in the memory subsystem controller 115, the back end 101 may be separate from the memory subsystem controller 115. The memory subsystem controller 115 may include hardware, such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The hardware may include digital circuitry with dedicated (i.e., hard-coded) logic to perform the operations described herein. The memory subsystem controller 115 may be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or other suitable processor.
[0039] The memory subsystem controller 115 may include a processor 117 (e.g., a processing device) configured to execute instructions stored in a local memory 119. In the illustrated example, the local memory 119 of the memory subsystem controller 115 includes an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 110, including handling communications between the memory subsystem 110 and the host system 120.
[0040] In some embodiments, local memory 119 may include memory registers that store memory pointers, fetched data, etc. Local memory 119 may also include read-only memory (ROM) for storing microcode. Figure 1A The example memory subsystem 110 in FIG. 1 has been illustrated as including a memory subsystem controller 115, but in another embodiment of the present disclosure, the memory subsystem 110 does not include a memory subsystem controller 115 and may instead rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).
[0041] In general, the memory subsystem controller 115 may receive commands or operations from the host system 120 and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130 and / or the memory device 140. The memory subsystem controller 115 may be responsible for other operations such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address conversion between logical addresses (e.g., logical block addresses (LBAs), name spaces) and physical addresses (e.g., physical block addresses, physical media locations, etc.) associated with the memory device 130. The memory subsystem controller 115 may further include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory device 130 and / or the memory device 140 and convert responses associated with the memory device 130 and / or the memory device 140 into information for the host system 120.
[0042] The memory subsystem 110 may also include additional circuitry or components not illustrated. In some embodiments, the memory subsystem 110 may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoder and column decoder) that may receive addresses from the memory subsystem controller 115 and decode the addresses to access the memory device 130 and / or the memory device 140. The memory subsystem 110 may include a central controller that includes a processor 117 and a local memory 119.
[0043] In some embodiments, an external controller (e.g., memory subsystem controller 115) can externally manage memory device 130 (e.g., perform media management operations on memory device 130). In some embodiments, memory device 130 is a managed memory device, which is a raw memory device combined with a local controller to perform media management within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device.
[0044] The back end 101 may include a controller 113 (e.g., a row hammering controller 113) and a memory controller 116. Although not shown in FIG. 1 to avoid obscuring the drawing, the controller 113 may include various circuitry to assist in determining when to refresh rows of the memory devices 130, 140. In some embodiments, the controller 113 and / or the memory controller 116 may include dedicated circuitry in the form of an ASIC, FPGA, state machine, and / or other logic circuitry that may allow the controller 113 and / or the memory controller 116 to orchestrate and / or perform operations to selectively refresh rows of the memory devices 130, 140 based on a row hammering threshold (RHT).
[0045] In the previous method, the activation commands to the memory banks of the memory devices 130, 140 may be tracked. If the number of activation commands to the memory banks is greater than a threshold (e.g., RHT), the controller of the back end 101 of the memory subsystem 110 may issue a refresh command to the memory banks of the memory devices 130, 140 to protect the integrity of the data stored in the memory banks of the memory devices 130, 140.
[0046] In several embodiments, the activation commands for the rows of the memory devices 130, 140 may be tracked. A refresh command may be provided to a target row address corresponding to the row of the memory devices 130, 140. The controller 113 may provide a signal to the memory controller 116 of the back end 101 to cause the memory controller 116 to issue a refresh command to the target row address. The controller 113 may issue a refresh command by providing a signal to the memory controller 116 when the target memory bank is in an idle state.
[0047] The activate commands may be tracked within a refresh window. For example, the number of activate commands received within a refresh window (e.g., duration) may be tracked to determine if they exceed a threshold number of activate commands. The activate commands may also be tracked to determine if the duration between the activate command and the corresponding precharge command exceeds a threshold. As used herein, a refresh window describes tracking the duration of an activate command for a row of the memory devices 130, 140. A counter corresponding to the row address may be reset each refresh window.
[0048] The activate commands are tracked using a space saving algorithm originally developed for online monitoring of data streams. The number of activate commands may be tracked, and the corresponding row addresses in a dedicated memory (SRAM) may also be tracked to determine when to refresh the corresponding rows of the memory devices 130, 140. In various examples, the duration between receiving an activate command and receiving a corresponding precharge command may also be tracked to determine when to refresh the corresponding rows of the memory devices 130, 140.
[0049] A counter may be utilized to track the number of activate commands and the duration between receiving an activate command and receiving a corresponding precharge command. The counter may include a memory for storing values corresponding to the number of activate commands and / or the duration between receiving an activate command and receiving a corresponding precharge command.
[0050] The counters may include multiple counters for tracking the number of active commands received for row addresses corresponding to rows of the memory devices 130, 140. For example, two counters (e.g., a first counter and a second counter) may be utilized to track active commands for rows of the memory devices 130, 140. The first counter and the second counter may be reset at different times.
[0051] The duration between the reset of the first counter and the second counter and the reset of the second counter and the first counter may be equal to the refresh window. For example, the refresh window may begin after the reset of the second counter, may span the reset of the first counter, and may end with the reset of the second counter. In various cases, the duration between the reset of the first counter and the second counter may be equal to half of the refresh window. With respect to the refresh window, the reset of the first counter and the second counter may be predefined and may be fixed so that it does not change based on the number of activation commands received. Using multiple counters to track activation commands for a particular row of the memory devices 130, 140 may be referred to as "pin-pong".
[0052] The counters may be incremented together even if they are reset separately. Multiple counters are used to track the activation commands for the rows of the memory devices 130, 140 to avoid losing data between the end of the first refresh window and the beginning of the second refresh window. Even if at least one of the counters is reset between refresh windows, a portion of the count is retained between refresh windows.
[0053] Figure 1B1 is a block diagram of a back end 101 of a memory subsystem according to some embodiments of the present disclosure. The back end 101 includes memory controllers 116-1, 116-2, 116-3, 116-4, 116-5, 116-6, 116-7, 116-8, 116-9, 116-10, 116-11, 116-12, 116-13, 116-14, 116-15, 116-16, referred to as controllers 116. Controllers 116 may be coupled to interfaces 103-1, 103-2, 103-3, 103-4, 103-5, 103-6, 103-7, 103-8, 103-9, 103-10, 103-11, 103-12, 103-13, 103-14, 103-15, 103-16, referred to as interfaces 103. Each of controllers 116 may be coupled to a different one of interfaces 103.
[0054] The rate of the interface 103 may be 4267 mpbs (megabytes per second). The interface 103 may be used to communicate with one or more memory devices coupled to the back end 101 .
[0055] The memory controllers 116 may be coupled to a central controller (not shown) of the memory subsystem. The central controller may act as a master device on the local interconnect, while the memory controllers 116 act as slave instances of the central controller. Each of the controllers 116 may be coupled to a different controller (e.g., a row hammer controller).
[0056] Figure 2 2 is a block diagram of a back end 201 of a memory subsystem including a row hammer controller 213 according to some embodiments of the present disclosure. The back end 201 of the memory subsystem includes the memory controller 116, the row hammer controller 213, a memory 222, and an interface 203. The memory 222 may be referred to as a row hammer memory 222.
[0057] The back end 201 may include a plurality of channels. The back end 201 is shown to include a channel 224. The channel of the back end 201 may be a low power chip kill (LPCK) channel. The channel of the back end 201 may be utilized to perform error correction on data read from a memory device coupled to the back end 201 via the interface 203.
[0058] Each of the memory controllers 216 may be coupled to a different row hammer controller 213. Each of the row hammer controllers 213 may be coupled to a different memory 222. The row hammer controllers 213 may access data from the memory controllers 216. For example, the row hammer controllers 213 may access commands from the memory controllers 216. An activate command may be generated by the memory controllers 216 and provided to the memory devices to read data from the memory devices or write data to the memory devices.
[0059] In various examples, each channel (including channel 224) may include a memory controller 216, a row hammer controller 213, and a memory 222. Each of the channels of the back end 201 may include multiple memory controllers 216, row hammer controllers 213, and memories 222, such as Figure 7 As shown in .
[0060] The row hammer controller 213 may include circuitry 223. The circuitry 223 may be configured to determine when to refresh a row of a memory device. The row hammer controller 213 may provide a signal to the memory controller 216 requesting that a row of the memory device be refreshed.
[0061] Memory 222 may store counters for tracking activate commands and / or precharge commands.Memory 222 may associate a row address with a counter so that the row counter may correspond to a row of the memory device having the row address.
[0062] The row hammer controller 213 may capture row address information corresponding to the activation command from the memory controller 216. For example, the row hammer controller 213 may decode the activation command using circuitry (e.g., a CMD / ADD decoder). The row address information may be captured from the decoded activation command by the circuitry 223. The row address information (e.g., row address) may be temporarily stored in a dedicated buffer (e.g., a RADD buffer pb). The row address information corresponding to the activation command may be compared with the row address corresponding to the counter stored in the memory 222. In various examples, the memory 222 may include an SRAM. The circuitry 213 may be, for example, a state machine. In the case of LPA1, each row hammer controller 213 may include 32 state machines. The commands generated by the state machines of the row hammer controller 213 may be collected in a FIFO structure before being provided to the memory controller 216.
[0063] The row hammer controller 213 may generate a refresh command when the number of activate commands for the row address exceeds a threshold. The row hammer controller 213 may also generate a refresh command when the duration between receiving an activate command and receiving a corresponding precharge command exceeds a threshold. In various cases, a first threshold may be compared to the number of activate commands received for the row address, while a second threshold may be compared to the duration between receiving an activate command for the row address and receiving a corresponding precharge command. In various examples, a single threshold may be compared to both the number of activate commands received for the row address and the duration between receiving an activate command and receiving a corresponding precharge command.
[0064] Figure 3332-4. Blocks 332-1, 332-2, 332-3, 332-4 may be referred to as blocks 332.
[0065] Each of the blocks 332 may store a plurality of entries 334, wherein each of the entries 334 includes a row address (RADD) and a counter (CNT) corresponding to the row address. Each of the blocks may store entries 334 having the same row address, even though the counters of each of the blocks may have different values.
[0066] The minimum amount of memory 322 required for each memory controller can be calculated by the following formula: Where tREF represents the refresh cycle (eg, refresh window). tRFCpb represents the refresh cycle time per bank, and RefCnt represents the refresh count. tRC represents the RAS cycle time and RHT represents the row hammering threshold. banks represents the number of banks of the memory device, n ranks represents the number of entries in the memory device, and entry_size represents the size of each entry 334 of the memory 222 .
[0067] The refresh cycle describes a window for refreshing counters and / or memory cells. For example, the refresh cycle may be 64ms. Assuming that each row address is tracked by two counters, if the refresh window is continuous, then the two counters may be reset every 128ms. For example, the first counter may be reset at 64ms and the second counter may be reset at 128ms. The counters of memory 32 may be reset in stages. In the first stage, the counters stored in the first table of memory 322 may be reset, and in the second stage, the counters stored in the second table of memory 322 may be reset. The combined first and second stages may last 128ms. The first stage may span from 1ms to 64ms, while the second stage may span from 65ms to 128ms.
[0068] When configured in StdRAS, the number of independent memory channels and therefore the number of independent memory controllers is sixteen. Each of the memory controllers requires a minimum amount of memory 322 dedicated to tracking rows, as specified by the above formula. When configured as HiRAS, the number of independent memory channels is reduced to three, and fifteen of the sixteen memory controllers are grouped into three groups of five memory controllers each acting like one memory controller. When configured as HiRAS, only one of the five memory controllers belonging to the same group (LPCK channel) actively tracks the row.
[0069] In the example of implementing LP5A1, the following applies:
[0070] item value tREF 64ms tRFCpb 220ns R 90ns RHT 1600 RefCnt 16384 n_banks 16 n_ranks 1、2 entry_size 29th
[0071] Table 1
[0072] For LP5A1, the minimum memory 322 required per memory controller is summarized in the following table:
[0073]
[0074] Table 2
[0075] In the case of LP5, the following table applies:
[0076] item value tREF 64ms tRFCpb 140ns R 60ns RHT 1600 RefCnt 16384 n_banks 16 n_ranks 1、2、4 entry_size 29th
[0077] Table 3
[0078] For LP5, the minimum memory 322 required per memory controller is summarized in the following table:
[0079]
[0080] Table 4
[0081] Table 4 sets the boundary condition for the memory 322 required for row tracking of LP5 to 9.1 MB, which is reduced to 4.55 MB by configuring the memory controller to operate with a refresh window (tREFW) reduced from 32 ms to 16 ms.
[0082] Memory 322 can store row address RADD[16:0] and row count CNT[10:0] information and optionally an overflow bit OF[1], for a total of 29 bits per entry 334. A reciprocating mechanism can be implemented in a row tracking system, and the factor (e.g., 2) in memory 322 takes this into account. The reciprocating mechanism implements two sets of counters for each tracked row. The two counters for each tracked row are organized in two tables, including tables 331-1 to 331-2. The tables can be stored in two sets of memory (e.g., SRAM) including SRAM A and SRAMB.
[0083] In various examples, rows may be ranked simultaneously on each of the memory banks (e.g., equal to n_banks×n_ranks), such that the memory 322 is organized into blocks. The minimum size of a memory 322 entry 334 (e.g., RHSRAM pb) required per block is
[0084] In the case of LP5A1, the memory 322 (e.g., RH SRAM pb) may have at least 2×840 entries 334, where SRAM-A=840 entries 334 and SRAM-B=840 entries 334. SRAM-A and SRAM-B may be further divided into two blocks SRAM-A1, SRAM-A2 and SRAM-B1, SRAM-B2 each having 420 entries based on implementation needs. The size of each SRAM entry 334 is 29 bits. Parity bits may be added to enhance reliability.
[0085] Figure 4 4 is a flow chart corresponding to a row hammer controller according to some embodiments of the present disclosure. The row hammer controller may include circuitry 423. The circuitry 423 may be configured to determine when to refresh a row of a memory device.
[0086] At 441, the flowchart may be initiated (e.g., started). The initiation of the flowchart may include receiving an activation command. For example, receiving an activation command at a row hammer controller may initiate the flowchart. The activation command may be decoded to access a row address corresponding to the activation command. The row address may correspond to a row of the memory device activated by the activation command.
[0087] At 442, the row hammer controller circuitry 423 may use the row address to search a memory (eg, Figure 3 The memory 322 of the active command may be searched to determine whether the row address stored in the memory matches the row address corresponding to the active command (eg, searching for a match). For example, the circuit system 423 may compare the row address corresponding to the active command to the row address corresponding to the active command. Figure 3The circuit system 423 may compare the RADD of the entry 334 in the memory 322 of FIG. 423. The circuit system 423 may also search for an unused portion of the memory (e.g., search for Free). The circuit system 423 may further search the entries of the memory for an entry whose counter value is the minimum value of other values stored in other entries of the memory. The circuit system 423 may search for the minimum value stored in the memory.
[0088] At 443, a determination may be made as to whether the row is tracked. Specifically, a determination may be made as to whether a row of the memory device having a row address corresponding to the activate command is stored in the memory. If the row address stored in the memory matches the row address corresponding to the activate command, then it may be determined that the row is tracked. If the row stored in the memory does not match the row address corresponding to the activate command, then it may be determined that the row is not tracked.
[0089] If the row is not being tracked, the flowchart may continue to 444. If the row is being tracked, the flowchart may continue to 446. At 444, a determination may be made as to whether the memory is full. The memory is full if every portion of the memory is utilized, such that the memory cannot store additional entries without first emptying portions of the memory. If it is determined that the memory is full, the flowchart may continue to 445. If it is determined that the memory is not full, the flowchart may continue to 450. In various cases, the memory may be considered not full if the memory can store two identical entries to facilitate the reciprocating mechanism.
[0090] At 450, an entry including a row address corresponding to the activate command and a counter having a value equal to 1 may be stored in a free portion of the memory. In various cases, storing the entry in the memory may include storing the entry in multiple portions of the memory to facilitate a shuttle mechanism. For example, the entry may be stored in a first table of the memory and a second table of the memory. Both entries stored in the memory may have a counter value equal to 1. In response to storing the entry in the memory, the flowchart may continue to 449.
[0091] At 445, an entry with a counter having a minimum value may be identified. The counter with the smallest value may be the minimum value. The identified entry may be cleared so that the memory is no longer full. Clearing the entry may include clearing a pair of entries corresponding to the same row address. A new entry may be stored in the memory, wherein the new entry has the row address and the counter with the minimum value. The new entry may be a pair of entries corresponding to the same row address. Each entry from the pair of entries may include the row address and the counter with the minimum value.
[0092] In response to storing the entry with the minimum value in the memory, the flowchart may continue to 446. At 446, a counter of the entry stored in the memory may be incremented. The counter may be incremented by 1 or by a value greater than 1. The flowchart may continue to 447.
[0093] At 447, a determination may be made as to whether a counter corresponding to an entry stored in the memory is greater than the RHT. Each of the entries may be compared to the RHT independently of the other entries. In various examples, each of the entries corresponding to the row address may be compared to the RHT. If one of the entries has a counter with a value greater than the RHT, the flowchart may continue to 448. If the entry does not have a counter with a value greater than the RHT, the flowchart may continue to 449.
[0094] At 448, the circuitry 423 of the row hammer controller may issue a refresh command. The refresh command may be used for a row address corresponding to a row counter that is greater than the RHT. For example, if the counter corresponding to the row address of the activate command is greater than the RHT, then the refresh command may be used for the row address. The circuitry 423 may provide the refresh command, and / or the row controller may provide the refresh command to the memory controller. The memory controller may provide the refresh command to the memory device so that the row with the row address may be refreshed.
[0095] In response to issuing a refresh command, the circuit system 423 may update the counter greater than RHT with a value equal to the minimum value identified at 442. Other counters associated with the row address may be reset. For example, if a first counter and a second counter are associated with the row address such that a first entry including the first counter also includes the row address and a second entry including the second counter also includes the row address, and if the first counter has a value greater than RHT, then the first counter may be set to the minimum value identified at 442 and the second counter may be reset. The second counter may be reset to a value of zero. The second counter may also be reset to the minimum value identified at 442. In various cases, the reciprocating counter pair may be reset to different values or the same value when a refresh command is issued to the corresponding row address. The flowchart may continue to 449.
[0096] At 449, a row counter corresponding to the row address of the activate command may be updated based on a duration between receiving the activate command and subsequently receiving the precharge command. If the duration between receiving the activate command and receiving the precharge command is greater than a threshold, the corresponding counter may be incremented. The activate command and the precharge command may be the same row address, which is the same row address corresponding to the counter. The precharge command may be received from the memory controller and may be received at the row hammer controller. In response to ending the RAS check at 449, the flowchart may continue to 441 to wait for receiving the next activate command.
[0097] Figure 5 FIG. 1 is a flow chart corresponding to a row hammer controller according to some embodiments of the present disclosure. The flow chart may be executed by a circuit system of the row hammer controller. Figure 5 The flowchart is similar to Figure 4 , but with the addition of elements 551 and 552. For example, Figure 5 The components 541, 542, 543, 544, 550, etc. are similar to Figure 4 Elements 441, 442, 443, 444, 450.
[0098] In response to comparing the row address stored in the memory with the row address received by the activation command to search for the row address at 542, the flowchart may continue to 551. At 551, a determination may be made as to whether one of the counters corresponding to the row address received by the activation command has been reset. The counters may be reset due to the passage of time. For example, each of the counters may be reset after an X duration. The reset of the counters may be misaligned such that the first counter is reset at X1 when the second counter is reset at X2.
[0099] If either counter 1 or counter 2 (which corresponds to the row address of the activation command) has been reset since the last time the flowchart was started at 541, then the reset counter may be updated to have a value equal to the minimum value identified at 542. For example, if counter 1 has been reset since the last time the flowchart was traversed, then at 552, counter 1 may be updated with the minimum value while counter 2 retains its value. The determination made at 551 may be made for the counter corresponding to the row address of the activation command. If the row address of the activation command is not stored in memory, then the flowchart may continue to 543 because the counter has not been reset due to the shuttle mechanism. The counter has not been reset because the count does not exist. If the counter corresponding to the row address of the activation command has not been reset, then the flowchart may also continue to 543.
[0100] In response to updating the row counter at 552, the flowchart may continue to the RAS check at 549. The RAS check at 549 may be performed as previously described. Figure 4 449 of and as described in relation to Fig. 6A , 6B Further discussion is carried out. Figure 5 Two mechanisms are provided for resetting and / or updating the counters. The counters may be reset or updated due to a reciprocating mechanism. For example, the first counter may be reset and updated due to the passage of time. Since the first counter is greater than the RHT, the first counter may also be reset and the second counter may be updated.
[0101] Fig. 6A is a flowchart corresponding to a row hammer controller according to some embodiments of the present disclosure. The flowchart of FIG. 6 is similar to Figure 4 and 5 , but with the addition of elements 661, 662, and 663. Figure 6B Component 663 is further described in FIG. Components 641, 642, 643, 644, 650, etc. of FIG. 6 are similar to Figure 4 Elements 441, 442, 443, 444, 450 and Figure 5 Elements 541, 542, 543, 544, 550.
[0102] The flow chart may start at 641 and continue to 642. At 642, the memory may be searched to identify an entry matching a row address corresponding to an activate command, a free portion of memory, and / or an entry whose counter has a lowest value (eg, a minimum value).
[0103] The flowchart may continue to 662. At 662, a determination may be made as to whether the search cycle has ended. Determining whether the search cycle has ended is important because if the search cycle has not ended, then updating the counter at 652 in response to the determination made at 651 may be disadvantageous. If the search cycle has not ended, then the flowchart may return to 642 until the search cycle ends. Once the search cycle ends, the flowchart may continue to 651 as previously described at Figure 5 551 described.
[0104] In response to receiving an activate command and starting the flowchart at 641, the flowchart may continue to 661. At 661, a RAS counter may be triggered. Triggering the RAS counter may include setting the RAS counter to a particular value, such as 0. The RAS counter may be stored in a memory and / or in different registers in the back end. For example, the RAS counter may be stored in a row hammer controller, the circuit system 623 of the row hammer controller, and / or a memory controller. A single RAS counter may be sufficient compared to multiple counters (e.g., row counters) tracked using memory. In various examples, the number of RAS counters may be less than the number of counters (e.g., row counters). Triggering the RAS counter may include setting the RAS counter to a value, such as equal to 0 or 1. When a RAS check is performed, the RAS counter may be further updated at 649.
[0105] In response to determining at 643 that the row is tracked and in response to setting the row counter to a minimum value at 645, the flowchart may continue to the RHT check at 663. Figure 6BThe RHT check is further described in . The RHT check may be performed once in each iteration of the flowchart, or may be performed multiple times in each iteration of the flowchart. Whenever the flowchart is started at 641, an RHT check may be performed once. If the restriction that the RHT check is performed once in each iteration of the flowchart is not observed, then the RHT check has the possibility of being performed multiple times. If there is no restriction that the RHT check is performed once in each iteration of the flowchart, then the RAS check at 649 may cause the RHT check at 663 to be performed in a loop. The RHT check may be performed once using a flag. The flag may be set from a first value to a second value after the RHT check is performed. If the flag has a first value, then the RHT check may be performed. If the flag has a second value, then the RHT check may be skipped so that it is not performed. After performing the RAS check at 649, the flowchart may wait for receiving an additional activation command to start the flowchart again at 641.
[0106] Figure 6B is a flow chart corresponding to a row hammer controller according to some embodiments of the present disclosure. Fig. 6A The flowchart can continue to Figure 6B For example, Fig. 6A The RAS check at 649 may correspond to Figure 6B The inspection at 649, and Fig. 6A The RHT check at 663 may correspond to Figure 6B The RHT check at 663.
[0107] In response to the update at 645 having Fig. 6A 642, the RAS check may be initiated at 649 and may continue to 664. At 664, a determination may be made as to whether a precharge command has been received. A precharge command may be received at a row hammer controller from a memory controller. In various cases, an indication of a precharge command may be received at the row hammer controller. The precharge command may be decoded to determine whether a row address corresponding to the precharge command matches a row address of an activate command received by the row hammer controller. If the row address corresponding to the precharge command matches the row address corresponding to the activate command, then the flowchart may continue to 665. If the row address corresponding to the precharge command does not match the row address corresponding to the activate command, then the flowchart may continue to 667.
[0108] At 667, a determination may be made as to whether the RAS counter is greater than the RCCT. The RCCT is a threshold value corresponding to the RAS counter. The RAS counter and the row counter may be different counters. The RAS counter may be utilized to increment the row counter. For example, if the RAS counter is greater than a threshold value (e.g., RCCT), the row counter may be incremented. If the RAS counter is greater than the RCCT, the flowchart may continue to 670. If the RAS counter is not greater than the RCCT, the flowchart may continue to 649. Whenever the RAS counter is compared with the RCCT to determine whether the RAS counter is greater than the RCCT, the RAS counter may be incremented. In various cases, the RAS counter may be incremented before the RAS counter is compared with the RCCT, or the RAS counter may be incremented after the RAS counter is compared with the RCCT. The RAS counter may be incremented by 1 or may be incremented by different values.
[0109] Circuitry 623 may include a loop that may be used to increment a counter. The loop may include elements 649, 664, 667. Whenever a precharge command has not arrived and the RAS counter is less than RCCT, the RAC counter may be incremented and the flowchart may return to 649. The duration between determining whether a precharge command has arrived and determining that the RAS counter is less than RCCT may be used to increment a RAS counter, which may be used to increment a row counter, such that the duration between receiving an activate command and a precharge command may be used to adjust the row counter. The row counter may be adjusted at 646.
[0110] At 670, the RAS counter may be reset in response to determining that the RAS counter is greater than the RCCT. Resetting the RAS counter may include setting the value of the RAS counter to 0 or 1. In response to resetting the RAS counter, the flow diagram may continue to 668.
[0111] At 668, a decision may be made as to whether this is the first time the RAS counter is greater than RCCT (eg, RCCT_1 st and RCCT_1 st In response to determining that this is the first time the RAS counter is greater than RCCT, the flow chart may continue to 669. At 669, a flag may be set (eg, RCCT_1 may be reset). stIn response to setting the flag to indicate that the RAS counter has been greater than RCCT at least once, the flowchart may continue to 649. At 668, the flag set at 669 may be used to determine whether this is the first time that the RAS counter has been greater than RCCT. In response to determining that the RAS counter has been greater than RCCT more than once, the flowchart may continue to RHT check 663.
[0112] In various cases, in response to resetting the RAS counter at 670, the flowchart may continue to 663 without checking at 668 whether this is the first time the RAS counter is greater than RCCT. The determination made at 668 and the setting / resetting of flags at 669 and 641 may be programmed / selected options based on the desired functionality of the circuit system 623.
[0113] At 665, a determination may be made as to whether the precharge command is an auto-precharge command. For example, the precharge command may be a read or write auto-precharge command. The read or write auto-precharge command may be performed by performing a column read or write and then closing / precharging the row. If the precharge command is an auto-precharge command, the flowchart may continue to 666. If the precharge command is not an auto-precharge command, the flowchart may continue to 641. At 666, a predetermined duration may be waited for (e.g., wait for ras_precharge downcount 0) before proceeding to 641. The determination made at 665 and the countdown performed at 666 are optional, and if the circuit system 623 is configured not to utilize the determination performed at 665 and not to perform the countdown at 666, they may not be utilized. Instead, the flowchart may continue from 664 to 641.
[0114] At 663, a RHT check may be initiated. At 646, a counter (e.g., a row counter) may be incremented. The row counter may be incremented using a RAS counter that may be linked to the duration between receiving an activate command and a precharge command. In response to incrementing the row counter at 646, the flow chart may continue to 647.
[0115] At 647, the row counter may be compared to the RHT. If the row counter is greater than the RHT, the flowchart may continue to 648. If the row counter is not greater than the RHT, the flowchart may continue to 649. At 648, a refresh command may be issued and the row counter may be updated to have the value in Fig. 6AThe minimum value identified by 642 of , and the reciprocating counter pair may be reset to a value equal to 1 or 0. Comparing the row counter to the RHT at 647 may include comparing two row counters corresponding to the same row address. If either of the row counters is greater than the RHT, the flowchart may continue to 648. The row counter updated to have the minimum value is the row counter from the reciprocating pair that is greater than the RHT. The row counter from the reciprocating pair that is not greater than the RHT may be reset to have a value equal to 0 or 1. In response to issuing a refresh command, the flowchart may continue to 649. A refresh command may be provided for a row or memory bank having a row address corresponding to the row counter. For example, an entry in a memory that includes a row address and a row counter greater than the RHT may be used to identify the row address. Once the row address is identified, a refresh command may be issued to the row address. In various examples, the refresh command may refresh a memory bank of a memory device, wherein the memory bank includes the row address, or may refresh multiple memory banks of a memory device, wherein one of the multiple memory banks includes the row address. The refresh command may refresh a row of the memory device, where the row has a row address, or may refresh multiple rows of the memory device, where one of the multiple rows includes the row address.
[0116] In various examples, the RAS check and the RHT check may include a loop. For example, if at 667, the RAS counter is greater than the RCCT, then the RAS check may cause the RHT check to be enabled. Whenever the RHT check is enabled at 663, the RHT check may cause the RAS check to be enabled. The RAS check may cause the RHT check to be enabled until a precharge command arrives, at which time the loop is broken.
[0117] Figure 7 is a block diagram of a back end 701 of a memory subsystem according to some embodiments of the present disclosure. Figure 7 The back end 701 shown in FIG. 7 illustrates one possible configuration of a memory controller, a row hammer controller, and a channel of the back end 701. The back end 701 may include error managers 771-1, 771-2, 771-3. The back end 701 may also include channels 724-1, 724-2, 724-3 such that Figure 7 The example includes three channels.
[0118] Channels 724-1, 724-2, 724-3 may be referred to as channels 724. Each of channels 724 may include a memory controller 716-1, ..., 716-5, generally referred to as a memory controller 716, and a row hammer controller 713-1, ..., 713-5, generally referred to as a row hammer controller 713. Each of channels 724 may also include a memory 722-1, ..., 722-5, generally referred to as a memory 722.
[0119] The error manager 771-1, 771-2, 771-3, generally referred to as the error manager 771, may be configured to perform error correction using an encoder 772, a decoder 773, an error correction encoder 774-1, 774-2, 774-3, 774-4, 774-5, an error correction decoder 775-1, 775-2, 775-3, 775-4, 775-5, a command queue 777, and an alignment buffer 776. The error correction encoder 774-1, 774-2, 774-3, 774-4, 774-5 may be referred to as the error correction encoder 774. The error correction decoder 775-1, 775-2, 775-3, 775-4, 775-5 may be referred to as the error correction decoder 775.
[0120] Commands provided to the channel may be encoded using encoders 772 and error correction encoders 774. Each of the error correction encoders 774 may encode commands for a different one of the memory controllers 716. For example, error correction encoder 774-1 may encode commands provided to memory controller 716-1, while error correction encoder 774-5 encodes commands provided to memory controller 716-5.
[0121] The decoder 773 and the error correction decoder 775 may decode data provided from the memory controller 716-1 using the alignment buffer 776. The alignment buffer 776 and the command queue 777 may be used to align data received from the memory controller 716. The back end channel 724 may include an APB hub 778.
[0122] Figure 7 Each of the channels 724 showing the back end 701 may include a plurality of memory controllers 716 , a plurality of row hammer controllers, and a memory 722 . Figure 7 Also shown is the alignment of the encoding and decoding circuitry of the error manager 771 relative to the channel 724, the memory controller 716, the row hammer controller 713, and the memory 722.
[0123] In various cases, the backend channels 724 are independent of each other. However, the memory controller 716 may be aligned to allow the memory controller 716 to operate properly. The alignment of the memory controller 716 may be facilitated by an alignment buffer 776 and an alignment detector.
[0124] In various examples, the row hammer controller 713 may perform row-based activation monitoring. The row hammer controller 713 may generate bank / row-based refresh requests (e.g., bank / row-based refresh commands) and provide the requests to the memory controller 716. The row hammer controller 713 may provide row hammer information along with the request. The row hammer information may include values of row counters (e.g., reciprocating row counter pairs), values of RAS counters, row addresses, and / or information about other entries stored in the memory 722. The row hammer controller 713 may also generate bank / row-based activation stop or clear requests and provide them to the memory controller 716. The activation stop or clear request may stop or clear the activation request so that the activation command is not implemented on the memory device. The stop activation request and the turn off activation request may be used to stop the activation or row of the memory device and turn off the row / bank of the memory device.
[0125] Although the examples described herein are provided in terms of rows, the examples described herein may also be applied to banks. For example, the controller 713 may be configured to monitor banks of a memory device rather than rows of the memory device. Figure 2 The circuit system 223 may be configured to implement the method for a bank of a memory device rather than a row of a memory device. Figure 4 , 5 , 6A and 6B.
[0126] The memory controller 716 may be configured to provide bank / row based information to the row hammer controller 713. For example, the memory controller 716 may provide activation information corresponding to an activate command received by the memory controller 716. The memory controller 716 may provide refresh information to the memory device corresponding to a refresh command provided by the memory controller 716. For example, if the memory controller 716 provides a refresh command to the memory device without being prompted by the row hammer controller 713, the memory controller 716 may provide the refresh information to the row hammer controller 713. The row hammer controller 713 may utilize the refresh information to reset a traverse counter pair corresponding to the refresh information (e.g., a traverse counter pair having an address corresponding to the refresh information). The row hammer controller 713 may utilize the refresh information to reset the RAS counter, RCCT flag, and / or other variables of the flow diagrams described herein. The memory controller 716 may further be configured to provide auto-precharge information and / or precharge information corresponding to the auto-precharge command and / or precharge command to the row hammer controller 713.
[0127] The memory controller 716 may further stop activating rows / banks of the memory device based on requests received from the row hammer controller 713. The memory controller 716 may shut down the banks to a specific bank / row if the number of activations is greater than the RHT as defined by the row hammer controller 713. The memory controller 716 may issue refresh commands to a specific bank / row of the memory device based on requests of the row hammer controller.
[0128] Figure 8 8 is a flow chart corresponding to a method 880 for refreshing a row according to some embodiments of the present disclosure. The method 880 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 880 is performed by the row hammer controller 113 of FIG. 1. Although shown in a particular order or sequence, the order of the processes may be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are merely examples, and the illustrated processes may be performed in a different order, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are also possible.
[0129] At operation 881, a row activation command having an address may be received at a control circuitry of a memory subsystem, wherein the address corresponds to a row of a memory device of the memory subsystem. At operation 882, a determination may be made at the control circuitry as to whether the address corresponding to the row activation command is stored in a row hammer memory of the control circuitry. At operation 883, in response to determining that the address is not stored in the row hammer memory of the control circuitry, and in response to determining that utilization of the row hammer memory exceeds a first threshold, a third row count corresponding to a different address may be replaced with a first row count corresponding to the address of the row activation command, wherein the first row count has a value equal to the third row count. The first threshold may be used to determine whether the row hammer memory is full. Determining whether utilization of the row hammer memory exceeds the first threshold may include determining whether the row hammer memory is full. If utilization exceeds the first threshold, the row hammer memory may be identified as full. If utilization does not exceed the first threshold, the row hammer may be identified as not full.
[0130] In response to determining that the address is stored in the row hammer memory or in response to replacing the third row count with the first row count, the first row count and the second row count may be incremented at operation 884. In response to determining that the first row count or the second row count is greater than the second threshold, a refresh command may be issued to the address and the first row count may be updated with a different value. The second row count may also be reset.
[0131] In response to determining that the address is not stored in the row hammer memory, and in response to determining that the utilization of the row hammer memory does not exceed the first threshold, a first row count may be stored in the row hammer memory of the control circuitry at a value equal to one. The first row count and the second row count may correspond to the row address. The first row count and the second row count may be reset at different times after the duration has elapsed.
[0132] In various cases, determining whether the address corresponding to the row activation command is stored in the row hammer memory may further include: in response to determining that the address is not stored in the row hammer memory, identifying a second row count having a lowest value compared to other row counts stored in the row hammer memory. In response to determining that the address is not stored in the row hammer memory, and in response to determining that utilization of the row hammer memory exceeds a first threshold, a third row count corresponding to the address of the row activation command may be replaced with a first row count corresponding to the address of the row activation command. When the first row count replaces the third row count, the first row count may have a value equal to the lowest value.
[0133] In response to determining whether the first row count or the second row count is greater than the second threshold, it may be determined whether to update the first row count and the second row count based on the arrival of a precharge command corresponding to the activate command. The first row count and the second row count may be incremented based on a duration between receiving the precharge command and receiving the activate command. The first row count and the second row count may be incremented in response to the duration being greater than a third threshold. In various cases, determining that the utilization of the row hammer memory exceeds the first threshold may include determining that the row hammer memory is full.
[0134] In various examples, a back end of a memory subsystem controller may be coupled to a plurality of memory devices. The back end may include a plurality of memory controllers and a plurality of row hammer controllers. The row hammer controller may correspond to a respective memory controller of the plurality of memory controllers. Each of the plurality of row hammer controllers may be coupled to one of a plurality of row hammer memories. Each row hammer memory may be configured to store a first count and a second count corresponding to a same row address of a memory device to which the corresponding memory controller is coupled.
[0135] Each of the plurality of row hammer controllers may access a row activation command having an address of a row of a memory device from a corresponding memory controller. Each of the row hammer controllers may determine whether an address corresponding to the row activation command is stored in a corresponding row hammer memory. In response to determining that the address is stored in the corresponding row hammer memory and either of the first count and the second count has been reset within a previous duration, each of the row hammer controllers may update at least one of the first count and the second count.
[0136] In response to determining that the address is not stored in the corresponding row hammer memory, and in response to determining that the utilization of the corresponding row hammer memory exceeds a first threshold, a different count corresponding to a different address may be reset with a first count corresponding to the address of the row activation command, wherein the first count has a value equal to the different value of the different count. In response to determining that the address is stored in the corresponding row hammer memory or in response to replacing the different count with the first count, the first count and the second count may be incremented. In response to determining that the first count or the second count is greater than a second threshold, a refresh command may be issued to the row address. In response to determining that the first count or the second count is greater than the second threshold, the first count may be updated with a different value. In response to determining that the first count or the second count is greater than the second threshold, the second count may be reset.
[0137] In various examples, in response to determining that the first count or the second count is greater than the second threshold, the first count may be updated with a minimum value of the counts stored in the row hammer memory. The minimum value of the count may correspond to another row of the corresponding memory device.
[0138] Each of the plurality of row hammer controllers may be further configured to, in response to determining that the first count or the second count is greater than a second threshold, issue a refresh command to refresh a single row having a row address of the memory device. That is, a single row may be refreshed at a time instead of refreshing multiple rows simultaneously. Each of the plurality of row hammer controllers may be further configured to, in response to determining that the first count or the second count is greater than a second threshold, reset the second count to have a default value. For example, a single row may be refreshed and the second count may be reset. Each of the plurality of row hammer controllers may be further configured to issue a refresh command by providing a signal to a corresponding memory controller so that the corresponding memory controller issues a refresh command to the memory device.
[0139] In various cases, the row hammer controller may be coupled to a memory controller of a back end of the memory subsystem controller. The row hammer controller may be coupled to a row hammer memory. The row hammer memory may store a first count and a second count corresponding to a same row address of a memory device coupled to the memory controller.
[0140] The row hammer controller may access a row activate command having an address of a row of the memory device from the memory controller. The row hammer controller may also determine whether the address corresponding to the row activate command is stored in the row hammer memory.
[0141] In response to determining that the address is stored in the row hammer memory and either of the first count and the second count has been reset within a previous duration, the row hammer controller may update at least one of the first count and the second count. In response to determining that the address is not stored in the row hammer memory, and in response to determining that the utilization of the memory of the control circuit system exceeds a first threshold, the row hammer controller may further replace a third row count corresponding to a different address with a first count corresponding to an address of a row activation command, wherein the first count has a value equal to the third row count.
[0142] In response to determining that the address is stored in the row hammer memory or in response to replacing the third row count with the first count, the first count and the second count may be incremented. In response to incrementing the first count and the second count, a determination may be made as to whether the first count or the second count is greater than a second threshold. In response to determining that the first count or the second count is greater than the second threshold, a refresh command may be issued to the row address, and the first count may be updated with a different value. The second counter may also be reset. In response to issuing a refresh command to the row address or determining that the first count and the second count are not greater than the second threshold, a determination is made as to whether to increment the first count and the second count based on a duration that elapsed between receiving a row activate command and a corresponding precharge command.
[0143] The row hammer controller may determine whether a corresponding precharge command has been received. In response to determining that the corresponding precharge command has been received, a determination may be made as to whether the corresponding precharge command is an auto-precharge command. In response to determining that the precharge command is an auto-precharge command, the row hammer controller may count down different durations before accessing a row activate command. In response to determining that the precharge command has not been received and in response to determining that the fourth row count is greater than a third threshold, the fourth row count may be reset, the first row count and the second row count may be incremented, and a determination may be made as to whether a precharge command has been received. The first row count and the second row count may be incremented in a second iteration of determining whether a precharge command has been received.
[0144] Fig. 9 9 is a block diagram of an example computer system 900 in which embodiments of the present disclosure may operate. For example, Fig. 9An example machine of a computer system 900 is illustrated within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system 900 may correspond to a host system (e.g., the host system 120 of FIG. 1 ) that includes, is coupled to, or utilizes a memory subsystem (e.g., the memory subsystem 110 of FIG. 1 ), or may be used to perform operations of a controller (e.g., execute an operating system to perform operations corresponding to the row hammer controller 113 of FIG. 1 ). In alternative embodiments, the machine may be connected (e.g., networked) to other machines in a LAN, an intranet, an extranet, and / or the Internet. The machine may operate in the capacity of a server or a client machine in a client-server network environment as a peer machine in a peer-to-peer (or distributed) network environment or as a server or a client machine in a cloud computing infrastructure or environment.
[0145] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or any machine capable of executing (sequentially or otherwise) a set of instructions that specify actions to be taken by the machine. Further, while a single machine is described, the term "machine" shall also be construed to include any collection of machines that individually or collectively execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.
[0146] The example computer system 900 includes a processing device 902, a main memory 904 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc.), a static memory 906 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 918 that communicate with each other via a bus 930.
[0147] The processing device 902 represents one or more general processing devices, such as a microprocessor, a central processing unit, etc. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. The processing device 902 may also be one or more special-purpose processing devices, such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, etc. The processing device 902 is configured to execute instructions 926 for performing the operations and steps discussed herein. The computer system 900 may further include a network interface device 908 to communicate through a network 920.
[0148] The data storage system 918 may include a machine-readable storage medium 924 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 926 or software embodying any one or more of the methods or functions described herein. The instructions 926 may also reside, completely or at least partially, within the main memory 904 and / or within the processing device 902 during execution by the computer system 900, the main memory 904 and the processing device 902 also constituting machine-readable storage media. The machine-readable storage medium 924, the data storage system 918, and / or the main memory 904 may correspond to the memory subsystem 110 of FIG. 1.
[0149] In one embodiment, the instructions 926 include instructions for implementing functionality corresponding to the refresh circuitry (e.g., the row hammer controller 113 of FIG. 1 ). Although the machine-readable storage medium 924 is shown as a single medium in the example embodiment, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more of the methods of the present disclosure. The term "machine-readable storage medium" should therefore be considered to include, but not be limited to, solid-state memory, optical media, and magnetic media.
[0150] Some portions of the previous detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing can most effectively convey the substance of their work to other skilled in the art. In this article, and generally, an algorithm is conceived as a self-consistent sequence of operations that produce a desired result. An operation is an operation that requires physical manipulation of a physical quantity. Typically, but not necessarily, these quantities take the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. It has been demonstrated that it is sometimes convenient to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, etc., primarily for commonly used reasons.
[0151] It should be borne in mind, however, that all of these and similar terms will be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.
[0152] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the desired purpose, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. This computer program may be stored in a computer-readable storage medium, such as, but not limited to, any type of disk, including floppy disks, optical disks, CD-ROMs and magnetic optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of medium suitable for storing electronic instructions, each coupled to a computer system bus.
[0153] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used in conjunction with the programs according to the teachings herein, or it may prove convenient to construct a more specialized device to perform the method. The structures of various such systems will be presented as set forth in the description below. In addition, the present disclosure is not described with reference to any particular programming language. It should be appreciated that the teachings of the present disclosure as described herein may be implemented using various programming languages.
[0154] The present disclosure may be provided as a computer program product or software, which may include a machine-readable medium having stored thereon instructions that can be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory device, etc.
[0155] In the foregoing description, embodiments of the present disclosure have been described with reference to specific example embodiments thereof. It will be apparent that various modifications may be made to the present disclosure without departing from the broader spirit and scope of the embodiments of the present disclosure as set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative sense rather than a restrictive sense.
Claims
1. A method comprising: receiving, at control circuitry of a memory subsystem, a row activate command having an address, wherein the address corresponds to a row of a memory device of the memory subsystem; determining, at the control circuitry, whether the address corresponding to the row activate command is stored in a row hammer memory of the control circuitry; in response to determining that the address is not stored in the row hammer memory of the control circuitry, and in response to determining that utilization of the row hammer memory exceeds a first threshold, replacing a third row count corresponding to a different address with a first row count corresponding to the address of the row activation command, wherein the first row count has a value equal to the third row count; In response to determining that the address is stored in the row hammer memory or in response to replacing the third row count with the first row count, incrementing the first row count and the second row count; and In response to determining that the first row count or the second row count is greater than a second threshold: issuing a refresh command to the address; and The first row count is updated with a different value and the second row count is reset.
2. The method of claim 1 , further comprising, in response to determining that the address is not stored in the row hammer memory, and in response to determining that the utilization of the row hammer memory does not exceed the first threshold, storing the first row count in the row hammer memory of the control circuit system at a value equal to one. 3 . The method of claim 1 , wherein the first row count and the second row count correspond to a row address. The method of claim 1 , further comprising resetting the first row count and the second row count at different times after a duration has elapsed.
5. The method of claim 1 , wherein determining whether the address corresponding to the row activate command is stored in the row hammer memory further comprises: In response to determining that the address is not stored in the row hammer memory, the second column count having a lowest value compared to other row counts stored in the row hammer memory is identified.
6. The method of claim 1 , wherein in response to determining that the address is not stored in the row hammer memory, and in response to determining that the utilization of the row hammer memory exceeds the first threshold, the third row count corresponding to the different address is replaced with the first row count corresponding to the address of the row activation command, wherein when the first row count replaces the third row count, the first row count has a value equal to the lowest value.
7. The method of claim 1 , further comprising, in response to determining whether the first row count or the second row count is greater than the second threshold, determining whether to update the first row count and the second row count based on arrival of a precharge command corresponding to the activate command.
8. The method of claim 7, further comprising incrementing the first row count and the second row count based on a duration between receiving the precharge command and receiving the activate command. 9 . The method of claim 1 , further comprising incrementing the first row count and the second row count in response to the duration being greater than a third threshold.
10. The method of claim 1, wherein said determining that the utilization of the row hammer memory exceeds the first threshold further comprises determining that the row hammer memory is full.
11. A device comprising: a plurality of memory devices; and a back end of a memory subsystem controller coupled to the plurality of memory devices and comprising: multiple memory controllers; a plurality of row hammer controllers coupled to corresponding respective ones of the plurality of memory controllers, wherein each of the plurality of row hammer controllers is coupled to one of a plurality of row hammer memories, wherein each row hammer memory is configured to store a first count and a second count corresponding to a same row address of a memory device to which the corresponding memory controller is coupled; and wherein each of the plurality of row hammer controllers is configured to: accessing a row activate command having an address of a row of the memory device from the corresponding memory controller; determining whether the address corresponding to the row activation command is stored in a corresponding row hammer memory; in response to determining that the address is stored in the corresponding row hammer memory and either of the first count and the second count has been reset within a previous duration, updating at least one of the first count and the second count; in response to determining that the address is not stored in the corresponding row hammer memory, and in response to determining that utilization of the corresponding row hammer memory exceeds a first threshold, replacing a different count corresponding to a different address with the first count corresponding to the address of the row activate command, wherein the first count has a value equal to a different value of the different count; In response to determining that the address is stored in the corresponding row hammer memory or in response to replacing the different count with the first count, incrementing the first count and the second count; and In response to determining that the first count or the second count is greater than a second threshold, a refresh command is issued to the row address, the first count is updated with a different value, and the second count is reset.
12. The apparatus of claim 11, wherein each of the plurality of row hammer controllers is further configured to update the first count with a minimum value of the counts stored in the row hammer memory in response to determining that the first count or the second count is greater than the second threshold.
13. The apparatus of claim 11, wherein each of the plurality of row hammer controllers is further configured to, in response to determining that the first count or the second count is greater than the second threshold, issue the refresh command to refresh a single row of the memory device having the row address.
14. The apparatus of claim 11, wherein each of the plurality of row hammer controllers is further configured to reset the second count to have a default value in response to determining that the first count or the second count is greater than the second threshold.
15. The apparatus of claim 11, wherein each of the plurality of row hammer controllers is further configured to issue the refresh command by providing a signal to the corresponding memory controller to cause the corresponding memory controller to issue the refresh command to the memory device.
16. An apparatus comprising: a row hammer controller coupled to a memory controller of a back end of the memory subsystem controller, coupled to a row hammer memory configured to store a first count and a second count, wherein the first count and the second count correspond to a same row address of a memory device coupled to the memory controller; The row hammer controller is configured as follows: accessing from the memory controller a row activate command having an address of a row of the memory device; determining whether the address corresponding to the row activation command is stored in a row hammer memory; in response to determining that the address is stored in the row hammer memory and either of the first count and the second count has been reset within a previous duration, updating at least one of the first count and the second count; in response to determining that the address is not stored in the row hammer memory, and in response to determining that utilization of a memory of control circuitry exceeds a first threshold, replacing a third row count corresponding to a different address with the first count corresponding to the address of the row activate command, wherein the first count has a value equal to the third row count; responsive to determining that the address is stored in the row hammer memory or responsive to replacing the third row count with the first count, incrementing the first count and the second count; In response to incrementing the first count and the second count, determining whether the first count or the second count is greater than a second threshold; In response to determining that the first count or the second count is greater than the second threshold, issuing a refresh command to the row address and updating the first count with a different value and resetting the second counter; and In response to issuing the refresh command to the row address or determining that the first count and the second count are not greater than the second threshold, determining whether to increment the first count and the second count based on a duration elapsed between receiving the row activate command and a corresponding precharge command.
17. The apparatus of claim 16, wherein the row hammer controller is further configured to: In response to determining that the corresponding precharge command is received, determining whether the corresponding precharge command is an auto-precharge command; and In response to determining that the precharge command is an auto-precharge command, a different duration is counted down before accessing the row activate command.
18. The apparatus of claim 16, wherein the row hammer controller is further configured to, in response to determining that the corresponding precharge command has not been received and in response to determining that a fourth row count is greater than a third threshold: Resetting the fourth row count; incrementing the first row count and the second row count; and A determination is made as to whether the precharge command has been received.
