The present invention relates to error correction coding (ECC), and more specifically, to selective error coding.
In some applications, writing to memory includes writing to one of multiple memory devices. For example, a server memory is comprised of a number of memory devices such as dynamic random-access memory (DRAM) chips. Writing data to memory of the server typically involves writing to multiple DRAM chips. To ensure that data is correctly written and retrieved, ECC bits are generally written along with the data so that the ECC bits may be verified in the read data. The ECC bits are included with stored data through an encoding process and are verified in read data through a decoding process. Processing of the ECC bits by a decoder may lead to the inclusion of a chip mark. The chip mark identifies one of the DRAMs and indicates that all data from that DRAM must be corrected. Processing of the ECC bits may also lead to the inclusion of a symbol mark. A symbol is a subset of the addresses of one DRAM. The number of addresses in a range defined as a symbol may differ based on the memory device. Thus, the symbol mark identifies that data from a subset of addresses of one of the DRAMs must be corrected.
According to one embodiment, a method of performing selective error coding in memory management of a memory device includes performing, using a processor, a process of detecting and correcting memory errors in the memory of the memory device either prior to or after a chip mark associated with the memory device is in place, the chip mark indicating all addresses of the memory device as bad; localizing hard errors of the memory device, using the processor, based on a second process of detecting the memory errors in the memory of the memory device, the hard errors being persistent memory errors that persist from the process of detecting and correcting the memory errors to the second process; determining an extent of the hard errors based on the localizing; and preventing placement of the chip mark or removing the chip mark to resume memory use of the memory device after de-allocating one or more ranges of addresses of the memory of the memory device based on a result of the determining the extent of the hard errors.
According to another embodiment, a system to perform selective error coding includes a memory device configured to store data at memory addresses; and a controller configured to perform a process of detecting and correcting memory errors in memory of the memory device prior to or after placing a chip mark on the memory device, the chip mark indicating that all the memory addresses of the memory device are bad, localize hard errors based on performing a second process of detecting the memory errors in the memory device, the hard errors being persistent memory errors that persist from the process of detecting and correcting the memory errors to the second process, determine an extent of the hard errors; and prevent placement of the chip mark or remove the chip mark based on a result of determining the extent of the hard errors.
According to yet another embodiment, a computer program product to perform selective error coding in a memory device includes a computer readable storage medium having program code embodied therewith, the program code executable by a processor for performing a process of detecting and correcting memory errors in the memory of the memory device either prior to or after a chip mark associated with the memory device is in place, the chip mark indicating all addresses of the memory device as bad localizing hard errors of the memory device based on a second process of detecting the memory errors in the memory of the memory device, the hard errors being persistent memory errors that persist from the process of detecting and correcting the memory errors to the second process; determining an extent of the hard errors based on the localizing; and preventing placement of the chip mark or removing the chip mark to resume memory use of the memory device after de-allocating one or more ranges of addresses of the memory of the memory device based on a result of the determining the extent of the hard errors.
Additional features and advantages are realized through the techniques of the present invention. Other embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed invention. For a better understanding of the invention with the advantages and the features, refer to the description and to the drawings.
The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The forgoing and other features, and advantages of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
As noted ECC bits are included with stored data to verify the data when it is retrieved from one or more DRAMs. Processing or decoding of the ECC bits in data read from a DRAM may result in a chip mark that marks one DRAM as defective and indicates that data retrieved from that DRAM must be corrected. However, the use of a chip mark is at a cost of diminished error detection and correction following the chip mark. Embodiments of the systems and methods detailed herein relate to determining if the use of a chip mark may be avoided and managing memory to avoid the use of a chip mark when possible. The embodiments detailed below relate to differentiating (persistent) hard errors that indicate a fault at a memory location from random and temporary soft errors that result, for example, in one bit of data being flipped. The embodiments ensure that a chip mark is used when a threshold number of hard errors is exceeded for a given DRAM but avoid the use of a chip mark under other circumstances.
Following this second scrub, background scrubbing is resumed, at block 340, with the chip mark still in place. Based on a result of the second scrub at block 330, the processes at blocks 350 or 360 may be performed, as detailed below. If neither the process at block 350 nor the process at block 360 is warranted by the result of the second scrub at block 330, then the chip mark is maintained. At block 350, removing the chip mark is performed if the second scrub (block 330) indicates only soft errors. That is, if no errors persist between the first scrub (block 320) and the second scrub (block 330), then the chip mark may be removed at block 350. At block 360, removing the chip mark after all the bad addresses (identified during the second scrub process, as detailed below) are de-allocated. De-allocation refers to both de-allocation of the memory locations exhibiting hard errors from use and de-allocation of the memory locations exhibiting hard errors from the subsequent background scrubbing (at block 340). If the memory locations exhibiting hard errors are not de-allocated from subsequent scrubbing, the chip mark would be placed again as a result of the subsequent background scrubbing, and the processes beginning at block 310 would be repeated continually. The process at block 310 may be modified (e.g., a threshold used to determine if the chip mark should be placed may be adjusted) to account for the de-allocated memory locations.
After this addition or if N bad addresses were not added to the bad address list for the bank 115 after all the addresses of the bank 115 were checked (the “no” result at block 450), it is determined, at block 465, if all the banks 115 of the DRAM 110 have been checked. When all banks 115 of the DRAM 110 have not been checked, the process at block 430 is repeated for the next bank 115. When all banks 115 of the DRAM 110 have been checked, the process at block 470 is performed. At block 470, whether or not M bad banks 115 were added to the bad bank list is determined. Every bank 115 of the rank may be selected at block 430 prior to making the check at block 470, as shown in
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one more other features, integers, steps, operations, element components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated
The flow diagrams depicted herein are just one example. There may be many variations to this diagram or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.
While the preferred embodiment to the invention had been described, it will be understood that those skilled in the art, both now and in the future, may make various improvements and enhancements which fall within the scope of the claims which follow. These claims should be construed to maintain the proper protection for the invention first described.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
This application is a continuation of U.S. application Ser. No. 14/732,945 filed Jun. 8, 2015, the disclosure of which is incorporated by reference herein in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 14732945 | Jun 2015 | US |
Child | 14835790 | US |