Data integrity for persistent memory systems

The memory controller with CRC generation and checking mechanisms addresses the lack of end-to-end data integrity in NVDIMM-P systems by leveraging user bits for robust error detection and correction, improving reliability and compatibility.

JP7543348B2Active Publication Date: 2024-09-02ADVANCED MICRO DEVICES INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2022125240
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-12-06
Filing Date
2022-08-05
Publication Date
2024-09-02
Estimated Expiration
2040-07-17

AI Technical Summary

Technical Problem

Existing NVDIMM-P systems lack end-to-end data integrity checks, relying solely on link ECC for data protection, which is insufficient for correcting multi-bit errors and persistent memory failures.

Method used

Implement a memory controller with enhanced error correction mechanisms, including a CRC generator and checker, that utilizes available user bits in the NVDIMM-P protocol to perform end-to-end data integrity checks, complementing link ECC for robust error detection and correction.

Benefits of technology

Provides comprehensive data integrity by detecting and correcting single-bit and multi-bit errors, ensuring reliable data transfer and storage in NVDIMM-P systems, enhancing system reliability and compatibility with existing protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007543348000001
    Figure 0007543348000001
  • Figure 0007543348000002
    Figure 0007543348000002
  • Figure 0007543348000004
    Figure 0007543348000004
Patent Text Reader

Abstract

A data processor, a data processing system and a method for ensuring data integrity in a persistent memory system or the like are provided. In a data processor 210, a memory controller communicates with a memory via a memory channel using a first type of error code. The data processor calculates a different second type of error code in response to a write access request and adds each bit of the second type of error code as a corresponding bit of user bits. The memory stores the user bits in memory in response to a write command and transfers the user bits to the data processor in a read response packet in response to a read command.
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] Computer systems typically use inexpensive, high-density Dynamic Random Access Memory (DRAM) chips for main memory. Most DRAM chips sold today are compatible with various Double Data Rate (DDR) DRAM standards promulgated by the Joint Electron Devices Engineering Council (JEDEC). In accordance with the published DDR standards, a DDR memory controller is used to manage the interface between the various memory access agents and the DDR DRAM.

[0002] Non-volatile dual in-line memory modules with persistent storage (NVDIMM-P) are a storage class memory alternative to standard DDR DIMMs, but which contain persistent memory to preserve critical data upon power disconnection or loss. However, because these memories have non-deterministic access latencies and on-board media management activities that may temporarily delay access to the non-volatile memory, these memories require a handshake protocol to inform the host controller of the availability of data from the NVDIMM-P. JEDEC is developing a standard for the NVDIMM-P transaction protocol to mitigate this non-deterministic performance impact and to enable out-of-order transactions and the ability to stack commands. The current draft of this standard specifies a data integrity feature known as "Link ECC" (Link Error Correcting Code), which detects and potentially corrects errors on the link that could cause malfunction or program failure. [Brief description of the drawings]

[0003] [Figure 1] 1 is a block diagram of a data processing system as known in the prior art; [Diagram 2]1 is a block diagram of a data processing system according to some embodiments. [Diagram 3] 3 is a block diagram of a memory controller that may be used in the data processor of FIG. 2. [Figure 4] 3 is a block diagram of a portion of the data processing system of FIG. 2 showing further details of the memory controller and persistent memory in accordance with some embodiments. [Diagram 5] FIG. 2 illustrates a data packet format of the proposed NVDIMM-P standard supporting link integrity checking as known in the prior art. [Figure 6] A diagram illustrating a data packet format for an NVDIMM-P memory that supports end-to-end data integrity checking in accordance with some embodiments. [Figure 7] 3 is a block diagram of a portion of the data processing system of FIG. 2 showing further details of the memory controller and persistent memory in accordance with some embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0004] In the following description, the use of the same reference numbers in different figures indicates similar or identical items. Unless otherwise noted, the word "coupled" and its related verb forms include both direct and indirect electrical connections by means known in the art, and unless otherwise noted, any reference to a direct connection also refers to alternative embodiments using an appropriate form of indirect electrical connection.

[0005] The data processor includes a memory controller, the memory controller including a command queue, an arbiter, a first error code generating circuit, a second error code generating circuit, and a queue. The command queue stores decoded commands for dispatch to the memory channel. The arbiter selects commands from the command queue according to a predetermined criterion. The first error code generating circuit generates a first type of error code in response to data of the write request. The second error code generating circuit generates a second type of error code for the write request, the second type of error code being different from the first type of error code. The queue is coupled to the arbiter, the first error code generating circuit, and the second error code generating circuit, and provides a write command to the interface, the write command including data, the first type of error code, and the second type of error code.

[0006] The data processing system includes a memory channel, a memory connected to the memory channel, and a data processor. The data processor is connected to the memory channel and configured to access the memory through the memory channel using a packet structure, the packet structure defining a plurality of commands and having corresponding address bits, data bits, and user bits. The data processor communicates with the memory through the memory channel using a first type of error code. In response to a write access request, the data processor calculates a different second type of error code and adds each bit of the second type of error code as a corresponding bit of the user bits. In response to a write command, the memory stores the user bits in the memory, and in response to a read command, transfers the user bits to the data processor in a read response packet.

