Storage device and memory management method thereof

By monitoring and managing the degradation information of the memory buffer area shared with the host in the storage device, and sending damage prediction notifications to the host, the problem of reliability management of the memory area in the storage device is solved, and the data reliability and operation of the storage device are improved. reliability.

CN111190841BActive Publication Date: 2024-10-18SAMSUNG ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910948791.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-30
Publication Date
2024-10-18
Estimated Expiration
2039-09-30

AI Technical Summary

Technical Problem

In storage devices using a memory sharing scheme, there are problems with the reliability management of the memory area allocated by the host to the storage device, especially since data is loaded into the host's memory area and updated there, resulting in storage in the host memory buffer The data reliability is difficult to manage.

Method used

The storage device actively reallocates the memory area to ensure data reliability by monitoring the degradation information of the memory buffer area it shares with the host and sending a damage prediction notification or damage notification to the host when an error threshold is detected.

Benefits of technology

Through active monitoring and notification mechanisms, the data reliability of storage devices is improved, serious damage caused by buffer area degradation is prevented, and the operational reliability of storage devices is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111190841B_ABST
    Figure CN111190841B_ABST
Patent Text Reader

Abstract

A storage device and a memory management method thereof are provided. The storage device shares a host memory with a host. The storage device includes an interface, which exchanges data with the host and implements a protocol to use a partial area of ​​the host memory as a buffer of the storage device. A storage controller of the storage device monitors degradation information of a first area of ​​the buffer, and sends a damage prediction notification associated with the first area to the host based on the monitoring result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Exemplary embodiments of the inventive concept relate to a memory device, and more particularly, to a memory device using a host memory buffer and a memory management method including the memory device. Background Art

[0002] An example of a flash memory-based mass storage device is a solid-state drive (hereinafter referred to as "SSD"). SSDs are used for various purposes, and the demand for SSDs is increasing. For example, SSDs can be used in servers, clients, data centers, and the like. The interface of the SSD should provide optimal speed and reliability for each purpose. In order to meet this demand, interfaces such as the Serial Advanced Technology Attachment (SATA) interface, the Peripheral Component Interconnect Express (PCIe) interface, and the Serial Attached Small Computer System Interface (SAS) are being used. Specifically, non-volatile memory express (NVMe) based on PCIe or unified memory extension (UME) based on universal flash storage (UFS) is being developed and applied to storage devices. The interface provides a memory sharing function between devices. Therefore, with respect to storage devices using a memory resource sharing scheme, a data management method is needed.

[0003] In a storage device using a memory sharing scheme, problems may arise regarding the management of the reliability of the memory shared by the storage device and the host. The reason for this is that the memory area allocated by the host to the storage device is contained in the host but managed by the storage device. In addition, data for managing the storage device is loaded into and updated in the host's memory area (hereinafter referred to as the "host memory buffer"), which is shared by the storage device and the host. Therefore, it is necessary to manage the reliability of the data stored in the host memory buffer (HMB). Summary of the invention

[0004] According to an exemplary embodiment of the inventive concept, a storage device is provided, the storage device shares a host memory with a host. The storage device includes an interface, the interface exchanges data with the host and implements a protocol to use a partial area of ​​the host memory as a buffer of the storage device. A storage controller of the storage device monitors degradation information of a first area of ​​the buffer, and sends a damage prediction notification associated with the first area to the host based on the monitoring result.

[0005] According to an exemplary embodiment of the inventive concept, a memory management method of a storage device is provided, to which a host memory of a host is allocated. The memory management method includes: at the storage device, dividing the buffer into a plurality of buffer areas, and detecting degradation information of each buffer area in the plurality of buffer areas. The memory management method also includes: using the storage device to determine whether a first buffer area exceeds an error threshold based on the detected degradation information. When the first buffer area exceeds the error threshold, a damage prediction notification associated with the first buffer area is sent to the host.

[0006] According to an exemplary embodiment of the inventive concept, a storage device is provided, which uses a host memory of a host as a buffer. The storage device includes: an interface configured to communicate with the host; a non-volatile memory device; and a storage controller configured to divide a buffer area allocated from the host memory through the interface into a plurality of buffer areas. The storage device monitors a degradation state of each buffer area in the plurality of buffer areas, and sends a damage notification or a damage prediction notification when the degradation state exceeds a threshold. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] The above and other aspects and features of the inventive concept will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:

