Storage devices with wide operating temperature range

By adjusting the read operation parameters in the storage device according to the ambient temperature, the bit error rate problem in the read and write operations of the NVM chip under a wide temperature range is solved, and the stable operation of the storage device in a high-temperature environment is achieved.

CN110297596BActive Publication Date: 2024-09-03MEMBLAZE TECH BEIJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810236824.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-03-21
Publication Date
2024-09-03
Estimated Expiration
2038-03-21

AI Technical Summary

Technical Problem

Under a wide operating temperature range, the read and write operations of NVM chips lead to an increase in bit error rates, and existing technology is difficult to effectively cope with the impact of ambient temperature changes on storage devices.

Method used

By issuing a first read command according to the host's read access command, receiving and verifying the data, if there is an uncorrectable error, determining the appropriate read operation parameters, and issuing a second read command to obtain the error-corrected data, using large blocks of Page striping recovers data and adjusts read operation parameters based on ambient temperature and storage unit metadata to optimize the read process.

Benefits of technology

The storage device's adaptability to environmental temperature changes is improved, allowing it to operate normally in a wide temperature range and reducing the bit error rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110297596B
    Figure CN110297596B
Patent Text Reader

Abstract

The present application provides a storage device with a wide operating temperature range. The method for processing a read command by the storage device includes: issuing a first read command to a non-volatile memory according to a read access command of a host; receiving first data read out according to the first read command; if there is an uncorrectable error in the first data, determining a read operation parameter; issuing a second read command to the non-volatile memory, the second read command depends on the read operation parameter, and the second read command accesses the same physical address as the first read command; receiving second data read out according to the second read command as a read result of the read access command.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a storage device, and more particularly to a storage device with a wide operating temperature range. Background Art

[0002] Figure 1 The block diagram of the solid-state storage device is shown. The solid-state storage device 102 is coupled to the host to provide storage capacity for the host. The host and the solid-state storage device 102 can be coupled in a variety of ways, including but not limited to connecting the host and the solid-state storage device 102 through, for example, SATA (Serial Advanced Technology Attachment), SCSI (Small Computer System Interface), SAS (Serial Attached SCSI), IDE (Integrated Drive Electronics), USB (Universal Serial Bus), PCIE (Peripheral Component Interconnect Express, PCIe), NVMe (NVM Express), Ethernet, Fiber Channel, wireless communication network, etc. The host can be an information processing device that can communicate with the storage device in the above manner, such as a personal computer, a tablet computer, a server, a portable computer, a network switch, a router, a cellular phone, a personal digital assistant, etc. The storage device 102 includes an interface 103 , a control component 104 , one or more NVM chips 105 , and a DRAM (Dynamic Random Access Memory) 110 .

[0003] NAND flash memory, phase change memory, FeRAM (Ferroelectric RAM), MRAM (Magnetic Random Access Memory), RRAM (Resistive Random Access Memory), etc. are common NVMs.

[0004] The interface 103 may be adapted to exchange data with the host via, for example, SATA, IDE, USB, PCIE, NVMe, SAS, Ethernet, Fibre Channel, etc.

[0005] The control component 104 is used to control data transmission between the interface 103, the NVM chip 105 and the DRAM 110, and is also used for storage management, mapping of host logical addresses to flash physical addresses, erase leveling, bad block management, etc. The control component 104 can be implemented in a variety of ways, such as software, hardware, firmware, or a combination thereof. For example, the control component 104 can be in the form of an FPGA (Field-programmable gate array), an ASIC (Application Specific Integrated Circuit), or a combination thereof. The control component 104 can also include a processor or a controller, in which software is executed to manipulate the hardware of the control component 104 to process IO (Input / Output) commands. The control component 104 can also be coupled to the DRAM 110 and can access the data of the DRAM 110. The data of the FTL table and / or cached IO commands can be stored in the DRAM.

[0006] The control component 104 includes a flash memory interface controller (or medium interface controller, flash memory channel controller), which is coupled to the NVM chip 105 and issues commands to the NVM chip 105 in a manner that complies with the interface protocol of the NVM chip 105 to operate the NVM chip 105, and receives command execution results output from the NVM chip 105. Known NVM chip interface protocols include "Toggle", "ONFI" and the like.

[0007] A memory target is one or more logic units (LUNs) within a NAND flash package that share a CE (Chip Enable) signal. A NAND flash package may include one or more dies. Typically, a logic unit corresponds to a single die. A logic unit may include multiple planes. Multiple planes within a logic unit can be accessed in parallel, and multiple logic units within a NAND flash chip can execute commands and report status independently of each other.

