# US 2025/0147884 A1 · Apparatus for managing cache loss and operation method thereof

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

- Number: US 2025/0147884 A1
- Document ID: US20250147884A1
- Status: Published application
- Kind: A1
- Application number: 19/003,514
- Filed: 2024-12-27
- Published: 2025-05-08
- Earliest claimed: 2021-10-25
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Junwoo LEE
- Web page: https://patentgrep.com/patent/US20250147884A1

## CPC

- 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/06: Digital input from, or digital output to, record carriers {, e.g. RAID, emulated record carriers or networked record carriers}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 11/07: Responding to the occurrence of a fault, e.g. fault tolerance
- 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/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/0772: {Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers}
- 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 11/10: Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F 11/14: Error detection or correction of the data by redundancy in operations (error detection or correction of the data by redundancy in hardware G06F11/16)
- G06F 11/1441: {Resetting or repowering}
- G06F 11/30: Monitoring
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 2201/82: Solving problems relating to consistency
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/214: Solid state disk
- G06F 2212/222: Non-volatile memory
- G06F 2212/282: Partitioned cache
- G06F 2212/313: In storage device
- G06F 2212/466: Metadata, control data
- G06F 2212/502: using adaptive policy
- G06F 2212/60: Details of cache memory
- G06F 2212/72: Details relating to flash memory management
- 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 host for managing a storage device is provided. The host includes a storage host interface configured to communicate with the storage device comprising a cache and a non-volatile memory and at least one processor. The at least one processor may be configured to receive information indicating cache loss from the storage device after device reset of the storage device, suspend a data input/output operation for the storage device, transmit a buffer read command to the storage device, and receive cache information related to data remaining in the cache without being stored in the non-volatile memory before the device reset from the storage device in response to the buffer read command.

## Claims

### Claim 1

A storage device comprising:
a cache;
a non-volatile memory;
a device interface configured to communicate with a host; and
at least one processor operatively coupled with the cache, the non-volatile memory and the device interface,
wherein the at least one processor is configured to:
receive a reset command from the host through the device interface,
perform device reset in response to the reset command,
determine whether there is cache information related to data remaining in the cache without being stored in the non-volatile memory before the device reset,
in a presence of the cache information, transmit information indicating cache loss to the host through the device interface,
receive a read command for the cache information from the host through the device interface after transmitting the information indicating cache loss, and
transmit the cache information to the host through the device interface in response to the read command.

### Claim 2 (depends on 1)

The storage device of claim 1, wherein the cache information includes a start address and/or a data size related to the data remaining in the cache.

### Claim 3 (depends on 1)

The storage device of claim 1, wherein the at least one processor is further configured to:
receive a write command from the host through the device interface;
receive at least a portion of write data corresponding to the write command from the host;
transmit, to the host, a write response message indicating that a write procedure of the write data is completed;
determine whether at least some data that is not flushed to the non-volatile memory among the write data remains in the cache;
when the at least some data remains in the cache, store the cache information related to the write data; and
when the at least some data is flushed to the non-volatile memory, delete the cache information.

### Claim 4 (depends on 1)

The storage device of claim 1, wherein the cache information is stored in an internal memory of the at least one processor or a metadata storage area of the non-volatile memory.

### Claim 5

A method of operating a storage device including a cache and a non-volatile memory, the method comprising:
receiving a reset command from a host;
performing device reset in response to the reset command;
determining whether there is cache information related to data remaining in the cache without being stored in the non-volatile memory before the device reset;
in a presence of the cache information, transmitting information indicating cache loss to the host;
receiving a read command for the cache information from the host after transmitting the information indicating cache loss; and
transmitting the cache information to the host in response to the read command.

### Claim 6 (depends on 5)

The method of claim 5, wherein the cache information includes a start address and/or a data size related to the data remaining in the cache.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
receiving a write command from the host;
receiving at least a portion of write data corresponding to the write command from the host;
transmitting, to the host, a write response message indicating that a write procedure of the write data is completed;
determining whether at least some data that is not flushed to the non-volatile memory among the write data remains in the cache;
when the at least some data remains in the cache, storing the cache information related to the write data; and
when the at least some data is flushed to the non-volatile memory, deleting the cache information.

### Claim 8 (depends on 5)

The method of claim 5, wherein the cache information is stored in an internal memory of the at least one processor or a metadata storage area of the non-volatile memory.

### Claim 9

A non-transitory storage medium storing instructions that, when executed by a storage device including a cache and a non-volatile memory, cause the storage device to perform at least one operation, the at least one operation comprising:
receiving a reset command from a host;
performing device reset in response to the reset command;
determining whether there is cache information related to data remaining in the cache without being stored in the non-volatile memory before the device reset;
in a presence of the cache information, transmitting information indicating cache loss to the host;
receiving a read command for the cache information from the host after transmitting the information indicating cache loss; and
transmitting the cache information to the host in response to the read command.

### Claim 10 (depends on 9)

The non-transitory storage medium of claim 9, wherein the cache information includes a start address and/or a data size related to the data remaining in the cache.

### Claim 11 (depends on 9)

The non-transitory storage medium of claim 9, wherein the at least one operation further comprises:
receiving a write command from the host;
receiving at least a portion of write data corresponding to the write command from the host;
transmitting, to the host, a write response message indicating that a write procedure of the write data is completed;
determining whether at least some data that is not flushed to the non-volatile memory among the write data remains in the cache;
when the at least some data remains in the cache, storing the cache information related to the write data; and
when the at least some data is flushed to the non-volatile memory, deleting the cache information.

### Claim 12 (depends on 9)

The non-transitory storage medium of claim 9, wherein the cache information is stored in an internal memory of the at least one processor or a metadata storage area of the non-volatile memory.
