Apparatus, system and method for clearing modified data from volatile memory to persistent second memory

The RAS controller is used to read and write data in the computer system through the memory controller, which solves the problem of time-consuming and power-consuming data clearing during system failures, achieves faster and more energy-saving data persistence storage, and ensures the system complete shutdown.

CN108628783BActive Publication Date: 2024-10-29INTEL CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201810234420.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-03-21
Publication Date
2024-10-29
Estimated Expiration
2038-03-21

AI Technical Summary

Technical Problem

In computer systems, the process of writing modified data in the first-level memory to the persistent second-level memory during a system failure requires a large amount of processing resources and power, resulting in time and power consumption that is difficult to effectively reduce with existing technologies. Time and power consumption of clearing operations.

Method used

Utilizing the existing hardware design through the memory controller, during normal memory controller operation, the RAS controller is used to read the data in the first memory and write it to the second memory, reducing the time and power consumption of the clear operation, utilizing The RAS controller performs flushing and error correction operations to achieve persistent cache flushing of data.

Benefits of technology

It achieves a faster and more energy-saving clearing of modified data from the first-level storage to the persistent storage during a system failure, reducing the consumption of processor resources and eliminating the need for additional hardware device support, ensuring that the system is protected when power is lost. complete shutdown sequence under the event.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108628783B_ABST
    Figure CN108628783B_ABST
Patent Text Reader

Abstract

An apparatus, system, and method for flushing modified data from a first memory to a persistent second memory are provided. A first memory controller coupled to the first memory includes at least one RAS controller that reads an address range in the first memory. In response to receiving a command from a power control unit, the at least one RAS controller is called to read data from the first memory from at least one address range specified for the RAS controller. The second memory controller transmits the data read from the first memory determined to be modified to the second memory. In response to the RAS controller completing the reading of the address range, the first memory controller sends a signal to the power control unit to indicate that the modified data in the address range specified for the RAS controller is flushed to the second memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments described herein generally relate to apparatus, systems, and methods for flushing modified data from a volatile memory to a persistent second memory. Background Art

[0002] In a typical computer system, the operating system or applications can access system memory directly, or can access system memory through a faster but smaller cache memory. Cache memory usually uses a different memory technology and has much better performance characteristics. In this cache hierarchy, the cache is invisible to software and is completely handled by hardware for data movement between the cache and the main system memory. The cache is sometimes called the first level of memory, and the main system memory is called the second level of memory. BRIEF DESCRIPTION OF THE DRAWINGS

[0003] The embodiments are described by way of example with reference to the accompanying drawings, which are not drawn to scale and in which like references refer to similar elements.

[0004] Figure 1 An embodiment of a system including a memory controller and first and second levels of memory is illustrated.

[0005] Figure 2 An embodiment of an integrated memory controller is illustrated.

[0006] Figure 3 An embodiment of a reliability, availability, and serviceability (RAS) controller address range is illustrated.

[0007] Figure 4 An embodiment of operations for configuring a RAS controller in an integrated memory controller to read an address range is illustrated.

[0008] Figure 5 An embodiment of the operation of a power control unit initiating a power down sequence and signaling the memory controller is illustrated.

[0009] Figure 6 An embodiment of the operation of processing a purge command from a power control unit is illustrated.

[0010] Figure 7 An embodiment of operations performed by a RAS controller in an integrated memory controller to read an address in a first memory is illustrated.

[0011] Figure 8 An embodiment of operations performed by a second level memory controller to process data read by a RAS controller is illustrated.

[0012] Fig. 9An embodiment of operations performed by a power control unit to process a message from an integrated memory controller that a flush has been performed with respect to a cache address region is illustrated. DETAILED DESCRIPTION

[0013] In application direct access mode, an application can write data directly to a persistent non-volatile memory or storage, and the data for the persistent non-volatile memory can be cached in a first-level memory device such as a volatile memory. In order to clear the modified data in the first-level memory device to the persistent second-level memory, the host operating system can issue a command to a memory location in the first-level memory device to write the modified or dirty data cached in the first-level memory device to the persistent second-level memory device. The operating system is exposed to the address space of the persistent second-level memory device, but does not directly access the data from the persistent second-level memory. Instead, the operating system will access the data from the persistent second-level memory in the first-level cache memory device, and the hardware manages the data transfer between the first-level and second-level memory devices.

[0014] There is a need in the art for improved techniques for managing primary and secondary storage to improve system performance.

[0015] The described embodiments provide techniques for flushing data from a first level memory or cache to persistent storage prior to executing a shutdown or other power down sequence. Some systems cause the operating system to read modified data from the first level memory to write out to persistent storage, which can require significant processing resources and power. During a system failure, components may be running on battery power to flush memory, and the processor resources required to read dirty data from the first level memory or cache and write the data out to persistent storage can be time consuming and power consuming.

[0016] The described embodiments perform a read of the first level memory to clear the modified data within the memory controller for transfer to persistent storage. Using the memory controller utilizes less power than the processor core to read and write out the modified data, which conserves battery power to allow a complete shutdown sequence in the event of a power loss event. Trial clearing in the memory controller reduces the time and power consumption of the clearing operation by leveraging existing hardware design and processes that are otherwise used for normal functions during normal memory controller operation.

