Storage device using host memory buffer and method of operating same

By continuously sending read requests and detecting errors in the storage device, and updating the address information table to ensure data reliability, it solves the problem of performance degradation caused by delays in the storage system and achieves efficient data processing and reliability guarantee.

CN118779137APending Publication Date: 2024-10-15SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410415082.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-10
Filing Date
2024-04-08
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When existing storage systems use host memory buffers, performance is easily degraded due to delays, and data reliability is difficult to guarantee.

Method used

By continuously sending multiple read requests in the storage device regardless of whether the host memory buffer responds, and recording the address information corresponding to the multiple read requests, detecting read data errors, updating the address information table, ensuring data reliability, and Check location health before writing and only perform write operations if there are no exceptions.

Benefits of technology

It effectively prevents performance degradation caused by delay, improves data reliability and storage device data processing speed, and reduces recovery overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779137A_ABST
    Figure CN118779137A_ABST
Patent Text Reader

Abstract

A storage device using a host memory buffer and a method of operating the same are provided. A method of operating a storage device using a host memory buffer of a host includes recording information on HMB addresses on the host memory buffer in an address information table when a plurality of read requests to the host memory buffer are required, the HMB addresses respectively corresponding to the plurality of read requests; sending the plurality of read requests to the host memory buffer regardless of the response of the host memory buffer; receiving a plurality of read data respectively corresponding to the plurality of read requests from a host memory buffer; detecting an error of each of the plurality of read data; and updating the address information table based on a result of the error detection.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the benefit of priority from Korean Patent Application No. 10-2023-0047113 filed on April 10, 2023 in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0002] The present disclosure relates to a storage device, and more particularly, to a storage device using a host memory buffer and a method of operating the same. Background Art

[0003] The storage system includes a host and a storage device. The host may allocate a portion of a memory area in the host to the storage device, and the allocated memory area may be referred to as a host memory buffer (HMB), for example. A storage device including a flash memory or a non-volatile memory may use such a host memory buffer to improve the performance of the entire storage system.

[0004] Recently, research on technology for effectively using a host memory buffer (HMB) has been actively conducted. For example, there is an increasing demand for a host memory buffer access method that can ensure data reliability while preventing performance degradation caused by latency. Summary of the invention

[0005] The present disclosure provides a storage device for ensuring data reliability while preventing performance degradation caused by latency during access of the storage device to a host memory buffer.

[0006] For example, the storage device according to the present disclosure sends multiple read requests regardless of whether a response is received from the host memory buffer. The storage device writes the location of the host memory buffer for multiple read requests and retains the location of the buffer where the error occurred. Therefore, while preventing performance degradation caused by long delays, the reliability of data can be ensured.

[0007] As another example, before the storage device sends multiple write requests, the read access request takes precedence over the location corresponding to the multiple write requests on the host memory buffer, and the storage device identifies the health status of the location (e.g., whether there is an abnormality). Only when there is no abnormality, can the write request be sent.

[0008] As another example, when performing a data recovery operation in a location where an error has occurred, the storage device determines whether the location is "dirty", for example, a mismatch between mapping data stored in the host memory buffer and mapping data stored in the non-volatile memory device has occurred in the location where the error has occurred. When an update has occurred, if the location is dirty, data at the location may be recovered based on the log data.

[0009] As another example, a read access to a location that has been restored is requested again. Thus, if an error occurs again in the location, the location is marked as a bad area and is no longer used, resulting in reduced recovery overhead.

[0010] According to one disclosed aspect, a method for operating a storage device using a host memory buffer of a host includes: based on the fact that multiple read requests to the host memory buffer are needed, recording information about multiple host memory buffer addresses on the host memory buffer in an address information table, the multiple host memory buffer addresses respectively corresponding to the multiple read requests to the host memory buffer; sending the multiple read requests to the host memory buffer; receiving multiple read data from the host memory buffer, the multiple read data respectively corresponding to the multiple read requests; detecting one or more errors within the multiple read data; and updating the address information table based on the results of the detection of one or more errors.

[0011] According to one disclosed aspect, a method for operating a storage device using a host memory buffer of a host includes: based on a first write request being required, recording information about a first host memory buffer address on the host memory buffer corresponding to the first write request to the host memory buffer; generating a first preliminary read request for the first host memory buffer address, and then sending the first preliminary read request to the host memory buffer; receiving first preliminary read data corresponding to the first preliminary read request from the host memory buffer; performing an error detection operation on the first preliminary read data; and sending the first write request to the host memory buffer based on no error being detected in the first preliminary read data.

[0012] According to one disclosed aspect, a storage device using a host memory buffer of a host includes: a host interface, configured to use the host memory buffer as a memory buffer of the storage device; and a storage controller, configured to: based on multiple read requests to the host memory buffer being required: record information about multiple host memory buffer addresses on the host memory buffer, the multiple host memory buffer addresses respectively corresponding to the multiple read requests, send the multiple read requests to the host memory buffer, and detect errors in each of the multiple read data received from the host memory buffer and corresponding to the multiple read requests respectively. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a block diagram illustrating an example of a storage system.

[0014] Figure 2 It is shown Figure 1 A block diagram of an example of a configuration of a storage controller.

[0015] Figure 3 is a diagram illustrating an example of a process of sending a read request to a host memory buffer according to the related art.

[0016] Figure 4A is a diagram illustrating an example of the operation of the HMB controller when a plurality of read requests are sent to the host memory buffer.

[0017] Figure 4B is a diagram illustrating an example of the operation of the HMB controller when a plurality of read data is received from a host memory buffer.

[0018] Figure 5 It is shown Figure 1 A flowchart of an example of the operation of the storage device 1200.

[0019] Fig. 6A It is shown Figure 5 Flowchart of an example of operation S150.

[0020] Figure 6B It is shown Figure 5 Flowchart of another example of operation S150.

[0021] Figure 7 is an example of a method of operating a storage device.

[0022] Fig. 8A is a diagram illustrating an example of an operation in which the HMB controller sends a plurality of preliminary read requests corresponding to a plurality of write requests to a host memory buffer.

[0023] Figure 8B is a diagram illustrating an example of the operation of the HMB controller when a plurality of preliminary read data are received from the host memory buffer.

[0024] Fig. 9 It is shown Figure 1 A flow chart of an example of the operation of a storage device.

[0025] Fig.10 It is shown Fig. 9 Flowchart of an example of operation S360.

[0026] Fig.11 is a diagram illustrating an example of a storage controller.

[0027] Fig.12 It is shown Fig.11 A diagram of an example of the operation of an HMB controller.

[0028] Fig.13It is shown Fig.11 A diagram of an example of the operation of an HMB controller.

[0029] Fig.14 It is shown Fig.11 A flow chart of an example of the operation of a storage controller.

[0030] Fig.15 It is shown Fig.14 Flowchart of an example of operation S420. DETAILED DESCRIPTION

[0031] Figure 1 is a block diagram illustrating an example storage system 1000A. Figure 1 , the storage system 1000A includes a host 1100 and a storage device 1200 .

[0032] The storage system 1000A may support a host memory buffer (HMB) function for “sharing a portion of the host memory 1130 with the storage device 1200.” Therefore, the storage device 1200 may allocate a portion of the host memory 1130 of the host 1100 as a memory buffer, and the allocated buffer may be referred to as a host memory buffer 1120.

[0033] The storage device 1200 may load data to be used from the nonvolatile memory device 1260 into the host memory buffer 1120, and may then read the data from the host memory buffer 1120 to use the data. In addition, the storage device 1200 may write new data into the host memory buffer 1120 to update the data stored in the host memory buffer 1120. The storage device 1200 may periodically flush the data stored in the host memory buffer 1120 to the nonvolatile memory device 1260 to perform data synchronization.

[0034] The storage device 1200 may send multiple read requests to the host memory buffer 1120. In this case, regardless of the response of the host memory buffer 1120 to the read request sent first, the storage device 1200 may send subsequent read requests to the host memory buffer 1120 (e.g., even if the host memory buffer 1120 has not responded, the storage device 1200 may send subsequent read requests to the host memory buffer 1120). Therefore, the access speed to the data stored in the host memory buffer 1120 can be increased to improve the data processing speed of the storage device 1200.

[0035] In addition, the storage device 1200 may record HMB addresses respectively corresponding to a plurality of read requests on the host memory buffer 1120, and may detect whether the read data corresponding to the plurality of read requests is damaged. When damage to the read data is detected, the storage device 1200 may use the recorded HMB addresses to restore the damaged data. Therefore, the access speed to the data of the host memory buffer 1120 may be improved, and the reliability of the data may be ensured.

[0036] The host 1100 may write data into the storage device 1200 or read data stored in the storage device 1200. To this end, the host 1100 may send a command CMD, an address ADDR, and data DATA to write data into the storage device 1200. In addition, the host 1100 may send a command CMD and an address ADDR for reading data stored in the storage device 1200 to the storage device 1200. The host 1100 includes a processor 1110, a host memory 1130, and an interface circuit 1150.

[0037] The processor 1110 may control the overall operation of the host 1100. The processor 1110 may generate a request for writing data in the storage device 1200 or a request for reading data from the storage controller 1240, and may transmit the request to the storage device 1200 through the interface circuit 1150.