[0008] Data is usually stored and read on a storage medium in pages. Data is erased in blocks. A block (also called a physical block) contains multiple pages. A page on a storage medium (called a physical page) has a fixed size, such as 17664 bytes. A physical page can also have other sizes.

[0009] In a solid-state storage device, the FTL (Flash Translation Layer) is used to maintain the mapping information from the logical address to the physical address. The logical address constitutes the storage space of the solid-state storage device perceived by the upper-layer software such as the operating system. The physical address is the address used to access the physical storage unit of the solid-state storage device. In the related art, the address mapping can also be implemented using the intermediate address form. For example, the logical address is mapped to the intermediate address, and then the intermediate address is further mapped to the physical address.

[0010] The table structure that stores the mapping information from logical addresses to physical addresses is called an FTL table. The FTL table is an important metadata in a solid-state storage device. Usually, the data items of the FTL table record the address mapping relationship in units of data pages in the solid-state storage device.

[0011] The solid-state storage device includes multiple NVM chips. Each NVM chip includes one or more dies (DIEs) or logic units (LUNs). The dies or logic units can respond to read and write operations in parallel. Multiple read, write or erase operations on the same die or logic unit are performed sequentially.

[0012] A chunk includes physical blocks from each of multiple logical units (LUNs) (also called logical unit groups). Each logical unit can provide one physical block for the chunk. For example, Figure 2 In the schematic diagram of the block shown, the block is constructed on every 16 logical units (LUNs). Each block includes 16 physical blocks from the 16 logical units (LUNs). Figure 2 In the example of , chunk 0 includes physical chunk 0 from each of the 16 logical units (LUNs), and chunk 1 includes physical chunk 1 from each logical unit (LUN). Chunks may also be structured in a variety of other ways.

[0013] For example, page stripes are constructed in large blocks, and physical pages with the same physical address in each logical unit (LUN) constitute a "page stripe". Figure 2 In , physical pages P0-0, P0-1, ... and P0-x constitute page stripe 0, wherein physical pages P0-0, P0-1, ... and P0-14 are used to store user data, and physical pages P0-x are used to store check data calculated based on all user data in the stripe. Similarly, Figure 2 In the embodiment, physical page P2-0, physical page P2-1, ... and physical page P2-x constitute page stripe 2. The physical page for storing the check data may be located at any position in the page stripe.

[0014] In the Chinese patent application with application number 201710752321.0 (application date August 28, 2017, invention name, garbage collection method and device based on variable-length large blocks), a large block with a variable number of physical blocks is provided, and the full text of the Chinese patent application is incorporated herein by reference.

[0015] Flash memory stores information by maintaining the amount of charge in the storage cell. The amount of charge in the storage cell determines the read voltage of the storage cell. When reading flash memory data, the read voltage of the storage cell is compared with the threshold voltage to identify the information stored in the storage cell. Phase change memory, resistive random access memory, magnetic rotation memory, and DRAM each use storage cells based on different principles to store information.

[0016] Storage media are generally not completely reliable. Since the amount of charge in a storage cell is affected by many factors such as the quality, life, and time of the storage cell, as well as the non-uniformity of the signal transmission path from multiple storage cells to the sensitive amplifier, the data read from the storage cell deviates from the data written, and the original information written to the storage cell cannot be correctly reflected.

[0017] Some means are used in the prior art to prevent or deal with the problem that the read data cannot correctly reflect the written data due to changes in factors such as the amount of charge of the storage unit. For example, in US Pat. No. 9,070,454B1, the threshold voltage (the threshold voltage or decision voltage used when reading data from or writing data to the storage unit) is calculated based on factors such as the number of erases and writes of the storage unit, and the calculated threshold voltage is used to write data to the storage unit. The threshold voltage may include a read threshold for a read operation and a write threshold for a write operation.

[0018] In a flash memory chip, the threshold voltage used in a read operation is selected by indicating different parameters for the read operation. Through read operations with different threshold voltages, the data read from the storage unit will have different results. Some results have a lower bit error rate (Bit Error Ratio, the percentage of error bits to the total number of bits transmitted), while some results have a higher bit error rate. In combination with the use of ECC (Error Correction Code, error correction code) technology, the read results with a lower bit error rate have a higher probability of being corrected by the ECC technology, thereby trying different parameters to cope with errors encountered in the read operation. The parameters can be combined and provided to the flash memory chip in the read operation, or the parameters for the read operation can be set in the flash memory chip, and the flash memory chip uses the set parameters when processing the read operation.

[0019] Temperature has an impact on the read and write operations of the NVM chip. US patent application US2015 / 0092488A1 discloses a solution for selecting corresponding read operation parameters according to the temperature when reading data. Summary of the invention

