Storage devices, storage systems, and computing devices

By using a controller in the storage device to manage the write and read operations of the non-volatile memory, the post-write stability problem of the non-volatile memory chip is solved and the data traffic and delay between the host and the storage device are reduced. , ensuring data reliability.

CN112817529BActive Publication Date: 2024-10-25KIOXIA CORP
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202110086481.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2016-10-18
Filing Date
2017-03-03
Publication Date
2024-10-25
Estimated Expiration
2037-03-03

AI Technical Summary

Technical Problem

In the storage system, it takes a certain period of time for the non-volatile memory chip to stabilize after writing data. As a result, the host may not be able to read the data correctly when it is read immediately. Especially when the physical location is specified, the storage device needs to read from the same location. fetch, increasing data traffic and latency between the host and storage device.

Method used

By introducing a controller into the storage device, after receiving the write command, the first notification is returned after completing the write operation at the physical location of the non-volatile memory, and the second notification is returned after a predetermined period of time, ensuring data stability for reading. Pick.

Benefits of technology

It effectively suppresses the increase in data traffic between the host and the storage device, ensures that data can be read correctly after being written, and reduces the waiting time and delay of the storage device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112817529B_ABST
    Figure CN112817529B_ABST
Patent Text Reader

Abstract

A storage device includes a nonvolatile memory, a communication interface connectable to a host, and a controller. The controller is configured to, when receiving a write command associated with data through the communication interface, execute writing of the data received through the communication interface at a physical location of the nonvolatile memory, control the communication interface to return a first notification when determining that writing of the data at the physical location of the nonvolatile memory has been completed, and control the communication interface to return a second notification at a predetermined time period after the first notification has been returned.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of Chinese patent application CN201710123995.4. The application date of the original application is March 03, 2017, the priority date is October 18, 2016, and the name of the invention is “Storage Device, Storage System and Computing Device”.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This application is based upon and claims the benefit of U.S. non-provisional patent application No. 15 / 296,812, filed on October 18, 2016; the entire contents of which are incorporated herein by reference. Technical Field

[0004] The present disclosure generally relates to storage devices, storage systems, and computing devices. Background Art

[0005] A storage system generally includes a host and one or more storage devices, each of which may include one or more non-volatile memory chips, such as NAND flash memory chips. In order to determine the physical location of the stored data using an identifier of the data or a logical address of the data, mapping data is stored in each storage device in the storage device or in the host, and the physical location of the data is determined by referring to the mapping data. Specifically, in one type of storage system, such mapping data is stored in each storage device in the storage device, and the location of the data communicated between the host and the storage device is specified by a logical address. In another type of storage system, the mapping data is stored in the host, and the location of the data communicated between the host and the storage device is, for example, the physical location of the data specified by the physical address of the non-volatile memory chip.

[0006] When data is written to a storage device including a nonvolatile memory chip, it usually takes a certain amount of time until the storage device is ready to read the data. This is because it takes a certain amount of time until the charge is stably maintained in the memory cell of the nonvolatile memory chip. Therefore, when the host issues a read command to read the data immediately after the data is written, the data may not be correctly read from the nonvolatile memory chip. This problem is particularly significant when the location of the data communicated between the host and the storage device is a physical location, because the storage device will need to read the data from the same physical location. On the other hand, when the location of the data communicated between the host and the storage device is an identifier or logical address of the data, the storage device may be able to read the requested data from a location different from the physical location corresponding to the identifier or logical address, for example, a buffer configured in a volatile memory where the input write data is initially stored. Summary of the invention

[0007] According to an embodiment, a storage device includes a nonvolatile memory, a communication interface connectable to a host, and a controller. The controller is configured to, when receiving a write command associated with data through the communication interface, execute writing of the data received through the communication interface at a physical location of the nonvolatile memory, control the communication interface to return a first notification when determining that writing of the data at the physical location of the nonvolatile memory has been completed, and control the communication interface to return a second notification at a predetermined time period after the first notification has been returned.

[0008] According to another embodiment, a storage system includes a storage device including a non-volatile memory, a communication interface, and a controller; and a host connected to the communication interface of the storage device and including a write buffer memory and a processor. The controller is configured to, when receiving a write command associated with data from the host through the communication interface, execute writing of the data received from the host through the communication interface at a physical location of the non-volatile memory, when determining that writing of the data at the physical location of the non-volatile memory has been completed, control the communication interface to return a first notification to the host, and control the communication interface to return a second notification to the host at a predetermined time period after the first notification has been returned.

[0009] According to another embodiment, a computing device connectable to a non-volatile memory device includes a memory unit, a controller that can communicate with the non-volatile memory device through a communication interface of the non-volatile memory device, and a processor. The processor is configured to temporarily store data in the memory unit, control the controller to send a write command associated with the data to the non-volatile memory device, store a mapping between an identifier or a logical address of the data and a physical location of the non-volatile memory where the data is written in the memory unit when a first notification indicating that writing the data is completed is returned from the non-volatile memory device, and erase or trim the data stored in the memory unit when a second notification indicating that the data stored at the physical location of the non-volatile memory is ready to be read is returned from the memory device after the first notification.

