# US 2021/0279003 A1 · Method and apparatus for performing resuming management

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

- Number: US 2021/0279003 A1
- Document ID: US20210279003A1
- Status: Published application
- Kind: A1
- Application number: 17/086,445
- Filed: 2020-11-01
- Published: 2021-09-09
- Earliest claimed: 2020-03-03
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Kuan-Yu Ke
- Web page: https://patentgrep.com/patent/US20210279003A1

## CPC

- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0611: {in relation to response time}
- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and apparatus for performing resuming management are provided. The method includes: utilizing a boot loader to load a group of In-System Programming (ISP) codes; storing information to be retained, including a resume ISP loader, into a retention region of a RAM, for being retained during sleeping; determining whether to start sleeping, and generating a determining result; in response to the determining result, controlling the memory device to start sleeping; after starting sleeping, determining whether a wake-up event occurs; after the wake-up event occurs, executing a first ISP code within the group of ISP codes to start performing a first operation; and executing the resume ISP loader to load other ISP codes within the group of ISP codes.

## Claims

### Claim 1

A method for performing resuming management, the method being applied to a controller of a memory device, the memory device comprising the controller and a non-volatile (NV) memory, the NV memory comprising at least one NV memory element, the method comprising:
utilizing a boot loader to load a group of In-System Programming (ISP) codes, wherein the controller comprises a random access memory (RAM), and the group of ISP codes is loaded into the RAM;
storing information to be retained, comprising a resume ISP loader, into a retention region of the RAM, for being retained during sleeping;
determining whether to start sleeping, and generating a determining result, wherein the determining result indicates whether to start sleeping;
in response to the determining result, controlling the memory device to start sleeping;
after starting sleeping, determining whether a wake-up event occurs;
after the wake-up event occurs, executing a first ISP code within the group of ISP codes to start performing a first operation, wherein the first ISP code is obtained through the resume ISP loader; and
executing the resume ISP loader to load other ISP codes within the group of ISP codes.

### Claim 2 (depends on 1)

The method of claim 1, wherein the step of utilizing the boot loader to load the group of ISP codes further comprises:
utilizing the boot loader to load the group of ISP codes into the RAM from the NV memory, to make the memory device be equipped with various functions.

### Claim 3 (depends on 2)

The method of claim 2, wherein the step of executing the resume ISP loader to load the other ISP codes within the group of ISP codes further comprises:
executing the resume ISP loader to load the other ISP codes within the group of ISP codes, to make the memory device be equipped with the various functions.

### Claim 4 (depends on 1)

The method of claim 1, wherein sleeping represents a suspension corresponding to partial information retention.

### Claim 5 (depends on 1)

The method of claim 1, wherein during sleeping, the controller retains the resume ISP loader in the retention region, and temporarily stops providing other regions within the RAM with power, to allow a majority of the group of ISP codes to disappear from the RAM.

### Claim 6 (depends on 5)

The method of claim 5, wherein in response to the wake-up event, the controller provides the other regions within the RAM with power, to make the RAM normally store information, in order to prevent information loaded into the RAM later from disappearing.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
after the wake-up event occurs, executing the resume ISP loader to load the first ISP code within the group of ISP codes, wherein the first ISP code is obtained by executing the resume ISP loader.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first ISP code is embedded in the resume ISP loader.

### Claim 9 (depends on 1)

The method of claim 1, wherein the group of ISP codes comprises multiple program modules related to access, the first operation represents a read operation, and the first ISP code represents a read operation module within the multiple program modules.

### Claim 10 (depends on 9)

The method of claim 9, wherein the multiple program modules comprise the read operation module, a lookup module, a read refresh module, a read reclaim module, a read garbage collection module, and an uncorrectable error correction code (UECC) module, for performing read, lookup, read refresh, read reclaim, garbage collection during read, and error handling regarding UECC error.

### Claim 11

