Extension Write Buffering
20170308327 ยท 2017-10-26
Inventors
Cpc classification
G06F3/0659
PHYSICS
G06F3/0679
PHYSICS
G06F12/0868
PHYSICS
International classification
Abstract
In various examples, a memory may comprise a subarray having an associated write extension buffer; and request logic to; receive a write request associated with the subarray, execute the write request. The request logic may further determine that the write request has not completed within an allocated number of write cycles, and responsive to determining that the write request has not completed the allocated number of write cycles: store the write request in the write extension buffer.
Claims
1. A method comprising: issuing a write request, wherein the write request is associated with a subarray of a memory; executing the write request; determining that the write request has not completed within an allocated number of write cycles; and responsive to determining that the write request has not completed, storing, by the memory, the write request in a write extension buffer, wherein the write extension buffer is associated with the subarray.
2. The method of claim 1, comprising: issuing a write extension operation, wherein the write extension operation comprises: executing, the write request stored in the write extension buffer.
3. The method of claim 2, wherein executing the write extension operation stored in the write extension buffer comprises executing the write extension operation using modified write parameters.
4. The method of claim 2, comprising issuing the write extension operation based on at least one of: a number of write cycles that have elapsed since executing a previous write extension operation, a number of write cycles that have elapsed, or a number of writes that have elapsed.
5. The method of claim 2, comprising issuing the write extension operation based on performing the write extension operation based on an observed error rate of the memory.
6. The method of claim 1, comprising: executing the write request stored in the write extension buffer; and responsive to determining that executing the write request stored in the write extension buffer has not completed: returning the write operation to the write extension buffer.
7. A device comprising a memory comprising: a subarray having an associated write extension buffer; and request logic to: receive a write request associated with the subarray: execute the write request; determine that the write request has not completed within an allocated number of write cycles; and responsive to determining that the write request has not completed the allocated number of write cycles: store the write request in the write extension buffer.
8. The device of claim 7, the request logic to: execute a write extension operation, wherein to execute write extension operation, the request logic to: execute the write request stored in the write extension buffer.
9. The device of claim 8, wherein the request logic to execute the write operation stored in the write extension buffer using modified write parameters.
10. The device of claim 8, wherein the request logic to perform the write extension operation based on a number of write cycles that have elapsed since executing a previous write extension operation.
11. The device of claim 8, wherein the request logic to perform the write extension operation based on an observed error rate of the memory.
12. The device of claim 7, wherein the request logic to: execute the write request stored in the write extension buffer; and responsive to determining that executing the write request stored in the write extension buffer has not completed: return the write operation to the write extension buffer.
13. A device comprising a memory controller comprising: a request controller; to: issue, to a memory coupled to the controller, a write request associated with a subarray of the memory; determine that the write request has not completed within an allocated number of write cycles to execute; and responsive to determining that the write request has not completed within the allocated number of write cycles to execute: cause the memory to store the write request in a write extension buffer of the memory.
14. The device of claim 13, the request controller to: issue a write extension operation to cause the memory to execute the write request stored in the write extension buffer.
15. The device of claim 13, wherein the request controller to cause the memory to execute the write operation stored the write extension buffer using modified write parameters.
16. The device of claim 13, wherein issuing the write extension operation is based on at least one of: a number of write cycles that have elapsed since executing a previous write extension operation, a number of write cycles that have elapsed, or a number of writes that have elapsed.
17. The device of claim 13, wherein the request controller to issue the write extension operation based on an observed error rate of the memory.
18. The device of claim 13, wherein the request controller to: issue the write extension operation to cause the memory to execute the write request stored in the write extension buffer; and responsive to determining that the write request stored in the write extension buffer has not completed: cause the memory to return the write operation to the write extension buffer.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0002] Certain examples are described in the following detailed description and in reference to the drawings, in which:
[0003]
[0004]
[0005]
[0006]
[0007]
[0008]
DETAILED DESCRIPTION
[0009] A computing device may comprise a processor, such as a central processing unit (CPU). The CPU may be coupled with a memory controller. The memory controller generates reads and writes to memory coupled with the memory controller. As an example, the memory controller may be coupled to at least one memory. In some examples, the memory may comprise multiple subarrays or banks. Each subarray may comprise a unit of the memory that can be independently accessed (i.e. written or read).
[0010] In some examples, the number of cycles to write data to the memory (i.e. the write latency) may vary such that the write is not complete within a write latency allocated by the media controller. However, the memory controller may limit the maximum allowable write latency to achieve the memory performance parameters. The techniques of this disclosure are directed to dealing with writes that do not complete within an allocated number of write cycles.
[0011] A memory die as described herein may comprise extension write buffers. Each extension write buffer is associated with a subarray of the memory die. If the memory determines that a write associated with a particular subarray has not completed in the allocated number of cycles, the memory stores the write in the extension buffer associated with the subarray.
[0012] Periodically, the memory controller may issue an extension flush operation. The extension flush operation causes the memory die to retry each of the writes stored in the extension write buffers, i.e. the stored writes that have not completed within an allocated number of write cycles to execute. In some examples, the memory controller may issue the extension flush operation after a particular number of cycles. The number of cycles to issue the flush operation may be fixed or variable. In some examples, the extension flush operation may occur based on an observed error rate of the memory. During the extension write operation, the memory controller may alter the parameters used to write data to the memory. For example, the extension write operation may use a longer write sequence than for a non-extension write.
[0013] By storing writes in write extension buffers, the memory die can re-attempt to execute writes that require more cycles to complete successfully than the previously-allocated number of write cycles. Additionally, the extension write buffers may simplify the design of the memory controller by allowing the memory dies to appear as though they have a fixed upper bound on write latency when in actuality, the write latency may be significantly higher and more variable.
[0014]
[0015] In various examples, memory 106 may comprise one or more of dynamic memory, such as double data rate (DDR) random access memory (RAM), static RAM, graphics DDR RAM, (GDDR), high bandwidth memory (HBM), or Hybrid Memory Cube or the like. In some examples, memory 106 may comprise non-volatile memory such as: NAND flash memory, resistive ram (ReRam), phase change RAM (PCRAM), spin transfer torque memory (STTRAM), magneto resistive RAM, or the like. In various examples, memory 106 may comprise a die. The die may be mounted on a dynamic inline memory module, printed circuit board (PCB), a PCIe (Peripheral Component Interconnect Express) card, a drive enclosure, or the like. Memory 106 comprises a subarray 108. Although only a single subarray is illustrated in
[0016] Each subarray, i.e. subarray 108, may comprise multiple different addressable memory locations and is an independently accessible unit within memory 106. Memory 106 may access different addresses of each subarray in parallel. For example, memory 106 may execute, in parallel, a read operation at a first address of subarray 108, and write data to a second, different address of a different subarray (not pictured) of memory 106.
[0017] System 100 also comprises memory controller 118. In some examples, memory controller 118 may comprise a memory controller that is external to memory 106. In various examples, memory controller 118 may be coupled to at least one central processing unit (CPU). In some examples, memory controller 118 may comprise a memory controller that is on a same printed circuit with memory 106. In yet some other examples, memory controller 118 may be distributed and may comprise a plurality of discrete and/or integrated devices. In some examples, memory controller 118 may comprise a CPU memory controller.
[0018] Memory controller 118 comprises request controller 120. Request controller 120 may comprise one or more of: a field programmable gate array (FPGA), fixed function logic, an application-specific integrated circuit (ASIC), a digital signal processor (DSP), or a CPU. Request controller 120 receives read and write requests, e.g. from a CPU or a memory controller. Memory controller 118 and the memory controller may be coupled via memory interface, a PCIe interface, a fabric, or the like. In the example of
[0019] Based on each received read or write request, request controller 120 generates a corresponding read or write request that is associated with a particular subarray of memory 106. In some examples, request controller 120 may determine the subarray associated with each generated read or write request based on a physical address of each read or write request.
[0020] Responsive to generating a write request, request controller 120 stores the write request in a staging buffer of memory 106, e.g. staging buffer 112. Memory 106 stores writes in staging buffers until Memory 106 receives a write signal from memory controller 118.
[0021] In the example of
[0022] For the purposes of illustration, write request 102A is illustrated as being associated with subarray 108. It should be noted that any number of subarrays may be present within memory 106, and that write request 102A may be assigned to any of those subarrays.
[0023] Responsive to a condition, such as a received write request or a number of cycles, request controller 120 issues a write operation to memory 106. The write operation causes memory 106 to execute write request 102B. For ease of understanding write request 102B is referred to as write request 102C during execution of the write operation, and write request 102C is illustrated as being inside subarray 108, the subarray with which write request 102 is associated.
[0024] In various examples, memory controller 118 or memory 106 may allocate a number of write cycles to execute a write operation, e.g. write request 1020. In some examples, the write operation may not complete within the allocated number of write cycles. The operation may not complete within the allocated time due to variability in the physical characteristics of the memory, the value of the data to be written, and/or wear on the memory, as some examples.
[0025] Responsive to determining that the write request has not completed within the allocated number of write cycles, to execute, memory controller 118 may cause memory 106 to store the write request, i.e. write request 1020, in a write extension buffer, e.g. write extension buffer 114. Write extension buffer 114 is associated with subarray 108. In various examples, there may be a write extension buffer for each subarray. Each write extension buffer stores write requests that have failed so that that memory 106 may re-attempt execution of the stored write request and so that memory 106 may continue to execute additional read and write requests.
[0026]
[0027] In the example of
[0028] Memory 106 receives write extension operation 202 from memory controller 118. Responsive to receiving write extension operation 202, request controller 120 causes memory 106 to execute request 102D, which is referred to as write request 102E during execution, and is illustrated inside subarray 108. In some examples, request controller 120 may cause memory 106 to execute the write request stored in the write extension buffer, using modified write parameters. Modified write parameters may comprise one or more of: a different write pulse strength, a longer write pulse duration, or the like.
[0029] In some examples, issuing the write extension operation may be based on at least one of: a number of write cycles that have elapsed since executing a previous write extension operation, a number of write cycles that have elapsed, or a number of writes that have elapsed. In various examples, request controller 120 may issue the write extension operation, e.g. write extension operation 202, based on an observed error rate of memory 106.
[0030] In yet some other examples executing a write request stored in the write extension buffer, e.g. write request 102E, may not complete within a second allocated number of write cycles. In various examples, the second allocated number of write cycles may the same as, or different from the number of cycles originally allocated to execute write request 1020. In these examples, memory controller 118 may cause memory 106 to maintain or return the write request that did not complete in the allocated number of cycles, e.g. write request 102E, to write extension buffer 114. The write request is referred to as write request 102F when it is returned to write extension buffer 114.
[0031]
[0032] Request logic 302 of memory 106 may process and/or execute read or write requests issued to memory 106. Another device, such as a memory controller (e.g. memory controller 118 of
[0033] Responsive to receiving write request 102A, request logic 302 causes memory 106 to store write request 102A in staging buffer 112. Write request 102A is referred to as write request 102B once stored in first staging buffer 112. Memory 106 stores writes in staging buffers until Memory 106 receives a write signal from memory controller 118.
[0034] For the purposes of illustration, write request 102A is illustrated as being associated with subarray 108. It should be noted that any number of subarrays may be present within memory 106, and that write request 102A may be assigned to any of those subarrays.
[0035] Responsive to a condition, such as a received write request or a number of cycles, request logic 302 may execute a write operation. The write operation causes memory 106 to execute write request 102B, i.e. to attempt to execute write request 102B on an associated address of subarray 108. For ease of understanding write request 102B is referred to as write request 1020 during execution of the write operation, and write request 1020 is illustrated as being inside subarray 108, the subarray with which write request 102 is associated.
[0036] In various examples, memory controller 118 or memory 106 may allocate a number of write cycles to execute a write operation, e.g. write request 1020. In some examples, the write operation may not complete within the allocated number of write cycles. The operation may not complete within the allocated time due to variability in the physical characteristics of the memory, the value of the data to be written, or wear on the memory, as some examples.
[0037] Memory 106 may determine that write request 102D has not completed within the allocated number of write cycles to execute. Responsive to this determination, memory 106 may store the write request, i.e. write request 1020, in a write extension buffer, e.g. write extension buffer 114. In some examples, write extension buffer 114 may comprise a same buffer as staging buffer 112. Memory 106 and/or memory controller 118 may indicate that a region of the buffer is allocated as an extension buffer or a staging buffer based on a value (e.g. a flag) stored in the buffer, as an example.
[0038] Write extension buffer 114 is associated with subarray 108. In various examples, there may be a write extension buffer for each subarray. Each write extension buffer stores write requests that have failed so that that memory 106 may re-attempt execution of the stored write request and so that memory 106 may continue to execute additional read and write requests.
[0039]
[0040] In various examples illustrated in
[0041] Memory 106 receives write extension operation 402 from memory controller 118. Responsive to receiving write extension operation 402, request logic 302 causes memory 106 to execute request 102D, which is referred to as write request 102E during execution, and is illustrated inside subarray 108. In some examples, request controller 120 may cause memory 106 to execute the write request stored in the write extension buffer, using modified write parameters. Modified write parameters may comprise one or more of: a different write pulse strength, a longer write pulse duration, or the like.
[0042] In some examples, issuing the write extension operation may be based on at least one of: a number of write cycles that have elapsed since executing a previous write extension operation, a number of write cycles that have elapsed, or a number of writes that have elapsed. In various examples, request logic 302 may execute the write extension operation, e.g. write extension operation 202, based on an observed error rate of memory 106.
[0043] In yet some other examples, request logic 302 may determine that write request 102E did not complete within a second allocated number of write cycles. In various examples, the second allocated number of write cycles may the same as, or different from the number of cycles originally allocated to execute write request 102C. In these examples, request logic 302 may cause memory 106 to maintain or return the write request that did not complete in the allocated number of cycles, e.g. write request 102E, to write extension buffer 114. The write request is referred to as write request 102F when it is returned to write extension buffer 114.
[0044] It should be understood that
[0045]
[0046] In various examples, method 500 may be performed by hardware, software, firmware, or any combination thereof. Other suitable systems and/or computing devices may be used as well. Method 500 may be implemented in the form of executable instructions stored on at least one machine-readable storage medium of the system and executed by at least one processor of the system. Alternatively or in addition, method 500 may be implemented in the form of electronic circuitry (e.g., hardware). In alternate examples of the present disclosure, one or more blocks of method 500 may be executed substantially concurrently or in a different order than shown in
[0047] Method 500 may start at block 502 at which point memory controller 118 and/or memory 106 may issue a write request (e.g. write request 102A). The write request is associated with a subarray of a memory. At block 504, memory 106 may execute the write request.
[0048] At block 506, memory controller 118 and/or memory 106 may determine that write request 102A has not completed within an allocated number of write cycles. At block 508, responsive to determining that the write request has not completed, memory 106 may store the write request in an extension buffer, e.g. write extension buffer 114.
[0049]
[0050] Alternatively or in addition, method 600 may be implemented in the form of electronic circuitry (e.g., hardware). In alternate examples of the present disclosure, one or more blocks of method 600 may be executed substantially concurrently or in a different order than shown in
[0051] In various examples, method 600 may start at block 602 at which point memory controller 118 may issue a write request (e.g. write request 102A). The write request is associated with a subarray (e.g. subarray 108). At block 604, memory 106 may execute the write request.
[0052] At block 606, memory controller 118 may cause and/or memory 106 may determine that the write request has not completed within an allocated number of write cycles. At block 608, responsive to determining the write request has not completed, memory 106 may store the write request in a write extension buffer associated with the subarray (e.g. write extension buffer 114).
[0053] At block 610, memory controller 118 may issue a write extension operation (e.g. write extension operation 202, 402). Memory 106 may receive the issued write extension operation. The write extension operation may cause memory 106 to execute the write request (e.g. write request 102D). In various examples, memory controller 118 may cause memory 106 to execute the write extension operation stored in the write extension buffer using modified write parameters. In various examples, memory controller 118 may issue the write extension operation based on at least one of: a number of write cycles that have elapsed since executing a previous write extension operation, a number of write cycles that have elapsed, or a number of writes that have elapsed. In some examples, memory controller 118 may issue the write extension operation based on an observed error rate of the memory.
[0054] At block 612, memory controller 118 and/or memory 106 may determine that executing the write request stored in the write extension buffer has not completed. Responsive to making that determination, memory 106 may maintain or return the write operation (e.g. write operation 102E) to the write extension buffer (e.g. write extension buffer 114).