[0007] A method for writing data from a data processor to a memory device on a memory channel includes receiving a write request. A first type of error code is generated in accordance with the write request. A second type of error code, different from the first type of error code, is generated in accordance with the write request. A write packet is generated having corresponding address bits, corresponding data bits, a corresponding first error code bit of the first type of error code in a predetermined error correction code field, and a corresponding second error code bit of the second type of error code in a predetermined user bit field. The write packet is transferred over the memory channel.

[0008] 1 is a block diagram of a data processing system known in the prior art. Data processing system 100 generally includes a data processor 110 in the form of an Accelerated Processing Unit (APU), a memory system 120, a Peripheral Component Interconnect Express (PCIe) system 150, a Universal Serial Bus (USB) system 160, and a disk drive 170. Data processor 110 acts as the central processing unit (CPU) of data processing system 100 and provides a variety of buses and interfaces useful in modern computer systems. These interfaces include two double data rate (DDRx) memory channels, a PCIe root complex for connecting to a PCIe link, a USB controller for connecting to a USB network, and an interface to Serial Advanced Technology Attachment (SATA) mass storage.

[0009] Memory system 120 includes memory channel 130 and memory channel 140. Memory channel 130 includes a set of dual in-line memory modules (DIMMs) connected to a DDRx bus 132, here including representative DIMMs 134, 136, and 138 corresponding to separate ranks. Similarly, memory channel 140 includes a set of DIMMs connected to a DDRx bus 142, here including representative DIMMs 144, 146, and 148.

[0010] PCIe system 150 includes PCIe switch 152, PCIe device 154, PCIe device 156, and PCIe device 158 connected to a PCIe root complex of data processor 110. PCIe device 156 is in turn connected to system basic input / output system (BIOS) memory 157. System BIOS memory 157 can be any of a variety of non-volatile memory types, such as read only memory (ROM), flash electrically erasable programmable ROM (EEPROM), etc.

[0011] The USB system 160 includes a USB hub 162 connected to a USB master in the data processor 110, and representative USB devices 164, 166, and 168 each connected to the USB hub 162. The USB devices 164, 166, and 168 can be devices such as a keyboard, a mouse, a flash EEPROM port, and the like.

[0012] Disk drive 170 is connected to data processor 110 via a SATA bus, and provides mass storage for the operating system, application programs, application files, and the like.

[0013] Data processing system 100 is suitable for use in modern computing applications by providing memory channel 130 and memory channel 140. Each of memory channels 130, 140 can be connected to state-of-the-art DDR memories (e.g., DDR version 4 (DDR4), low power DDR4 (LPDDR4), graphics DDR version 5 (gDDR5), high bandwidth memory (HBM), etc.) and can accommodate future memory technologies. These memories provide high bus bandwidth and high speed operation. At the same time, they also provide low power modes to conserve power for battery-powered applications such as laptop computers and have built-in thermal monitoring capabilities.

[0014] FIG. 2 is a block diagram of a data processing system 200 according to some embodiments. The data processing system 200 is similar to the data processing system 100 of FIG. 1, except that the data processing system 200 includes an enhanced memory channel and a data processor 210 that can access the memory channel. The data processing system 200 includes a memory system 220 and a modified data processor 210 in the form of an APU for interfacing thereto. In addition to the normal DDRx memory channel, the data processor 210 can access an NVDIMM-P 238 on a heterogeneous memory channel 230 having both RDIMMs 234, 236 and an NVDIMM-P 238, in addition to a homogeneous memory channel 240 having only normal DDR4 registered DIMMs (RDIMMs) 244, 246, 248. It should be noted that in another example, the heterogeneous memory channels can be formed with other types of DRAM memory including load reduced DIMMs (LRDIMMs), three-dimensional (3-D) stacked DIMMs, etc.

[0015] According to the NVDIMM-P draft standard, transactions between the memory controller on the data processor 210 and the NVDIMM-P 238 are protected by "Link ECC". Link ECC ensures data integrity of data transfers between the memory controller and the NVDIMM over the bus 232. According to known ECC mechanisms, Link ECC protects against data corruption on the link caused by random or temporary errors in any of the bits of a packet. The protection depends on the ECC code used. ECC may allow, for example, single-bit error correction with multi-bit error detection. Since temporary or random errors do not occur persistently, upon detection of an uncorrectable error, the memory controller of the data processor 210 may replay the transaction and may report both correctable and uncorrectable errors to the operating system.

[0016] While link ECC can correct some errors by single-bit correction or link regeneration, multi-bit errors cannot be corrected by the ECC mechanism alone. Furthermore, the ECC mechanism cannot prevent errors that occur in the DIMM itself, such as single-bit failures, in the memory on the NVDIMM-P238, i.e., persistent memory, such as regular high-density DRAMs, such as DDR4 DRAMs, or any of the various types of non-volatile memory.