A memory device, comprising:
a non-volatile (NV) memory, configured to store information, wherein the NV memory comprises at least one NV memory element; and
a controller, coupled to the NV memory, configured to control operations of the memory device, wherein the controller comprises:
a processing circuit, configured to control the controller according to a plurality of host commands from a host device, to allow the host device to access the NV memory through the controller; and
a random access memory (RAM), configured to store information, wherein the RAM comprises a retention region;
wherein:
the controller utilizes a boot loader to load a group of In-System Programming (ISP) codes, wherein the group of ISP codes is loaded into the RAM;
the controller stores information to be retained, comprising a resume ISP loader, into the retention region of the RAM, for being retained during sleeping;
the controller determines whether to start sleeping, and generates a determining result, wherein the determining result indicates whether to start sleeping;
in response to the determining result, the controller controls the memory device to start sleeping;
after starting sleeping, the controller determines whether a wake-up event occurs;
after the wake-up event occurs, the controller executes a first ISP code within the group of ISP codes to start performing a first operation, wherein the first ISP code is obtained through the resume ISP loader; and
the controller executes the resume ISP loader to load other ISP codes within the group of ISP codes.

### Claim 12 (depends on 11)

The memory device of claim 11, wherein the controller utilizes the boot loader to load the group of ISP codes into the RAM from the NV memory, to make the memory device be equipped with various functions.

### Claim 13 (depends on 12)

The memory device of claim 12, wherein the controller executes the resume ISP loader to load the other ISP within the group of ISP codes, to make the memory device be equipped with the various functions.

### Claim 14 (depends on 11)

The memory device of claim 11, wherein sleeping represents a suspension corresponding to partial information retention.

### Claim 15 (depends on 11)

The memory device of claim 11, wherein during sleeping, the controller retains the resume ISP loader in the retention region, and temporarily stops providing other regions within the RAM with power, to allow a majority of the group of ISP codes to disappear from the RAM.

### Claim 16 (depends on 15)

The memory device of claim 15, wherein in response to the wake-up event, the controller provides the other regions within the RAM with power, to make the RAM normally store information, in order to prevent information loaded into the RAM later from disappearing.

### Claim 17 (depends on 11)

The memory device of claim 11, wherein after the wake-up event occurs, the controller executes the resume ISP loader to load the first ISP code within the group of ISP codes, wherein the first ISP code is obtained by executing the resume ISP loader.

### Claim 18 (depends on 11)

The memory device of claim 11, wherein the first ISP code is embedded in the resume ISP loader.

### Claim 19 (depends on 11)

An electronic device comprising the memory device of claim 11, further comprising:
the host device, coupled to the memory device, wherein the host device comprises:
at least one processor, configured to control operations of the host device; and
a power supply circuit, coupled to the at least one processor, configured to provide the at least one processor and the memory device with power;
wherein the memory device provides the host device with storage space.

### Claim 20

A controller of a memory device, the memory device comprising the controller and a non-volatile (NV) memory, the NV memory comprising at least one NV memory element, the controller comprising:
a processing circuit, configured to control the controller according to a plurality of host commands from a host device, to allow the host device to access the NV memory through the controller; and
a random access memory (RAM), configured to store information, wherein the RAM comprises a retention region;
wherein:
the controller utilizes a boot loader to load a group of In-System Programming (ISP) codes, wherein the group of ISP codes is loaded into the RAM;
the controller stores information to be retained, comprising a resume ISP loader, into the retention region of the RAM, for being retained during sleeping;
the controller determines whether to start sleeping, and generates a determining result, wherein the determining result indicates whether to start sleeping;
in response to the determining result, the controller controls the memory device to start sleeping;
after starting sleeping, the controller determines whether a wake-up event occurs;
after the wake-up event occurs, the controller executes a first ISP code within the group of ISP codes to start performing a first operation, wherein the first ISP code is obtained through the resume ISP loader; and
the controller executes the resume ISP loader to load other ISP codes within the group of ISP codes.