[0010] According to the embodiment, an increase in data traffic between a host and a storage device can be suppressed. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A configuration of a storage system including a host and at least one storage device according to an embodiment is shown.

[0012] Figure 2 Shown is a physical configuration of a storage system according to an embodiment.

[0013] Figure 3A software layer structure of a host and a communication architecture between the host and a storage device according to an embodiment are shown.

[0014] Figure 4 Shows the configuration of flash memory chips in a storage device.

[0015] Figure 5 Shows the detailed circuit structure of the memory cell array in the flash memory chip.

[0016] Figure 6 The relationship between 2-bit four-level data (data “11”, “01”, “10”, and “00”) stored in a memory cell of a four-level NAND cell type and a threshold voltage distribution of each level is shown.

[0017] Figure 7 An example of an address structure of a physical address according to an embodiment is shown.

[0018] Figure 8 An overview of mapping of physical blocks based on a block pool in an embodiment is shown.

[0019] Fig. 9 An example of a block mapping table (BMT) according to an embodiment is shown.

[0020] Fig.10 An architectural overview of data flow and block mapping transitions in a storage system according to an embodiment is shown.

[0021] Fig.11 The flow of a write operation performed according to an embodiment is shown. DETAILED DESCRIPTION

[0022] The details of the present disclosure are described below with reference to the accompanying drawings.

[0023] [Storage system]

[0024] Figure 1 FIG. 2 shows a configuration of a storage system 1 according to an embodiment. The storage system 1 includes a host 3, one or more storage devices 2, and an interface 10 configured to connect the host 3 and each of the storage devices 2. In this embodiment, the storage system 1 is as follows: Figure 22U storage device shown. That is, the host 3 and one or more storage devices 2 are accommodated in a housing having the size of a 2U storage device. Each storage device in the storage device 2 is a non-volatile storage device, such as a 2.5-inch form factor (facotr), a 3.5-inch form factor, an M.2 form factor, or an add-in card (AIC) form factor. In addition, in the present embodiment, the interface 10 adopts a PCI Express (Peripheral Component Interconnect Express, PCIe) interface. Alternatively, the interface 10 may adopt any other technically feasible protocol, such as SAS (Serial Attached SCSI) protocol, USB (Universal Serial Bus), SATA (Serial Advanced Technology Attachment), Thunderbolt Ethernet Fibre Channel, etc.

[0025] The storage device 2 includes a controller 14, a random access memory (RAM) 15, a nonvolatile semiconductor memory such as a NAND flash memory 16 (hereinafter referred to as the flash memory 16), and an interface controller (IFC) 18. The IFC 18 is configured to perform transmission and reception of signals to and from the host 3 via the interface 10. The controller 14 is configured to manage and control the flash memory 16, the RAM 15, and the IFC 18.

[0026] The RAM 15 is, for example, a volatile RAM such as DRAM (dynamic random access memory) and SRAM (static random access memory), or a nonvolatile RAM such as FeRAM (ferroelectric random access memory), MRAM (magnetoresistive random access memory), PRAM (phase change random access memory), and ReRAM (resistance random access memory). The RAM 15 may be embedded in the controller 14. The flash memory 16 includes one or more flash memory chips 17, and stores user data designated by the host 3 in the one or more flash memory chips 17. The controller 14 and the flash memory 16 communicate with each other via a flash memory interface 21 such as Toggle and ONFI (see Figure 4 )connect.

[0027] The host 3 includes a CPU (central processing unit) 4, a memory 5, a controller 6, and a network interface controller (NIC) 7. The CPU 4 is a central processing unit in the host 3, and performs various calculation and control operations of the host 3. The CPU 4 and the controller 6 are connected by an interface using a protocol such as PCI Express. The CPU 4 performs control of the storage device 2 via the controller 6. In the present embodiment, the controller 6 is a PCIe switch and a PCIe expander, but a SAS expander, a RAID controller, a JBOD controller, a JBOF controller, etc. can be used as the controller 6.

[0028] The CPU 4 also performs control of the memory 5. The memory 5 is, for example, DRAM (Dynamic Random Access Memory), MRAM (Magnetoresistive Random Access Memory), ReRAM (Resistance Random Access Memory), and FeRAM (Ferroelectric Random Access Memory).

[0029] The CPU 4 is a processor configured to control the operation of the host 3. The CPU 4 executes an operating system (OS) 11 loaded from, for example, one of the storage devices 2 to the memory 5. The CPU 4 is connected to the NIC 7, which is connected to an external network via a network interface. The network interface utilizes protocols such as Ethernet, InfiniBand, Fibre Channel, PCI Express Fabric, WiFi, etc.