[0038] Application programs, file systems, device drivers, etc. may be loaded into the host memory 1130. In addition, various types of software or data driven by the host 1100 may be loaded into the host memory 1130. For example, the host 1100 may allocate a portion of the host memory 1130 as the host memory buffer 1120 used as a buffer for the storage device 1200.

[0039] The host memory buffer 1120 may be an area in which “a portion of an area of ​​the host memory 1130 is allocated to the storage device 1200 to be used by the storage device 1200”. For example, when the host memory buffer 1120 is allocated to the storage device 1200, the host memory buffer 1120 may be set to be exclusively used by the storage device 1200.

[0040] The host memory buffer 1120 may store mapping data for mapping addresses of the nonvolatile memory device 1260 and management data for managing or controlling the memory device 1200. In some embodiments, user data to be written in the memory device 1200 may be temporarily stored.

[0041] The interface circuit 1150 may provide an electrical connection between the host 1100 and the storage device 1200. For example, the interface circuit 1150 may convert commands, addresses, or data corresponding to various requests issued by the host 1100 in a manner of interfacing with the storage device 1200, etc. The protocol of the interface circuit 1150 may include at least one of UFS (Universal Flash Storage), SCSI (Small Computer System Interface), SAS (Serial Attached SCSI), SATA (Serial Advanced Technology Attachment), PCIe (Peripheral Component Interconnect Express), eMMC (Embedded MultiMediaCard), FC (Fibre Channel), ATA (Advanced Technology Attachment), IDE (Integrated Drive Electronics), USB (Universal Serial Bus), IEEE 1394 (Firewire). However, example embodiments are not limited thereto, and the protocol may include any other protocol that allows data to be exchanged between the host 1100 and the storage device 1200.

[0042] The storage device 1200 may be provided as a data storage device of the host 1100. In addition, the storage device 1200 may allocate a portion of the host memory 1130 of the host 1100 as a host memory buffer 1120, and may equivalently use the host memory buffer 1120 as an internal buffer. The storage device 1200 may include a host interface (I / F) 1220, a storage controller 1240, and a nonvolatile memory device 1260.

[0043] The host interface 1220 may be used as a communication channel of the storage device 1200 for data exchange with the host 1100. The host interface 1220 may have an interface connection protocol through which the host memory buffer 1120 can support the buffer function of the storage device 1200. For example, the host interface 1220 may provide an interface connection scheme for sharing the memory resources of the host 1100 and the memory resources of the storage device 1200. For example, the host interface 1220 may allow the storage controller 1240 to manage the host memory buffer 1120 and the internal buffer of the storage device 1200 with a single memory mapping. For example, the host interface 1220 may use the host memory buffer 1120 as the memory buffer of the storage device 1200.

[0044] The memory controller 1240 may control the overall operation of the memory device 1200. In addition, the memory controller 1240 may control transactions of the host memory buffer 1120. To this end, the memory controller 1240 may include an HMB controller 1243. The transactions of the host memory buffer 1120 may include a read request for reading data stored in the host memory buffer 1120 and a write request for writing data to the host memory buffer 1120.

[0045] For example, the HMB controller 1243 may send a read request to the host memory buffer 1120 to inquire about data stored in the host memory buffer 1120. In this case, the HMB controller 1243 may send a plurality of read requests to the host memory buffer 1120.

[0046] When multiple read requests are sent to the host memory buffer 1120, even if the host memory buffer 1120 does not respond to the request sent first, the HMB controller 1243 can continuously send subsequent read requests to the host memory buffer. In addition, the HMB controller 1243 can record information about the HMB addresses on the host memory buffer 1120 that correspond to the multiple read requests respectively. When damage to the read data corresponding to the multiple read requests is detected, the recorded information about the HMB addresses can be used to restore the corresponding data. Therefore, while improving the processing speed of the transaction of the host memory buffer 1120, the reliability of the data can be ensured.

[0047] The nonvolatile memory device 1260 may be provided as a storage medium of the memory device 1200. The nonvolatile memory device 1260 may include a flash memory, a magnetic random access memory (MRAM), a phase change random access memory (PRAM), a ferroelectric random access memory (FeRAM), or a resistive random access memory (RAM) (ReRAM), but example embodiments are not limited thereto.

[0048] As described above, regardless of whether the host memory buffer 1120 responds, the storage device 1200 may send a plurality of transaction requests to the host memory buffer 1120, and may record information 0 about an HMB address corresponding to each of the plurality of transactions on the host memory buffer 1120. In addition, when damage to the received data corresponding to the plurality of transactions is detected, the storage device 1200 may restore the data using the recorded HMB addresses on the host memory buffer 1120. Therefore, while the processing speed of the transaction of the host memory buffer 1120 is increased, the reliability of the data may be ensured.

[0049] Figure 2 It is shown Figure 1 1240 is a block diagram of an example of a configuration of the storage controller 1240. Figure 2 The storage controller 1240 includes a central processing unit (CPU) 1241 , an HMB controller 1243 , and a flash memory interface (NVM I / F) 1245 .

[0050] The CPU 1241 may control the overall operation of the storage device 1200. For example, the CPU 1241 may control the HMB controller 1243 and the flash interface 1245 to write data into the nonvolatile memory device 1260 or read data stored in the nonvolatile memory device 1260 in response to a command from the host 1100.

[0051] The HMB controller 1243 may control transactions of the host memory buffer 1120 to write data into or read data from the host memory buffer 1120 according to a request of the CPU 1241. Transactions of the host memory buffer 1120 may include read requests and write requests to the host memory buffer 1120.

[0052] The HMB controller 1243 may receive data corresponding to each of a plurality of transactions from the host memory buffer 1120, detect whether the received data is damaged, and collect HMB addresses corresponding to the damaged data on the host memory buffer 1120. To this end, the HMB controller 1243 may include a transaction controller 1242, a transaction recorder 1244, and an error detector 1246.

[0053] The transaction controller 1242 may control a plurality of transactions of the host memory buffer 1120. For example, the transaction controller 1242 may control a read request or a write request to the host memory buffer 1120.

[0054] In some implementations, when multiple read requests need to be sent to the host memory buffer 1120 , the transaction controller 1242 may send the multiple read requests to the host memory buffer 1120 without waiting for a response from the host memory buffer 1120 .

[0055] For example, the CPU 1241 may provide a plurality of read requests for reading data stored in the host memory buffer 1120 to the transaction controller 1242. The transaction controller 1242 may send the plurality of read requests provided by the CPU 1241 to the host memory buffer 1120 without delay. In this case, the transaction controller 1242 may send each of the plurality of read requests provided by the CPU 1241 to the host memory buffer 1120 upon receiving each of the plurality of read requests provided by the CPU 1241. However, in some embodiments, the transaction controller 1242 may send the plurality of read requests provided by the CPU 1241 substantially simultaneously, or may send the plurality of read requests provided by the CPU 1241 simultaneously and in parallel.

[0056] When a plurality of read requests are received from the transaction controller 1242 , the host memory buffer 1120 may transmit read data corresponding to each read request to the memory device 1200 .

[0057] The transaction controller 1242 may receive a plurality of read data corresponding to the plurality of read requests from the host memory buffer 1120 , and then may match the plurality of read data with the plurality of read requests. The transaction controller 1242 may provide a result of the matching to the CPU 1241 .

[0058] Furthermore, in some embodiments, when a write request needs to be sent to the host memory buffer 1120 , the transaction controller 1242 may perform an operation of reading data at an HMB address corresponding to the write request on the host memory buffer before sending the write request.

[0059] For example, the CPU 1241 may provide a write request for writing data to a specific HMB address on the host memory buffer 1120 to the transaction controller 1242. In this case, the transaction controller 1242 may not directly send the write request to the host memory buffer 1120. For example, the transaction controller 1242 may send a read request for a specific HMB address of the host memory buffer 1120 to the host memory buffer 1120 before sending the write request to the host memory buffer 1120. The read request for the HMB address (target of the write request) of the host memory buffer 1120 before sending the write request may be referred to as a “preliminary read request”.

[0060] The transaction controller 1242 may receive preliminary read data corresponding to the preliminary read request from the host memory buffer 1120. The transaction controller 1242 may recognize that damage to the preliminary read data does not exist, and may then send a write request for a specific HMB address to the host memory buffer 1120. As described above, the integrity of a location (target of a write request) of the host memory buffer 1120 may be first recognized, and when a write request is sent, errors occurring during write access to the host memory buffer 1120 may be reduced.

[0061] The transaction recorder 1244 may manage HMB address information on the host memory buffer 1120 for each of the plurality of transactions. For example, the transaction recorder 1244 may manage the HMB address on the host memory buffer 1120 that is the target of a read request, or may manage the HMB address on the host memory buffer 1120 that is the target of a write request.

[0062] In some embodiments, when a plurality of read requests for the host memory buffer 1120 are provided from the CPU 1241, the transaction recorder 1244 may record the HMB address on the host memory buffer 1120 as the target of each of the plurality of read requests in the address information table. In this case, the transaction recorder 1244 may match the plurality of read requests with the corresponding HMB addresses, and may record the matching result in the address information table.