[0017] In the following description, many specific details such as logic implementation, operation code, components of specified operands, resource partitioning / sharing / copying implementation, types and interrelationships of system components, and logic partitioning / integration selection are set forth to provide a more thorough understanding of the present invention. However, those skilled in the art will appreciate that the present invention can be practiced without these specific details. In other cases, control structures, gate-level circuits, and complete software instruction sequences are not shown in detail to avoid confusing the present invention. Using the included description, those of ordinary skill in the art will be able to implement appropriate functions without excessive experimentation.

[0018] References in the specification to "one embodiment," "an embodiment," "an exemplary embodiment," etc. indicate that the described embodiment may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment. Certain embodiments relate to storage device electronic assemblies. Embodiments include apparatus and methods for forming electronic assemblies.

[0019] Figure 1 An embodiment of the illustrated system 100 includes a central processing unit (CPU) package 102, a first memory 104, a second memory 106, initialization firmware 108 (e.g., a basic input operating system (BIOS)) for managing system initialization of hardware components, input / output (I / O) devices 110, such as input controls (e.g., a keyboard, a mouse, a touch screen), a display monitor, a storage device, etc.; a power supply 112 for supplying power to components of the system 100, and a battery 114 for supplying power to components in the CPU package 102 in the event that power from the power supply 112 is interrupted.

[0020] The CPU package 102 including one or more integrated circuit dies may include a processor core 120, a power control unit 122 for managing power-related and shutdown operations, and a memory controller 124 for managing access to a first memory 104 and a second memory 106. The memory controller 124 may manage the first memory 104 as a cache for the second memory 106, wherein the first memory may include a smaller and faster access memory than the second memory 106. In a two-level memory embodiment, the memory controller 124 manages the first memory 104 as a cache for the second memory 106, the first memory 104 may be referred to as a near memory or a first-level memory, and the second memory 106 may be referred to as a far memory or a second-level memory, so that read and write requests from the processor core 120 are directed directly to a memory address in the second memory 106 and cached in the first memory 104 for faster access. The bus interface 126 including one or more bus interfaces may provide communication between components in the CPU package 102 and other components in the system 100 (such as the initialization firmware 108 and the I / O device 110). The bus interface 126 may include a processor bus, fabric, ring, or mesh architecture internal to the processor 120 .

[0021] The memory controller 124 may include a structured memory controller 128 for managing communications between the processor core 120 and the second memory 106, a second level memory controller 130 for processing requests from the processor core 120 and for caching data for the second memory 106 in the first memory 104, and managing the transfer of data and requests to the second memory 106 through the structured memory controller 128, an integrated memory controller 132 for managing access to the first memory 104, and a buffer 134 for buffering data transferred between the first 104 and second 106 memories and the processor core 120. The integrated memory controller 132 may include one or more reliability, availability, and service (RAS) controllers 136 for reading data in the first memory 104 defined in a cache area 138 specifying one or more address ranges for each RAS controller 136. During a normal operating mode, the RAS controller 136 continuously reads through the address area in the first memory 104 defined in the cache area 138 for the RAS controller 136 to perform error correction on the read data, if necessary. In some embodiments, the RAS controller 136 may include a patrol scrub engine to read and correct data at memory addresses. In a persistent cache flushing mode of operation invoked during a power outage or failure, the RAS controller 136 may read data in its cache area 138 in the first memory 104 to flush dirty, i.e., modified, data to the second memory 106.

[0022] The power control unit 122 maintains a memory channel register 140 so that when the RAS controller 136 clears or reads all addresses for one or more memory channels identified in its cache area 138, the RAS controller 136 sends a message to the power control unit 122. When a message is received from the RAS controller 136 or the memory controller 124 that all addresses for one or more memory channels are read by the RAS controller 136 as part of a persistent cache clear operation, the power control unit 122 updates the memory channel register 140 corresponding to the memory channel that has been read / cleared by the RAS controller 136 to indicate that the memory channel has been cleared. For each memory channel to a memory device or memory die in the first memory 104, there may be a register in the register 140, such as Figure 2 shown.

[0023] The initialization firmware 108 maintains the RAS controller address range 300 to configure the cache region 138 for each RAS controller 136, thus configuring the RAS controller 136 with the address range 138 to read during refresh and clear operations.

[0024] exist Figure 1 In the preferred embodiment, the memory controller 124 is integrated into the CPU package 102. In alternative embodiments, the memory controller 124 may be implemented in a separate integrated circuit die external to the CPU package 102. In addition, components of the memory controller 124, such as the integrated memory controller 132, the second memory level controller 130, and the built-in memory controller 128 may be implemented in the same integrated circuit package or in separate integrated circuit devices.