[0030] The memory 5 temporarily stores programs and data, and is used as a working memory of the CPU 4. The memory 5 includes a memory area for storing the OS 11, application software 13, a lookup table (LUT) 8, a submission queue 50, and a completion queue 51, and also includes a write buffer (WB) 54 and a read buffer (RB) 55. As is well known, the OS 11 represents system software for managing the host 3, and may be, for example, The OS 11 is a commercial OS of virtualization software available from VMware, Inc. or VMware, Inc. The OS 11 is executed to manage input to and output from the host 3, the storage device 2, and the memory 5. That is, the OS 11 enables software to use components in the storage system 1 including the storage device 2. In addition, the OS 11 is used to control the manner in which data is written to and read from the storage device 2.

[0031] The write buffer 54 temporarily stores data to be written in the storage device 2, i.e., write data. The read buffer (RB) 55 temporarily stores data read from the storage device 2, i.e., read data. The LUT 8 is used to manage the mapping between the file ID (object ID or logical address) of the data and the physical address of the flash memory 16 and the write buffer memory 54, where the data is stored for writing or is to be stored for reading. The submission queue 50 contains, for example, commands and requests regarding the storage device 2. The completion queue 51 contains information indicating the completion of the commands and requests and information related to the completion, which is sent to the host 3 when the commands and requests of the storage device 2 are completed.

[0032] The host 3 sends a plurality of commands for writing and reading data to and from the storage device 2 via the corresponding interface 10. As described in detail below, the commands include a read command 90, a write command 91, an invalidate command, a copy command, and the like.

[0033] Furthermore, one or more units of the application software 13 are respectively loaded into the memory 5 . Figure 3 The software layer structure of the host 3 according to the present embodiment and the communication architecture between the host 3 and the storage device 2 are shown. Generally, the application software 13 loaded in the memory 5 does not communicate directly with the storage device 2, but communicates with the storage device 2 through the OS 11 loaded in the memory 5 via the file interface and the object interface.

[0034] The OS 11 operates to send commands including a read command 90, a write command 91, an invalidation command, and a copy command, and a physical address 56 to the storage device 2 via the interface 10. The physical address 56 is used to specify the physical location of the flash memory 16 to be accessed for data reading or data writing. According to these commands and the physical address (if any), the flash memory 16, more specifically the flash memory chip 17, performs data access processing.

[0035] The application software 13 includes, for example, client software, database software (e.g., Cassandra DB, Mongo DB, HBASE, etc.), distributed storage systems (e.g., Ceph, etc.), virtual machines (VMs), guest OSs, and analysis software (e.g., Hadoop, R, etc.).

[0036] [Flash memory chip]

[0037] Figure 4 The configuration of the flash memory chip 17 is shown. The flash memory chip 17 includes a memory cell array 22 and a NAND controller (NANDC) 23. As described in detail below, the memory cell array 22 includes a plurality of memory cells arranged in a matrix configuration, each of which stores data. The NANDC 23 is a controller configured to control access to the memory cell array 22. Specifically, the NANDC 23 includes a control signal input pin 24, a data input / output pin 25, a word line control circuit 26, a control circuit 27, a data input / output buffer 28, a bit line control circuit 29, and a column decoder 30. The control circuit 27 is connected to the control signal input pin 24, the word line control circuit 26, the data input / output buffer 28, the bit line control circuit 29, and the column decoder 30, and controls the overall operation of the circuit elements of the NANDC 23. In addition, the memory cell array 22 is connected to the word line control circuit 26 and the control circuit 27. In addition, the control signal input pin 24 and the data input / output pin 25 are connected to the controller 14 of the storage device 2 through the flash memory interface 21.

[0038] When data is read from the flash memory chip 17, the data in the memory cell array 22 is output to the bit line control circuit 29, and then temporarily stored in the data input / output buffer 28. Then, the read data is sent from the data input / output pin 25 to the controller 14 of the storage device 2 through the flash memory interface 21. When data is written to the flash memory chip 17, the data to be written (write data) is input to the data input / output buffer 28 through the data input / output pin 25. Then, the write data is sent to the column decoder 30 through the control circuit 27, and is input to the bit line control circuit 29 by the column decoder 30. The write data is written to the memory cells of the memory cell array 22 at the timing controlled by the word line control circuit 26 and the bit line control circuit 29. When a control signal is input from the controller 14 of the storage device 2 to the flash memory chip 17 through the flash memory interface 21, the control signal is input to the control circuit 27 through the control signal input pin 24. Then, the control circuit 27 generates a control signal according to the control signal from the controller 14, and controls the voltage for controlling the memory cell array 22, the bit line control circuit 29, the column decoder 30, the data input / output buffer 28, and the word line control circuit 26. Here, the circuit portion including the circuit other than the memory cell array 22 in the flash memory chip 17 is referred to as NANDC 23.