[0063] In some embodiments, when multiple write requests to the host memory buffer 1120 are provided from the CPU 1241, the transaction recorder 1244 may record the HMB address on the host memory buffer 1120 as the target of each of the multiple write requests in the address information table. In this case, the transaction recorder 1244 may match the multiple write requests with the corresponding HMB addresses, and may record the matching results in the address information table. In some embodiments, the transaction recorder 1244 may also match the preliminary read request with each HMB address, and may record the matching results in the address information table.

[0064] The error detector 1246 may detect an error in each read data received from the host memory buffer 1120 (e.g., detect whether one or more errors are included in the read data). To this end, when data is written into the host memory buffer 1120, check data may be written together. The check data may include at least one of an error correction code (ECC) parity check and a cyclic redundancy check (CRC).

[0065] The error detector 1246 may detect an error using the read test data when reading data from the host memory buffer 1120. In some embodiments, the check data may be an ECC parity check and a CRC parity check, and the error detector 1246 may detect an error using the ECC parity check and the CRC parity check decoded by the decoding operation. In this case, the decoding operation may be performed by an ECC decoder and a CRC decoder, and the ECC decoder and the CRC decoder may be provided in the HMB controller 1243.

[0066] In some embodiments, the error detector 1246 may determine whether the detected error is a correctable error. For example, the detected error may be an error that can be corrected by an error correction block or the like using an ECC parity check and / or a CRC parity check. Alternatively, the detected error may be an error that is not correctable even by an error correction block or the like. The error correction block may be provided in the HMB controller 1243 to receive information about the error detected from the error detector 1246 and provide information about whether the error is correctable to the error detector 1246. However, example embodiments are not limited thereto, and when the amount of the detected error bit is greater than a predetermined reference, the error detector 1246 may determine that the detected error is uncorrectable.

[0067] The error detector 1246 may transmit information on whether the corresponding error is correctable together with an error detection result (or referred to as a result of error detection) to the transaction recorder 1244 .

[0068] The transaction recorder 1244 may update the address information table based on the error detection result of the error detector 1246 .

[0069] For example, in response to a plurality of read requests, an error may be detected in a portion of a plurality of read data received from the host memory buffer 1120. In this case, the transaction recorder 1244 may release the HMB address corresponding to the read data in which no error is detected, and may maintain the HMB address corresponding to the read data in which an error is detected. For example, the transaction recorder 1244 may maintain only the HMB address corresponding to the read data in which an error is detected in the address information table. Such a corrected HMB address may be used when the corresponding data is recovered.

[0070] In some implementations, the transaction recorder 1244 may update the address information table based on the error detection result of the error detector 1246 and whether the detected error is correctable.

[0071] For example, the transaction recorder 1244 may release the HMB address corresponding to the read data in which no error is detected and the HMB address corresponding to the read data in which an error is detected but the error is correctable. The transaction recorder 1244 may retain the HMB address corresponding to the read data in which an uncorrectable error is detected.

[0072] As described above, regardless of whether the host memory buffer 1120 responds, the storage controller 1240 may send multiple transaction requests to the host memory buffer 1120, and may record information about the HMB addresses on the host memory buffer 1120 that correspond to the multiple transactions respectively. When damage to the read data corresponding to the multiple read requests is detected, the information about such recorded HMB addresses may be used to recover the corresponding data. Therefore, while improving the transaction processing speed of the host memory buffer 1120, the reliability of the data may be ensured. In addition, before the write request is sent to the host memory buffer 1120, the integrity of the location of the host memory buffer 1120 (the target of the write request) may be checked, and when the write request is sent, errors occurring during write access to the host memory buffer 1120 may be reduced.

[0073] Figure 3 is a diagram illustrating an example of a process of sending a read request to a host memory buffer in the related art.

[0074] exist Figure 3 , it is assumed that the memory controller 200 sends a first read request to an n-th read request (eg, n is an integer greater than 1) for reading data from the host memory buffer 100 .

[0075] Continue to refer to Figure 3 , the memory controller 200 sends a first read request R_CMD1. The memory controller 1240 may receive first read data R_Data1 corresponding to the first read request R_CMD1 from the host memory buffer 1120. As described above, the memory controller 200 may receive a response to the first read request R_CMD1, and may then send a subsequent read request (eg, a second read request R_CMD2). Figure 3 In the example, R_CMD may represent a read request and R_Data may represent read data.

[0076] Similarly, the memory controller 200 may receive a response to the n-1th read request and may then send the nth read request to the host memory buffer 100. In some embodiments, Figure 2 The memory controller 1240 sends the nth read request to the host memory buffer 1120 without receiving a response to the (n−1)th read request.

[0077] like Figure 3 As shown in , when subsequent transactions are sent only if a response to a single transaction is received from the host memory buffer 100 , performance degradation may occur due to the long delay in the host memory buffer 100 processing the single outstanding transaction.

[0078] In addition, regardless of whether the host memory buffer 1120 responds, Figure 2 The storage controller 1240 can continuously send multiple transaction requests to the host memory buffer 1120. Therefore, the access speed to the data stored in the host memory buffer 1120 can be increased. In addition, Figure 2 The memory controller 1240 may collect all HMB addresses corresponding to data in which an error has occurred on the host memory buffer 1120, and may restore the error data using the collected HMB addresses. Therefore, the reliability of the data may also be ensured.

[0079] Figure 4A and Figure 4B It is shown Figure 2 1243. For example, Figure 4A shows the operation of the HMB controller 1243 when multiple read requests are sent to the host memory buffer 1120, and Figure 4B The operation of the HMB controller 1243 when a plurality of read data is received from the host memory buffer 1120 is shown.

[0080] Reference Figure 4A When it is necessary to query the data stored in the first to fourth HMB addresses of the host memory buffer 1120 , the CPU 1241 may send the first to fourth read requests R_CMD1 to R_CMD4 to the transaction controller 1242 .

[0081] The transaction controller 1242 may transmit each of the first to fourth read requests R_CMD1 to R_CMD4 to the host interface 1220 upon receiving each of the first to fourth read requests R_CMD1 to R_CMD4 .

[0082] Furthermore, the transaction controller 1242 may queue the first to fourth read requests R_CMD1 to R_CMD4 through the transaction recorder 1244 , and may record the HMB address for each request.

[0083] For example, the transaction controller 1242 may provide information about the first to fourth read requests R_CMD1 to R_CMD4 to the transaction recorder 1244. The transaction recorder 1244 may map each of the first to fourth read requests R_CMD1 to R_CMD4 to a corresponding HMB address on the host memory buffer 1120, and may record the mapped requests. A table recording each read request and the corresponding HMB address may be referred to as an address information table.

[0084] For ease of description, assume that the first HMB address is 0x1000, the second HMB address is 0x2000, the third HMB address is 0x3000, and the fourth HMB address is 0x4000. In this case, the transaction recorder 1244 may map the first read request R_CMD1 to the first HMB address 0x1000, the second read request R_CMD2 to the second HMB address 0x2000, the third read request R_CMD3 to the third HMB address 0x3000, and the fourth read request R_CMD4 to the fourth HMB address 0x4000.

[0085] exist Figure 4A , the transaction controller 1242 is shown as sequentially sending the first to fourth read requests R_CMD1 to R_CMD4 from the CPU 1241 to the host memory buffer 1120, but example embodiments are not limited thereto. For example, the transaction controller 1242 may send the first to fourth read requests R_CMD1 to R_CMD4 in parallel.

[0086] Reference Figure 4B The host memory buffer 1120 may receive the first to fourth read requests R_CMD1 to R_CMD4 and transmit the first to fourth read data R_Data1 to R_Data4 to the host interface 1220 in response to the first to fourth read requests R_CMD1 to R_CMD4.

[0087] The host interface 1220 may transmit the received first to fourth read data R_Data1 to R_Data4 to the error detector 1246 .

[0088] The error detector 1246 may perform an error detection operation on each of the first to fourth read data R_Data1 to R_Data4. The error detector 1246 may perform the error detection operation using check data included in each of the first to fourth read data R_Data1 to R_Data4.

[0089] In some embodiments, the check data may include an ECC parity check and a CRC parity check, and may be included in each of the first to fourth read data R_Data1 to R_Data4. The encoded ECC parity check and the encoded CRC parity check may be decoded by an ECC decoder and a CRC decoder, respectively. The ECC decoder and the CRC decoder may be provided in the HMB controller 1243.

[0090] The error detector 1246 may detect an error of each read data using the decoded ECC parity and the decoded CRC parity. The error detector 1246 may send the result of the error detection to the transaction recorder 1244.

[0091] For ease of description, assume that Figure 4B In this case, the transaction recorder 1244 may release HMB address information corresponding to the first read data R_Data1, the second read data R_Data2, and the fourth read data R_Data4 in which no error is detected.

[0092] For example, the transaction recorder 1244 may delete the first HMB address 0x1000, the second HMB address 0x2000, and the fourth HMB address 0x4000 from the address information table. In this case, information about the first read request R_CMD1, the second read request R_CMD2, and the fourth read request R_CMD4 mapped to the first HMB address 0x1000, the second HMB address 0x2000, and the fourth HMB address 0x4000, respectively, may also be deleted together.

