1. Field of the Invention
The present invention is related to processing systems and processors, and more specifically to techniques for handling queuing of requests to memory devices that reduce the impact of high-latency memory operations such as refresh.
2. Description of Related Art
Present day memory controllers include substantial queuing mechanisms that facilitate forward queuing of memory requests. A command queue is used to store incoming requests, which are then processed and placed in a re-order queue, that permits issuing of memory operations that can be processed with overlap, such as accesses to different devices, or sub-arrays that can be accessed independently. By re-ordering operations, the memory bandwidth can be substantially improved over that of memories in which operations must be performed sequentially.
Memory controllers, in addition to providing access to the memory devices and using queues to improve throughput, must also queue accesses while portions of the memory are unavailable for access. Dynamic random-access memories (DRAMS) typically require substantial internally-timed or externally-timed refresh intervals, and memories in general such as static random-access memories (SRAMS) and DRAMS have other housekeeping logic that performs non-memory access housekeeping operations such as bus calibration operations, making some memory regions inaccessible for significant periods during which memory accesses must be queued.
It would therefore be desirable to provide a memory controller and a method of managaing memory operations that improve performance of memory accesses, in particular when high-latency housekeeping operations such as DRAM refresh or bus calibration must be performed.
The invention is embodied in a memory controller, computer system, and method that provide access to memory devices by a processor using a memory controller. The method is a method of operation of the memory controller.
The memory controller includes a memory operation queue in which memory access operations are buffered as they are received and a re-order queue in which operations are queued according to rules that help determine an order in which the memory operations can be completed without conflicts with other accesses or housekeeping operations such as bus calibration or DRAM refresh operations. The memory operation queue may represent the lowest level queuing structure in a cascade of queuing structures interposed between the processor cores and the memory interfaces. Control logic that manages transfer of memory operations to the re-order queue first determines whether the re-order queue has an entry available, and then determines whether the memory access up next for transfer to the re-order queue will conflict with a high-latency housekeeping operation. If a conflict will occur, the control logic holds off on transferring the memory access operation at the head of the memory operation queue and moves to the next oldest entry in the memory operation queue to find a candidate for transfer to the re-order queue. As an alternative to holding off the colliding requests out-right, a threshold number of such requests can be accepted in the re-order queue before the control logic begins to hold off queuing requests that collide with the high-latency housekeeping operations.
The foregoing and other objectives, features, and advantages of the invention will be apparent from the following, more particular, description of the preferred embodiment of the invention, as illustrated in the accompanying drawings.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives, and advantages thereof, will best be understood by reference to the following detailed description of the invention when read in conjunction with the accompanying Figures, wherein like reference numerals indicate like components, and:
The present invention relates to memory controllers and other circuits and computer systems in which received memory accesses are buffered in a memory access queue and then transferred to a re-order queue, from which the memory access operations are issued out-of-order, improving memory access throughput. In order to reduce the impact of high-latency memory operations, which are generally housekeeping operations such as DRAM refresh and bus calibration events, which can take place in any type of memory in which environmental factors such as temperature and/or power supply voltage are taken into account by adjusting operating characteristics of the memory devices, by changing compensation for bus skew and delay, or by physically affecting the skew/delay. The present invention provides a mechanism for preventing the re-order queue, which is generally smaller than one or more memory access queues (buffers) that store memory access operations as they arrive at the memory controller's bus interface, from being filled with memory access operations that cannot be performed due to high latency memory operations that are underway.
Referring now to
Referring now to
Referring now to
A memory refresh and calibration control block 40 are depicted as located within memory controller 25 to initiate refresh operations and bus calibration operations within memory resource A 37A and memory resource B 37B. In accordance with an embodiment of the present invention, queue control 30 generates a control signal new_request after queue control 38 de-asserts control signal queue2_full, indicating that an entry is available in re-order queue 36 and if general purpose queue 34 contains an entry for which transfer should not be rejected due to a high-latency housekeeping operation taking place in one of memory resource A 37A and memory resource B 37B that would collide with the memory address(es) associated with the entry.
Queue control 38 provides control signals block_A and block_B that indicate that a high-latency operation is taking place in memory resource A 37A and memory resource B 37B, respectively. Queue control 30 uses control signals block_A and block_B to qualify whether or not to transfer a memory access operation to re-order queue 36 by asserting control signal new_request and providing the memory access operation over a bus connecting general purpose queue 34 to re-order queue 36. Alternatively, queue control 30 can issue the transfer, and queue control 38 can reject the transfer by responding with a retry indication, which provides an implementation in which, for example, general purpose queue 34 can be located within a first device such as a processor and re-order queue 36 can be located within a second device such as a memory device, which may be embodied in a configuration such as that depicted in
Queue control 30 will assert control signal new_request only if control signal queue2_full is not asserted, and if an entry is available in general purpose queue 34 having a memory access operation address that does not collide with an address indicated by one of control signals block_A and block_B. Queue control 30 can rotate through entries in general purpose queue 34, holding entries for which collisions are present, while transferring other operations that do not collide with high-latency memory operations to re-order queue 36. Queue control 38 generates control signals block_A and block_B, when memory refresh and calibration control 40 has issued a high-latency housekeeping operation, such as a row refresh operation, that implicates ranks/sub-arrays within, or the entirety of, memory resource A 37A and memory resource B 37B Timing information may be used by queue control 38 to de-assert control signals block_A and block_B in advance of the high-latency operation being completed, so that re-order queue 36 can start processing the operations that were previously held off due to anticipated collision with the high-latency operation. Alternatively, or in combination, timing information may also be used by queue control 38 to start holding off memory access operations in advance of the high-latency operation actually commencing, in order to attempt to avoid having any colliding entries within re-order queue 36. In accordance with yet another embodiment of the invention, queue control 38 can also maintain a count of memory access operations within re-order queue that collide with a high-latency operation underway, determine whether the count is greater than a threshold to determine whether to accept any other colliding memory access operations, thus permitting only a predetermined number of memory access operations that collide with the high-latency operation to be present in re-order queue 36.
Referring now to
While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that the foregoing and other changes in form, and details may be made therein without departing from the spirit and scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
5557769 | Bailey et al. | Sep 1996 | A |
5568620 | Sarangdhar et al. | Oct 1996 | A |
6298413 | Christenson | Oct 2001 | B1 |
6370073 | Leung | Apr 2002 | B2 |
6385708 | Stracovsky et al. | May 2002 | B1 |
6587918 | Christenson | Jul 2003 | B1 |
7043599 | Ware et al. | May 2006 | B1 |
7047374 | Sah et al. | May 2006 | B2 |
7076587 | Routliffe et al. | Jul 2006 | B2 |
7277982 | Calvignac et al. | Oct 2007 | B2 |
7558270 | Wilford et al. | Jul 2009 | B1 |
7724589 | Rajan et al. | May 2010 | B2 |
7724602 | Hur et al. | May 2010 | B2 |
7739461 | Hur et al. | Jun 2010 | B2 |
7934070 | Brittain et al. | Apr 2011 | B2 |
20020194444 | Goodrich, II et al. | Dec 2002 | A1 |
20090063773 | Rajwar et al. | Mar 2009 | A1 |
20090216959 | Allison et al. | Aug 2009 | A1 |
20090327623 | Ochiai | Dec 2009 | A1 |
20110099341 | Resnick | Apr 2011 | A1 |
20110179240 | Sukonik | Jul 2011 | A1 |
20110238941 | Xu et al. | Sep 2011 | A1 |
Number | Date | Country |
---|---|---|
06036558 | Feb 1994 | JP |
Entry |
---|
Phadke et al., “MLP Aware heterogeneous Memory System,” Design, Automation & Test in Europe Conference & Exhibition Mar. 14-18, 2011. |
Number | Date | Country | |
---|---|---|---|
20130117513 A1 | May 2013 | US |