Data checking method, memory storage device and memory control circuit unit

By utilizing cross-device write and read instructions for data checking during data transfer between the memory storage device and the host system, the problem of operational errors caused by reading incorrect data is solved and data integrity and access are improved. efficacy.

CN118796532APending Publication Date: 2024-10-18PHISON ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410787450.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In memory storage devices using host memory cache technology, serious operating errors may occur due to incorrect data being read from the host system, affecting data access performance.

Method used

By establishing a connection between the memory storage device and the host system, sending a cross-device write command to store the data in the host system, and sending a cross-device read command when reading, reading the data back from the host system, according to the inspection The data determines whether the data is abnormal and only performs data checking operations when certain conditions are met to avoid errors.

Benefits of technology

Without affecting the data access performance between the memory storage device and the host system, the risk of serious operational errors caused by reading incorrect data is effectively reduced, and data integrity is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796532A_ABST
    Figure CN118796532A_ABST
Patent Text Reader

Abstract

The invention provides a data checking method, a memory storage device and a memory control circuit unit. The method comprises the following steps: establishing a connection line between the memory storage device and a host system; generating first check data according to the first data; sending a cross-device write instruction via the connection line to store the first data to a memory in the host system; after the cross-device write-in instruction is sent, a cross-device read instruction is sent through the connection line so as to read back the first data from the memory in the host system; and in response to the cross-device reading meeting the check triggering condition, executing a first check operation on the read-back first data according to the check data. Therefore, the risk of serious operation errors of the memory storage device due to the fact that incorrect data are read from the memory in the host system can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a memory management technology, and in particular to a data checking method, a memory storage device and a memory control circuit unit. Background Art

[0002] Portable electronic devices such as mobile phones and notebook computers have grown rapidly in recent years, resulting in a rapid increase in consumer demand for storage media. Rewritable non-volatile memory modules (e.g., flash memory) are very suitable for being built into the various portable electronic devices listed above because they have the characteristics of data non-volatility, power saving, small size, and no mechanical structure.

[0003] Some types of memory storage devices support host memory buffering (HMB) technology. In an architecture that adopts HMB, the memory storage device can use the memory of the host system as a buffer of the memory storage device, and can actively access data from the memory of the host system. For example, when the host system reads data from the memory storage device or writes data to the memory storage device, the management data (such as a management table) required to access the memory storage device may be temporarily stored in the memory of the host system for the memory storage device to query or update at any time. However, in some cases, the data from the memory storage device may accidentally not be cached in the memory of the host system, resulting in a serious operation error of the memory storage device when the subsequent memory storage device reads this data from the memory of the host system and performs related internal data management accordingly. Summary of the invention

[0004] The present invention provides a data checking method, a memory storage device and a memory control circuit unit, which can effectively reduce the risk of serious operation errors of the memory storage device caused by reading incorrect data from the memory in the host system without affecting the data access efficiency between the memory storage device and the host system as much as possible.

[0005] An exemplary embodiment of the present invention provides a data checking method for a memory storage device, the data checking method comprising: establishing a connection between the memory storage device and a host system; generating first checking data according to first data; retaining the first checking data in the memory storage device; sending a cross-device write instruction via the connection, wherein the cross-device write instruction is used to indicate the execution of a cross-device write, and the cross-device write is used to store the first data in a memory in the host system; after sending the cross-device write instruction, sending a cross-device read instruction via the connection, wherein the cross-device read instruction is used to indicate the execution of a cross-device read, and the cross-device read is used to read back the first data from the memory in the host system; in response to the cross-device read meeting a check trigger condition, performing a first check operation on the first data read back from the memory in the host system according to the check data to check whether the first data read back from the memory in the host system is abnormal; and in response to the cross-device read not meeting the check trigger condition, skipping the first check operation.

[0006] In an exemplary embodiment of the present invention, the step of generating the inspection data according to the first data includes: updating a first portion of data in the first data; and updating the inspection data according to the updated first portion of data.

[0007] In an exemplary embodiment of the present invention, the first data carries mapping information, and the step of updating the first portion of data in the first data includes: updating the first portion of data in the first data according to an instruction from the host system.

[0008] In an exemplary embodiment of the present invention, the cross-device write stores only the updated first portion of the first data in the memory in the host system, and the data size of the first portion of the data is smaller than the total data size of the first data.

[0009] In an exemplary embodiment of the present invention, the data checking method further includes: in response to the cross-device reading completely reading back the first data from the memory in the host system, determining that the cross-device reading meets the checking trigger condition.

[0010] In an exemplary embodiment of the present invention, the data checking method further includes: in response to the execution of the cross-device read being for the purpose of performing internal data management of the memory storage device, determining that the cross-device read meets the checking trigger condition.

[0011] In an exemplary embodiment of the present invention, the internal data management includes: storing the first data read back from the memory in the host system back into a rewritable non-volatile memory module of the memory storage device.

[0012] In an exemplary embodiment of the present invention, the internal data management includes: establishing second data based on the first data read back from the memory in the host system, wherein the second data carries mapping information; and performing data movement in the rewritable non-volatile memory module of the memory storage device based on the second data.

[0013] The exemplary embodiment of the present invention further provides a memory storage device, which includes a connection interface unit, a rewritable non-volatile memory module and a memory control circuit unit. The connection interface unit is used to connect to a host system. The memory control circuit unit is connected to the connection interface unit and the rewritable non-volatile memory module. The memory control circuit unit is used to: establish a connection between the memory storage device and the host system; generate inspection data based on first data; retain the inspection data in the memory storage device; send a cross-device write instruction via the connection, wherein the cross-device write instruction is used to indicate the execution of a cross-device write, and the cross-device write is used to store the first data in the memory in the host system; after sending the cross-device write instruction, send a cross-device read instruction via the connection, wherein the cross-device read instruction is used to indicate the execution of a cross-device read, and the cross-device read is used to read back the first data from the memory in the host system; in response to the cross-device read meeting the inspection trigger condition, perform a first inspection operation on the first data read back from the memory in the host system according to the inspection data to check whether the first data read back from the memory in the host system is abnormal; and in response to the cross-device read not meeting the inspection trigger condition, skip the first inspection operation.

[0014] In an exemplary embodiment of the present invention, the operation of the memory control circuit unit generating the inspection data according to the first data includes: updating a first portion of data in the first data; and updating the inspection data according to the updated first portion of data.

[0015] In an exemplary embodiment of the present invention, the first data carries mapping information, and the operation of the memory control circuit unit updating the first portion of the first data includes: updating the first portion of the first data according to an instruction from the host system.

