Damaged page recognition device and method, memory controller and storage system
By using the page address recording module and interrupt management module of the damaged page identification device, the page address and number of pages with correctable errors are recorded, and a threshold is set to trigger an interrupt. This solves the problem of not being able to accurately locate and repair unstable pages in memory chips in the existing technology, and improves system stability.
Patent Information
- Application Number
- CN202511354438.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-22
- Publication Date
- 2025-12-12
AI Technical Summary
Existing technologies cannot accurately locate unstable pages in memory chips, which affects system stability, especially when page instability and link instability coexist, making it impossible to identify and repair damaged pages in advance.
A damaged page identification device is adopted, including a page address recording module and an interrupt management module. By recording the page addresses and number of pages with correctable errors, a threshold is set to trigger an interrupt, accurately locating unstable pages and repairing them.
It enables accurate location and early repair of unstable pages, improving system stability and avoiding repair failures caused by misjudgment of link instability.
Smart Images

Figure CN121122371A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of chip technology, and in particular to a damaged page identification device, method, memory controller, and storage system. Background Technology
[0002] As the performance of electronic devices improves, the capacity of their integrated memory chips also increases, leading to a rise in the probability of memory chip damage. Page corruption is a common type of memory chip damage. When faced with page corruption, it is usually necessary to first diagnose the damaged page before repairing it.
[0003] In existing technologies, single-bit errors are checked and corrected through the ECC (Error Correcting Code) module. Since the single-bit error has been corrected, it does not affect the system operation. Usually, the CE address is recorded when a CE (Correctable Error) occurs. After a certain number of CEs are accumulated, a warning is reported, and the upper layer performs repair based on the last recorded CE address.
[0004] However, the inventors discovered that during memory access, if page instability and link instability exist simultaneously, and if the last recorded CE address happens to be caused by a link flip, the upper layer will not be able to accurately locate the unstable page (damaged page), and will not be able to identify and repair it in advance, thus affecting system stability. Summary of the Invention
[0005] In view of this, embodiments of this application provide a damaged page identification device, method, memory controller, and storage system, which can accurately locate unstable pages, identify them in advance, and repair them as needed, thereby improving system stability.
[0006] In a first aspect, embodiments of this application provide a damaged page identification device, which adopts the following technical solution: The damaged page identification device includes: Page address recording module, the page address recording module includes a recording control unit and M information recording units, where M is a positive integer greater than or equal to 5; An interrupt management module, comprising a threshold storage unit and an interrupt control unit; in, Each of the information recording units is used to record the page address and the number N of correctable errors generated by a page address. The page address is used to locate the memory page where the correctable error was generated, and N is a positive integer greater than or equal to 1. The recording control unit is used to control the M information recording units so that the M information recording units record the M page addresses with the most correctable errors; The threshold storage unit is used to store the threshold N of the number of correctable errors that trigger an interrupt. max ; The interrupt control unit is configured to record a number N of correctable errors in one of the information recording units until the number threshold N is reached. max An interrupt is triggered at that time.
[0007] Optionally, the page address recording module includes 5 to 15 information recording units.
[0008] Optionally, the page address includes a bank address and a row address.
[0009] Optionally, the recording control unit is specifically used for: When a correctable error occurs at the address of the page to be recorded, it is determined whether the address of the page to be recorded has already been recorded in the information recording unit; If it has already been recorded, then record the number N correctable errors in the i-th information recording unit corresponding to the page address to be recorded. i Updated to N i +1, where i is a positive integer greater than or equal to 1 and less than or equal to M; If not recorded, the page address to be recorded is recorded in a blank information recording unit, and the number of correctable errors N is recorded as 1.
[0010] Optionally, the recording control unit is further configured to: if no record is made and there is no blank information recording unit, clear the information in the information recording unit with the fewest correctable errors N, making it a blank information recording unit.
[0011] Optionally, the information recording unit is further used to record the time when the page address most recently generated a correctable error; clearing the information in the information recording unit with the fewest number of correctable errors N to make it a blank information recording unit includes: if at least two information recording units have the same number of correctable errors N, then clearing the information in the information recording unit corresponding to the page address where the most recently generated correctable error occurred earliest.
[0012] Optionally, the recording control unit is further configured to: arrange the N information recording units in descending order according to the number of correctable errors recorded by the information recording unit.
[0013] Optionally, the information recording unit is further used to record the time when the page address most recently generated a correctable error; the step of arranging the N information recording units in descending order according to the number of correctable errors recorded by the information recording unit includes: if at least two information recording units record the same number of correctable errors N, then the information recording unit corresponding to the page address with the later time of the latest correctable error is arranged first.
[0014] Optionally, if no information is recorded and there is no blank information recording unit, the information in the last information recording unit is cleared, making it a blank information recording unit.
[0015] Optionally, the interrupt control unit is specifically used to: determine whether the number N of correctable errors recorded in the first information recording unit reaches the number threshold N. max If the condition is met, an interrupt will be triggered.
[0016] Optionally, the page address recording module further includes an address judgment unit, used to determine whether the correctable error is caused by link instability or page instability, discard the page address corresponding to the correctable error caused by link instability, and retain the page address corresponding to the correctable error caused by page instability for the information recording unit to record.
[0017] Secondly, this application also provides a method for identifying damaged pages, which adopts the following technical solution: The damaged page identification method, applied to any of the damaged page identification devices described above, is characterized by comprising: When a correctable error occurs, the recording control unit controls the M information recording units to record the page address corresponding to the correctable error in the corresponding information recording unit, and records the cumulative number N of correctable errors generated by the page address. The page address is used to locate the memory page where the correctable error occurred. The number of correctable errors recorded by the interrupt control unit in one of the information recording units reaches the threshold number N stored in the threshold storage unit. max An interrupt is triggered at that time.
[0018] Thirdly, embodiments of this application also provide a memory controller, which adopts the following technical solution: The memory controller includes: a corrupted page identification device and an error correction module; the corrupted page identification device includes a page address recording module and an interrupt management module; The page address recording module includes a recording control unit and M information recording units, where M is a positive integer greater than or equal to 5; The interrupt management module includes a threshold storage unit and an interrupt control unit; The error correction module is used to correct correctable errors and send the corrected correctable error information to the page address recording module. in, Each of the information recording units is used to record the page address and the number N of correctable errors generated by a page address. The page address is used to locate the memory page where the correctable error was generated, and N is a positive integer greater than or equal to 1. The recording control unit is used to control the M information recording units so that the M information recording units record the M page addresses with the most correctable errors; The threshold storage unit is used to store the threshold N of the number of correctable errors that trigger an interrupt. max ; The interrupt control unit is configured to record a number N of correctable errors in one of the information recording units until the number threshold N is reached. max An interrupt is triggered at that time.
[0019] Fourthly, embodiments of this application also provide a storage system, including the memory controller and memory described above; the memory includes multiple memory pages, the error correction module of the memory controller is used to correct correctable errors generated by the memory pages, and the damaged page identification device of the memory controller is used to identify damaged pages among the multiple memory pages based on the corrected correctable error related information.
[0020] Optionally, the storage system further includes a damage repair module, which is used to repair the memory page located by the page address recorded by the information recording unit that triggered the interrupt after the interrupt control unit triggers an interrupt.
[0021] The damaged page identification device provided in this application includes a page address recording module and an interrupt management module. The page address recording module includes M information recording units and a recording control unit. The interrupt management module includes a threshold storage unit and an interrupt control unit. When a correctable error occurs, the recording control unit controls the M information recording units to record the page address corresponding to the correctable error in the corresponding information recording unit, and records the cumulative number N of correctable errors generated by the page address. When the number N of correctable errors recorded by the interrupt control unit in one information recording unit reaches the threshold N stored in the threshold storage unit, the correctable error is determined. max When an interrupt is triggered, it means that the same page address has accumulated multiple correctable errors, and that page address must be an unstable page. This allows for accurate location of the unstable page, early identification, and repair as needed, thereby improving system stability.
[0022] The above description is merely an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0023] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 Structure of the Damaged Page Identification Device Provided in the Embodiments of this Application Figure 1 ; Figure 2 Structure of the Damaged Page Identification Device Provided in the Embodiments of this Application Figure 2 ; Figure 3 A flowchart illustrating the damaged page identification method provided in this application embodiment; Figure 4 A structural diagram of the memory controller provided in an embodiment of this application; Figure 5 Structure of the storage system provided in the embodiments of this application Figure 1 ; Figure 6 Structure of the storage system provided in the embodiments of this application Figure 2 . Detailed Implementation
[0025] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0026] It should be understood that the following specific examples illustrate the implementation of this application, and those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. This application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] It should be noted that the following description covers various aspects of embodiments within the scope of the appended claims. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this application, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using structures and / or functionalities other than one or more of the aspects set forth herein.
[0028] It should also be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. The drawings only show the components related to this application and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0029] Furthermore, specific details are provided in the following description to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects can be practiced without these specific details.
[0030] This application provides a damaged page identification device, specifically, as shown in the embodiment. Figure 1 As shown, the damaged page identification device includes: a page address recording module 1, which includes a recording control unit 12 and M information recording units 11, where M is a positive integer greater than or equal to 5; and an interrupt management module 2, which includes a threshold storage unit 21 and an interrupt control unit 22. in, Each information recording unit 11 is used to record the page address and the number N of correctable errors generated by a page address. The page address is used to locate the memory page where the correctable error was generated, and N is a positive integer greater than or equal to 1. The recording control unit 12 is used to control the M information recording units 11 so that the M information recording units 11 record the M page addresses with the most correctable errors; Threshold storage unit 21 is used to store the threshold Nmax of the number of correctable errors that trigger an interrupt; The interrupt control unit 22 is used to trigger an interrupt when the number of correctable errors recorded in an information recording unit 11 reaches the number threshold Nmax.
[0031] The damaged page identification device provided in this application includes a page address recording module 1 and an interrupt management module 2. The page address recording module 1 includes M information recording units 11 and a recording control unit 12. The interrupt management module 2 includes a threshold storage unit 21 and an interrupt control unit 22. When a correctable error occurs, the recording control unit 12 controls the M information recording units 11 to record the page address corresponding to the correctable error in the corresponding information recording unit 11, and records the cumulative number N of correctable errors generated by the page address. When the number N of correctable errors recorded by the interrupt control unit 22 in one information recording unit 11 reaches the threshold number N stored in the threshold storage unit 21, the correctable error is identified. max When an interrupt is triggered, it means that the same page address has accumulated multiple correctable errors, and that page address must be an unstable page. This allows for accurate location of the unstable page, early identification, and repair as needed, thereby improving system stability.
[0032] The following embodiments of this application illustrate the specific details of the damaged page identification device.
[0033] Optionally, the page address recording module 1 in this embodiment includes 5 to 15 information recording units 11. This allows the information recording units 11 to not only record a certain number of correctable page address errors, avoiding frequent clearing of information in the information recording units 11, but also to avoid occupying excessive chip area and putting pressure on hardware resources. For example, each information recording unit 11 can be set up in the form of a linked list, meaning that corresponding information can be recorded into each information recording unit 11 sequentially, and the information recording units 11 can be sorted as needed, and the information in the recorded information units 11 can be cleared according to relevant rules.
[0034] It should be noted that each information recording unit 11 is used to record the number N of correctable errors generated by a page address. For M information recording units 11, the correctable error related information of up to 11 page addresses can be recorded at the same time. Each information recording unit 11 records the correctable error related information of different page addresses.
[0035] Optionally, the page address in this embodiment includes a bank address and a row address. A significant difference from the CE address recorded in the prior art is that it does not include a column address. Since page corruption is measured in rows, the bank and row addresses included in the page address allow for accurate location of the memory page where the correctable error occurred and accurate recording of the number of correctable errors. In contrast, the column address in the prior art changes with different correctable errors, making it difficult to statistically count the number of correctable errors. For example, the bank address is a 5-bit address, and the row address is an 8-bit address. In addition, the page address in this embodiment may also include other relevant address information besides the column address, such as CS chip select.
[0036] Optionally, in this embodiment, the recording control unit 12 is specifically used to: when a correctable error occurs at the page address to be recorded, determine whether the page address to be recorded has already been recorded in the information recording unit 11; if it has been recorded, then record the number N correctable errors recorded in the i-th information recording unit 11 corresponding to the page address to be recorded. i Updated to N i +1, where i is a positive integer greater than or equal to 1 and less than or equal to M; if not recorded, the page address to be recorded is recorded in a blank information recording unit 11, and the number of correctable errors N generated is recorded as 1.
[0037] For example, the recording control unit 12 can traverse each information recording unit 11 and compare the Bank address and row address in the recorded page address with the Bank address and row address in the page address to be recorded. If they are completely identical, the page address has been recorded; otherwise, it has not been recorded. Alternatively, the recording control unit 12 can maintain a list of recorded page addresses and determine whether the page address to be recorded has been recorded by searching this list.
[0038] For example, if no information is recorded, and not all of the M information recording units 11 have recorded information, the recording control unit 12 directly selects a blank information recording unit 11 to record the page address to be recorded, and records the cumulative number of correctable errors N as 1. One of the multiple blank information recording units 11 can be selected arbitrarily, or the blank information recording unit 11 that is first in the order of the information recording units 11 can be selected.
[0039] For example, if no information is recorded and there is no blank information recording unit 11, the recording control unit 12 is further configured to: clear the information in the information recording unit 11 with the fewest correctable errors N, making it a blank information recording unit 11, so as to record the correctable error related information of the page address to be recorded. This operation ensures that the page address being cleared is the one with the fewest cumulative correctable errors N among all recorded page addresses, and is the least likely to trigger an interrupt. Clearing it will not adversely affect the triggering of the interrupt, the identification of damaged pages, or the repair. For example, if M information recording units 11 all record relevant information, and the page address recorded in the j-th information recording unit 11 has the fewest cumulative correctable errors N, then the relevant information in the j-th information recording unit 11 is cleared, making it a blank information recording unit 11, where j is a positive integer greater than or equal to 1 and less than or equal to M.
[0040] Optionally, in this embodiment, the information recording unit 11 is further used to record the time when the most recently correctable error occurred at the page address, i.e., the time when the most recently correctable error occurred at the page address, which can be recorded by timestamps or other means. Then, the information in the information recording unit 11 with the fewest recorded correctable errors N is cleared, making it a blank information recording unit 11. Specifically, if at least two information recording units 11 have the same number of correctable errors N, the information in the information recording unit 11 corresponding to the page address with the earliest recorded correctable error is cleared, i.e., the information in the information recording unit 11 corresponding to the page address that has not had a new correctable error for a longer period of time. The probability of a page address that has not had a new correctable error for a longer period of time being damaged is lower than the probability of a page address that has not had a new correctable error for a shorter period of time being damaged. Clearing it will not adversely affect the triggering of interruptions, the identification of damaged pages, or their repair.
[0041] Optionally, in this embodiment, the recording control unit 12 is further configured to: arrange the N information recording units 11 in descending order according to the number of correctable errors recorded by the information recording unit 11. After such arrangement, blank information recording units 11, information recording units 11 that need to have their information cleared, or information recording units 11 that trigger interruption can be selected more efficiently.
[0042] Optionally, the information recording unit 11 is also used to record the time when the page address most recently generated a correctable error; then, according to the number of correctable errors recorded by the information recording unit 11, the N information recording units 11 are arranged in descending order, including: if at least two information recording units 11 record the same number of correctable errors N, then the information recording unit 11 corresponding to the page address with the later time of the latest correctable error is arranged first, so as to further improve the efficiency of selecting the information recording unit 11.
[0043] Optionally, after the information recording units 11 are arranged according to the above rules, when a correctable error occurs in the address of the page to be recorded, the recording control unit 12 can directly clear the information in the last information recording unit 11, making it a blank information recording unit 11, if it determines that the address of the page to be recorded is not recorded in the information recording unit 11 and there is no blank information recording unit 11.
[0044] Optionally, in this embodiment, the threshold storage unit 21 can be an interrupt threshold register, where the threshold number N required for interrupts is written. max Number threshold N max The specific value can be set according to the actual situation. There is no limit here, as long as it can reasonably trigger the interrupt.
[0045] Optionally, in this embodiment, after the information recording units 11 are arranged according to the above rules, the interrupt control unit 22 is specifically used to: determine whether the number N of correctable errors recorded in the first information recording unit 11 reaches the number threshold N. max If the error is reached, an interrupt is triggered. This eliminates the need to iterate through all information recording units 11 to find the highest number N for comparison, or to compare the number of correctable errors N recorded in each information recording unit 11. This improves the control efficiency of the interrupt control unit 22. It should be noted that after an interrupt is triggered, the information in the information recording unit 11 that triggered the interrupt can be cleared, making it a blank information recording unit 11.
[0046] In this embodiment of the application, the page addresses recorded in the page address recording module 1 may include all page addresses that have experienced correctable errors, without needing to distinguish whether they are caused by link instability or page instability.
[0047] As an alternative, such as Figure 2 As shown in the embodiment of this application, the page address recording module 1 may also include an address judgment unit 13, used to determine whether the correctable error is caused by link instability or page instability, discard the page address corresponding to the correctable error caused by link instability, and retain the page address corresponding to the correctable error caused by page instability for recording by the information recording unit 11. This can reduce the occupation of the page address of the correctable error caused by occasional link instability on the information recording unit 11, improve the actual usage efficiency of the information recording unit 11, and reduce the number of information clearing times. Optionally, by identifying whether the occurrence of the correctable error triggers the verification mechanism on the link, if it is triggered, it is caused by link instability; if it is not triggered, it is caused by page instability.
[0048] Furthermore, this application also provides a method for identifying damaged pages, which is applied to any of the damaged page identification devices described above, specifically, as follows: Figure 3 As shown, the damaged page identification method includes: Step S1: When a correctable error is generated, the recording control unit 12 controls the M information recording units 11 to record the page address corresponding to the correctable error in the corresponding information recording unit 11, and records the cumulative number N of correctable errors generated by the page address. The page address is used to locate the memory page generated by the correctable error. Step S2: When the number of correctable errors recorded in the information recording unit 11 reaches the threshold Nmax stored in the threshold storage unit 21, the interrupt control unit 22 triggers an interrupt.
[0049] When a correctable error occurs, the recording control unit 12 controls the M information recording units 11 to record the page address corresponding to the correctable error in the corresponding information recording unit 11, and records the cumulative number N of correctable errors generated by the page address. When the number N of correctable errors recorded by the interrupt control unit 22 in one information recording unit 11 reaches the threshold number N stored in the threshold storage unit 21, the interrupt control unit 22 will stop the error. max When an interrupt is triggered, it means that the same page address has accumulated multiple correctable errors, and that page address must be an unstable page. This allows for accurate location of the unstable page, early identification and repair, and improved system stability.
[0050] Optionally, when a correctable error occurs, the recording control unit 12 controls the M information recording units 11 to record the page address corresponding to the correctable error in the corresponding information recording unit 11, and records the cumulative number N of correctable errors generated by the page address. Specifically, when a correctable error occurs at the page address to be recorded, the recording control unit 12 determines whether the page address to be recorded has already been recorded in the information recording unit 11; if it has been recorded, the number N of correctable errors recorded in the i-th information recording unit 11 corresponding to the page address to be recorded is recorded. i Updated to N i +1, where i is a positive integer greater than or equal to 1 and less than or equal to M; if not recorded, the page address to be recorded is recorded in a blank information recording unit 11, and the number of correctable errors N generated is recorded as 1.
[0051] For example, the recording control unit 12 can traverse each information recording unit 11 and compare the Bank address and row address in the recorded page address with the Bank address and row address in the page address to be recorded. If they are completely identical, the page address has been recorded; otherwise, it has not been recorded. Alternatively, the recording control unit 12 can maintain a list of recorded page addresses and determine whether the page address to be recorded has been recorded by searching this list.
[0052] For example, if no information is recorded, and not all of the M information recording units 11 have recorded information, the recording control unit 12 directly selects a blank information recording unit 11 to record the page address to be recorded, and records the cumulative number of correctable errors N as 1. One of the multiple blank information recording units 11 can be selected arbitrarily, or the blank information recording unit 11 that is first in the order of the information recording units 11 can be selected.
[0053] For example, when a correctable error occurs, the recording control unit 12 controls M information recording units 11 to record the page address corresponding to the correctable error in the corresponding information recording unit 11, and records the cumulative number N of correctable errors generated by the page address. This may also include: if no error is recorded and there is no blank information recording unit 11, the recording control unit 12 clears the information in the information recording unit 11 with the fewest recorded correctable errors N, making it a blank information recording unit 11, so that the correctable error related information of the page address to be recorded can be recorded. This operation ensures that the cleared page address is the one with the fewest cumulative correctable errors N among all recorded page addresses, and is the least likely to trigger an interrupt. Clearing it will not adversely affect the triggering of the interrupt, the identification of damaged pages, or the repair. For example, if all M information recording units 11 record relevant information, and the number N of correctable errors generated by the page address recorded in the j-th information recording unit 11 is the smallest, then the relevant information in the j-th information recording unit 11 is cleared, making it a blank information recording unit 11, where j is a positive integer greater than or equal to 1 and less than or equal to M.
[0054] Optionally, the damaged page identification method in this application embodiment further includes: recording the time when the page address most recently generated a correctable error in the information recording unit 11, that is, the time when the page address most recently generated a correctable error, which can be recorded by timestamp or other means; then, at this time, the information in the information recording unit 11 with the fewest recorded correctable errors N is cleared, making it a blank information recording unit 11. Specifically, if at least two information recording units 11 have the same number of correctable errors N, then the information in the information recording unit 11 corresponding to the page address with the earliest time when the most recently generated correctable error occurred is cleared, that is, the information in the information recording unit 11 corresponding to the page address that has not generated a new correctable error for a longer period of time is cleared. The probability of a page address that has not generated a new correctable error for a longer period of time being damaged is lower than the probability of a page address that has not generated a new correctable error for a shorter period of time being damaged, and clearing it will not have an adverse effect on the triggering of interruption, the identification and repair of damaged pages.
[0055] Optionally, the damaged page identification method in this embodiment further includes: the recording control unit 12 sorts the N information recording units 11 in descending order according to the number of correctable errors recorded by the information recording units 11. After such sorting, blank information recording units 11, information recording units 11 that need to have their information cleared, or information recording units 11 that trigger interruption can be selected more efficiently.
[0056] Optionally, when the information recording unit 11 also records the time when the page address most recently generated a correctable error, the N information recording units 11 are sorted in descending order according to the number of correctable errors recorded in the information recording unit 11. This includes: if at least two information recording units 11 record the same number of correctable errors N, the information recording unit 11 corresponding to the page address with the later time of the latest correctable error is arranged first, so as to further improve the efficiency of selecting information recording units 11.
[0057] Optionally, after the information recording units 11 are arranged according to the above rules, when a correctable error occurs in the address of the page to be recorded, the recording control unit 12 can directly clear the information in the last information recording unit 11, making it a blank information recording unit 11, if it determines that the address of the page to be recorded is not recorded in the information recording unit 11 and there is no blank information recording unit 11.
[0058] Optionally, in this embodiment, after the information recording units 11 are arranged according to the above rules, the interrupt control unit 22 triggers an interrupt when the number of correctable errors recorded in an information recording unit 11 reaches the threshold value Nmax stored in the threshold storage unit 21. Specifically, this includes determining whether the number N of correctable errors recorded in the first information recording unit 11 reaches the threshold value Nmax. maxIf the error is reached, an interrupt is triggered. This eliminates the need to iterate through all information recording units 11 to find the highest number N for comparison, or to compare the number of correctable errors N recorded in each information recording unit 11. This improves the control efficiency of the interrupt control unit 22. It should be noted that after an interrupt is triggered, the information in the information recording unit 11 that triggered the interrupt can be cleared, making it a blank information recording unit 11.
[0059] Optionally, the damaged page identification method in this embodiment further includes: determining whether a correctable error is caused by link instability or page instability through the address judgment unit 13 in the page address recording module 1; discarding the page address corresponding to the correctable error caused by link instability; and retaining the page address corresponding to the correctable error caused by page instability for recording by the information recording unit 11. This reduces the occupation of the page address of the correctable error caused by occasional link instability on the information recording unit 11, improves the actual usage efficiency of the information recording unit 11, and reduces the number of information clearing operations. Optionally, by identifying whether the occurrence of a correctable error triggers a verification mechanism on the link, if it is triggered, it is a result of link instability; if it is not triggered, it is a result of page instability.
[0060] Optionally, the damaged page identification method in this embodiment further includes: after the interrupt control unit 22 triggers an interrupt, repairing the memory page located by the page address recorded by the interrupt triggering information recording unit 11. Specifically, the repair process can be combined with the repair type supported by the memory. If the memory chip supports redundant page replacement of the damaged page, such as HBM, a repair command is issued according to the HBM protocol to replace the damaged page with a redundant page. If redundant page replacement of the damaged page is not supported, a page retirement scheme is used for repair.
[0061] Furthermore, embodiments of this application also provide a memory controller, such as... Figure 4 As shown, the memory controller includes: a corrupted page identification device and an error correction module (ECC) 3; the corrupted page identification device includes a page address recording module 1 and an interrupt management module 2.
[0062] Page address recording module 1 includes a recording control unit 12 and M information recording units 11, where M is a positive integer greater than or equal to 5; Interrupt management module 2 includes a threshold storage unit 21 and an interrupt control unit 22; Error correction module 3 is used to correct correctable errors and send the corrected correctable error information to page address recording module 1; in, Each information recording unit 11 is used to record the page address and the number N of correctable errors generated by a page address. The page address is used to locate the memory page where the correctable error was generated, and N is a positive integer greater than or equal to 1. The recording control unit 12 is used to control the M information recording units 11 so that the M information recording units 11 record the M page addresses with the most correctable errors; Threshold storage unit 21 is used to store the threshold N of the number of correctable errors that trigger an interrupt. max ; Interrupt control unit 22 is used to record a number of correctable errors in an information recording unit 11 when the number reaches a threshold N. max An interrupt is triggered at that time.
[0063] Furthermore, embodiments of this application also provide a storage system, such as... Figure 5 As shown, the storage system includes the memory controller described above, and memory 4. Memory 4 includes multiple memory pages. The error correction module 3 of the memory controller is used to correct correctable errors generated by the memory pages. The damaged page identification device of the memory controller is used to identify damaged pages among the multiple memory pages based on the information related to the corrected correctable errors. The memory described above can be HBM memory.
[0064] Specifically, when a correctable error occurs in a memory page, the error correction module 3 corrects the correctable error generated by the memory page. The recording control unit 12 controls the M information recording units 11 to record the page address corresponding to the correctable error in the corresponding information recording unit 11, and records the cumulative number N of correctable errors generated by the page address. When the number N of correctable errors recorded by the interrupt control unit 22 in an information recording unit 11 reaches the threshold number N stored in the threshold storage unit 21, the error correction module 3 corrects the correctable error generated by the page address. max When an interrupt is triggered, the page address that triggers the interrupt must be an unstable page, thus enabling accurate location of the unstable page.
[0065] Optional, such as Figure 6 As shown, the storage system also includes a damage repair module 5. This module repairs the memory page located by the page address recorded by the interrupt information recording unit after the interrupt control unit triggers an interrupt. Specifically, the repair process can be combined with the repair type supported by the memory. If the memory chip supports redundant page replacement of the damaged page, such as HBM (High Bandwidth Memory), a repair command is issued according to the HBM protocol to replace the damaged page with a redundant page. If redundant page replacement is not supported, a page retirement scheme is used for repair.
[0066] The basic principles of this application have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this application are merely examples and not limitations, and should not be considered as essential features of each embodiment of this application. Furthermore, the specific details of the above application are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the application to the necessity of employing the aforementioned specific details for implementation.
[0067] In this application, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The block diagrams of devices, apparatuses, devices, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as "comprising," "including," "having," etc., are open-ended terms meaning "including but not limited to," and are used interchangeably with them. The terms "or" and "and" as used herein refer to the terms "and / or," and are used interchangeably with them unless the context clearly indicates otherwise. The term "such as" as used herein refers to the phrase "such as but not limited to," and is used interchangeably with it.
[0068] Additionally, as used herein, the "or" used in a list of items beginning with "at least one" indicates a separate list, such that a list of, for example, "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not imply that the described example is preferred or better than other examples.
[0069] It should also be noted that in the system and method of this application, the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered as equivalent solutions of this application.
[0070] Various changes, substitutions, and modifications can be made to the technology described herein without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims is not limited to the specific aspects of the processes, machines, manufactures, events, means, methods, and actions described above. Currently existing or later-developed processes, machines, manufactures, events, means, methods, or actions that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein can be utilized. Therefore, the appended claims include such processes, machines, manufactures, events, means, methods, or actions within their scope.
[0071] The above description of the claimed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, this application is not intended to be limited to the aspects shown herein, but rather to be applied within the widest scope consistent with the principles and novel features of this application.
[0072] The above description has been given for illustrative and descriptive purposes. Furthermore, this description is not intended to limit the embodiments of this application to the forms described herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A damaged page identification device, characterized in that, include: Page address recording module, the page address recording module includes a recording control unit and M information recording units, where M is a positive integer greater than or equal to 5; An interrupt management module, comprising a threshold storage unit and an interrupt control unit; in, Each of the information recording units is used to record the page address and the number N of correctable errors generated by a page address. The page address is used to locate the memory page where the correctable error was generated, and N is a positive integer greater than or equal to 1. The recording control unit is used to control the M information recording units so that the M information recording units record the M page addresses with the most correctable errors; The threshold storage unit is used to store the threshold N of the number of correctable errors that trigger an interrupt. max ; The interrupt control unit is configured to record a number N of correctable errors in one of the information recording units until the number threshold N is reached. max An interrupt is triggered at that time.
2. The damaged page identification device according to claim 1, characterized in that, The page address recording module includes 5 to 15 information recording units.
3. The damaged page identification device according to claim 1, characterized in that, The page address includes the bank address and the row address.
4. The damaged page identification device according to any one of claims 1 to 3, characterized in that, The recording control unit is specifically used for: When a correctable error occurs at the address of the page to be recorded, it is determined whether the address of the page to be recorded has already been recorded in the information recording unit; If it has already been recorded, then record the number N correctable errors in the i-th information recording unit corresponding to the page address to be recorded. i Updated to N i +1, where i is a positive integer greater than or equal to 1 and less than or equal to M; If not recorded, the page address to be recorded is recorded in a blank information recording unit, and the number of correctable errors N is recorded as 1.
5. The damaged page identification device according to claim 4, characterized in that, The recording control unit is further configured to: if no record is made and there is no blank information recording unit, clear the information in the information recording unit with the fewest correctable errors N, making it a blank information recording unit.
6. The damaged page identification device according to claim 5, characterized in that, The information recording unit is also used to record the time when the page address last generated a correctable error; The process of clearing the information in the information recording unit with the fewest correctable errors N, making it a blank information recording unit, includes: if at least two information recording units have the same number of correctable errors N, then clearing the information in the information recording unit corresponding to the page address where the latest correctable error occurred earliest.
7. The damaged page identification device according to claim 4, characterized in that, The recording control unit is further configured to: sort the N information recording units in descending order according to the number of correctable errors recorded by the information recording unit.
8. The damaged page identification device according to claim 7, characterized in that, The information recording unit is also used to record the time when the page address last generated a correctable error; The step of arranging the N information recording units in descending order based on the number of correctable errors recorded by the information recording unit includes: if at least two information recording units record the same number of correctable errors N, then the information recording unit corresponding to the page address where the most recently correctable error occurred is arranged first.
9. The damaged page identification device according to claim 8, characterized in that, If no information is recorded and there is no blank information recording unit, clear the information in the last information recording unit to make it a blank information recording unit.
10. The damaged page identification device according to claim 8, characterized in that, The interrupt control unit is specifically used to: determine whether the number N of correctable errors recorded in the first information recording unit reaches the threshold number N. max If the condition is met, an interrupt will be triggered.
11. The damaged page identification device according to any one of claims 1 to 3, characterized in that, The page address recording module further includes an address judgment unit, used to determine whether the correctable error is caused by link instability or page instability, discard the page address corresponding to the correctable error caused by link instability, and retain the page address corresponding to the correctable error caused by page instability for the information recording unit to record.
12. A method for identifying damaged pages, applied to the damaged page identification device according to any one of claims 1 to 11, characterized in that, include: When a correctable error occurs, the recording control unit controls the M information recording units to record the page address corresponding to the correctable error in the corresponding information recording unit, and records the cumulative number N of correctable errors generated by the page address. The page address is used to locate the memory page where the correctable error occurred. The number N of correctable errors recorded by the interrupt control unit in the information recording unit reaches the threshold number N stored in the threshold storage unit. max An interrupt is triggered at that time.
13. A memory controller, characterized in that, include: Damaged page identification device and error correction module; The damaged page identification device includes a page address recording module and an interrupt management module; The page address recording module includes a recording control unit and M information recording units, where M is a positive integer greater than or equal to 5; The interrupt management module includes a threshold storage unit and an interrupt control unit; The error correction module is used to correct correctable errors and send the corrected correctable error information to the page address recording module. in, Each of the information recording units is used to record the page address and the number N of correctable errors generated by a page address. The page address is used to locate the memory page where the correctable error was generated, and N is a positive integer greater than or equal to 1. The recording control unit is used to control the M information recording units so that the M information recording units record the M page addresses with the most correctable errors; The threshold storage unit is used to store the threshold N of the number of correctable errors that trigger an interrupt. max ; The interrupt control unit is configured to record a number N of correctable errors in one of the information recording units until the number threshold N is reached. max An interrupt is triggered at that time.
14. A storage system, characterized in that, include: The memory controller of claim 13, and the memory; the memory includes a plurality of memory pages, the error correction module of the memory controller is used to correct correctable errors generated by the memory pages, and the damaged page identification device of the memory controller is used to identify damaged pages among the plurality of memory pages based on the corrected correctable error related information.
15. The storage system according to claim 14, characterized in that, Also includes: The damage repair module is used to repair the memory page located by the page address recorded by the interrupt information recording unit after the interrupt control unit triggers an interrupt.