[0008] Figure 1 is a block diagram illustrating a computer system to which a storage device according to an exemplary embodiment of the inventive concept is connected;

[0009] Figure 2 It shows Figure 1 A block diagram of a host memory is shown;

[0010] Figure 3 It shows Figure 1 A block diagram of an exemplary configuration of a storage controller is shown;

[0011] Figure 4 shows a health status table of each region HMB according to an exemplary embodiment of the inventive concept;

[0012] Figure 5 It shows Figure 3 A flow chart of the operation of the HMB controller or damage detection module shown;

[0013] Figure 6 is a diagram showing the interaction of a storage controller and a host to send a corruption notification;

[0014] Figure 7is a flowchart illustrating an operation of a damage prediction module of an HMB controller according to an exemplary embodiment of the present inventive concept;

[0015] Figure 8 is a diagram illustrating an interoperation of a host and a damage prediction module according to an exemplary embodiment of the inventive concept;

[0016] Fig. 9 is a block diagram illustrating a storage device according to an exemplary embodiment of the inventive concept, the storage device having a separate channel for transmitting a damage notification or a damage prediction notification to a host; and

[0017] Fig.10 is a block diagram illustrating a storage device having a channel for transmitting damage notification or damage prediction according to another exemplary embodiment of the inventive concept. DETAILED DESCRIPTION

[0018] Exemplary embodiments of the inventive concept will now be described more fully with reference to the accompanying drawings. However, the inventive concept may be embodied in a variety of alternative forms and should not be construed as being limited to the exemplary embodiments of the present disclosure set forth herein. It should be understood that throughout the detailed description and the accompanying drawings, the same reference numerals may refer to the same elements. Below, the features and functions of the inventive concept will be described using a solid-state drive (SSD) of a flash memory device as an example of a storage device. However, it should be understood that this is merely exemplary and that other memory devices may be applied to the inventive concept described herein.

[0019] Figure 1 is a block diagram illustrating a computer system to which a storage device according to an exemplary embodiment of the inventive concept is connected. Figure 1 , the computer system 1000 includes a host 1100 and a storage device 1200. The host 1100 may access the storage device 1200 to store data in or read data from a nonvolatile memory device (NVM) 1260. The storage device 1200 stores data in or reads data from the NVM 1260 in response to an access request of the host 1100. A partial area of ​​a host memory 1130 of the host 1100 may be allocated to the storage device 1200 as an HMB 1120. The storage device 1200 may manage the HMB 1120 as a master device.

[0020] The host 1100 may write data in the storage device 1200 or read data stored in the storage device 1200. The host 1100 may provide a command and an address for writing data in the storage device 1200. The host 1100 may provide a command and an address for reading data stored in the storage device 1200 to the storage device 1200.

[0021] The host 1100 may include a processor 1110, a host memory 1130, and an interface circuit 1150. Application programs, file systems, device drivers, etc. may be loaded onto the host memory 1130. Various software and data driven in the host 1100 may be loaded onto the host memory 1130. Specifically, the host 1100 may allocate a partial area of ​​the host memory 1130 for the HMB 1120 to be used as a buffer of the storage device 1200.

[0022] HMB 1120 is allocated to allow storage device 1200 to use host memory 1130 as a buffer. The area of ​​HMB 1120 is monitored by storage device 1200. Storage device 1200 can divide HMB 1120 into multiple areas and can monitor the degradation state of each area. In addition, storage device 1200 can monitor the error rate of data stored in the divided areas of HMB 1120, and can determine whether damage has occurred.

[0023] Upon receiving the monitoring result from the storage device 1200, the host 1100 may reallocate all or part of the HMB 1120. For example, in the case where the second HMB 1123 deteriorates by a predetermined level or more, the storage device 1200 notifies the host 1100. In response to the notification of the storage device 1200, the host 1100 may reallocate the second HMB 1123 to the first HMB 1121.