[0020] Storage devices are used in a variety of working environments, such as the working environment of storage devices used in data centers. The general ambient temperature is between 20 and 80 degrees Celsius, while storage devices used in vehicles, factories, and outdoor environments are subject to wider ambient temperature variations, for example, -40 to 85 degrees Celsius. Under such a wide operating temperature range, due to the influence of temperature on the read and write operations of the NVM chip, a higher bit error rate is generated. Therefore, it is necessary to solve the impact of the high error bit rate of reading data from the NVM chip caused by ambient temperature changes under a wide operating ambient temperature.

[0021] The purpose of the present application is to provide a storage device with a wide operating temperature range to compensate for the impact of temperature changes on the bit error rate of the NVM chip, improve the adaptability of the storage device to ambient temperature changes, and enable the storage device to operate normally within a wide temperature range.

[0022] According to the first aspect of the present application, a first read command processing method according to the first aspect of the present application is provided, comprising the following steps: issuing a first read command to a non-volatile memory according to a read access command of a host; receiving first data read out according to the first read command; if there is an uncorrectable error in the first data, determining a read operation parameter; issuing a second read command to the non-volatile memory, the second read command depending on the read operation parameter, the second read command accessing the same physical address as the first read command; receiving second data read out according to the second read command as a read result of the read access command.

[0023] According to the second aspect of the present application, a first read command processing method according to the second aspect of the present application is provided, comprising the following steps: issuing a first read command to a non-volatile memory according to a read access command of a host; determining a read operation parameter corresponding to a storage unit to which the data to be read indicated in the first read command belongs; and reading the first data from the non-volatile memory using the read operation parameter.

[0024] According to the first read command processing method of the second aspect of the present application, a second read command processing method according to the second aspect of the present application is provided, wherein, if there is an uncorrectable error in the first data, the data is recovered by reading a large block of page stripes.

[0025] According to the first read command processing method of the second aspect of the present application, a third read command processing method according to the third aspect of the present application is provided, wherein, if there is an uncorrectable error in the first data, new read operation parameters are determined, and a second read command is issued to the non-volatile memory, the second read command depends on the new read operation parameters, and the second read command accesses the same physical address as the first read command; and the second data read according to the second read command is received as the read result of the read access command.

[0026] According to the read command processing method of any one of the first to third items of the second aspect of the present application, a fourth read command processing method according to the second aspect of the present application is provided, wherein the read operation parameters are determined based on the ambient temperature when the storage unit to which the data to be read belongs indicated in the first read command is written and / or the current ambient temperature.

[0027] According to the fourth read command processing method according to the second aspect of the present application, a fifth read command processing method according to the second aspect of the present application is provided, wherein the first ambient temperature and the current ambient temperature are respectively the temperatures of the environment in which the storage device is located.

[0028] According to the fourth or fifth read command processing method of the second aspect of the present application, a sixth read command processing method according to the second aspect of the present application is provided, wherein the first ambient temperature is recorded in metadata of the storage unit.

[0029] According to the sixth read command processing method of the second aspect of the present application, a seventh read command processing method according to the second aspect of the present application is provided, which further includes: issuing a third read command to the storage unit to obtain the first ambient temperature.

[0030] According to the sixth or seventh read command processing method of the second aspect of the present application, an eighth read command processing method according to the second aspect of the present application is provided, wherein a copy of the metadata is stored in the memory of the storage device, and the first ambient temperature is read from the memory of the storage device.

[0031] According to the fourth read command processing method of the second aspect of the present application, a ninth read command processing method according to the second aspect of the present application is provided, wherein the current ambient temperature is obtained by accessing a temperature sensor arranged in a storage device, or by obtaining the current ambient temperature through a host coupled to the storage device.

[0032] According to the read command processing method of any one of the fourth to ninth aspects of the second aspect of the present application, a tenth read command processing method according to the second aspect of the present application is provided, wherein the read operation parameters are determined according to the difference between the first ambient temperature and the current ambient temperature.

[0033] According to the tenth read command processing method of the second aspect of the present application, an eleventh read command processing method according to the second aspect of the present application is provided, wherein the read operation parameters are determined by accessing a first lookup table, and the first lookup table records the correspondence between the difference between the first ambient temperature and the current ambient temperature and the read operation parameters.

[0034] According to the read command processing method of any one of the fourth to ninth items of the second aspect of the present application, a twelfth read command processing method according to the second aspect of the present application is provided, wherein multiple second lookup tables of the first ambient temperature are indexed by the current ambient temperature, each second lookup table corresponds to a value or a range of values ​​of the first ambient temperature, and the second lookup table records read operation parameters corresponding to multiple current ambient temperatures.

