A solid state memory in an electronic device may have a limited amount of write erase cycles available. Conventionally, when the solid state memory reached a certain number of write erase cycles, the solid state memory may be set to a read only mode. However, in the read only mode, the electronic device may not be able to boot up because it may need to write to the solid state memory.
If the electronic device cannot be booted up, it may be difficult to access the data in the solid state memory. This can not only necessitate the replacement of the solid state memory, but also a cumbersome process to retrieve the data stored in the solid state memory by utilizing a replacement memory. However, inability to utilize the replacement memory may result in data loss in the solid state memory.
The features and advantages of the present embodiments will become more apparent from the detailed description set forth below when taken in conjunction with the drawings, wherein:
In an embodiment, an electronic device 100 is shown in
In an embodiment, the data storage device 104 is shown in
While the description herein refers to solid state memory generally, it is understood that solid state memory may comprise one or more of various types of solid state non-volatile memory devices such as flash integrated circuits, Chalcogenide RAM (C-RAM), Phase Change Memory (PC-RAM or PRAM), Programmable Metallization Cell RAM (PMC-RAM or PMCm), Ovonic Unified Memory (OUM), Resistance RAM (RRAM), NAND memory (e.g., single-level cell (SLC) memory, multi-level cell (MLC) memory, or any combination thereof), NOR memory, EEPROM, Ferroelectric Memory (FeRAM), Magnetoresistive RAM (MRAM), other discrete NVM (non-volatile memory) chips, or any combination thereof.
Referring to
After the host 102 has written the boot data onto the solid state memory 110, the controller 108 can determine the logical block addresses (“LBAs”) corresponding to the boot data. Thus, the controller 108 can maintain knowledge of which LBAs are being utilized for the boot data.
In an embodiment, the controller 108 can also determine a number of write erase cycles for the solid state memory 110. The number of write erase cycles can be utilized to determine when the solid state memory 110 has reached an end-of-life condition. For example, the solid state memory 110 may wear out after a certain number of write erase cycles. Thus, when the number of write erase cycles is within a predetermined number of write erase cycles from an end-of-life number of write erase cycle, the controller 108 can determine that the solid state memory 110 has reached an end-of-life condition.
The end-of-life condition for the solid state memory 110 does not mean that the solid state memory 110 could not be functional or semi-functional as a data storage device. Instead, the solid state memory 110 is approaching a number of write erase cycles where the reliability of the solid state memory 110 may not meet certain performance standards, such as performance standards set by the manufacturer.
For example, as seen in
In an embodiment, prior to reaching the end-of-life condition 116, the controller 108 sets the solid state memory 110 into a normal mode. That is, the solid state memory 110 can boot up normally and operate normally, including reading and writing data to the solid state memory 110 during and after the boot process. When the end-of-life condition 116 is reached, the controller 108 can set the solid state memory 110 into a boot write read only mode.
During the boot write read only mode, the controller 108 can restrict the host 102 to write to the LBAs corresponding to the boot data during the boot process. Furthermore, during the boot write read only mode, the controller 108 can set the solid state memory 110 into a read only mode when the boot process is complete. That is, during the boot process, the solid state memory 110 can write data, but after the boot process is complete, the solid state memory 110 will no longer be able to write data. However, during the boot process and after the boot process is complete, the solid state memory 110 will be able to read data.
Thus, the data storage device 104 can boot up, since the host 102 can write the boot data onto the LBAs corresponding to the boot data in the solid state memory 110 during the boot process. However, after the boot process is completed, data integrity for the data stored in the solid state memory 110 is maintained since data may not be written onto the solid state memory 110. In an embodiment, this allows a user to back up or transfer the data stored in the solid state memory 110 to another location in light of an impending end of life of the solid state memory 110. For example, the user can transfer the data to the magnetic rotating disk 112 or another data storage device. This can, for example, prevent or reduce the likelihood that the user will lose some or all data stored within the solid state memory 110.
Otherwise, the host 102 may not complete the boot process and enter a normal operation mode if the host 102 is unable to write the boot data to the solid state memory 110 during the boot process, such as with a strictly read only mode. In such a case, the user may have to remove the data storage device 104 and attempt to recover data on the solid state memory 110 by accessing it via another electronic device, or with another data storage device which completes the boot process in the same electronic device 100.
When the end-of-life number of write erase cycles 118 is reached, the controller 108 sets the solid state memory 110 into a read only mode. That is, when the number of write erase cycles is equal to or greater than the end-of-life number of write erase cycles for the solid state memory 110, the controller 108 sets the solid state memory 110 into the read only mode. In such a case, the solid state memory 110 will only be allowed to read data during and after the boot process. The writing of data to the solid state memory 110 will not be permitted.
In an embodiment, the end-of-life condition can be related or based on the spare block count for the solid state memory 110 instead of the write erase cycles shown in
In an embodiment, spare blocks can be reserved in the solid state memory 110, and are not ordinarily accessible by the host 102. Instead, when there are defective blocks in the solid state memory 110, the spare blocks can be utilized to replace the defective blocks. In such a case, a spare block that is utilized to replace a defective block will be accessible by the host 102. In an embodiment, the spare block count can indicate the number of spare blocks available.
In an embodiment, a process for operating the data storage device 104 is shown in
In block S406, the controller 108 restricts the host to write to the LBAs corresponding to the boot data during the boot process. In an embodiment, the controller 108 can also limit the host 102 to a predetermined number of writes. In an embodiment, the predetermined number of writes is a preset number of writes. In an embodiment, the predetermined number of writes is learned by the controller 108 by observing a number of writes performed by the host during the boot process. This can, for example, reduce the number of write erase cycles to the solid state memory 110 or portions of the solid state memory 110. In block S408, the controller 108 sets the solid state memory 110 into a read only mode when the boot process is complete.
In an embodiment, additional or optional blocks for a process for operating the data storage device 104 are shown in
The controller 108 can thus limit the number of writes to the reserved area 124. For example, the controller 108 can prevent other data aside from the boot data from being written to the reserved area 124. This can, for example, prolong a life of the reserved area 124 since the number of write erase cycles will be reduced. In turn, this can prolong a life of the solid state memory 110 since the boot data can be written during the boot process. This allows the solid state memory 110 to be boot up to allow access to data stored in the solid state memory 110.
In an embodiment, additional or optional blocks for a process for operating the data storage device 104 are shown in
In an embodiment, a host processor can perform, for example, one or more of the functions disclosed above for the host 102. For example, the host processor can be configured to write boot data during a boot process. In an embodiment, the host 102 comprises the host processor. However, in an embodiment, the electronic device 100 can comprise a host processor instead of or in addition to the host 102.
Those of ordinary skill would appreciate that the various illustrative logical blocks, modules, and algorithm parts described in connection with the examples disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. Furthermore, the embodiments can also be embodied on a non-transitory machine readable medium causing a processor or computer to perform or execute certain functions.
To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and process parts have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed apparatus and methods.
The parts of a method or algorithm described in connection with the examples disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The parts of the method or algorithm may also be performed in an alternate order from those provided in the examples. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, an optical disk, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC).
The previous description of the disclosed examples is provided to enable any person of ordinary skill in the art to make or use the disclosed methods and apparatus. Various modifications to these examples will be readily apparent to those skilled in the art, and the principles defined herein may be applied to other examples without departing from the spirit or scope of the disclosed method and apparatus. The described embodiments are to be considered in all respects only as illustrative and not restrictive and the scope of the disclosure is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.
This application claims the benefit of U.S. Provisional Application No. 61/969,635, filed on Mar. 24, 2014, entitled “RESTRICTING WRITES TO SOLID STATE DRIVES WHEN NEAR END OF LIFE CONDITION IS DETECTED,” which is hereby incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
6856556 | Hajeck | Feb 2005 | B1 |
7126857 | Hajeck | Oct 2006 | B2 |
7356442 | Astigarraga et al. | Apr 2008 | B1 |
7430136 | Merry, Jr. et al. | Sep 2008 | B2 |
7447807 | Merry et al. | Nov 2008 | B1 |
7502256 | Merry, Jr. et al. | Mar 2009 | B2 |
7509441 | Merry et al. | Mar 2009 | B1 |
7590666 | Korman et al. | Sep 2009 | B2 |
7596643 | Merry, Jr. et al. | Sep 2009 | B2 |
7653778 | Merry, Jr. et al. | Jan 2010 | B2 |
7685337 | Merry, Jr. et al. | Mar 2010 | B2 |
7685338 | Merry, Jr. et al. | Mar 2010 | B2 |
7685374 | Diggs et al. | Mar 2010 | B2 |
7733712 | Walston et al. | Jun 2010 | B1 |
7765373 | Merry et al. | Jul 2010 | B1 |
7898855 | Merry, Jr. et al. | Mar 2011 | B2 |
7912991 | Merry et al. | Mar 2011 | B1 |
7936603 | Merry, Jr. et al. | May 2011 | B2 |
7962792 | Diggs et al. | Jun 2011 | B2 |
8078918 | Diggs et al. | Dec 2011 | B2 |
8090899 | Syu | Jan 2012 | B1 |
8095851 | Diggs et al. | Jan 2012 | B2 |
8108179 | Astigarraga et al. | Jan 2012 | B2 |
8108180 | Astigarraga et al. | Jan 2012 | B2 |
8108692 | Merry et al. | Jan 2012 | B1 |
8122185 | Merry, Jr. et al. | Feb 2012 | B2 |
8127048 | Merry et al. | Feb 2012 | B1 |
8135903 | Kan | Mar 2012 | B1 |
8151020 | Merry, Jr. et al. | Apr 2012 | B2 |
8161227 | Diggs et al. | Apr 2012 | B1 |
8166245 | Diggs et al. | Apr 2012 | B2 |
8243525 | Kan | Aug 2012 | B1 |
8254172 | Kan | Aug 2012 | B1 |
8261012 | Kan | Sep 2012 | B2 |
8296625 | Diggs et al. | Oct 2012 | B2 |
8312207 | Merry, Jr. et al. | Nov 2012 | B2 |
8316176 | Phan et al. | Nov 2012 | B1 |
8327066 | Heo et al. | Dec 2012 | B2 |
8341339 | Boyle et al. | Dec 2012 | B1 |
8375151 | Kan | Feb 2013 | B1 |
8392635 | Booth et al. | Mar 2013 | B2 |
8397107 | Syu et al. | Mar 2013 | B1 |
8407449 | Colon et al. | Mar 2013 | B1 |
8423722 | Deforest et al. | Apr 2013 | B1 |
8433858 | Diggs et al. | Apr 2013 | B1 |
8443167 | Fallone et al. | May 2013 | B1 |
8447920 | Syu | May 2013 | B1 |
8458435 | Rainey, III et al. | Jun 2013 | B1 |
8478930 | Syu | Jul 2013 | B1 |
8489854 | Colon et al. | Jul 2013 | B1 |
8489942 | Wong et al. | Jul 2013 | B1 |
8503237 | Horn | Aug 2013 | B1 |
8521972 | Boyle et al. | Aug 2013 | B1 |
8549236 | Diggs et al. | Oct 2013 | B2 |
8583835 | Kan | Nov 2013 | B1 |
8601311 | Horn | Dec 2013 | B2 |
8601313 | Horn | Dec 2013 | B1 |
8612669 | Syu et al. | Dec 2013 | B1 |
8612804 | Kang et al. | Dec 2013 | B1 |
8615681 | Horn | Dec 2013 | B2 |
8638602 | Horn | Jan 2014 | B1 |
8639863 | Kanapathippillai et al. | Jan 2014 | B1 |
8639872 | Boyle et al. | Jan 2014 | B1 |
8683113 | Abasto et al. | Mar 2014 | B2 |
8700834 | Horn et al. | Apr 2014 | B2 |
8700950 | Syu | Apr 2014 | B1 |
8700951 | Call et al. | Apr 2014 | B1 |
8706985 | Boyle et al. | Apr 2014 | B1 |
8707104 | Jean | Apr 2014 | B1 |
8713066 | Lo et al. | Apr 2014 | B1 |
8713357 | Jean et al. | Apr 2014 | B1 |
8719531 | Strange et al. | May 2014 | B2 |
8724422 | Agness et al. | May 2014 | B1 |
8725931 | Kang | May 2014 | B1 |
8745277 | Kan | Jun 2014 | B2 |
8751728 | Syu et al. | Jun 2014 | B1 |
8769190 | Syu et al. | Jul 2014 | B1 |
8769232 | Suryabudi et al. | Jul 2014 | B2 |
8775720 | Meyer et al. | Jul 2014 | B1 |
8782327 | Kang et al. | Jul 2014 | B1 |
8788778 | Boyle | Jul 2014 | B1 |
8788779 | Horn | Jul 2014 | B1 |
8788880 | Gosla et al. | Jul 2014 | B1 |
8793429 | Call et al. | Jul 2014 | B1 |
20050044454 | Moshayedi | Feb 2005 | A1 |
20070204128 | Lee et al. | Aug 2007 | A1 |
20080130156 | Chu et al. | Jun 2008 | A1 |
20080177938 | Yu | Jul 2008 | A1 |
20100174849 | Walston et al. | Jul 2010 | A1 |
20100250793 | Syu | Sep 2010 | A1 |
20110099323 | Syu | Apr 2011 | A1 |
20110283049 | Kang et al. | Nov 2011 | A1 |
20120179865 | Kudo et al. | Jul 2012 | A1 |
20120260020 | Suryabudi et al. | Oct 2012 | A1 |
20120278531 | Horn | Nov 2012 | A1 |
20120284460 | Guda | Nov 2012 | A1 |
20120324191 | Strange et al. | Dec 2012 | A1 |
20130132638 | Horn et al. | May 2013 | A1 |
20130145106 | Kan | Jun 2013 | A1 |
20130290793 | Booth et al. | Oct 2013 | A1 |
20140040681 | Wolfman et al. | Feb 2014 | A1 |
20140059405 | Syu et al. | Feb 2014 | A1 |
20140101369 | Tomlin et al. | Apr 2014 | A1 |
20140115427 | Lu | Apr 2014 | A1 |
20140133220 | Danilak et al. | May 2014 | A1 |
20140136753 | Tomlin et al. | May 2014 | A1 |
20140149826 | Lu et al. | May 2014 | A1 |
20140157078 | Danilak et al. | Jun 2014 | A1 |
20140181432 | Horn | Jun 2014 | A1 |
20140223255 | Lu et al. | Aug 2014 | A1 |
Entry |
---|
International Search Report and Written Opinion dated May 26, 2015 from related PCT Serial No. PCT/US2015/021817, 16 pages. |
Number | Date | Country | |
---|---|---|---|
20150268873 A1 | Sep 2015 | US |
Number | Date | Country | |
---|---|---|---|
61969635 | Mar 2014 | US |