[0017] 3 is a block diagram of a memory controller 300 that may be used in the data processor 210 of FIG. 2. The memory controller 300 generally includes a memory channel controller 310 and a power controller 350. The memory channel controller 310 generally includes an interface 312, a queue and NVDIMM-P sequencer 314, a command queue 320, an address generator 322, a content addressable memory (CAM) 324, a replay queue 330, a refresh logic block 332, a timing block 334, a page table 336, an arbiter 338, an ECC and cyclic redundancy check (CRC) check circuit 342, an ECC and CRC generation block 344, and a data buffer (DB) 346.

[0018] Interface 312 has a first bidirectional connection to the data fabric, labeled "AXI4," and a second bidirectional connection via an external bus. In memory controller 300, this external bus is compatible with the Advanced Extensible Interface version 4 (i.e., AXI4) defined by ARM Holdings, PLC of Cambridge, UK, but may be other types of interfaces in alternative embodiments. Interface 312 translates memory access requests from a first clock domain known as the FCLK (or MEMCLK) domain to a second clock domain internal to memory controller 300, known as the UCLK domain. Similarly, queue and NVDIMM-P sequencer 314 provides memory access from the UCLK domain to the DFICLK domain associated with the DDR-PHY (DFI) interface.

[0019] Address generator 322 decodes addresses of memory access requests received from the data fabric via the AXI4 bus. The memory access requests include access addresses in the physical address space represented in a normalized format. Address generator 322 converts the normalized addresses into a format that can be used to address actual memory devices in memory system 120 and efficiently schedule the associated accesses. This format includes a region identifier that associates the memory access request with a particular rank, row address, column address, bank address, and bank group in the case of DDR4 DRAM, or with an NVDIMM-P region. At startup, the system BIOS queries the memory devices in memory system 120 to determine their size and configuration, and programs a set of configuration registers associated with address generator 322. Address generator 322 converts the normalized addresses into a suitable format using the configuration stored in the configuration registers. Command queue 320 is a queue of memory access requests received from memory access agents in data processing system 100, such as a CPU core or a graphics core. Command queue 320 stores address fields decoded by address generator 322 and other address information, including access type and quality of service (QoS) identifiers, that allow arbiter 338 to efficiently select memory accesses. CAM 324 contains information that implements ordering rules, such as write-after-write (WAW) and read-after-write (RAW) ordering rules.

[0020] Replay queue 330 is a temporary queue that stores memory accesses selected by arbiter 338 and waits for responses, such as address and command parity responses, write cyclic redundancy check (CRC) responses in the case of DDR4 DRAM, and write and read CRC responses in the case of gDDR5 DRAM. Replay queue 330 accesses ECC and CRC check circuitry 342 to determine whether the returned ECC is correct or indicates an error. Replay queue 330 allows accesses to be replayed if there is a parity or CRC error in one of these cycles.

[0021] The refresh logic block 332 includes state machines for various power-down, refresh, and termination resistor (ZQ) calibration cycles that are generated separately from normal read and write memory access requests received from memory access agents. For example, when a memory rank is precharged and powered down, it must be periodically awakened to perform a refresh cycle. The refresh logic block 332 periodically generates refresh commands to prevent data errors caused by charge leakage from the capacitors of memory cells in the DRAM chip. In addition, the refresh logic block 332 periodically calibrates ZQ to prevent on-die termination resistor mismatch due to temperature changes in the system.

[0022] Arbiter 338 is bidirectionally connected to command queue 320 and is the heart of memory channel controller 310. Arbiter 338 improves efficiency through intelligent scheduling of accesses, resulting in higher utilization of the memory bus. Using timing block 334, arbiter 338 enforces the proper timing relationships by determining whether a particular access in command queue 320 is eligible for issue based on DRAM timing parameters. For example, each DRAM may have a "t RCA timing block 334 maintains a set of counters that determine eligibility based on this and other timing parameters defined in the JEDEC specifications, and is bidirectionally connected to replay queue 330. A page table 336 maintains state information for arbiter 338 about the active pages in each bank and rank of the memory channel, and is bidirectionally connected to replay queue 330.

[0023] In response to a write memory access request received from the interface 312, the ECC and CRC generation block 344 calculates the ECC according to the write data. The DB 346 stores the write data and the ECC of the received memory access request. When the arbiter 338 selects the corresponding write access for dispatching to the memory channel, the DB 346 outputs the write data / ECC combination to the queue and the NVDIMM-P sequencer 314.

[0024] The power controller 350 generally includes an interface 352 to an advanced extensible interface, version one (AXI), an advanced peripheral bus (APB) interface 354, and a power engine 360. The interface 352 has a first bidirectional connection to a system management network (SMN), which includes an input for receiving an event signal labeled "EVENT_n" shown separately in FIG. 3, and an output. The APB interface 354 has an input connected to an output of the interface 352, and an output connected to the PHY via the APB. The power engine 360 ​​has an input connected to an output of the interface 352, and an output connected to a queue and an input of the NVDIMM-P sequencer 314. The power engine 360 ​​includes a set of configuration registers 362, a microcontroller (μC) 364, a self-refresh controller (SLFREF / PE) 366, and a reliable read / write timing engine (RRW / TE) 368. Configuration registers 362 are programmed via the AXI bus to store configuration information for controlling the operation of various blocks within memory controller 300. Thus, configuration registers 362 have outputs connected to blocks not shown in detail in FIG. 3. Self-refresh controller 366 is an engine that allows manual generation of refreshes in addition to the automatic generation of refreshes by refresh logic block 332. Reliable read / write timing engine 368 provides a continuous stream of memory accesses to memory or I / O devices for purposes of DDR interface maximum read latency (MRL) training and loopback testing.