[0024] The interface circuit 1150 provides a connection between the processor 1110, the host memory 1130, and the host interface 1220. In other words, the interface circuit 1150 may convert commands, addresses, data, etc. corresponding to various access requests generated from the host 1100 so as to be suitable for an interface connection with the storage device 1200. The protocol of the interface circuit 1150 may include at least one of a universal serial bus (USB), a small computer system interface (SCSI), PCIe, an advanced technology attachment (ATA), a parallel ATA (PATA), a serial ATA (SATA), a SAS, and a UFS.

[0025] The storage device 1200 may be provided as a data storage means of the host 1100. The storage device 1200 may include a host interface 1220, a storage controller 1240, and a nonvolatile memory device 1260. The storage device 1200 may access the nonvolatile memory device 1260 in response to a command CMD from the host 1100, or may perform various operations requested by the host 1100.

[0026] The host interface 1220 is provided as a physical communication channel of the storage device 1200 for data exchange with the host 1100. The host interface 1220 may have an interface protocol that allows the HMB 1120 to support the buffer function of the storage device 1200. The host interface 1220 may support an interface protocol for mutually sharing memory resources of the host 1100 and memory resources of the storage device 1200. For example, the storage controller 1240 enables the host interface 1220 to manage the internal buffers of the HMB 1120 and the storage device 1200 using one memory map.

[0027] The storage controller 1240 provides an interface connection between the host 1100 and the storage device 1200. The storage controller 1240 may write user data into the non-volatile memory device 1260 according to a request from the host 1100. The storage controller 1240 may include an HMB controller 1243 that specifically manages the HMB 1120. The HMB controller 1243 may monitor the degradation state of each region of the HMB 1120 or the error rate of the data. The HMB controller 1243 may monitor whether there is a threshold amount of error rate or a threshold level or higher degradation. When a data error of the HMB 1120 occurs, the HMB controller 1243 provides a notification to the host 1100 that an error has occurred. Alternatively, before the degradation becomes more serious and thus severe damage occurs immediately, the HMB controller 1243 may notify the host 1100 in advance by providing information about potential events.

[0028] A nonvolatile memory device (NVM) 1260 is provided as a storage medium of the storage device 1200. The NVM 1260 may include a nonvolatile memory such as a flash memory, a phase change random access memory (PRAM), a magnetic random access memory (MRAM), a resistive random access memory (ReRAM), a ferroelectric random access memory (FRAM), a magnetic disk, etc.

[0029] According to an exemplary embodiment of the inventive concept, the storage device 1200 can monitor the HMB 1120, and can provide a damage prediction notification or a damage notification to the host 1100 according to the monitoring result. In the case where the monitoring result indicates that an uncorrectable error occurs in a specific area of ​​the HMB 1120, the storage device 1200 can provide a damage notification to the host 1100. In this case, the host 1100 can reallocate the memory area of ​​the HMB 1120. In addition, the storage device 1200 can monitor the degradation state of the HMB 1120 for each area, and can notify the host 1100 of the monitoring result. Even if no error occurs in a specific area of ​​the HMB 1120, the host memory 1120 can also be monitored for degradation exceeding a threshold. When degradation is detected, the storage device 1200 can provide a damage prediction notification to the host 1100, so that the host 1100 reallocates the specific area of ​​the HMB 1120 to another area.

[0030] According to the computer system 1000 of the inventive concept, the storage device 1200 may monitor the HMB 1120 for each region. The storage device 1200 may provide the host 1100 with a monitoring result (indicating damage or damage prediction) to request the host 1100 to reallocate the HMB 1120.

[0031] Figure 2 It shows Figure 1 A block diagram of the host memory is shown in Figure 1. Figure 2 , a partial area of ​​the host memory 1130 may be allocated to the HMB 1120. In addition, according to a notification or request from the storage device 1200, the HMB 1120 may be reallocated to another memory area of ​​the host memory 1130.