[0035] According to the read command processing method of any one of the fourth to ninth items of the second aspect of the present application, a thirteenth read command processing method according to the second aspect of the present application is provided, wherein a plurality of third lookup tables of the first ambient temperature are indexed by the difference between the first ambient temperature and the current ambient temperature, each third lookup table corresponds to a value or a range of values ​​of the first ambient temperature, and the third lookup table records read operation parameters corresponding to the plurality of differences between the first ambient temperature and the current ambient temperature.

[0036] According to the read command processing method of any one of the fourth to ninth items of the second aspect of the present application, a fourteenth read command processing method according to the second aspect of the present application is provided, wherein multiple fourth lookup tables of the current ambient temperature are indexed by the first ambient temperature, each fourth lookup table corresponds to a value or value range of the current ambient temperature, and the fourth lookup table records read operation parameters corresponding to the multiple first ambient temperatures.

[0037] According to the read command processing method of any one of the fourth to ninth items of the second aspect of the present application, a fifteenth read command processing method according to the second aspect of the present application is provided, wherein a plurality of fifth lookup tables of the current ambient temperature are indexed by the difference between the first ambient temperature and the current ambient temperature, each fifth lookup table corresponds to a value or a range of values ​​of the current ambient temperature, and the fifth lookup table records read operation parameters corresponding to the plurality of differences between the first ambient temperature and the current ambient temperature.

[0038] According to the read command processing method of any one of items twelfth to fifteenth of the second aspect of the present application, a sixteenth read command processing method according to the second aspect of the present application is provided, wherein multiple lookup table copies of the first ambient temperature or the current ambient temperature are stored in a memory, and the read operation parameters are determined by accessing the memory.

[0039] According to the read command processing method of any one of the fourth to ninth aspects of the second aspect of the present application, a seventeenth read command processing method according to the second aspect of the present application is provided, wherein the read operation parameters are determined based on one or more of the first ambient temperature, the current ambient temperature, the number of times the storage unit where the first data is located is erased, the time the first data is retained on the large block, and the number of times the storage unit has been read since it was last erased.

[0040] According to the read command processing method of any one of the fourth to seventeenth aspects of the second aspect of the present application, there is provided an eighteenth read command processing method according to the second aspect of the present application, wherein a sequence of read operation parameters is obtained according to the first ambient temperature and the current ambient temperature;

[0041] A plurality of third data are read from the non-volatile memory according to the read commands corresponding to the respective read operation parameters in the sequence, and the third data without uncorrectable errors are used as the read results of the read access commands.

[0042] According to the eighteenth read command processing method of the second aspect of the present application, a nineteenth read command processing method according to the second aspect of the present application is provided, which further includes: using the read operation parameters corresponding to the read command that obtained the third data for subsequent read commands.

[0043] According to the read command processing method of any one of the first to third items of the second aspect of the present application, a twentieth read command processing method according to the second aspect of the present application is provided, wherein the read operation parameters are determined according to a read parameter table, and the read parameter table records the correspondence between the storage unit and the read operation parameters or the read operation parameter sequence under the current ambient temperature or the current ambient temperature range of the storage device.

[0044] According to the twentieth read command processing method of the second aspect of the present application, a twenty-first read command processing method according to the second aspect of the present application is provided, wherein the read operation parameters or read operation parameter sequence in the read parameter table are updated based on one or more of the first ambient temperature or the first ambient temperature range when data is written to the storage unit, the current ambient temperature or the current ambient temperature range of the storage device, the number of times the storage unit is erased, the time for which the data stored in the storage unit is saved, and the number of times the storage unit is read.

[0045] According to the twentieth read command processing method of the second aspect of the present application, a twenty-second read command processing method according to the second aspect of the present application is provided, wherein, if the change in the current ambient temperature of the storage device exceeds a threshold, the read parameter table is updated based on the changed current ambient temperature and the first ambient temperature recorded in the metadata of each storage unit.

[0046] According to the read command processing method of any one of items 20 to 22 of the second aspect of the present application, a 23rd read command processing method according to the second aspect of the present application is provided, wherein the read parameter table only records entries corresponding to storage units into which data are written.

[0047] According to the twenty-third read command processing method of the second aspect of the present application, a twenty-fourth read command processing method according to the second aspect of the present application is provided, wherein, in response to a storage unit to which data is written being erased, the record corresponding to the erased storage unit in the read parameter table is deleted.

[0048] According to a third aspect of the present application, a first storage device according to the third aspect of the present application is provided, comprising a control component and a non-volatile memory chip, wherein the control component is used to execute the above-mentioned read command processing method.