[0025] The memory channel controller 310 includes circuitry that allows the memory channel controller 310 to select memory accesses to dispatch to the associated memory channel. To make the desired arbitration decisions, the address generator 322 decodes the address information into pre-decode information including rank, row address, column address, bank address, and bank group within the memory system, and the command queue 320 stores the pre-decode information. The configuration register 362 stores configuration information that specifies how the address generator 322 decodes the address information it receives. The arbiter 338 uses the decoded address information, timing eligibility information indicated by the timing block 334, and active page information indicated by the page table 336 to efficiently schedule memory accesses while adhering to other criteria such as QoS requirements. For example, the arbiter 338 prioritizes accesses to open pages to avoid the overhead of precharge and activation commands required to change memory pages, and interleaves these accesses with read and write accesses to another bank to hide the overhead accesses to a bank. Specifically, during normal operation, the arbiter 338 typically keeps pages open in different banks until a precharge is required before selecting a different page.

[0026] The memory controller 300 is similar to the memory controller used in the APU 110 of FIG. 1, but differs in the following respects. First, the memory controller 300 includes an ECC and CRC check circuit 342 that replaces the simple ECC check circuit. The ECC and CRC check circuit 342 not only checks the received ECC against the incoming ECC, but also checks the CRC generated according to the received data or generated according to the received data, address, and metadata against the received CRC for end-to-end integrity checking. In response to a read response packet, the ECC and CRC check circuit 342 provides a CRC code using a polynomial, which will be described later. The memory controller 300 generates a CRC using the ECC and CRC generation circuit 344 and sends it to the NVDIMM-P. The NVDIMM-P extracts the user bits from the received write data packet, stores the CRC, and returns the CRC, along with the corresponding data, in the user bits of the read response packet to the memory controller 300.

[0027] Second, address generator 322 replaces the corresponding address generator used for data processor 110. Additionally, address generator 322 decodes the address range of the NVDIMM-P memory and stores the decoded signal indicating that the memory access request is a request to the NVDIMM-P in command queue 320. Arbiter 338 may then appropriately prioritize the NVDIMM-P request relative to other requests.

[0028] Third, an ECC and CRC generation circuit 344 replaces the corresponding ECC generation circuit used by data processor 110. ECC and CRC generation circuit 344 not only specifies the ECC of the write data sent to the NVDIMM-P, but also generates a CRC for the entire packet for end-to-end data integrity checking.

[0029] Fourth, queues and NVDIMM-P sequencer 314 replace the corresponding queues used by data processor 110. Queues and NVDIMM-P sequencer 314 include queues deep enough to compensate for the high latency of persistent memory systems such as NVDIMM-P, or in some embodiments, include separate queues for DRAM accesses and for NVDIMM-P accesses.

[0030] These differences, as well as the operation and advantages of memory controller 300, will now be discussed.

[0031] 4 is a block diagram of a portion 400 of the data processing system 200 of FIG. 2 showing further details of the memory controller and persistent memory, according to some embodiments. The portion 400 includes an NVDIMM-P physical layer interface (PHY) 410, an NVDIMM-P 420, a CRC generator 430 portion of the ECC and CRC generation circuit 344, a CRC generator 440 of the ECC and CRC check circuit 342, and a comparator 450 of the ECC and CRC check circuit 342. The NVDIMM-P PHY 410 includes a packetizer and driver 412 and a receiver and depacketizer 414. The packetizer and driver 412 has a first input for receiving commands and metadata, a second input for receiving an address labeled "ADD[39:0]", a third input for receiving write data labeled "Write Data[511:0]", a fourth input, and an output port for providing commands to a request channel. CRC generator 430 has an input for receiving write data[511:0] and an output connected to a fourth input of packetizer and driver 412. Receiver and depacketizer 414 has an input connected to the response channel, a first output for providing a signal labeled "metadata", a second output for providing a tag (which corresponds to an address), a third output for providing read data, and a fourth output for providing the received CRC.

[0032] NVDIMM-P 420 includes an NVDIMM-P buffer 422, a dynamic random access memory (DRAM) 424, and persistent storage 426. NVDIMM-P buffer 422 has a request channel input port connected to an output port of packetizer and driver 412, a bidirectional internal port, and a channel output port connected to a response channel. DRAM 424 has a first bidirectional port connected to NVDIMM-P buffer 422 and a second bidirectional port connected to persistent storage 426.

