MEMORY SYSTEM, METHOD AND DATA PROCESSING SYSTEM

The memory system addresses the inflexibility of CSS activation by using command flags to control CSS operations, allowing flexible and efficient data processing without additional host management.

JP7566674B2Active Publication Date: 2024-10-15KIOXIA CORP
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2021044768
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-18
Publication Date
2024-10-15
Estimated Expiration
2041-03-18

AI Technical Summary

Technical Problem

Existing memory systems lack flexibility in activating Computational Storage Services (CSS) without requiring the host to manage detailed control and associate data with service information.

Method used

A memory system with a first and second processor that executes data processes based on command flags, allowing the host to specify and control CSS operations through CS flags in io commands, enabling flexible activation and parameterization of CSS without additional host management.

Benefits of technology

Enables flexible and efficient activation of CSS services by specifying data processes and parameters directly in io commands, reducing host CPU load and enhancing data processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566674000001
    Figure 0007566674000001
  • Figure 0007566674000002
    Figure 0007566674000002
  • Figure 0007566674000003
    Figure 0007566674000003
Patent Text Reader

Abstract

To provide an improved memory system, method, and data processing system with data processing capabilities.SOLUTION: According to an embodiment, a memory system includes a non-volatile memory and a controller that controls data processing including a first process of writing data designated by a command received from an external device into the non-volatile memory, or a second process of reading data designated by the command received from the external device, from the non-volatile memory and transmitting the read data to the external device. The controller has a processor that determines whether or not to perform data processing according to information included in the command.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] SUMMARY OF THE DISCLOSURE Embodiments of the present invention relate to memory systems, methods and data processing systems including non-volatile memory. [Background technology]

[0002] A storage system including a memory system with a non-volatile memory has been developed. The storage system includes a host and a memory system connected to the host, and is realized as a data processing system. In the data processing system, a method has been proposed for reducing the load on the CPU (also called the host CPU) of the host and reducing the cost of moving data between the host CPU and the memory system. For example, a method has been proposed in which data processing is performed not by the host CPU but by a dedicated processor located inside the memory system or near the memory system. This method is realized by a configuration in which a calculation function for performing data processing is located inside the memory system or near the memory system. A memory system that is compatible with such a configuration is called a storage with a calculation function or a Computational Storage (CS). The service provided by the CS is called a Computational Storage Service (CSS).

[0003] One example of a method for starting a CSS is to start the CSS in conjunction with io commands such as read commands and write commands from the host to the CS. This method allows the CSS to be started without the host being aware of it. However, this method lacks flexibility. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2020-102218 A [Patent Document 2] Patent Publication No. 2020-154626 [Patent Document 3] JP 2019-75104 A Summary of the Invention [Problem to be solved by the invention]

[0005] SUMMARY OF THE PRESENT EMBODIMENT It is an object of the present invention to provide an improved memory system, method and data processing system with data processing capabilities. [Means for solving the problem]

[0006] According to an embodiment, a memory system includes a non-volatile memory; A first processor and a second processor And, it is equipped with. First Processor is received from an external device No. 1 A first process of writing data designated by a command to a non-volatile memory or a first process of writing data received from an external device to the non-volatile memory. Second A second process of reading data specified by the command from the non-volatile memory and transmitting the read data to an external device. of Take control. The second processor is capable of executing a plurality of first data processes on data to be written to the non-volatile memory and a plurality of second data processes on data read from the non-volatile memory. The first command includes first information designating one of the plurality of first data processes, second information indicating whether the second processor is to execute or not execute the one first data process, and third information designating a first parameter related to the one first data process. The second command includes fourth information designating one of the plurality of second data processes, fifth information indicating whether the second processor is to execute or not execute the one second data process, and sixth information designating a second parameter related to the one second data process. When the second information included in the first command indicates that the second processor is to execute the one first data process, the first processor causes the second processor to execute the one first data process designated in the first information using the first parameter designated in the third information before writing the data designated by the first command to the non-volatile memory, and writes the data after the one first data process to the non-volatile memory. When the fifth information included in the second command indicates that the second processor is to execute one second data processing operation, the first processor reads data specified in the second command from the non-volatile memory, and then causes the second processor to execute the one second data processing operation specified in the fourth information using second parameters specified in the sixth information, and transmits the data after the one second data processing operation to an external device. [Brief description of the drawings]

[0007] [Figure 1] FIG. 4 is a block diagram for explaining an example of writing to a CS according to the first embodiment. [Diagram 2] 11 is a flowchart showing an example of a processing flow at the time of writing. [Diagram 3] FIG. 4 is a block diagram for explaining an example of reading a CS according to the first embodiment. [Figure 4] 11 is a flowchart showing an example of a processing flow at the time of reading. [Diagram 5] FIG. 11 is a block diagram for explaining an example of writing a CS according to the second embodiment. [Figure 6] 11 is a flowchart showing an example of a processing flow at the time of writing. [Figure 7] FIG. 11 is a block diagram for explaining an example of reading a CS according to the second embodiment. [Figure 8] 11 is a flowchart showing an example of a processing flow at the time of reading. [Figure 9] FIG. 13 is a block diagram for explaining an example of a write of a CS according to the third embodiment. [Figure 10] 11 is a flowchart showing an example of a processing flow at the time of writing. [Figure 11] FIG. 13 is a block diagram for explaining an example of reading a CS according to the third embodiment. [Figure 12] 11 is a flowchart showing an example of a processing flow at the time of reading. [Figure 13] FIG. 13 is a diagram showing an example of a command that a host puts into an io queue in the fourth embodiment. [Figure 14] FIG. 13 is a block diagram for explaining an example of writing to a CS according to the fifth embodiment. [Figure 15] 11 is a flowchart showing an example of a processing flow at the time of writing. [Figure 16] FIG. 13 is a block diagram for explaining an example of reading a CS according to the fifth embodiment. [Figure 17] 11 is a flowchart showing an example of a processing flow at the time of reading. [Figure 18] 23 is a flowchart showing an example of the flow of a CS flag generation process during writing according to the sixth embodiment. [Figure 19] 23 is a flowchart showing an example of the flow of a CS flag generation process during reading according to the sixth embodiment. [Figure 20] FIG. 13 is a diagram showing an example of a CPM 44 and a CSS 46 according to the sixth embodiment. [Figure 21] 23 is a flowchart showing an example of the flow of a CS flag generation process during writing according to the seventh embodiment. [Figure 22] 23 is a flowchart showing an example of the flow of a CS flag generation process during reading according to the seventh embodiment. [Figure 23] 23 is a flowchart showing an example of the flow of CSS processing during writing according to the seventh embodiment. [Figure 24] 23 is a flowchart showing an example of the flow of CSS processing during reading according to the seventh embodiment. [Diagram 25] 23 is a flowchart showing an example of the flow of a CS flag generation process during writing according to the eighth embodiment. [Figure 26] 23 is a flowchart showing an example of the flow of a CS flag generation process during reading according to the eighth embodiment. [Figure 27] 23 is a flowchart showing an example of the flow of CSS processing during writing according to the eighth embodiment. [Figure 28] 23 is a flowchart showing an example of the flow of CSS processing during reading according to the eighth embodiment. [Figure 29] 23 is a flowchart showing an example of the flow of CSS processing during writing according to the ninth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Hereinafter, the embodiments will be described with reference to the drawings. The following description is an example of an apparatus and method for embodying the technical idea of ​​the embodiment, and the technical idea of ​​the embodiment is not limited to the structure, shape, arrangement, material, etc. of the components described below. Modifications that a person skilled in the art can easily conceive are naturally included in the scope of the disclosure. In order to make the description clearer, the size, thickness, planar dimensions, or shape of each element may be changed from the actual embodiment and shown diagrammatically. Elements having different dimensional relationships or ratios may be included in multiple drawings. In multiple drawings, corresponding elements may be given the same reference numerals and duplicated descriptions may be omitted. Some elements may be given multiple names, but these examples of names are merely examples and do not deny the use of other names for these elements. In addition, it is not denied that elements not given multiple names may be given other names. In the following description, "connection" means not only direct connection but also connection via other elements.

[0009] Hereinafter, the present embodiment will be described in detail with reference to the drawings.

[0010] The embodiment relates to an operation method for Computational Storage (CS).

[0011] Various methods have been proposed for achieving CS and the services it provides.

[0012] SNIA, the organization promoting standardization of storage networking, is collecting various information about CS, classifying, defining, and prioritizing it, and then working to standardize the host interface for CS.

[0013] The SNIA describes two basic configurations for CS: CSx: Computational Storage Device (hardware configuration) CSS: Computational Storage Services (Software configuration) There are various types of CSx deployment configurations, including a type in which a processor that controls one or more storage devices is placed outside the storage device and the host CPU is connected to that processor (Computational Storage Processor), a type in which a processor for executing CSS is placed inside the storage device (Computational Storage Device: CSD), and a type that collects a large number of CSDs (Computational Storage Array: CSA).

[0014] In the embodiment, as an example, a CSD arrangement in which a dedicated processor is built in the storage is described. However, the embodiment is not limited to the arrangement of the CSx, and can be applied to any arrangement. In the embodiment, a memory system is described as an example of the storage.

