This application claims priority under 35 U.S.C. §119 to Korean Patent Application No. 10-2009-0029092, filed on Apr. 3, 2009, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety by reference.
Embodiments of the present invention relate to a memory apparatus and a method of updating the firmware of the memory apparatus, and more particularly, to an apparatus and method capable of reducing a firmware update time through selective initialization of context information.
In memory apparatuses (device) including both a non-volatile memory and a volatile memory, like Solid State Drives/Disks (SSDs), when a firmware is loaded on the volatile memory, the firmware existing on the volatile memory needs predetermined information in order to drive the memory apparatus. The predetermined information may be referred to as context information. The context information may be mapping information for managing the non-volatile memory or caching information (or buffering information) that is used due to the different speeds of the volatile and non-volatile memories.
In the conventional art, the entire context information should be initialized to update the firmware.
The present invention provides a memory apparatus and a method capable of minimizing initialization, namely, storage and recovery, of context information being information used to maintain each component of a firmware by comparing the version of an old firmware with the version of a new firmware when the memory apparatus performs firmware updates.
According to some aspects of the present invention, a method of updating firmware that is included in a memory apparatus that includes first and second volatile memories and a non-volatile memory, can be provided by storing new firmware in the second volatile memory when old firmware is loaded into the first volatile memory and determining on a component basis which of a plurality of components of the old firmware is an updated component in the new firmware.
According to some aspects of the present invention, a method of updating firmware included in a memory apparatus that includes a first volatile memory, a second volatile memory, and a non-volatile memory, can be provided by updating firmware located in at least one volatile memory by updating only a part of context information corresponding to the firmware.
According to some aspects of the present invention a memory apparatus can include at least one volatile memory and a non-volatile memory, where the memory apparatus updates firmware located in the at least one volatile memory by updating only a part of context information corresponding to the firmware.
Exemplary embodiments of the present invention will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings in which:
The present invention is described more fully hereinafter with reference to the accompanying drawings, in which embodiments of the invention are shown by way of example. The present invention may, however, be embodied in many different forms and should not be construed as limited to the example embodiments set forth herein. Rather, these example embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the present invention to those skilled in the art.
It will be understood that when an element is referred to as being “connected to,” “coupled to” or “responsive to” (and/or variants thereof) another element, it can be directly connected, coupled or responsive to the other element or intervening elements may be present. In contrast, when an element is referred to as being “directly connected to,” “directly coupled to” or “directly responsive to” (and/or variants thereof) another element, there are no intervening elements present. Like numbers refer to like elements throughout. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items and may be abbreviated as “/”.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, components, regions, layers and/or sections, these elements, components, regions, layers and/or sections should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or section from another region, layer or section. Thus, a first element, component, region, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the teachings of the present invention.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising” (and/or variants thereof), when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. In contrast, the term “consisting of” (and/or variants thereof) when used in this specification, specifies the stated number of features, integers, steps, operations, elements, and/or components, and precludes additional features, integers, steps, operations, elements, and/or components.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present application, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The context information may include mapping information and/or cache information for managing information about NAND flash memory. The mapping information may denote information about mapping between a logical address space and a physical space in which information is actually stored, wherein the information about the mapping is required because of the characteristics of NAND flash memories. Since recent SSDs provide a logical space of several tens to several hundreds of gigabytes, the mapping information itself has a size that reaches several tens of megabytes. Such mapping information is retained on a high-speed memory such as a SRAM and/or a DRAM when the SSD is under operation. However, the mapping information needs to be stored in a NAND flash memory when the SSD is powered off, and needs to be restored when the SSD is powered on.
The cache information may denote information for using a caching (or buffering) technique based on a considerable difference between a speed at which a host accesses the NAND flash memory and a speed at which the host accesses the SRAM or the DRAM. The cache information also needs to be stored in the NAND flash memory. This storing operation is referred to as flush.
The old firmware starts updating when a new firmware received from a host has been stored in a memory such as a DRAM. When the updating starts, the SSD may not normally operate. Accordingly, in applications where the accessibility to a device is important as in a sever environment, how fast the updating is completed to resume a normal operation is an important characteristic of the SSD.
Firmware may be loaded from a specific region of the NAND flash memory to the SRAM when the SSD is powered on. Accordingly, to update the firmware, as illustrated in
In some methods of allowing a new firmware to drive the SSD after the new firmware is stored in the NAND flash memory, a hardware reset is applied so that a hardware boot logic loads the new firmware into the SRAM and performs a system initialization code. This method is illustrated in
Although this method may be very simply implemented, context information retained in the volatile memory such as the SRAM and the DRAM may be lost as illustrated in
Even if the old firmware directly copies the new firmware into a SRAM and performs a system initialization code in order to maintain the context information retained in the volatile memory, it may be difficult to know if the new firmware may use the old information. Thus, as in a case where a hardware reset is used, all of the context information needs to undergo the above-described system initialization process. In other words, after all of the context information are stored in the NAND flash memory, they need to be read therefrom and interpreted to be updated to correspond to the new firmware, and then the updated context information needs to be loaded to the volatile memory.
In contrast with the above-described conventional method, in a method of updating the firmware of a memory apparatus according to an embodiment of the present invention, only context information required to be initialized undergoes an initialization process instead that all of the context information undergo initialization.
To achieve this, the memory apparatus according to an embodiment of the present invention may use version information of a firmware.
For example, each of the old firmware and the new firmware may be formed of 3 components. As described above, the old firmware may be formed of the first component 11, the second component 12, and the third component 13. As illustrated in
In other words, the new firmware may be a result of updating of only the second component of the old firmware. Thus, in the method of updating the firmware of the memory apparatus according to an embodiment of the present invention, only context information corresponding to the second component 12 of the old firmware may undergo the initialization process, and context information corresponding to the first and third components 1 and 3 may be directly used in the new firmware without undergoing the initialization process. Accordingly, only necessary context information is initialized, resulting in reduction of the updating time.
First, an old firmware 10 may be loaded into the first volatile memory 120 (for example, an SRAM) and driven therein. An image of the old firmware 10 may be stored in the non-volatile memory 110 (for example, a NAND flash memory). Then, the second volatile memory 130 (for example, a DRAM) may receive a new firmware 20 from a host (not shown). Each of the old firmware 10 and the new firmware 20 may include 3 components. Then, as illustrated in
Then, the old firmware 10 may check what component of the new firmware 20 has been updated. To achieve this checking, the old firmware 10 may compare version information for its own components with version information for components of the new firmware 20. Thereafter, the old firmware 10 may store update information representing information about updated components or non-updated components in a predetermined location in the first volatile memory 120 as illustrated in
If component 2 is an updated component, only the context information 12-1 and 12-2 corresponding to the component 2 undergo an initialization process, and the other context information 11-1, 13-1, 11-2, and 13-2 are used without changes.
To this end, the old firmware 10 may store the context information 12-1 and 12-2 corresponding to the component 2 in the non-volatile memory 110. Then, the memory apparatus 100 may have a state as illustrated in
Referring to
In order for the components of the new firmware 20 to refer to context information generated by the old firmware 10, a change in the structure of the context information whenever the firmware is updated may not occur. Thus, the structural change of the context information may be managed by the version information of a corresponding component.
Component update information 2 is generated by the old firmware 10, and may include information about components updated by firmware update or information about components non-updated by the firmware update. In addition, a method allowing the new firmware 20 to recognize the location of the context information generated by the old firmware 10 is needed. A simple method allowing the new firmware 20 to recognize the location of the context information is to manage the context information for each component to be always stored in a determined location on a memory by using a link tool. However, this simple method may make the use of a memory area inconvenient and may impose restrictions on a change of the context information. Thus, according to an embodiment of the present invention, only a component context table 3 representing the location of each context information may be placed in a specific location, and the new firmware 20 may access the context information by referring to the component context table 3.
As shown in
On the other hand, if it is determined in operation S20 that the system initialization code is performed based on the restart according to an embodiment of the present invention, the system initialization code reads the component update information 2, in operation S30. In other words, information about updated components may be read out.
Thereafter, the components of the firmware starting from a first component are sequentially considered as a current component in operations S50 and S90, and it is determined whether context information corresponding to the current component needs to be updated through the initialization process by referring to the component update information 2, in operation S60. If the context information corresponding to the current component needs to be updated, the context information may be updated through the initialization process, in operation S70. Information about a location of the updated context information may be recorded in a context table. An operation S80 is repeatedly performed with respect to from the first component to the last component. Thus, the firmware update is concluded.
In a memory apparatus and a firmware updating method performed in the memory apparatus according to the present invention, an operation of storing and recovering context information may be minimized, whereby the firmware updating time may be reduced.
The firmware updating method performed in the memory apparatus according to the present invention can also be embodied as computer readable codes on a computer readable recording medium. The computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, etc. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2009-0029092 | Apr 2009 | KR | national |
Number | Name | Date | Kind |
---|---|---|---|
5414751 | Yamada | May 1995 | A |
5623604 | Russell et al. | Apr 1997 | A |
5701492 | Wadsworth et al. | Dec 1997 | A |
5960445 | Tamori et al. | Sep 1999 | A |
6009497 | Wells et al. | Dec 1999 | A |
6055632 | Deegan et al. | Apr 2000 | A |
6360362 | Fichtner et al. | Mar 2002 | B1 |
7047283 | Kim | May 2006 | B1 |
7200713 | Cabot et al. | Apr 2007 | B2 |
7555750 | Lilley | Jun 2009 | B1 |
7657886 | Chen et al. | Feb 2010 | B1 |
7797696 | Nallagatla et al. | Sep 2010 | B1 |
7953901 | Nishikawa | May 2011 | B2 |
7958502 | Motta et al. | Jun 2011 | B2 |
7984432 | Edlund | Jul 2011 | B2 |
8032740 | Haverkamp et al. | Oct 2011 | B2 |
8332572 | Tzeng | Dec 2012 | B2 |
20020129186 | Emerson et al. | Sep 2002 | A1 |
20020170050 | Fiorella et al. | Nov 2002 | A1 |
20030154471 | Teachman et al. | Aug 2003 | A1 |
20040158828 | Zimmer et al. | Aug 2004 | A1 |
20050102660 | Chen et al. | May 2005 | A1 |
20050160217 | Gonzalez et al. | Jul 2005 | A1 |
20050177023 | Abe | Aug 2005 | A1 |
20050216721 | Zimmer et al. | Sep 2005 | A1 |
20060020936 | Wyatt | Jan 2006 | A1 |
20070169098 | Kikuchi | Jul 2007 | A1 |
20070204144 | Gafken et al. | Aug 2007 | A1 |
20080109798 | Gavens et al. | May 2008 | A1 |
20090007089 | Rothman et al. | Jan 2009 | A1 |
20090249320 | Su et al. | Oct 2009 | A1 |
Number | Date | Country |
---|---|---|
359235 | Mar 1990 | EP |
2007518166 | Jul 2007 | JP |
2007-193596 | Aug 2007 | JP |
2008-077474 | Apr 2008 | JP |
1020070003808 | Jan 2007 | KR |
Number | Date | Country | |
---|---|---|---|
20100257519 A1 | Oct 2010 | US |