[0016] In an exemplary embodiment of the present invention, the memory control circuit unit is further configured to: in response to the cross-device read being a complete read back of the first data from the memory in the host system, determine that the cross-device read meets the check trigger condition.

[0017] In an exemplary embodiment of the present invention, the memory control circuit unit is further configured to: in response to the execution of the cross-device read being for performing internal data management of the memory storage device, determine that the cross-device read meets the check trigger condition.

[0018] The exemplary embodiment of the present invention further provides a memory control circuit unit, which is used to control a memory storage device. The memory storage device includes a rewritable non-volatile memory module. The memory control circuit unit includes a host interface, a memory interface and a memory management circuit. The host interface is used to connect to a host system. The memory interface is used to connect to the rewritable non-volatile memory module. The memory management circuit is connected to the host interface and the memory interface. The memory management circuit is used to: establish a connection between the memory storage device and the host system; generate inspection data based on first data; retain the inspection data in the memory storage device; send a cross-device write instruction via the connection, wherein the cross-device write instruction is used to indicate the execution of a cross-device write, and the cross-device write is used to store the first data in the memory in the host system; after sending the cross-device write instruction, send a cross-device read instruction via the connection, wherein the cross-device read instruction is used to indicate the execution of a cross-device read, and the cross-device read is used to read back the first data from the memory in the host system; in response to the cross-device read meeting the inspection trigger condition, perform a first inspection operation on the first data read back from the memory in the host system according to the inspection data to check whether the first data read back from the memory in the host system is abnormal; and in response to the cross-device read not meeting the inspection trigger condition, skip the first inspection operation.

[0019] In an exemplary embodiment of the present invention, the operation of the memory management circuit generating the inspection data according to the first data includes: updating a first portion of data in the first data; and updating the inspection data according to the updated first portion of data.

[0020] In an exemplary embodiment of the present invention, the first data carries mapping information, and the operation of the memory management circuit updating the first portion of the first data includes: updating the first portion of the first data according to an instruction from the host system.

[0021] In an exemplary embodiment of the present invention, the memory management circuit is further configured to: in response to the cross-device read completely reading back the first data from the memory in the host system, determine that the cross-device read meets the check trigger condition.

[0022] In an exemplary embodiment of the present invention, the memory management circuit is further configured to: in response to the execution of the cross-device read being for performing internal data management of the memory storage device, determine that the cross-device read meets the check trigger condition.

[0023] Based on the above, after the first inspection data is generated according to the first data, the first inspection data can be retained in the memory storage device. After establishing the connection between the memory storage device and the host system, a cross-device write can be executed via the connection to store the first data in the memory in the host system. After performing the cross-device write, a cross-device read can be executed via the connection to read back the first data from the memory in the host system. In particular, in response to the cross-device read meeting a check trigger condition, a check operation can be performed according to the first check data to check whether the first data read back from the memory in the host system is abnormal. However, in response to the read behavior not meeting the check trigger condition, the check operation can be skipped (i.e., not executed). Thus, the risk of serious operational errors in the memory storage device caused by reading incorrect data from the memory in the host system can be effectively reduced under the premise of not affecting the data access performance between the memory storage device and the host system as much as possible. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to an exemplary embodiment of the present invention;

[0025] Figure 2 is a schematic diagram of a host system, a memory storage device, and an I / O device according to an exemplary embodiment of the present invention;

[0026] Figure 3 is a schematic diagram of a host system and a memory storage device according to an exemplary embodiment of the present invention;

[0027] Figure 4 is a schematic diagram of a memory storage device according to an exemplary embodiment of the present invention;

[0028] Figure 5 is a schematic diagram of a memory control circuit unit according to an exemplary embodiment of the present invention;

[0029] Figure 6is a schematic diagram of managing a rewritable non-volatile memory module according to an exemplary embodiment of the present invention;

[0030] Figure 7 is a schematic diagram of a host system and a memory storage device according to an exemplary embodiment of the present invention;

[0031] Figure 8 is a flow chart of a data checking method according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0032] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.

[0033] Generally speaking, a memory storage device (also known as a memory storage system) includes a rewritable non-volatile memory module and a controller (also known as a control circuit). The memory storage device can be used together with a host system so that the host system can write data to the memory storage device or read data from the memory storage device.

[0034] Figure 1 is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to an exemplary embodiment of the present invention. Figure 2 is a schematic diagram of a host system, a memory storage device, and an I / O device according to an exemplary embodiment of the present invention.

[0035] Please refer to Figure 1 and Figure 2 The host system 11 may include a processor 111, a random access memory (RAM) 112, a read only memory (ROM) 113, and a data transmission interface 114. The processor 111, the random access memory 112, the read only memory 113, and the data transmission interface 114 may be connected to a system bus 110.

[0036] In an exemplary embodiment, the host system 11 may be connected to the memory storage device 10 via the data transmission interface 114. For example, the host system 11 may store data to the memory storage device 10 or read data from the memory storage device 10 via the data transmission interface 114. In addition, the host system 11 may be connected to the I / O device 12 via the system bus 110. For example, the host system 11 may transmit an output signal to the I / O device 12 or receive an input signal from the I / O device 12 via the system bus 110.

[0037] In an exemplary embodiment, the processor 111, the random access memory 112, the read-only memory 113 and the data transmission interface 114 may be disposed on the motherboard 20 of the host system 11. The number of the data transmission interface 114 may be one or more. Through the data transmission interface 114, the motherboard 20 may be connected to the memory storage device 10 via a wired or wireless manner.

[0038] In an exemplary embodiment, the memory storage device 10 may be, for example, a USB flash drive 201, a memory card 202, a solid state drive (SSD) 203, or a wireless memory storage device 204. The wireless memory storage device 204 may be, for example, a near field communication (NFC) memory storage device, a wireless fax (WiFi) memory storage device, a Bluetooth memory storage device, or a low power Bluetooth memory storage device (e.g., iBeacon) or other memory storage devices based on various wireless communication technologies. In addition, the motherboard 20 may also be connected to various I / O devices such as a global positioning system (GPS) module 205, a network interface card 206, a wireless transmission device 207, a keyboard 208, a screen 209, a speaker 210, etc. through the system bus 110. For example, in an exemplary embodiment, the motherboard 20 may access the wireless memory storage device 204 through the wireless transmission device 207.

[0039] In one exemplary embodiment, the host system 11 is a computer system. In one exemplary embodiment, the host system 11 can be any system that can substantially cooperate with the memory storage device to store data. In one exemplary embodiment, the memory storage device 10 and the host system 11 can respectively include Figure 3 A memory storage device 30 and a host system 31.