[0015] There are various ways to implement a processor that runs CSS, such as an FPGA, a dedicated CPU, or a virtual CPU like the Berkeley packet filter (bpf).

[0016] The embodiments are not limited to the implementation of the processor, and any of the methods listed herein may be employed.

[0017] In the following explanation, the processor part that runs the CSS will be referred to as a Computational Storage Processor (CSP) regardless of the arrangement or implementation form of the CSx, and will be given a different definition from the Computational Storage Processor shown above.

[0018] CSS can be broadly divided into two categories. (1) FCSS (Fixed Computational Storage Service): Refers to services that are fixedly defined within a device. Examples of FCSS include Compression, RAID, Erasure Coding, and Encryption. (2) PCSS (Programmable Computational Storage Service): Refers to a service that can be programmed by the host. The host creates a program and the storage downloads the program. Examples of PCSS include FPGA Bitstream, BPF, Container, and OS Loader.

[0019] The embodiment can implement any of these CSS services, but as an example, the target services are BPF and FPBA Bitstream of PCSS and the group of services listed in FCSS.

[0020] The scope of use of the CS architecture is as follows: Management: discovery, configuration, or monitoring Security: authentication, autorization, encryption, or auditing Operation: A definition of the mechanism for storing and retrieving data in CSx or a definition of an action from the host to CSx.

[0021] Of these, the embodiment relates to the operation.

[0022] In addition, existing storage that does not have a computing function is called Non-Computational Storage (NCS).

[0023] Examples of operation methods by which a host can activate a CSS for a CS include a direct operation method and a transparent operation method (also called an inline method).

[0024] In the direct operation method, an API dedicated to CSS control is defined, separate from existing storage control APIs such as write commands and read commands, and the host can prompt the CSS to start up by calling the dedicated API for the CS.

[0025] On the other hand, in the transparent operation method, the host can start CSS via the existing storage control API without being aware of the CSS startup. Also, CSS is started in conjunction with write commands and read commands issued from the host to the device.

[0026] The advantage of the direct operation method is that the host can start the service at the desired timing. The disadvantage of the direct operation method is that the host must newly perform controls that did not exist before.

[0027] The advantage of the transparent operation method is that the host can start a service simply by running a conventional program. The disadvantage of the transparent operation method is that it is not possible to perform detailed switching such as starting or stopping a CSS according to conditions, selecting the type of CSS to start, or setting parameters required for starting a CSS. The conditions are the conditions for starting or stopping a CSS or the conditions for selecting the type of CSS to start. The host can define any condition.

[0028] Even if the transparent operation method makes it possible to start or stop a CSS, select the type of CSS to start, and set parameters required to start a CSS in some way, the following problem arises because there is no mechanism for associating additional information with the data.

[0029] For example, in order for the CSS to encrypt user data received from the host and then store it in storage, and then decrypt data read from the storage and send the user data to the host, the host had to separately manage additional information indicating which data the CSS encrypted with which encryption key.

[0030] First embodiment The first embodiment proposes a transparent operation type CS in which an io command such as a write command or a read command includes a new CS flag that includes on or off information that specifies starting or stopping of the CSS.

[0031] FIG. 1 is a block diagram of a data processing system for explaining an example of a write operation of a CS according to the first embodiment.

[0032] The host 10 includes a CPU (also referred to as a host CPU) 12, a host buffer (HB) 14, and a CS I / F circuit 16. An example of the host buffer 14 is a DRAM or an SRAM. The CPU 12, the host buffer 14, and the CS I / F circuit 16 are connected to each other via a bus.

[0033] The CS 30 includes a non-volatile memory 32, a memory controller 34, firmware (FW) 36, a CPU (also referred to as a device CPU) 38, a device buffer (DB) 42, a computational program memory (CPM) 44, a CSS 46, a CSP 48, and a host I / F circuit 52. The memory controller 34, the CPU 38, the device buffer 42, the CPM 44, the CSP 48, and the host I / F circuit 52 are connected to each other via a bus.

[0034] The host 10 and the CS 30 can be connected via a CS I / F circuit 16, a connection line, and a host I / F circuit 52. When the host 10 and the CS 30 are connected, a command queue 20 that transmits requests from the host 10 to the CS 30 exists between the host 10 and the CS 30. The command queue 20 is realized by a memory provided in either the host 10 or the CS 30. Here, the Non-Volatile Memory Express (NVMe) ( TM ), the command queue 20 includes multiple io queues 22 and one admin queue 24. Figure 1 shows two io queues 22 as an example.

[0035] An example of the nonvolatile memory 32 is a NAND type flash memory. The memory controller 34 is a circuit that controls the transfer of data to and from the nonvolatile memory 32. Hereinafter, the nonvolatile memory 32 will be referred to as a NAND memory 32, and the memory controller 34 will be referred to as a NAND controller 34. Firmware 36 that controls the entire CS 30 is stored in the NAND memory 32, and is written to a DRAM (not shown) when the power of the CS 30 is turned on. The CPU 38 executes the firmware 36 in the DRAM. An example of the device buffer 42 is a DRAM or an SRAM.

[0036] The firmware 36 includes firmware 36a. The firmware 36a is a program that checks the CS flag of a write command, and executes a determination process such as starting the CSS linked to the write command if the CS flag includes ON information that specifies starting the CSS 46. An example of the firmware 36a is shown below. write() if(CSS=on) start(write_prog); wait(return); } The firmware 36 also includes firmware 36b. The firmware 36b is a program that checks the CS flag of the read command, and executes a determination process such as starting the CSS linked to the read command if the CS flag includes ON information that specifies starting the CSS 46. An example of the firmware 36b is shown below. read() if(CSS=on) start(read_prog); wait(return); } The CSS 46 may be a program that is pre-installed in the CS 30, or may be a program that is pre-created by the host 10 and loaded by the CS 30 when a CSS load command is executed from the host 10.

[0037] CSP48 is a processor that runs CSS46.

[0038] The CPM 44 indicates a memory area accessible by the CSS 46. An example of the CPM 44 is a DRAM or an SRAM.

[0039] The CS30 is also called a Solid State Drive (SSD).

[0040] In this specification, the CSS 46 is a program created in advance by the host 10 and loaded by the CS 30 by executing a CSS load command. Therefore, the host 10 puts a CSS load command L into the admin queue 24 before putting a write command W into the io queue 22. When the CS 30 executes the CSS load command L, a write command-linked program write_prog and a read command-linked program read_prog are loaded from the host 10 to the CS 30. An example of the write command-linked program write_prog is a program that encrypts data and writes the encrypted data into the NAND memory 32. An example of the read command-linked program read_prog is a program that decrypts encrypted data read from the NAND memory 32. The program write_prog is linked to the firmware 36a. The program read_prog is linked to the firmware 36b.

[0041] FIG. 2 is a flowchart showing an example of the processing flow of the write operation.

[0042] In S102, the CPU (host CPU) 12 of the host 10 writes to the host buffer 14 the logical block address data (hereinafter referred to as lba data) of the write target.

[0043] In S104, the CPU 12 sequentially submits write commands W(off) or W(on) to the io queue 22. Each of the write commands W(off) and W(on) includes the address of the area of ​​the host buffer 14 where the lba data has been written (hereinafter referred to as the host buffer address), the lba, and a data size. The write command W(off) is a write command W to which a CS flag including off information specifying the stopping of the CSS 46 has been added. The write command W(on) is a write command W to which a CS flag including on information specifying the starting of the CSS 46 has been added.

[0044] In S106, the CPU (device CPU) 38 of the CS 30 executing the firmware 36 reads the write command W from the io queue 22, analyzes the write command W, and obtains the host buffer address, lba, and data size.

