Devices that include solid state non-volatile memory units such as for example flash memory units may execute power loss recovery (PLR) tests and procedures when such device is turned on or powered up. PLR procedures may account for and remedy possible corruption to a memory unit that may have resulted from an unplanned, accidental or disorderly loss of power in the device or memory. A PLR may, for example and among other actions, determine whether a solid state non-volatile memory unit such as a flash memory unit was partially modified at the time of a power loss in a device, possibly resulting in corrupted data in the flash memory of such device. PLR procedures may be time consuming to run, and may delay the availability of a device for use after it has been turned on. Furthermore, unanticipated losses of power may be rare, and running a PLR procedure each time a device is turned on may be unnecessary.
Embodiments of the invention will be understood and appreciated more fully from the following detailed description taken in conjunction with the drawings in which:
In the following description, various aspects of the present invention will be described. For purposes of explanation, specific configurations and details are set forth in order to provide a thorough understanding of the present invention. However, it will also be apparent to one skilled in the art that the present invention may be practiced without the specific details presented herein. Furthermore, well-known features may be omitted or simplified in order not to obscure the present invention. Various examples are given throughout this description. These are merely descriptions of specific embodiments of the invention. The scope of the invention is not limited to the examples given.
Unless specifically stated otherwise, as apparent from the following discussions, it is appreciated that throughout the specification, discussions utilizing terms such as “processing,” “computing,” “calculating,” “determining,” or the like, refer to the action and/or processes of a processor, computer or computing system, or similar electronic or hardware computing device, that manipulates and/or transforms data represented as physical, such as electronic quantities within the computing system's registers and/or memories into other data similarly represented as physical quantities within the computing system's memories, registers or other such information storage, transmission or display devices.
The processes and displays presented herein are not inherently related to any particular computer, communication device or other apparatus. The desired structure for a variety of these systems will appear from the description below. In addition, embodiments of the present invention are not described with reference to any particular programming language, machine code, etc. It will be appreciated that a variety of programming languages, machine codes, etc. may be used to implement the teachings of the invention as described herein. Embodiments of the invention may be included on a medium or article such as a hard disc, disc on key or other memory unit having stored thereon machine-accessible instructions that when executed result in or implement an embodiment of the invention.
Reference is made to
Device 10 may include one or more processors such as for example processor 26. Processor 26 may be suitable for example to determine the settings of one or more bits in for example shut down sector 20, or to add or otherwise evaluate or accumulate the values stored in bits of shut down sector 20. For example, processor 26 may determine whether a sum of the values stored in shut down sectors 20 are odd or even.
In operation, an embodiment of the invention may store an indication 21 in a first bit of shut down sector 20 to show that memory unit 12 or for example sub-unit 15 was powered up, opened or otherwise available for a read or write operation. In some embodiments, indication 21 may be stored at the time that device 10 is turned on or powered up. A second bit or other indicator in for example shut down sector 20 may store an indication 22 at or near the end of a power down or shut off procedure of device 10 or of memory unit 12 to indicate that a memory unit 12 or sub-unit 15 was turned off as part of an orderly shut off or power down. In an embodiment of the invention, a processor such as for example processor 26, may evaluate the values stored in one or more shut down sectors 20 to determine whether for example the settings of indications 21 are matched or paired as either even or odd (depending on the convention used) so that ‘ON’ settings of indications 21 are paired with OFF settings of indications 22. In some embodiments, if there is a match of less than all of the indications 21 with indications 22, processor 26 or another processor may for example issue a signal that a PLR program 24 should be run. If the pairs of indications 21 and indications 22 are not matched, the processor may in some embodiments issue a signal that the PLR program 24 may be bypassed by the initialization program 25. Symbology and coding methods other than ON and OFF may be used. In some embodiments more than one or two bits may be used to express an indication 21 or indication 22.
In some embodiments, indication 21 and indication 22 may be one or more bits having various possible values such as for example 0 and 1. Other data storage units or symbols having other values are possible. In some embodiments, the values in indication 21 and indication 22 may be added or otherwise combined to indicate for example whether their sum is even or odd. For example, indication 21 may be set to 0 when a device 10, memory unit 12 or sub-unit 15 is powered up, opened or otherwise available for reading or writing. Indication 22 may be set to 1 when a device 10, memory unit 12 or sub-unit 15 is closed as part of an orderly power down or shut off. When device 10, memory unit 12 or sub-unit 15 are powered up again, processor 26 may sum or otherwise process the values stored as indication 21 and indication 22 to determine for example if the sum of the values is for example odd or even. For example, if such sum is even, processor 26 may order a PLR program 24 to run at the power-up of device 10. A PLR program 24 may not be ordered if such sum is odd. If the convention of indication 21 and indication 22 were set differently, a PLR program 24 may be ordered if the sum were even. Processes other than a determination of odd or even values may be used, and a determination of a need for a PLR program 24 or other recovery processes may be made at times other than a power up.
In some embodiments, the sum of indication 21 and indication 22 may be odd so long device 10 has been powered up and remains in operation as part of for example its regular use. The sum of indication 21 and indication 22 will go to even for example only upon an orderly shut down.
In some embodiments, device 10 may be or include a telephone, cellular phone, personal digital assistant, video appliance, electronic game console, calculator, personal computer, pager or other suitable device that includes a solid state non-volatile memory unit such as for example a flash memory unit. Other devices and other memory units are possible.
In some embodiments, memory unit 12 may be a suitable solid state non-volatile readable and writeable memory that does not rely on a disc drive for its operation, and that can retain its memory content without a power source. Memory unit 12 may include for example traditional floating gate flash memory, polymer based memory, Ovonics memory, chalcogenides, ferroelectric RAM, magnetic RAM and other suitable solid state non-volatile memories that may retain an on/off state without refreshing from a power source. In some embodiments, memory unit 12 may include more than one memory unit, such as for example a chip of flash memory. Memory unit 12 may in some embodiments be divided or sub-divided by designation of an index or otherwise, into sub-units 15, sectors or areas, such as for example sub-units 17 and 19. Other number of memory units 12 or sub units 15 may be used.
One or more of memory units 12 or sub-units 15 of memory unit 12 may include a sector such as for example designated shut down sector 20. In some embodiments, a shut down sector 20 may be located other than on memory unit 12 such as for example on a hard drive or other non-volatile memory. In some embodiments, shut down sector 20 may be any suitable space on memory unit 12 or elsewhere upon which may be stored two or more bits of information. A physical sector of the memory unit 12 may in some embodiments not be designated.
In some embodiments, PLR program 24 may be one or more instructions suitable to isolate, correct or otherwise compensate for corruptions or incomplete changes that may have been made to data stored in a memory unit 12 as a result of an unplanned or disorderly loss of power to a device or memory unit 12. In some embodiments a PLR program 24 may be executed for example when a device 10 is turned on or powered up to isolate, correct or otherwise compensate for possible corrupted data that may have for example been stored on a memory.
In some embodiments, a part of the power up or initialization procedure of device 10 may be to reset indication 22 to indicate that no orderly power down has yet been performed in the current operating session of device 10. If indication 22 was already set to 0 when device 10 was powered on, no such resetting may be necessary, and such setting may indicate that the prior power-down or shut off was accidental or not orderly.
In some embodiments, a part of the shut down program 27 for device 10 may be to set indication 22 to for example 1 to indicate that the shut down was completed in an orderly and planned fashion, and not as a result of a power loss. For example, the shut down program 27 may check that open data files on memory unit 12 have been closed and that there are no pending operations on such files. In some embodiments indication 22 may be set at the end of or in one of the last phases of the shut down procedure, such as immediately before device 10 is actually powered down.
Reference is made to
In block 202, an indication of an orderly shut down of a device or of for example a solid state non-volatile memory unit in a device may be stored upon an orderly shut off or power down of a device or of a solid state non-volatile memory unit such as for example a flash memory unit in such device. In some embodiments, such indication may be stored in a bit, and such bit may be included in a designated sector of a memory unit that may be accessed by for example a processor as part of a power up and power down of a device. In some embodiments such bit may be set to 1. Other number of bits and other values or settings may be used.
In block 204, when a device or for example a solid state non-volatile memory unit such as for example a flash memory unit is powered up or turned on, the first indication and the second indication may be evaluated to determine whether to conduct a PLR procedure. In some embodiments, such evaluation may be or include summing the first bit and the second bit to determine whether the sum is odd or even. In some embodiments, the second bit may be re-set after the evaluation is made. In some embodiments, such resetting process may include adding an additional bit or set of bits to for example a shut down sector, and setting one of such bits to bring a sum of values in the sector to a starting point such as odd or even to indicate that the device was powered up. In some embodiments such determination may be made by determining whether the first indication is present and the second indication is absent. In some embodiments such determination may be performed on one or more bits or indicators in one or more solid state non-volatile memory units such as for example flash memory units of for example a device or operably connected to a device.
Reference is made to
Returning to block 302, if the sum of the bits in the shut down sector is odd, the method may continue to block 308, where a determination may be made by for example a processor that the previous shut down was clean, orderly or not as a result of a power loss. The method may then continue to block 310 where a signal may be transmitted by for example a processor to add another bit or set of bits to for example a shut down sector to restore the sum of the values in such sector to for example even. The method may then proceed to block 312 where the initialization process of the device or the memory unit may be completed without running a PLR process. The method may then proceed to block 314 where the operation of the device or the memory unit proceeds with normal functioning.
Other methods or parts of methods are possible.
It will be appreciated by persons skilled in the art that embodiments of the invention are not limited by what has been particularly shown and described hereinabove. Rather the scope of at least one embodiment of the invention is defined by the claims below.
Number | Name | Date | Kind |
---|---|---|---|
6170066 | See | Jan 2001 | B1 |
7181672 | Atri et al. | Feb 2007 | B2 |
20050108491 | Wong et al. | May 2005 | A1 |
20060002197 | Rudelic | Jan 2006 | A1 |
20060059385 | Atri et al. | Mar 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20060146633 A1 | Jul 2006 | US |