[0040] Figure 3 is a schematic diagram of a host system and a memory storage device according to an exemplary embodiment of the present invention. Figure 3, the memory storage device 30 can be used in conjunction with a host system 31 to store data. For example, the host system 31 can be a system such as a digital camera, a video camera, a communication device, an audio player, a video player, or a tablet computer. For example, the memory storage device 30 can be various non-volatile memory storage devices such as a Secure Digital (SD) card 32, a Compact Flash (CF) card 33, or an embedded storage device 34 used by the host system 31. The embedded storage device 34 includes various types of embedded storage devices that directly connect the memory module to the substrate of the host system, such as an embedded Multi Media Card (eMMC) 341 and / or an embedded Multi Chip Package (eMCP) storage device 342.

[0041] Figure 4 is a schematic diagram of a memory storage device according to an exemplary embodiment of the present invention. Figure 4 The memory storage device 10 includes a connection interface unit 41, a memory control circuit unit 42 and a rewritable non-volatile memory module 43.

[0042] The connection interface unit 41 is used to connect to the host system 11. The memory storage device 10 can communicate with the host system 11 via the connection interface unit 41. In an exemplary embodiment, the connection interface unit 41 is compatible with the Peripheral Component Interconnect Express (PCI Express) standard. However, it should be understood that the present invention is not limited thereto, and the connection interface unit 41 may also comply with the Serial Advanced Technology Attachment (SATA) standard, the Parallel Advanced Technology Attachment (PATA) standard, the Institute of Electrical and Electronic Engineers (IEEE) 1394 standard, the Universal Serial Bus (USB) standard, the SD interface standard, the Ultra High Speed-I (UHS-I) interface standard, the Ultra High Speed-II (UHS-II) interface standard, the Memory Stick (MS) interface standard, the MCP interface standard, the MMC interface standard, the eMMC interface standard, the Universal Flash Storage (UFS) interface standard, the eMCP interface standard, the CF interface standard, the Integrated Device Electronics (IDE) standard or other suitable standards. The connection interface unit 41 and the memory control circuit unit 42 may be packaged in one chip, or the connection interface unit 41 may be disposed outside a chip including the memory control circuit unit 42 .

[0043] The memory control circuit unit 42 is connected to the connection interface unit 41 and the rewritable non-volatile memory module 43. The memory control circuit unit 42 is used to execute a plurality of logic gates or control instructions implemented in hardware or firmware and to perform operations such as writing, reading and erasing data in the rewritable non-volatile memory module 43 according to the instructions of the host system 11.

[0044] The rewritable non-volatile memory module 43 is used to store data written by the host system 11. The rewritable non-volatile memory module 43 may include a single-level cell (SLC) NAND flash memory module (i.e., a flash memory module that can store 1 bit in one storage cell), a multi-level cell (MLC) NAND flash memory module (i.e., a flash memory module that can store 2 bits in one storage cell), a triple-level cell (TLC) NAND flash memory module (i.e., a flash memory module that can store 3 bits in one storage cell), a quad-level cell (QLC) NAND flash memory module (i.e., a flash memory module that can store 4 bits in one storage cell), other flash memory modules, or other memory modules with the same characteristics.

[0045] Each memory cell in the rewritable non-volatile memory module 43 stores one or more bits by changing the voltage (hereinafter also referred to as the critical voltage). Specifically, there is a charge capture layer between the control gate and the channel of each memory cell. By applying a write voltage to the control gate, the amount of electrons in the charge capture layer can be changed, thereby changing the critical voltage of the memory cell. This operation of changing the critical voltage of the memory cell is also called "writing data to the memory cell" or "programming the memory cell". As the critical voltage changes, each memory cell in the rewritable non-volatile memory module 43 has multiple storage states. By applying a read voltage, it is possible to determine which storage state a memory cell belongs to, thereby obtaining one or more bits stored in this memory cell.

[0046] In an exemplary embodiment, the memory cells of the rewritable non-volatile memory module 43 may constitute a plurality of physical programming units, and these physical programming units may constitute a plurality of physical erasing units. Specifically, the memory cells on the same word line may constitute one or more physical programming units. If each memory cell can store more than 2 bits, the physical programming units on the same word line may be classified into at least a lower physical programming unit and an upper physical programming unit. For example, the least significant bit (LSB) of a memory cell belongs to the lower physical programming unit, and the most significant bit (MSB) of a memory cell belongs to the upper physical programming unit. Generally speaking, in an MLC NAND flash memory, the write speed of the lower physical programming unit is greater than the write speed of the upper physical programming unit, and / or the reliability of the lower physical programming unit is higher than the reliability of the upper physical programming unit.

[0047] In an exemplary embodiment, the physical programming unit is the smallest unit of programming. That is, the physical programming unit is the smallest unit for writing data. For example, the physical programming unit may be a physical page or a physical sector. If the physical programming unit is a physical page, these physical programming units may include a data bit area and a redundancy bit area. The data bit area includes a plurality of physical sectors for storing user data, and the redundancy bit area is used to store system data (for example, management data such as error correction codes). In an exemplary embodiment, the data bit area includes 32 physical sectors, and the size of a physical sector is 512 bytes (byte, B). However, in other exemplary embodiments, the data bit area may also include 8, 16 or more or less physical sectors, and the size of each physical sector may also be larger or smaller. On the other hand, the physical erasure unit is the smallest unit of erasure. That is, each physical erasure unit contains the minimum number of storage cells that are erased together. For example, the physical erasure unit is a physical block.

[0048] Figure 5 is a schematic diagram of a memory control circuit unit according to an exemplary embodiment of the present invention. Figure 5 The memory control circuit unit 42 includes a memory management circuit 51 , a host interface 52 and a memory interface 53 .

[0049] The memory management circuit 51 is used to control the overall operation of the memory control circuit unit 42. Specifically, the memory management circuit 51 has a plurality of control instructions, and when the memory storage device 10 is in operation, these control instructions are executed to perform operations such as writing, reading, and erasing data. The following description of the operation of the memory management circuit 51 is equivalent to describing the operation of the memory control circuit unit 42 and the memory storage device 10.

[0050] In an exemplary embodiment, the control instructions of the memory management circuit 51 are implemented in the form of firmware. For example, the memory management circuit 51 has a microprocessor unit (not shown) and a read-only memory (not shown), and these control instructions are burned into the read-only memory. When the memory storage device 10 is operating, these control instructions are executed by the microprocessor unit to perform operations such as writing, reading and erasing data.