[0093] The transaction recorder 1244 may maintain information about the third read request R_CMD3 and the third HMB address 0x3000 corresponding to the third read data R_Data3 in which an error has been detected. The transaction recorder 1244 may collect HMB address information corresponding to the read data in which an error has occurred on the host memory buffer 1120 in this manner.

[0094] In another embodiment, the error detector 1246 may determine whether the detected error is correctable, and may provide the error detection result and information about whether the error is correctable to the transaction recorder 1244. In this case, the transaction recorder 1244 may maintain only the information about the HMB address corresponding to the data in which the uncorrectable error is detected, and may release the information about the remaining HMB addresses.

[0095] For example, in Figure 4B , it is assumed that errors have occurred in the first read data R_Data1 and the third read data R_Data3 , and an uncorrectable error has occurred in the third read data R_Data3 .

[0096] In this case, the error detector 1246 may detect errors in the first read data R_Data1 and the third read data R_Data3, and may determine that an uncorrectable error has occurred in the third read data R_Data3. The error detector 1246 may notify the transaction recorder 1244 that an uncorrectable error has occurred in the third read data R_Data3. The transaction recorder 1244 may release the HMB addresses corresponding to the second read data R_Data2 and the fourth read data R_Data4 in which no error has been detected, and the HMB address corresponding to the first read data R_Data1 in which a correctable error has been detected. The transaction recorder 1244 may maintain information about the HMB address corresponding to the third read data R_Data3 in which an uncorrectable error has been detected. In this way, HMB address information corresponding to the read data in which an uncorrectable error has been detected on the host memory buffer 1120 may be collected.

[0097] In some embodiments, the error detector 1246 may transmit the error detection result and the decoded first to fourth read data R_Data1 to R_Data4 to the transaction controller 1242 .

[0098] The transaction controller 1242 may transmit the first read data R_Data1 , the second read data R_Data2 , and the fourth read data R_Data4 , in which no error is detected, to the CPU 1241 based on the error detection result.

[0099] In another example, the error detector 1246 may provide the error detection result and information about whether the corresponding error is correctable to the transaction controller 1242. In this case, the transaction controller 1242 may transmit the second read data R_Data2 and the fourth read data R_Data4 in which no error is detected to the CPU 1241, and may transmit the first read data R_Data1 in which an error has been detected but corrected by the error correction block to the CPU 1241. The error correction block may be provided in the HMB controller 1243, but example embodiments are not limited thereto, and the error correction block may be provided in the memory controller 1240 to be electrically connected to the HMB controller 1243.

[0100] exist Figure 4B, the transaction controller 1242 is shown as receiving the first read data R_Data1 to the fourth read data R_Data4 from the error detector 1246, but this is merely exemplary and example embodiments are not limited thereto. As another example, the transaction controller 1242 may receive the first read data R_Data1 to the fourth read data R_Data4 from the host interface 1220, and may send the first read data R_Data1, the second read data R_Data2, and the fourth read data R_Data4 in which no error is detected to the CPU 1241 based on the error detection result received from the error detector 1246.

[0101] exist Figure 4B , the host memory buffer 1120 is shown as sequentially sending the first read data R_Data1 to the fourth read data R_Data4 to the host interface 1220, but example embodiments are not limited thereto. As another example, the read data may be transmitted in the same manner as Figure 4B 1240. The transaction controller 1242 may match the read command transmitted to the host interface 1220 and the read data received from the host interface 1220 with each other, and may provide the matched result to the CPU 1241.

[0102] As described above, regardless of whether the host memory buffer 1120 responds, the HMB controller 1243 may continuously send multiple transaction requests to the host memory buffer 1120. Continuous transmission can increase the access speed of the storage device 1200 to the host memory buffer 1120. In addition, the HMB controller 1243 may record all HMB addresses corresponding to the multiple transactions, detect errors in the data corresponding to each of the multiple transactions, and collect all position information about the HMB addresses corresponding to the data in which the error has occurred. Therefore, the corresponding position information can be used to recover the data in which the error has occurred.

[0103] Figure 5 It is shown Figure 1 A flowchart of an example of the operation of the storage device 1200.

[0104] In operation S110, when the storage device 1200 needs to send multiple read requests to the host memory buffer 1120 to query the data stored in the host memory buffer 1120, the storage device 1200 records the HMB addresses on the host memory buffer that respectively correspond to the multiple read requests. In some embodiments, the storage device 1200 may match the HMB address on the host memory buffer 1120 that is the target of each of the multiple read requests with the multiple read requests, and may record the matching result in the address information table.

[0105] In operation S120, the storage device 1200 sends a plurality of read requests to the host memory buffer 1120. The storage device 1200 may send the plurality of read requests sequentially to the host memory buffer 1120 regardless of the response from the host memory buffer 1120. In some embodiments, the storage device 1200 may send the plurality of read requests to the host memory buffer 1120 in parallel substantially simultaneously.

[0106] In operation S130 , the memory device 1200 receives a plurality of read data corresponding to a plurality of read requests from the host memory buffer 1120 .

[0107] In operation S140 , the memory device 1200 performs an error detection operation on each of a plurality of read data.

[0108] In operation S150, the storage device 1200 updates the address information table based on the error detection result. For example, the storage device may update the address information table to maintain only the HMB address corresponding to the read data requiring a data recovery operation (or referred to as a recovery operation).

[0109] In some embodiments, when an error is detected in a portion of a plurality of read data, the memory device 1200 may release an HMB address corresponding to the read data in which an error is not detected, and may maintain an HMB address corresponding to the read data in which an error is detected.

[0110] In some embodiments, the storage device 1200 may update the address information table based on the error detection result and whether the detected error is correctable. The storage device 1200 may release the HMB address corresponding to the read data in which no error is detected and the HMB address corresponding to the read data in which a correctable error has been detected, and may maintain the HMB address corresponding to the read data in which an uncorrectable error is detected.

[0111] As described above, regardless of whether the host memory buffer 1120 responds, the memory device 1200 may send a plurality of transaction requests to the host memory buffer 1120, and may record information about HMB addresses respectively corresponding to the plurality of transactions on the host memory buffer 1120. In addition, the memory device 1200 may collect HMB address information corresponding to data in which an error has occurred, and the collected information may be used later in a data recovery operation for the HMB address.

[0112] Fig. 6A It is shown Figure 5 Flowchart of an example of operation S150.

[0113] In operation S151 , the memory device 1200 checks an error detection result of each read data.

[0114] In operation S152 , the storage device 1200 checks whether an error has occurred in the corresponding read data.

[0115] When no error occurs in the read data, in operation S153, the memory device 1200 releases the HMB address and the read request on the host memory buffer 1120 corresponding to the read data. In some embodiments, the memory device 1200 may delete the HMB address and the read request on the host memory buffer 1120 corresponding to the read data from the address information table.

[0116] Furthermore, when an error occurs in reading data, the memory device 1200 maintains an HMB address corresponding to the read data and information associated with the read request in the host memory buffer 1120 in operation S154 .

[0117] As described above, the memory device 1200 may collect HMB addresses corresponding to read data in which an error has been detected among a plurality of read data received from the host memory buffer 1120 .

[0118] Figure 6B It is shown Figure 5 Flowchart of another example of operation S150.

[0119] In operation S151 , the memory device 1200 checks an error detection result of each read data.

[0120] In operation S152 , the storage device 1200 checks whether an error has occurred in the corresponding read data.

[0121] When no error occurs in reading the data, the memory device 1200 releases the HMB address and the read request on the host memory buffer 1120 corresponding to the read data in operation S155. In some embodiments, the memory device 1200 may delete the HMB address corresponding to the data and the read request on the host memory buffer 1120 from the address information table.

[0122] When an error occurs in the read data, the memory device 1200 determines whether the read data is correctable in operation S156. When the error can be corrected by an error correction block or the like, the memory device 1200 may release the HMB address and the read request on the host memory buffer 1120 corresponding to the read data in operation S155. When the error that occurred is an uncorrectable error, the memory device 1200 may maintain information associated with the HMB address and the read request corresponding to the data in which the uncorrectable error has occurred in operation S157.

[0123] As described above, the memory device 1200 may collect HMB addresses corresponding to uncorrectable read data among a plurality of read data received from the host memory buffer 1120 .

[0124] Figure 7 is a diagram illustrating an example of a method of operating the memory device 1200 .

[0125] In operation S210 , when the storage device 1200 needs to send a plurality of read requests to the host memory buffer 1120 to query data stored in the host memory buffer 1120 , the storage device 1200 records HMB addresses on the host memory buffer 1120 that respectively correspond to the plurality of read requests.

[0126] In operation S220 , the memory device 1200 sends a plurality of read requests to the host memory buffer 1120 without delay.

[0127] In operation S230, the storage device 1200 checks whether a plurality of read data are received from the host memory buffer 1120 in response to the plurality of read requests. In some embodiments, the storage device 1200 may check whether there is no response from the host memory buffer 1120 within a first time. It will be appreciated by those skilled in the art that the first time may be set to vary according to the communication environment between the storage device 1200 and the host 1100.

[0128] When the read data for the corresponding read request is not received from the host memory buffer 1120 within the first time, the HMB address corresponding to the read data on the host memory buffer 1120 is stored in operation S240. For example, a link close, a PCIe reset, or an NVMe reset, etc. may prevent the storage device 1200 from receiving a response from the host memory buffer 1120. In this case, the HMB address corresponding to the read request on the host memory buffer 1120 may be maintained so as to be processed in the same manner as if an error occurred in the corresponding read data.

