Patent ID: 11922044
Assignee: SILICON MOTION, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A data storage device, comprising:
a non-volatile memory; and
a controller, coupled to the non-volatile memory,
wherein:
when determining that raw data read from the non-volatile memory is undesirable data, the controller performs safety moving of valid data of an erasure unit that contains the raw data to safely move the valid data of the erasure unit, wherein the raw data in the non-volatile memory is regarded as being in a deteriorated physical address, and
prior to being moved in the safety moving, the raw data is changed so that it is different from the undesirable data;
the controller accesses the non-volatile memory through a plurality of channels;
the controller provides a plurality of registers correspond one-to-one with the channels; and
when determining that the raw data read from the volatile memory is the undesirable data, the controller programs a register corresponding to a channel reading the undesirable data to flag the channel as a flagged channel.