[0025] In one embodiment, the first memory 104 may include one or more volatile memory devices including a state that requires power to maintain data stored by the medium. Non-limiting examples of volatile memory may include various types of random access memory (RAM), such as dynamic random access memory (DRAM), dual in-line memory module (DIMM), synchronous dynamic random access memory (SDRAM), etc. In a specific embodiment, the DRAM of the memory component may comply with a standard promulgated by JEDEC, such as JESD79F for DDR SDRAM, JESD79-2F for DDR2 SDRAM, JESD79-3F for DDR3 SDRAM, JESD79-4A for DDR4 SDRAM, JESD209 for low power DDR (LPDDR), JESD209-2 for LPDDR2, JESD209-3 for LPDDR3, and JESD209-4 for LPDDR4 (these standards are available at www.jedec.org). Such a standard (and similar standards) may be referred to as a DDR-based standard, and there may be communication interfaces for storage devices that implement such a standard.

[0026] The second memory 106 may include a byte-addressable write-in-place nonvolatile memory device, such as a ferroelectric random access memory (FeTRAM), a nanowire-based nonvolatile memory, a three-dimensional (3D) crosspoint memory, a phase change memory (PCM), a memory containing memristor technology, a magnetoresistive random access memory (MRAM), a spin transfer torque (STT)-MRAM, an SRAM memory device, etc. In some embodiments, the 3D crosspoint memory may include a transistor-free stackable crossbar architecture, where memory cells are located at the intersection of word lines and bit lines and are individually addressable, and where bit storage is based on changes in bulk resistance. In other embodiments, the second memory 106 may include a block-addressable nonvolatile memory, such as a NAND die (e.g., a single-level cell (SLC), a multi-level cell (MLC), a triple-level cell (TLC), a NAND memory, etc.).

[0027] In one embodiment, the second or far memory 106 provides more data storage than the first or near memory 104, and the first near memory 104 provides a faster access cache for the second (far) memory 106. The second level memory controller 130 may determine whether data requested by the processor 120 is cached in the near memory 104, and if not, the second level memory controller 130 fetches the requested data from the far memory 106.

[0028] Figure 2 An embodiment of an integrated memory controller 200 is shown, such as the integrated memory controller 132, which includes a plurality of memory channels 202. 1、 202 2 , 202 3 and 202 4 , which manages access to one or more connected DIMMs 204 1 , 204 2 , 202 4 ... 204 8 Each memory channel has 202 1 , 202 2 , 202 3 and 202 4 Including RAS controller 206 1 ,206 2 , 206 3 and 206 4 About memory channel 202 1, 202 2, 202 3 and 202 4 Cache area 208 in 1 , 208 2 , 208 3 and 208 4 The RAS controller 206 performs a refresh and clear to the second memory 106. 1 , 206 2 ,206 3 and 206 4 is associated with the memory channel.

[0029] exist Figure 2 In the embodiment, for each memory channel 202 1、 202 2 , 202 3 and 202 4 One RAS controller 206 1 , 206 2, 206 3 and 206 4 In an alternative configuration, the RAS controller 206 i Can be in multiple channels 202 i Read DIMM204 i In addition, there can be Figure 2 More or fewer memory channels 202 are shown i .

[0030] Figure 3 FIG. 3 shows a RAS controller address range 300 configured in the initialization firmware 108. i An embodiment of an example of a memory channel / RAS controller 302 and a RAS controller 136, 206 i The cache areas 138 and 208 are located at i Configured address range 304.

[0031] Figure 4 The diagram shows the steps performed in the initialization firmware 108 to configure the cache regions 138, 208 in the memory controller 124, 200. i When the initialization firmware 108 initiates a power-up sequence to configure the hardware components in the system 100, the initialization firmware 108 sends (at block 402) the address range 304 for each memory channel / RAS controller 302 to the memory controller 124, 200. The memory controller 124, 200 may then configure the cache address range 138, 208 for the RAS controller / memory channel to which the address range 304 points. i Initialization firmware 108 may also send (at block 404) a command to power control unit 122 to configure memory channel registers 140 for each memory channel / RAS controller 302 for which address range 304 is provided. In this manner, power control unit 122 and memory controller RAS controller 136, 206 i is configured to indicate an address range, each RAS controller 136, 206 i The address range will be used to perform refresh and clear operations.

[0032] Figure 5 An embodiment of operations performed by the power control unit 122 to initiate a power down sequence is illustrated, such as in the event of a failure or scheduled / planned power down for maintenance or other reasons. When the power control unit 122 initiates (at block 502) the power down sequence, the power control unit 122 sends (at block 504) a flush command to the integrated memory controller 132 to command the RAS controller 136, 206 iStop normal operation mode. In normal operation mode, the RAS controller 136, 206 i The address is read and the data error is corrected to refresh the first memory 104. The power control unit 122 sends (at block 506) a command to the integrated memory controller 132, 200 to invoke the RAS controller 136, 206 i Performs a persistent cache cleanup operation on Figure 7 Just as described.

[0033] Figure 6 An embodiment of operations performed by the integrated memory controller 132, 200 upon receiving a persistent cache flush command from a power control unit 600 is illustrated. Upon receiving (at block 600) a persistent cache flush command, the memory controller 124, or some other component within the memory controller 124, drains (at block 602) any pending writes in the buffer 134 to the first memory 104 for storage. After flushing the buffer 134, the memory controller 124 or the integrated memory controller 132 sends a request to all RAS controllers 136, 206. i Send (at block 604) a command to read its cache area 138, 208 i This will occur after terminating normal operating mode.