[0032] The host memory 1130 is a memory provided in the host 1100. For example, the host memory 1130 can be implemented with a volatile memory such as a dynamic random access memory (DRAM) or a static random access memory (SRAM), or can be implemented with a non-volatile memory. However, it is understood that the host memory 1130 can be implemented in different ways according to the purpose. The host memory 1130 can store or output data requested by the host 1100. In addition, the HMB 1120 allocated to the buffer of the storage device 1200 is included in the host memory 1130. The HMB 1120 can be allocated to a specific memory area of ​​the host memory 1130, or can be allocated on the host memory 1130 with an optimal size according to the information of the storage device 1200.

[0033] HMB 1120 is a memory area corresponding to a partial area of ​​host memory 1130, and a partial area of ​​host memory 1130 is allocated to be used as a buffer of storage device 1200. Therefore, storage device 1200 can use HMB 1120 as a buffer without a separate internal buffer. Due to various problems such as cost, device size and design restrictions, the internal buffer provided in storage device 1200 may be difficult to provide sufficient capacity. However, in the case of sharing HMB 1120 to allow storage device 1200 to use a partial area of ​​host memory 1130, storage device 1200 can ensure sufficient buffer capacity.

[0034] According to the properties of the data to be stored (hereinafter referred to as "buffered data"), the HMB 1120 may be divided into a plurality of HMB areas 1122, 1124, and 1126. For example, the mapping data of the storage device 1200 may be stored in the HMB1 area 1122. The user data may be stored in the HMB2 area 1124. The management data for managing the storage device 1200 may be stored in the HMB3 area 1126. However, the reference for dividing the HMB 1120 into the HMB areas 1122, 1124, and 1126 is not limited to the properties of the data to be stored. The HMB 1120 may be divided into a plurality of areas to facilitate memory management.

[0035] In the case where the HMB 1120 is divided into multiple areas according to the attributes of the data to be stored, the HMB controller 1243 can efficiently monitor the health status. In other words, in the case of detecting a defect, data corruption, or degradation progress status of an HMB area, any HMB area can be easily reallocated to a new HMB area.

[0036] The HMB 1120 may be divided into a plurality of HMB regions according to the attributes of the buffered data to be stored. In the case of the HMB 1120, the health status may be monitored for each of the HMB regions 1122, 1124, and 1126. In response to a detected defect, data corruption, or degradation status, the HMB region may be reallocated to another new region of the host memory 1130 as needed. For example, the HMB regions 1122, 1124, and 1126 may be independently reallocated to an available HMB region in the host memory 1130 or elsewhere.

[0037] Figure 3 It shows that according to Figure 1 A block diagram of a configuration of a storage controller is shown in an exemplary embodiment of the present inventive concept. Figure 3, the storage controller 1240 may include a central processing unit (CPU) 1241, an HMB controller 1243, a flash memory interface 1245, and an error correction block (ECC) 1247. Specifically, the HMB controller 1243 may drive or include a damage detection module 1242 and a damage prediction module 1244 to manage the HMB 1120 and the HMB health status table 1246.

[0038] The CPU 1241 may perform various memory management operations of the storage device 1200. For example, the CPU 1241 may control the HMB controller 1243 and the flash interface (I / F) 1245 in response to a command from the host 1100 to write data in the nonvolatile memory device 1260. The CPU 1241 prompts the HMB controller 1243 to read data from the HMB 1120.

[0039] According to the request of the CPU 1241, the HMB controller 1243 may write data in the HMB 1120, or may read the written data from the HMB 1120. The HMB controller 1243 may monitor data damage or health status according to defects or degradation of the HMB 1120. The HMB controller 1243 may include a damage detection module 1242, a damage prediction module 1244, and an HMB health status table 1246 for monitoring data damage or health status of the HMB 1120.

[0040] The damage detection module 1242 determines the defect of the HMB 1120 with reference to whether there is an error, an error rate, and / or whether the error is correctable in the data read from the HMB 1120. For example, in the case where an uncorrectable error is detected in the data read from a specific HMB area of ​​the HMB 1120, the damage detection module 1242 may determine the situation as a defect or degradation of the specific HMB area. Based on this determination, the HMB controller 1243 may provide a damage notification to the host 1100, or may request the host 1100 to reallocate the HMB area.

