# US 10,372,558 B2 · Storage device, an operating method of the storage device and an operating method of a computing system including the storage device and a host device

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

- Number: US 10,372,558 B2
- Document ID: US10372558B2
- Status: Granted
- Kind: B2
- Application number: 15/481,781
- Filed: 2017-04-07
- Published: 2017-11-02
- Granted: 2019-08-06
- Earliest claimed: 2016-05-02
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Ji Hyung Park; HyunJung Shin; Isaac Baek; Jeonguk Kang; Minseok Ko
- Web page: https://patentgrep.com/patent/US10372558B2

## CPC

- G06F 11/073: {in a memory management context, e.g. virtual memory or cache management (memory management G06F12/00; testing of static memory units G11C29/00)}
- G06F 11/1469: {Backup restoration techniques}
- G06F 11/0727: {in a storage system, e.g. in a DASD or network based storage system (drivers for digital recording or reproducing units G06F3/06; circuits for error detection or correction within digital recording or reproducing units G11B20/18; for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS], H04L67/1097)}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0766: {Error or fault reporting or storing}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G11C 2029/0409: {Online test}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

An operating method of a storage device that includes a nonvolatile memory device and a controller configured to control the nonvolatile memory device, the method including: detecting, by the controller, a fault of the nonvolatile memory device or the controller, notifying, by the controller, a host device of the fault, notifying, by the controller, the host device of one or more recovery schemes for recovering the fault, and recovering, by the controller, the fault in response to a recovery scheme selected by the host device.

## Claims

### Claim 1

An operating method of a storage device that comprises a nonvolatile memory device and a controller configured to control the nonvolatile memory device, the method comprising:
detecting, by the controller, a fault of the nonvolatile memory device or the controller;
notifying, by the controller, a host device of the fault;
notifying, by the controller, the host device of one or more recovery schemes for recovering the fault; and
recovering, by the controller, the fault in response to a recovery scheme selected by the host device,
wherein the detecting of the fault comprises:
detecting that a fault exists in a first storage space, when a write, a read, or an erase operation of the nonvolatile memory device fails at the first storage space,
wherein the fault of the first storage space is detected to exist when a size of the first storage space is greater than a size of a reserved area in the nonvolatile memory device.

### Claim 2 (depends on 1)

The method of claim 1, wherein the notifying of the host device of the fault comprises:
notifying, by the controller, the host device whether the fault occurs, in response to a request received from the host device.

### Claim 3 (depends on 1)

The method of claim 1, wherein the notifying of the host device of the fault comprises:
receiving, by the controller, a request from the host device; and
sending, by the controller, a response to the request to the host device, when the fault is detected,
wherein the controller does not send the response when the fault is not detected.

### Claim 4 (depends on 1)

The method of claim 1, wherein the nonvolatile memory device comprises a plurality of nonvolatile memory chips, and wherein the detecting of the fault comprises:
detecting, by the controller, that a fault exists in at least one of the nonvolatile memory chips when the at least one nonvolatile memory chip does not respond to the controller.

### Claim 5 (depends on 1)

The method of claim 1, wherein the detecting of the fault comprises:
detecting, when the controller accesses the nonvolatile memory device in response to a request of the host device, whether a second storage space of the nonvolatile memory device accessed by controller is faulty.

### Claim 6 (depends on 1)

The method of claim 1, wherein the detecting of the fault comprises:
detecting, when the controller accesses the nonvolatile memory device according to a background operation without a request of the host device, whether a second storage space of the nonvolatile memory device accessed by controller is faulty.

### Claim 7 (depends on 1)

The method of claim 1, wherein the detecting of the fault comprises:
detecting, when the controller accesses the nonvolatile memory device in response to a request of the host device after receiving information indicating a scrub operation from the host device, whether a second storage space of the nonvolatile memory device accessed by controller is faulty.

### Claim 8 (depends on 1)