[0034] Figure 7 The diagram shows each RAS controller 136, 206 i An embodiment of an operation to perform a read operation as part of a persistent cache flush operation initiated by the power control unit 122. Upon receiving (at block 700) a command to initiate a persistent cache flush from the memory controller 124 or the power control unit 122, the RAS controller 136, 206 i Stop (at block 702) the normal operating mode where addresses are read to perform any error correction, if necessary, and read back. RAS controller 136, 206 i Perform a read (at block 704) for the RAS controller 136, 206 i Cache area 138, 208 i , and sends (at block 706) the read data to the second level memory controller 130, including cache metadata, such as a bit indicating whether the data is dirty (e.g., modified, unmodified, etc.). If (at block 708) there is a cache region 138, 208 i If another address is to be read in the cache area 138, 208 iThe next address of the cache area in the cache line is determined (at block 712), such as by incrementing the address by the cache line, and control proceeds back to block 706 to send the read data to the second level memory controller 130. If (at block 708) the cache area 138, 208 i If there are no additional addresses to read, the RAS controller 136, 206 i Signaling (at block 710) the integrated memory controller 132 that the address region read is complete causes the integrated memory controller 132, 200 or the memory controller 124 to notify the power control unit 122 for the signaled RAS controller 136, 206 to i Cache address region 138, 208 of the operating memory channel(s) i Has been cleared.

[0035] Figure 8 The diagram shows a response from the RAS controller 136, 206 i Upon receiving read data including cache metadata for the read data, an embodiment of operations performed by the second level memory controller 130. If (at block 806) the cache metadata indicates that the read data is dirty, e.g., modified data, the second level memory controller 130 sends (at block 804) the read data to the fabric memory controller 128 for transmission to the second memory 106. If (at block 802) the cache metadata indicates that the data is not dirty or modified, the data is discarded (at block 806) and no further action is taken with respect to the read data.

[0036] use Figure 8 The second level memory controller 130 will be controlled by the RAS controllers 136, 206 i The read dirty data is transferred to the second memory 106 to clear the modified data to the persistent second memory 106, while the non-dirty data is discarded.

[0037] Fig. 9 An embodiment of the operations performed by the power control unit 122 to process a message from the integrated memory controller 132, 200 indicating that: 1 , 202 2 , 202 3 and 202 4 or cache area 138, 208 i The integrated memory controller 132, 200 will respond to the RAS controller 136, 206 iThe message is sent by the signal of the memory channel 202. i All addresses of the cache area have been read. When receiving (at block 900) an indication that the memory channel 202 i When receiving a message that a cache area has been read and / or cleared, the power control unit 122 updates (at block 902) the memory channels 202 corresponding to the memory channels 202 indicated in the message as having been read and / or cleared. i / cache region) to indicate that the corresponding memory channel / cache region is to be cleared. If (at block 904) for all available memory channels 202 1 , 202 2 , 202 3 and 202 4 If all registers 140 of the power control unit 122 are indicated as having been read or cleared, the power control unit 122 sends commands to the power unit (such as the power supply 112), the processor core 120, and other components to initiate a shutdown or power-down sequence.

[0038] use Fig. 9 The power control unit 122 may initiate a power off operation after having been alerted by the components of the memory controller 124 that all modified data in the first memory 104 has been cleared to the second memory 106 to make it persistent. With the described embodiment, since the clearing is performed by the RAS controller 136, 206 in the memory controller 124, i The hardware and logic to perform the flush operation consumes less battery 114 power than if the processor core 120 had to perform a read operation from the first memory 104 to flush the data to the persistent second memory 106, so power consumption is minimized. In addition, by implementing the flush operation within the memory controller 124 logic and firmware, no additional hardware device is required to offload the flush from the processor core 120 because the RAS controller 136, 206 i The flush operation may be performed using the same components that perform refresh and error correction operations, thus eliminating the need for additional hardware that may consume additional power. In this manner, the described embodiments provide a more efficient way of performing flushing of modified data to persistent storage by offloading the flushing of modified data to the persistent storage to already existing components (such as RAS controllers 136, 206) that read the first memory 104 in the memory controller 124. i or other components in the system 100) to save power and processing. Although the purge is described as being performed by the RAS controller, in alternative embodiments, the memory controller 124 or other components in the integrated memory controller 134, 200 may perform the RAS controller 136, 206. i Describes the cleanup operation.

[0039] It should be appreciated that references throughout this specification to "one embodiment" or "an embodiment" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. Therefore, it is emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various parts of this specification do not necessarily refer to the same embodiment. Furthermore, particular features, structures, or characteristics may be appropriately combined in one or more embodiments of the present invention.

[0040] Similarly, it should be appreciated that in the foregoing description of embodiments of the present invention, various features are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of simplifying the disclosure and aiding understanding of one or more various inventive aspects. However, this approach to the present disclosure is not to be interpreted as reflecting an intention that the claimed subject matter requires more features than those expressly recited in each claim. On the contrary, as reflected in the following claims, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into the detailed description.

[0041] Reference characters used in this article are i and n , used herein to represent examples of variable numbers of elements, which may represent the same or different values, and when used with different or the same elements in different described contexts, may represent the same or different values.

[0042] Example

[0043] The following examples pertain to further embodiments.