[0045] In S108, the CPU 38 transfers the lba data from the host buffer 14 to the device buffer 42 based on the analysis result (#a1 in FIG. 1).

[0046] In S110, the CPU 38 returns a response to the write command W to the CPU 12 of the host 10.

[0047] In S112, the CPU 38 determines whether the CS flag specifies the start or stop of the CSS 46 (the CSS 46 linked to the write command) based on the on information or off information included in the CS flag added to the write command W. If the CS flag specifies the stop of the CSS 46, in S124, the CPU 38 transfers the lba data from the device buffer 42 to the NAND memory 32 (#a7 in FIG. 1).

[0048] When the CS flag specifies the start of the CSS 46, the CPU 38 executes the write command-linked CSS 46. Specifically, in S114, the firmware 36a starts the write command-linked CSS 46 (write_prog) (start(write_prog)) (#a2 in FIG. 1).

[0049] The CSS 46 executes CSS processing while performing the following as necessary. In S116, the CSS 46 loads the LBA data from the device buffer 42 to the CPM 44 (load_db()) (#a3 in FIG. 1). In S118, the CSS 46 executes reading the LBA data from the CPM 44, processing the LBA data, and writing the processed LBA data to the CPM 44 (#a4 in FIG. 1). Examples of data processing include various processes that calculate data and output the calculation results, error correction encoding and error correction decoding of data, encryption and decryption of data, compression and decompression of data, data analysis, and filtering. In S120, the CSS 46 stores the LBA data from the CPM 44 to the device buffer 42 (store db()) (#a5 in FIG. 1).

[0050] In S122, the CSS 46 returns the end of processing to the firmware 36a (#a6 in FIG. 1).

[0051] In S124, the CPU 38 transfers the lba data from the device buffer 42 to the NAND memory 32 (#a7 in FIG. 1).

[0052] Fig. 3 is a block diagram of a data processing system for explaining an example of a read operation of a CS according to the first embodiment. The configuration of Fig. 3 is almost the same as the configuration of Fig. 1, but the command inserted into the io queue 22 is different from that of Fig. 1.

[0053] FIG. 4 is a flowchart showing an example of the processing flow of a read operation.

[0054] In S202, the CPU (host CPU) 12 of the host 10 secures an area in the host buffer 14 for writing the LBA data to be read.

[0055] In S204, the CPU 12 sequentially submits a read command R(off) or R(on) to the io queue 22. Each of the read commands R(off) and R(on) includes a host buffer address, an lba, and a data size. The read command R(off) is a read command R to which a CS flag including off information that specifies the stopping of the CSS 46 is added. The read command R(on) is a read command R to which a CS flag including on information that specifies the starting of the CSS 46 is added.

[0056] In S206, the CPU (device CPU) 38 of the CS 30 executing the firmware 36 reads the read command R from the io queue 22, analyzes the read command R, and obtains the host buffer address, lba, and data size.

[0057] In S208, the CPU 38 transfers the lba data from the NAND memory 32 to the device buffer 42 based on the analysis result (#b1 in FIG. 3).

[0058] In S210, the CPU 38 determines whether the CS flag specifies start or stop of the CSS 46 (the CSS 46 linked to the read command) based on the on or off information of the CS flag added to the read command R. If the CS flag specifies stop of the CSS 46, in S222, the CPU 38 transfers the lba data from the device buffer 42 to the host buffer 14 (#b7 in FIG. 3).

[0059] In S224, the CPU 38 returns a response to the read command R to the CPU 12 of the host 10.

[0060] When the CS flag specifies the start of the CSS 46, the CPU 38 executes the read command-linked CSS 46. Specifically, in S212, the firmware 36b starts the read command-linked CSS 46 (read_prog) (start(read_prog)) (#b2 in FIG. 3).

[0061] The CSS 46 executes CSS processing while performing the following as necessary. In S214, the CSS 46 loads the lba data from the device buffer 42 to the CPM 44 (load db()) (#b3 in FIG. 3). In S216, the CSS 46 reads the lba data from the CPM 44, processes the lba data, and writes the processed lba data to the CPM 44 (#b4 in FIG. 3). In S218, the CSS 46 stores the lba data from the CPM 44 to the device buffer 42 (store db()) (#b5 in FIG. 3).

[0062] In S220, the CSS 46 returns the end of processing to the firmware 36b (#b6 in FIG. 3).

[0063] In S222, the CPU 38 transfers the lba data from the device buffer 42 to the host buffer 14 (#b7 in FIG. 3).

[0064] In S224, the CPU 38 returns a response to the read command R to the CPU 12 of the host 10.

[0065] According to the first embodiment, the host 10 can switch the start or stop of the CSS 46 in conjunction with a write or read io command, while making use of the software assets provided by the CS 30, which was not possible with a CS using a transparent operation method.

[0066] Second embodiment In the first embodiment, the program linked to the write command is one CSS46 (write_prog), and the program linked to the read command is one CSS46 (read_prog). Next, a second embodiment will be described in which the CS30 can selectively execute one of a plurality of programs (CSS46) linked to the io command, and the CS flag also includes information for selecting the command-linked program to be started.

[0067] FIG. 5 is a block diagram of a data processing system for explaining an example of a write operation of a CS according to the second embodiment.

[0068] The configuration in Fig. 5 is almost the same as that in Fig. 1, but differs in the following respects. In the second embodiment, the CSS 46 is divided into a plurality of slots, and each slot corresponds to one write command linked program. Each slot, i.e., each write command linked program, is specified by a slot identifier slot_no. The CS flag includes on or off information that specifies whether to start or stop the CSS 46, and a slot identifier slot_no that specifies the write command linked program to be started.

[0069] The firmware 36 includes firmware 36c and 36d instead of firmware 36a and 36b. The firmware 36c is a program that checks the CS flag of the write command W, and starts an io command-linked program identified by a slot identifier if the CS flag includes on information that specifies the start of the CSS 46. An example of the firmware 36c is shown below. write() if(CSS=on) start(slot_no); wait(return); } The firmware 36d is a program that checks the CS flag of the read command R, and starts an io command-linked program identified by a slot identifier if the CS flag includes on information that specifies the start of the CSS 46. An example of the firmware 36d is shown below. read() if(CSS=on) start(slot_no); wait(return); } In the second embodiment, the host 10 also submits a CSS load command L to the admin queue 24 before submitting a write command W or a read command R to the io queue 22. When the CS 30 executes the CSS load command L, multiple programs linked to write commands and multiple programs linked to read commands are loaded from the host 10 into each slot of the CS 30.

[0070] FIG. 6 is a flowchart showing an example of the processing flow of the write operation.

[0071] In S302, the CPU (host CPU) 12 of the host 10 writes the write target lba data to the host buffer 14.

[0072] At S304, the CPU 12 sequentially submits write command W(off) or W(on, slot0) to the io queue 22. Each of the write commands W(off) and W(on, slot0) includes a host buffer address, lba, and data size. The write command W(off) is a write command W to which a CS flag including off information specifying the stop of the CSS 46 is added. The write command W(on, slot0) is a write command W to which a CS flag including on information specifying the start of the CSS 46 and a slot identifier slot_no (here, slot 0) for specifying the slot corresponding to the CSS (write command interlocking program) 46 to be started is added.

[0073] In S306, the CPU (device CPU) 38 of the CS 30 executing the firmware 36 reads the write command W from the io queue 22, analyzes the write command W, and obtains the host buffer address, lba, and data size.

[0074] In S308, the CPU 38 transfers the lba data from the host buffer 14 to the device buffer 42 based on the analysis result (#c1 in FIG. 5).

[0075] In S310, the CPU 38 returns a response to the write command W to the CPU 12 of the host 10.

[0076] In S312, the CPU 38 determines whether the CS flag specifies the start or stop of the CSS 46, based on the on information or off information included in the CS flag added to the write command W. If the CS flag specifies the stop of the CSS 46, in S324, the CPU 38 transfers the lba data from the device buffer 42 to the NAND memory 32 (#c7 in FIG. 5).

[0077] When the CS flag specifies the start of the CSS 46, the CPU 38 executes the write command-linked CSS 46 corresponding to the slot specified by the slot identifier slot0 included in the CS flag. Specifically, in S314, the firmware 36c starts up the CSS 46, which is the write command-linked program specified by the slot identifier slot0 included in the CS flag (start(slot0)) (#c2 in FIG. 5).

[0078] The CSS 46 executes CSS processing, doing the following as necessary: ​​In S316, the CSS 46 loads the lba data from the device buffer 42 to the CPM 44 (load_db()) (#c3 in FIG. 5). In S318, the CSS 46 reads the lba data from the CPM 44, processes the lab data, and writes the processed lba data to the CPM 44 (#c4 in FIG. 5). In S320, the CSS 46 stores the lba data from the CPM 44 to the device buffer 42 (store db()) (#c5 in FIG. 5).

[0079] In S322, the CSS 46 returns the end of processing to the firmware 36a (#c6 in FIG. 5).

[0080] In S324, the CPU 38 transfers the lba data from the device buffer 42 to the NAND memory 32 (#c7 in FIG. 5).

[0081] Fig. 7 is a block diagram of a data processing system for explaining an example of a read operation of a CS according to the second embodiment. The configuration of Fig. 7 is almost the same as the configuration of Fig. 5, but the command inserted into the io queue 22 is different from that of Fig. 5.

[0082] FIG. 8 is a flowchart showing an example of the processing flow of a read operation.

[0083] In S402, the CPU (host CPU) 12 of the host 10 secures an area in the host buffer 14 for writing the LBA data to be read.

[0084] At S404, the CPU 12 sequentially submits a read command R(off) or R(on, slot1) to the io queue 22. Each of the read commands R(off) and R(on, slot1) includes a host buffer address, lba, and data size. The read command R(off) is a read command to which a CS flag is added that includes off information that specifies the stopping of the CSS 46. The read command R(on, slot1) is a read command to which a CS flag is added that includes on information that specifies the starting of the CSS 46 and a slot identifier slot_no (here, slot 1) for specifying the slot corresponding to the CSS (read command interlocking program) 46 to be started.

[0085] In S406, the CPU (device CPU) 38 of the CS 30 executing the firmware 36 reads the read command R from the io queue 22, analyzes the read command R, and obtains the host buffer address, lba, and data size.

[0086] In S408, the CPU 38 transfers the lba data from the NAND memory 32 to the device buffer 42 based on the analysis result (#d1 in FIG. 7).

[0087] In S410, the CPU 38 determines whether the CS flag specifies the start or stop of the CSS 46, based on the on information or off information included in the CS flag added to the read command R. If the CS flag specifies the stop of the CSS 46, in S422, the CPU 38 transfers the lba data from the device buffer 42 to the host buffer 14 (#d7 in FIG. 7).

[0088] In S424, the CPU 38 returns a response to the read command R to the CPU 12 of the host 10.

[0089] When the CS flag specifies the start of the CSS 46, the CPU 38 executes the CSS 46 in conjunction with the read command corresponding to the slot specified by the slot identifier slot0 included in the CS flag. Specifically, in S412, the firmware 36d starts the CSS 46 in slot 1 (start(slot1)) (#d2 in FIG. 7).

[0090] The CSS 46 executes CSS processing while performing the following as necessary. In S414, the CSS 46 loads the lba data from the device buffer 42 to the CPM 44 (load db()) (#d3 in FIG. 7). In S416, the CSS 46 reads the lba data from the CPM 44, processes the lba data, and writes the processed lba data to the CPM 44 (#d4 in FIG. 7). In S418, the CSS 46 stores the lba data from the CPM 44 to the device buffer 42 (store db()) (#d5 in FIG. 7).

[0091] In S420, the CSS 46 returns the end of processing to the firmware 36d (#d6 in FIG. 7).

[0092] In S422, the CPU 38 transfers the lba data from the device buffer 42 to the host buffer 14 (#d7 in FIG. 7).

[0093] In S424, the CPU 38 returns a response to the read command R to the CPU 12 of the host 10.

[0094] According to the second embodiment, in addition to the effect of the first embodiment, it is possible to select the CSS 46 to be started for each write or read io command.

[0095] Note that, although the information specifying whether to start or stop the CSS 46 is deleted from the CS flag in the second embodiment and the CSS 46 is always started, the second embodiment may be modified so that the program of the CSS 46 to be started can be specified by the slot identifier.

[0096] That is, in the modified example, the write command W(off) is not defined, and the write command W(on, slot_no) is changed to the write command W(slot_no). Similarly, the read command R(off) is not defined, and the read command R(on, slot_no) is changed to the read command R(slot_no).

[0097] Third embodiment In the first and second embodiments, the content of data processing by the CSS 46 is fixed. In contrast, a third embodiment will be described in which the host 10 passes CS parameters to the CSS 46, the CS parameters can be referenced in data processing, and the content of data processing is variable depending on the CS parameters. An example of the CS parameter is the type of data processing (encryption method or encryption key).

[0098] The host 10 may put the CS parameter in a CS flag and pass it to the CSS 46. In this case, the size of the CS flag is determined by the CS parameter, and if the size of the CS parameter is large, the size of the CS flag is also large.

[0099] Also, the host 10 may put information capable of identifying the CS parameters in the CS flag and pass it to the CSS 46. For example, the CS parameters may be written to the CPM 44, and the address and size of the CPM 44 storing the CS parameters may be put in the CS flag and passed to the CSS 46. In this case, the size of the CS flag may be constant, and even if the size of the CS parameters increases, the size of the CS flag does not increase accordingly. In the third embodiment, the CS flag of the first or second embodiment is modified so as to further include information capable of identifying the CS parameters.

[0100] 9 is a block diagram of a data processing system for explaining an example of a write operation of a CS according to the third embodiment. The third embodiment can be realized as a modified example of the first embodiment, and can also be realized as a modified example of the second embodiment. Here, the third embodiment realized as a modified example of the first embodiment will be described.

[0101] 9 is almost the same as the configuration in Fig. 1, but differs in the following respects: In the third embodiment, the CS flag of a write command W or a read command R includes on or off information for starting or stopping the CSS 46, and information indicating a storage area for the CS parameters.

[0102] A transfer command Tx is defined to instruct data transfer from the host buffer 14 to the CPM 44 .

[0103] The firmware 36 includes firmware 36e and 36f instead of firmware 36a and 36b. The firmware 36e is a program that checks the CS flag of the write command W, and refers to the CS parameter if the CS flag includes ON information that specifies the start of the CSS 46. An example of the firmware 36e is shown below. cpm_addr is information indicating the storage area for the CS parameter. write() if(CSS=on) start(write_prog,cpm_addr); wait(return); } The firmware 36f is a program that checks the CS flag of the read command R, and refers to the CS parameters if the CS flag includes ON information that specifies the start of the CSS 46. An example of the firmware 36f is shown below. read() if(CSS=on) start(read_prog,cpm_addr); wait(return); } In the third embodiment, the host 10 also submits a CSS load command L to the admin queue 24 before submitting a write command W or a read command R. When the CS 30 executes the CSS load command L, a write command-linked program write_prog and a read command-linked program read_prog are loaded from the host 10 to the CS 30.

[0104] FIG. 10 is a flowchart showing an example of the processing flow of the write operation.

[0105] In S502, the CPU (host CPU) 12 of the host 10 writes the CS parameters to the host buffer 14.

[0106] In S504, the CPU 12 submits a transfer command Tx(cpm_addr0) or Tx(cpm_addr1) to the io queue 22. The transfer command Tx(cpm_addr) requests the transfer of CS parameters from the host buffer 14 to an area of ​​the CPM 44. The transfer command Tx(cpm_addr) includes an area identifier cpm_addr that indicates the area of ​​the CPM 44 to which the CS parameters are to be transferred.

[0107] In S506, the CPU (device CPU) 38 of the CS 30 executing the firmware 36 reads the transfer command Tx(cpm_addr) from the io queue 22, analyzes the transfer command Tx(cpm_addr), and obtains the area identifier cpm_addr.

[0108] In S508, the CPU 38 transfers the CS parameters from the host buffer 14 to the area of ​​the CPM 44 designated by the area identifier cpm_addr.

[0109] In S510, the CPU 38 returns a response to the transfer command Tx(cpm_addr) to the CPU 12 of the host 10.

[0110] In S512, the CPU 12 of the host 10 writes the lba data to be written to the host buffer 14.

[0111] At S514, the CPU 12 sequentially submits write commands W(off), W(on, cpm_addr0), and W(on, cpm_addr1) to the io queue 22. Each of the write commands W(off), W(on, cpm_addr0), and W(on, cpm_addr1) includes a host buffer address, lba, and data size. The write command W(off) is a write command W to which a CS flag including off information specifying the stop of the CSS 46 is added. The write command W(on, cpm_addr) is a write command W to which a CS flag including on information specifying the start of the CSS 46 and an area identifier com_addr of the CPM 44 for specifying a storage area of ​​the CS parameters referenced by the CSS program to be started is added.

[0112] In S516, the CPU 38 reads the write command W from the io queue 22, analyzes the write command W, and obtains the host buffer address, lba, and data size.

[0113] In S518, the CPU 38 transfers the lba data from the host buffer 14 to the device buffer 42 based on the analysis result (#e1 in FIG. 9).

[0114] In S520, the CPU 38 returns a response to the write command W to the CPU 12 of the host 10.

[0115] In S522, the CPU 38 determines whether the CS flag specifies the start or stop of the CSS 46, based on the on information or off information included in the CS flag added to the write command W. If the CS flag specifies the stop of the CSS 46, in S536, the CPU 38 transfers the lba data from the device buffer 42 to the NAND memory 32 (#e8 in FIG. 9).

[0116] When the CS flag specifies the start of the CSS 46, the CPU 38 executes the write command-linked CSS 46. Specifically, in S524, the firmware 36e starts the write command-linked CSS 46 (start(write_prog)) (#e2 in FIG. 9).

[0117] In S526, the CSS 46 reads the CS parameters from the area cpm of the CPM 44 specified by the area identifier included in the CS flag (#e3 in FIG. 9).

[0118] The CSS 46 executes CSS processing, doing the following as necessary: ​​At S528, the CSS 46 loads the lba data from the device buffer 42 to the CPM 44 (load_db()) (#e4 in FIG. 9). At S530, the CSS 46 reads the lba data from the CPM 44, processes the data using the CS parameters of the lba data, and writes the processed lba data to the CPM 44 (#e5 in FIG. 9). At S532, the CSS 46 stores the lba data from the CPM 44 to the device buffer 42 (store db()) (#e6 in FIG. 9).

[0119] In S534, the CSS 46 returns a processing end signal to the firmware 36e (#e7 in FIG. 9).

[0120] In S536, the CPU 38 transfers the lba data from the device buffer 42 to the NAND memory 32 (#e8 in FIG. 9).

[0121] FIG. 11 is a block diagram of a data processing system for explaining an example of a read operation of the CS according to the third embodiment.

[0122] The configuration in FIG. 11 is almost the same as the configuration in FIG. 9, but the commands put into the io queue 22 are different from those in FIG.

[0123] FIG. 12 is a flowchart showing an example of the processing flow of a read operation.

[0124] The process from S502 to S510 in which the CS parameters are loaded into the CPM 44 by the transfer command Tx is the same as that in FIG.

[0125] In S612, the CPU (host CPU) 12 of the host 10 secures an area in the host buffer 14 for writing the LBA data to be read.

[0126] At S614, the CPU 12 sequentially submits the read commands R(off), R(on, cpm_addr0), and R(on, cpm_addr1) to the io queue 22. Each of the read commands R(off), R(on, cpm_addr0), and R(on, cpm_addr1) includes a host buffer address, lba, and data size. The read command R(off) is a read command R to which a CS flag including off information specifying the stop of the CSS 46 is added. The read command R(on, cpm_addr) is a read command R to which a CS flag including on information specifying the start of the CSS 46 and an area identifier com_addr of the CPM 44 for specifying a storage area of ​​the CS parameters referenced by the CSS program to be started is added.

[0127] In S616, the CPU (device CPU) 38 of the CSS 30 reads the read command R from the io queue 22, analyzes the read command R, and obtains the host buffer address, lba, and data size.

[0128] In S618, the CPU 38 transfers the lba data from the NAND memory 32 to the device buffer 42 based on the analysis result (#f1 in FIG. 11).

[0129] In S620, the CPU 38 determines whether the CS flag specifies the start or stop of the CSS 46, based on the on information or off information included in the CS flag added to the read command R. If the CS flag specifies the stop of the CSS 46, in S634, the CPU 38 transfers the lba data from the device buffer 42 to the host buffer 14 (#f8 in FIG. 11).

[0130] In S636, the CPU 38 returns a response to the read command R to the CPU 12 of the host 10.

[0131] When the CS flag specifies the start of the CSS 46, the CPU 38 starts the read command-linked CSS 46. Specifically, in S622, the firmware 36f starts the read command-linked CSS 46 (start(read_prog)) (#f2 in FIG. 11).

[0132] In S624, the CSS 46 reads the CS parameters from the area cpm of the CPM 44 specified by the area identifier included in the CS flag (#f3 in FIG. 11).

[0133] The CSS 46 executes CSS processing, doing the following as necessary: ​​In S626, the CSS 46 loads the lba data from the device buffer 42 to the CPM 44 (load_db()) (#f4 in FIG. 11). In S628, the CSS 46 reads the lba data from the CPM 44, processes the lba data using the CS parameters, and writes the processed lba data to the CPM 44 (#f5 in FIG. 11). In S630, the CSS 46 stores the lba data from the CPM 44 to the device buffer 42 (store db()) (#f6 in FIG. 11).

[0134] In S632, the CSS 46 returns a processing end signal to the firmware 36e (#f7 in FIG. 11).

[0135] In S634, the CPU 38 transfers the lba data from the device buffer 42 to the host buffer 14 (#f8 in FIG. 11).

[0136] In S636, the device CPU 38 returns a response to the read command R to the host CPU 12.

[0137] According to the third embodiment, in addition to the effect of the first embodiment, it is possible to select a CS parameter to be referenced by the CSS 46 linked to a write / read io command.

[0138] In addition, the on / off information that specifies whether to start or stop CSS 46 is deleted from the CS flag in the third embodiment, and CSS 46 is always started. However, the third embodiment may be modified so that the parameters referenced by the started CSS 46 can be specified by the area identifier of CPM 44.

[0139] That is, in the modified example, the write command W(off) is not defined, and the write command W(on, slot_no) is changed to the write command W(slot_no). Similarly, the read command R(off) is not defined, and the read command R(on, slot_no) is changed to the read command R(slot_no).

[0140] Fourth embodiment The third embodiment with reference to Figures 9 to 12 is realized as a modified example of the first embodiment (adding a CS parameter selection function to the CS flag of the first embodiment), but a fourth embodiment in which a CS parameter selection function is added to the CS flag of the second embodiment will be described.

[0141] The configurations of the host 10, command queue 20, and CS 30 according to the fourth embodiment are the same as those of the first, second, and third embodiments. However, the commands stored in the command queue 20 and the processing of the firmware 36 differ from those of the first, second, and third embodiments. The CS flag of a write command W or a read command R includes on information or off information for specifying the start or stop of the CSS 46, a slot identifier slot_no for specifying the slot corresponding to the CSS 46 to be started, and an area identifier indicating the storage area for the CS parameters.

[0142] FIG. 13 shows an example of a command that the host 10 puts into the io queue 22 according to the fourth embodiment.

[0143] 13(a) shows an example of the io queue 22 when the host issues a write command. The host 10 submits a transfer command Tx(cpm_addr0) or Tx(cpm_addr1) to the io queue 22. The host 10 then submits a write command W(on, slot0, cpm_addr0) or W(on, slot1, cpm_addr1) with a CS flag to the io queue 22. The write command W(on, slot_no, cpm_addr) specifies the activation of the CSS 46 corresponding to the slot, and specifies that the activated CSS 46 should process data using the CS parameters stored in the cpm area of ​​the CPM 44.

[0144] To support this write command, the firmware 36 includes the following firmware. write() if(CSS=on) start(slot_no, cpm_addr); wait(return); } 13(b) shows an example of the io queue 22 when the host issues a read command. The host 10 submits a transfer command Tx(cpm_addr0) or Tx(cpm_addr1) to the io queue 22. The host 10 then submits a read command R(on, slot0, cpm_addr0) or R(on, slot1, cpm_addr1) with a CS flag to the io queue 22. The read command R(on, slot_no, cpm_addr) specifies the activation of the CSS 46 corresponding to the slot, and specifies that the activated CSS 46 should process data using the CS parameters stored in the cpm area of ​​the CPM 44.

[0145] To support this read command, the firmware 36 includes the following firmware. read() if(CSS=on) start(slot_no, cpm_addr); wait(return); } In the fourth embodiment, the CS flag of the write command W or the read command R includes on or off information that specifies whether to start or stop CSS46, a slot identifier slot_no for specifying the slot corresponding to the CSS46 to be started, and an area identifier cpm_addr that indicates the storage area for the CS parameters.

[0146] According to the fourth embodiment, in addition to the effect of the second embodiment, it is possible to select a CS parameter to be referenced by the CSS 46 linked to a write or read io command.

[0147] In the fourth embodiment, the on or off information that specifies whether to start or stop CSS 46 is deleted from the CS flag, and CSS 46 is always started. However, the fourth embodiment may be modified so that the CSS 46 to be started and the CS parameters to be referenced by CSS 46 can be specified.

[0148] That is, in the modified example, the write command WW(on, slot_no, cpm_addr) is changed to a write command W(slot_no, cpm_addr). Similarly, the read command R(on, slot_no, cpm_addr) is changed to a read command R(slot_no, cpm_addr).

[0149] Fifth embodiment CSS46 processing, particularly read operation processing, may require CS-attached information. Examples of CS-attached information include information indicating which data was encoded with which error-correcting code, information indicating which data was encrypted with which encryption key, or information indicating how which data was compressed. CSS46 may change the error-correcting code, encryption key, or compression method depending on conditions when writing. The conditions may be conditions related to the contents of the data. For example, CSS46 may encrypt a file that contains a specific character string with encryption key A, and encrypt a file that does not contain the specific character string with encryption key B. In this case, the specific character string is also encrypted in the encrypted file, so CSS46 cannot determine whether the specific character string is included from the encrypted file when reading. In this case, if there is CS-attached information indicating which data was encrypted with which encryption key, CSS46 can correctly decrypt the read data.

[0150] A fifth embodiment will be described in which the CSS 46 writes the CS annex information together with the lba data to the NAND memory 32, then reads the CS annex information from the NAND memory 32, and uses the annex information in subsequent processing. The fifth embodiment can be applied to any of the four embodiments described above, but here, the fifth embodiment applied to the first embodiment will be described.

[0151] 14 is a block diagram of a data processing system for explaining an example of a CS write operation according to the fifth embodiment. The fifth embodiment adds a function to write the CS attached information generated by the CSS 46 together with the lba data to the NAND memory 32 or the device buffer 42, in comparison with the first embodiment shown in FIGS. 1 to 4.

[0152] 14 shows an example in which the attached information cs_attr is stored near the lba data lba_data. However, the storage destination of the CS attached information cs_attr does not need to be physically close to the lba data lba_data, and it can be anywhere as long as it can be linked to the lba data lba_data. For example, the CS attached information cs_attr may be stored in a form managed by a lookup table together with address information.

[0153] FIG. 15 is a flowchart showing an example of the processing flow of the write operation.

[0154] In S652, the CPU (host CPU) 12 of the host 10 writes to the host buffer 14 the logical block address data (hereinafter referred to as lba data) of the write target.

[0155] In S654, the CPU 12 sequentially puts the write command W(off) or W(on) into the io queue 22.

[0156] In S656, the CPU (device CPU) 38 of the CS 30 reads the write command W from the io queue 22, analyzes the write command W, and obtains the host buffer address, lba, and data size.

[0157] In S658, the CPU 38 transfers the lba data from the host buffer 14 to the device buffer 42 based on the analysis result (#g1 in FIG. 14).

[0158] In S660, the CPU 38 returns a response to the write command W to the CPU 12 of the host 10.

[0159] In S662, the CPU 38 determines whether the CS flag specifies the start or stop of the CSS 46, based on the on information or off information included in the CS flag added to the write command W. If the CS flag specifies the stop of the CSS 46, in S676, the CPU 38 transfers the lba data and the CS attached information from the device buffer 42 to the NAND memory 32 (#g8 in FIG. 14).

[0160] When the CS flag specifies the start of the CSS 46, the CPU 38 executes the write command-linked CSS 46. Specifically, in S664, the firmware 36a starts the write command-linked CSS 46 (start(write_prog)) (#g2 in FIG. 14).

[0161] The CSS 46 executes CSS processing while performing the following as necessary. In S666, the CSS 46 loads the lba data from the device buffer 42 to the CPM 44 (load_db()) (#g3 in FIG. 14). In S668, the CSS 46 reads the lba data from the CPM 44, processes the lba data using the CS attached information cs_attr, and writes the processed lba data to the CPM 44 (#g4 in FIG. 14). There are no restrictions on when the CS attached information cs_attr is generated, and it is sufficient if it is generated by this time. In S670, the CSS 46 sets the CS attached information cs_attr from the CPM 44 to the device buffer 42 (set cs attr()) (#g5 in FIG. 14).

[0162] In S672, the CSS 46 stores the lba data from the CPM 44 to the device buffer 42 (store db( )) (#g6 in FIG. 14).

[0163] In S674, the CSS 46 returns the end of processing to the firmware 36a (#g7 in FIG. 14).

[0164] In S676, the CPU 38 transfers the lba data and the CS affixed information from the device buffer 42 to the NAND memory 32 (#g8 in FIG. 14). Note that if power is constantly supplied to the CS 30 and the device buffer 42 stores the CS affixed information in a non-volatile manner, it is not necessary to transfer the CS affixed information to the NAND memory 32.

[0165] Fig. 16 is a block diagram of a data processing system for explaining an example of a read operation of a CS according to the fifth embodiment. The configuration of Fig. 16 is almost the same as the configuration of Fig. 14, but the command put into the io queue 22 is different from that of Fig. 14.

[0166] FIG. 17 is a flowchart showing an example of the processing flow of a read operation.

[0167] In S702, the CPU (host CPU) 12 of the host 10 secures an area in the host buffer 14 for writing the LBA data to be read.

[0168] In S704, the CPU 12 sequentially puts the read command R(off) or R(on) into the io queue 22.

[0169] In S706, the CPU (device CPU) 38 of the CS 30 reads the read command R from the io queue 22, analyzes the read command R, and obtains the host buffer address, lba, and data size.

[0170] In S708, the CPU 38 transfers the lba data and the CS attached information from the NAND memory 32 to the device buffer 42 based on the analysis result (#h1 in FIG. 16). Note that if power is constantly supplied to the CS 30 and the device buffer 42 stores the CS attached information in a non-volatile manner, only the lab data is transferred from the NAND memory 32 to the device buffer 42.

[0171] In S710, the CPU 38 determines whether the CS flag specifies starting or stopping of the CSS 46, based on the on information or off information included in the CS flag added to the read command R. If the CS flag specifies stopping of the CSS 46, in S724, the CPU 38 transfers the lba data from the device buffer 42 to the host buffer 14 (#h8 in FIG. 16).

[0172] In S726, the CPU 38 returns a response to the read command R to the CPU 12 of the host 10.

[0173] When the CS flag specifies the start of the CSS 46, the CPU 38 executes a program linked to a read command. Specifically, in S712, the firmware 36b starts the CSS 46 linked to a read command (start(read_prog)) (#h2 in FIG. 16).

[0174] CSS46 performs CSS processing, doing the following as necessary:

[0175] In S714, the CSS 46 loads the lba data from the device buffer 42 to the CPM 44 (load db()) (#h3 in FIG. 16). In S716, the CSS 46 reads the lba data from the CPM 44, processes the lba data using the CS attached information, and writes the processed lba data to the CPM 44 (#h4 in FIG. 16).

[0176] In S718, the CSS 46 sets the CS attached information from the CPM 44 to the device buffer 42 (set cs attr()) (#h5 in FIG. 16). Note that there is no restriction on the time when the CS attached information cs_attr is generated, and it is sufficient if it is generated by this time.

[0177] In S720, the CSS 46 stores the lba data from the CPM 44 to the device buffer 42 (store db( )) (#h6 in FIG. 16).

[0178] In S722, the CSS 46 returns the end of processing to the firmware 36b (#h7 in FIG. 16).

[0179] In S724, the CPU 38 transfers the lba data from the device buffer 42 to the host buffer 14 (#h8 in FIG. 16).

[0180] In S726, the CPU 38 returns a response to the read command R to the CPU 12 of the host 10.

[0181] According to the fifth embodiment, in addition to the effects of the first embodiment, when a write command is executed, the CS annexed information generated by the CSS 46 is written together with data to the NAND memory 32 or the device buffer 42, and when a read command is executed, the CS annexed information is read from the NAND memory 32 or the device buffer 2, and processing related to the read command can be executed based on the CS annexed information. This allows the CSS 46 to branch processing according to conditions when a read command is executed.

[0182] Storing the CS annex information in the NAND memory 32 or the device buffer 42 can also be applied to the second, third, or fourth embodiment.

[0183] In a first variant of the fifth embodiment in which storing CS attached information in the NAND memory 32 or the device buffer 42 is applied to the second embodiment, the following functions are added to the second embodiment shown in Figures 5 to 8: a function of writing the CS attached information generated by the CSS 46 together with the lba data to the NAND memory 32 or the device buffer 42 when a write command is executed, and a function of reading the CS attached information from the NAND memory 32 or the device buffer 42 when a read command is executed.

[0184] In a second variant of the fifth embodiment in which storing CS attached information in the NAND memory 32 or the device buffer 42 is applied to the third embodiment, the following functions are added to the third embodiment shown in Figures 9 to 12: a function of writing the CS attached information generated by the CSS 46 together with the lba data to the NAND memory 32 or the device buffer 42 when a write command is executed, and a function of reading the CS attached information from the NAND memory 32 or the device buffer 42 when a read command is executed.

[0185] In the third variant of the fifth embodiment, in which storing CS attached information in the NAND memory 32 or the device buffer 42 is applied to the fourth embodiment, the following functions are added to the embodiment that combines the second and third embodiments shown in Figures 5 to 12: a function to write the CS attached information generated by the CSS 46 together with the lba data to the NAND memory 32 or the device buffer 42, and a function to read the CS attached information from the NAND memory 32 or the device buffer 42 when a read command is executed.

[0186] Next, some examples of the program flow of the host 10 and the program flow of the CS 30 will be described.

[0187] Sixth embodiment The program flow of the CPU 12 of the host 10 and the program flow of the CS 30 in the fourth embodiment will be described as a sixth embodiment.

[0188] 18 is a flowchart showing an example of the flow of a CS flag creation process when a write command is issued by the CPU 12 of the host 10. When the CS flag creation process is started, in S802, the CPU 12 determines whether the partition to be written to is a specific partition (partition HOGE here). If the partition to be written to is not partition HOGE (NO in S802), in S804, the CPU 12 sets the on information or off information of the CS flag to CSS stop (off), and ends the process.

[0189] If the write target partition is partition HOGE (YES in S802), then in S806 the CPU 12 sets the on information or off information of the CS flag to CSS activation (on).

[0190] In S808, the CPU 12 judges whether the owner of the file to be written is a specific owner (owner FUGA). If the owner of the file to be written is not the owner FUGA (NO in S808), in S810, the CPU 12 sets the slot identifier of the CS flag to a certain slot (here, slot 0), sets the area identifier of the CPM 44 of the CS flag to a certain area (here, cpm_addr1), and ends the process.

[0191] If the owner of the file to be written is the owner FUGA (YES in S808), the CPU 12 sets the slot identifier of the CS flag to a certain slot (slot 2 in this case) in S812.

[0192] In S814, the CPU 12 determines whether the attribute of the write target file is "read-prohibited by others." If the attribute of the write target file is "read-prohibited by others" (YES in S814), in S816, the CPU 12 sets the area identifier of the CPM44 of the CS flag to a certain area (cpm_addr3 in this case), and ends the process.

[0193] If the attribute of the file to be written is not "read prohibited to others" (NO in S814), in S818 the CPU 12 sets the area identifier of CPM44 in the CS flag to a certain area (cpm2 in this case) and ends the process.

[0194] 19 is a flow chart showing an example of the flow of a CS flag generation process when the CPU 12 of the host 10 issues a read command. When the CS flag generation process is started, at S902 the CPU 12 determines whether the partition to be read is a specific partition (partition HOGE in this case). If the partition to be read is not partition HOGE (NO in S902), at S904 the CPU 12 sets the CS flag's on information or off information to CSS stop, and ends the process.

[0195] If the read target partition is partition HOGE (YES in S902), then in S906 the CPU 12 sets the on or off information of the CS flag to CSS activation.

[0196] In S908, the CPU 12 judges whether the owner of the file to be read is a specific owner (owner FUGA). If the owner of the file to be read is not the owner FUGA (NO in S908), in S910, the CPU 12 sets the slot identifier of the CS flag to a certain slot (slot 3 in this case), sets the area identifier of the CPM44 of the CS flag to a certain area (cpm_addr1 in this case), and ends the process.

[0197] If the owner of the file to be read is the owner FUGA (YES in S908), the CPU 12 sets the slot identifier of the CS flag to a certain slot (slot 4 in this case) in S912.

[0198] In S914, the CPU 12 determines whether the attribute of the file to be read is "read-prohibited by others." If the attribute of the file to be read is "read-prohibited by others" (YES in S914), in S916 the CPU 12 sets the area identifier of the CPM44 of the CS flag to a certain area (cpm_addr3 in this case), and ends the process.

[0199] If the attribute of the file to be read is not "read prohibited to others" (NO in S814), in S918 the CPU 12 sets the area identifier of CPM44 in the CS flag to a certain area (cpm2 in this case) and ends the process.

[0200] In the sixth embodiment, in the CS flag generation process, the host 10 takes into account conditions such as the partition number of the write target, the owner of the write target file, and file attributes, and sets the start or stop of CSS46, the slot identifier at start-up, and the CS parameters at start-up (the area identifier of the storage area) in the CS flag.

[0201] 20 shows an example of the CPM 44 and the CSS 46. Encryption keys A, B, and C are stored in areas cpm1, cpm2, and cpm3 of the CPM 44, respectively. Slot 1, slot 2, slot 3, and slot 4 of the CSS 46 correspond to the encryption program of encryption method 1, the encryption program of encryption method 2, the decryption program of encryption method 1, and the decryption program of encryption method 2, respectively.

[0202] According to the sixth embodiment, depending on the conditions set by the host 10 in the CS flag (starting or stopping of CSS46, slot identifier at startup, and CS parameters at startup (area identifier of storage area)), when writing or reading CS30, encryption and decryption processing of CSS46 is performed using the encryption key and encryption method specified in the CS parameters.

[0203] Seventh embodiment The program flow of the CPU 12 of the host 10 and the program flow of the CSS 46 of the CS 30 in the fifth embodiment will be described as the seventh embodiment.

[0204] 21 is a flowchart showing an example of the flow of a CS flag generation process when a write command is issued by the CPU 12. When the CS flag generation process starts, in S1002, the CPU 12 determines whether the write target partition is a specific partition (here, partition HOGE).

[0205] If the write target partition is partition HOGE (YES in S1002), then in S1004 the CPU 12 sets the on or off information of the CS flag to CSS activation (on), and ends the process.

[0206] If the write target partition is not partition HOGE (NO in S1002), in S1006 the CPU 12 sets the on information or off information of the CS flag to CSS stop (off), and ends the process.

[0207] 22 is a flowchart showing an example of the flow of a CS flag generation process when a read command is issued by the CPU 12. When the CS flag generation process is started, in S1102, the CPU 12 determines whether the partition to be read is a specific partition (here, partition HOGE).

[0208] If the read target partition is partition HOGE (YES in S1102), then in S1104 the CPU 12 sets the on information or off information of the CS flag to CSS activation (on), and ends the process.

[0209] If the write target partition is not partition HOGE (NO in S1002), in S1106 the CPU 12 sets the on information or off information of the CS flag to CSS stop (off), and ends the process.

[0210] 23 is a flowchart showing the process of the CSS 46 in a write operation. When the write command-linked CSS 46 starts, in S1202, the CSS 46 determines whether or not the data to be written includes a specific word (here, password).

[0211] If the data to be written includes the word pasword (YES in S1202), then in S1204 the CSS 46 encrypts the write data using encryption method 1. In S1206, the CSS 46 writes CS attached information cs_attr(1) indicating that the data has been encrypted using encryption method 1 to the device buffer 42. The CS attached information cs_attr(1) may be transferred from the device buffer 42 to the NAND memory 32.

[0212] If the data to be written does not contain the word pasword (NO in S1202), in S1208, the CSS 46 encrypts the write data using encryption method 2. In S1210, the CSS 46 writes CS attached information cs_attr(2) indicating that the data has been encrypted using encryption method 2 to the device buffer 42. The CS attached information cs_attr(2) may be transferred from the device buffer 42 to the NAND memory 32.

[0213] 24 is a flowchart showing the processing of the CSS 46 in a read operation. When the CSS 46 linked to a read command starts, in S1302, the CSS 46 reads CS attached information from the device buffer 42 or the NAND memory 32. In S1304, the CSS 46 determines whether the CS attached information is CS attached information cs_attr(1).

[0214] If the CS attached information is CS attached information cs_attr(1) (YES in S1304), in S1306, the CSS 46 decrypts the read encrypted data by the decryption method 1 corresponding to the encryption method 1, and ends the process.

[0215] If the CS attached information is CS attached information cs_attr(2) (NO in S1304), in S1308, the CSS 46 decrypts the read encrypted data by the decryption method 2 corresponding to the encryption method 2, and ends the process.

[0216] In the seventh embodiment, the host 10 specifies the start or stop of the CSS 46 in the CS flag generation process, taking into account the partition number of the write target.

[0217] According to the seventh embodiment, the CSS 46 linked to a write command performs encryption processing, and the CSS 46 linked to a read command performs decryption processing. In encryption processing, the CSS 46 linked to a write command checks the lba data, and switches the encryption method based on whether or not the data contains a specific character string "password," and sets information indicating which method was used for encryption in the CS attached information. In decryption processing, the CSS 46 linked to a read command reads out the CS attached information, and performs decryption processing using a method corresponding to the set encryption method. This allows the CS 30 to perform desired processing without the host 10 managing the CS attached information.

[0218] Eighth embodiment In this embodiment, a program flow of the CPU 12 of the host 10 and a program flow of the CSS 46 of the CS 30 in a case where the CS 30 according to the third modified example of the fifth embodiment is used will be described as an eighth embodiment.

[0219] 25 is a flowchart showing an example of the flow of a CS flag generation process when a write command is issued by the CPU 12. When the CS flag generation process is started, in S1402, the CPU 12 determines whether the write target partition is a specific partition (here, partition HOGE).

[0220] If the write target partition is not partition HOGE (NO in S1402), in S1404 the CPU 12 sets the on information or off information of the CS flag to CSS stop (off), and ends the process.

[0221] If the write target partition is partition HOGE (YES in S1402), in S1406 the CPU 12 sets the on information or off information of the CS flag to CSS activation (on). In S1408, the CPU 12 determines whether the owner of the write target file is owner FUGA.

[0222] If the owner of the file to be written is not owner FUGA (NO in S1408), in S1410, CPU 12 sets the slot identifier of the CS flag to a certain slot (here, slot 1), sets the CS parameter of the CS flag to a certain parameter (here, parameter 1), and terminates the process.

[0223] If the owner of the file to be written is the owner FUGA (YES in S1408), the CPU 12 sets the slot identifier of the CS flag to a certain slot (slot 2 in this case) in S1412.

[0224] In S1414, the CPU 12 determines whether or not the attribute of the write target file is "read-prohibited by others." If the attribute of the write target file is "read-prohibited by others" (YES in S1414), in S1416 the CPU 12 sets the CS parameter of the CS flag to a certain parameter (here, parameter 3), and ends the process.

[0225] If the attribute of the file to be written is not "read prohibited to others" (NO in S1414), the CPU 12 sets the CS parameter of the CS flag to a certain parameter (parameter 2 in this case) in S1418, and ends the process.

[0226] 26 is a flowchart showing an example of the flow of the CS flag generation process of the CPU 12 when a read command is issued. When the CS flag generation process is started, in S1502, the CPU 12 sets the on information or off information of the CS flag to CSS activation (on), sets the slot identifier to a certain slot (here, slot 3), and ends the process.

[0227] FIG. 27 is a flowchart showing the process of the CSS 46 in a write operation.

[0228] 27(a) is a flowchart showing the processing of the CSS 46 arranged in slot 1. When the write command-linked CSS 46 of slot 1 is started, in S1602, the CSS 46 encrypts the data to be written with the encryption key specified by the CS parameter in the encryption method 1 specified by the CS parameter. In S1604, the CSS 46 sets CS attached information from the CPM 44 to the device buffer 42. The CS attached information includes the value of on information or off information in the CS flag, information indicating the encryption method, and the CS parameter indicating the area for storing the encryption key. The CS attached information may be transferred from the device buffer 42 to the NAND memory 32.

[0229] 27B is a flowchart showing the processing of the CSS 46 arranged in slot 2. When the write command-linked CSS 46 of slot 2 is started, in S1612, the CSS 46 encrypts the data to be written in encryption method 2 using the encryption key specified by the CS parameter. In S1614, the CSS 46 sets CS attached information from the CPM 44 to the device buffer 42. The CS attached information includes a value of on information or off information in the CS flag, information indicating the encryption method, and a CS parameter indicating an area for storing the encryption key. The CS attached information may be transferred from the device buffer 42 to the NAND memory 32.

[0230] 28 is a flowchart showing the processing of the read command-linked CSS 46 arranged in slot 3. When the CSS 46 starts, in S1702, the CSS 46 reads the CS attached information. In S1704, the CSS 46 determines whether the information included in the CS flag in the CS attached information specifies whether to start or stop the CSS 46. If the information included in the CS flag specifies the stop of the CSS 46, the CSS 46 does nothing (S1706) and ends the processing.

[0231] If the CS flag specifies activation of CSS 46, then in S1708 CSS 46 determines whether the information indicating the encryption method in the CS attached information specifies encryption method 1 or encryption method 2. If the information indicating the encryption method specifies encryption method 1, then in S1710 CSS 46 decrypts the data using encryption key A stored in an area of ​​CPM 44 specified by the CS parameter in the CS attached information, and ends the process.

[0232] If the information indicating the encryption method specifies encryption method 2, then in S1712, CSS46 decrypts the data using encryption key B stored in the area of ​​CPM44 specified by the CS parameter in the CS auxiliary information, and terminates the processing.

[0233] In the eighth embodiment, similarly to the seventh embodiment, when the host 10 issues a write command, it takes into consideration conditions such as the partition to be written to, the file owner, and the file attributes, and specifies whether to start or stop the CSS 46, the slot number at startup, and the CS parameters at startup. Unlike the sixth and seventh embodiments, in the eighth embodiment, when the host 10 issues a read command, it sets the on or off information of the CS flag to specify the startup of the CSS 46, and the program selection information of the CS flag specifies a specific slot number, but no other parameter control is performed.

[0234] In the CSS 46 of slot 1 and slot 2 that are started in conjunction with the write command, the start of the CSS 46, the encryption method, and the CS parameters are set in the CS attached information setting process. Here, when the CSS 46 is set to be stopped, the CS attached information is in the default state, and it is assumed that the CSS 46 is set to be stopped.

[0235] The CSS 46 of slot 3, which is started in conjunction with the read command, uses the read CS attached information (CS flag, encryption key) to determine whether decryption is necessary or not depending on whether the CSS 46 is started or stopped, decides which encryption method to follow, and determines which encryption key to use for decryption. In this way, the CS 30 uses the value of the CS attached information, making it possible to reduce the processing load of the host 10.

[0236] 29 is a flowchart showing an example of processing of the CSS 46 when a write command is issued by the CPU 12 of the host 10 in a modified example of the eighth embodiment. When the write command-linked CSS 46 arranged in slot 1 starts, in S1802, the CSS 46 determines whether or not the lba data to be written includes a specific word (confidential in this case).

[0237] If the lba data to be written includes the word confidential (YES in S1802), in S1804 the CSS 46 encrypts the write data with encryption method 1 using the encryption key stored in an area of ​​the CPM 44 specified by the CS parameter. In S1806, the CSS 46 writes CS attached information cs_attr(A) including information indicating the startup of the CSS 46, encryption method 1, and encryption key A to the device buffer 42, and ends the process.

[0238] If the lba data to be written does not contain the word confidential (NO in S1802), CSS46 does not encrypt the write data (S1808), and in S1810, CSS46 writes CS attached information cs_attr(B) including information indicating the stop of CSS46 to device buffer 42, and terminates the processing.

[0239] In this modified example, the process branches according to the contents of the lba data, which is the same as in the sixth embodiment. However, after the conditional branch, operations are performed such that the instructions from the host 10 are overwritten inside the CS 30, such as a process of not encrypting (S1808) and a process of setting information for stopping the CSS 46 in the CS attached information (S1810).

[0240] Even with such an operation, the CSS 46 of the slot 3 of the eighth embodiment shown in FIG. 28 performs the determination process, so that data processing during reading can be performed without any inconsistencies.

[0241] The present invention is not limited to the above-described embodiment, and the components can be modified and embodied in the implementation stage without departing from the gist of the invention. In addition, various inventions can be created by appropriately combining the multiple components disclosed in the above-described embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, components from different embodiments may be appropriately combined. [Explanation of symbols]

[0242] 10... host, 14... host buffer, 20... command queue, 30... CS, 32... NAND memory, 36... firmware, 42... device buffer, 44... CPM, 46... CSS

Claims

1. A non-volatile memory; a first processor that controls a first process of writing data designated by a first command received from an external device to the non-volatile memory, or a second process of reading data designated by a second command received from the external device from the non-volatile memory and transmitting the read data to the external device; a second processor capable of performing a plurality of first data processing operations on data written to the non-volatile memory and a plurality of second data processing operations on data read from the non-volatile memory; The first command is: First information designating one of the first data processes among the plurality of first data processes; second information indicating whether or not to cause the second processor to execute the one first data processing; third information specifying a first parameter related to the one first data processing; Including, The second command is Fourth information designating one second data processing among the plurality of second data processing; fifth information indicating whether or not to cause the second processor to execute the one second data processing; sixth information specifying a second parameter related to the one second data processing; Including, The first processor, when the second information included in the first command indicates that the second processor is to execute the one of the first data processes, before writing the data specified by the first command to the non-volatile memory, the second processor is caused to execute the one of the first data processes specified by the first information using the first parameters specified by the third information, and the data after the one of the first data processes is written to the non-volatile memory; A memory system which, when the fifth information included in the second command indicates that the second processor is to execute the one of the second data processes, reads data specified in the second command from the non-volatile memory, then causes the second processor to execute the one of the second data processes specified in the fourth information using the second parameters specified in the sixth information, and transmits the data after the one of the second data processes to the external device.

2. The second processor executes the one of the first data processes based on auxiliary information related to the one of the first data processes; 2. The memory system of claim 1, wherein the first processor writes the auxiliary information to the non-volatile memory together with the data after the one first data processing, and reads the auxiliary information from the non-volatile memory together with the data specified by the second command.

3. The memory system of claim 2, wherein the second processor executes the one second data processing based on the data read from the non-volatile memory and the auxiliary information read from the non-volatile memory.

4. A memory system as described in any one of claims 1 to 3, wherein each of the plurality of first data processes and the plurality of second data processes is data calculation, error correction encoding of data, error correction decoding of data, data encryption, data decoding, data compression, data decompression, data analysis, or filtering.

5. The host, a memory system connected to the host; A data processing system comprising: The memory system includes: A non-volatile memory; a first processor that controls a first process of writing data designated by a first command received from an external device to the non-volatile memory, or a second process of reading data designated by a second command received from the external device from the non-volatile memory and transmitting the read data to the external device; a second processor capable of performing a plurality of first data processing operations on data written to the non-volatile memory and a plurality of second data processing operations on data read from the non-volatile memory; The first command is: First information designating one of the first data processes among the plurality of first data processes; second information indicating whether or not to cause the second processor to execute the one first data processing; third information specifying a first parameter related to the one first data processing; Including, The second command is Fourth information designating one second data processing among the plurality of second data processing; Fifth information indicating whether or not to cause the second processor to execute the one second data processing; sixth information specifying a second parameter related to the one second data processing; Including, The first processor, when the second information included in the first command indicates that the second processor is to execute the one of the first data processes, before writing the data specified by the first command to the non-volatile memory, the second processor is caused to execute the one of the first data processes specified by the first information using the first parameters specified by the third information, and the data after the one of the first data processes is written to the non-volatile memory; A data processing system, in which, when the fifth information included in the second command indicates that the second processor is to execute the one of the second data processes, after reading data specified in the second command from the non-volatile memory, the second processor is caused to execute the one of the second data processes specified in the fourth information using the second parameters specified in the sixth information, and the data after the one of the second data processes is transmitted to the external device.

6. The data processing system of claim 5, wherein each of the plurality of first data processes and the plurality of second data processes is data calculation, error correction encoding of data, error correction decoding of data, data encryption, data decoding, data compression, data decompression, data analysis, or filtering.

7. A method for a memory system including a non-volatile memory, the method including receiving a command from an external device, the command including flag information, process designation information, and parameter designation information, the method comprising the steps of: The processing specification information is First information specifying one of the first data processes; or second information specifying one second data processing among the plurality of second data processing; When the process designation information includes the first information, the flag information is third information indicating whether or not to execute the one first data processing; and fourth information specifying a first parameter related to the one first data processing, When the process designation information includes the second information, the flag information is fifth information indicating whether or not to execute the one second data processing; and sixth information specifying a second parameter related to the one second data processing, when the third information indicates that the one of the first data processes is to be executed, before writing the data specified by the command to the non-volatile memory, execute the one of the first data processes specified by the first information using the first parameters specified by the fourth information, and write the data after the one of the first data processes to the non-volatile memory; A method comprising: when the fifth information indicates to execute the one of the second data processes, after reading the data specified by the command from the non-volatile memory, executing the one of the second data processes specified by the second information using the second parameters specified by the sixth information, and transmitting the data after the one of the second data processes to the external device.

8. The method of claim 7, wherein each of the plurality of first data processing operations and the plurality of second data processing operations is data calculation, error correction encoding of data, error correction decoding of data, data encryption, data decoding, data compression, data decompression, data analysis, or filtering.

Citation Information

Patent Citations

  • Command acquisition controller

    JP1989193963A

  • Microprocessor

    JP1993181669A

  • Nonvolatile storage system, nonvolatile storage device, and memory controller

    JP2014194689A

  • Remote copy system and remote copy control method

    JP2014524601A

  • Storage device and method of controlling storage device

    JP2018014129A