[0041] The damage prediction module 1244 continuously monitors the error rate or read count or write count of the data read from the HMB 1120, and may update the monitoring result in the HMB health status table 1246. For example, when the write count of the HMB area of ​​the HMB 1120 is greater than a threshold, the damage prediction module 1244 may predict that a defect may occur in a specific HMB area later. Based on this determination, the HMB controller 1243 may request the host 1100 to reallocate the HMB area.

[0042] Information about the health status of each HMB region monitored by the corruption detection module 1242 or the corruption prediction module 1244 may be stored or updated in the HMB health status table 1246. A requestor notification for HMB reallocation may be provided to the host 1100 based on the read count, write count, and / or error rate of each HMB region updated in the HMB health status table 1246.

[0043] The ECC 1247 detects errors of data read from the HMB 1120. In the event that a correctable error exists in the data read from the HMB 1120, the ECC 1247 may correct the detected error. The ECC 1247 may provide the HMB controller 1243 with the number of error bits of the data read from the HMB 1120, the error rate, and / or whether the detected error is correctable.

[0044] As described above, the storage controller 1240 of the present inventive concept may detect damage to the HMB 1120, or may predict damage according to the progress of data degradation. In addition, the storage controller 1240 may provide a damage notification or a damage prediction notification to the host 1100 based on the detected damage or damage prediction information. The host 1100 may reallocate the damaged HMB area to the normal memory area of ​​the host memory 1130 in response to the damage notification or the damage prediction notification.

[0045] Figure 4 An HMB health status table 1246 for each region of the HMB according to an exemplary embodiment of the present inventive concept is shown. Figure 4 , the HMB 1120 may be divided into a plurality of regions according to the attributes of the buffered data to be stored. Deterioration information or damage information about each of the plurality of regions may be stored and / or updated in the HMB health status table 1246 .

[0046] The health status of each region of the HMB 1120 may be managed or updated for each partitioned region. Reference information indicating an exemplary health status of each region may include a write count and a read count of each region and an error rate detected from data stored in each region. However, it is understood that any other management parameters and / or criteria associated with each region of the HMB 1120 may be used as the health status information stored in the HMB health status table 1246.

[0047] According to an exemplary embodiment of the inventive concept, mapping data associated with address mapping of the nonvolatile memory device 1260 may be stored in the first HMB area HMB1. User data to be programmed in the memory device 1200 may be temporarily stored in the second HMB area HMB2. Management data for managing or controlling the memory device 1200 may be stored in the third HMB area HMB3.

[0048] The damage detection module 1242 or the damage prediction module 1244 of the HMB controller 1243 can monitor or update the write count WC, read count RC and error rate ER of each area in the areas HMB1, HMB2 and HMB3 of the HMB health status table 1246. In the case where the error rate ER detected from a specific HMB area corresponds to an uncorrectable value, the damage detection module 1242 can send a damage notification associated with the specific HMB area to the host 1100. In the case where at least one of the write count WC, the read count RC and the error rate ER reaches or exceeds a threshold, the damage prediction module 1244 can send a damage prediction notification associated with the relevant HMB area to the host 1100. For example, the threshold write count WC, read count RC and error rate ER can be different values ​​from each other. The damage notification or damage prediction notification may include reallocation request information associated with the relevant HMB area.

[0049] Figure 5 12 is a flowchart showing the damage detection operation of the HMB controller 1243. Figure 5 , the HMB controller 1243 may detect and / or monitor an error rate ER of data read from the HMB 1120 for each region.

[0050] In operation S110, the HMB controller 1243 detects or receives an access request to the HMB 1120 from the CPU 1241. Here, in order to simplify the description, it is assumed that a read request to the HMB 1120 is received.

[0051] In operation S120, the HMB controller 1243 detects whether there is damage to the data read from the HMB 1120. For example, the ECC 1247 may detect an error of the data read from the HMB 1120.

[0052] In operation S130, the HMB controller 1243 determines whether the error rate ER of the data read from the HMB 1120 exceeds the error rate threshold THe. When it is determined that the error rate ER of the read data is greater than the error rate threshold THe, the process proceeds to notify the host in operation S150. When it is determined that the error rate ER of the read data is less than or equal to the error rate threshold THe, the process proceeds to perform an operation or correct an error using the read data in operation S140.