[0049] The beneficial effects achieved by this application are as follows:

[0050] According to an embodiment of the present application, the storage device selects the optimal read parameter based on the ambient temperature T1 when data is written to the large block or physical block and the ambient temperature T2 when data is read from the large block or physical block to compensate for the impact of temperature changes on the bit error rate of the NVM chip, thereby improving the storage device's adaptability to ambient temperature changes and allowing the storage device to operate normally over a wide temperature range. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For those skilled in the art, other drawings can also be obtained based on these drawings.

[0052] Figure 1 shows a block diagram of a solid-state storage device;

[0053] Figure 2 It is a schematic diagram of a large block;

[0054] Figure 3 A flowchart of reading data from an NVM chip according to an embodiment of the present application is shown;

[0055] Figure 4 A read parameter table according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0056] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0057] Embodiment 1

[0058] The large blocks in the storage device have multiple states, for example, an idle state, an active state, a written state and / or a failed state. The physical blocks of the large blocks in the idle state have been erased and no data has been written. The large blocks in the active state are large blocks currently used to carry data to be written. The large blocks in the written state are large blocks that have been filled with data and are no longer written to (unless the state changes), but are used to respond to read operations. The large blocks in the failed state are large blocks that are no longer used, for example, because they contain too many unavailable physical blocks.

[0059] Obtain an idle large block for carrying data to be written to the storage device, and change the state of the obtained large block from an idle state to an active state. Also write metadata at a specified position of the obtained idle large block. At this time, the temperature of the environment in which the storage device is located is also obtained. For example, the ambient temperature is obtained by a temperature sensor arranged on the storage device, or by a host or network coupled to the storage device. The ambient temperature obtained when the large block enters the active state is recorded in the metadata (recorded as T1). Optionally, the metadata also records the addresses of each physical block included in the large block, the data protection method adopted by the large block, the number of times the large block is erased, and the number of times the large block is read.

[0060] Although a large block contains multiple physical blocks, according to an embodiment of the present application, only one piece of environmental temperature information is recorded in the large block to reduce the occupation of the large block storage space. Generally, the time when data is written to each physical block in the active large block is close to each other, and the temperature will not change drastically in a short time, so that a piece of temperature information recorded in the large block can generally represent the environmental temperature when data is written to each physical block of the large block.

[0061] Figure 3 A flow chart of reading data from an NVM chip according to an embodiment of the present application is shown.

[0062] In response to the host initiating a read access command to the storage device, a read command is issued to the NVM chip (310). The read command indicates the physical address of the data to be read. Typically, a read command with default read operation parameters is used. Optionally, in step 310, the read operation parameters are additionally determined and the determined read operation parameters are used in the issued read command. Optionally, the read operation parameters are determined based on the ambient temperature when the data to be read is written and / or the ambient temperature when the data is read as indicated in the read command.

[0063] The storage device performs error checking on the data read from the NVM chip (320).

[0064] If there are uncorrectable errors in the read data (for example, the number of error bits in the read data exceeds the error correction capability of the error correction engine) (320), the temperature T1 recorded in the storage unit accessed by the read command is obtained (330). The storage unit is a large block or a physical block. The temperature T1 indicates the ambient temperature of the storage device when the data to be read is written to the large block (for example, from an idle state to an active state). For example, the temperature T1 is the ambient temperature of the metadata written to the large block or physical block when the large block or physical block is allocated for use. Optionally, the storage device retains a copy of the metadata of all large blocks or physical blocks (or all large blocks or physical blocks to which data is written) in the memory, so that the metadata of each large block or physical block can be quickly obtained. Still optionally, in order to obtain the ambient temperature T1, the storage device issues an additional read command to the large block or physical block to read the ambient temperature T1 recorded in its metadata.

[0065] The storage device also obtains the current ambient temperature T2 (340) of the environment in which it is located. Temperature T2 indicates the ambient temperature of the storage device when the data to be read is read out. For example, the current ambient temperature is obtained by accessing a temperature sensor arranged in the storage device, or by a host coupled to the storage device.

[0066] According to the temperature T1 and the temperature T2, a read operation parameter suitable for the temperature T1 and the temperature T2 is selected, and a read command is reissued to the same physical address accessed by the read command in step 310 to read data, and the read result is used as the result of the read access command, wherein the reissued read command uses the read operation parameter obtained according to the temperature T1 and the temperature T2 (350). It can be understood that error checking is performed on the data read from the NVM chip using the reissued read command. If the read result after the error check passes, it is used as the result of the read command access.

