Method and computer program product and apparatus for handling sudden power off recovery
AssigneeSilicon Motion, Inc.
InventorWen-Sheng Lin
Life of this patent
Estimating the term…
Abstract
The invention introduces a non-transitory computer program product for handling a sudden power off recovery (SPOR) to include program code to: drive a flash access interface to read pages of a current block in sequence after a power restart subsequent to a sudden power off (SPO); mark the last correct page of the current block according to page read statuses for the current block; drive the flash access interface to read protection information of pages of a temporary block in sequence, so as to mark the first incorrect page of the temporary block; and drop data of the first incorrect page and pages thereafter of the temporary block.
Claims20
A non-transitory computer program product for handling a sudden power off recovery (SPOR) when executed by a processing unit of a device, the non-transitory computer program product comprising program code to:
- drive a flash access interface to read pages of a current block in sequence after a power restart subsequent to a sudden power off (SPO), wherein the current block is a multi-level cell (MLC) block or a triple level cell (TLC) block;
- mark a last correct page of the current block according to page read statuses for the current block;
- drive the flash access interface to read protection information of pages of a temporary block in sequence, so as to mark a first incorrect page of the temporary block, wherein the temporary block is a single-level cell (SLC) block and the protection information of the first incorrect page of the temporary block comprises address information pointing to a page after the last correct page of the current block;
- and
- drop data of the first incorrect page and pages thereafter of the temporary block.
A method for handling a sudden power off recovery (SPOR), performed by a processing unit of a device, comprising:
- reading pages of a current block in sequence after a power restart subsequent to a sudden power off (SPO), wherein the current block is a multi-level cell (MLC) block or a triple level cell (TLC) block;
- marking a last correct page of the current block according to page read statuses for the current block;
- reading protection information of pages of a temporary block in sequence, so as to mark a first incorrect page of the temporary block, wherein the temporary block is a single-level cell (SLC) block and the protection information of the first incorrect page of the temporary block comprises address information pointing to a page after the last correct page of the current block;
- and
- dropping data of the first incorrect page and pages thereafter of the temporary block.
An apparatus for handling a sudden power off recovery (SPOR), comprising:
- a flash access interface;
- and
- a processing unit, coupled to the flash access interface, arranged to operably drive the flash access interface to read pages of a current block in sequence after a power restart subsequent to a sudden power off (SPO), wherein the current block is a multi-level cell (MLC) block or a triple level cell (TLC) block;
- mark a last correct page of the current block according to page read statuses for the current block;
- drive the flash access interface to read protection information of pages of a temporary block in sequence, so as to mark a first incorrect page of the temporary block, wherein the temporary block is a single-level cell (SLC) block and the protection information of the first incorrect page of the temporary block comprises address information pointing to a page after the last correct page of the current block;
- and
- drop data of the first incorrect page and pages thereafter of the temporary block.
Dependencies are inferred from the claim text.