[0051] In an exemplary embodiment, the control instructions of the memory management circuit 51 can also be stored in a specific area of ​​the rewritable non-volatile memory module 43 (for example, a system area in the memory module dedicated to storing system data) in the form of program code. In addition, the memory management circuit 51 has a microprocessor unit (not shown), a read-only memory (not shown) and a random access memory (not shown). In particular, the read-only memory has a boot code, and when the memory control circuit unit 42 is enabled, the microprocessor unit will first execute the boot code to load the control instructions stored in the rewritable non-volatile memory module 43 into the random access memory of the memory management circuit 51. Afterwards, the microprocessor unit will run these control instructions to perform operations such as writing, reading and erasing data.

[0052] In an exemplary embodiment, the control instructions of the memory management circuit 51 can also be implemented in a hardware form. For example, the memory management circuit 51 includes a microcontroller, a storage unit management circuit, a memory write circuit, a memory read circuit, a memory erase circuit and a data processing circuit. The storage unit management circuit, the memory write circuit, the memory read circuit, the memory erase circuit and the data processing circuit are connected to the microcontroller. The storage unit management circuit is used to manage the storage unit or storage unit group of the rewritable non-volatile memory module 43. The memory write circuit is used to issue a write instruction sequence to the rewritable non-volatile memory module 43 to write data into the rewritable non-volatile memory module 43. The memory read circuit is used to issue a read instruction sequence to the rewritable non-volatile memory module 43 to read data from the rewritable non-volatile memory module 43. The memory erase circuit is used to issue an erase instruction sequence to the rewritable non-volatile memory module 43 to erase data from the rewritable non-volatile memory module 43. The data processing circuit is used to process data to be written to the rewritable non-volatile memory module 43 and data to be read from the rewritable non-volatile memory module 43. The write command sequence, the read command sequence and the erase command sequence may each include one or more program codes or command codes and are used to instruct the rewritable non-volatile memory module 43 to perform corresponding write, read and erase operations. In an exemplary embodiment, the memory management circuit 51 may also issue other types of command sequences to the rewritable non-volatile memory module 43 to instruct the execution of corresponding operations.

[0053] The host interface 52 is connected to the memory management circuit 51. The memory management circuit 51 can communicate with the host system 11 through the host interface 52. The host interface 52 can be used to obtain and identify instructions and data transmitted by the host system 11. For example, the instructions and data transmitted by the host system 11 can be transmitted to the memory management circuit 51 through the host interface 52. In addition, the memory management circuit 51 can transmit data to the host system 11 through the host interface 52. In this exemplary embodiment, the host interface 52 is compatible with the PCI Express standard. However, it should be understood that the present invention is not limited to this, and the host interface 52 can also be compatible with the SATA standard, the PATA standard, the IEEE 1394 standard, the USB standard, the SD standard, the UHS-I standard, the UHS-II standard, the MS standard, the MMC standard, the eMMC standard, the UFS standard, the CF standard, the IDE standard or other suitable data transmission standards.

[0054] The memory interface 53 is connected to the memory management circuit 51 and is used to access the rewritable non-volatile memory module 43. For example, the memory management circuit 51 can access the rewritable non-volatile memory module 43 through the memory interface 53. That is, the data to be written to the rewritable non-volatile memory module 43 will be converted into a format acceptable to the rewritable non-volatile memory module 43 through the memory interface 53. Specifically, if the memory management circuit 51 wants to access the rewritable non-volatile memory module 43, the memory interface 53 will transmit a corresponding instruction sequence. For example, these instruction sequences may include a write instruction sequence indicating writing data, a read instruction sequence indicating reading data, an erase instruction sequence indicating erasing data, and corresponding instruction sequences for indicating various memory operations (for example, changing the read voltage level or performing a garbage collection (GC) operation, etc.). These instruction sequences are, for example, generated by the memory management circuit 51 and transmitted to the rewritable non-volatile memory module 43 through the memory interface 53. These instruction sequences may include one or more signals, or data on the bus. These signals or data may include instruction codes or program codes. For example, in a read instruction sequence, information such as a read identification code and a memory address may be included.

[0055] In an exemplary embodiment, the memory control circuit unit 42 further includes an error checking and correction circuit 54 , a buffer memory 55 , and a power management circuit 56 .

[0056] The error checking and correction circuit 54 is connected to the memory management circuit 51 and is used to perform error checking and correction operations to ensure the correctness of data. Specifically, when the memory management circuit 51 obtains a write command from the host system 11, the error checking and correction circuit 54 generates a corresponding error correction code (ECC) and / or error detecting code (EDC) for the data corresponding to the write command, and the memory management circuit 51 writes the data corresponding to the write command and the corresponding error correction code and / or error detecting code into the rewritable non-volatile memory module 43. Afterwards, when the memory management circuit 51 reads data from the rewritable non-volatile memory module 43, the error correction code and / or error checking code corresponding to the data will be read at the same time, and the error checking and correction circuit 54 will perform error checking and correction operations on the read data according to the error correction code and / or error checking code. For example, the error checking and correction circuit 54 may use various encoding / decoding algorithms such as low density parity check code (LDPC code), BCH code, Reed-solomon code (RS code), exclusive OR (XOR) code, etc. to encode and decode data.

[0057] The buffer memory 55 is connected to the memory management circuit 51 and is used to temporarily store data. The power management circuit 56 is connected to the memory management circuit 51 and is used to control the power of the memory storage device 10 .

[0058] In an exemplary embodiment, Figure 4 The rewritable non-volatile memory module 43 may include a flash memory module. In an exemplary embodiment, Figure 4 The memory control circuit unit 42 may include a flash memory controller. In an exemplary embodiment, Figure 5 The memory management circuit 51 may include a flash memory management circuit.

[0059] Figure 6 FIG. 1 is a schematic diagram of managing a rewritable non-volatile memory module according to an exemplary embodiment of the present invention. Figure 6 The memory management circuit 51 may logically group the physical units 610 ( 0 ) to 610 (C) in the rewritable non-volatile memory module 43 into a storage area 601 , a spare area 602 , and a system area 603 .

[0060] In an exemplary embodiment, a physical unit refers to a physical address or a physical programming unit. In an exemplary embodiment, a physical unit may also be composed of multiple continuous or discontinuous physical addresses. In an exemplary embodiment, a physical unit may also refer to a virtual block (VB). A virtual block may include multiple physical addresses or multiple physical programming units. In an exemplary embodiment, a virtual block may include one or more physical erase units.

