A UNC problem positioning method and device and a medium thereof
By obtaining the physical block address of NAND flash memory and scanning the threshold voltage to generate a distribution map, the problem of low efficiency in locating UNC problems in existing technologies is solved, enabling fast and accurate identification of fault causes and supporting the development and production of solid-state drives.
Patent Information
- Application Number
- CN202310135551.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-16
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-02-16
AI Technical Summary
Existing technologies are inefficient and difficult to quickly determine the cause of failure when dealing with NAND flash memory UNC issues. Conventional methods require checking hardware and software configurations one by one, resulting in reactive handling.
By obtaining the physical block address of the NAND flash memory, scanning the threshold voltage and generating a threshold voltage distribution map, and using the voltage distribution map to reflect the read and write status, the cause of UNC problems can be quickly located.
It improves the efficiency of UNC problem localization, enabling rapid identification and resolution of NAND flash memory anomalies, and guiding the development and production of actual solid-state drives.
Smart Images

Figure CN116189750B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of storage technology, and in particular to a method, apparatus and medium for locating UNC problems. Background Technology
[0002] NAND flash memory (a type of flash memory) serves as the storage medium in solid-state drives (SSDs), offering advantages such as large capacity and low price. However, its unique characteristics, such as bit flipping and read / write disturbances, present challenges in its use. Effective use of NAND flash memory requires robust algorithmic support, especially during the development and debugging phase of Fireworks (FW). Improper handling of certain algorithms or NAND flash memory characteristics can lead to unchecked parity errors (UNC). Quickly identifying and addressing the root causes of these UNC problems is crucial.
[0003] Currently, the general approach to handling UNC issues during development is to check the stability of the hardware power supply voltage, whether the power consumption exceeds the limit, and whether there are any errors in the initialization and timing configuration of the NAND flash memory in the software. When these aspects are all checked and there are no problems or no clues, the handling of UNC issues often reaches a stalemate and becomes rather passive.
[0004] Therefore, those skilled in the art urgently need a method for locating UNC problems, providing another way to determine the cause when a UNC problem occurs. Summary of the Invention
[0005] The purpose of this application is to provide a method, apparatus and medium for locating UNC problems, and to provide another method for determining the cause of a UNC problem when it occurs.
[0006] To address the aforementioned technical problems, this application provides a UNC problem localization method, comprising:
[0007] Obtain the physical block address where the UNC issue occurred;
[0008] Scan threshold voltage based on physical block address;
[0009] The corresponding threshold voltage distribution map is determined based on the scanning results.
[0010] Preferably, scanning the threshold voltage based on the physical block address includes:
[0011] Send a scan command with the physical block address to the solid-state drive (SSD) so that the SSD can scan the threshold voltage of the corresponding physical block address and return the scan results.
[0012] Preferably, the scanning command also includes: particle type;
[0013] Correspondingly, the scan results include:
[0014] Voltage axis data corresponding to particle type;
[0015] The voltage axis data includes page data of the solid-state drive with the voltage value corresponding to the current voltage axis as the midpoint and a preset step size, which is scanned within a preset voltage offset range; different types of flash memory correspond to different numbers of voltage axes.
[0016] Preferably, determining the corresponding threshold voltage distribution map based on the scanning results includes:
[0017] Count the number of 1s or 0s in each voltage axis data and each page data to determine the threshold voltage distribution map corresponding to each voltage axis.
[0018] Preferably, determining the threshold voltage distribution map corresponding to each voltage axis includes:
[0019] Based on the scanning order of each Page data, the increment of each Page data relative to the Page data obtained in the previous scan (either 1 or 0) is determined, thereby determining the threshold voltage distribution map corresponding to each voltage axis.
[0020] Preferred options also include:
[0021] The threshold voltage distribution map is sent to the display device for display.
[0022] Preferred options also include:
[0023] Store the scan results.
[0024] To address the aforementioned technical problems, this application also provides a UNC problem location device, comprising:
[0025] The address acquisition module is used to obtain the physical block address where the UNC problem occurs.
[0026] The voltage scanning module is used to scan the threshold voltage based on the physical block address;
[0027] The distribution map determination module is used to determine the corresponding threshold voltage distribution map based on the scanning results.
[0028] Preferably, the above-mentioned UNC problem location device further includes:
[0029] The display sending module is used to send the threshold voltage distribution map to the display device for display.
[0030] The results storage module is used to store the scan results.
[0031] To address the aforementioned technical problems, this application also provides a UNC problem location device, comprising:
[0032] Memory, used to store computer programs;
[0033] A processor is used to execute computer programs to implement the steps of the UNC problem localization method described above.
[0034] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the UNC problem localization method described above.
[0035] This application provides a method for locating UNC (Unknown Number of Charge) problems. By obtaining the physical block address of the NAND flash memory where the UNC problem occurs, a scan of the threshold voltage of the NAND flash memory can be performed. Since data is stored in the form of charge in NAND flash memory, the writing process of data to the NAND flash memory will cause corresponding voltage changes. Therefore, the threshold voltage distribution obtained by the scan... Figure 1 To a certain extent, the threshold voltage distribution can reflect the read / write status of NAND flash memory, thus aiding in determining whether UNC (Unseen Content) problems occur and analyzing their causes. Specifically, UNC problems caused by read / write interference and those caused by timing issues or abnormalities in the NAND data transmission link have different threshold voltage distributions, which can be determined using a threshold voltage distribution map. Therefore, once the threshold voltage distribution map of the NAND flash memory is obtained using the above method, it can be used to guide relevant personnel in determining whether NAND flash memory is abnormal and the cause of the abnormality. This provides an alternative UNC problem localization method, distinct from existing methods that use elimination to check all possible causes of NAND flash memory failures, and it is more efficient in locating UNC problems.
[0036] The UNC problem location device and computer-readable storage medium provided in this application correspond to the above-described method and have the same effect. Attached Figure Description
[0037] To more clearly illustrate the embodiments of this application, the accompanying 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.
[0038] Figure 1 A flowchart of a UNC problem localization method provided by the present invention;
[0039] Figure 2The threshold voltage distribution diagram for SLC NAND flash memory chips;
[0040] Figure 3 The threshold voltage distribution diagram is for NAND flash memory chips of type MLC.
[0041] Figure 4 The threshold voltage distribution diagram for TLC NAND flash memory chips;
[0042] Figure 5 A flowchart of a threshold voltage scanning method provided by the present invention;
[0043] Figure 6 This invention provides a threshold voltage distribution diagram corresponding to voltage axis 1;
[0044] Figure 7 This invention provides a threshold voltage distribution diagram corresponding to voltage axis 2;
[0045] Figure 8 This invention provides a structural diagram of a UNC problem location device.
[0046] Figure 9 This is a structural diagram of another UNC problem location device provided by the present invention. Detailed Implementation
[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0048] The core of this application is to provide a method, apparatus and medium for locating UNC problems.
[0049] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0050] In current solid-state drive (SSD) production, selecting the appropriate storage medium is a key factor determining SSD performance. NAND flash memory is widely used in SSDs due to its advantages such as large capacity, fast write speed, and low price. However, if some unique characteristics of NAND flash memory, such as bit flipping and read / write disturbances, are not properly handled, UNC (Unique Non-Compatible) issues may arise.
[0051] Currently, when UNC issues occur during development, the common approach is to systematically investigate various possible causes, such as: whether the hardware power supply voltage is stable, whether power consumption is exceeding limits, and whether there are errors in software initialization and timing configuration of the NAND flash memory. This method of locating the cause of the UNC issue by investigating all possible causes is relatively inefficient, and it can easily lead to helplessness when none of the above possible causes are found, which is detrimental to the development of actual solid-state drives.
[0052] To address the aforementioned issues, this application provides a UNC problem localization method, such as... Figure 1 As shown, it includes:
[0053] S11: Obtain the physical block address where the UNC problem occurred.
[0054] UNC is a common error type in hard drive testing. Hard drive testing will return the Physical Block Address (PBA) of the NAND flash memory that has a UNC problem, so as to locate the hardware device with the UNC problem.
[0055] It should be noted that the NAND flash memory for threshold voltage scanning is not limited to NAND flash memory that has been identified as having UNC problems. Threshold voltage distribution maps can also be determined for any NAND flash memory through physical block addresses to determine whether it has UNC problems.
[0056] S12: Scan threshold voltage based on physical block address.
[0057] S13: Determine the corresponding threshold voltage distribution map based on the scanning results.
[0058] It should be noted that this application does not limit the specific form of the device or equipment for implementing the above-mentioned UNC problem location method, and it can be implemented by a device with certain data processing capabilities, such as a personal computer (PC).
[0059] The internal storage structure of NAND flash memory is based on metal-oxide-semiconductor field-effect transistors (MOSFETs). Unlike ordinary field-effect transistors, the MOSFETs used in NAND flash memory have a floating gate between the gate (control gate) and the drain / source, which is used to store data.
[0060] Due to this structural characteristic, NAND flash memory stores data in the form of electrical charge, and the amount of charge stored depends on the voltage applied to the gate. Therefore, writing data to NAND flash memory requires applying a corresponding write voltage, and similarly, reading data requires applying a read voltage to the gate. Thus, for NAND flash memory, both reading and writing involve voltage changes (i.e., changes in the threshold voltage). In summary, the threshold voltage distribution of NAND flash memory can, to some extent, reflect the read / write behavior of NAND flash memory.
[0061] To further illustrate the principle of reflecting the read / write status of NAND flash memory through the distribution of threshold voltage, the relationship between threshold voltage and the data stored in NAND flash memory is explained below:
[0062] NAND flash memory can be divided into different types based on the type of chips. Common chip types include: Single-Level Cell (SLC), Multi-Level Cell (MLC), and Trinary-Level Cell (TLC).
[0063] Different types of memory cells can store different numbers of bits of data. For example, SLC can store 1 bit of data (i.e., binary data 0 or 1), MLC can store 2 bits of data (i.e., 00, 01, 10 and 11), and TLC can store 3 bits of data (i.e., 000, 001, 010, 011, 100, 101, 110 and 111).
[0064] Correspondingly, SLC corresponds to one voltage axis (V1), and the correspondence between the threshold voltage distribution and the data is as follows: Figure 2 As shown, when the threshold voltage is greater than the voltage axis (i.e., on the right side of the voltage axis), the corresponding data is "1"; when the threshold voltage is less than the voltage axis (i.e., on the left side of the voltage axis), the corresponding data is "0".
[0065] Similarly, MLC corresponds to three voltage axes (V1, V2, and V3), such as Figure 3 As shown, the three voltage axes divide the voltage into four voltage ranges, each corresponding to a different 2-bit data.
[0066] TLC corresponds to 7 voltage axes (V1, V2, V3, V4, V5, V6, and V7), such as Figure 4 As shown, the 7 voltage axes divide the voltage into 8 voltage ranges, each of which corresponds to a different 3-bit data.
[0067] Based on the above principles, this application provides a method for guiding maintenance personnel to locate the cause of UNC problems by detecting the threshold voltage distribution corresponding to the physical block address where the UNC problem occurs.
[0068] Furthermore, for scanning the threshold voltage through the physical block address, this embodiment provides a specific implementation scheme, and step S12 is specifically as follows:
[0069] S12: Send a scan command with the physical block address to the solid-state drive so that the solid-state drive can scan the threshold voltage of the corresponding physical block address and return the scan result.
[0070] When locating UNC issues in a solid-state drive (SSD), debugging is required. The SSD's serial port can be used as a debugging interface to send debugging commands. Therefore, the corresponding scanning interface needs to be added to the SSD's firmware. After receiving the scan command (e.g., pba_vth_scan), the SSD firmware executes a threshold voltage scan process.
[0071] As mentioned above, the scan command should include the physical block address where the UNC problem occurred, so that the SSD firmware can locate the NAND flash memory that needs to be scanned for the threshold voltage. Furthermore, since NAND flash memory has different chip types, and different chip types correspond to different numbers of voltage axes, the scan command should also include the NAND flash memory chip type.
[0072] Therefore, the scan results should also be voltage axis data corresponding to the particle type. Since different particle types correspond to different numbers of voltage axes, the number of voltage axis data points corresponding to different particle types will also be different.
[0073] For the process of scanning threshold voltage for solid-state drives, such as Figure 5 As shown, one possible specific implementation scheme is as follows:
[0074] S21: Parse the received scan command and save the physical block address and particle type.
[0075] In one possible implementation, the scan command is sent by the PC controlled by the operations and maintenance personnel, and the corresponding NAND flash memory chip type is also set by the operations and maintenance personnel. If the PC or solid-state drive has the function of scanning NAND flash memory chip type, or if it stores NAND flash memory chip type information, it can also be determined by the PC or solid-state drive itself, without the need for operations and maintenance personnel to set it. The NAND flash memory chip type can also be distinguished by variables; for example, 0 represents SLC, 1 represents MLC, and 2 represents TLC.
[0076] Therefore, a complete implementation of a scanning command is as follows:
[0077] pba_vth_scan<unc_addr><nand_type> ;
[0078] Here, unc_addr is the physical block address that needs to be scanned, and nand_type is the type of NAND flash memory chip.
[0079] S22: Determine the number of voltage axes to be scanned based on the particle type.
[0080] As described in the above embodiments, the number of voltage axes VrefNum is: 1 voltage axis for SLC, 3 voltage axes for MLC, and 7 voltage axes for TLC.
[0081] S23: Scan each voltage axis sequentially to obtain voltage axis data.
[0082] Step S23 is implemented by the solid-state drive firmware, and its specific process in conjunction with the example is as follows:
[0083] S231: Set the voltage axis counter variable ref_idx to 0.
[0084] That is, the scan starts from the first voltage axis.
[0085] S232: Set the voltage axis variable vt_value according to the preset voltage offset range and scan step size, and scan the voltage axis determined by the voltage axis counter variable ref_idx.
[0086] In one possible implementation, the voltage offset range is ±64, and the scan step size is 2. Therefore, the scan is performed within the voltage axis range of ±64, with a step size of 2. Correspondingly, the voltage axis variable vt_value is initially set to -64. Each scan increments the variable value by the scan step size (+2), until the value of the voltage axis variable vt_value exceeds +64, completing one voltage axis scan.
[0087] During the scanning of the voltage axis, data is acquired through the read command of the NAND flash memory, that is, the page data corresponding to the voltage axis is read and saved to the double data rate synchronous dynamic random access memory (DDR).
[0088] NAND flash memory reads data in units of pages. For example, if the page size of a certain model of NAND flash memory is 18Kbytes, then the number of 1s in the page + the number of 0s = 18 * 1024 * 8.
[0089] S233: Increment the value of the voltage axis counter variable ref_idx by one, return to step S232, and continue until the voltage axis counter variable ref_idx equals the number of voltage axes VrefNum, then proceed to step S24.
[0090] That is, ref_idx = ref_idx + 1, which indicates that the next voltage axis scan is performed. Repeat step S232 until all voltage axes corresponding to the particle type have been scanned, and then proceed to step S234.
[0091] S24: Return the Page data of each voltage axis as the scan result.
[0092] It is easy to understand that the scan result of step S24 should be returned to the device that implements the above-mentioned UNC problem localization method. For example, if the maintenance personnel implement the above-mentioned UNC problem localization method through a PC, the scan result of step S24 should be returned to the PC side.
[0093] It should be noted that the above scanning process can be implemented by the firmware of the solid-state drive. Correspondingly, the variables and data involved in the scanning process should also be stored in the memory of the solid-state drive firmware or other storage media, such as DDR.
[0094] After obtaining the voltage axis data corresponding to the UNC problem on the PC side as described in the above embodiment, as in step S13, the data needs to be further processed to generate a threshold voltage distribution map that is easy for maintenance personnel to view. Given that the voltage axis data has already been obtained, this embodiment is not limited to the above-described method of processing the voltage axis data into a threshold voltage distribution map, but provides a preferred implementation scheme. Step S13 specifically includes:
[0095] S13: Count the number of 1s or 0s in each voltage axis data and each page data to determine the threshold voltage distribution map corresponding to each voltage axis.
[0096] Depend on Figure 2 , 3 As shown in section 4, for NAND flash memory of different particle types, the relative relationship between its threshold voltage and each voltage axis can be represented as binary data. Therefore, after obtaining the Page data, it can also be converted into the distribution of the threshold voltage with respect to each voltage axis.
[0097] As mentioned above, a Page is the unit for reading data from NAND flash memory. In the example above, when the Page size is 18Kbytes, the number of 1s in the Page + the number of 0s = 18 * 1024 * 8. That is, the sum of the number of 1s and the number of 0s in the Page is fixed. Therefore, knowing the number of 1s means knowing the number of 0s. Thus, in step S13 above, it is only necessary to count the number of 1s or 0s.
[0098] Specifically, this embodiment provides a possible method for determining the threshold voltage distribution map, including:
[0099] Based on the scanning order of each Page data, the increment of each Page data relative to the Page data obtained in the previous scan (either 1 or 0) is determined, thereby determining the threshold voltage distribution map corresponding to each voltage axis.
[0100] Furthermore, as in the example above, the increment of 0 (or 1) in the Page data corresponding to each scan step movement of the voltage axis variable vt_value can be determined by the following formula:
[0101] Δ0=zero(vt_value)-zero(vt_value+Vstep)
[0102] Where Δ0 represents the increment of 0, zero() represents the number of 0s in the corresponding Page data, vt_value is the voltage axis variable, and Vstep is the scan step size.
[0103] Furthermore, this results in an incremental array DataArray containing zeros:
[0104] DataArray=[[-62,abs(Δ0((vt_value-64)-(vt_value-62)))],
[0105] [-60,abs(Δ0((vt_value-62)-(vt_value-60)))],
[0106] [-58,abs(Δ0((vt_value-60)-(vt_value-58)))],
[0107] ...
[0108] [60,abs(Δ0((vt_value 60)-(vt_value 62)))],
[0109] [62,abs(Δ0((vt_value 62)-(vt_value 64)))], ]
[0111] Here, abs() represents the absolute value.
[0112] After obtaining the incremental array about 0, a threshold voltage distribution map of the NAND flash memory is plotted with the voltage axis variable as the X-axis and the aforementioned incremental array about 0 as the Y-axis. One possible threshold voltage distribution map is as follows: Figure 6As shown, the dashed line perpendicular to the X-axis in the center is the voltage axis.
[0113] It should be noted that, Figure 6 This is only a threshold voltage distribution map corresponding to one voltage axis (V1). If the NAND flash memory chip type is MLC or TLC, there should be more threshold voltage distribution maps corresponding to other voltage axes. For example, if the NAND flash memory chip type is MLC or TLC, one possible threshold voltage distribution map corresponding to the second voltage axis (V2) is as follows: Figure 7 As shown. The threshold voltage distribution diagrams for other voltage axes are determined in the same way, using the method described above, so they will not be elaborated upon here.
[0114] Furthermore, after obtaining the threshold voltage distribution map of NAND flash memory, the presence of UNC problems and the cause of UNC problems can be determined by the waveform status on both sides of the voltage axis.
[0115] In general, in the threshold voltage distribution diagram of NAND flash memory without UNC issues, the waveforms on both sides of the voltage axis should be symmetrical according to the voltage axis; when UNC issues occur... Figure 6 If the voltage axis shows a high peak on one side and a low peak on the other, the cause of the fault can be considered from the perspective of the NAND flash memory data transmission link and timing configuration; when similar... Figure 7 When considering the image shown, the cause of the fault can be considered from the perspective of the unique characteristics of NAND flash memory, such as read disturbance.
[0116] Since the sum of the number of 0s and 1s in the Page data is constant, when the threshold voltage distribution map of the NAND flash memory is determined in increments of 1, the method for determining whether the NAND flash memory has an UNC problem and the cause of the abnormality is the same as described above, and will not be repeated here.
[0117] As described above, the UNC problem localization method provided in this application utilizes the structural characteristics of NAND flash memory for data storage. Based on the fact that NAND flash memory experiences threshold voltage changes during data read / write operations, the method collects threshold voltage data to determine the corresponding threshold voltage distribution map, reflecting the current operating status of the NAND flash memory. This provides guidance for identifying whether a UNC problem has occurred in the NAND flash memory and pinpointing the cause of the UNC problem. Maintenance personnel no longer need to eliminate numerous possible causes of UNC problems one by one; they can quickly determine the possible causes of UNC problems through the threshold voltage distribution map, enabling rapid diagnosis and resolution of UNC problems in NAND flash memory. This is more beneficial for the production and development of actual solid-state drives.
[0118] Furthermore, in another possible embodiment, after determining the threshold voltage distribution map of the NAND flash memory using the above method, to facilitate maintenance personnel in viewing and determining whether the NAND flash memory has UNC issues and identifying the cause of the anomaly, this embodiment also provides a preferred implementation scheme, in which the above method further includes:
[0119] S14: Send the threshold voltage distribution map to the display device for display.
[0120] As in the example above, the hardware device for implementing the UNC problem localization method is the PC of the maintenance personnel. The display device is the monitor connected to the PC. The threshold voltage distribution map is displayed through the PC's monitor to guide the maintenance personnel in troubleshooting UNC problems in NAND flash memory.
[0121] It should also be noted that the above-mentioned display device for displaying the threshold voltage distribution diagram using a PC-connected monitor is only a preferred embodiment and does not limit this embodiment. In fact, the above-mentioned display device can also be installed on a large display screen in the operation and maintenance management room, or a monitoring platform for monitoring the entire solid-state drive production process, etc., which are devices or systems with display functions. Operation and maintenance personnel can select a suitable display device to display the threshold voltage distribution diagram according to actual needs.
[0122] In another possible embodiment, in the actual production and development of solid-state drives, the UNC (Unknown Number) problem in NAND flash memory is recurring. Historical data on NAND flash memory UNC problems is also helpful for subsequent UNC problem investigation and for verifying the accuracy of the UNC problem localization method in determining the cause of the UNC problem. Therefore, based on the above embodiments, this embodiment also provides a preferred implementation scheme, in which the method further includes:
[0123] S15: Store the scan results.
[0124] The storage scan results are the Page data obtained by performing a threshold voltage scan on the obtained physical block addresses. In the above embodiment of the UNC problem localization method, the acquired Page data is processed and ultimately presented to maintenance personnel in the form of a threshold voltage distribution map, which facilitates the maintenance personnel to intuitively and quickly determine the UNC problem and its cause. However, the raw data that best reflects the working status of the NAND flash memory is still the scanned Page data. Therefore, this embodiment stores the raw data for subsequent determination and re-examination of the cause of the UNC problem, or to provide data support for verifying the accuracy of the above UNC problem localization method.
[0125] Furthermore, in addition to storing the Page data in the scan results, the determined threshold voltage distribution map can also be stored. When storing data, it can be classified and stored according to the corresponding NAND flash memory (or physical block address). On a larger scale, it can also be distinguished according to the different solid-state drives to classify the stored historical data, so that maintenance personnel can quickly find the required historical data when calling it.
[0126] The preferred embodiment provided in this case sends the determined threshold voltage distribution map to a display device for display, allowing maintenance personnel to intuitively view the NAND flash memory's operating status. This facilitates the determination of whether the NAND flash memory has an UNC (Unseen Compatibility) problem and the cause of the UNC problem, thus simplifying maintenance work. Furthermore, in another embodiment, the raw scan data obtained during the threshold voltage scan is saved. This data supports subsequent analysis of other similar UNC problems or assessment of the accuracy of UNC problem localization, better ensuring the rapid troubleshooting and resolution of UNC problems in NAND flash memory of solid-state drives (SSDs), which is beneficial for SSD production and development.
[0127] The above embodiments have described a UNC problem localization method in detail. This application also provides an embodiment of a UNC problem localization device. It should be noted that this application describes the device embodiment from two perspectives: one based on functional modules and the other based on hardware.
[0128] From the perspective of functional modules, such as Figure 8 As shown, this embodiment provides a UNC problem location device, including:
[0129] Address acquisition module 31 is used to obtain the physical block address where the UNC problem occurs;
[0130] Voltage scanning module 32 is used to scan threshold voltages based on physical block addresses;
[0131] The distribution map determination module 33 is used to determine the corresponding threshold voltage distribution map based on the scanning results.
[0132] Preferably, the above-mentioned UNC problem location device further includes:
[0133] The display sending module is used to send the threshold voltage distribution map to the display device for display.
[0134] The results storage module is used to store the scan results.
[0135] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.
[0136] This embodiment provides a UNC problem localization device. An address acquisition module obtains the physical block address of the NAND flash memory in the solid-state drive (SSD) where UNC values appear. This allows a voltage scanning module to perform a threshold voltage scan on the NAND flash memory. Finally, a distribution map determination module processes the scan results obtained by the voltage scanning module to generate a corresponding threshold voltage distribution map, visually reflecting the read / write status of the NAND flash memory. This provides guidance for maintenance personnel to determine whether the NAND flash memory has a UNC problem and the cause of the anomaly. Furthermore, since the threshold voltage distribution varies depending on the cause, the actual threshold voltage distribution map of the NAND flash memory can quickly narrow down the possible causes of UNC problems. Compared to the current approach of checking and eliminating possibilities one by one, this significantly improves the efficiency of determining the cause of UNC anomalies, is more conducive to practical implementation, and avoids being helpless when the expected results are not obtained after checking several possible causes. This better meets the actual needs of SSD production and development.
[0137] Figure 9 A structural diagram of a UNC problem location device provided in another embodiment of this application is shown below. Figure 9 As shown, a UNC problem location device includes: a memory 40 for storing computer programs;
[0138] The processor 41 is used to implement the steps of a UNC problem localization method as described in the above embodiment when executing a computer program.
[0139] The UNC problem location device provided in this embodiment can include, but is not limited to, smartphones, tablets, laptops, or desktop computers.
[0140] The processor 41 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 41 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 41 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 41 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 41 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.
[0141] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 40 is used to store at least the following computer program 401, which, after being loaded and executed by the processor 41, is capable of implementing the relevant steps of a UNC problem localization method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, and the storage method may be temporary or permanent storage. The operating system 402 may include Windows, Unix, Linux, etc. The data 403 may include, but is not limited to, a UNC problem localization method.
[0142] In some embodiments, a UNC problem location device may further include a display screen 42, an input / output interface 43, a communication interface 44, a power supply 45, and a communication bus 46.
[0143] Those skilled in the art will understand that Figure 9 The structure shown does not constitute a limitation on a UNC problem location device and may include more or fewer components than shown.
[0144] This application provides a UNC problem localization device, which includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a UNC problem localization method.
[0145] This embodiment provides a UNC problem localization device. Through a processor executing a computer program stored in memory, it scans the threshold voltage of the NAND flash memory to be inspected based on physical block addresses, thereby determining the threshold voltage distribution and generating a corresponding threshold voltage distribution map. Utilizing the structural characteristics of NAND flash memory for data storage, this device allows maintenance personnel to quickly and intuitively determine whether a UNC problem has occurred in the NAND flash memory and the cause of the problem, based on the threshold voltage distribution map reflecting the NAND flash memory's read / write activity. This provides guidance for maintenance personnel, eliminating the need to systematically eliminate numerous possible causes of UNC problems. The threshold voltage distribution map allows for rapid identification of potential UNC issues, enabling quick diagnosis and resolution of UNC problems in NAND flash memory, which is more beneficial for the production and development of actual solid-state drives.
[0146] Finally, this application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiments.
[0147] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0148] This embodiment provides a computer-readable storage medium that, when a computer program stored therein is executed, can scan the threshold voltage of the NAND flash memory to be checked through physical block addresses, thereby determining its threshold voltage distribution and generating a corresponding threshold voltage distribution map. Utilizing the structural characteristics of NAND flash memory for data storage, this allows maintenance personnel to quickly and intuitively determine whether the NAND flash memory has an Unknown Cause of Confusion (UNC) problem and the cause of the UNC problem based on the threshold voltage distribution map reflecting the NAND flash memory's read / write activity. This provides guidance for maintenance personnel, eliminating the need to systematically eliminate numerous possible causes of UNC problems. The threshold voltage distribution map allows for rapid identification of potential UNC problems, enabling quick diagnosis and resolution of UNC issues in NAND flash memory, which is more beneficial for the production and development of actual solid-state drives.
[0149] The foregoing has provided a detailed description of a UNC problem localization method, apparatus, and medium provided in this application. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0150] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only 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. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for locating UNC problems, characterized in that, include: Obtain the physical block address where the UNC issue occurred; Send a scan command with the physical block address to the solid-state drive so that the solid-state drive can scan the threshold voltage of the corresponding physical block address and return the scan result; Determine the corresponding threshold voltage distribution map based on the scanning results; The threshold voltage distribution map is used to locate the cause of the UNC problem. When the waveforms on both sides of the voltage axis in the threshold voltage distribution diagram are symmetrical according to the voltage axis, no UNC problem occurs; When the threshold voltage distribution diagram shows a situation where the waveform peak is high on one side of the voltage axis and low on the other side, the cause of the UNC problem can be considered from the perspective of abnormal data transmission link or timing configuration of NAND flash memory. When the valley between the waveforms on both sides of the voltage axis in the threshold voltage distribution diagram deviates from the voltage axis towards the high voltage side, the cause of the UNC problem can be considered from the perspective of read interference of NAND flash memory.
2. The UNC problem localization method according to claim 1, characterized in that, The scanning command also includes: particle type; Correspondingly, the scan results include: Voltage axis data corresponding to particle type; The voltage axis data includes the page data of the solid-state drive scanning within a preset voltage offset range with the voltage value corresponding to the current voltage axis as the midpoint and a preset step size; different types of the particle correspond to different numbers of voltage axes.
3. The UNC problem localization method according to claim 2, characterized in that, The step of determining the corresponding threshold voltage distribution map based on the scanning results includes: The number of 1s or 0s in each voltage axis data and each page data is counted to determine the threshold voltage distribution map corresponding to each voltage axis.
4. The UNC problem localization method according to claim 3, characterized in that, Determining the threshold voltage distribution map corresponding to each voltage axis includes: Based on the scanning order of each Page data, the increment of each Page data relative to the Page data obtained in the previous scan (either 1 or 0) is determined, thereby determining the threshold voltage distribution map corresponding to each voltage axis.
5. The UNC problem localization method according to any one of claims 1 to 4, characterized in that, Also includes: The threshold voltage distribution map is sent to a display device for display.
6. The UNC problem localization method according to any one of claims 1 to 4, characterized in that, Also includes: Store the scan results.
7. A UNC problem location device, characterized in that, include: The address acquisition module is used to obtain the physical block address where the UNC problem occurs. The voltage scanning module is used to send a scan command with the physical block address to the solid-state drive, so that the solid-state drive can scan the threshold voltage of the corresponding physical block address and return the scan result; The distribution map determination module is used to determine the corresponding threshold voltage distribution map based on the scanning results; The threshold voltage distribution map is used to locate the cause of the UNC problem. When the waveforms on both sides of the voltage axis in the threshold voltage distribution diagram are symmetrical according to the voltage axis, no UNC problem occurs; When the threshold voltage distribution diagram shows a situation where the waveform peak is high on one side of the voltage axis and low on the other side, the cause of the UNC problem can be considered from the perspective of abnormal data transmission link or timing configuration of NAND flash memory. When the valley between the waveforms on both sides of the voltage axis in the threshold voltage distribution diagram deviates from the voltage axis towards the high voltage side, the cause of the UNC problem can be considered from the perspective of read interference of NAND flash memory.
8. A UNC problem location device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the UNC problem localization method as described in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the UNC problem localization method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for measuring threshold voltage distribution in NAND flash memory, and storage medium
CN111899784A
NAND test analysis method and device based on solid state disk and computer equipment
CN113744797A