[0033] FIG. 4 illustrates a system that, in operation, adds end-to-end data integrity checking to the link ECC defined in the NVDIMM-P proposed standard. In this example, data integrity is checked only on the data itself, i.e., write data[511:0] sent in the write data packet. Therefore, CRC generator 430 generates a CRC using only write data[511:0]. CRC generator 430 provides the CRC to packetizer and driver 412 for insertion into specific bits of the write data packet known as user bits. The NVDIMM-P proposed standard defines six user bits, which are user-defined metadata. The write data packet, along with other information, is sent to NVDIMM-P buffer 422 via a request channel. After receiving the write data packet, NVDIMM-P buffer 422 performs link ECC checking and error reporting. However, NVDIMM-P buffer 422 stores the six user bits in an internal buffer, either DRAM 424 or persistent storage 426.

[0034] In response to a read command, the NVDIMM-P buffer 422 provides a data response packet according to the NVDIMM-P protocol. The NVDIMM-P buffer 422 reads the six CRC bits from an internal buffer, DRAM 424 or persistent storage 426, and adds them as six corresponding user bits of the data response packet. The NVDIMM-P buffer 422 transmits the data response packet over a response channel to the receiver and depacketizer 414, which extracts various fields including the read data, tags, and metadata. The CRC generator 440 receives the read data and generates a six-bit CRC, which provides a first input to the comparator 450. The receiver and depacketizer 414 also transmits the extracted CRC field to a second input of the comparator 450. The comparator 450 compares the two CRC values ​​and provides an MCA error signal to the system management network (SMN). The MCA error is ultimately received by a system management unit (SMU), not shown, which generates an appropriate interrupt to report the error in software.

[0035] In the above-referenced embodiment, the replay queue 330 also has access to both the link ECC and CRC results and determines whether to replay a command depending on the parity or CRC error.

[0036] FIG. 5 illustrates a data packet format of the proposed NVDIMM-P standard supporting link integrity checking as known in the prior art. NVDIMM-P supports several commands defined in the standard. Some of the commands are related to data transfer, i.e., read and write, and the NVDIMM-P protocol supports link ECC to protect data and associated metadata from random errors on the data bus. The memory controller sends each command using address and command signals that are mapped to existing DDR4 address and command signals, making the format compatible with DDR4 devices and enabling a heterogeneous bus with both DDR4 and NVDIMM-P memories as shown in FIG. 2 above. Data transfers are performed by data transfer commands or in data packets generated in response to data transfer commands. The NVDIMM-P system supports three data packet formats: XWRITE (transactional write) or PWRITE (persistent write) packets 510, SEND (send) response packets 520, and SREAD (speculative read) response packets 530.

[0037] An XWRITE or PWRITE packet 510 containing write data of one data element in four consecutive unit intervals (UI) is sent from the memory controller to the NVDIMM-P over 64-bit data channels DQ0-DQ63. Thus, two 256-bit write data words WRITE DATA0 and WRITE DATA1 are transferred in a single XWRITE or PWRITE packet. The XWRITE or PWRITE packet also contains check bits (CB) consisting of eight check bits CB0-CB7, which are used to transfer metadata about the packet, where "USER" indicates any user-defined data, and "POISON" indicates metadata about data integrity. As shown in FIG. 5, the XWRITE and PWRITE commands provide 6 bits of ECC data in channels CB0-CB5 per UI of the packet that accompany the write data. There are also some reserved bits labeled "RFU".

[0038] The SEND response packet 520 contains data returned by the NVDIMM-P in a deterministic amount of time after the SEND packet is sent from the controller. The memory controller issues the SEND command after previously issuing an XREAD (transactional read) command and receiving a response ready signal from the NVDIMM-P indicating that the NVDIMM-P is ready to send data. The access latency of the XREAD command is non-deterministic because the NVDIMM-P makes the requested data available in DRAM and activates the response ready signal after receiving the XREAD packet, or because the data must be fetched from the slow non-volatile memory and placed in DRAM or a buffer before it can be accessed by the SEND command. The SEND response packet 520 has a 64-bit data channel DQ0-DQ63, which contains one data element of read data in four consecutive unit intervals (UI). Thus, two 256-bit read data words READ DATA0 and READ DATA1 are transferred in a single SEND response packet. The SEND response packet 520 uses CB0-CB7 to transfer metadata about the packet, including the USER bit included in each CB channel during the particular UI shown in Figure 5, the POISON bit returned from the NVDIMM-P, the CTH bit indicating the credit threshold, and a read identifier RID[0:7] indicating the sequence number or TAG of the SEND response packet 520. The SEND response packet 520 also provides 6 bits of ECC data on the CB0-CB5 channels for each UI of the transaction that accompanies the write data.