[0053] In operation S140, the HMB controller 1243 may perform a memory management operation using the read data in which no error is detected. Alternatively, the memory controller 1240 may correct errors of the read data including correctable errors. The memory controller 1240 may perform a memory management operation or a data transfer operation by using the error-corrected read data.

[0054] In operation S150, when the HMB controller 1243 determines that a specific area of ​​the HMB 1120 is damaged, information about the event is notified to the host 1100. Alternatively, the memory controller 1240 may allocate the HMB area where the uncorrectable error is detected to a new area of ​​the host memory 1130.

[0055] In operation S160, the storage controller 1240 updates the error rate ER of the HMB area stored in the HMB health status table 1246. Thereafter, in the case of allocating a new HMB area, the storage controller 1240 may create an entry in the HMB health status table 1246 associated with the newly allocated area.

[0056] Figure 6 1 is a diagram showing an operation of the storage controller 1240 sending a damage notification to the host 1100. Figure 6 , the host 1100 may reallocate the HMB area in response to a corruption notification sent by the storage controller 1240 of the storage device 1200 .

[0057] In operation S210 , the storage device 1200 transmits a read request for reading data stored in the HMB 1120 to the host 1100 .

[0058] In operation S220 , the host 1100 may read data of a designated HMB area of ​​the HMB 1120 , and may transmit the read data to the storage device 1200 .

[0059] In operation S230, the storage controller 1240 may detect whether there is an error in the data read from the HMB 1120 by using the ECC 1247. When no error is detected from the read data (No), in operation S260, the storage controller 1240 may process the read data. For example, the storage controller 1240 may perform a memory management operation of the storage device 1200 by using the read data, or may send the read data to the host 1100 or the nonvolatile memory device 1260.

[0060] When there is an error in the read data (Yes), the memory controller 1240 may send a damage notification to the host 1100 with reference to the size of the error rate, or may process the read data through error correction. According to an exemplary embodiment of the inventive concept, when the size of the error rate ER meets or exceeds the error rate threshold THe, in operation S250, the memory controller 1240 determines that the error is uncorrectable and sends a damage notification to the host 1100.

[0061] In operation S270, the host 1100 may reallocate the HMB B area of ​​the HMB 1120 to the normal memory area in response to the damage notification. Alternatively, the host 1100 may attempt to adjust or initialize operating parameters and training parameters associated with the partial area or device of the HMB 1120 corresponding to the damage notification.

[0062] Figure 7 is a flowchart illustrating an operation of the damage prediction module 1244 of the HMB controller 1243 according to an exemplary embodiment of the inventive concept. Figure 7 , the HMB controller 1243 may monitor the health status of each area of ​​the HMB 1120 and may generate a damage prediction notification based on the monitoring results.

[0063] In operation S310, the HMB controller 1243 may monitor the health status information of each HMB area according to the data attribute with reference to the access request of the HMB 1120. Here, for the convenience of description, the monitoring of the write count WC or the read count RC associated with each HMB area of ​​the HMB 1120 will be exemplified. However, the HMB controller 1243 may use the error rate ER to perform damage prediction. For example, the HMB controller 1243 may monitor the allowable degree of correctable errors, and may determine to send a damage prediction notification when the degree of correctable errors is higher than a threshold value.

[0064] In operation S320, the HMB controller 1243 may check whether at least one HMB area has a write count WC exceeding the write threshold TH_wc. Alternatively, the HMB controller 1243 may check whether at least one HMB area has a read count RC exceeding the read threshold TH_rc. When the read count RC does not exceed the threshold TH_rc or the write count WC does not exceed the write threshold TH_wc (no), the process proceeds to operation S310 to continue monitoring the health status. When the read count RC or the write count WC in the HMB area is greater than the read threshold TH_rc or the write threshold TH_wc (yes), the process proceeds to operation S330.

[0065] In operation S330, the HMB controller 1243 transmits a damage prediction notification associated with a specific HMB area to the host 1100. The damage prediction notification may be a signal indicating a simple damage prediction, and may include information on a location of a predicted damaged HMB area or information requesting reallocation.