[0129] In operation S250, the memory device 1200 checks whether there is an error in the plurality of read data. In some embodiments, the memory device 1200 may perform an error detection operation on each of the plurality of read data.

[0130] When an error is detected in a portion of the plurality of read data, an HMB address corresponding to the read data in which the error is detected is stored in operation S240 , and an HMB address corresponding to the read data in which the error is not detected is released in operation S260 .

[0131] In another example, when an error is detected in a portion of a plurality of read data, an HMB address corresponding to the read data in which a correctable error is detected may be released, and an HMB address corresponding to the read data in which an uncorrectable error is detected may be maintained.

[0132] When no error is detected in all of the plurality of read data, all HMB addresses corresponding to the plurality of read data may be released, and the address information table may be reset.

[0133] Fig. 8A and Figure 8B It is shown Figure 2 1243. For example, Fig. 8A The operation of the HMB controller 1243 sending a plurality of preliminary read requests corresponding to a plurality of write requests to the host memory buffer 1120 is shown, and Figure 8B The operation of the HMB controller 1243 when a plurality of preliminary read data is received is shown.

[0134] Reference Fig. 8A When data needs to be written to the first HMB address to the fourth HMB address of the host memory buffer 1120 , the CPU 1241 may send the first write request W_CMD1 to the fourth write request W_CMD4 to the transaction controller 1242 .

[0135] The transaction controller 1242 may read data at an HMB address corresponding to a corresponding read request on the host memory buffer 1120 instead of directly transmitting the first to fourth write requests W_CMD1 to W_CMD4 to the host interface 1220 .

[0136] For example, Fig. 8A As shown in FIG. 1 , the transaction controller 1242 may generate first to fourth preliminary read requests Pre_R_CMD1 to Pre_R_CMD4 in response to the first to fourth write requests W_CMD1 to W_CMD4 . Then, the transaction controller 1242 may send the first to fourth preliminary read requests Pre_R_CMD1 to Pre_R_CMD4 to the host interface 1220 .

[0137] Furthermore, the transaction controller 1242 may queue the first to fourth write requests W_CMD1 to W_CMD4 through the transaction recorder 1244 , and may record an HMB address corresponding to each write request.

[0138] For example, the transaction controller 1242 may provide information about the first to fourth write requests W_CMD1 to W_CMD4 to the transaction recorder 1244. The transaction controller 1242 may provide the transaction controller 1242 with first to fourth preliminary read requests Pre_R_CMD1 to Pre_R_CMD4 corresponding to the first to fourth write requests W_CMD1 to W_CMD4, respectively.

[0139] The transaction recorder 1244 may map and record the first to fourth write requests W_CMD1 to W_CMD4 and preliminary write requests and HMB addresses respectively corresponding to the first to fourth write requests W_CMD1 to W_CMD4 .

[0140] For ease of description, assume that the first HMB address is 0x1000, the second HMB address is 0x2000, the third HMB address is 0x3000, and the fourth HMB address is 0x4000. In this case, the transaction recorder 1244 may map the first write request W_CMD1 to the first preliminary read request Pre_R_CMD1 and 0x1000, the second write request W_CMD2 to the second preliminary read request Pre_R_CMD2 and 0x2000, the third write request W_CMD3 to the third preliminary read request Pre_R_CMD3 and 0x3000, and the fourth write request W_CMD4 to the fourth preliminary read request Pre_R_CMD4 and 0x4000.

[0141] exist Fig. 8A , the transaction controller 1242 is shown as sending the first preliminary read requests Pre_R_CMD1 to the fourth preliminary read requests Pre_R_CMD4 to the host interface 1220 when generating the first preliminary read requests Pre_R_CMD1 to the fourth preliminary read requests Pre_R_CMD4, but example embodiments are not limited thereto. For example, the transaction controller 1242 may schedule the first preliminary read requests Pre_R_CMD1 to the fourth preliminary read requests Pre_R_CMD4 to be sent in parallel.

[0142] As described above, the HMB controller 1243 may first make a read request to a location to be written on the host memory buffer 1120 before making a write request to the host memory buffer 1120 , and thus the integrity of the location to be written may be checked to improve reliability of data.

[0143] Reference Figure 8BThe host memory buffer 1120 may receive the first to fourth preliminary read requests Pre_R_CMD1 to Pre_R_CMD4 and may transmit the first to fourth preliminary read data Pre_R_Data1 to Pre_R_Data4 to the host interface 1220 in response to the first to fourth preliminary read requests Pre_R_CMD1 to Pre_R_CMD4.

[0144] The host interface 1220 may transmit the first to fourth preliminary read data Pre_R_Data1 to Pre_R_Data4 to the error detector 1246 .

[0145] The error detector 1246 may perform an error detection operation on each of the first to fourth preliminary read data Pre_R_Data1 to Pre_R_Data4. The error detector 1246 may perform an error detection operation using check data included in each of the first to fourth preliminary read data Pre_R_Data1 to Pre_R_Data4.

[0146] In some embodiments, the check data may include ECC parity and CRC parity and may be included in each of the first to fourth preliminary read data Pre_R_Data1 to Pre_R_Data4. The error detector 1246 may detect an error of each preliminary read data using the decoded ECC parity and the decoded CRC parity.

[0147] The error detector 1246 may send the result of the error detection to the transaction controller 1242 and the transaction recorder 1244 .

[0148] In some embodiments, the error detector 1246 may determine whether the detected error is correctable by an error correction block, etc. In this case, the error detector 1246 may generate information associated with the result of the error detection and whether the detected error is correctable.

[0149] The transaction controller 1242 may selectively transmit a write request corresponding to preliminary read data in which no error occurs among the plurality of preliminary read data to the host interface 1220 based on a result of error detection by the error detector 1246 .

[0150] In some embodiments, the transaction controller 1242 may send write requests corresponding to preliminary read data in which no error has occurred and preliminary read data in which a correctable error has occurred among multiple preliminary read data to the host interface 1220 based on the results of error detection by the error detector 1246 and whether the detected error is correctable.

[0151] For ease of description, Figure 8B , it is assumed that an error is detected in the third preliminary read data Pre_R_Data3. In this case, the transaction controller 1242 may send a first write request W_CMD1, a second write request W_CMD2, and a fourth write request W_CMD4 corresponding to the first preliminary read data Pre_R_Data1, the second preliminary read data Pre_R_Data2, and the fourth preliminary read data Pre_R_Data4, respectively, in which no error is detected, to the host interface 1220.

[0152] In this case, the transaction controller 1242 may check a write request to an HMB address in which no error occurs based on a mapping relationship between a preliminary read request, an HMB address, and a write request on the address information table.

[0153] When sending the first write request W_CMD1, the second write request W_CMD2, and the fourth write request W_CMD4, the transaction controller 1242 may send the check data together. In some embodiments, the check data may include ECC parity and CRC parity, and the encoded check data may be included in each write request and sent.

[0154] Continue to refer to Figure 8B , the transaction recorder 1244 may release the HMB address information corresponding to the first preliminary read data Pre_R_Data1, the second preliminary read data Pre_R_Data2, and the fourth preliminary read data Pre_R_Data4 in which no error is detected. For example, the transaction recorder 1244 may delete the first HMB address 0x1000, the second HMB address 0x2000, and the fourth HMB address 0x4000 from the address information table. In this case, the transaction recorder 1244 may also delete the information about the first preliminary read request Pre_R_CMD1, the second preliminary read request Pre_R_CMD2, and the fourth preliminary read request Pre_R_CMD2 and the first write request W_CMD1, the second write request W_CMD2, and the fourth write request W_CMD4 mapped to the first HMB address 0x1000, the second HMB address 0x2000, and the fourth HMB address 0x4000, respectively.

[0155] The transaction recorder 1244 may hold the third preliminary read request Pre_R_CMD3 corresponding to the third preliminary read data Pre_R_Data3 in which an error has been detected and information about the third HMB address 0x3000. The transaction recorder 1244 may collect HMB address information about the HMB address corresponding to the preliminary read data in which an error has occurred in this manner.

[0156] In some embodiments, the transaction recorder 1244 may release HMB address information corresponding to preliminary read data in which no error occurred and preliminary read data in which correctable errors occurred among multiple preliminary read data based on the error correction result and whether the detected error is correctable, and maintain the HMB address corresponding to the preliminary read data in which uncorrectable errors occurred.

[0157] As described above, the HMB controller 1243 may send a preliminary read request to a location on the host memory buffer 1120 to be written before making a write request to the host memory buffer 1120. Then, the HMB controller 1243 may send only a write request corresponding to preliminary read data in which no error exists (the preliminary read data corresponds to the preliminary read request), or send preliminary read data in which a correctable error has occurred. In addition, the HMB controller 1243 may collect HMB address information corresponding to the preliminary read data in which an error has occurred. Therefore, when data is written to the host memory buffer 1120, the reliability of the data can be improved.

[0158] Fig. 9 It is shown Figure 1 A flowchart of an example of the operation of the storage device 1200.

