STORAGE CONTROL DEVICE HAVING CONTROLLER OPERATED ACCORDING TO DETECTION SIGNAL DERIVED FROM MONITORING POWER SIGNAL AND RELATED METHOD THEREOF
One exemplary storage control device for a storage medium includes a controller and a voltage detector, where the controller controls data access of the storage medium, and the voltage detector monitors a power signal and asserts a detection signal to notify the controller when anomaly of the power signal is detected. Another exemplary storage control device for a storage medium includes a voltage detector and a controller, where the voltage detector monitors a power signal to generate a detection signal, and the controller controls data access of the storage medium. In addition, the controller enters a first operational state when the detection signal indicates that a voltage level of the power signal falls within a first voltage range, and enters a second operational state when the detection signal indicates that the voltage level of the power signal falls within a second voltage range.
This application claims the benefit of U.S. Provisional Application No. 61/221,569, filed on Jun. 30, 2009 and included herein by reference.
BACKGROUNDThe present invention is related to accessing a storage medium, and more particularly, to a storage control device having a controller operated according to a detection signal derived from monitoring a power signal and related method thereof.
In general, the supply power of a storage subsystem is provided by a host which also issues read and write requests to the storage subsystem for reading data from and writing data into the storage subsystem. A power signal derived from the externally supplied power is inputted to internal power elements of the storage subsystem. Therefore, anomaly of the power signal might severely damage the data storage of the storage subsystem.
Taking one storage subsystem which uses a non-volatile memory (e.g., a flash memory) as a storage medium for example, a table, such as a flash translation layer (FTL) table, used to translate logical addresses of the host into physical addresses of the non-volatile memory is usually temporarily saved in a volatile memory (e.g., a dynamic random access memory) of the storage subsystem due to performance consideration. However, anomaly of the power signal used by the storage subsystem might damage the integrality of the table stored in the volatile memory, leading to loss of user data.
Taking another storage subsystem which uses an optical disc as a storage medium for example, the recording (encoding) and reading (decoding) qualities of the storage subsystem are deeply dominated by the power stability. Therefore, anomaly of the power signal used by the storage subsystem (e.g., an optical disc drive) might severely degrade the data access performance. In addition, the anomaly of the power signal might even damage the optical disc when the storage subsystem is operating under a write mode for emitting a laser beam with an unstable write power upon the optical disc.
SUMMARYIn accordance with embodiments of the present invention, a storage control device having a controller operated according to a detection signal derived from monitoring a power signal and related method thereof are proposed to solve the problems mentioned above.
According to a first aspect of the present invention, an exemplary storage control device for a storage medium is disclosed. The exemplary storage control device includes: a controller, for controlling data access of the storage medium; and a voltage detector, coupled to the controller, for monitoring a power signal and for asserting a detection signal to notify the controller when anomaly of the power signal is detected.
According to a second aspect of the present invention, an exemplary storage control device for a storage medium is disclosed. The exemplary storage control device includes: a voltage detector, for monitoring a power signal to generate a detection signal; and a controller, coupled to the voltage detector, for controlling data access of the storage medium, where the controller enters a first operational state when the detection signal indicates that a voltage level of the power signal falls within a first voltage range, and the controller enters a second operational state different from the first operational state when the detection signal indicates that the voltage level of the power signal falls within a second voltage range different from the first voltage range.
According to a third aspect of the present invention, an exemplary method applied to a controller utilized for controlling data access of a storage medium is disclosed. The exemplary method includes: monitoring a power signal to detect anomaly therein; and notifying the controller when the anomaly of the power signal is detected.
According to a fourth aspect of the present invention, an exemplary method applied to a controller utilized for controlling data access of a storage medium is disclosed. The exemplary method includes: monitoring a power signal; when a voltage level of the power signal falls within a first voltage range, operating the controller under a first operational state; and when the voltage level of the power signal falls within a second voltage range different from the first voltage range, operating the controller under a second operational state different from the first operational state.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should be interpreted to mean “include, but not limited to . . . ”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
The conception of the present invention is to monitor a power signal to detect anomaly therein and to inform a controller of a storage subsystem when anomaly of the power signal is detected. In this way, the controller of the storage subsystem is capable of taking appropriate action upon receiving the power anomaly notification. For clarity, several exemplary embodiments are given as follows.
The voltage detector 110 is coupled to the controller 108, and devised for monitoring a power status of the storage subsystem 100. In this exemplary embodiment, the voltage detector 110 identifies the instant power status of the storage subsystem 100 by monitoring the power signal Pin generated from the regulator 106 (i.e., a power signal received by the controller 108). The voltage detector 110 will output a detection signal SD to notify the controller 108 when anomaly of the power signal Pin is detected and will not output the detection signal SD when anomaly of the power signal Pin is not detected.
The voltage generator 204 is used to provide a supply-independent reference voltage VREF to the comparator 206. The comparator 206 compares the monitored voltage VM with the reference voltage VREF to assert/deassert the detection signal SD. For example, when the monitored voltage VM is found lower than the reference voltage VREF, implying that the voltage level Vin is lower than a predetermined threshold VTH (not shown), the comparator 206 generates a logic-high output to thereby assert the detection signal SD. However, when the monitored voltage VM is found higher than the reference voltage VREF, implying that the voltage level Vin is higher than the predetermined threshold VTH, the comparator 206 generates a logic-low output to thereby deassert the detection signal SD. In this way, the detection signal SD can be used to indicate whether the voltage level Vin of the power signal Pin is within a first voltage range (e.g., VTH<Vin≦VR, where VR represents a regular voltage level of the power signal Pin) or a second voltage range (e.g., 0<Vin<VTH).
In above example, the occurrence of power anomaly is detected by the voltage detector 110 when the voltage level Vin of the power signal Pin is found lower than the predetermined threshold VTH. However, in an alternative design of the voltage detector 110, the occurrence of power anomaly is detected when the voltage level Vin of the power signal Pin is found greater than the predetermined threshold VTH. This also obeys the spirit of the present invention.
The controller 108 refers to the detection signal SD for switching its operational state to a normal state or an anomaly-power state.
In this embodiment, in order to avoid the loss of data stored in the storage subsystem 100 due to power anomaly, the controller 108 further takes predetermined action in response to the detection signal SD asserted by the voltage detector 110. For example, the second storage medium 112 acting as a buffer may be implemented by a volatile storage medium. Therefore, system information (e.g., a table TB utilized for translating logical addresses of the host 116 to physical addresses of the first storage medium 104) and user data DATA_U (e.g., data waiting to be recorded into the first storage medium 104 or readout data waiting to be delivered to the host 116) will be buffered in the second storage medium 112 for achieving better performance. In a case where the first storage medium 104 is a flash memory, the table TB is an FTL table of the flash memory. The predetermined action taken by the controller 108 may include recording a backup of the data stored in the second storage medium 112 into the first storage medium 104 and/or rejecting requests, such as read requests or write requests, issued by the host 116 for accessing the first storage medium 104. The backup of the data stored into the second storage medium 112 may include the table TB and/or the user data DATA_U.
In addition, provided that the first storage medium 104 contains at least a first storage region SR_1 and a second storage region SR_2 with different inherent access speeds, the backup of the data stored in the second storage medium 112 will be stored into one storage region with faster access speed, say, the first storage region SR_1. By way of example, but not limitation, the first storage medium 104 may be implemented by a flash memory having a first page group and a second page group within the same block, where the program time of each page included in the first page group is shorter than that of each page included in the second page group. Therefore, the backup of the data stored in the second storage medium 112 will be stored into page(s) selected from the first page group.
As shown in
As mentioned above, the voltage detector 110 is capable of monitoring a power status of a storage subsystem, and informs the controller 508 of the instant power status of the storage subsystem. In this exemplary embodiment, the voltage detector 110 monitors the power signal Pin generated from the regulator 106 (i.e., the power signal Pin received by the controller 508). Similarly, the voltage detector 110 will assert the detection signal SD to notify the controller 508 when anomaly of the power signal Pin is detected. As details of the voltage detector 110 have been described in above paragraphs, further description is omitted here for brevity.
Similar to the controller 108 shown in
As shown in
It should be noted that the storage medium 104 may be a magnetic storage medium such as a hard disk, and the access mechanism 506 may contain elements required to access the magnetic storage medium. Such an application also falls within the scope of the present invention.
Step 700: Start.
Step 702: The controller enters a first operational state (e.g., a normal state) to control data access of a storage medium (e.g., a non-volatile storage medium).
Step 704: The voltage detector monitors a power signal to detect anomaly therein and generates a detection signal accordingly, where the detection signal is asserted when the anomaly of the power signal is detected, and deasserted when the anomaly of the power signal is not detected.
Step 706: The controller receives the detection signal, and checks the logic level of the detection signal. If the detection signal is asserted to indicate the occurrence of power anomaly, the flow goes to step 708; if the detection signal is deasserted to indicate that no power anomaly occurs, the flow proceeds with step 702.
Step 708: The controller enters a second operational state (e.g., an anomaly-power state) to take predetermined action. The flow goes to step 706.
As a person skilled in the art can readily understand details of each step in
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Claims
1. A storage control device for a first storage medium, comprising:
- a controller, for controlling data access of the first storage medium; and
- a voltage detector, coupled to the controller, for monitoring a power signal and for asserting a detection signal to notify the controller when anomaly of the power signal is detected.
2. The storage control device of claim 1, wherein the controller further takes predetermined action in response to the anomaly of the power signal when notified by the detection signal.
3. The storage control device of claim 2, wherein the storage control device further comprises:
- a second storage medium, coupled to the controller, for storing data accessible to the controller;
- wherein the predetermined action includes recording a backup of the data stored in the second storage medium into the first storage medium.
4. The storage control device of claim 3, wherein the backup of the data stored in the second storage medium includes a table utilized for translating logical addresses of a host into physical addresses of the first storage medium.
5. The storage control device of claim 3, wherein the backup of the data stored in the second storage medium includes user data.
6. The storage control device of claim 3, wherein the first storage medium comprises a first storage region and a second storage region, where an inherent access speed of the first storage region is faster than an inherent access speed of the second storage region; and the backup of the data stored in the second storage medium is stored into the first storage region.
7. The storage control device of claim 2, wherein the predetermined action includes lowering a processing speed of requests for accessing the first storage medium.
8. The storage control device of claim 2, wherein the predetermined action includes suspending a current data access of the first storage medium.
9. The storage control device of claim 2, wherein the controller communicates with a host via a host interface, and the predetermined action includes rejecting requests issued by the host for accessing the first storage medium.
10. The storage system of claim 1, wherein after asserting the detection signal, the voltage detector further deasserts the detection signal when the anomaly of the power signal is not detected.
11. The storage control device of claim 1, wherein when a voltage level of the monitored power signal is lower than a predetermined threshold, the voltage detector determines that the anomaly of the power signal is detected.
12. The storage control device of claim 1, wherein the controller and the voltage detector are integrated in a controller chip.
13. The storage control device of claim 1, wherein the first storage medium is a non-volatile storage medium.
14. The storage control device of claim 13, wherein the non-volatile storage medium is a non-volatile memory or an optical storage medium.
15. A storage control device for a first storage medium, comprising:
- a voltage detector, for monitoring a power signal to generate a detection signal; and
- a controller, coupled to the voltage detector, for controlling data access of the first storage medium, wherein the controller enters a first operational state when the detection signal indicates that a voltage level of the power signal falls within a first voltage range, and the controller enters a second operational state different from the first operational state when the detection signal indicates that the voltage level of the power signal falls within a second voltage range different from the first voltage range.
16. The storage control device of claim 15, wherein the storage control device further comprises:
- a second storage medium, coupled to the controller, for storing data accessible to the controller;
- wherein when the controller operates under the second operational state, the controller records a backup of the data stored in the second storage medium into the first storage medium.
17. The storage control device of claim 16, wherein the backup of the data stored in the second storage medium includes a table utilized for translating logical addresses of a host to physical addresses of the first storage medium.
18. The storage control device of claim 16, wherein the backup of the data stored in the second storage medium includes user data.
19. The storage control device of claim 16, wherein the first storage medium comprises a first storage region and a second storage region, where an inherent access speed of the first storage region is faster than an inherent access speed of the second storage region; and the backup of the data stored in the second storage medium is stored into the first storage region.
20. The storage control device of claim 15, wherein when the controller operates under the second operational state, the controller lowers a processing speed of requests for accessing the first storage medium.
21. The storage control device of claim 15, wherein when the controller operates under the second operational state, the controller suspends a current data access of the first storage medium.
22. The storage control device of claim 15, wherein the controller communicates with a host via a host interface; and when the controller operates under the second operational state, the controller rejects requests issued by the host for accessing the first storage medium.
23. The storage control device of claim 15, wherein the controller and the voltage detector are integrated in a controller chip.
24. The storage control device of claim 15, wherein the first storage medium is a non-volatile storage medium.
25. The storage control device of claim 24, wherein the non-volatile storage medium is a non-volatile memory or an optical storage medium.
26. A control method of a controller utilized for controlling data access of a storage medium, comprising:
- monitoring a power signal to detect anomaly therein; and
- notifying the controller when the anomaly of the power signal is detected.
27. A control method of a controller utilized for controlling data access of a storage medium, comprising:
- monitoring a power signal;
- when a voltage level of the power signal falls within a first voltage range, operating the controller under a first operational state; and
- when the voltage level of the power signal falls within a second voltage range different from the first voltage range, operating the controller under a second operational state different from the first operational state.
Type: Application
Filed: Mar 19, 2010
Publication Date: Dec 30, 2010
Inventors: Tzu-Chieh Lin (Hsinchu City), Tzu-Li Hung (Kaohsiung City), Kuan-Hua Chao (Taipei City), Shiue-Shin Liu (HsinChu City), Hong-Ching Chen (Kao-Hsiung Hsien), Li-Chun Tu (Hsinchu City)
Application Number: 12/727,256
International Classification: G06F 11/30 (20060101); G06F 12/00 (20060101);