[0039] Figure 5 2 shows a detailed circuit structure of the memory cell array 22. The memory cell array 22 includes one or more planes 37 (in Figure 5 Each plane 37 includes a plurality of physical blocks 36, and each physical block 36 includes a plurality of memory strings 34. In addition, each of the memory strings (MS) 34 includes a plurality of memory cells 33.

[0040] The memory cell array 22 further includes a plurality of bit lines 31, a plurality of word lines 32, and a common source line. Electrically data-rewritable memory cells 33 are arranged in a matrix configuration at the intersections of the bit lines 31 and the word lines. The bit line control circuit 29 is connected to the bit lines 31, and the word line control circuit 26 is connected to the word lines 32, so as to control the writing and reading of data with respect to the memory cells 33. That is, the bit line control circuit 29 reads the data stored in the memory cells 33 via the bit lines 31, applies a write control voltage to the memory cells 33 via the bit lines 31, and writes data into the memory cells 33 selected by the word lines 32.

[0041] In each memory string (MS) 34, memory cells 33 are connected in series, and selection gates S1 and S2 are connected to both ends of the MS 34. The selection gate S1 is connected to the bit line BL 31, and the selection gate S2 is connected to the source line SRC. The control gates of the memory cells 33 arranged in the same row are commonly connected to one of the word lines 32WL0 to WLm-1. The first selection gate S1 is commonly connected to the selection line SGD, and the second selection gate S2 is commonly connected to the selection line SGS.

[0042] A plurality of memory cells 33 connected to one word line 32 configure one physical sector 35. Data is written and read for each physical sector 35. In one physical sector 35, data equivalent to two physical pages (two pages) is stored when a 2-bit / cell write system (MLC, four levels) is adopted, and data equivalent to one physical page (one page) is stored when a 1-bit / cell write system (SLC, two levels) is adopted. In addition, when a 3-bit / cell write system (TLC, eight levels) is adopted, data equivalent to three physical pages (three pages) is stored in one physical sector 35. In addition, data is erased in units of physical blocks 36.

[0043] During a write operation (also referred to as a program operation), a read operation, and a program verification operation, a word line WL is selected according to a physical address such as a row address received from the controller 14, and thus, a physical sector 35 is selected. Switching of pages in the selected physical sector 35 is performed according to a physical page address in the physical address. The physical address includes a physical block address 58 and a physical page address 59 (see Figure 7 ). A physical page address is assigned to each of the physical pages, and a physical block address is assigned to each of the physical blocks 36.

[0044] The 2-bit / cell four-level NAND memory is configured so that a threshold voltage in one memory cell can have four distributions. Figure 6 The relationship between 2-bit four-level data (data "11", "01", "10", and "00") stored in a memory cell 33 of a four-level NAND cell type and the threshold voltage distribution of each level is shown. The 2-bit data of one memory cell 33 includes lower page data and upper page data. According to separate write operations, i.e., two write operations, the lower page data and the upper page data are written to the memory cell 33. Here, when data is represented as "XY", "X" represents upper page data, and "Y" represents lower page data.

[0045] Each memory cell in the memory cell 33 includes a memory cell transistor, for example, a MOSFET (metal oxide semiconductor field effect transistor) having a stacked gate structure formed on a semiconductor substrate. The stacked gate structure includes a charge storage layer (floating gate electrode) formed on the semiconductor substrate via a gate insulating film and a control gate electrode formed on the floating gate electrode via an inter-gate insulating film. The threshold voltage of the memory cell transistor changes according to the number of electrons accumulated in the floating gate electrode. The memory cell transistor stores data by changing its threshold voltage.

[0046] In the present embodiment, each memory cell in the memory cell 33 adopts a write system of a four-level storage method for 2 bits / cell (MLC) using a high page and a low page. Alternatively, the memory cell 33 may adopt a write system of a two-level storage method of 1 bit / cell (SLC) using a single page, an eight-level storage method for 3 bits / cell (TLC) using a high page, an intermediate page, and a low page, or a multi-level storage method for 4 bits / cell (QLC) or more bits / cell, or a mixture thereof. The memory cell transistor is not limited to a structure including a floating gate electrode, and may be a structure such as a MONOS (metal oxide-nitride-oxide-silicon) type, which can adjust the threshold voltage by capturing electrons at a nitride interface as a charge storage layer. Similarly, a MONOS type memory cell transistor may be configured to store one bit of data, or may be configured to store multiple bits of data. The memory cell transistor may be a semiconductor storage medium as a non-volatile storage medium in which the memory cells are arranged three-dimensionally, as described in U.S. Patent 8,189,391, U.S. Patent Application Publication No. 2010 / 0207195, and U.S. Patent Application Publication No. 2010 / 0254191, the entire contents of which are incorporated herein by reference.

[0047] [Address structure]

[0048] Figure 7 An example of the address structure of the physical address 56 according to the present embodiment is shown. When the OS 11 operates according to the process of physical access, Figure 7 The physical address 56 is sent via the interface 10 in the form of the address structure shown in FIG. The address structure of the physical address 56 includes a chip address 57, a block address 58, and a page address 59. In this embodiment, as shown in FIG. Figure 7 As shown in , the chip address 57 is located on the MSB (most significant bit) side of the address structure, and the page address 59 is located on the LSB (least significant bit) side of the address structure. However, the positions of the chip address 57, block address 58, and page address 59 in the physical address 56 can be arbitrarily determined.

[0049] [Block Mapping]

[0050] Figure 8 An overview of the mapping of physical blocks based on the block pool in this embodiment is shown. As described above, the mapping is managed using the BMT 46 stored in the RAM 15. The block pool includes an input block pool 420, an active block pool 430, a free block pool 440, and a bad block pool 450. The mapping of physical blocks is managed by the controller 14 of the storage device 2, and when a physical block is remapped to a different block pool, the controller 14 updates the mapping in the BMT 46. The controller 14 maps each physical block of the flash memory 16 to a block pool in the block pool in the BMT 46.

[0051] The input block pool 420 includes at least one input block 42. The input block 42 is a block in which data is written. The input block 42 may not store data, or include both a written area and an unwritten area in which data may be written.

[0052] The active block pool 430 may include one or more active blocks 43. An active block 43 is a physical block that no longer has a writable area (ie, becomes full of data). In addition, at least some of the written data in the active block 43 is valid data.

[0053] The free block 440 includes one or more free blocks 44. The free block 44 includes a physical block that has not previously stored any data and a physical block that has not stored valid data. That is, all data (if any) stored in the free block 44 has been invalidated.

[0054] The bad block pool 450 includes one or more bad blocks 45. The bad block 45 is a block that cannot be used for data writing due to defects, for example.

[0055] Fig. 9 An example of a block mapping table (BMT) 46 used in the storage device 2 according to the present embodiment is shown. The BMT 46 includes a free block table 461, an active block table 462, a bad block table 463, and an input block table 464. In each of the tables 461-464 of the BMT 46, each entry indicates a correspondence between a block address and an erase count indicating the number of times the data in the block address has been erased. Other configurations of different types of block pools can also be managed in the BMT 46.

[0056] The input block table 464 also indicates the physical page address (PPA) where the next write data will be written. When the controller 14 remaps a free block 44 in the free block pool 440 as an input block 42, the controller 14 removes the block address of the free block 44 from the free block table 461 and adds a new entry including the block address and PPA=0 to the input block table 464.

[0057] Because in the present embodiment, the bad block table 463 of the BMT 46 is used by the controller 14 to manage the bad block 45 of the flash memory 16, the CPU 4 of the host 3 does not have to manage the bad block 45, and does not have to monitor the unreliable physical blocks and defects of the flash memory 16. If the controller 14 of the storage device 2 determines that the physical block is unreliable, the controller 14 prevents data from being written to the physical block by deleting the entry from one of the block tables including the entry of the corresponding block address in the input block table 464, the active block table 462, and the free block table 461 and by adding the entry to the bad block table 463. For example, when a programming error, an erase error, or an uncorrectable ECC error occurs during access to the physical block, the controller 14 determines to remap the physical block to the bad block 45. In the present embodiment, the physical address to which the data is to be written can be determined by the host 2 or by the controller 14. When the physical address is determined by the controller 14, the host 3 does not need to perform such bad block management.

[0058] In addition, because the erase count of each physical block is managed by the controller 14 of the storage device 2 using the BMT 46, the controller 14 can perform dynamic wear leveling when writing data to the flash memory 16. For example, in the present embodiment, when the controller 14 remaps a free block 44 in the free block pool 440 as an input block 42, the controller 14 selects the free block 44 with the minimum erase count. If the free block 44 is located in a channel or a bank that is in a busy state, the controller 14 can select another free block 44 that has the second minimum erase count and is in an idle state from the free block pool 440.

[0059] When the controller 14 processes a write operation with respect to the input block 42, the controller 14 specifies a physical page address (PPA) by referring to the input block table 464, writes data to the physical page address of the input block 42, and increments the PPA ((new) PPA=(old) PPA+write data size) in the input block table 464. When the (new) PPA exceeds the maximum page address of the input block 42, the controller 14 remaps the input block 42 to an active block 43 in the active block pool 430.

[0060] [Write Operation]

[0061] Fig.10 An example of a write operation performed in the storage device 2 according to the present embodiment is schematically shown. During the write operation, the controller 14 writes write data (user data) stored in the write buffer 54 into the flash memory 16. Fig.10 Each of the input block pool 420, active block pool 430, free block pool 440 and bad block pool 450 includes one or more physical blocks.

[0062] Controller 14 receives write data from write buffer 54 via interface 10 and generates an ECC code from the write data using ECC encoder 48 of controller 14. In addition, controller 14 decodes read data including user data and ECC code using ECC decoder 49 in controller 14 during a read operation described below.

[0063] When the controller 14 writes write data from the write buffer 54 to the flash memory 16, the controller 14 specifies the physical address of the page in the input block 42 of the input block pool 420 to which the write data is to be written by referring to the BMT 46. If there is no available input block 42 in the flash memory 16, the controller 14 allocates a new input block 42 by remapping a free block 44 in the free block pool 440.

[0064] Furthermore, if no physical page in the input block 42 is available for data writing without erasing the data therein, i.e., becomes full of written data, the controller 14 remaps the block to an active block 43 in the active block pool 430. The controller 14 can also remap (de-allocate) the active block 43 in the active block pool 430 to a free block 44 in the free block pool 440.

[0065] A plurality of input blocks 42 are prepared in the plurality of input block pools 420, each of the input blocks 42 is dedicated to data writing about a corresponding stream ID, and the write data associated with the stream ID is written to the input block 42 associated with the stream ID. In this example, the write command from the host 3 includes the stream ID. When the host 3 operates to issue a write command specifying the stream ID to the submission queue 50, the controller 14 receives the write data from the write buffer 54 and writes the write data to the input block 42 associated with the stream ID. If the host 3 operates to issue a write command without specifying the stream ID to the submission queue 50, the controller 14 receives the write data from the write buffer 54 and writes the write data to the input block 42 not associated with the stream ID. By storing the write data in different input blocks 42 according to the stream ID, the data type (or data life) stored in each input block 42 can be made more uniform, and therefore, the entire data in the physical block can be deleted without having to partially transfer the data to another physical block when performing a garbage collection operation, that is, the garbage collection operation becomes more efficient.

[0066] Fig.11A flowchart of a write operation is shown, in which the storage device 2 determines the physical address of the memory cell array 22 to which the write data is to be written, and the host 3 does not specify the physical address. When the write operation starts, in step 1101, the host 3 writes the data to be written in the flash memory 16 of the storage device 2 (hereinafter referred to as "write data") into the write buffer (WB) 54 of the host 3. In addition, the host 3 updates the LUT 8 stored in the memory 5 of the host 3 so that the mapping between the file ID (object ID or logical address) of the write data and the address of the WB 54 is stored therein. Then, in step 1102, the host 3 issues a write command including the size information of the write data but not including the address information to the submission queue 50 of the host 3. The write command also includes a unique command identifier (UCID) and a stream ID.

[0067] In step 1103, the controller 14 of the storage device 2 obtains the write command from the submission queue 50 and writes the data from the WB 54. Upon receiving the write data, in step 1104, the controller 14 refers to the BMT 46 to determine the physical location (physical address 56) of the flash memory 16 where the write data is to be written. Specifically, the controller 14 determines the next available page of the input block 42 corresponding to the stream ID as the physical location. Then, in step 1105, the ECC encoder 48 of the controller 14 (see Fig.10 ) Generates an ECC code from the write data. In step 1106, the controller 14 issues a write command to the flash memory 16 to write the write data and the ECC code into a determined physical location of the flash memory 16.

[0068] When a command to write data is issued in a determined physical location of the flash memory 16 (i.e., the input block 42), if a programming error (write error) is not returned from the flash memory 16, the controller 14 sends a write completion notification including the physical address 56 to which the write data is written and the UCID to the host 3 in step 1107, so that the write completion notification is posted on the completion queue 51 of the host 3. In step 1108, the host 3 takes out the write completion notification from the completion queue 51. Then, in step 1109, the host 3 updates the LUT 8 stored in the memory 5 of the host 3 so that a mapping between the file ID (object ID or logical address) of the write data for which the write command is issued together with the UCID and the physical address 56 of the input block 42 returned together with the same UCID is stored therein.

[0069] After sending the write completion notification in step 1107, the controller 14 counts out a predetermined time period in step 1110. When the predetermined time period has elapsed, the process proceeds to the next step 1111. Here, the predetermined time period is an amount of time that is considered sufficient for the flash memory 16 to be ready to read the write data. Generally, after the write data is written to the flash memory 16, a certain amount of time (e.g., 100-1000 milliseconds) is required until the flash memory 16 is ready to read the write data. This is because even if a programming error is not returned, the electrons in the floating gate electrode of the memory cell may not yet be in a stable state, and the threshold voltage of such a memory cell may still be at a value indicating different data (e.g., in Figure 6 In addition, as the number of bits stored in each memory cell becomes larger, the predetermined time period can be set to be larger because the accuracy of the threshold becomes more critical. For example, the predetermined time period for writing in a TLC type memory cell is greater than the predetermined time period for writing in an MLC type memory cell.

[0070] After a predetermined period of time has passed, in step 1111, the controller 14 reads data (write data and ECC code) from the flash memory 16. Specifically, the ECC decoder 49 of the controller 14 (see Fig.10 ) decodes the data read from the flash memory and performs error correction of the written data using the ECC code as needed. Then, in step 1112, the controller 14 determines whether any errors in the read data have been corrected. If the determination is affirmative (yes in step 1112), the process proceeds to step 1113, otherwise (no in step 1112), the process proceeds to step 1116.

[0071] In step 1113, the controller 14 sends a notification (read ready notification) together with the UCID included in the write command to the host 3. In step 1114, the host 3 receives the read ready notification, and thus the host 3 recognizes that the flash memory 16 is now ready to read the write data. Here, since the read ready notification includes the UCID, the host 3 can recognize which write data or which write command corresponds to the read ready notification. Upon obtaining the read ready notification, in step 1115, the host 3 remaps the LUT 8 so that the mapping of the address of the WB 54 is released from the file ID (object ID or logical address) of the write data, that is, the write data is trimmed (invalid) in the WB 54. Alternatively, the host 3 can erase the write data buffered in the WB 54. Through these processes, the write operation ends.

[0072] On the other hand, if the determination in step 1112 is negative (No in step 1112), that is, all errors in the read data cannot be corrected, then in step 1116, the controller 14 sends a notification (read not ready notification) together with the UCID to the host 3, which can be distinguished from the read ready notification. In step 1117, the host 3 receives the read not ready notification, and thus the host 3 recognizes that the flash memory 16 is not ready to read the write data. In order to ensure that the write data is written to the flash memory 16 in a readable manner, the process returns to step 1102, and the host 3 performs step 1102 and subsequent steps again using the write data stored in the WB 54.

[0073] In the above embodiment, during the second or subsequent operation (write attempt) in step 1102 and thereafter, data is written to another physical location of the flash memory 16 because unreadable (uncorrectable) data has been written to the physical location of the flash memory 16 accessed during the first operation (first attempt). In addition, in the above embodiment, during the second or subsequent operation, the predetermined period of time counted in step 1110 may be increased by a predetermined amount (once or repeatedly) so that sufficient time may elapse for the flash memory 16 to be ready to read the written data. In an alternative, the same predetermined period of time as the first write attempt may be counted.

[0074] Furthermore, in the above-described embodiment, if the application software 13 (see Figure 1 and Figure 3 ) If the host 3 issues a read request for write data before receiving the read ready notification, the host 3 (CPU 4) reads the write data from the WB 54 and returns the write data to the application software 13. Since the write data is stored in the WB 54 until the flash memory 16 is ready to read the write data, it is possible to prevent data from being inaccessible during the write operation.

[0075] Furthermore, in the above-described embodiment, the controller 14 of the storage device 2 may be configured to return a warning when the controller 14 receives a read command 90 for write data before sending a read-ready notification. Although the host 3 should be designed not to issue a read command 90 for write data before receiving a read-ready notification, this may be caused by an improper design of the host 3. According to this configuration, even if such a read command 90 is received from the host 3, a read operation that will result in an unsuccessful read is not performed.

[0076] Furthermore, in another embodiment, steps 1111 and 1112 may not be performed, and the controller 14 of the storage device 2 may send a read-ready notification when a predetermined period of time has passed in step 1111. In this case, steps 1116 and 1117 are also not performed, and repeated operations of step 1112 and subsequent steps are not performed.

[0077] In another embodiment, if the determination result in step 1112 is negative, that is, the error included in the write data is not corrected, the process can return to step 1110. In this case, the same write data is repeatedly read until the write data can be read or the error in the write data can be successfully corrected.

[0078] In another embodiment, the write operation is performed in such a manner that the host 3, rather than the controller 14 of the storage device 2, determines the physical address of the memory cell array 22 to which the write data is to be written. In this case, in step 1102, the host 3 issues the determined physical address together with the write command, size information, UCID, and stream ID to the submission queue 50. In addition, since the controller 14 does not determine the physical address, step 1104 can be omitted. In addition, since the host 3 has already identified the physical address to which the write data is to be written, the write completion notification sent from the storage device 2 does not need to include the physical address.

[0079] As described above, according to the above embodiment, the controller 14 of the storage device 2 sends secondary notifications such as a read-ready notification and a read-not-ready notification to the host 3 after sending a write-complete notification to the host 3. According to this configuration, the host 3 can identify whether the write data is written into the flash memory 16 and a successful read state is obtained based on the write-complete notification. In addition, the host 3 can identify whether the flash memory 16 to which the write data has been written is ready to read the write data based on the secondary notification. That is, the host 3 can manage the time when the write data is written into the flash memory 16 and the time when the flash memory 16 is ready to read the write data, respectively. In addition, since the write data is stored in the write buffer 54 until the read-ready notification is received, the host 3 can process the write data more reliably and prevent the write data from being lost or unreadable from the flash memory 16 after the write operation.

[0080] In addition, according to the above-mentioned embodiment, since no additional operation different from the write operation (for example, a read-after-write operation) is required to ensure that the write data is written to the flash memory in a readable manner, the increase in data traffic between the host 3 and the storage device 2, as well as the increase in the waiting time (latency) of the storage device 2 caused by such an addition operation can be suppressed.

[0081] Although certain embodiments have been described, these embodiments are given by way of example only and are not intended to limit the scope of the invention. Indeed, the novel embodiments described herein may be implemented in a variety of other forms; furthermore, various omissions, substitutions, and changes may be made to the forms of the embodiments described herein without departing from the spirit of the invention. The appended claims and their equivalents are intended to cover such forms or modifications that fall within the scope and spirit of the invention.

Claims

1. A storage device, comprising: Non-volatile memory; a communication interface connectable to a host, the host including a buffer for storing data to be written to the non-volatile memory; as well as controller, which is configured as determining a physical location of the non-volatile memory for writing the data when the data and a write command associated with the data are received from the host through the communication interface, the write command including an identifier and information specifying a size of the data to be written, issuing a command to the non-volatile memory to perform writing of the data in the determined physical location, controlling the communication interface to send a first notification to the host, the first notification including the identifier and the physical location where the data has been written, instructing the nonvolatile memory to perform a read of the data written in the physical location of the nonvolatile memory at a certain amount of time after the first notification is sent, and When a read error occurs in the written data, the communication interface is controlled to send a second notification to the host, wherein the second notification indicates that the written data is not yet ready to be read by the host.

2. The storage device of claim 1, wherein the non-volatile memory is a NAND type flash memory. 3 . The storage device according to claim 1 , wherein the controller is further configured to instruct the nonvolatile memory to perform writing of the data in another physical location of the nonvolatile memory if writing of the data fails. 4 . The storage device of claim 1 , wherein the physical location included in the first notification is represented by a physical address.

5. The storage device of claim 1 , wherein the controller is further configured to, after sending the first notification to the host and instructing the nonvolatile memory to perform reading of the data written in the physical location of the nonvolatile memory, perform error correction of the read data returned from the nonvolatile memory, and, if errors are included in the read data, determine whether all errors included in the read data have been corrected. 6 . The storage device according to claim 5 , wherein if errors are included in the read data, the second notification is sent when it is determined that all errors included in the read data cannot be corrected.

7. The storage device according to claim 5, wherein The controller is further configured to control the communication interface to send a third notification to the host when all errors included in the read data have been corrected.

8. The storage device according to claim 7, wherein The controller is further configured to control the communication interface to return a warning without reading the data when a read command of the data is received from the host before the third notification is sent.

9. A storage system comprising: A storage device comprising a non-volatile memory, a communication interface, and Controller; as well as a host connected to the communication interface and comprising a buffer for storing data to be written to the storage device, wherein The controller is configured to determining a physical location of the non-volatile memory for writing the data when the data and a write command associated with the data are received from the host through the communication interface, the write command including an identifier and information specifying a size of the data to be written, issuing a command to the non-volatile memory to perform writing of the data in the determined physical location, controlling the communication interface to send a first notification to the host, the first notification including the identifier and the physical location where the data has been written, instructing the nonvolatile memory to perform a read of the data written in the physical location of the nonvolatile memory at a certain amount of time after the first notification is sent, and When a read error occurs in the written data, the communication interface is controlled to send a second notification to the host, wherein the second notification indicates that the written data is not yet ready to be read by the host.

10. The storage system of claim 9, wherein the non-volatile memory is a NAND type flash memory. 11 . The storage system according to claim 9 , wherein the controller is further configured to instruct the nonvolatile memory to perform writing of the data in another physical location of the nonvolatile memory if writing of the data fails.

12. The storage system of claim 9, wherein the physical location included in the first notification is represented by a physical address.

13. The storage system of claim 9 , wherein the controller is further configured to, after sending the first notification to the host and instructing the nonvolatile memory to perform reading of the data written in the physical location of the nonvolatile memory, perform error correction of the read data returned from the nonvolatile memory, and, if errors are included in the read data, determine whether all errors included in the read data have been corrected. 14 . The storage system according to claim 13 , wherein if errors are included in the read data, the second notification is sent when it is determined that all errors included in the read data cannot be corrected. 15 . The storage system of claim 13 , wherein the controller is further configured to control the communication interface to send a third notification to the host when all errors included in the read data have been corrected. 16 . The storage system according to claim 15 , wherein the controller is further configured to, when receiving a read command of the data from the host before sending the third notification, control the communication interface to return a warning to the host without reading the data.

Citation Information

Patent Citations

  • Non-volatile semiconductor storage device and method of manufacturing the same

    US20100207195A1

  • Semiconductor memory device comprising three-dimensional memory cell array

    US20100254191A1

  • Storage system having a host that manages physical data locations of storage device

    US20180107391A1

  • Non-volatile semiconductor storage device including a control circuit

    US8189391B2

  • Nonvolatile writing buffer data retention to be dispatch verified

    CN103985411A