[0159] In operation S310 , when the storage device 1200 needs to send a plurality of write requests to the host memory buffer 1120 to write data in the host memory buffer 1120 , the storage device 1200 writes an HMB address corresponding to each of the plurality of write requests on the host memory buffer 1120 .

[0160] In operation S320, the storage device 1200 generates a plurality of preliminary read requests (or pre-read requests) corresponding to the plurality of write requests, respectively. The plurality of preliminary read requests may be requests for reading data stored in destination addresses of the plurality of write requests corresponding to the plurality of preliminary read requests.

[0161] In operation S330, the storage device 1200 sends multiple preliminary read requests to the host memory buffer 1120. In some embodiments, the storage device 1200 may send multiple preliminary read requests continuously regardless of the response of the host memory buffer. In another example, the storage device 1200 may send multiple preliminary read requests in parallel.

[0162] In operation S340 , the memory device 1200 receives a plurality of preliminary read data (or referred to as pre-read data) respectively corresponding to the plurality of preliminary read requests from the host memory buffer 1120 .

[0163] In operation S350 , the memory device 1200 performs an error detection operation on each of the plurality of preliminary read data.

[0164] In operation S360, the storage device 1200 transmits a portion of the plurality of write requests to the host memory buffer 1120 based on the error detection result. In some embodiments, the storage device 1200 transmits only write requests corresponding to preliminary read data in which no error occurs among the plurality of write requests to the host interface 1220.

[0165] In another example, the storage device 1200 may send a portion of the plurality of write requests to the host memory buffer 1120 according to the error detection result and whether the detected error is correctable. For example, the storage device 1200 may send only a write request corresponding to preliminary read data in which no error has occurred or a correctable error has occurred, among the plurality of write requests, to the host interface 1220.

[0166] As described above, the storage device 1200 may send a preliminary read request to the HMB address (target of the write request) before sending a write request to the host memory buffer 1120, and may send a write request only when no error is detected or a correctable error is detected in the preliminary read data for the preliminary read request. Therefore, when the storage device 1200 has write access to the host memory buffer 1120, the reliability of the data can be further improved.

[0167] Fig.10 It is shown Fig. 9 Flowchart of an example of operation S360.

[0168] In operation S361 , the memory device 1200 checks an error detection result of each of a plurality of preliminary read data.

[0169] In operation S362 , the storage device 1200 identifies whether an error has occurred in the corresponding preliminary read data.

[0170] When no error occurs in the corresponding preliminary read data, in operation S363, the storage device 1200 sends a write request corresponding to the corresponding preliminary read data to the host memory buffer 1120. In some embodiments, when the detected error is correctable, the storage device 1200 also sends a write request corresponding to the corresponding preliminary read data to the host memory buffer 1120.

[0171] In operation S364, the storage device 1200 releases the HMB address corresponding to the preliminary read data in which no error occurs on the host memory buffer 1120. In some embodiments, the storage device 1200 deletes the HMB address corresponding to the corresponding preliminary read data, the preliminary read request, and the write request information together.

[0172] When an error occurs in the corresponding preliminary read data, in operation S365, the storage device 1200 maintains the HMB address information and the write request information corresponding to the preliminary read data in which the error has occurred. The storage device 1200 may send a write request corresponding to the corresponding preliminary read data to the host memory buffer 1120 after recovering the preliminary read data in which the error has occurred, instead of directly sending the write request to the host memory buffer 1120.

[0173] In some embodiments, the storage device 1200 may release preliminary read data in which no error has occurred and preliminary read data in which a correctable error has occurred among a plurality of preliminary read data, and may maintain HMB address information corresponding to the preliminary read data in which an uncorrectable error has occurred. The storage device 1200 may send a write request corresponding to the preliminary read data to the host memory buffer 1120 after recovering the preliminary read data in which the uncorrectable error has occurred, instead of directly sending the write request to the host memory buffer 1120.

[0174] Fig.11 is a diagram illustrating an example of a storage controller 1240_1. Fig.11 The storage controller 1240_1 and Figure 2 Therefore, the same or similar elements are denoted by the same or similar reference numerals, and redundant descriptions will be omitted below.

[0175] Fig.11 The storage controller 1240_1 includes an HMB controller 1243_1. Figure 2 Different from the HMB controller 1243 , the HMB controller 1243_1 also includes a history management module 1247 and a recovery management module 1248 .

[0176] The history management module 1247 may record an access history of the storage device 1200 to the host memory buffer 1120 , and may manage a data synchronization operation between the nonvolatile memory device 1260 and the host memory buffer 1120 .

[0177] The recovery management module 1248 may manage a data recovery operation for an HMB address at which data corruption occurs based on the history information of the history management module 1247 .

[0178] As reference Figure 2 As described above, when power is supplied to the memory system 1000A, the memory controller 1240_1 may load required data among a plurality of data stored in the nonvolatile memory device 1260 in the host memory buffer 1120. The host memory buffer 1120 may store mapping data for address mapping of the nonvolatile memory device 1260 and management data for management or control of the memory device 1200, and may temporarily store user data to be written in the memory device 1200.

[0179] The data stored in the host memory buffer 1120 may be updated. For example, when the host 1100 writes user data to the nonvolatile memory device 1260, mapping data and the like may be updated. Such an update may result in a difference between the mapping data stored in the nonvolatile memory device 1260 and the mapping data stored in the host memory buffer 1120. Therefore, the memory system 1000A may periodically flush the data stored in the host memory buffer 1120 to the nonvolatile memory device 1260 so that the data of the nonvolatile memory device 1260 and the data of the host memory buffer 1120 are synchronized with each other.

[0180] The history management module 1247 may control the storage controller 1240_1 to periodically perform such a flushing operation.

[0181] When the mapping data stored in the host memory buffer 1120 and the mapping data stored in the nonvolatile memory device 1260 match each other through a flush operation, etc., the data may be considered as “clean” data. On the other hand, when the mapping data stored in the host memory buffer 1120 and the mapping data stored in the nonvolatile memory device 1260 do not match each other through an update operation, etc., the data may be considered as “dirty” data.

[0182] In some implementations, the recovery management module 1248 may determine whether data stored in an error HMB address (an HMB address corresponding to data in which an error has occurred) has been updated.

[0183] When the data of the HMB address at which an error has occurred is not updated after being loaded into the host memory buffer 1120 or is not updated after the latest flush operation, the recovery management module 1248 may obtain clean data from the nonvolatile memory device 1260 and load the obtained data into the HMB address on the host memory buffer 1120. The term “latest flush operation” may refer to a flush operation that is closest in time to “a time point for determining whether data has been updated”.

[0184] Furthermore, when the data of the HMB address at which an error has occurred is dirty, the recovery management module 1248 may recover the data of the HMB address at which the error has occurred using the log of the HMB address at which the error has occurred.

[0185] For example, when the data of the HMB address at which an error occurred is updated after the latest flush operation, or is loaded into the host memory buffer 1120 for the first time and then updated but the flush operation is not performed, the recovery management module 1248 can use the log of the HMB address at which an error occurred to recover the data of the HMB address at which an error occurred.

[0186] The log may be historical information about update items of data stored in the HMB address. The log may be generated in response to an update operation of data stored in the host memory buffer 1120. The log may include a plurality of log data, and each of the plurality of log data may include an address and data written in the corresponding address, so that which data is written to which address is perceived through the log data.

[0187] In some embodiments, the history management module 1247 may generate log data in response to an update operation of the data stored in the HMB address. The log data may be stored in the internal memory 1249. However, example embodiments are not limited thereto, and the log may be stored in the non-volatile memory device 1260 according to the size of the log data or the design of the storage system 1000A.

[0188] The recovery management module 1248 may use such a log to perform data recovery operations on the location of the host memory buffer 1120 where the error has occurred to replay the write access from the most recent flush operation to the point in time when the data corruption was identified.

[0189] In some embodiments, the HMB controller 1243_1 may resend a read request for the location on the host memory buffer 1120 at which the recovery was completed after the data recovery operation is completed. The HMB controller 1243_1 may determine whether to continue using the location on the host memory buffer 1120 at which the recovery was completed based on whether an error has occurred in the data of the read request.

[0190] For example, the recovery management module 1248 may notify the transaction controller 1242 of the completion of the data recovery operation after the data recovery operation is completed. The transaction controller 1242 may send a re-read request for the recovered HMB address to the host memory buffer 1120 through the host interface 1220. In some embodiments, the transaction controller 1242 may send multiple re-read requests. In this case, the transaction recorder 1244 may record the HMB addresses corresponding to the multiple re-read requests.

[0191] The host memory buffer 1120 may transmit the re-read data to the host interface 1220 in response to the re-read request.

[0192] The error detector 1246 may receive the re-read data through the host interface 1220 and may detect whether an error has occurred in the re-read data.

[0193] When no error is detected in re-reading data, data stored in the corresponding HMB address may be reused by the memory controller 1240_1 .

[0194] In addition, when an error is detected in re-reading data, the recovery management module 1248 may mark the corresponding HMB address as a bad area and may prevent data from being stored in the corresponding location. Therefore, recovery overhead caused by repeated occurrence of errors may be prevented.