[0061] In an exemplary embodiment, the physical units 610(0)-610(A) in the storage area 601 are used to store user data (e.g., from Figure 1 The user data of the host system 11 of the storage area 601). For example, the physical units 610(0)~610(A) in the storage area 601 can store valid data and invalid data. The physical units 610(A+1)~610(B) in the idle area 602 do not store data (such as valid data). For example, if a physical unit does not store valid data, this physical unit can be associated (or added) to the idle area 602. In addition, the physical units in the idle area 602 (or the physical units that do not store valid data) can be erased. When writing new data, one or more physical units can be extracted from the idle area 602 to store the new data. In an exemplary embodiment, the idle area 602 is also called a free pool.

[0062] In an exemplary embodiment, the memory management circuit 51 may configure the logical units 612(0)-612(D) to map the physical units 610(0)-610(A) in the storage area 601. In an exemplary embodiment, each logical unit corresponds to a logical address. For example, a logical address may include one or more logical block addresses (LBAs) or other logical management units. In an exemplary embodiment, a logical unit may also correspond to a logical programming unit or be composed of multiple continuous or discontinuous logical addresses.

[0063] It should be noted that a logical unit can be mapped to one or more physical units. If a physical unit is currently mapped by a logical unit, it means that the data currently stored in the physical unit includes valid data. On the contrary, if a physical unit is not currently mapped by any logical unit, it means that the data currently stored in the physical unit is invalid data.

[0064] In an exemplary embodiment, the memory management circuit 51 may record management data describing the mapping relationship between the logical unit and the physical unit (also referred to as logical-to-physical mapping information) in at least one logical-to-physical mapping table (L2Ptable). When the host system 11 wants to read data from the memory storage device 10 or write data to the memory storage device 10, the memory management circuit 51 may access the rewritable non-volatile memory module 43 according to the information in the logical-to-physical mapping table.

[0065] In an exemplary embodiment, the memory management circuit 51 may store a specific type of data in the system area 603. For example, the physical units 610(B+1)-610(C) in the system area 603 may be dedicated to store data of higher importance and / or data that is not intended to be accessed or modified by the host system 11. For example, the data of higher importance and / or data that is not intended to be accessed or modified by the host system 11 may include a logical-to-physical mapping table, a bad block management table, a wear leveling management table, a valid data management table and / or other types of management data, and the present invention is not limited thereto. The logical-to-physical mapping table is used to record mapping information. This mapping information may reflect the mapping relationship between the logical unit and the physical unit. The bad block management table is used to record information related to at least one bad block in the rewritable non-volatile memory module 43. The wear leveling management table may be used to record information related to the wear status of at least one physical unit in the rewritable non-volatile memory module 43 (e.g., a read count, a write count and / or an erase count). The valid data management table may be used to record information related to the valid count of at least one physical unit in the rewritable non-volatile memory module 43 .

[0066] In an exemplary embodiment, the memory management circuit 51 may not map any logical unit to a physical unit in the system area 603. Thus, data stored in the system area 603 may be prevented from being accessed or modified by the host system 11.

[0067] Figure 7 is a schematic diagram of a host system and a memory storage device according to an exemplary embodiment of the present invention. Figure 7 In one exemplary embodiment, both the host system 11 and the memory storage device 10 support the host memory buffering (HMB) technology. Under the HMB architecture, the host system 11 can provide the memory 71 to the memory storage device 10 for use. For example, the memory 71 can include a random access memory and / or other types of memory. The memory 71 can be used to temporarily store data. It should be noted that the present invention does not limit the total number, capacity and type of memory in the memory 71.

[0068] In an exemplary embodiment, the memory management circuit 51 may establish a connection 701 between the memory storage device 10 and the host system 11. For example, the memory management circuit 51 may perform a handshake operation with the host system 11 to establish the connection 701. After the connection 701 is established, the memory management circuit 51 may access the memory 71 (e.g., store data in the memory 71 or read data from the memory 71) and communicate with the host system 11 via the connection 701. In an exemplary embodiment, the connection 701 between the memory storage device 10 and the host system 11 complies with the NVM Express (NVMe) specification.

[0069] In an exemplary embodiment, the memory management circuit 51 may receive a request from the host system 11. The request is used to inquire whether the memory storage device 10 supports the HMB technology. The memory management circuit 51 may provide a response to the host system 11 according to the request. The response may inform the host system 11 whether the memory storage device 10 supports the HMB technology.

[0070] In an exemplary embodiment, if the memory storage device 10 supports the HMB technology, the host system 11 may enable or configure the memory 71 for access by the memory storage device 10 according to the response. In an exemplary embodiment, if the memory storage device 10 does not support the HMB technology, the host system 11 may not enable or configure the memory 71. In an exemplary embodiment, if the memory storage device 10 supports the HMB technology, the response may also inform the host system 11 of the memory space required to execute the HMB technology and other parameters related to the HMB technology. The host system 11 may enable or configure the memory 71 according to the response.