[0067] In one example, the read operation parameters are selected according to the difference between temperature T1 and temperature T2 to compensate for the bit error rate introduced by the change in ambient temperature when the read and write operations occur. For example, by measuring in a laboratory under various values ​​of the ambient temperature difference when the write and read operations occur, a lookup table is generated that records the difference between temperature T1 and temperature T2 and the corresponding optimal read operation parameters corresponding to each or each group of values. In step 350, the storage device accesses the lookup table according to the difference between temperature T1 and temperature T2 to obtain the optimal read operation parameters.

[0068] In another example, the read operation parameters are selected according to the value of temperature T1 and the value of temperature T2. For example, the storage device records multiple lookup tables, each lookup table corresponds to each or each group of values ​​of temperature T1, and the lookup table records the read operation parameters corresponding to multiple current ambient temperatures T2, and the lookup table corresponding to temperature T1 is indexed by temperature T2, and the indexed lookup table entry records the optimal read operation parameters corresponding to temperature T1 and temperature T2. By measuring the optimal read operation parameters corresponding to each pair of T1 and T2 values ​​under various values ​​of ambient temperatures T1 and T2 when write operations and read operations occur in the laboratory, multiple lookup tables are generated. Optionally, for the lookup table corresponding to temperature T1, the difference between temperature T2 and temperature T1 is used to index the lookup table. Still optionally, a copy of the lookup table corresponding to temperature T1 is stored in a memory such as a cache, and the read operation parameters are determined by accessing the memory to reduce the delay in accessing the lookup table.

[0069] In another example, a storage device records multiple lookup tables, each of which corresponds to each or each group of values ​​of temperature T2, and the lookup table records read operation parameters corresponding to multiple temperatures T1, and the lookup table corresponding to temperature T2 is indexed by temperature T1, and the indexed lookup table entry records the optimal read operation parameters corresponding to the difference between temperature T1 and temperature T2 or T1 and T2. By measuring the optimal read operation parameters corresponding to each pair of T1 and T2 values ​​under various values ​​of ambient temperature T1 and T2 when write and read operations occur in the laboratory, multiple lookup tables are generated. During the operation of the storage device, the ambient temperature will basically not change suddenly, so that the lookup table corresponding to temperature T2 can be applied to access multiple large blocks or physical blocks. Optionally, for the lookup table corresponding to temperature T2, the difference between temperature T2 and temperature T1 is used to index the lookup table. Still optionally, a copy of the lookup table corresponding to temperature T2 is stored in a memory such as a cache, and the read operation parameters are determined by accessing the memory to reduce the delay of accessing the lookup table.

[0070] In still another example, in step 350, corresponding optimal read operation parameters are obtained based on one or more parameters including temperature T1, temperature T2, the number of times the large block or physical block being read has been erased, the time the read data is retained on the large block or physical block, and the number of times the large block or physical block has been read since it was last erased.

[0071] In still another example, what is obtained in step 350 is a sequence of preferred read operation parameters corresponding to temperature T1 and temperature T2. In the order of the read operation parameters provided in the sequence, a read command is issued to the physical address read in step 310 using each read operation parameter to read data until the read data does not have uncorrectable errors. The read data without uncorrectable errors is error corrected and used as the read result of the read access command of the host.

[0072] Return to view Figure 3 , in step 320, if there is no uncorrectable error in the read result, the processing of the read command ends.

[0073] Optionally, in step 310 , read operation parameters are additionally determined according to the manner described above in conjunction with steps 330 to 350 , and the determined read operation parameters are used in the read command issued in step 310 .

[0074] Further, the optimal read operation parameter or the read operation parameter sequence obtained in step 350 is recorded, and when the read data of the subsequent read command encounters an uncorrectable error, the recorded optimal read operation parameter is directly used to read the data, without having to perform the process of finding the optimal read operation parameter from step 330 to step 350 again. For example, in step 310, the recorded optimal read operation parameter or the read operation parameter sequence that makes the read data free of uncorrectable errors is obtained as the additionally determined read operation parameter, and the determined read operation parameter is used in the read command issued in step 310. Exemplarily, the storage device records the optimal read operation parameter in the memory or NVM chip of the storage device. Optionally, the recorded optimal read operation parameter is directly applied to the subsequent read command (for example, the recorded optimal read operation parameter is applied in step 310 to issue a read command).

[0075] Figure 4 A read parameter table according to an embodiment of the present invention is shown. In another example, each entry in the read parameter table records an optimal read operation parameter corresponding to one of the large blocks or physical blocks. For example, see Figure 4 , the optimal read operation parameter for block 1 is Vth4, and the optimal read operation parameter for block 2 is Vth6. Optionally, each entry of the read parameter table records an optimal read parameter sequence.