[0066] In operation S340, the HMB controller 1243 updates the read count RC or the write count WC of the relevant HMB area stored in the HMB health status table 1246. In the case of allocating a new HMB area, the HMB controller 1243 may create and maintain an entry in the HMB health status table 1246 associated with the newly allocated area.

[0067] Before a serious damage occurs, the HMB controller 1243 can send a damage prediction notification to the host 1100 in advance according to the health status detection monitored for each area of ​​the HMB 1120. Therefore, by preventing a serious damage problem caused by a gradual defect or degradation of the HMB 1120, the reliability of the operation of the storage device 1200 can be improved.

[0068] Figure 8 1 is a diagram illustrating an exemplary mutual operation of the host 1100 and the damage prediction module 1244 of the HMB controller 1243 according to an exemplary embodiment of the inventive concept. Figure 8 , the storage device 1200 monitors the health status of each HMB area of ​​the HMB 1120, and sends a damage prediction notification to the host 1100 when the result indicates potential future damage.

[0069] In operation S410, the storage device 1200 checks the write count WC of each HMB area of ​​the HMB 1120. When there is an HMB area having a write count WC greater than the write threshold TH_wc, the storage controller 1240 may send a damage prediction notification to the host 1100. However, when the HMB area does not have a write count WC greater than the write threshold TH_wc, the storage controller 1240 proceeds to operation S420 to detect a read count RC.

[0070] In operation S420, the storage device 1200 checks the read count RC of each HMB area of ​​the HMB 1120. When there is an HMB area whose read count RC is greater than the read threshold TH_rc among the HMB areas (Yes), the storage controller 1240 may proceed to operation S430 and may send a damage prediction notification to the host 1100. However, when the HMB area whose read count RC is greater than the read threshold TH_rc is not detected (No), the storage controller 1240 may continue to monitor the HMB health status according to operations S410 and S420.

[0071] In operation S440, the host 1100 may reallocate the HMB area predicted to be erroneous to any other normal memory area in response to the damage prediction notification. Alternatively, the host 1100 may adjust the operating parameters associated with the partial area or partial device predicted to be damaged of the HMB 1120. For example, the host 1100 may attempt to initialize the partial area or partial device predicted to be damaged of the HMB 1120, or adjust the operating parameters and training parameters.

[0072] Fig. 9 is a block diagram illustrating a storage device according to an exemplary embodiment of the inventive concept, the storage device having a separate channel for sending a damage notification or a damage prediction notification to a host. Fig. 9 The storage device 1200 may include a notification channel 1350, and the notification channel 1350 is used to send a damage notification or a damage prediction notification of the HMB area to the host 1100.

[0073] The host 1100 and the storage device 1200 may include an input / output (I / O) channel 1300 for transmitting data. The host 1100 and the storage device 1200 may communicate with each other based on various interface schemes. Specifically, the host 1100 and the storage device 1200 may include a notification channel 1350, which notifies the host 1100 of damage occurring in the HMB or requests to reallocate the HMB. The host 1100 and the storage device 1200 may include separate pins or pads for the notification channel 1350. Alternatively, the host 1100 and the storage device 1200 may use unused pins in the existing pins as pins for the notification channel 1350.

[0074] Fig.10 is a block diagram illustrating a storage device having a notification channel according to another exemplary embodiment of the inventive concept. Fig.10 The storage device 2200 may implement damage notification or damage prediction notification of the HMB area to the host 2100 through a vendor message (MSG) channel.

[0075] The host 2100 and the storage device 2200 may include an I / O channel 2300 for transmitting data. The storage device 2200 may send a damage notification or damage prediction notification of an HMB or a message requesting reallocation of an HMB by using an existing V channel.

[0076] According to an exemplary embodiment of the inventive concept, a storage device that shares a host memory with a host can monitor an HMB area. The storage device can detect or predict damage or degradation with reference to a monitoring result of the HMB area, thereby preventing a serious defect from occurring.

[0077] While exemplary embodiments of the present inventive concept have been shown and described, it will be understood by those skilled in the art that changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the following claims.

Claims