[0039] The SREAD response packet 530 contains the data returned at a deterministic time after the memory controller sends the SREAD packet to the NVDIMM-P. The NVDIMM-P buffer then sends the SREAD response packet if the requested data is in the NVDIMM-P buffer or the RAM cache. If the data corresponding to the SREAD is available in the NVDIMM-P buffer or the DRAM cache, the NVDIMM-P transfers a valid SREAD response packet containing the valid data on the DQ bus and other data indicated. If the data corresponding to the SREAD is not available in the NVDIMM-P buffer or the DRAM cache, the NVDIMM-P sends an invalid response packet with metadata bit "D_VALID"=0, and READ DATA0 and READ DATA1 are invalid. The NVDIMM-P responds to the SREAD command as if it were an XREAD by providing a RD_RDY signal if the requested data is available. The SREAD response packet 530 is similar to the SEND response packet 520. If data is available, the SREAD response packet 530 also has 64-bit data channels DQ0-DQ63 that contain one data element of read data for four consecutive unit intervals (UIs). Thus, two 256-bit read data words READ DATA0 and READ DATA1 are transferred in a single SREAD response packet. The SREAD response packet 530 transfers metadata about the packet using CB0-CB7, including the USER bit included in each CB channel during the particular UI shown in FIG. 5, the POISON bit returned from the NVDIMM-P, the CTH bit indicating the credit threshold, and the metadata bit D_VALID=1. The SREAD response packet 530 also provides 6 bits of ECC data on the CB0-CB5 channels for each UI of the transaction that accompanies the write data.

[0040] The NVDIMM-P communications protocol also supports several other commands whose operation is described in the proposed standard, the operation of which is not relevant to this disclosure and will not be described further.

[0041] 6 illustrates a data packet format 600 for an NVDIMM-P memory supporting end-to-end data integrity checking, according to some embodiments. The data packet format 600 includes an XWRITE or PWRITE packet 610, a SEND response packet 620, and an SREAD response packet 630. These packet formats correspond to the XWRITE or PWRITE packet 510, the SEND response packet 520, and the SREAD response packet 530, respectively, with one exception. According to some embodiments, the USER bits support end-to-end integrity checking. There are six USER bits available for "Option B" encoding, which can be used to encode two USER bits. 6 A CRC having a value of 0.5=64 may be stored. According to one embodiment, the memory controller 300 generates a 6-bit CRC using the following polynomial: 0x33=x 6 +x 5 +x 2 +x+1 [1] Clearly, other polynomials are possible. Furthermore, if different versions of the NVDIMM-P standard (or other similar standards) are developed in the future and more USER bits are made available by the associated packets, they may support different CRC codes that utilize additional bits.

[0042] Figure 7 is a block diagram of a portion 700 of the data processing system of Figure 2 showing further details of the memory controller and persistent memory, according to some embodiments. In Figure 7, the memory controller generates the CRC and data[511:0] using other components of the frame including, for example, the POISON bit and / or the ADDRESS bit.

[0043] Portion 700 is similar to portion 400 of FIG. 4, except that it includes a CRC generator 710 of ECC and CRC generation circuit 344, a packetizer and driver 722, a CRC generator 730 of ECC and CRC check circuit 342, and a PHY 740 connected to the memory controller via the DFI bus. In portion 700, CRC generator 710 has a first input for receiving write data[511:0], a second input for receiving ADD[39:0], a third input for receiving commands and metadata, and an output connected to packetizer and driver 722. Packetizer and driver 722 forms a write packet, such as XWRITE or PWRITE packet 610 defined in the NVDIMM-P proposed standard, but uses the write data[511:0], ADD[39:0], and commands and metadata to generate a CRC. The packetizer and driver 722 places the CRC so generated in the USER bits of the XWRITE or PWRITE packet 610 as described above. The PHY 740 receives packets formatted according to the DFI standard from the packetizer and driver 722 and passes them to the heterogeneous DIMM channel 232.

[0044] The NVDIMM-P buffer 422 receives an XWRITE or PWRITE packet 610 containing user bits with a 6-bit CRC and stores it in an internal buffer, DRAM 424 or persistent storage 426 as appropriate. The NVDIMM-P buffer 422 generates a SEND response packet 620 or an SREAD response packet 630 in response to the command according to the protocol described above. The NVDIMM-P buffer 422 places the stored user bits with a 6-bit CRC, obtained from an internal buffer, DRAM 424 or persistent storage 426 as the case may be, into the appropriate bit channel and UI as described above and transmits them over the heterogeneous bus.

[0045] The PHY 740 receives the SEND and SREAD response packets according to the DFI protocol and sends them to the memory controller 300. The receiver and depacketizer 724 then separates the metadata, tag / RID[0:7], and read data and provides them to the remaining queue and NVDIMM-P sequencer 314. The queue and NVDIMM-P sequencer 314 then sends the address corresponding to the tag / RID[0:7] to the CRC generator 730. In the portion 700, the CRC generator 730 has a first input for receiving read data[511:0], a second input for receiving ADD[39:0], a third input for receiving command and metadata (COMMAND AND METADATA), and an output connected to the first input of the comparator 450. In the illustrated embodiment, the command and metadata bits used to generate the CRC include at least a poison bit.

[0046] According to the NVDIMM-P proposed standard, transactions between the memory controller on the data processor 210 and the NVDIMM-P 238, including CRC bits, are protected by "Link ECC". Link ECC ensures data integrity of data transfers between the memory controller and the NVDIMM-P over the memory bus. According to known ECC mechanisms, Link ECC protects against data corruption on the link caused by random or temporary errors. The protection depends on the ECC code used. ECC may allow, for example, single-bit error correction with multi-bit error detection. In response to detection of an uncorrectable error, the memory controller may replay the transaction to ensure that the temporary or random error does not persist, and may report both correctable and uncorrectable errors to the operating system.