[0076] The read parameter table may be dynamic, for example, updated as the ambient temperature changes. In one embodiment, the read parameter table corresponds to the ambient temperature (T2) or ambient temperature range of the current storage device. It is understandable that the current ambient temperature generally does not change dramatically. The storage device obtains the temperature T1 when the data is written to the large block or physical block recorded in the metadata of each large block or physical block to which data is written, and obtains the optimal read operation parameter or read operation parameter sequence applicable to each large block or physical block based on the temperature T1 and the temperature T2, and records it in the read parameter table ( Figure 4 ). Furthermore, the optimal read operation parameter or read operation parameter sequence in the read parameter table entry is updated according to one or more of the parameters such as the number of times the large block or physical block is erased, the time the data stored in the large block or physical block is saved, and / or the number of times the large block or physical block is read. In the laboratory, one or more parameters including temperature T1, temperature T2, the number of times the large block to be read is erased, the time the read data is retained on the large block, and the number of times the large block has been read after being last erased are obtained, and the relationship with the optimal read parameter is obtained. The storage device updates the read parameter table during operation according to the above one or more parameters and the relationship between these parameters and the optimal read parameter.

[0077] In response to a read operation, the storage device obtains an optimal read operation parameter or a read operation parameter sequence from a read parameter table according to the large block or physical block to which the physical address to be read belongs, and uses the obtained optimal read operation parameter or read operation parameter sequence to read data from the NVM chip. Further, if the data read from the NVM chip using the obtained optimal read operation parameter or read operation parameter sequence still has uncorrectable errors, the data is recovered by reading the page stripe of the large block. For example, Chinese patent application 2017107523210 provides a variety of construction methods for large blocks and their page stripes.

[0078] In one embodiment, when the current ambient temperature (T2) of the storage device changes, or the change in the current ambient temperature (T2) exceeds a threshold, the storage device updates the read parameter table according to the changed current ambient temperature (T2) and the temperature (T1) recorded in the metadata of each large block or physical block, so that only one read parameter table corresponding to the current ambient temperature (T2) is maintained in the storage device, and there is no need to maintain a read parameter table or a lookup table corresponding to multiple values ​​of the ambient temperature, thereby reducing the memory occupancy.

[0079] It can be understood that the read parameter table only needs to record the entries corresponding to the large block or physical block in which the data is written. In response to the large block or physical block being erased, the record corresponding to the erased large block or physical block in the read parameter table is deleted.

[0080] According to an embodiment of the present application, the storage device selects the optimal read parameter based on the ambient temperature T1 when data is written to the large block or physical block and the ambient temperature T2 when data is read from the large block or physical block to compensate for the impact of temperature changes on the bit error rate of the NVM chip, thereby improving the storage device's adaptability to ambient temperature changes and allowing the storage device to operate normally over a wide temperature range.

[0081] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application. Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A read command processing method, It is characterized in that The steps include: issuing a first read command to the non-volatile memory according to a read access command of the host; receiving the first data read out according to the first read command, and performing error checking; If there is an uncorrectable error in the first data, determining a read operation parameter; issuing a second read command to the non-volatile memory, wherein the second read command depends on the read operation parameter, and the second read command accesses the same physical address as the first read command; receiving second data read out according to the second read command as a read result of the read access command; It also includes: determining the read operation parameters according to the read parameter table, the read parameter table records the correspondence between the storage unit and the read operation parameters or the read operation parameter sequence under the current ambient temperature or the current ambient temperature range of the storage device, and the storage device maintains a read parameter table corresponding to the current ambient temperature.

2. A read command processing method, It is characterized in that The steps include: issuing a first read command to the non-volatile memory according to a read access command of the host; Determine a read operation parameter corresponding to the storage unit to which the to-be-read data indicated in the first read command belongs; Using the read operation parameters, reading first data from the non-volatile memory, and performing error checking; If an uncorrectable error exists in the first data, a new read operation parameter is determined, and a second read command is issued to the non-volatile memory, wherein the second read command depends on the new read operation parameter, and the second read command accesses the same physical address as the first read command; receiving second data read out according to the second read command as a read result of the read access command; It also includes: determining the read operation parameters according to the read parameter table, the read parameter table records the correspondence between the storage unit and the read operation parameters or the read operation parameter sequence under the current ambient temperature or the current ambient temperature range of the storage device, and the storage device maintains a read parameter table corresponding to the current ambient temperature.

3. The read command processing method according to claim 2, It is characterized in that The read operation parameters are determined according to the ambient temperature when the storage unit to which the to-be-read data belongs indicated in the first read command is written and / or the current ambient temperature.