[0195] In some embodiments, the recovery management module 1248 may remap the corresponding HMB address to a different HMB address in the host memory buffer 1120. In some embodiments, data of the HMB address at which an error occurs again may be loaded into the remapped HMB address and used, but exemplary embodiments are not limited thereto. For example, data of the HMB address at which an error occurs again may be loaded into the internal memory 1249 and used.

[0196] As described above, the HMB controller 1243_1 may collect all locations of the HMB address at which an error has occurred to perform a data recovery operation on the corresponding locations.

[0197] The HMB controller 1243_1 may collect only the locations of the HMB addresses at which the uncorrectable error has occurred to perform a data recovery operation on the corresponding locations.

[0198] In addition, the HMB controller 1243_1 may determine whether data of the HMB address at which an error has occurred has been updated. When data of the HMB address at which an error has occurred has been updated, the HMB controller 1243_1 may restore the data using the log data.

[0199] In addition, a read access to the HMB address at which the recovery is completed may be performed again after the recovery operation is completed. When an error occurs, the corresponding area on the host memory buffer 1120 may be marked as a bad area to prevent data from being stored in the corresponding location. Therefore, the access speed to the host memory buffer 1120 may be increased, and the recovery operation may be performed on all data in which an error occurs, so as to improve the reliability of the data and improve the efficiency of the recovery operation.

[0200] Fig.12 It is shown Fig.11 For ease of description, it is assumed that the memory controller 1240_1 sends a write request to the host memory buffer 1120.

[0201] Reference Fig.12 , the transaction controller 1242 may send the first write request W_CMD1 to the host interface 1220. In some embodiments, when recognizing that there is no error in the data stored in the target HMB address of the first write request W_CMD1, the transaction controller 1242 may send the first write request W_CMD1.

[0202] The transaction controller 1242 may transmit information Inf_W_CMD on the write request to the history management module 1247. The information Inf_W_CMD on the write request may include an HMB address and data on the host memory buffer 1120 corresponding to the write request.

[0203] The history management module 1247 may generate log data based on the information Inf_W_CMD about the write request.

[0204] In some embodiments, the history management module 1247 may determine whether an update has occurred in the data stored in the HMB address corresponding to the write request on the host memory buffer 1120. When an update occurs at the corresponding HMB address, log data may be generated. Fig.12 In the example of , the log data may include an HMB address and data on the host memory buffer 1120 corresponding to the first write request W_CMD1.

[0205] The history management module 1247 can store the generated log data in the internal memory 1249. A plurality of log data stored in this manner can constitute Fig.11 The log.

[0206] In some embodiments, due to multiple log data generated in response to the update operation of the data stored in the HMB address, the space allocated to the log can be fully used. In this case, the internal memory 1249 can send a notification Ntf_Journal_full that the log is full to the history management module 1247.

[0207] The history management module 1247 may determine whether a flush operation is required based on the notification Ntf_Journal_full that the journal is full. The history management module 1247 may send a notification Ntf_Flush that a flush operation is required to the transaction controller 1242. The transaction controller 1242 may generate an instruction for performing a flush operation. As described above, whether a flush operation is required may be determined based on whether the capacity allocated to the journal is full, and data synchronization between the nonvolatile memory device 1260 and the host memory buffer 1120 may be performed through the flush operation.

[0208] In some embodiments, the history management module 1247 may generate history information Inf_history. The history information Inf_history may include information about the history of executed flash operations. In some embodiments, in addition to information about the history of executed flash operations, the history information Inf_history may also include write access information about HMB addresses.

[0209] Then, the recovery management module 1248 may perform a data recovery operation based on the history information Inf_history.

[0210] As mentioned above, Fig.11 The HMB controller 1243_1 may record information about access to the host memory buffer 1120 and history information about data synchronization between the nonvolatile memory device 1260 and the host memory buffer 1120, and may perform a data recovery operation based on the recorded information and the recorded history information.

[0211] Fig.13 It is shown Fig.11 For ease of description, it is assumed that an error occurs at the HMB address 0x3000 corresponding to the third read request R_CMD3.

[0212] The recovery management module 1248 may perform a recovery operation based on the HMB address at which an error has occurred. In some embodiments, the recovery management module 1248 may receive location information Inf_Er_Addr at which an error has occurred on the host memory buffer from the transaction recorder 1244 .

[0213] Reference Fig.13 , the recovery management module 1248 can sense whether an error has occurred at the HMB address 0x3000 based on the location information Inf_Er_Addr at which the error has occurred on the host memory buffer 1120.

[0214] The recovery management module 1248 may determine whether the data stored in the HMB address where the error has occurred has been updated. In some embodiments, the recovery management module 1248 may determine whether the data stored in the HMB address where the error has occurred has been updated based on the history information Inf_history received from the history management module 1247.

[0215] In some embodiments, the history information Inf_history may include information about the history of executed flash operations, and the recovery management module 1248 may determine whether the update is performed by referring to the log data together. In some embodiments, in addition to the information about the history of executed flash operations, the history information Inf_history may also include write access information about the HMB address, and the recovery management module 1248 may determine whether the update is performed based on the history information Inf_history.

[0216] The recovery management module 1248 may determine whether data of the HMB address 0x3000 corresponding to the third read request R_CMD3 has been updated according to the history information Inf_history.

[0217] When data of HMB address 0x3000 is not updated after being loaded into host memory buffer 1120 or after the latest flush operation, recovery management module 1248 may generate recovery control signal Ctr_Recovery for “obtaining clean data from nonvolatile memory device 1260 and loading clean data into HMB address 0x3000”.

[0218] Optionally, when the data of HMB address 0x3000 has been updated after the latest flush operation, or when the flush operation is not performed after the data of HMB address 0x3000 is loaded into the host memory buffer 1120 and then updated, the recovery management module 1248 may generate a recovery control signal Ctr_Recovery for "recovering the data of the HMB address using log data about HMB address 0x3000 where an error has occurred."

[0219] In some embodiments, the recovery management module 1248 may generate a recovery control signal Ctr_Recovery for “re-executing a write access from the most recent flush operation to the time point when data corruption was identified” based on log data stored in the internal memory 1249 .

[0220] In some embodiments, the recovery control signal Ctr_Recovery may be sent to the transaction controller 1242. The transaction controller 1242 may generate an instruction for performing a recovery operation based on the recovery control signal Ctr_Recovery. For example, an instruction for loading data from the non-volatile memory device 1260 may be sent to the CPU 1241, or an access request for reloading the loaded data into the host memory buffer 1120 may be sent to the host interface 1220.

[0221] As described above, the history management module 1247 may enable recovery operations to be performed on all locations on the host memory buffer 1120 where errors have occurred, and may allow recovery operations to be performed based on whether the corresponding locations have been updated and log data, thereby improving the accuracy of the recovery operation.

[0222] Fig.14 It is shown Fig.11 A flowchart of an example of the operation of the storage controller 1240_1.

[0223] In operation S410, the storage controller 1240_1 determines whether a data recovery operation is required. In some embodiments, the storage controller 1240_1 may identify an HMB address at which an error has occurred as an HMB address requiring a data recovery operation. In another embodiment, only an HMB address at which an uncorrectable error has occurred may be identified as an HMB address requiring a data recovery operation.

[0224] For example, the storage controller 1240_1 may check whether a data recovery operation is required, a target of a recovery operation based on “collected HMB addresses at which an error has occurred”, and information associated with whether the error is recoverable.

[0225] In operation S420, the storage controller 1240_1 performs a data recovery operation for the HMB address that is determined to require a recovery operation. In some embodiments, the storage controller 1240_1 may determine whether the data of the HMB address of the recovery target has been updated after the latest flush operation, or whether the flush operation has not been performed after the data of the HMB address of the recovery target is loaded into the host memory buffer 1120 and then updated. When the data is not updated, clean data may be obtained from the non-volatile memory device 1260 and then loaded into the corresponding HMB address on the host memory buffer 1120. In addition, when the data has been updated, a data recovery operation may be performed in the location of the host memory buffer 1120 where an error has occurred based on the log data.

[0226] In operation S430, the memory controller 1240_1 sends a read request to the restored corresponding HMB address of the host memory buffer 1120. Since the read request is a request for reading data again in a location where the restore operation has been completed, the read request may be referred to as a 're-read request'.

[0227] In operation S440, the storage controller 1240_1 detects whether an error has occurred in the read data received from the host memory buffer 1120 in response to the re-read request. Because the read data is data read by the re-read request, the read data may be referred to as "re-read data". In some embodiments, the storage controller 1240_1 may use check data included in the re-read data to determine whether an error has occurred. In some embodiments, the check data may be an ECC parity check and a CRC parity check, and may be included in the re-read data. The storage controller 1240_1 may use the decoded ECC parity check and the decoded CRC parity check to detect an error in the re-read data.

[0228] When an error occurs in rereading data, in operation S450 , the storage controller 1240_1 marks the corresponding HMB address as a bad area and may prevent data from being stored in the corresponding location. In some embodiments, the storage controller 1240_1 may remap the corresponding HMB address to a different HMB address in the host memory buffer 1120 .

[0229] In addition, when no error is detected in the re-read data, it can be determined that the corresponding HMB address is still available. Therefore, the data stored in the corresponding HMB address can be reused by the memory controller 1240_1, and then a request for normal access to the corresponding location can be performed.