[0044] Example 1 is an apparatus for clearing modified data from a volatile first memory to a persistent second memory, the apparatus communicating with a first memory, a second memory, a processor, and a power control unit, the apparatus comprising: a first memory controller coupled to the first memory and comprising at least one reliability, availability, and serviceability (RAS) controller, wherein each RAS controller reads an address range in the first memory; and a second memory controller coupled to the second memory, the second memory comprising a non-volatile memory; wherein the first memory controller and the second memory controller operate to: in response to the first memory controller receiving a command from the power control unit, call at least one RAS controller to read data from the first memory from at least one address range specified for the RAS controller; determine by the second memory controller whether the data read from the first memory includes modified data; transfer by the second memory controller the data read from the first memory determined to be modified to the second memory; and in response to the RAS controller completing reading the data in the address range, send by the first memory controller a signal to the power control unit to indicate that the modified data in the address range specified for the RAS controller is cleared to the second memory.

[0045] In Example 2, the subject matter of Examples 1 and 3-10 may optionally include: the second memory controller further discarding data read from the first memory by the RAS controller without transmitting to the second memory, the data not including the modified data.

[0046] In Example 3, the subject matter of Examples 1, 2, and 4-10 can optionally include being coupled to a battery, wherein the battery supplies power to the first memory controller and the second memory controller, and the at least one RAS controller reads data from the address range until the RAS controller has read all data from the address range, and the second memory controller has transferred modified data read by the at least one RAS controller to the second memory.

[0047] In Example 4, the subject matter of Examples 1-3 and 5-10 may optionally include:

[0048] The first memory includes a plurality of memory die, wherein the at least one RAS controller includes a plurality of RAS controllers, each associated with an address range in at least one memory channel to at least one of the memory die, wherein each RAS controller receives a command and in response reads data at the address range of the RAS controller, and wherein each RAS controller sends a signal to notify the power control unit in response to reading data in all address ranges: modified data in the address range for the RAS controller is cleared.

[0049] In Example 5, the subject matter of Examples 1-4 and 6-10 can optionally include that at least one RAS controller is configured to have an address range specified for the RAS controller from initialization firmware during initialization.

[0050] In Example 6, the subject matter of Examples 1-5 and 7-10 may optionally include: in response to the command, the first memory controller flushes all pending write data to the first memory, and wherein the at least one RAS controller reads data from the address range in response to the first memory controller flushing all pending write data to the first memory.

[0051] In Example 7, the subject matter of Examples 1-6 and 8-10 may optionally include the power control unit initiating a power-off operation for the processor in response to receiving a signal from each of the at least one RAS controller indicating that any modified data at an address range specified for the RAS controller is read.

[0052] In Example 8, the subject matter of Examples 1-7 and 9-10 may optionally include: the at least one RAS controller also: before receiving a command from the power control unit, operates in a normal operating mode to continuously read data at each of at least one address range specified for the RAS controller to perform error correction on the read data and write it back to the first memory; and terminates the normal operating mode for the command.

[0053] In Example 9, the subject matter of Examples 1-8 and 10 may optionally include: a first memory providing a cache for a second memory, wherein during a normal operating mode, a second memory controller receives a direct memory request for requested data in the second memory and determines whether the requested data is cached in the first memory, wherein the requested data read in the first memory is returned from the first memory, and wherein in response to a write request, write data is written to the first memory.

[0054] In Example 10, the subject matter of Examples 1-9 can optionally include: the first memory comprising dynamic random access memory (DRAM), and wherein the second memory comprises a non-volatile memory device.

[0055] Example 11 is a system for clearing modified data from a volatile first memory to a persistent second memory, comprising: a processor; a first memory; a second memory comprising a non-volatile memory; a first memory controller coupled to the first memory and comprising at least one RAS controller, wherein each RAS controller reads an address range in the first memory; a second memory controller coupled to the second memory; and a power control unit for supplying power to the processor, the first memory, the second memory, the first memory controller, and the second memory controller, wherein the first memory controller and the second memory controller operate to: in response to the first memory controller receiving a command from the power control unit, call at least one RAS controller to read data from the first memory from at least one address range specified for the RAS controller; determine by the second memory controller whether the data read from the first memory includes modified data; transfer by the second memory controller the data read from the first memory determined to be modified to the second memory; and in response to the RAS controller completing reading the data in the address range, send a signal by the first memory controller to the power control unit to indicate that the modified data in the address range specified for the RAS controller is cleared to the second memory.

[0056] In Example 12, the subject matter of Examples 11 and 13-18 may optionally include: a battery for supplying power to the first memory controller and the second memory controller, while the at least one RAS controller reads data from the address range until the RAS controller has read all data from the address range and the second memory controller has transferred modified data read by the at least one RAS controller to the second memory.

[0057] In Example 13, the subject matter of Examples 11, 12, and 14-18 may optionally include: the first memory includes a plurality of memory die, wherein the at least one RAS controller includes a plurality of RAS controllers, each associated with an address range in at least one memory channel to at least one of the memory dies, wherein each RAS controller receives a command and in response reads data at the address range of the RAS controller, and wherein each RAS controller sends a signal in response to reading data in all address ranges to notify the power control unit that modified data in the address range for the RAS controller is cleared.

