A method for out-of-order processing of distributed accumulation lists.
The DDMA controller in semiconductor storage devices separates routine and atypical data tags for efficient processing, addressing memory consumption and latency issues in handling distributed aggregation lists.
Patent Information
- Application Number
- JP2023166686
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-05-31
- Filing Date
- 2023-09-28
- Publication Date
- 2024-10-28
- Estimated Expiration
- 2039-05-30
AI Technical Summary
Existing semiconductor storage devices face inefficiencies in processing distributed aggregation lists (SGL) due to the use of atypically large numbers of descriptors, which consume memory and increase latency, interfering with the processing of routine descriptors and causing buffer inefficiencies.
A semiconductor storage device with a DDMA controller that separates data tags into two lists: one for routine descriptors processed out-of-order and another for atypical descriptors processed in-order, managing memory usage and ensuring efficient data transfer.
This approach reduces latency by 10-20% and prevents buffer exhaustion, maintaining efficient processing of both routine and atypical data tags by optimizing memory usage and transfer order.
Smart Images

Figure 0007574381000001 
Figure 0007574381000002 
Figure 0007574381000003
Abstract
Description
[Technical field]
[0001] SUMMARY OF THE PRESENT EMBODIMENTS Embodiments of the present invention generally relate to systems and methods for processing read commands. [Background technology]
[0002] The performance of semiconductor storage devices, such as solid state drives (SSDs), is greatly affected by the speed at which they process read commands. To increase read command processing speed and reduce latency, some systems use a system that prefetches descriptors for data tags received from the host and stores them in local RAM until the data they describe is processed. Read commands received from the host may be described by a physical region page (PRP) format request or may be in the form of a scattered accumulation list (SGL). The SGL allows for more flexibility in describing the location to transfer data, but allows for the use of any number of descriptors to describe the data transfer.
[0003] In many cases, the SGL data descriptor format used by the host uses a small number of descriptors to describe a data transfer, but in some cases, an SGL format command includes a large number of descriptors associated with the transfer. In such cases, a system using descriptor prefetching will quickly exhaust all available local memory space attempting to prefetch and store the descriptors associated with the atypically large number of SGL data descriptors for the data tag. Also, processing the atypical SGL takes longer than processing the typical short data descriptors. Processing the atypical SGL data descriptors prevents processing of typical data tags described by a small number of descriptors, causing inefficient use of device buffers and memory, slowing down the overall transfer rate.
[0004] Thus, there exists an unmet need to design a system that allows for highly efficient processing of data in distributed aggregation lists. Summary of the Invention
[0005] In one aspect, a semiconductor storage device includes a controller including a Data Direct Memory Access (DDMA) controller, the controller receiving a plurality of read commands from a host device, the plurality of read commands being divided into a plurality of data tags associated with a plurality of data transfer descriptors, the DDMA controller receiving the plurality of data transfer descriptors and prefetching one or more descriptors from the host device associated with one or more of the plurality of data tags, a first data tag having an associated descriptor number corresponding to a contiguous block of memory, the DDMA controller also determining whether the number of descriptors associated with the first data tag does not exceed a threshold, Exceeding If so, move the first data tag to the first list, and when the first data tag reaches the head of the first list and the data associated with the first data tag is ready to be transferred, move the first data tag to the second list. When the first data tag is at the head of the second list, the DDMA controller transmits the data associated with the first data tag.
[0006] In another aspect, a method for fetching direct memory access (DDMA) descriptors for a command into a semiconductor storage device includes, for a first command that is split across a plurality of data tags and includes a plurality of data transfer descriptors, determining a number of descriptors associated with a first data tag describing the first command, the number of descriptors corresponding to a contiguous block of memory when at the beginning of a command list in an on-chip random access memory (RAM), and comparing the number of descriptors associated with the first data tag to a threshold. Exceeding In that case, the method includes processing the first data tag by storing the first data tag in a first list and moving the first data tag to a second list when data associated with a number of descriptors is ready. The method further includes fetching a number of additional descriptors associated with the first data and performing a data transfer of data associated with the first data tag when the first data tag reaches the head of the second list. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 shows a block diagram of a solid-state memory system.
[0008] [Diagram 2] FIG. 2 shows a decision chart for processing a read command.
[0009] [Diagram 3] FIG. 3 shows a block diagram of the processing of unstructured data descriptors associated with a read command.
[0010] [Figure 4] FIG. 4 shows a diagram of a queued read command.
[0011] [Figure 5A] FIG. 5A shows a diagram of the processing of multiple structured and unstructured data descriptors.
[0012] [Figure 5B] FIG. 5B illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0013] [Figure 5C] FIG. 5C illustrates steps in the processing of multiple regular and unregular data descriptors.
[0014] [Figure 5D] FIG. 5D illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0015] [Figure 5E] FIG. 5E illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0016] [Figure 5F]FIG. 5F illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0017] [Figure 5G] FIG. 5G illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0018] [Figure 5H] FIG. 5H illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0019] [Figure 5I] FIG. 5I illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0020] [Figure 5J] FIG. 5J illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0021] [Figure 5K] FIG. 5K illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0022] [Figure 5L] FIG. 5L illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0023] [Figure 5M] FIG. 5M illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0024] [Figure 5N] FIG. 5N illustrates steps in the processing of multiple structured and unstructured data descriptors.
[0025] [Figure 6] FIG. 6 shows a flow chart illustrating a method for processing a read command. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] 1 shows a block diagram of a semiconductor storage system 100. The semiconductor storage system 100 includes a host 102, a host memory 103, a solid state drive (SSD) 104, a semiconductor chip 111, and a peripheral component interconnect (PCIe) core 116. The semiconductor chip 111 includes an internal random access memory (RAM) 110, a command decoder 106, a data tag execution controller 105, a command chopper 107, and a data direct memory access (DDMA) controller 108 having a flash backend 109. The flash backend 109 is communicatively coupled to a first memory 112 and a second memory 114, which may be flash memory or any other memory type. The PCIe 116 is communicatively coupled to the host 102 via a host interface 118. The DDMA controller 108 is communicatively coupled to the PCIe 116 and the command decoder 106. The command decoder 106 is communicatively coupled to a command chopper 107, which is communicatively coupled to a data tag execution controller 105. The data tag execution controller 105 is also communicatively coupled to a DDMA controller 108 and a flash backend 109. Although the flash backend 109 is only shown as being connected to two memories located on an SSD, it may be coupled to any number of internal or external memories.
[0027] The PCIe 116 receives commands from the host 102 via the host interface 118 and sends them to the command decoder 106. The command decoder 106 decodes the commands and prepares them for command handling system pause. The command decoder 106 sends the commands to the DDMA controller 108, which manages host transfer execution including descriptor fetching and out-of-order SGL execution, as described below. The DDMA controller 108 is communicatively coupled to a command chopper 107, which splits the command into portions comprising data tag pieces. The command chopper 107 is communicatively coupled to both the data tag execution controller 105 and the DDMA controller 108. The data tag execution controller 105 manages the execution of the data tags generated by the command chopper 107. Each read command is separated by the command chopper 107 into multiple data tags, each having an associated number of descriptors that describe the location of the requested data. The commands and descriptors are stored by the host 102 in the host memory 103. The DDMA controller 108 performs "prefetching" by pulling descriptors associated with commands from the host memory 103 and into the DDMA controller 108. The descriptors are stored in RAM 110 and handled by the DDMA in data tag sized pieces generated by the command chopper 107. The data tag execution controller 105 manages the execution of the data tags, including requesting the associated data from the flash backend 109. Once the data is retrieved from the first memory 112 and the second memory 114, the data is transferred to the host 102.
[0028] The DDMA controller 108 receives commands with PRP or SGL descriptors, maintains lists in RAM 110 to store PRP and SGL descriptors, and maintains lists in RAM 110 to separate PRP and SGL descriptors. The DDMA controller 108 also prefetches descriptors from the host 102, issues data transfer (DMA) requests for data transfers, and enables out-of-order transfers using prefetched PRP and SGL descriptors in typical conditions where a threshold number of descriptors describing a data tag is met. Prefetching of descriptors reduces the overall latency of the system. Prefetching of descriptors and processing of commands out-of-order may provide a 10-20% performance improvement over a system that does not prefetch or process data descriptors out-of-order.
[0029] PRP formatted descriptors have a single pointer by default, and the DDMA controller 108 processes them by pre-fetching the descriptors and forwarding the requested data as it becomes available. SGL formatted descriptors may be used to describe non-contiguous blocks of data, and SGL commands generally have one or two descriptors per data tag, but in some atypical examples may have any number of descriptors associated with a data tag. In these atypical examples, the data tag cannot pre-fetch the descriptors because storing the pre-fetched descriptors would consume a very large amount of on-chip RAM 110. In this atypical example, memory limitations mean that the data tags cannot be processed out of order. Attempting to include atypical data tags in an out-of-order processing algorithm would prevent the processing of regular data tags, resulting in an inefficient system with high latency.
[0030] FIG. 2 shows a decision chart for the process by which the DDMA controller 108 processes a read command. The DDMA controller 108 receives a command and a data tag describing the command from the PCIe 116 and the command decoder 106, and stores the data tag for the command or a data transfer request in the RAM 110. In step 202, the DDMA controller 108 fetches a pre-configured number of descriptors for the data tag. Any unused descriptors are saved for subsequent data tags. The pre-fetched descriptors are stored in the RAM 110. Generally, the DDMA controller 108 obtains a configured allocation of descriptors associated with the data tag from the host 102, for example, 64 bytes of descriptors at a time. Not all of the descriptors obtained by the DDMA controller are necessarily known or needed for the data tag or the "data transfer request." The unused descriptors are stored in a list in the local RAM 110 in a descriptor memory segment, referred to as a descriptor memory segment list.
[0031] In step 204, the DDMA controller 108 determines whether the number of descriptors associated with the first data tag exceeds a preset threshold. If the number of descriptors associated with the data tag exceeds the threshold, the data tag is considered atypical because it contains too many descriptors to be processed together with typical data tags having associated descriptor numbers that do not exceed the threshold. The atypical data tags are processed separately and in a different manner than the typical data tags.
[0032] In step 206, the regular data tag is stored in RAM 110 for out-of-order processing while DDMA controller 108 processes the regular data tag by retrieving data associated with the descriptor. The data is retrieved by flash backend 109 from first memory 112 and second memory 114 via first communication channel 120 and second communication channel 122. In some implementations, if the data is available in flash backend 109, a ready bit in the data tag is set and the regular data tag is moved to a run list, while in other implementations, the regular data tag is not moved to a list. In step 208, if the data is available, DDMA controller 108 transfers the data associated with the regular data tag to host 102 via command controller 106 and host interface 118.
[0033] The DDMA controller 108 transfers data associated with regular data tags to the host 102 when the data is ready, regardless of the order in the out-of-order processing list. Transferring data associated with regular data tags when they are ready rather than out of order ensures that data is transferred efficiently and that buffers are not idle while commands are being processed. Out-of-order processing and transfer of regular data tags increases processing efficiency and allows devices to consistently send data to the host without being held up waiting for a data tag at the head of the out-of-order processing queue to be processed.
[0034] By removing atypical data tags that have an excessively high number of descriptors and processing them separately, the atypical data tags may be removed from out-of-order processing and instead processed in order starting at step 210. At step 210, DDMA controller 108 adds the atypical data tag to the end of the per-command list stored in RAM 110 where it awaits processing. At step 212, when the atypical data tag reaches the top of the per-command list and is ready, DDMA controller 108 moves the data tag to the atypical execution list to await its turn to be processed.
[0035] In step 214, when the data tag is at the top of the atypical execution list, DDMA controller 108 fetches all remaining descriptors that were not prefetched in step 202. DDMA controller 108 stores the descriptor along with previously prefetched descriptors in an atypical command descriptor list in RAM 110. DDMA controller 108 obtains data associated with the prefetched and fetched descriptors for the atypical data tag and transfers the data associated with the atypical data tag to host 102 via command controller 106 and second host interface 118.
[0036] The DDMA controller 108 processes atypical data tags in order and separately from typical data tags, so that the atypical data tags do not slow down the processing of typical data tags, preventing the need for large buffers. Atypical data tags may be described by an SGL with a large number of descriptors, while typical data tags may be described by an SGL with an expected number of descriptors for the system. For example, in one embodiment, a typical data tag may have two descriptors. Atypical data tags may have any number of descriptors above a threshold set in a hardware register of the system. As an example, a 1MB command may be described by a single 1MB descriptor, and an atypical 1MB command has 1,000 1KB descriptors associated with it. Because prefetching and storing 1,000 descriptors consumes on-chip RAM 110, the DDMA controller 108 processes atypical data tags separately, as shown in FIG. 2, without prefetching all of the descriptors.
[0037] 3 shows a data structure diagram 300 of the processing of data tags associated with a read command as they are being processed by DDMA controller 108. DDMA controller 108 stores information specific to each received command in RAM 110 along with information shown in command ID segment 302, including an identification of whether the data tag is regular or atypical, i.e., considered "naughty," an indication of the start and end of a list of data tags that are atypical (the so-called first list), and an address where the prefetched descriptors are stored in RAM 110.
[0038] The DDMA controller 108 further stores the data tag information in a data tag information list 306 in RAM 110, which includes a command identification, a port identification, a ready bit, an indication of whether the data tag is allocated, and an address where the descriptor for the data tag is stored. The ready indicator (or ready bit) indicates whether the associated data is available for transfer. The allocated indicator indicates whether all descriptors, including both data and metadata, are available for the data tag. The list includes an index into the list of descriptors in RAM 110.
[0039] The DDMA controller 108 stores the descriptors associated with the data tags in a pointer memory segment list 304 in the RAM 110. The descriptor memory segment list 304 has a limited amount of space for storing descriptors, and if the descriptor memory segment list is full, no more descriptors can be added to the list until some descriptors are removed by transferring the associated data to the host 102. Processing one atypical data tag at a time also prevents the RAM 110 from being overrun and the buffer from being exhausted by atypical data tags at the expense of typical data tags. In some implementations, only one buffer at a time is used for processing atypical data tags. The descriptors are stored along with an indication of whether the descriptor corresponds to further descriptors. For example, host memory address 1 points to an associated pointer host memory address 2.
[0040] The DDMA controller 108 maintains multiple lists per port, and command execution is distributed among the ports of the SSD 104.
[0041] FIG. 4 illustrates a diagram 400 of a queued read command 408 with regular and non-regular data descriptor portions. The vertical axis illustrates the increasing logical block address (LBA) associated with the command 408, illustrated as 402. The read command 408 includes a first command state 404 that is "regular" and a second command state 406 that is "non-regular." The first command state 404 has a first data tag A 410 and is described by a data descriptor "0" 418 that is 2KB in size, also referred to herein as a pointer. The first command state 404 described by data tag A 410 is a regular command that may be processed using out-of-order processing as described above with respect to FIG. 2. The read command 408 is 11KB in total and is described by four data tags and six descriptors of various sizes. For simplicity, it is assumed that the read command 408 has no metadata.
[0042] The second command state 406 is described by three data tags, data tag B 412, data tag C 414, and data tag D 416. Data tag B 412 has four associated descriptors, data descriptor "1" 420, data descriptor "2" 422, data descriptor "3" 424, and data descriptor "4" 426, each of 1 KB. Data tag C 414 and data tag D 416 are associated with a single descriptor, data descriptor "5" 428, which is a total of 5 KB in size. Data descriptor "0" 418, data descriptor "1" 420, data descriptor "2" 422, data descriptor "3" 424, data descriptor "4" 426, and data descriptor "5" 428 must be read in order by the DDMA controller 108. Using the SGL descriptor, the information required for the transfer of data tag D416 may only become apparent after pre-processing of these data tags to find the associated descriptors for data tag A412, data tag B414, and data tag C414 that correspond to the associated data tag D416.
[0043] Because data tag B 412 has more than the threshold number of associated descriptors (two in this example), data tag B 412 is determined to be atypical ("notty") and is processed in order according to Figure 2. Because data tags C 414 and D 416 follow data tag B 412, they are also atypical ("notty") and are processed in this manner. Even if one of data tags C 414 or data tag D 416 is typical and has less than the threshold amount of associated descriptors, all subsequent data tags in the command following the atypical data tag are handled by the atypical data transfer request method. Because data tags following an atypical data tag are handled according to the in order processing method, all subsequent data tags associated with the same command are added to the end of the per command list and designated as notty.
[0044] As shown in FIG. 3, a data tag is associated with a data descriptor, or pointer, that describes the location of the data. The data tags and the descriptors are stored in the local RAM 110 in a list that is updated as the data tag is processed by the DDMA controller 108. The data tag references the descriptors needed to convert the data tag into an independent data structure. However, an atypical command portion that includes a data tag that references an excessively large number of descriptors cannot have the prefetched descriptors stored in the RAM 110 without consuming a large portion of the available on-chip memory. If the RAM 110 is fully consumed by prefetched descriptors for data tags in the notify portion of the command, there will be no memory available to process other typical data tags, and if any data in the queue for an already completed data tag is transferred to the host 102, there will be no transfer of data until the atypical data tag finishes processing. In addition, if the remaining non-prefetched descriptors for the atypical data tag are fetched in order, the back-end buffer will be busy fetching a large number of descriptors and will be unavailable to prefetch other typical data tags, slowing down the system. The system behaves in this manner very inefficiently.
[0045] Whether a data tag is regular or non-regular is determined by the number of descriptors per retrieved data amount in the data tag. As an example, the DDMA controller retrieves data tags in multiples of 4KB based on the configuration of commands from the queue of data tags sent by the data tag execution controller 105. The regular command threshold limit is based on a single 4KB data tag, and larger data tags are scaled based on multiples of this size. The number of descriptors in a data tag determines whether the data tag is processed as a regular data tag using out-of-order processing or as an atypical ("naughty") data tag using in-order processing.
[0046] 5A-5M show the handling of the commands shown in FIG. 4 according to the process shown in FIG.
[0047] FIG. 5A illustrates a first step, indicated by a number of lists 500, in the processing of data tags of FIG. 4. The number of lists 500 includes a command ID table 502, a data tag index memory 506, command transfer data from host memory 508 received by DDMA controller 108 from command controller 106, a descriptor memory segment 510, a working copy atypical command list 512, and a notify execution list 504 for use with the atypical data tags. The command ID table 502 is indexed by a command ID, which identifies the characteristics of the command. The descriptor memory segment 510 includes a number of lists. In this first step, the fetch of the first descriptor set from the host has already occurred, and data tag A 532 is processed by DDMA controller 108. In the command ID table 502, the notify indicator is set to 0, the next descriptor to be fetched from the host is indicated by the command transfer data from the host memory 508, and any extra descriptors obtained by the DDMA controller 108 but that do not describe the first data tag A 532 (descriptors 516, 518, 520) are indicated on the extra descriptor list as being stored in the descriptor memory segment 510.
[0048] The DDMA controller 108 prefetches a preset amount of descriptors for processing the first data tag A 532, including the 2KB data descriptor “0” 514 associated with the data tag A 532, as well as the 1KB data descriptor “1” 516, the 1KB data descriptor “2” 518, and the 1KB data descriptor “3” 520. The data descriptor “0” 514 fully describes the data tag A 532 and does not correspond to any additional descriptors. The 1KB data descriptor “1” 516, the 1KB data descriptor “2” 518, and the 1KB data descriptor “3” 520 are extra descriptors that do not describe the data tag A 532 and are stored in the descriptor memory segment 510, with the 1KB data descriptor “1” 516 referencing the 1KB data descriptor “2” 518 as the next descriptor, and the 1KB data descriptor “2” 518 referencing the 1KB data descriptor “3” 520 as the next descriptor. All data descriptors are stored in the descriptor memory segment 510 , but data tag A 532 is stored in the data tag memory 506 with a reference to the location of data descriptor “0” in the descriptor memory segment 510 .
[0049] FIG 5B illustrates the next step in processing the read command of FIG 4. The DDMA controller 108 retrieves data tag B 534 and processes the already fetched descriptors associated with data tag B 534 to determine if the number of descriptors exceeds a threshold set in a hardware register and thus is considered atypical or "naughty." The DDMA controller 108 indicates in command ID table 502 that the command is considered atypical or "naughty" in command ID table 502 and stores data tag B 534 as part of the per-command list in data tag memory 506. The prefetched descriptors associated with data tag B 534 previously retrieved with data tag A 532 are stored in descriptor memory segment 510 and no additional descriptors are prefetched for data tag B 534 at this time.
[0050] The threshold for the allowable number of regular descriptors may be any number of descriptors depending on the size of the local RAM 110 available for prefetching the descriptors. In some embodiments, the threshold is set at two descriptors. In other embodiments, the threshold is set at three, four, or a greater number of descriptors. Increasing the allowable number of descriptors set as the threshold may use more memory and require additional memory to be added to the device, increasing the size of the device. In some embodiments, external RAM is used to store the prefetched descriptors, but the use of external RAM increases the latency of the system. In some embodiments, external RAM is included as an overflow to store the prefetched descriptors in conjunction with the described algorithm.
[0051] A regular SGL data tag has a single descriptor, or possibly two descriptors. Although the data tags and descriptors described herein relate to data for read commands, the algorithm for determining whether a data tag is processed out of order or in order may also be applied to other tags described by other types of descriptors, such as metadata descriptors. In some implementations, the data descriptor includes a metadata descriptor, and the metadata descriptor counts toward the number of descriptors compared to the threshold to determine whether the data tag is considered atypical. In some implementations, the data descriptor includes a metadata descriptor, and the metadata descriptor does not count toward the number of descriptors compared to the threshold.
[0052] Figure 5C shows the next step in the processing of the read command of Figure 4. The DDMA controller 108 gets data tag C 536 and adds it to the data tag memory 506 as part of the per command list, following data tag B 534 in the per command list if the command is already considered noty, since data tag C 536 follows data tag B 534. In some embodiments, the per command list may be replaced with a per port noty list, which reduces the efficiency of request processing but saves memory. Like data tag B 534, data tag C 536 is identified as atypical, and the command ID table 502 identifies data tag C 536 as the new end, or tail, of atypical or noty data commands.
[0053] Figure 5D shows the next step in the processing of the read command of Figure 4. Data tag C 536 becomes ready and the ready bit for data tag C 536 is set to ready. However, because the command is atypical, data tag C 536 cannot be processed out of order and must wait until data tag B 534, the start of the atypical command, is ready and processed.
[0054] 5E, data tag B 534 is now ready and the ready bit for data tag B 534 is set to ready. Because data tag B 534 is the start of the notty portion of the command in data tag memory 506, DDMA controller 108 adds it to notty execution list 504. Data tag C 536 is also ready and DDMA controller 108 adds it to notty execution list 504 as well.
[0055] When data tag B 534, which is the head of the notty portion of the command and the head of the per-command list in data tag memory 506, is ready, DDMA controller 108 moves data tag B 534 and data tag C 536 from the per-command list in data tag memory 506 to notty execution list 504. By moving the command to notty execution list 504 and waiting until the head of the notty command portion is ready for data transfer before fetching the remaining data descriptors, other regular data tags are not held up by the processing of non-regular data tags.
[0056] 5F, the DDMA controller 108 gets data tag D 538 and adds it to the end of the per-command list in data tag memory 506. Data tag D 538 is not added to the notify execution list 504 because it is not yet ready.
[0057] 5G, data tag B 534 is at the top of the notify execution list 504, and the DDMA controller 108 begins processing data transfer request tag B 534 by moving data descriptor "1" 516, data descriptor "2" 518, and data descriptor "3" 520 to a working copy of the notify list 512. In some embodiments, the working copy of the notify list 512 is another list in the descriptor memory segment 510.
[0058] 5H, the DDMA controller 108 transfers the data associated with data descriptor "1" 516, data descriptor "2" 518, and data descriptor "3" 520 to the host 102, and the descriptors are removed from the working copy of the notice list 512 and from the local RAM 110. However, data tag B 534 is not yet complete.
[0059] 5I, the DDMA controller 108 fetches an additional 64-byte descriptor associated with the data tag from host memory 508 and updates command ID table 502 appropriately. The DDMA controller 108 obtains data descriptor “4” 540 and 5 KB data descriptor “5” 542 and stores the data descriptors in the working copy of notice list 512 to complete the transfer of data tag B 534.
[0060] 5J, the DDMA controller 108 retrieves and transfers the data associated with data descriptor "4" 540 to complete the processing of data tag B 534. Data tag B 534 is completed and removed from the data tag table 506.
[0061] 5K, the DDMA controller 108 has completed the transfer of data tag B 534. Data descriptor "5" 542 is not associated with data tag B 534 and is moved from the working copy of notice list 512 to the extra descriptor list in descriptor memory segment 510.
[0062] 5L, the DDMA controller 108 processes data tag C 536 because it is the head of the notify execution list 504. Because data descriptor "5" 542 does not correspond to the next data descriptor, the DDMA controller moves data descriptor "5" 542 to the working copy of notify list 512 and then transfers the associated data. When the DDMA controller 109 has finished transferring the data associated with data tag C 536, data tag C 536 is removed from data tag memory 506. Because data descriptor "5" 542 is only partially consumed, it is updated and removed from the working copy of notify list 512 and stored in descriptor memory segment 510 as 1 KB data descriptor "6" 542.
[0063] In Figure 5M, data tag A 532 is ready and the ready indicator indicates ready. In Figure 5N, the DDMA controller 108 transfers the data associated with data tag A 532 to the host 102. Because data tag A 532 is a regular data tag, it may be processed and transferred to the host when the data is ready. Data tag D 538 remains in data tag memory 506 with its associated data descriptor "6" 542 in descriptor memory segment 510. Because data tag B 534 and data tag C 532 have been processed and transferred, data tag D 538 is at the head of the notify execution list 504 and may be transferred when it is ready, since there are no data tags preceding it in sequence.
[0064] While DDMA controller 108 processes data tag A 532, data tag B 534, data tag C 536, and tag D 538, other items may continually be added to data tag memory 506. Other routine data tags associated with other commands obtained by DDMA controller 108 may be added to data tag memory 506 and processed in any order as data becomes available for transfer.
[0065] In some embodiments, only one buffer processes an atypical data tag at a time while all other buffers process a typical data tag in order to efficiently use the buffers to complete a read data transfer request. In some embodiments, the number of buffers that can be used simultaneously for processing or transferring an atypical data tag is more than one, for example, two or three.
[0066] 6 shows a flow chart 600 illustrating a method for processing a read command. In step 602, the DDMA controller 108 receives a number of data tags from the command controller 106 that describe the read command. In step 604, the DDMA controller 108 obtains the number of the data tags. In some embodiments, the DDMA controller 108 obtains a preset size of data tags, for example, 4KB of data.
[0067] In step 606, the DDMA controller 108 prefetches a configured number of descriptors associated with the data tag. In some embodiments, the DDMA controller 108 prefetches a preset size of descriptors associated with multiple data tags. In step 608, the DDMA controller 108 compares the number of descriptors for the first data tag to a threshold configured in the hardware registry.
[0068] If the number of descriptors for the first data tag exceeds the threshold number, then the DDMA controller 108 adds the first data tag to the first list in step 610. The first data transfer request is considered non-routine and is processed in order, but any routine data tags previously fetched and processed by the DDMA controller are processed out of order as data becomes available for transfer.
[0069] The data associated with the prefetched descriptor for the first data tag is obtained in the backend in step 612. The DDMA controller 108 does not fetch any remaining descriptors that describe the first data tag until the first data tag is ready for execution, i.e., the first data tag is marked as ready, the prefetched descriptor data is available, and the first data tag is at the top of the execution list.
[0070] In step 614, the first data tag is processed in order in the first list. This occurs after the prefetched descriptor data has been received and is available for transfer, and the first data tag is at the head of the execution list. When the first data tag is at the head of the first list and the data associated with the first data tag is ready to be transferred, the first data tag is moved to the second list. When the first data tag is at the head of the second list, the associated data is transferred. If additional descriptors are needed to complete the transfer of the data associated with the data tag, the descriptors are fetched and the data is transferred as the descriptors become available. Subsequent data tags in the list can only be processed after the first data tag has been processed and the associated data transferred (e.g., in order).
[0071] If the number of descriptors associated with the first data tag does not meet the threshold, the DDMA controller 108 transmits the data associated with the first data tag when the associated data is ready (eg, in any order).
[0072] Other objects, advantages, and embodiments of various aspects of the present invention will be apparent to those skilled in the art of the present invention and are within the scope of this specification and the accompanying drawings. For example, but not limited to, structural or functional elements may be rearranged consistent with the present invention. Similarly, the principles of the present invention may be applied to other examples not specifically described herein that are within the scope of the present invention.
Claims
1. A controller configured to receive a plurality of read commands from a host device, the read commands being split into a plurality of data tags and comprising a plurality of data transfer descriptors, the controller comprising a Data Direct Memory Access (DDMA) controller; The DDMA controller is configured to receive the plurality of data transfer descriptors, and further comprising: prefetching one or more descriptors from the host device associated with one or more of the plurality of data tags, where a first data tag has an associated descriptor number corresponding to a contiguous block of memory; determining whether the number of descriptors associated with the first data tag exceeds a threshold; if the number of descriptors associated with the first data tag exceeds a threshold; moving the first data tag to a first list; when the first data tag is at the top of the first list and data associated with the first data tag is ready to be transferred, moving the first data tag to a second list; configured to transmit the associated data when the first data tag is at the top of the second list; Semiconductor storage device.
2. If the number of descriptors associated with the first data tag does not exceed the threshold, the DDMA controller further The semiconductor storage device of claim 1 , configured to transmit the associated data when the associated data is ready.
3. 2. The semiconductor storage device of claim 1, further comprising a plurality of buffers, each buffer transmitting the data associated with one of a plurality of data tags in the second list.
4. 4. The semiconductor storage device of claim 3, wherein at one time, only one of the plurality of buffers is used to perform data transfers of data associated with the first data tag having a number of descriptors exceeding the threshold.
5. The semiconductor storage device according to claim 1 , wherein the threshold value is a predetermined amount stored in a register.
6. The semiconductor storage device of claim 1 , wherein the threshold is a predetermined number of descriptors associated with a data tag.
7. 2. The semiconductor storage device of claim 1, wherein if the number of descriptors associated with the first data tag exceeds the threshold, then subsequent data tags associated with the same command are deemed to exceed the threshold.
8. The semiconductor storage device of claim 7 , wherein the subsequent data tags associated with the same command are added to the end of the first list.
9. The semiconductor storage device of claim 1 , wherein processing the first data tag comprises accessing an associated media in a flash memory.
10. 3. The semiconductor storage device of claim 2, wherein if the number of descriptors associated with the first data tag does not exceed the threshold and the number of descriptors associated with a second data tag does not exceed the threshold, the DDMA controller is configured to transfer data associated with either the first data tag or the second data tag, whichever becomes available first.
11. 11. The semiconductor storage device of claim 10, wherein if a number of descriptors associated with a third data tag exceeds the threshold, the third data tag and any subsequent data tags are added to the first list.
12. The semiconductor storage device of claim 1 , wherein the descriptor comprises a metadata descriptor.
13. The semiconductor storage device according to claim 12 , wherein the metadata descriptor is not counted in the number of descriptors compared to the threshold value.
14. The semiconductor storage device according to claim 12 , wherein the metadata descriptor is counted in the number of descriptors that is compared to the threshold value.
15. The semiconductor storage device of claim 1 , further comprising an on-chip random access memory (RAM) configured to store the list of the plurality of data tags and the first list.
16. 16. The semiconductor storage device of claim 15, wherein if the number of descriptors associated with the first data tag exceeds the threshold, the prefetched descriptors associated with the first data tag are stored in the on-chip RAM.
17. 1. A method for fetching a direct memory access (DMA) descriptor for a command to a semiconductor storage device, comprising: For a first command at the head of a command list in an on-chip random access memory (RAM) that is split into multiple data tags and has multiple data transfer descriptors, determining a number of descriptors associated with a first data tag describing the first command, where the number of descriptors corresponds to a contiguous block of memory; comparing a number of descriptors associated with the first data tag to a threshold; if the number of descriptors associated with the first data tag exceeds the threshold; storing the first data tag in a first list; when the data tag is at the head of the first list and data associated with the first data tag is ready, moving the first data tag to a second list; fetching a plurality of additional descriptors associated with the first data tag; performing a data transfer of data associated with the first data tag when the first data tag is at the head of the second list; and processing the first data tag by:
18. if the number of descriptors associated with the first data tag does not exceed the threshold; performing a data transfer of the data associated with the first data tag when the data associated with the first data tag is available; The method of claim 17 , further comprising processing the first data tag by:
19. 20. The method of claim 18, further comprising forwarding data associated with either the first data tag or the second data tag, whichever becomes available first, if the number of descriptors associated with the first data tag does not exceed the threshold and the number of descriptors associated with a second data tag does not exceed the threshold.
20. 20. The method of claim 19, comprising adding a third data tag and any subsequent data tags to the first list if a number of descriptors associated with the third data tag exceeds the threshold.
Citation Information
Patent Citations
Data transfer device, storage device controller, and method for controlling storage device controller
JP2005165439A
Data transfer device, data transfer method and program
JP2006318139A
Data communication control device, data communication control method and program therefor
JP2009259209A
Method for on-demand fetching of SGL pointers based buffer, traffic and command requirements
US20160292100A1