[0047] Link ECC can correct some errors by single bit correction and link replay, but multi-bit errors cannot be corrected by the ECC mechanism alone. Furthermore, the ECC mechanism cannot prevent errors that occur in the DIMM, such as single bit failures, in the memory on the NVDIMM-P, i.e., in regular high density DRAMs such as DDR4 DRAMs, or in persistent memories such as NVDIMMs of any type. ECC is not stored, but is generated by the NVDIMM-P on reads and checked by the memory controller based on the read data received. Similarly, on write cycles, ECC is generated and sent by the memory controller and checked by the NVDIMM-P. Thus, there is no end-to-end protection of data on the DIMM.

[0048] However, according to various embodiments disclosed herein, the memory controller leverages available metadata bits stored in the DIMM to perform an end-to-end integrity check that is fully compatible with the link ECC mechanism. Specifically, the mechanism leverages available bits not defined in the JEDEC protocol known as user bits to perform this check. The number of user bits is quite limited. For example, the "Option A" encoding specifies only four user bits, while the "Option B" encoding specifies six user bits. According to some embodiments, the memory controller generates a 6-bit CRC code based on all 64 bytes of data and sends the CRC code as user bits on writes. The NVDIMM-P stores the user bits in the NVDIMM-P buffer, DRAM cache, or persistent storage, as the case may be. According to other embodiments, the memory controller generates a 6-bit CRC based on all 64 bytes of data, addresses, and some or all of the metadata, and sends the CRC code generated with these bits as user bits on writes. The NVDIMM-P stores the user bits in an array and returns them in a SEND data packet or an SREAD data packet on reads. The memory controller includes additional hardware to generate and check the CRC and does not need to modify the NVDIMM-P other than storing the user bits. Note that the memory controller generates the link ECC and checks all bits of the packet, including the user / CRC bits.

[0049] Thus, the memory controller and data processing system described herein provides an end-to-end check, expanding the coverage of the data integrity check by utilizing a limited number of user bits stored in the NVDIMM-P device and available for comparison when the corresponding data is later read. The check mechanism uses a 6-bit CRC code that can detect single-bit and multi-bit errors. Furthermore, this check mechanism can coexist with the existing link ECC, but provides a more robust and error-free system by utilizing available bits, the user bits of the option B frame format, to add an end-to-end data integrity check. Thus, the link ECC and CRC check mechanisms coexist, providing a redundant and complementary set of protection mechanisms that improves the reliability of the system.

[0050] In various embodiments, the CRC may be generated using different portions of the data packet. In one embodiment, only the data is used. In another embodiment, the CRC and data[511:0] may be generated using other bits of the packet, including, for example, the poison bit and / or the address. Additionally, different versions of the NVDIMM-P standard may be developed in the future to support different CRC codes if more user bits are available in the associated packets. For example, if a future version provides 16 user bits, the system described above may use a 16-bit CRC instead of a 6-bit CRC. Additionally, the memory controller and data processor may take various corrective actions in response to a CRC error. These actions may include reporting the error to the operating system for further action or replaying the operation, since the CRC error also captures link ECC errors.

[0051] The memory controller 300 of FIG. 3 or any portion thereof may be described or represented by a computer-accessible data structure in the form of a database or other data structure that is readable by a program and can be used directly or indirectly to manufacture an integrated circuit. For example, the data structure may be a behavioral level description or a register transfer level (RTL) description of the hardware functionality in a high-level design language (HDL) such as Verilog or VHDL. The description may be read by a synthesis tool that may synthesize the description to generate a netlist that includes a list of gates from a synthesis library. The netlist includes a set of gates that represent the functionality of the hardware that comprises the integrated circuit. The netlist may then be placed and routed to generate a data set that describes the geometry to be applied to a mask. The mask may then be used in various semiconductor manufacturing steps to manufacture the integrated circuit. Alternatively, the database on the computer-accessible storage medium may be a netlist (with or without a synthesis library) or a data set, or a Graphical Data System (GDS) II data, as appropriate.

[0052] While specific embodiments have been described, various modifications to these embodiments will be apparent to those skilled in the art. It is therefore intended by the appended claims to cover all modifications of the disclosed embodiments that fall within the scope of the disclosed embodiments.

Claims

1. 1. A data processor for providing memory commands to a memory channel according to predetermined criteria, comprising: a first error code generating circuit for generating a first type of error code in response to data of the write request; a second error code generating circuit for generating a second type of error code different from the first type of error code for the write request, the second error code generating circuit using the data and other bits of the write request to generate the second type of error code; a queue coupled to the first error code generation circuit and the second error code generation circuit for providing a write command to an interface, the write command including the data, the first type error code, and the second type error code; a packetizer and driver for providing the first type of error code to a predetermined error correction code (ECC) field of a write data packet and for providing bits of the second type of error code to corresponding bits of a predetermined user data field of the write data packet. Data processor.

2. a receiver and a depacketizer for extracting read data from a predetermined data portion of a read response packet and for extracting the second type error code in the predetermined user data field of the write data packet.

2. The data processor of claim 1.