[0058] In Example 14, the subject matter of Examples 11-13 and 15-18 can optionally include initialization firmware to configure at least one RAS controller using an address range specified for the RAS controller from during system initialization.

[0059] In Example 15, the subject matter of Examples 11-14 and 16-18 may optionally include: in response to the command, the first memory controller flushes all pending write data to the first memory, and wherein the at least one RAS controller reads data from the address range in response to the first memory controller flushing all pending write data to the first memory.

[0060] In Example 16, the subject matter of Examples 11-15 and 17-18 may optionally include the power control unit initiating a power-off operation for the processor in response to receiving a signal from each of the at least one RAS controller indicating that any modified data at an address range specified for the RAS controller is read.

[0061] In Example 17, the subject matter of Examples 11-16 and 18 may optionally include: the at least one RAS controller also: before receiving a command from the power control unit, operates in a normal operating mode to continuously read data at each of at least one address range specified for the RAS controller to perform error correction on the read data and write it back to the first memory; and terminates the normal operating mode for the command.

[0062] In Example 18, the subject matter of Examples 11-17 may optionally include: the first memory provides a cache for the second memory, wherein during a normal operating mode, the second memory controller receives a direct memory request for requested data in the second memory and determines whether the requested data is cached in the first memory, wherein the requested data read in the first memory is returned from the first memory, and wherein in response to a write request, the write data is written to the first memory.

[0063] Example 19 is a method for clearing modified data from a first memory to a persistent second memory, wherein the persistent second memory includes a non-volatile memory, the method comprising: in response to a first memory controller receiving a command from a power control unit, calling at least one RAS controller to read data from the first memory from at least one address range specified for the RAS controller; determining whether the data read from the first memory includes modified data; transferring the data read from the first memory determined to be modified to the second memory; and in response to the RAS controller completing reading the data in the address range, sending a signal to the power control unit to indicate that the modified data in the address range specified for the RAS controller is cleared to the second memory.

[0064] In Example 20, the subject matter of Examples 19 and 21-25 may optionally include supplying power to a first memory controller including at least one RAS controller and a second memory controller, while the at least one RAS controller reads data from the address range until the RAS controller has read all data from the address range and the second memory controller has transferred modified data read by the at least one RAS controller to the second memory.

[0065] In Example 21, the subject matter of Examples 19, 20, and 22-25 may optionally include: the first memory includes a plurality of memory die, wherein the at least one RAS controller includes a plurality of RAS controllers, each associated with an address range in at least one memory channel to at least one of the memory dies, wherein each RAS controller receives a command and in response reads data at the address range of the RAS controller, and wherein each RAS controller sends a signal in response to reading data in all address ranges to notify the power control unit that modified data in the address range for the RAS controller is cleared.

[0066] In Example 22, the subject matter of Examples 19-21 and 23-25 ​​may optionally include: in response to the command, flushing all pending write data to the first memory; and reading data from the address range by the at least one RAS controller in response to flushing all pending write data to the first memory.

[0067] In Example 23, the subject matter of Examples 19-22 and 24-25 can optionally include initiating, by the power control unit, a power down operation in response to receiving a signal from each of the at least one RAS controller indicating that any modified data at an address range specified for the RAS controller is read.

[0068] In Example 24, the subject matter of Examples 19-23 and 25 may optionally include: before receiving a command from the power control unit, operating by at least one RAS controller in a normal operating mode to continuously read data at each of at least one address range specified for the RAS controller to perform error correction on the read data and write back to the first memory; and terminating the normal operating mode for the command.

[0069] In Example 25, the subject matter of Examples 19-24 may optionally include: the first memory provides a cache for the second memory, and the method further includes: during a normal operating mode, receiving a direct memory request for requested data in the second memory; determining whether the requested data is cached in the first memory; when the requested data is cached in the first memory, returning the read requested data in the first memory; and in response to a write request, writing the write data to the first memory.

[0070] Example 26 is a device for clearing modified data from a first memory to a persistent second memory, the persistent second memory comprising a non-volatile memory, the device comprising: a component for invoking at least one RAS controller to read data from the first memory from at least one address range specified for the RAS controller in response to the first memory controller receiving a command from a power control unit; a component for determining whether the data read from the first memory includes modified data; a component for transferring the data read from the first memory determined to be modified to the second memory; and a component for sending a signal to the power control unit in response to the RAS controller completing reading the data in the address range to indicate that the modified data in the address range specified for the RAS controller is cleared to the second memory.

[0071] Example 27 is a machine-readable storage comprising machine-readable instructions, which, when executed, implement a method or implement an apparatus as claimed in any preceding claim.

[0072] Example 28 is an apparatus comprising means for performing a method as claimed in any preceding claim.

Claims