[0071] In an exemplary embodiment, the memory 71 can be used to replace at least part of the buffer memory (eg, Figure 5 In one exemplary embodiment, the memory 71 may be used in conjunction with at least a portion of the buffer memory (e.g. Figure 5 Buffer memory 510) is provided for use by memory management circuit 51. In one exemplary embodiment, memory management circuit 51 may use memory 71 instead of using at least part of the buffer memory (e.g. Figure 5 In one exemplary embodiment, when the memory management circuit 51 can use the memory 71, the memory storage device 10 may not be configured with any buffer memory (e.g. Figure 5 Alternatively, the capacity of the buffer memory configured in the memory storage device 10 can be reduced. Thus, the construction cost of the memory storage device 10 can be reduced.

[0072] In an exemplary embodiment, the memory management circuit 51 may generate inspection data (also referred to as first inspection data) according to specific data (also referred to as first data). The first inspection data may be used to check whether the first data is abnormal. In an exemplary embodiment, the memory management circuit 51 may encode the first data to generate the first inspection data. In an exemplary embodiment, the operation of checking whether the first data is abnormal may include checking the data integrity of the first data. In an exemplary embodiment, the memory management circuit 51 may use an exclusive OR (XOR) code or other types of encoding algorithms to encode the first data to generate the first inspection data.

[0073] In an exemplary embodiment, after generating the first inspection data, the memory management circuit 51 may retain the first inspection data in the memory storage device 10. For example, the memory management circuit 51 may store the first inspection data in the buffer memory 55 or the rewritable non-volatile memory module 43 to wait for subsequent use.

[0074] In an exemplary embodiment, after generating the first inspection data, the memory management circuit 51 may update at least part of the first data (also referred to as the first partial data). For example, the amount of the updated first partial data may be less than or equal to the total amount of the first data. Then, the memory management circuit 51 may update the first inspection data according to the updated first partial data (or the updated first data).

[0075] In an exemplary embodiment, the memory management circuit 51 may update the first check data only according to the updated first partial data. Alternatively, in an exemplary embodiment, the memory management circuit 51 may also update the first check data according to the updated complete first data. Thus, the updated first check data may be used to check whether the updated first data is abnormal.

[0076] In an exemplary embodiment, the first data may carry mapping information. For example, the first data may include one or more logic-to-physical mapping tables read from the system area 603 or to be stored in the system area 603. In an exemplary embodiment, the first data may also include other types of management data read from the system area 603 or to be stored in the system area 603.

[0077] In an exemplary embodiment, the memory management circuit 51 may obtain an instruction from the host system 11. This instruction may be used to instruct the memory storage device 10 to perform a specific operation. In an exemplary embodiment, the memory management circuit 51 may update the first portion of the first data according to this instruction. For example, this instruction may include a write instruction, a delete instruction, or other types of instructions, which are not limited by the present invention.

[0078] In an exemplary embodiment, according to the write command obtained from the host system 11, the memory management circuit 51 may write the data carried by the write command into a specific physical unit and update the mapping information corresponding to the physical unit in the first data. Thus, the updated first data may carry new mapping information corresponding to the physical unit. For example, the new mapping information may reflect the mapping relationship between the physical unit and at least one logical unit.

[0079] In an exemplary embodiment, according to the delete instruction obtained from the host system 11, the memory management circuit 51 can delete the data indicated by the delete instruction from the specific logical unit and update the mapping information corresponding to the logical unit in the first data. Thus, the updated first data can carry new mapping information corresponding to the logical unit. For example, the new mapping information can reflect that the logical unit is not mapped to any physical unit. In an exemplary embodiment, the memory management circuit 51 can also update the first data according to other types of instructions, which is not limited by the present invention.

[0080] In an exemplary embodiment, the memory management circuit 51 can perform a data write operation (also called cross-device write) on the host system 11 via the connection 701. In an exemplary embodiment, the memory management circuit 51 can send a data write instruction (also called a cross-device write instruction) to the host system 11 via the connection 701. The cross-device write instruction is used to instruct to perform a cross-device write on the host system 11 via the connection 701. In particular, the cross-device write is used to store the first data in the memory 71 in the host system 11 via the connection 701. In an exemplary embodiment, through the cross-device write, the memory management circuit 51 can completely store the first data in the memory 71 in the host system 11.

[0081] In an exemplary embodiment, after the first data is completely stored in the memory 71 in the host system 11, in response to the first part of the data in the first data being updated, the memory management circuit 51 may perform cross-device writing again for the first data (e.g., send a cross-device writing instruction again). It should be noted that the repeated cross-device writing can only store the updated first part of the first data in the memory 71 in the host system 11, and the remaining data in the first data that has not been updated does not need to be repeatedly transmitted to the host system 11. In this way, the occupancy of the transmission bandwidth between the memory storage device 10 and the host system 11 can be reduced.

[0082] In an exemplary embodiment, after sending a cross-device write instruction to store at least part of the first data in the memory 71 in the host system 11, the memory management circuit 51 may perform a data read operation (also called a cross-device read) on the host system 11 via the connection 701. In an exemplary embodiment, the memory management circuit 51 may send a data read instruction (also called a cross-device read instruction) to the host system 11 via the connection 701. The cross-device read instruction is used to instruct to perform a cross-device read on the host system 11 via the connection 701. In particular, the cross-device read is used to read back the first data from the memory 71 in the host system 11 via the connection 701.

[0083] In an exemplary embodiment, after the first data is read back from the memory 71 in the host system 11, the memory management circuit 51 may determine whether the cross-device read meets a specific condition (also referred to as a check trigger condition). In an exemplary embodiment, in response to the cross-device read meeting the check trigger condition, the memory management circuit 51 may perform a check operation (also referred to as a first check operation) on the first data read back from the memory 71 in the host system 11 according to the first check data. In particular, the first check operation is used to check whether the first data read back from the memory 71 in the host system 11 is abnormal. Alternatively, from another perspective, the first check operation may be used to check whether the first data read back from the memory 71 in the host system 11 meets the data integrity requirement. In an exemplary embodiment, in response to the cross-device read not meeting the check trigger condition, the memory management circuit 51 may skip (i.e., not perform) the first check operation.

[0084] In an exemplary embodiment, if at least a portion of the data content of the first data read back from the memory 71 in the host system 11 is different from at least a portion of the data content of the first data previously stored in the memory 71 in the host system 11, the check result of the first check operation will reflect that the first data read back from the memory 71 in the host system 11 is abnormal. However, if the data content of the first data read back from the memory 71 in the host system 11 is exactly the same as the data content of the first data previously stored in the memory 71 in the host system 11, the check result of the first check operation will reflect that the first data read back from the memory 71 in the host system 11 is not abnormal.

[0085] In an exemplary embodiment, by performing a first check operation on the read-back first data only at a more critical time point (i.e., when the cross-device read meets the check trigger condition), the risk of serious operational errors in the memory storage device 10 caused by reading incorrect data from the memory 71 in the host system 11 can be effectively reduced, while minimizing the impact on the data access performance between the memory storage device 10 and the host system 11.

[0086] In an exemplary embodiment, in the first check operation, the memory management circuit 51 may encode the first data read back from the memory 71 in the host system 11 to obtain verification data (also referred to as first verification data). The memory management circuit 51 may determine whether the first verification data is the same as the first check data. If the first verification data is the same as the first check data, the memory management circuit 51 may determine that the first data read back from the memory 71 in the host system 11 is not abnormal. However, if the first verification data is different from the first check data, the memory management circuit 51 may determine that the first data read back from the memory 71 in the host system 11 is abnormal.

[0087] In an exemplary embodiment, in the first check operation, the memory management circuit 51 may input the first check data and the first data read back from the memory 71 in the host system 11 into a specific algorithm. Then, the memory management circuit 51 may determine whether the read back first data is abnormal according to the output of the algorithm. However, the present invention is not limited to the operation details of the first check operation, as long as it can be determined whether the data content of the first data read back from the memory 71 in the host system 11 is completely the same as the data content of the first data previously stored in the memory 71 in the host system 11.

[0088] In an exemplary embodiment, after performing a first check operation on the first data read back from the memory 71 in the host system 11, if the check result of the first check operation reflects that the first data read back is abnormal, the memory management circuit 51 may discard the first data. In an exemplary embodiment, if the check result of the first check operation reflects that the first data read back is abnormal, the memory management circuit 51 may also reconstruct the first data. For example, the memory management circuit 51 may read data that can be used to reconstruct the first data from the system area 603 and reconstruct the first data based on the data.

[0089] In an exemplary embodiment, if the check result of the first check operation reflects that the read-back first data is not abnormal (i.e., the read-back first data is correct), the memory management circuit 51 can directly use the read-back first data to perform subsequent operations. In addition, in an exemplary embodiment, in response to the cross-device read not meeting the check trigger condition, the memory management circuit 51 can also directly use the read-back first data to perform subsequent operations.

[0090] In an exemplary embodiment, in response to the cross-device read being a complete read back of the first data from the memory 71 in the host system 11, the memory management circuit 51 may determine that the cross-device read meets the check trigger condition. In an exemplary embodiment, if the cross-device read is not a complete read back of the first data from the memory 71 in the host system 11 (for example, the executed cross-device read only reads back a portion of the first data from the memory 71 in the host system 11), the memory management circuit 51 may determine that the cross-device read does not meet the check trigger condition.

[0091] In an exemplary embodiment, before performing internal data management of the memory storage device 10 such as garbage collection, bad block management, or wear leveling, the memory management circuit 51 needs to read back the first data from the memory 71 in the host system 11. After reading back the first data from the memory 71 in the host system 11, the memory management circuit 51 may query the mapping information or other types of management information in the first data to perform internal data management such as garbage collection, bad block management, or wear leveling on the memory storage device 10.

[0092] In an exemplary embodiment, in response to the execution of the cross-device read being for the purpose of performing internal data management of the memory storage device 10 (such as the aforementioned garbage collection, bad block management, or wear leveling, etc.), the memory management circuit 51 may determine that the cross-device read meets the check trigger condition. Thus, it is possible to avoid serious operation errors in the memory storage device 10 when performing internal data management due to incorrect data being read from the memory 71 in the host system 11. However, if the execution of the cross-device read is not for the purpose of performing internal data management of the memory storage device 10, the memory management circuit 51 may determine that the cross-device read does not meet the check trigger condition. Thus, it is possible to avoid affecting the data access performance between the memory storage device 10 and the host system 11 due to excessively frequent execution of the first check operation.

[0093] In an exemplary embodiment, if the cross-device read is performed to perform internal data management of the memory storage device 10, after the first data is read back from the memory 71 in the host system 11 through the cross-device read and the check result of the first check operation reflects that the read-back first data is not abnormal, in the performed internal data management, the memory management circuit 51 may store the read-back first data back to the rewritable non-volatile memory module 43. For example, the memory management circuit 51 may store the read-back first data back to the system area 603.

[0094] In an exemplary embodiment, if the cross-device read is performed to perform internal data management of the memory storage device 10, after the first data is read back from the memory 71 in the host system 11 through the cross-device read and the check result of the first check operation reflects that the read-back first data is not abnormal, in the internal data management performed, the memory management circuit 51 can establish another data (also referred to as second data) based on the read-back first data. In particular, this second data can carry mapping information or other types of management information. Then, the memory management circuit 51 can perform data movement in the rewritable non-volatile memory module 43 based on the second data. For example, depending on the type of internal data management to be performed, the memory management circuit 51 can establish second data with relevant information based on the read-back first data. Thereafter, the memory management circuit 51 can perform internal data management involving data movement in the rewritable non-volatile memory module 43, such as garbage collection, bad block management, or wear leveling, based on the second data.

[0095] In an exemplary embodiment, the memory control circuit unit 42 may further include a check circuit 57. The check circuit 57 is connected to the memory management circuit 51. In an exemplary embodiment, the check circuit 57 may be used to perform the aforementioned operation of generating the first check data according to the first data and / or the aforementioned first check operation. In an exemplary embodiment, the check circuit 57 may be included in the error check and correction circuit 54 or may be independent of the error check and correction circuit 54.

[0096] In an exemplary embodiment, regardless of whether the cross-device read meets the check trigger condition, the error check and correction circuit 54 can perform error detection or error correction on the first data read back from the memory 71 in the host system 11 through the cross-device read to try to correct errors in the read back first data. That is, in an exemplary embodiment, even if it is determined that the cross-device read does not meet the check trigger condition, the error check and correction circuit 54 still performs error detection or error correction on the first data read back from the memory 71 in the host system 11 to try to correct errors in the read back first data.

[0097] Figure 8 is a flow chart of a data checking method according to an exemplary embodiment of the present invention. Figure 8In step S801, a connection between a memory storage device and a host system is established. In step S802, first inspection data is generated according to the first data. In step S803, the first inspection data is retained in the memory storage device. In step S804, a cross-device write instruction is sent via the connection, wherein the cross-device write instruction is used to indicate the execution of a cross-device write to store the first data in the memory in the host system. In step S805, a cross-device read instruction is sent via the connection, wherein the cross-device read instruction is used to indicate the execution of a cross-device read to read back the first data from the memory in the host system. In step S806, it is determined whether the cross-device read meets the inspection trigger condition. If the cross-device read meets the inspection trigger condition, in step S807, a first inspection operation is performed on the first data read back from the memory in the host system according to the first inspection data to check whether the first data read back from the memory in the host system is abnormal. However, if the cross-device read does not meet the inspection trigger condition, in step S808, the first inspection operation is skipped.

[0098] However, Figure 8 The steps in the above are described in detail, so I will not repeat them here. It is worth noting that Figure 8 Each step in the above process can be implemented as multiple program codes or circuits, and the present invention is not limited thereto. Figure 8 The method can be used in conjunction with the above exemplary embodiments or can be used alone, and the present invention is not limited thereto.

[0099] In summary, the data checking method, memory storage device, and memory control circuit unit proposed in the exemplary embodiments of the present invention perform data integrity checks on the data read back from the memory of the host system only at a relatively critical time point (i.e., when the cross-device reading meets the check trigger condition). Thus, the risk of serious operation errors of the memory storage device caused by reading incorrect data from the memory in the host system can be effectively reduced without affecting the data access performance between the memory storage device and the host system as much as possible.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data checking method, characterized in that: For a memory storage device, the data checking method comprises: establishing a connection between the memory storage device and a host system; generating inspection data according to the first data; retaining the inspection data in the memory storage device; Sending a cross-device write instruction via the connection, wherein the cross-device write instruction is used to instruct to perform a cross-device write, and the cross-device write is used to store the first data into a memory in the host system; After sending the cross-device write instruction, sending a cross-device read instruction via the connection, wherein the cross-device read instruction is used to instruct to perform a cross-device read, and the cross-device read is used to read back the first data from the memory in the host system; In response to the cross-device read meeting a check trigger condition, performing a first check operation on the first data read back from the memory in the host system according to the check data to check whether the first data read back from the memory in the host system is abnormal; and In response to the cross-device reading not meeting the check triggering condition, skipping the first check operation.

2. The data checking method according to claim 1, wherein the step of generating the checking data according to the first data comprises: Updating a first portion of data in the first data; as well as The inspection data is updated according to the updated first portion of data.

3. The data checking method according to claim 2, wherein the first data carries mapping information, and the step of updating the first part of the first data comprises: The first portion of the first data is updated according to an instruction from the host system.

4. The data checking method according to claim 2, wherein the cross-device write stores only the updated first portion of the first data to the memory in the host system, and the data amount of the first portion of the data is smaller than the total data amount of the first data.

5. The data checking method according to claim 1, further comprising: In response to the cross-device read completely reading back the first data from the memory in the host system, it is determined that the cross-device read meets the check trigger condition.

6. The data checking method according to claim 1, further comprising: In response to the cross-device read being performed in order to perform internal data management of the memory storage device, it is determined that the cross-device read satisfies the check trigger condition.

7. The data checking method according to claim 6, wherein the internal data management comprises: The first data read back from the memory in the host system is stored back in the rewritable non-volatile memory module of the memory storage device.

8. The data checking method according to claim 6, wherein the internal data management comprises: Creating second data according to the first data read back from the memory in the host system, wherein the second data carries mapping information; as well as Data migration in the rewritable non-volatile memory module of the memory storage device is performed according to the second data.

9. A memory storage device, characterized in that: include: A connection interface unit for connecting to a host system; Rewritable non-volatile memory module; as well as A memory control circuit unit connected to the connection interface unit and the rewritable non-volatile memory module, The memory control circuit unit is used to: establishing a connection between the memory storage device and the host system; generating inspection data according to the first data; retaining the inspection data in the memory storage device; Sending a cross-device write instruction via the connection, wherein the cross-device write instruction is used to instruct to perform a cross-device write, and the cross-device write is used to store the first data into a memory in the host system; After sending the cross-device write instruction, sending a cross-device read instruction via the connection, wherein the cross-device read instruction is used to instruct to perform a cross-device read, and the cross-device read is used to read back the first data from the memory in the host system; In response to the cross-device read meeting a check trigger condition, performing a first check operation on the first data read back from the memory in the host system according to the check data to check whether the first data read back from the memory in the host system is abnormal; as well as In response to the cross-device reading not meeting the check triggering condition, skipping the first check operation.

10. The memory storage device according to claim 9, wherein the operation of the memory control circuit unit generating the inspection data according to the first data comprises: Updating a first portion of data in the first data; as well as The inspection data is updated according to the updated first portion of data.

11. The memory storage device according to claim 10, wherein the first data carries mapping information, and the operation of the memory control circuit unit updating the first portion of the first data comprises: The first portion of the first data is updated according to an instruction from the host system.

12. The memory storage device according to claim 10, wherein the cross-device write stores only the updated first portion of the first data to the memory in the host system, and the data size of the first portion of the data is smaller than the total data size of the first data.

13. The memory storage device according to claim 9, wherein the memory control circuit unit is further configured to: In response to the cross-device read completely reading back the first data from the memory in the host system, it is determined that the cross-device read meets the check trigger condition.

14. The memory storage device according to claim 9, wherein the memory control circuit unit is further configured to: In response to the cross-device read being performed in order to perform internal data management of the memory storage device, it is determined that the cross-device read satisfies the check trigger condition.

15. The memory storage device of claim 14, wherein the internal data management comprises: The first data read back from the memory in the host system is stored back in the rewritable non-volatile memory module of the memory storage device.

16. The memory storage device of claim 14, wherein the internal data management comprises: Creating second data according to the first data read back from the memory in the host system, wherein the second data carries mapping information; as well as Data migration in the rewritable non-volatile memory module of the memory storage device is performed according to the second data.

17. A memory control circuit unit, characterized in that: Used to control a memory storage device, wherein the memory storage device includes a rewritable non-volatile memory module, and the memory control circuit unit includes: A host interface for connecting to a host system; A memory interface for connecting to the rewritable non-volatile memory module; and A memory management circuit connected to the host interface and the memory interface, The memory management circuit is used to: establishing a connection between the memory storage device and the host system; generating inspection data according to the first data; retaining the inspection data in the memory storage device; Sending a cross-device write instruction via the connection, wherein the cross-device write instruction is used to instruct to perform a cross-device write, and the cross-device write is used to store the first data into a memory in the host system; After sending the cross-device write instruction, sending a cross-device read instruction via the connection, wherein the cross-device read instruction is used to instruct to perform a cross-device read, and the cross-device read is used to read back the first data from the memory in the host system; In response to the cross-device read meeting a check trigger condition, performing a first check operation on the first data read back from the memory in the host system according to the check data to check whether the first data read back from the memory in the host system is abnormal; and In response to the cross-device reading not meeting the check triggering condition, skipping the first check operation.

18. The memory control circuit unit according to claim 17, wherein the operation of the memory management circuit generating the inspection data according to the first data comprises: Updating a first portion of data in the first data; as well as The inspection data is updated according to the updated first portion of data.

19. The memory control circuit unit according to claim 18, wherein the first data carries mapping information, and the operation of the memory management circuit updating the first part of the first data comprises: The first portion of the first data is updated according to an instruction from the host system.

20. The memory control circuit unit according to claim 18, wherein the cross-device write stores only the updated first portion of the first data to the memory in the host system, and the data size of the first portion of the data is smaller than the total data size of the first data.

21. The memory control circuit unit according to claim 17, wherein the memory management circuit is further configured to: In response to the cross-device read completely reading back the first data from the memory in the host system, it is determined that the cross-device read meets the check trigger condition.

22. The memory control circuit unit according to claim 17, wherein the memory management circuit is further configured to: In response to the cross-device read being performed in order to perform internal data management of the memory storage device, it is determined that the cross-device read satisfies the check trigger condition.

23. The memory control circuit unit according to claim 22, wherein the internal data management comprises: The first data read back from the memory in the host system is stored back in the rewritable non-volatile memory module of the memory storage device.

24. The memory control circuit unit according to claim 22, wherein the internal data management comprises: Creating second data according to the first data read back from the memory in the host system, wherein the second data carries mapping information; as well as Data migration in the rewritable non-volatile memory module of the memory storage device is performed according to the second data.