Adaptive memory error detection and correction
By using an adaptive memory error detection and correction system in computing devices, dynamically switch the EDAC level, the memory data reliability and security problems in harsh environments are solved, efficient error detection and correction are achieved, and the robustness of data storage is improved sex.
Patent Information
- Application Number
- CN202380031768.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-20
- Filing Date
- 2023-03-22
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-03-22
AI Technical Summary
The reliability and security of memory data of existing computing devices in harsh environments are difficult to ensure, especially under the influence of radiation, cosmic rays and other factors, existing memory error detection and correction technologies are difficult to provide efficient and robust solutions.
Adaptive memory error detection and correction (EDAC) system is adopted to dynamically switch different EDAC levels by monitoring the EDAC logic of the memory subsystem to switch according to the number of error corrections and thresholds, thereby improving the reliability of data storage. Specific measures include initializing the EDAC level, monitoring the number of error corrections, and switching to a more robust EDAC level when the threshold exceeds, such as switching from SECDED to TECQED.
Improves the data storage reliability and security of computing devices in harsh environments, and by dynamically switching the EDAC level, it can effectively detect and correct errors, reduce the impact of data corruption, and restore efficient memory performance when conditions improve.
Smart Images

Figure CN118984989A_ABST
Abstract
Description
[0001] Related technical description
[0002] A computing device may include multiple subsystems, cores, or other components. Such a computing device may be, for example, a portable computing device ("PCD"), such as a laptop or palmtop computer, a cellular phone or smart phone, a portable digital assistant, a portable game console, etc. Multiple subsystems, cores, or other components of a computing device may be included in the same integrated circuit chip or in different chips. A "system on a chip" or "SoC" is an example of a chip that integrates numerous components to provide system-level functionality. For example, a SoC may include one or more types of processors, such as a central processing unit ("CPU"), a graphics processing unit ("GPU"), a digital signal processor ("DSP"), and a neural processing unit ("NPU"). A SoC may include other processing subsystems, such as a transceiver or "modem" subsystem that provides wireless connectivity, a memory subsystem, etc.
[0003] The reliability of data communication and storage may be adversely affected by environmental influences. Data stored in memory may be corrupted by environmental conditions such as radiation, cosmic rays, high temperatures, etc. The development of high reliability, safety-critical computing systems (such as automotive control systems) may require higher reliability data storage.
[0004] Error detection and correction ("EDAC") techniques have been used in memory systems to improve reliability. Error detection involves detecting errors and providing notification that an error has occurred, while error correction involves transforming erroneous data into corrected data. It is desirable to provide a more robust yet efficient use of EDAC in safety-critical and other computing systems. Summary of the invention
[0005] Systems, methods, computer-readable media, and other examples are disclosed for adaptive memory error detection and correction (EDAC) in a computing device.
[0006] An exemplary method for adaptive memory EDAC may include monitoring EDAC logic of a memory subsystem for error correction, wherein the EDAC logic is configured to use a first EDAC level. The method may also include determining a number of error corrections using the first EDAC level during a time interval. The method may also include determining whether the number of error corrections using the first EDAC level during the time interval exceeds a first threshold. The method may also include switching the EDAC logic from using the first EDAC level to using a second EDAC level when the number of error corrections using the first EDAC level during the time interval exceeds the first threshold.
[0007] An exemplary system for adaptive memory EDAC may include EDAC logic and EDAC level control logic in a memory subsystem. The EDAC level control logic may be configured to monitor the EDAC logic for error correction, wherein the EDAC logic is configured to use a first EDAC level. The EDAC level control logic may be further configured to determine the number of error corrections using the first EDAC level during a time interval. The EDAC level control logic may also be configured to determine whether the number of error corrections using the first EDAC level during the time interval exceeds a first threshold. The EDAC level control logic may also be further configured to switch the EDAC logic from using the first EDAC level to using a second EDAC level when the number of error corrections using the first EDAC level during the time interval exceeds the first threshold.
[0008] An exemplary system for adaptive memory EDAC may include means for monitoring EDAC logic of a memory subsystem for error correction, wherein the EDAC logic is configured to use a first EDAC level. The system may also include means for determining a number of error corrections using the first EDAC level during a time interval. The system may also include means for determining whether the number of error corrections using the first EDAC level during the time interval exceeds a first threshold. The system may also include means for switching the EDAC logic from using the first EDAC level to using a second EDAC level when the number of error corrections using the first EDAC level during the time interval exceeds the first threshold.
[0009] An exemplary computer-readable medium for adaptive memory EDAC may include a non-transitory computer-readable medium having instructions stored thereon in a computer-executable form. The instructions, when executed by a processing system of a computing device, may configure the processing system to control the EDAC logic of a monitoring memory subsystem for error correction, wherein the EDAC logic is configured to use a first EDAC level. The instructions may further configure the processing system to control the number of error corrections determined using the first EDAC level during a time interval. The instructions may also configure the processing system to control whether the number of error corrections using the first EDAC level during the time interval exceeds a first threshold. The instructions may also further configure the processing system to control when the number of error corrections using the first EDAC level during the time interval exceeds the first threshold, the EDAC logic is switched from using the first EDAC level to using a second EDAC level. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In the drawings, like reference numerals refer to like parts throughout the various views unless otherwise indicated. For reference numerals with letter character designations, such as "102A" or "102B," the letter character designations may distinguish between two similar parts or elements in the same figure. The letter character designations of a figure numeral may be omitted when it is intended that a figure numeral encompass all parts having the same figure numeral in all figures.
[0011] Figure 1 is a block diagram of a system for adaptive memory error detection and correction (EDAC) according to an exemplary embodiment.
[0012] Figure 2 is a flow chart illustrating a method for adaptive memory EDAC according to an exemplary embodiment.
[0013] Figure 3 is a flow chart illustrating a method for adaptive memory EDAC according to an exemplary embodiment.
[0014] Figure 4A is a flow chart illustrating a method for adaptive memory EDAC according to an exemplary embodiment.
[0015] Figure 4B yes Figure 4A Continuation of the flowchart.
[0016] Figure 5A is a flow chart illustrating another method for adaptive memory EDAC according to an exemplary embodiment.
[0017] Figure 5B yes Figure 5A Continuation of the flowchart.
[0018] Figure 6 is a block diagram of a vehicle computing system according to an exemplary embodiment. DETAILED DESCRIPTION
[0019] The word “exemplary” is used herein to mean “serving as an example, instance, or illustration.” The word “exemplary” may be used herein synonymously with “exemplary.” Any aspect described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects.
[0020] In general, error detection and correction ("EDAC") techniques apply a hash function or algorithm to the original (i.e., correct) data to produce a result including a certain number of bits. Various types of EDAC algorithms are known. Depending on the type of algorithm, the resulting bit may be referred to as a parity bit, a checksum bit, a cyclic redundancy check ("CRC") bit, an error correction code ("ECC"), a syndrome bit, or another term, but may be referred to as a tag for generality in the present disclosure. When a data word is stored in a memory, a calculated tag corresponding to the data word is stored in the memory in association with the data word. When the data word and the associated tag are read from the memory later, another algorithm may then use the tag as an additional input to detect, correct, or detect and correct errors in the data word. The number of bits that can be detected or corrected depends on the algorithm. An EDAC algorithm that detects up to two error bits and corrects up to one error bit may be referred to as single error correction / double error detection ("SECDED"). An EDAC algorithm that detects up to three error bits and corrects up to two error bits may be referred to as double error correction / triple error detection ("DECTED"). An EDAC algorithm that detects up to four erroneous bits and corrects up to three erroneous bits may be referred to as triple error correction / quadruple error detection ("TECQED").
[0021] The length of the label and the complexity of the EDAC algorithm can be directly related to the number of error bits that can be detected and corrected. For example, for 256-bit data words, it may be necessary to use 10-bit labels to perform SECDED, and use 28-bit labels to perform TECQED. 10-bit labels may require two bytes of storage space (wherein the remaining six bits are zero-filled), and 28-bit labels may require four bytes of storage space (wherein the remaining four bits are zero-filled). In order to save storage space, maintain high memory system performance or provide other performance advantages, it may not be expected to use a more robust EDAC algorithm or longer labels than those required for detection and correction of possible errors. The solution described below relates to switching from less robust or lower-level EDAC (e.g., SECDED) to more robust or higher-level EDAC (e.g., DECTED or TECQED) when the number of errors exceeds a threshold. The solution described herein can be provided in a safety-critical computing system or any other computing system.
[0022] like Figure 1 As shown, in an exemplary or exemplary embodiment, the memory system 100 may include a memory controller 102 and a memory 104. The memory system 100 may be included in any type of computing device or system ( Figure 1 Memory 104 may be of any type, such as dynamic random access memory ("DRAM") or static RAM ("SRAM"). For clarity, memory 104 is shown in FIG. Figure 1104 may include any number of subunits, modules, chips, arrays, etc. In an example, memory 104 may include double data rate synchronous DRAM or "DDR-SDRAM", sometimes referred to as "DDR" for brevity. Although not shown in the figure for clarity, Figure 1 1, but the memory system 100 may be coupled (eg, via one or more buses or other data interconnects) to one or more processing systems ( Figure 1 not shown).
[0023] The memory controller 102 may include logic that configures the memory controller 102 to perform various functions related to storing data in the memory 104 (also referred to as writing data to the memory 104) and retrieving data from the memory 104 (also referred to as reading data from the memory 104). The memory controller 102 may perform such writing and reading of data in response to write and read requests received from the processing system. Since the manner in which the memory controller 102 controls the writing and reading of data is well known to those of ordinary skill in the art, such aspects are not described herein. However, it is understood that the memory controller 102 may include memory control logic 106 that configures the memory controller 102 to perform such conventional writing, reading, and other functions. The memory controller 102 may also include EDAC logic 108 that configures the memory controller 102 to detect and correct errors in data read from the memory 104 and otherwise operate in the manner described below.
[0024] The memory controller 102 may receive the data word 110 from the processing system or other source associated with a write request. In response to the write request, the EDAC logic 108 may apply the EDAC algorithm to the data word 110 to be written to the memory 104. The tag 112 is the result (calculated) of the EDAC algorithm. The memory controller 102 may then cause the data word 110 to be stored in the memory 104 and also cause the calculated tag 112 to be stored in the memory 104 in association with the data word 110, as shown in FIG. Figure 1 Although for clarity, Figure 1 Only one exemplary data word 110 and associated tag 112 is shown in FIG. 1 , but the memory 104 may be sized and otherwise configured to store any number of data words 110 and associated tags 112 , as understood by one of ordinary skill in the art.
[0025] When the memory controller 102 later reads the data word 110 and the associated tag 112 from the memory 104 in response to a read request, the EDAC logic 108 can apply the EDAC algorithm to the data word 110 and the tag 112 to produce a result. The result can be no error detected or an error detected. No error means that all bits of the data word 110 read from the memory 104 match the corresponding bits of the original data word 110 written to the memory 104. In contrast, an error result means that one or more bits of the data word 110 read from the memory 104 do not match the corresponding bits of the original data word 110 written to the memory 104. The EDAC logic 108 can be configured to operate according to a plurality of selectable EDAC levels. Depending on which EDAC level in the EDAC level is selected and the severity of the error (i.e., the number of error bits in the data word 110), the EDAC logic 108 can detect an error or correct an error.
[0026] For example, the first EDAC level can be SECDED, which can detect up to two error bits and correct up to one error bit. The second EDAC level can be TECQED, which can detect up to four error bits and correct up to three error bits. Although in the example of operation described below, EDAC logic 108 is configured to operate in the selected EDAC level in two EDAC levels, in other examples, this EDAC logic can be configured to operate in the selected EDAC level in more than two EDAC levels. In such other examples, another selectable mode or EDAC level can be DECTED, which can detect up to three error bits and correct up to two error bits. Because SECDED, DECTED, TECQED and other EDAC algorithms are well known to those of ordinary skill in the art, they are no longer described herein.
[0027] The EDAC level controller 114 may select the EDAC level. The EDAC logic 108 may be configured to receive a selection indication from the EDAC level controller 114 indicating which of the two or more EDAC levels is selected, and thus indicating which of the two or more corresponding EDAC algorithms the EDAC logic 108 is to apply when data is written to or read from the memory 104. Although not shown for clarity, the memory controller 102 may be similarly configured with other logic (not shown) to perform various conventional memory controller functions in addition to the functions specifically described herein. The memory control logic 106, the EDAC logic 108, the EDAC level controller 114, and any other logic that may configure the memory controller 102 may include hardware (e.g., a finite state machine), software (including firmware), or any combination of hardware and software.
[0028] like Figure 2 As shown, a method 200 for adaptive memory error detection and correction may include the following. As indicated by block 202, the method 200 may include initializing the EDAC logic of the memory system or subsystem to use a first EDAC level (such as SECDED). As indicated by block 204, the method 200 may also include monitoring the EDAC logic for error correction, wherein the EDAC logic is configured to use the first EDAC level. For example, the number of error corrections performed by the EDAC logic during a periodic time interval may be counted. The time interval may be, for example, a few milliseconds. As indicated by block 206, the method 200 may also include determining whether the number of error corrections performed by the EDAC logic during the time interval is greater than a first threshold. If it is determined that the number of error corrections performed by the EDAC logic during the time interval is not greater than the first threshold, the method 200 may continue as described above with respect to block 204, wherein the EDAC logic continues to be monitored (i.e., in the next time interval). As indicated by block 208, if it is determined that the number of error corrections performed by the EDAC logic during the time interval is greater than the first threshold, the EDAC logic may switch from using the first EDAC level to using the second EDAC level (such as TECQED). The steps or actions described above with respect to blocks 202-208 may be performed by, for example, the EDAC level controller 114 ( Figure 1 ) is executed or controlled. Although not included in this document for the sake of clarity Figure 2 , but this method may also include switching the EDAC logic from the second EDAC level back to the first EDAC level based on additional conditions, such as the number of errors falling below a threshold.
[0029] like Figure 3As shown, a method 300 for adaptive memory error detection and correction may include the following. As indicated by block 302, the method 300 may include initializing the EDAC logic of the memory system or subsystem to use SECDED and thus correct up to 1-bit errors. As indicated by block 304, the method 300 may also include monitoring the EDAC logic for 1-bit error correction, including determining the number of 1-bit error corrections within a first time interval. As indicated by block 306, the method 300 may also include determining whether the number of 1-bit error corrections performed by the EDAC logic during the first time interval is greater than a first threshold. If it is determined that the number of error corrections performed by the EDAC logic during the first time interval is not greater than the first threshold, the method 300 may continue as described above with respect to block 304, wherein the EDAC logic continues to be monitored for 1-bit error correction. As indicated by block 308, if it is determined that the number of 1-bit error corrections performed by the EDAC logic during the first time interval is greater than the first threshold, the EDAC logic may switch from using SECDED to using TECQED and thus correct up to 3-bit errors.
[0030] As indicated by block 310, the method 300 may then (i.e., after switching from SECDED to TECQED) include monitoring the EDAC logic to detect 1-bit errors, 2-bit errors, and 3-bit errors, including determining the number of 1-bit errors, 2-bit errors, and 3-bit errors detected in the second time interval. As indicated by block 312, the method 300 may also include determining whether the number of 1-bit errors detected during the second time interval is greater than a second threshold, or whether the number of 2-bit errors detected during the second time interval is greater than a third threshold, or whether the number of 3-bit errors detected during the second time interval is greater than a fourth threshold. If it is determined that the number of 1-bit errors detected during the second time interval is greater than the second threshold, or the number of 2-bit errors detected during the second time interval is greater than the third threshold, or the number of 3-bit errors detected during the second time interval is greater than the fourth threshold, the method 300 may continue as described above with respect to block 310, wherein the EDAC logic continues to be monitored for 1-bit error detection, 2-bit error detection, and 3-bit error detection. For example, the third threshold may be zero. That is, if the number of 2-bit errors detected is greater than zero, the method 300 may continue at block 310. For example, the fourth threshold may be zero. That is, if the number of detected 3-bit errors is greater than zero, the method 300 may continue at block 310. In general, the third threshold and the fourth threshold may each be lower than the first threshold.
[0031] If it is determined (block 312) that the number of 1-bit errors detected during the second time interval is not greater than the second threshold, and the number of 2-bit errors detected during the second time interval is not greater than the third threshold, and the number of 3-bit errors detected during the second time interval is not greater than the fourth threshold, then the EDAC logic may switch from using TECQED back to using SECDED, as indicated by block 314. To prevent switching back and forth, a form of hysteresis may be provided. If the condition indicated in block 312 is met for a time interval longer than the condition indicated in block 306, then a decision to switch back from TECQED to SECDED may be taken (block 312). That is, the second time interval (block 310) may be longer than the first time interval (block 304). In addition, the threshold for switching from TECQED to SECDED (i.e., the second threshold of block 312) may be made lower than the threshold for switching from SECDED to TECQED (i.e., the first threshold of block 306), or may even be made zero. The method 300 may then continue as described above with respect to block 304, where the EDAC logic is again monitored for 1-bit error correction.
[0032] like FIG. 4A to FIG. 4B As shown, a method 400 for adaptive memory error detection and correction may include the following. As indicated by block 402, the method 400 may include initializing the EDAC logic of the memory system or subsystem to use SECDED and thus correct up to 1-bit errors. As indicated by block 404, the method 400 may also include monitoring the EDAC logic for 1-bit error correction, including determining the number of 1-bit error corrections within a first time interval. As indicated by block 406, the method 400 may also include determining whether the number of 1-bit error corrections performed by the EDAC logic during the first time interval is greater than a first threshold. If it is determined that the number of error corrections performed by the EDAC logic during the first time interval is not greater than the first threshold, the method 400 may continue as described above with respect to block 404, wherein the EDAC logic continues to be monitored for 1-bit error correction.
[0033] If it is determined that the number of 1-bit error corrections performed by the EDAC logic during the first time interval is greater than the first threshold, a warning may be issued to an operator or user, as indicated at block 408. For example, an operator of a vehicle in which a computing system controls driving or other safety-critical functions may be warned to slow or stop the vehicle in an attempt to reduce reliance on the computing system.
[0034] As indicated in block 410, a reboot may then be performed. The reboot may include a memory system. In some examples, the reboot may include other systems or subsystems other than the memory system, if such a reboot of other such systems or subsystems is necessary to return it to a state where it can continue to interoperate with the memory system. In some examples, the reboot may include the entire SoC. After the reboot, the EDAC logic may switch from using SECDED to using TECQED and thus correct up to 3-bit errors, as indicated in block 412. Although not shown in method 400, the computing system and its memory system may return to their normal operating mode (e.g., controlling a vehicle) after the EDAC logic is switched to TECQED. Switching to TECQED may provide additional protection to prevent reading erroneous data from the memory and adversely affecting the operation of the computing system. Similarly, although not shown in method 400, after switching to TECQED, the operator may be informed that it is safe to resume the operation of the vehicle.
[0035] As indicated at block 414, the method 400 may then (i.e., after switching from SECDED to TECQED) include monitoring the EDAC logic to detect 1-bit errors, 2-bit errors, and 3-bit errors, including determining the number of 1-bit errors, 2-bit errors, and 3-bit errors detected during the second time interval. As indicated at block 416, the method 400 may also include determining whether the number of 1-bit errors detected during the second time interval is greater than a second threshold, or whether the number of 2-bit errors detected during the second time interval is greater than a third threshold, or whether the number of 3-bit errors detected during the second time interval is greater than a fourth threshold. The first threshold, the second threshold, the third threshold, and the fourth threshold may be as described above with respect to blocks 306 and 312 ( Figure 3 If it is determined (block 414) that the number of 1-bit errors detected during the second time interval is greater than the second threshold, or the number of 2-bit errors detected during the second time interval is greater than the third threshold, or the number of 3-bit errors detected during the second time interval is greater than the fourth threshold, then the method 400 may continue as described above with respect to block 414, where the EDAC logic continues to be monitored for 1-bit error detection, 2-bit error detection, and 3-bit error detection.
[0036] If it is determined (block 414) that the number of 1-bit errors detected during the second time interval is not greater than the second threshold, and the number of 2-bit errors detected during the second time interval is not greater than the third threshold, and the number of 3-bit errors detected during the second time interval is not greater than the fourth threshold, another warning similar to the above warning may be issued to the operator or user, such as block 418 ( Figure 4B). As indicated by box 420, a reboot similar to the reboot described above (box 410) may be performed. After the reboot, the EDAC logic may switch from using TECQED back to using SECDED, as indicated by box 422. To prevent switching back and forth, if the condition indicated in box 416 is met within a time interval longer than the condition indicated in box 406, a decision may be taken to switch from TECQED back to SECDED (box 416). That is, the second time interval (i.e., the box 414 time interval) may be longer than the first time interval (i.e., the box 404 time interval). In addition, the threshold for switching from TECQED to SECDED (i.e., the box 416 second threshold) may be lower than the threshold for switching from SECDED to TECQED (i.e., the box 406 first threshold), or may even be zero. Method 400 may then proceed as described above with respect to box 404 ( Figure 4A ) continues as described above, where the EDAC logic is again monitored for 1-bit error correction.
[0037] like FIG. 5A to FIG. 5B As shown, a method 500 for adaptive memory error detection and correction may include the following. As indicated by block 502, the method 500 may include initializing the EDAC logic of the memory system or subsystem to use SECDED and thus correct up to 1-bit errors. As indicated by block 504, the method 500 may also include monitoring the EDAC logic for 1-bit error correction, including determining the number of 1-bit error corrections within a first time interval. As indicated by block 506, the method 500 may also include determining whether the number of 1-bit error corrections performed by the EDAC logic during the first time interval is greater than a first threshold. If it is determined that the number of error corrections performed by the EDAC logic during the first time interval is not greater than the first threshold, the method 500 may continue as described above with respect to block 504, wherein the EDAC logic continues to be monitored for 1-bit error correction.
[0038] If it is determined that the number of 1-bit error corrections performed by the EDAC logic during the first time interval is greater than the first threshold, a sub-method that may be referred to as a memory "erase" may be performed. A memory erase refers to suspending the operation of the memory system and attempting to correct errors in data stored in the memory (or a portion thereof) during the resulting memory downtime. During the memory downtime, the memory controller may not grant write or read requests from the processor.
[0039] As indicated by block 508, a memory system downtime may be initiated. Then, during the downtime, the data word and the associated tag may be read from the memory to be erased or a portion thereof. As indicated by block 510, the data word and the associated tag may be read from the memory. As indicated by block 512, the error type may be determined. The error type may be one of no error, 1-bit error, or 2-bit error. If the error type is a 1-bit error, the 1-bit error may be corrected and the correction data may be written back to the memory, as indicated by block 514. However, after the 1-bit error is corrected, the tag associated with the data word is not written back to the memory. Instead, a new tag for the data word is calculated using TECQED, and the new tag is written to the memory in association with the corrected data word, as indicated by block 516. Similarly, if the error type is determined to be no error, a new tag for the data word is calculated using TECQED, and the tag is written to the memory in association with the data word, according to block 516.
[0040] If it is determined (block 512) that the error type is a 2-bit error, the computing system may be rebooted, as in block 518 ( Figure 5B ). Since SECDED cannot correct 2-bit errors, rebooting the computing system (including the computing system's memory subsystem and other subsystems) prevents erroneous data from adversely affecting the operation of the computing system. When the reboot has been completed, the EDAC logic can be initialized to use TECQED, as indicated by block 520. Rebooting to this initial state, the computing system and its memory system can return to their normal operating mode (e.g., controlling a vehicle). For clarity, this return to normal operating mode is not shown in FIG. 5, but the EDAC logic uses TECQED.
[0041] Returning to the case of a 1-bit error or no error, after the new tag has been calculated and written to the memory (block 516), it may be determined whether the erase has been completed, as indicated by block 522. That is, it may be determined whether all data words in the portion of the memory being erased have been read, any correctable 1-bit errors have been corrected, and the new tag has been calculated and stored in the memory according to TECQED. If it is determined (block 522) that the erase has not been completed, i.e., more data words are to be erased, the method 500 may continue as described above with respect to block 510.
[0042] If it is determined (block 522) that the erase has been completed, the EDAC logic may switch from using SECDED to using TECQED, as indicated by block 524. After switching from SECDED to TECQED, the memory system or subsystem may be released from the downtime, as indicated by block 526. With the EDAC logic using TECQED, the computing system and its memory system may return to their normal operating mode (e.g., controlling a vehicle). Although not described in detail for clarity, FIG. 5A to FIG. 5B , but switching back from TECQED to SECDED can be done in the same manner as described above with respect to block 312 ( Figure 3 ) and block 416 ( Figure 4A ) described in the same manner as described in block 504. That is, switching back from TECQED to SECDED may be conditioned upon determining that the number of 1-bit errors detected during the second time interval is not greater than a second threshold, and the number of 2-bit errors detected during the second time interval is not greater than a third threshold, and the number of 3-bit errors detected during the second time interval is not greater than a fourth threshold. To prevent switching back and forth, a decision to switch back from TECQED to SECDED may be taken if the above conditions are met for a time interval longer than the time interval indicated in block 504. Furthermore, the second threshold for switching from TECQED to SECDED may be made lower than the first threshold for switching from SECDED to TECQED, or may even be made zero.
[0043] The EDAC level controller 114 may be configured to control the exemplary method 200 described above ( Figure 2 )、300( Figure 3 )、400( FIG. 4A to FIG. 4B ) or 500( FIG. 5A to FIG. 5B ) in any of the methods. In the example where the EDAC level controller 114 includes a processor and a memory, firmware or software that configures such a processor in operation may be stored in the memory. Execution of such firmware or software may control aspects of any of the above methods or configure aspects of any of the above systems. Any such memory or other non-transitory storage medium having firmware or software stored therein in a computer-readable form for execution by processor hardware may be an example of a "computer-readable medium" as that term is understood in the patent dictionary.
[0044] like Figure 6 As shown, the vehicle-based computing system 600 may include a memory subsystem 602. The vehicle-based computing system 600 may be a computer system in the method 200 ( Figure 2 )、300( Figure 3 )、400( FIG. 4A to FIG. 4B ) or 500( FIG. 5A to FIG. 5B) is an example of a computing system referenced in any of the methods. The memory subsystem 602 may be the memory system 100 ( Figure 1 ) example.
[0045] The vehicle 601 where the vehicle-based computing system 600 is located may sometimes be subjected to harsh environmental conditions or influences during its operation, such as radiation from solar flares or other sources, cosmic rays, etc. Such environmental conditions or influences may cause the data bits stored in the memory to flip from the correct state to the wrong state. According to the above solution, such bit flips or errors can be corrected or their adverse effects can be mitigated in other ways. It can be imagined that a more robust EDAC level can be applied when the vehicle 601 experiences such environmental conditions, and when the vehicle 601 no longer experiences such conditions, it can be restored to a less robust but more efficient (e.g., lower computational intensity, more efficient use of memory space, etc.) EDAC level. However, the above method and other solutions are not limited to mitigating the impact of bit errors caused by environmental conditions, and can be applied regardless of the cause of the bit errors. In addition, the methods and other solutions described herein are not limited to vehicles or other safety-critical systems, and can be applied in any other scenarios.
[0046] The vehicle-based computing system 600 may also include other subsystems, such as a vehicle control subsystem 604, a navigation subsystem 606, an entertainment subsystem 608, and the like. The vehicle-based computing system 600 may also include an alarm or warning indicator 610, such as a feature of a display screen on a vehicle dashboard. A bus or other data interconnect 612 may provide data communication between various subsystems and other components. Some of the subsystems may have one or more processors (not shown separately) that may initiate memory transactions (i.e., writes, reads, etc.) of the above type with the memory subsystem 602. Thus, the various subsystems and their processors may use the data stored in the memory subsystem 602 to perform their normal operations, such as controlling the operation of the vehicle in the case of the vehicle control subsystem 604, assisting in vehicle navigation in the case of the navigation subsystem 606, and the like.
[0047] Some of the subsystems may involve safety-critical functions, while other subsystems may not involve safety-critical functions. For example, the vehicle control system 604 may control various aspects of vehicle power, braking, or steering, such as Figure 6 It will be appreciated that erroneous operation of the vehicle control subsystem 604 or navigation subsystem 606 due to corrupted data read from the memory subsystem 602 may adversely affect safety. FIG. 5A to FIG. 5BThe erase features described may be targeted to memory areas where safety-critical data is stored. In some examples, only memory areas where safety-critical data or other important data is stored may be erased, while memory areas where non-safety-critical data or data whose corruption would not otherwise be harmful are stored may not be erased. However, in other examples, the erase features may be targeted to any area or amount of memory, including the entirety of the memory.
[0048] Specific implementation examples are described in the following numbered clauses:
[0049] 1. A method for adaptive memory error detection and correction (EDAC), comprising:
[0050] monitoring EDAC logic of a memory subsystem for error correction, wherein the EDAC logic is configured to use a first EDAC level;
[0051] determining a number of error corrections using the first EDAC level during a first time interval;
[0052] determining whether a number of said error corrections using said first EDAC level during said first time interval exceeds a first threshold; and
[0053] The EDAC logic is switched from using the first EDAC level to using a second EDAC level when the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
[0054] 2. A method according to clause 1, wherein:
[0055] the first EDAC level includes error correction for up to a first number of erroneous bits, wherein determining the number of error corrections using the first EDAC level includes determining the number of error corrections for the first number of erroneous bits; and
[0056] The second EDAC level includes error correction of up to a second number of erroneous bits that is greater than the first number of erroneous bits.
[0057] 3. The method according to clause 2, further comprising:
[0058] monitoring the EDAC logic for error correction after switching the EDAC logic from using the first EDAC level to using the second EDAC level, wherein the EDAC logic is configured to use the second EDAC level;
[0059] determining a number of said error corrections using said second EDAC level during a second time interval, comprising determining a number of said error corrections of said second number of erroneous bits;
[0060] determining whether a number of said error corrections of said first number of error bits during said second time interval is greater than a second threshold, wherein said second threshold is less than said first threshold;
[0061] determining whether the number of error corrections of the second number of erroneous bits during the second time interval is greater than a third threshold, wherein the third threshold is less than the second threshold; and
[0062] The EDAC logic is switched from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold.
[0063] 4. The method of clause 3, wherein the second threshold and the third threshold are zero error bits, and the first threshold is greater than zero error bits.
[0064] 5. A method according to any one of clauses 2 to 4, wherein the second time interval is greater than the first time interval.
[0065] 6. A method according to clause 3 or 4, wherein:
[0066] determining the number of error corrections using the second EDAC level during the second time interval further comprises determining the number of error corrections for a third number of error bits greater than the second number of error bits;
[0067] determining whether the number of error corrections of the third number of erroneous bits during the second time interval is greater than a fourth threshold; and
[0068] Switching the EDAC logic from using the second EDAC level to using the first EDAC level further includes switching the EDAC logic from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold, and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold, and the number of error corrections of the third number of error bits during the second time interval does not exceed the fourth threshold.
[0069] 7. A method according to any of clauses 1 to 6, wherein the first EDAC level is single error correction / double error detection (SECDED) and the second EDAC level is triple error correction / quadruple error detection (TECQED).
[0070] 8. The method of any of clauses 1 to 7, further comprising performing a reboot when the number of error corrections using the first EDAC level during the first time interval exceeds the first threshold.
[0071] 9. The method of any of clauses 1 to 8, further comprising: when the number of error corrections using the first EDAC level during the first time interval exceeds the first threshold:
[0072] reading data from the memory subsystem during a memory subsystem downtime, wherein the EDAC logic is configured to use the first EDAC level; and
[0073] The data is written back to the memory subsystem during a downtime of the memory subsystem, wherein the EDAC logic is configured to use the second EDAC
[0074] level.
[0075] 10. A system for adaptive memory error detection and correction (EDAC), comprising:
[0076] EDAC logic in the memory subsystem; and
[0077] EDAC level control logic, the EDAC level control logic is configured as:
[0078] monitoring the EDAC logic for error correction, wherein the EDAC logic is configured to use a first EDAC level;
[0079] determining a number of error corrections using the first EDAC level during a first time interval;
[0080] determining whether a number of said error corrections using said first EDAC level during said first time interval exceeds a first threshold; and
[0081] The EDAC logic is switched from using the first EDAC level to using a second EDAC level when the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
[0082] 11. A system according to clause 10, wherein:
[0083] the first EDAC level includes error correction for up to a first number of erroneous bits, wherein the EDAC level control logic is configured to determine an amount of the error correction to use the first EDAC level by being configured to determine an amount of the error correction for the first number of erroneous bits; and
[0084] The second EDAC level includes error correction of up to a second number of erroneous bits that is greater than the first number of erroneous bits.
[0085] 12. The system of clause 11, wherein the EDAC level control logic is further configured to:
[0086] monitoring the EDAC logic for error correction after switching the EDAC logic from using the first EDAC level to using the second EDAC level, wherein the EDAC logic is configured to use the second EDAC level;
[0087] determining a number of said error corrections using said second EDAC level during a second time interval, comprising determining a number of said error corrections of said second number of erroneous bits;
[0088] determining whether a number of said error corrections of said first number of error bits during said second time interval is greater than a second threshold, wherein said second threshold is less than said first threshold;
[0089] determining whether the number of the error corrections of the second number of erroneous bits during the second time interval is greater than a third threshold, wherein the third threshold is less than the second threshold; and
[0090] The EDAC logic is switched from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold.
[0091] 13. The system of clause 12, wherein the second threshold and the third threshold are zero error bits, and the first threshold is greater than zero error bits.
[0092] 14. A system according to clause 12 or 13, wherein the second time interval is greater than the first time interval.
[0093] 15. A system according to any one of clauses 12 to 14, wherein:
[0094] the EDAC level control logic configured to determine the number of error corrections to use the second EDAC level during the second time interval further by being configured to determine the number of error corrections of a third number of error bits greater than the second number of error bits;
[0095] The EDAC level control logic is configured to determine whether the number of error corrections of the third number of erroneous bits during the second time interval is greater than a fourth threshold; and
[0096] The EDAC level control logic is configured to switch the EDAC logic from using the second EDAC level to using the first EDAC level by being configured to switch the EDAC logic from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold, the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold, and the number of error corrections of the third number of error bits during the second time interval does not exceed the fourth threshold.
[0097] 16. The system of any of clauses 10 to 15, wherein the first EDAC level is single error correction / double error detection (SECDED) and the second EDAC level is triple error correction / quadruple error detection (TECQED).
[0098] 17. The system of any of clauses 10 to 16, wherein the EDAC level control logic is further configured to perform a reboot when the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
[0099] 18. The system of any of clauses 10 to 17, wherein the EDAC level control logic is further configured to: when the number of error corrections using the first EDAC level during the first time interval exceeds the first threshold:
[0100] reading data from the memory subsystem during a memory subsystem downtime, wherein the EDAC logic is configured to use the first EDAC level; and
[0101] The data is written back to the memory subsystem during a downtime of the memory subsystem, wherein the EDAC logic is configured to use the second EDAC
[0102] level.
[0103] 19. A system according to any of clauses 10 to 18, wherein the EDAC level control logic and the EDAC logic are comprised in a vehicle.
[0104] 20. A system for adaptive memory error detection and correction (EDAC), comprising:
[0105] means for monitoring EDAC logic of a memory subsystem for error correction, wherein the EDAC logic is configured to use a first EDAC level;
[0106] means for determining a number of error corrections using said first EDAC level during a first time interval;
[0107] means for determining whether a number of said error corrections using said first EDAC level during said first time interval exceeds a first threshold; and
[0108] Means for switching the EDAC logic from using the first EDAC level to using a second EDAC level when the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
[0109] 21. A system according to clause 20, wherein:
[0110] the first EDAC level includes error correction for up to a first number of erroneous bits, wherein the means for determining the amount of error correction using the first EDAC level includes means for determining the amount of error correction for the first number of erroneous bits; and
[0111] The second EDAC level includes error correction of up to a second number of erroneous bits that is greater than the first number of erroneous bits.
[0112] 22. The system according to clause 21, further comprising:
[0113] means for monitoring the EDAC logic for error correction after switching the EDAC logic from using the first EDAC level to using the second EDAC level, wherein the EDAC logic is configured to use the second EDAC level;
[0114] means for determining a number of said error corrections using said second EDAC level during a second time interval, comprising determining a number of said error corrections of said second number of erroneous bits;
[0115] means for determining whether the number of error corrections of the first number of error bits during the second time interval is greater than a second threshold, wherein the second threshold is less than the first threshold;
[0116] means for determining whether the number of error corrections of the second number of erroneous bits during the second time interval is greater than a third threshold, wherein the third threshold is less than the second threshold; and
[0117] Means for switching the EDAC logic from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold.
[0118] 23. The system of clause 20, wherein the second threshold and the third threshold are zero error bits, and the first threshold is greater than zero error bits.
[0119] 24. The system of clause 22 or 23, wherein the second time interval is greater than the first time interval.
[0120] 25. A system according to any one of clauses 22 to 24, wherein:
[0121] the means for determining the number of error corrections using the second EDAC level during the second time interval further comprising means for determining the number of error corrections of a third number of error bits greater than the second number of error bits;
[0122] The system further includes means for determining whether the number of error corrections of the third number of erroneous bits during the second time interval is greater than a fourth threshold; and
[0123] The means for switching the EDAC logic from using the second EDAC level to using the first EDAC level further comprises means for switching the EDAC logic from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold, the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold, and the number of error corrections of the third number of error bits during the second time interval does not exceed the fourth threshold.
[0124] 26. The system of any of clauses 20 to 25, wherein the first EDAC level is single error correction / double error detection (SECDED) and the second EDAC level is triple error correction / quadruple error detection (TECQED).
[0125] 27. The system of any of clauses 20 to 26, further comprising means for performing a redirect when the number of error corrections using the first EDAC level during the first time interval exceeds the first threshold.
[0126] 28. The system of any of clauses 20 to 27, further comprising: means for, when the number of error corrections using the first EDAC level during the first time interval exceeds the first threshold:
[0127] reading data from the memory subsystem during a memory subsystem downtime, wherein the EDAC logic is configured to use the first EDAC level; and
[0128] The data is written back to the memory subsystem during a downtime of the memory subsystem, wherein the EDAC logic is configured to use the second EDAC
[0129] level.
[0130] 29. A computer readable medium for adaptive memory error detection and correction (EDAC), the computer readable medium comprising a non-transitory computer readable medium having instructions stored thereon in a computer executable form, the instructions, when executed by a processing system of a computing device, configure the processing system to control:
[0131] monitoring EDAC logic of a memory subsystem for error correction, wherein the EDAC logic is configured to use a first EDAC level;
[0132] determining a number of error corrections using the first EDAC level during a first time interval;
[0133] determining whether a number of said error corrections using said first EDAC level during said first time interval exceeds a first threshold; and
[0134] The EDAC logic is switched from using the first EDAC level to using a second EDAC level when the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
[0135] 30. The computer-readable medium of clause 29, wherein:
[0136] the first EDAC level includes error correction for up to a first number of erroneous bits, wherein determining the number of error corrections using the first EDAC level includes determining the number of error corrections for the first number of erroneous bits; and
[0137] The second EDAC level includes error correction of up to a second number of erroneous bits that is greater than the first number of erroneous bits.
[0138] 31. The computer-readable medium of clause 30, wherein the instructions further configure the processing system to control:
[0139] monitoring the EDAC logic for error correction after switching the EDAC logic from using the first EDAC level to using the second EDAC level, wherein the EDAC logic is configured to use the second EDAC level;
[0140] determining a number of said error corrections using said second EDAC level during a second time interval, comprising determining a number of said error corrections of said second number of erroneous bits;
[0141] determining whether a number of said error corrections of said first number of error bits during said second time interval is greater than a second threshold, wherein said second threshold is less than said first threshold;
[0142] determining whether the number of error corrections of the second number of erroneous bits during the second time interval is greater than a third threshold, wherein the third threshold is less than the second threshold; and
[0143] The EDAC logic is switched from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold.
[0144] 32. The computer-readable medium of clause 31, wherein the second threshold and the third threshold are zero erroneous bits, and the first threshold is greater than zero erroneous bits.
[0145] 33. The computer-readable medium of clause 31 or 32, wherein the second time interval is greater than the first time interval.
[0146] 34. A computer-readable medium according to any one of clauses 31 to 33, wherein:
[0147] The instructions configuring the processing system to control determining the number of error corrections using the second EDAC level during the second time interval include instructions configuring the processing system to control determining the number of error corrections of a third number of error bits greater than the second number of error bits;
[0148] The instructions further configure the processing system to control determining whether the number of error corrections of the third number of erroneous bits during the second time interval is greater than a fourth threshold; and
[0149] The instructions further configuring the processing system to switch the EDAC logic from using the second EDAC level to using the first EDAC level further include:
[0150] The EDAC logic is switched from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold, and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold, and the number of error corrections of the third number of error bits during the second time interval does not exceed the fourth threshold.
[0151] Alternative embodiments will become apparent to those skilled in the art to which the invention pertains.Thus, while selected aspects have been illustrated and described in detail, it should be appreciated that various substitutions and changes may be made therein.
Claims
1. A method for adaptive memory error detection and correction (EDAC), comprising: monitoring EDAC logic of a memory subsystem for error correction, wherein the EDAC logic is configured to use a first EDAC level; determining a number of error corrections using the first EDAC level during a first time interval; determining whether a number of said error corrections using said first EDAC level during said first time interval exceeds a first threshold; as well as The EDAC logic is switched from using the first EDAC level to using a second EDAC level when the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
2. The method according to claim 1, wherein: the first EDAC level includes error correction for up to a first number of erroneous bits, wherein determining the number of error corrections using the first EDAC level includes determining the number of error corrections for the first number of erroneous bits; and The second EDAC level includes error correction of up to a second number of erroneous bits that is greater than the first number of erroneous bits.
3. The method according to claim 2, further comprising: monitoring the EDAC logic for error correction after switching the EDAC logic from using the first EDAC level to using the second EDAC level, wherein the EDAC logic is configured to use the second EDAC level; determining a number of the error corrections using the second EDAC level during a second time interval, including determining a number of the error corrections for the first number of erroneous bits and the second number of erroneous bits; determining whether a number of said error corrections of said first number of error bits during said second time interval is greater than a second threshold, wherein said second threshold is less than said first threshold; determining whether the number of the error corrections of the second number of erroneous bits during the second time interval is greater than a third threshold, wherein the third threshold is less than the second threshold; as well as The EDAC logic is switched from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold. 4 . The method of claim 3 , wherein the second threshold and the third threshold are zero error bits, and the first threshold is greater than zero error bits. The method of claim 3 , wherein the second time interval is greater than the first time interval.
6. The method according to claim 3, wherein: determining the number of error corrections using the second EDAC level during the second time interval further comprises determining the number of error corrections for a third number of error bits greater than the second number of error bits; determining whether a number of said error corrections of said third number of erroneous bits during said second time interval is greater than a fourth threshold; and Switching the EDAC logic from using the second EDAC level to using the first EDAC level further includes switching the EDAC logic from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold, and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold, and the number of error corrections of the third number of error bits during the second time interval does not exceed the fourth threshold.
7. The method of claim 6, wherein the first EDAC level is single error correction / double error detection (SECDED) and the second EDAC level is triple error correction / quadruple error detection (TECQED).
8. The method according to claim 1, further comprising: A reboot is performed when a number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
9. The method according to claim 1, further comprising: When the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold: reading data from the memory subsystem during a memory subsystem downtime, wherein the EDAC logic is configured to use the first EDAC level; as well as The data is written back to the memory subsystem during a downtime of the memory subsystem, wherein the EDAC logic is configured to use the second EDAC level.
10. A system for adaptive memory error detection and correction (EDAC), comprising: EDAC logic in the memory subsystem; as well as EDAC level control logic, the EDAC level control logic is configured as: monitoring the EDAC logic for error correction, wherein the EDAC logic is configured to use a first EDAC level; determining a number of error corrections using the first EDAC level during a first time interval; determining whether a number of said error corrections using said first EDAC level during said first time interval exceeds a first threshold; and The EDAC logic is switched from using the first EDAC level to using a second EDAC level when the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
11. The system of claim 10, wherein: the first EDAC level includes error correction for up to a first number of erroneous bits, wherein the EDAC level control logic is configured to determine an amount of the error correction to use the first EDAC level by being configured to determine an amount of the error correction for the first number of erroneous bits; and The second EDAC level includes error correction of up to a second number of erroneous bits that is greater than the first number of erroneous bits.
12. The system of claim 11, wherein the EDAC level control logic is further configured to: monitoring the EDAC logic for error correction after switching the EDAC logic from using the first EDAC level to using the second EDAC level, wherein the EDAC logic is configured to use the second EDAC level; determining a number of said error corrections using said second EDAC level during a second time interval, comprising determining a number of said error corrections of said second number of erroneous bits; determining whether a number of said error corrections of said first number of error bits during said second time interval is greater than a second threshold, wherein said second threshold is less than said first threshold; determining whether the number of the error corrections of the second number of erroneous bits during the second time interval is greater than a third threshold, wherein the third threshold is less than the second threshold; and The EDAC logic is switched from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold.
13. The system of claim 12, wherein the second threshold and the third threshold are zero error bits, and the first threshold is greater than zero error bits. The system of claim 12 , wherein the second time interval is greater than the first time interval.
15. The system of claim 12, wherein: the EDAC level control logic configured to determine the number of error corrections to use the second EDAC level during the second time interval further by being configured to determine the number of error corrections of a third number of error bits greater than the second number of error bits; The EDAC level control logic is configured to determine whether the number of error corrections of the third number of erroneous bits during the second time interval is greater than a fourth threshold; and The EDAC level control logic is configured to switch the EDAC logic from using the second EDAC level to using the first EDAC level by being configured to switch the EDAC logic from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold, the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold, and the number of error corrections of the third number of error bits during the second time interval does not exceed the fourth threshold.
16. The system of claim 15, wherein the first EDAC level is single error correction / double error detection (SECDED) and the second EDAC level is triple error correction / quadruple error detection (TECQED).
17. The system of claim 10, wherein the EDAC level control logic is further configured to perform a reboot when a number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
18. The system of claim 10, wherein the EDAC level control logic is further configured to: when the number of error corrections using the first EDAC level during the first time interval exceeds the first threshold: reading data from the memory subsystem during a memory subsystem downtime, wherein the EDAC logic is configured to use the first EDAC level; and The data is written back to the memory subsystem during a downtime of the memory subsystem, wherein the EDAC logic is configured to use the second EDAC level.
19. The system of claim 10, wherein the EDAC level control logic and the EDAC logic are included in a vehicle.
20. A system for adaptive memory error detection and correction (EDAC), comprising: means for monitoring EDAC logic of a memory subsystem for error correction, wherein the EDAC logic is configured to use a first EDAC level; means for determining a number of error corrections using said first EDAC level during a first time interval; means for determining whether a number of said error corrections using said first EDAC level during said first time interval exceeds a first threshold; as well as Means for switching the EDAC logic from using the first EDAC level to using a second EDAC level when the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
21. The system of claim 20, wherein: the first EDAC level includes error correction for up to a first number of erroneous bits, wherein the means for determining the amount of error correction using the first EDAC level includes means for determining the amount of error correction for the first number of erroneous bits; and The second EDAC level includes error correction of up to a second number of erroneous bits that is greater than the first number of erroneous bits.
22. The system of claim 21, further comprising: means for monitoring the EDAC logic for error correction after switching the EDAC logic from using the first EDAC level to using the second EDAC level, wherein the EDAC logic is configured to use the second EDAC level; means for determining a number of said error corrections using said second EDAC level during a second time interval, comprising determining a number of said error corrections of said second number of erroneous bits; means for determining whether the number of error corrections of the first number of error bits during the second time interval is greater than a second threshold, wherein the second threshold is less than the first threshold; means for determining whether the number of error corrections of the second number of error bits during the second time interval is greater than a third threshold, wherein the third threshold is less than the second threshold; as well as Means for switching the EDAC logic from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold.
23. The system of claim 22, wherein the second threshold and the third threshold are zero error bits, and the first threshold is greater than zero error bits.
24. The system of claim 22, wherein the second time interval is greater than the first time interval.
25. The system of claim 22, wherein: the means for determining the number of error corrections using the second EDAC level during the second time interval further comprising means for determining the number of error corrections of a third number of error bits greater than the second number of error bits; The system further includes means for determining whether the number of error corrections of the third number of erroneous bits during the second time interval is greater than a fourth threshold; and The means for switching the EDAC logic from using the second EDAC level to using the first EDAC level further comprises means for switching the EDAC logic from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold, the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold, and the number of error corrections of the third number of error bits during the second time interval does not exceed the fourth threshold.
26. The system of claim 25, wherein the first EDAC level is single error correction / double error detection (SECDED) and the second EDAC level is triple error correction / quadruple error detection (TECQED).
27. The system of claim 20, further comprising: Means for performing a reboot when a number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
28. The system of claim 20, further comprising: means for, when the number of error corrections using the first EDAC level during the first time interval exceeds the first threshold: reading data from the memory subsystem during a memory subsystem downtime, wherein the EDAC logic is configured to use the first EDAC level; as well as The data is written back to the memory subsystem during a downtime of the memory subsystem, wherein the EDAC logic is configured to use the second EDAC level.
29. A computer readable medium for adaptive memory error detection and correction (EDAC), the computer readable medium comprising a non-transitory computer readable medium having instructions stored thereon in a computer executable form, the instructions, when executed by a processing system of a computing device, configure the processing system to control: monitoring EDAC logic of a memory subsystem for error correction, wherein the EDAC logic is configured to use a first EDAC level; determining a number of error corrections using the first EDAC level during a first time interval; determining whether a number of said error corrections using said first EDAC level during said first time interval exceeds a first threshold; and The EDAC logic is switched from using the first EDAC level to using a second EDAC level when the number of the error corrections using the first EDAC level during the first time interval exceeds the first threshold.
30. The computer-readable medium of claim 29, wherein: the first EDAC level includes error correction for up to a first number of erroneous bits, wherein determining the number of error corrections using the first EDAC level includes determining the number of error corrections for the first number of erroneous bits; and The second EDAC level includes error correction of up to a second number of erroneous bits that is greater than the first number of erroneous bits.
31. The computer-readable medium of claim 30, wherein the instructions further configure the processing system to control: monitoring the EDAC logic for error correction after switching the EDAC logic from using the first EDAC level to using the second EDAC level, wherein the EDAC logic is configured to use the second EDAC level; determining a number of said error corrections using said second EDAC level during a second time interval, comprising determining a number of said error corrections of said second number of erroneous bits; determining whether a number of said error corrections of said first number of error bits during said second time interval is greater than a second threshold, wherein said second threshold is less than said first threshold; determining whether the number of the error corrections of the second number of erroneous bits during the second time interval is greater than a third threshold, wherein the third threshold is less than the second threshold; as well as The EDAC logic is switched from using the second EDAC level to using the first EDAC level when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold.
32. The computer readable medium of claim 31, wherein the second threshold and the third threshold are zero error bits, and the first threshold is greater than zero error bits.
33. The computer-readable medium of claim 29, wherein the second time interval is greater than the first time interval.
34. The computer readable medium of claim 31 , wherein: The instructions configuring the processing system to control determining the number of error corrections using the second EDAC level during the second time interval include instructions configuring the processing system to control determining the number of error corrections of a third number of error bits greater than the second number of error bits; The instructions further configure the processing system to control determining whether the number of error corrections of the third number of erroneous bits during the second time interval is greater than a fourth threshold; and The instructions further configuring the processing system to switch the EDAC logic from using the second EDAC level to using the first EDAC level also include: when the number of error corrections of the first number of error bits during the second time interval does not exceed the second threshold, and the number of error corrections of the second number of error bits during the second time interval does not exceed the third threshold, and the number of error corrections of the third number of error bits during the second time interval does not exceed the fourth threshold, switching the EDAC logic from using the second EDAC level to using the first EDAC level.
Citation Information
Patent Citations
Data storage with incremental redundancy
US20080282106A1
Independent orthogonal error correction and detection
US20130091405A1
Memory circuit incorporating error detection and correction (EDAC), method of operation, and system
US20140281810A1
Error correction code (ECC) selection in NAND flash controllers with multiple error correction codes
US20150286528A1
Method for Modifying Device-Specific Variable Error Correction Settings
US20160301427A1