1. An apparatus for clearing modified data from a volatile first memory to a persistent second memory, the apparatus communicating with the first memory, the second memory, a processor, and a power control unit, the apparatus comprising: a first memory controller coupled to the first memory and comprising at least one reliability, availability, and serviceability (RAS) controller, wherein each RAS controller reads an address range in the first memory; as well as a second memory controller coupled to a second memory, the second memory comprising a non-volatile memory; Wherein the first memory controller and the second memory controller operate to: in response to the first memory controller receiving a command from the power control unit, invoking at least one RAS controller to read data from the first memory from at least one address range specified for the RAS controller; determining, by the second memory controller, whether the data read from the first memory includes the modified data; The second memory controller transmits the data read from the first memory and determined to be modified to the second memory; as well as In response to the RAS controller completing reading the data in the address range, a signal is sent by the first memory controller to the power control unit to indicate that the modified data in the address range specified for the RAS controller is flushed to the second memory.

2. The apparatus of claim 1, wherein the second memory controller is further to discard data read from the first memory by the RAS controller without transmitting to the second memory, the data excluding the modified data.

3. The apparatus of claim 1 , the apparatus being coupled to a battery, wherein the battery supplies power to the first memory controller and the second memory controller while at least one RAS controller reads data from the address range until the RAS controller has read all data from the address range and the second memory controller has transferred modified data read by the at least one RAS controller to the second memory.

4. The apparatus of claim 1 , wherein the first memory comprises a plurality of memory dies, wherein: The at least one RAS controller includes a plurality of RAS controllers each associated with an address range in at least one memory channel to at least one of the memory dies, wherein each RAS controller receives a command and in response reads data at the address range of the RAS controller, and wherein each RAS controller sends a signal in response to reading data in all address ranges to notify the power control unit that modified data in the address range for the RAS controller is cleared.

5. The apparatus of claim 1, wherein at least one RAS controller is configured to have an address range specified for the RAS controller from initialization firmware during initialization.

6. The apparatus of claim 1 , wherein in response to the command, the first memory controller flushes all pending write data to the first memory, and wherein the at least one RAS controller reads data from the address range in response to the first memory controller flushing all pending write data to the first memory.

7. The apparatus of claim 1, wherein the power control unit initiates a power-off operation for the processor in response to receiving a signal from each of the at least one RAS controller indicating that any modified data at an address range specified for the RAS controller is read.

8. The apparatus of claim 1, wherein the at least one RAS controller further comprises: Prior to receiving a command from the power control unit, operating in a normal operation mode to continuously read data at each of at least one address range designated for the RAS controller to perform error correction on the read data and write back to the first memory; and Terminates normal operating mode for the command.

9. The apparatus of claim 1 , wherein the first memory provides a cache for the second memory, wherein during a normal operating mode, the second memory controller receives a direct memory request for requested data in the second memory and determines whether the requested data is cached in the first memory, wherein the requested data read in the first memory is returned from the first memory, and wherein in response to a write request, write data is written to the first memory.

10. The apparatus of any one of claims 1-9, wherein the first memory comprises a dynamic random access memory (DRAM), and wherein the second memory comprises a non-volatile memory device.

11. A system for clearing modified data from a volatile first memory to a persistent second memory, comprising: processor; a first memory; a second memory comprising a non-volatile memory; a first memory controller coupled to the first memory and comprising at least one RAS controller, wherein each RAS controller reads an address range in the first memory; a second memory controller coupled to the second memory; as well as a power control unit, configured to supply power to the processor, the first memory, the second memory, the first memory controller, and the second memory controller, Wherein the first memory controller and the second memory controller operate to: in response to the first memory controller receiving a command from the power control unit, invoking at least one RAS controller to read data from the first memory from at least one address range specified for the RAS controller; determining, by the second memory controller, whether the data read from the first memory includes the modified data; The second memory controller transmits the data read from the first memory and determined to be modified to the second memory; as well as In response to the RAS controller completing reading the data in the address range, a signal is sent by the first memory controller to the power control unit to indicate that the modified data in the address range specified for the RAS controller is flushed to the second memory.

12. The system according to claim 11, further comprising: A battery is used to supply power to the first memory controller and the second memory controller while the at least one RAS controller reads data from the address range until the RAS controller has read all data from the address range and the second memory controller has transferred modified data read by the at least one RAS controller to the second memory.

13. The system of claim 11, wherein the first memory comprises a plurality of memory dies, wherein: The at least one RAS controller includes a plurality of RAS controllers each associated with an address range in at least one memory channel to at least one of the memory dies, wherein each RAS controller receives a command and in response reads data at the address range of the RAS controller, and wherein each RAS controller sends a signal in response to reading data in all address ranges to notify the power control unit that modified data in the address range for the RAS controller is cleared.

14. The system of claim 11, further comprising: Initialization firmware is used to configure at least one RAS controller using the address range specified for the RAS controller from during system initialization.

15. The system of claim 11, wherein in response to the command, the first memory controller flushes all pending write data to the first memory, and wherein at least one RAS controller reads data from the address range in response to the first memory controller flushing all pending write data to the first memory.

16. The system of claim 11, wherein the power control unit initiates a power-off operation for the processor in response to receiving a signal from each of the at least one RAS controller indicating that any modified data at an address range specified for the RAS controller is read.

17. The system of claim 11, wherein the at least one RAS controller further comprises: Prior to receiving a command from the power control unit, operating in a normal operation mode to continuously read data at each of at least one address range designated for the RAS controller to perform error correction on the read data and write back to the first memory; and Terminates normal operating mode for the command.