The method of claim 1, wherein the notifying of the host device of the fault comprises:
providing, by the controller, notification of a type of the fault, a level of the fault, the size of the first storage space at which the fault is generated, a physical characteristic of the first storage space at which the fault is generated, or a history of previously generated faults.

### Claim 9 (depends on 1)

The method of claim 1, wherein the notifying of the host device of the one or more recovery schemes comprises:
providing, by the controller, notification of an operating speed variation, a capacity variation, or a recovery execution time of the storage device that are predicted when the controller performs each of the one or more recovery schemes.

### Claim 10 (depends on 1)

The method of claim 1, wherein the one or more recovery schemes comprises a recovery scheme in which the controller negates a partial storage space of the nonvolatile memory device, formats a remaining storage space other than the partial storage space, and reports a size of the formatted storage space as the size of the first storage space to the host device, and
wherein the partial storage space comprises the first storage space at which the fault is detected.

### Claim 11 (depends on 1)

The method of claim 1, wherein the one or more recovery schemes comprises a recovery scheme in which the controller fixes a mapping between a logical address and a physical address of a partial storage space of the nonvolatile memory device and denies an access with respect to the fixed logical address, and
wherein the partial storage space comprises the first storage space at which the fault is detected,
the method further comprising:
reporting, by the controller, an access error to the host device when an access request for the fixed logical address is received from the host device.

### Claim 12 (depends on 1)

The method of claim 1, wherein the one or more recovery schemes comprises a recovery scheme in which the controller negates a partial storage space of the nonvolatile memory device and replaces an access request for the partial storage space with an access to a remaining storage space other than the partial storage space,
wherein the partial storage space comprises the first storage space at which the fault is detected,
the method further comprising:
denying, by the controller, a write request on a free logical address when the remaining storage space is filled with valid data.

### Claim 13 (depends on 1)

The method of claim 1, wherein the one or more recovery schemes comprises a recovery scheme in which the controller negates a partial storage space of the nonvolatile memory device, reduces a range of logical addresses of the storage device by a size of the partial storage space, and remaps a logical address, which corresponds to valid data, from among logical addresses released due to a decrease of the range of logical addresses, to a logical address within the reduced range of logical addresses, and
wherein the partial storage space comprises the first storage space at which the fault is detected.

### Claim 14 (depends on 1)

The method of claim 1, wherein the notifying of the host device of the one or more recovery schemes comprises:
selecting, by the controller, the one or more recovery schemes among a plurality of recovery schemes based on a characteristic of the fault; and
recommending the one or more recovery schemes to the host device.

### Claim 15

An operating method of a computing device that comprises a storage device and a host device for communicating with the storage device, the method comprising:
detecting, by the storage device, a fault of the storage device;
notifying, by the storage device, the host device of the fault;
notifying, by the storage device, the host device of one or more recovery schemes for recovering the fault; and
selecting, by the host device, one of the one or more recovery schemes; and
recovering, by the storage device, the fault in response to the selected recovery scheme,
wherein the selecting comprises:
checking, by the host device, a status of the host device; and
selecting, by the host device, the one or more recovery schemes in response to the status of the host device.

### Claim 16 (depends on 15)

The method of claim 15, wherein the notifying of the host device of the one or more recovery schemes is performed when electric power is supplied to the storage device and the host device, and
the method further comprising:
recommending, by the storage device, at least one recovery scheme to the storage device when the fault is generated.

### Claim 17

A storage device, comprising:
a nonvolatile memory device; and
a controller configured to control the nonvolatile memory device, wherein the controller comprises:
a fault detection module configured to detect a fault of the nonvolatile memory device;
a fault informing module configured to inform an external host device of the fault;
a capability check module configured to inform the external host device of one or more recovery schemes for recovering the fault; and
a recovery module configured to recover the fault in response to a recovery scheme selected by the external host device,
wherein the fault detection module detects the fault of the nonvolatile memory device in response to an access request of the controller, wherein the access request of the controller is generated by the controller itself without a request of the external host device.