[0230] In some embodiments, even when the error detected in the re-read data is correctable, the HMB address can be determined to still be usable. In this case, only when an uncorrectable error is detected in the re-read data, the corresponding HMB address can be marked as a bad area.

[0231] As described above, the storage controller 1240_1 may determine whether the data of the HMB address to be recovered has been updated. When the data of the HMB address to be recovered has been updated, the data may be log data that can be used to recover the data. In addition, when an error is caused by reading the HMB address to be recovered again after the recovery operation is completed, the corresponding area on the host memory buffer 1120 may be marked as a bad area, and the data may be prevented from being stored in the bad area. Therefore, the access speed to the host memory buffer 1120 may be improved, and by performing a recovery operation on all data in which an error has occurred, the reliability of the data may be improved and the efficiency of the recovery operation may be improved.

[0232] Fig.15 It is shown Fig.14 Flowchart of an example of operation S420.

[0233] In operation S421, the storage controller 1240_1 determines whether the data of the HMB address to be recovered (e.g., the HMB address at which an error has occurred) has been updated after the latest flush operation (hereinafter, case 1). Alternatively, the storage controller 1240_1 may determine whether the data of the HMB address has been updated after being first loaded into the host memory buffer 1120, but the flush operation has not yet been performed (hereinafter, case 2).

[0234] When neither case 1 nor case 2 applies, in operation S422 , the memory controller 1240_1 obtains clean data from the nonvolatile memory device 1260 and loads the clean data into a corresponding HMB address on the host memory buffer 1120 .

[0235] Optionally, when one of Case 1 and Case 2 is applicable, the data of the HMB address at which the error has occurred is recovered using the log data for the HMB address at which the error has occurred. In this case, in operation S423, the storage controller 1240_1 re-executes the write access from the latest flush operation to the time point at which the data corruption is identified or the time point of the data recovery operation according to the log data for recovering the data of the HMB address at which the error has occurred.

[0236] As described above, the storage controller 1240_1 may determine whether the data of the HMB address at which an error has occurred has been updated. When the data of the HMB address at which an error has occurred has been updated, the data may be restored using the log data. Therefore, when accessing the host memory buffer 1120, the accuracy of data recovery may be increased to improve the reliability of the data.

[0237] As set forth above, according to example embodiments, a storage device may ensure data reliability while preventing performance degradation caused by latency during access of the storage device to a host memory buffer.

[0238] While example embodiments have been shown and described above, it will be apparent to those skilled in the art that modifications and variations may be made without departing from the scope of the inventive concept as defined by the appended claims.

Claims

1. A method for operating a storage device using a host memory buffer of a host, the method include: Based on the fact that a plurality of read requests to the host memory buffer are needed, recording information about a plurality of host memory buffer addresses on the host memory buffer in an address information table, the plurality of host memory buffer addresses respectively corresponding to the plurality of read requests to the host memory buffer; sending the plurality of read requests to a host memory buffer; receiving a plurality of read data from a host memory buffer, the plurality of read data respectively corresponding to the plurality of read requests; detecting one or more errors within the plurality of read data; as well as The address information table is updated based on the results of the detection of one or more errors.

2. The method according to claim 1, in, The steps to update the address information table include: releasing information about a host memory buffer address corresponding to read data in which no error is detected, among the information about the plurality of host memory buffer addresses on the host memory buffer; and Information about a host memory buffer address corresponding to read data in which an error is detected is maintained.

3. The method according to claim 1, in, The steps to update the address information table include: releasing information about a host memory buffer address corresponding to read data in which no error is detected, and information about a host memory buffer address corresponding to read data in which a correctable error is detected; and Information about a host memory buffer address corresponding to read data in which an uncorrectable error is detected is held.

4. The method according to claim 2, in, The plurality of read requests include a first read request to an nth read request, wherein n is an integer greater than 1, and The storage device is configured to: when sending the plurality of read requests to the host memory buffer, send the nth read request to the host memory buffer regardless of the response of the host memory buffer to the n-1th read request, and The method comprises: A data recovery operation is performed on the information regarding the host memory buffer address corresponding to the read data in which an error is detected, which is maintained in the updated address information table.

5. The method according to claim 4, in, The steps to perform a data recovery operation include: A determination is made as to whether data of a host memory buffer address corresponding to a target of a data recovery operation has been updated after a most recent flush operation.

6. The method according to claim 5, in, The steps to perform data recovery operations also include: loading clean data from a non-volatile memory device in a storage device; and Based on the fact that data of the host memory buffer address corresponding to the target of the data recovery operation has not been updated, the loaded clean data is written into the host memory buffer address corresponding to the read data in which an error is detected.

7. The method according to claim 6, in, The steps to perform a data recovery operation include: re-performing a write access to the host memory buffer from the latest flush operation to a time point when an error is detected based on the log data about the host memory buffer address corresponding to the target of the data recovery operation, based on the data of the host memory buffer address corresponding to the target of the data recovery operation having been updated, and The log data includes information associated with addresses and data of write requests performed on a host memory buffer address corresponding to a target of the data recovery operation.

8. The method according to any one of claims 4 to 7, further comprising: include: After the data recovery operation is completed, a re-read request is sent to the host memory buffer for each host memory buffer address for which the data recovery operation was performed.

9. The method according to claim 8, further comprising: include: receiving reread data for a reread request from a host memory buffer; as well as Perform error detection operations on the re-read data.

10. The method according to claim 9, further comprising: include: Based on the error detected in re-reading the data, marking a region corresponding to a host memory buffer address corresponding to the re-read data as a bad region; as well as The region is remapped to a host memory buffer address different from a host memory buffer address corresponding to the reread data.

11. A method for operating a storage device using a host memory buffer of a host, the method include: Based on the first write request being required, recording information about a first host memory buffer address on the host memory buffer corresponding to the first write request to the host memory buffer; generating a first preliminary read request for a first host memory buffer address, and then sending the first preliminary read request to the host memory buffer; receiving first preliminary read data corresponding to the first preliminary read request from the host memory buffer; performing an error detection operation on the first preliminary read data; as well as Based on no errors being detected in the first preliminary read data, a first write request is sent to the host memory buffer.

12. The method according to claim 11, further comprising: include: Based on detecting an error in the first preliminary read data, a data recovery operation is performed on the first host memory buffer address.

13. The method according to claim 12, wherein Steps to perform data recovery operations include: loading clean data from a non-volatile memory device in a storage device; Based on the data at the first host memory buffer address not being updated after the latest flush operation, writing clean data into the first host memory buffer address; as well as Data based on the first host memory buffer address is updated after the latest flush operation, re-performing a write access to the first host memory buffer address from the latest flush operation to the time point when the error is detected according to the log data about the first host memory buffer address, and The log data includes information associated with addresses and data of write requests performed to the first host memory buffer address.

14. The method according to claim 12, further comprising: include: After the data recovery operation is completed, a first write request to the host memory buffer is sent to the host memory buffer.

15. The method according to claim 12, further comprising: include: sending a first re-read request for the first host memory buffer address to the host memory buffer after completing the data recovery operation; receiving first re-read data from a host memory buffer regarding a first re-read request; as well as When no error is detected in the first re-read data, a first write request is sent.

16. The method according to claim 15, include: Based on detecting an error in the first re-read data, marking a first host memory buffer address as a bad region in the host memory buffer and remapping the first host memory buffer address to a second host memory buffer address different from the first host memory buffer address.

17. A storage device using a host memory buffer of a host, the storage device include: a host interface configured to use a host memory buffer as a memory buffer of the storage device; as well as A memory controller configured to: based on a plurality of read requests to a host memory buffer being required: recording information about a plurality of host memory buffer addresses on a host memory buffer, the plurality of host memory buffer addresses respectively corresponding to the plurality of read requests, sending the plurality of read requests to a host memory buffer, and An error of each of a plurality of read data respectively corresponding to the plurality of read requests received from the host memory buffer is detected.

18. The storage device according to claim 17, in, The storage controller is configured as: releasing information about a host memory buffer address corresponding to read data on the host memory buffer that does not require a data recovery operation; and Information about host memory buffer addresses corresponding to read data requiring a data recovery operation is maintained.

19. The storage device according to claim 17, in, The storage controller is configured as: Based on the first write request to the host memory buffer being required, recording information about a first host memory buffer address on the host memory buffer corresponding to the first write request, generating a first preliminary read request for a first host memory buffer address and sending the first preliminary read request to the host memory buffer, and receiving first preliminary read data corresponding to the first preliminary read request from the host memory buffer, When no error is detected in the first preliminary read data, a first write request is sent to the host memory buffer.

20. The storage device according to claim 18, wherein The storage controller is configured as: Based on the data of the host memory buffer address corresponding to the read data requiring the data recovery operation not being updated after the latest flush operation, loading clean data from the non-volatile memory device in the storage device into the host memory buffer address corresponding to the read data requiring the data recovery operation; and Based on the data of the host memory buffer address corresponding to the read data requiring the data recovery operation having been updated after the latest flush operation, re-performing the write access to the host memory buffer from the latest flush operation to the time point of performing the data recovery operation according to the log data of the host memory buffer address corresponding to the read data requiring the data recovery operation, and in, The log data includes information associated with addresses and data of write requests performed on host memory buffer addresses corresponding to read data requiring a data recovery operation.