18. A system according to any one of claims 11-17, wherein the first memory provides a cache for the second memory, wherein during a normal operating mode, the second memory controller receives a direct memory request for requested data in the second memory and determines whether the requested data is cached in the first memory, wherein the read requested data in the first memory is returned from the first memory, and wherein in response to a write request, the write data is written to the first memory.

19. A method for clearing modified data from a first memory to a persistent second memory, the persistent second memory comprising a non-volatile memory, the method comprising: in response to the first memory controller receiving a command from the power control unit, invoking at least one RAS controller to read data from the first memory from at least one address range specified for the RAS controller; determining whether the data read from the first memory includes the modified data; transferring the data determined to be modified and read from the first memory to the second memory; as well as In response to the RAS controller completing reading the data in the address range, a signal is sent to the power control unit to indicate that the modified data in the address range specified for the RAS controller is cleared to the second memory.

20. The method according to claim 19, further comprising: Power is supplied to a first memory controller including at least one RAS controller and a second memory controller, and the at least one RAS controller reads data from the address range until the RAS controller has read all data from the address range and the second memory controller has transferred modified data read by the at least one RAS controller to the second memory.

21. The method of claim 19, wherein the first memory comprises a plurality of memory dies, wherein: The at least one RAS controller includes a plurality of RAS controllers each associated with an address range in at least one memory channel to at least one of the memory dies, wherein each RAS controller receives a command and in response reads data at the address range of the RAS controller, and wherein each RAS controller sends a signal in response to reading data in all address ranges to notify the power control unit that modified data in the address range for the RAS controller is cleared.

22. The method of claim 19, further comprising: In response to the command, flushing all pending write data to the first memory; as well as Data is read from the address range by at least one RAS controller in response to flushing all pending write data to the first memory.

23. The method of claim 19, further comprising: A power-off operation is initiated by the power control unit in response to receiving a signal from each of the at least one RAS controller indicating that any modified data at an address range specified for the RAS controller is read.

24. The method of claim 19, further comprising: operating, by at least one RAS controller in a normal operating mode, prior to receiving a command from the power control unit, to continuously read data at each of at least one address range specified for the RAS controller to perform error correction on the read data and write back to the first memory; as well as Terminates normal operating mode for the command.

25. The method of any one of claims 19-24, wherein the first memory provides a cache for the second memory, the method further comprising: receiving, during a normal operating mode, a direct memory request for requested data in a second memory; determining whether the requested data is cached in the first memory; When the requested data is cached in the first memory, returning the read requested data in the first memory; as well as In response to the write request, write data is written to the first memory.

26. An apparatus for clearing modified data from a first memory to a persistent second memory, the persistent second memory comprising a non-volatile memory, the apparatus comprising: means for invoking at least one RAS controller to read data from the first memory from at least one address range specified for the RAS controller in response to the first memory controller receiving a command from the power control unit; means for determining whether the data read from the first memory includes modified data; means for transferring data read from the first memory and determined to be modified to the second memory; as well as Means for sending a signal to the power control unit to indicate that modified data in the address range specified for the RAS controller is cleared to the second memory in response to the RAS controller completing reading the data in the address range.

27. The apparatus according to claim 26, further comprising: A component for supplying power to a first memory controller and a second memory controller including at least one RAS controller, while the at least one RAS controller reads data from the address range until the RAS controller has read all data from the address range and the second memory controller has transferred modified data read by the at least one RAS controller to the second memory.

28. The apparatus of claim 26, wherein the first memory comprises a plurality of memory dies, wherein: The at least one RAS controller includes a plurality of RAS controllers each associated with an address range in at least one memory channel to at least one of the memory dies, wherein each RAS controller receives a command and in response reads data at the address range of the RAS controller, and wherein each RAS controller sends a signal in response to reading data in all address ranges to notify the power control unit that modified data in the address range for the RAS controller is cleared.

29. The apparatus of claim 26, further comprising: means for flushing all pending write data to the first memory in response to the command; as well as Means for reading data from the address range by at least one RAS controller in response to flushing all pending write data to the first memory.

30. The apparatus of claim 26, further comprising: Means for initiating a power-off operation by the power control unit in response to receiving a signal from each of the at least one RAS controller indicating that any modified data at an address range specified for the RAS controller is read.

31. The apparatus of claim 26, further comprising: means for operating by at least one RAS controller in a normal operating mode prior to receiving a command from the power control unit to continuously read data at each of at least one address range specified for the RAS controller to perform error correction on the read data and write back to the first memory; as well as Means for terminating normal operating mode for said command.

32. The apparatus of any one of claims 26-31, wherein the first memory provides a cache for the second memory, the apparatus further comprising: means for receiving a direct memory request for requested data in a second memory during a normal operating mode; means for determining whether the requested data is cached in the first memory; means for returning the read requested data in the first memory when the requested data is cached in the first memory; as well as Means for writing write data to the first memory in response to the write request.

33. A computer readable medium having stored thereon instructions which, when executed, cause a computing device to perform the method of any one of claims 19 to 25.

Citation Information

Patent Citations

  • Setting method and device of RAS configuration

    CN103645915A

  • Block storage apertures to persistent memory

    CN105706071A