1. A storage device, the storage device and a host share a host memory included in the host, the storage device include: an interface for exchanging data with the host and implementing a protocol for using a partial area of ​​the host memory as a buffer of the storage device; as well as Storage controller, configured as: dividing the buffer into a plurality of buffer regions, wherein the division is based on a property of data to be stored in each of the plurality of buffer regions, monitoring degradation information of a first area of ​​the plurality of buffer areas, sending a damage prediction notification associated with the first area to the host based on the monitoring result, and When damage of the data stored in the first area is detected, reallocation of the first area to another buffer area among the plurality of buffer areas is requested.

2. The storage device according to claim 1, in, The memory controller includes a host memory buffer controller that detects an error rate of data stored in the first area, a read count of the first area, or a write count of the first area as the degradation information.

3. The storage device according to claim 2, in, The host memory buffer controller comprises: a corruption detection module configured to detect corruption of data stored in the first area with reference to the error rate; a damage prediction module, monitoring the read count or the write count, and predicting occurrence of damage to the first region; and A health status table is configured to store and update the error rate, the read count, and the write count of the first region.

4. The storage device according to claim 3, in, When at least one of the read count and the write count exceeds a threshold value with reference to the health status table, the host memory buffer controller sends the damage prediction notification to the host.

5. The storage device according to claim 3, in, When the error rate exceeds a threshold value with reference to the health status table, the host memory buffer controller sends a corruption notification to the host.

6. The storage device according to claim 1, in, The storage controller sends the damage prediction notification to the host through the message transmission channel of the interface.

7. The storage device according to claim 1, in, The storage controller sends the damage prediction notification to the host through a pin of the host.

8. A memory management method for a storage device, comprising: a host memory in a host being allocated to the storage device as a buffer, the method include: At the storage device, dividing the buffer into a plurality of buffer areas, and detecting degradation information of each of the plurality of buffer areas, wherein the division is based on a property of data to be stored in each of the plurality of buffer areas; determining, using the storage device, whether a first buffer region of the plurality of buffer regions exceeds an error threshold based on the detected degradation information; sending a damage prediction notification associated with the first buffer region to the host when the first buffer region exceeds the error threshold; as well as A request is made to reallocate the first buffer area to another buffer area among the plurality of buffer areas.

9. The method according to claim 8, in, The degradation information includes a read count, a write count, or an error rate of each of the plurality of buffer areas.

10. The method according to claim 9, further comprising: include: When the error indicates an uncorrectable condition exists in the second buffer region, a corruption notification associated with the second buffer region is sent to the host.

11. The method according to claim 10, in, The damage prediction notification or the damage notification includes a message requesting reallocation of the first buffer area or the second buffer area to a normal memory area of ​​the host memory.

12. The method according to claim 11, in, The host adjusts an operating parameter of the host memory or a training parameter of the host memory in response to the damage prediction notification or the damage notification.

13. The method according to claim 11, in, The host initializes the host memory in response to the damage prediction notification or the damage notification.

14. A storage device, the storage device using a host memory included in a host as a buffer, the storage device include: an interface configured to communicate with the host; Non-volatile memory devices: as well as Storage controller, configured as: dividing a buffer area allocated from the host memory through the interface into a plurality of buffer areas, wherein the division is based on a property of data to be stored in each of the plurality of buffer areas, monitoring a degradation state of each of the plurality of buffer areas, and sending a damage notification or a damage prediction notification to the host when the degradation state exceeds a threshold, and A buffer region whose degradation state exceeds a threshold is requested to be reallocated to another buffer region among the plurality of buffer regions.

15. The storage device according to claim 14, in, The degradation status includes a read count, a write count, or an error rate of each of the plurality of buffer areas.

16. The storage device according to claim 14, in, The degradation status is updated in a host memory buffer health table managed by the memory controller.

17. The storage device according to claim 14, in, The interface includes at least one of: Peripheral Component Interconnect Express (PCIe), Non-Volatile Memory Express (NVMe), and Universal Flash Storage (UFS).

Citation Information

Patent Citations

  • Non-volatile semiconductor storage device

    US20130148435A1

  • Dynamic log-likelihood ratio mapping for error correcting code decoding

    US20150200688A1

  • Data storage at an access device

    US20180067684A1