# US 2013/0159599 A1 · Systems and Methods for Managing Data in a Device for Hibernation States

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

- Number: US 2013/0159599 A1
- Document ID: US20130159599A1
- Status: Published application
- Kind: A1
- Application number: 13/330,185
- Filed: 2011-12-19
- Published: 2013-06-20
- Earliest claimed: 2011-12-19
- Assignees: SanDisk Technologies LLC
- Inventors: Shahar Bar-Or; Eran Sharon; Idan Alrod
- Web page: https://patentgrep.com/patent/US20130159599A1

## CPC

- G06F 9/4418: {Suspend and resume; Hibernate and awake}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present application is directed to systems and methods for managing data in a device for hibernation states. In one implementation, the device includes an interface and a processor. The interface is coupled with a first memory and a second memory. The processor is in communication with the first and second memories via the interface. The processor is configured to read first data from the first memory, generate image data of the data stored in the first memory based on the first data, and write to the second memory prior to the device entering an initial hibernation state the image data of the data stored in the first memory. The processor is further configured to, after the device awakes from the initial hibernation state, read the image data from the second memory, reconstruct the first data based on the image data, and write the first data to the first memory.

## Claims

### Claim 1

A method for managing data storage in conjunction with hibernation of a device, the method comprising:
in a controller of a device operatively coupled with a first memory and a second memory:
reading first data from the first memory;
generating image data of the data stored in the first memory based on the first data;
writing to the second memory prior to the device entering an initial hibernation state the image data of the data stored in the first memory; and
after waking from the initial hibernation state:
reading the image data from the second memory;
reconstructing the first data based on the image data; and
writing the first data to the first memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first memory comprises DRAM memory and the second memory comprises NAND memory.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
after waking from the initial hibernation state:
reading second data from the first memory; and
comparing the second data to at least a portion of data reconstructed from the image data stored on the second memory to determine whether data stored in the first memory has changed since the device awoke from the initial hibernation state.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
in response to determining that data stored in the first memory has changed since waking from the initial hibernation state:
storing in the second memory a first delta of data representing at least a portion of the data stored in the first memory that has changed since the device awoke from the initial hibernation state, the first delta of data being stored in the second memory prior to the device entering a first subsequent hibernation state.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
compressing the first delta of data to reduce the size of the first delta of data prior to storing the first delta of data in the second memory.

### Claim 6 (depends on 4)

The method of claim 4, further comprising:
shaping the first delta of data to reduce a number of zeros in a bit stream of the first delta of data prior to storing the first delta of data in the second memory.

### Claim 7 (depends on 4)

The method of claim 4, further comprising:
after waking from the first subsequent hibernation state:
reading the image data from the second memory;
reading the first delta of data from the second memory; and
writing reconstructed data to the first memory based on the image data and the first delta of data.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
after waking from the first subsequent hibernation state:
reading third data from the first memory;
comparing the third data to at least a portion of data reconstructed from the image data and the first delta of data to determine whether data stored in the first memory has changed since the device awoke from the first subsequent hibernation state; and
in response to determining that data stored in the first memory has changed since the device awoke from the first subsequent hibernation state:
storing in the second memory a second delta of data representing at least a portion of the data stored in the first memory that has changed since the device awoke from the first subsequent hibernation state, the second delta of data being stored in the second memory prior to the device entering a second subsequent hibernation state.

### Claim 9 (depends on 8)

The method of claim 8, wherein the first delta of data and the second delta of data are stored in different die of the second memory.

### Claim 10 (depends on 3)

The method of claim 3, further comprising:
after determining that data stored in the first memory has changed since waking from the initial hibernation state:
determining that a number of deltas of data stored in the second memory exceeds a threshold, and in response:
generating new image data of the data stored in the first memory; and
writing to the second memory prior to entering a next hibernation state the new image data of the data stored in the first memory.

### Claim 11 (depends on 3)

The method of claim 3, further comprising:
after determining that data stored in the first memory has changed since waking from the initial hibernation state:
determining that an amount of data that has changed in the first memory since the device awoke from the initial hibernation state exceed a threshold, and in response:
generating new image data of the data stored in the first memory; and
writing to the second memory prior to entering a next hibernation state the new image data of the data stored in the first memory.

### Claim 12 (depends on 3)

The method of claim 3, wherein comparing the second data to at least a portion of the image data stored on the second memory to determine whether data stored in the first memory has changed since the device awoke from the initial hibernation state comprises:
calculating a first cyclic redundancy check (CRC) for the second data;
calculating a second CRC for the data reconstructed from the image data stored on the second memory; and
determining whether the first CRC and the second CRC are equal.

### Claim 13 (depends on 3)

The method of claim 3, wherein the second data and the portion of data are a sector of memory.

### Claim 14 (depends on 3)

The method of claim 3, wherein the second data and the portion of data are a page of memory.

### Claim 15 (depends on 3)

The method of claim 3, wherein the second data and the portion of data are a block of memory.

### Claim 16

A device comprising:
an interface coupled to a first memory and a second memory;
a processor for managing data storage in conjunction with hibernation of the device, the processor in communication with the first and second memory via the interface and configured to:
read first data from the first memory;
generate image data of the data stored in the first memory based on the first data;
write to the second memory prior to the device entering an initial hibernation state the image data of the data stored in the first memory; and
after the device awakes from the initial hibernation state:
read the image data from the second memory;
reconstruct the first data based on the image data; and
write the first data to the first memory.

### Claim 17 (depends on 16)

The device of claim 16, wherein the first memory comprises DRAM memory and the second memory comprises NAND memory.

### Claim 18 (depends on 16)

The device of claim 16, wherein the processor is further configured to:
after awaking from the initial hibernation state:
read second data from the first memory; and
compare the second data to at least a portion of data reconstructed from the image data stored on the second memory to determine whether data stored in the first memory has changed since the device awoke from the initial hibernation state.

### Claim 19 (depends on 18)

The device of claim 18, wherein the processor is further configured to:
in response to determining that data stored in the first memory has changed since waking from the initial hibernation state:
store in the second memory a first delta of data representing at least a portion of the data stored in the first memory that has changed since the storage device awoke from the initial hibernation state, the processor storing the first delta of data in the second memory prior to the device entering a first subsequent hibernation state.

### Claim 20 (depends on 19)

The device of claim 19, wherein the processor is further configured to:
after awaking from the first subsequent hibernation state:
read the image data from the second memory;
read the first delta of data from the second memory; and
write reconstructed data to the first memory based on the image data and the first delta of data.