3. the second error code generation circuit uses the data and address of the write request to generate the second type of error code.

2. The data processor of claim 1.

4. A data processor for providing memory commands to a memory channel according to predetermined criteria, comprising: a first error code generating circuit for generating a first type of error code in response to data of the write request; a second error code generation circuit for generating a second type of error code for the write request, the second error code being different from the first type of error code, the second error code generation circuit using the data and other bits of the write request to generate the second type of error code, the second error code generation circuit using metadata of the write request to generate the second type of error code; a queue coupled to the first error code generation circuit and the second error code generation circuit for providing a write command to an interface, the write command including the data, the first type error code, and the second type error code; Data processor.

5. the second error code generation circuit generates the second type of error code in response to a poison bit in the metadata.

5. The data processor of claim 4.

6. the second type of error code comprises a cyclic redundancy check (CRC) code; 2. The data processor of claim 1.

7. The first type of error code includes an error correction code (ECC) having single error correction and multiple error detection.

7. The data processor of claim 6.

8. a first error code check circuit for generating the first type error code in response to read data of a read response packet, comparing the first type error code with a first error code received from the memory channel, and selectively generating a first type error signal in response to the comparison; a second error code check circuit for generating the second type error code in response to the read data and an address of the read response packet, comparing the second type error code with a second error code in the read response packet received from the memory channel, and selectively generating a second type error signal in response to the comparison.

8. The data processor of claim 7.

9. A memory channel; A memory connected to the memory channel; a data processor connected to the memory channel and accessing the memory using a packet structure, the packet structure defining a plurality of commands and having corresponding address bits, data bits, and user bits, the data processor communicating with the memory over the memory channel using a first type of error code, calculating a second type of error code different from the first type of error code, and adding each bit of the second type of error code as a corresponding bit of the user bits; A data processing system comprising: the memory stores the user bits in response to a write command, and transfers the user bits to the data processor in a read response packet in response to a read command. Data processing system.

10. the data processor sends a transmission packet to the memory in response to a read access request, calculates a multi-bit cyclic redundancy check (CRC) code according to received data of a corresponding read response packet, compares a corresponding user bit of the corresponding read response packet with the multi-bit CRC code, and activates an error signal according to a difference between the corresponding user bit and the multi-bit CRC code; 10. The data processing system of claim 9.

11. the first type of error code comprises a cyclic redundancy check (CRC) code and the second type of error code comprises an error correction code (ECC); 10. The data processing system of claim 9.

12. the memory comprises a non-volatile dual in-line memory module with persistent storage (NVDIMM-P); 10. The data processing system of claim 9.

13. 1. A method for writing data from a data processor to a memory device on a memory channel, comprising: Receiving a write request; generating a first type error code in response to data of the write request; generating a second type of error code different from the first type of error code in response to the data and other bits of the write request; forming a write packet having corresponding address bits, corresponding data bits, corresponding first error code bits of the first type of error code in a predetermined error correction code (ECC) field, and corresponding second error code bits of the second type of error code in a predetermined user data field of the write packet; and transferring the write packet to the memory device via the memory channel. method.

14. determining whether the write packet was correctly received over the memory channel using the first type error code, and providing an error response if the write packet was not correctly received over the memory channel; storing the second type of error code in the memory device.

14. The method of claim 13.

15. generating the first type of error code includes generating an ECC having single error correction and multiple error detection; generating the second type of error code includes generating a cyclic redundancy check (CRC) code.

14. The method of claim 13.

16. generating the second type error code in response to the write request includes generating the second type error code according to a write address of the write request, the data of the write request, and predetermined metadata bits.

14. The method of claim 13.

17. forming the write packet includes: selectively forming the write packet having the corresponding address bits, the corresponding data bits, the corresponding first error code bit in the predetermined error correction code field, and the corresponding second error code bit in the predetermined user data field, when the memory device is a Non-Volatile Dual In-line Memory Module with Persistent Storage (NVDIMM-P).

14. The method of claim 13.

18. receiving a read response packet from the memory device; generating the first type error code in response to read data of the read response packet, comparing the first type error code with a first error code in the read response packet, and selectively generating a first type error signal in response to the comparison; generating the second type error code in response to the read data and an address of the read response packet, comparing the second type error code with a second error code in the read response packet, and selectively generating a second type error signal in response to the comparison.

20. The method of claim 17.

19. Receiving a read request; sending a read packet to the memory device in response to the read request; receiving a response ready packet from the memory device; sending a send command to the memory device in response to the response ready packet; receiving the read response packet after transmitting the transmission command.

20. The method of claim 18.

Citation Information

Patent Citations

  • Disk system for making transfer data as redundant data

    JP2002023966A

  • Error correction circuit and method for reducing miscorrection probability and semiconductor memory device including the circuit

    JP2008165808A

  • Error correction method and error detection method for memory, and controller using the same

    JP2010086120A

  • Memory Device and Bit Error Detection Method Thereof

    US20070226588A1

  • Subsystem and Method for Encoding 64-bit Data Nibble Error Correct and Cyclic-Redundancy Code (CRC) Address Error Detect for Use in a 76-bit Memory Module

    US20080235558A1