# US 2017/0371577 A1 · Data storage device and data storage method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0371577 A1
- Document ID: US20170371577A1
- Status: Published application
- Kind: A1
- Application number: 15/472,270
- Filed: 2017-03-29
- Published: 2017-12-28
- Earliest claimed: 2016-06-23
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Tsai-Fa Liu; Hung-Lian Lien
- Web page: https://patentgrep.com/patent/US20170371577A1

## CPC

- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 1/28: Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0617: {in relation to availability}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/60: Details of cache memory
- G06F 2212/7204: Capacity control, e.g. partitioning, end-of-life degradation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data storage method for a data storage device is provided. The data storage method includes steps of: determining whether a power drop/loss event occurs; when the power drop/loss event is determined to have occurred, recording a voltage level of a charge storage device, wherein the charge storage device provides power to the data storage device during the power drop/loss event; determining whether the charge storage device is operating normally according to the recorded voltage level of the charge storage device; and when the charge storage device is determined to be not operating normally, configuring the data storage device to enter a safe operation mode. A data storage device is also provided.

## Claims

### Claim 1

A data storage method for a data storage device, comprising steps of:
determining whether a power drop/loss event occurs;
when the power drop/loss event is determined to have occurred, recording a voltage level of a charge storage device, wherein the charge storage device provides power to the data storage device during the power drop/loss event;
determining whether the charge storage device is operating normally according to the recorded voltage level of the charge storage device; and
when the charge storage device is determined to be not operating normally, configuring the data storage device to enter a safe operation mode.

### Claim 2 (depends on 1)

The data storage method according to claim 1, wherein the safe operation mode comprises a write caching free mode, a hybrid write caching mode or a write through mode.

### Claim 3 (depends on 1)

The data storage method according to claim 1, wherein when a time required for the voltage level of the charge storage device to drop from a predetermined voltage level to a voltage threshold is less than a lower error limit, the charge storage device is determined to be not operating normally.

### Claim 4 (depends on 1)

The data storage method according to claim 1, further comprising a step of:
when the charge storage device is determined to be not operating normally, transmitting a spare power damage message to a host via a general purpose input/output (GPIO) pin.

### Claim 5 (depends on 4)

The data storage method according to claim 4, wherein the GPIO pin comprises a function reservation pin of a communication interface.

### Claim 6

A data storage method for a data storage device, comprising steps of:
determining whether an interrupt message is received from a host, wherein the interrupt message is transmitted when a power switch of the host is switched on;
when the interrupt message is determined to have been received, determining whether the data storage device is in a busy state; and
when the data storage device is determined to be in the busy state, configuring the data storage device to transmit the busy state to the host via a general purpose input/output (GPIO) pin.

### Claim 7 (depends on 6)

The data storage method according to claim 6, wherein the data storage device is determined to be in the busy state when the data storage device is executing a wear leveling procedure or a garbage collection procedure.

### Claim 8 (depends on 6)

The data storage method according to claim 6, wherein the GPIO pin comprises a function reservation pin of a communication interface.

### Claim 9 (depends on 6)

The data storage method according to claim 6, further comprising a step of:
assigning a data buffering block.

### Claim 10 (depends on 6)

The data storage method according to claim 6, further comprising a step of:
starting a data flushing procedure.

### Claim 11 (depends on 10)

The data storage method according to claim 10, wherein the data flushing procedure comprises a plurality of data write commands or a data flush command.

### Claim 12

A data storage device, comprising:
a non-volatile data storage device for storing data permanently;
a volatile data storage device for storing data temporarily;
a backup power supply; and
a controller, for controlling an operation of the non-volatile data storage device and the volatile data storage device, detecting at least two voltage values of the backup power supply in a power drop/loss event, and determining whether to enter a safe operation mode based on the two voltage values after the power drop/loss event, wherein the backup power supply provides power to the non-volatile data storage device, the volatile data storage device and the controller during the power drop/loss event.

### Claim 13 (depends on 12)

The data storage device according to claim 12, wherein the controller further provides log information to a host after the power drop/loss event.

### Claim 14 (depends on 12)

The data storage device according to claim 12, wherein the controller further sends a warning message to an external host.