4. The read command processing method according to claim 2, It is characterized in that If an uncorrectable error exists in the first data, the data is recovered by reading a large block of page stripes.

5. The read command processing method according to claim 3, It is characterized in that The first ambient temperature and the current ambient temperature are respectively the temperatures of the environment where the storage device is located.

6. The read command processing method according to claim 3, It is characterized in that The first ambient temperature is recorded in metadata of the storage unit.

7. The read command processing method according to claim 6, It is characterized in that Also includes: A third read command is issued to the storage unit to obtain the first ambient temperature.

8. The read command processing method according to claim 6, It is characterized in that A copy of the metadata is stored in a memory of the storage device, and the first ambient temperature is read from the memory of the storage device.

9. The read command processing method according to claim 3, It is characterized in that The current ambient temperature is obtained by accessing a temperature sensor disposed in the storage device, or by obtaining the current ambient temperature through a host coupled to the storage device.

10. The read command processing method according to claim 3, It is characterized in that The read operation parameter is determined according to the difference between the first ambient temperature and the current ambient temperature.

11. The read command processing method according to claim 10, It is characterized in that The read operation parameters are determined by accessing a first lookup table, wherein the first lookup table records the corresponding relationship between the difference between the first ambient temperature and the current ambient temperature and the read operation parameters.

12. The read command processing method according to claim 3, It is characterized in that The current ambient temperature is used to index multiple second lookup tables of the first ambient temperature, each second lookup table corresponds to a value or a value range of the first ambient temperature, and the second lookup table records read operation parameters corresponding to multiple current ambient temperatures.

13. The read command processing method according to claim 3, It is characterized in that The difference between the first ambient temperature and the current ambient temperature is used to index multiple third lookup tables of the first ambient temperature, each of the third lookup tables corresponds to a value or value range of the first ambient temperature, and the third lookup table records read operation parameters corresponding to multiple differences between the first ambient temperature and the current ambient temperature.

14. The read command processing method according to claim 3, It is characterized in that A plurality of fourth lookup tables of the current ambient temperature are indexed by the first ambient temperature, each of the fourth lookup tables corresponds to a value or a value range of the current ambient temperature, and the fourth lookup table records read operation parameters corresponding to the plurality of first ambient temperatures.

15. The read command processing method according to claim 3, It is characterized in that The difference between the first ambient temperature and the current ambient temperature is used to index multiple fifth lookup tables of the current ambient temperature, each fifth lookup table corresponds to a value or value range of the current ambient temperature, and the fifth lookup table records read operation parameters corresponding to multiple differences between the first ambient temperature and the current ambient temperature.

16. The read command processing method according to claim 12, It is characterized in that A plurality of lookup table copies of the first ambient temperature or the current ambient temperature are stored in a memory, and the read operation parameters are determined by accessing the memory.

17. The read command processing method according to claim 3, It is characterized in that The read operation parameter is determined according to one or more of the first ambient temperature, the current ambient temperature, the number of times the storage unit where the first data is located is erased, the time the first data is retained on the block, and the number of times the storage unit has been read since it was last erased.

18. The read command processing method according to claim 3, It is characterized in that Obtaining a sequence of read operation parameters according to the first ambient temperature and the current ambient temperature; A plurality of third data are read from the non-volatile memory according to the read commands corresponding to the respective read operation parameters in the sequence, and the third data without uncorrectable errors are used as the read result of the read access command.

19. The read command processing method according to claim 18, It is characterized in that Also includes: The read operation parameter corresponding to the read command that obtained the third data is used for subsequent read commands.

20. The read command processing method according to claim 2, It is characterized in that Update the read operation parameters or read operation parameter sequence in the read parameter table based on one or more of the first ambient temperature or the first ambient temperature range when data is written to the storage unit, the current ambient temperature or the current ambient temperature range of the storage device, the number of times the storage unit is erased, the time the data stored in the storage unit is saved, and the number of times the storage unit is read.

21. The read command processing method according to claim 2, It is characterized in that If the change in the current ambient temperature of the storage device exceeds a threshold, the read parameter table is updated according to the changed current ambient temperature and the first ambient temperature recorded in the metadata of each storage unit.

22. The read command processing method according to claim 2, It is characterized in that The read parameter table only records the entries corresponding to the storage units into which data has been written.

23. The read command processing method according to claim 22, It is characterized in that In response to a storage unit in which data is written being erased, a record corresponding to the erased storage unit in the read parameter table is deleted.

24. A storage device, comprising a control component and a non-volatile memory chip, wherein the control component is used to execute the read command processing method according to claims 1-23.