Flash controllers, methods, and corresponding storage devices capable of rapidly/fast generating or updating contents of valid page count table
AssigneeSilicon Motion, Inc.
InventorHsu-Ping Ou
Life of this patent
Estimating the term…
Abstract
A method of a flash controller to be coupled between a flash memory device and a host device is provided. The flash memory device has a plurality of blocks each having a plurality of pages, and the method comprises: receiving a trim/erase/unmap command from the host device; obtaining a storage space, which is to be erased, from the trim/erase/unmap command; comparing a space size of the storage space with a threshold to determine whether the space size is larger than the threshold; and resetting valid page counts of the plurality of blocks of the flash memory device when the space size is larger than the threshold.
Claims25
A flash controller to be coupled between a flash memory device and a host device, the flash memory device having a plurality of blocks each having a plurality of pages, and the flash controller comprises:
- a processing circuit, configured for:
- receiving a trim/erase/unmap command from the host device;
- obtaining a storage space, which is to be erased, from the trim/erase/unmap command;
- comparing a space size of the storage space with a threshold to determine whether the space size is larger than the threshold;
- and
- resetting valid page counts of the plurality of blocks of the flash memory device when the space size is larger than the threshold.
A flash controller to be coupled to a host device and a flash memory device having a plurality of blocks each having a plurality of pages, comprising:
- a processing circuit, configured for:
- receiving a first trim/erase/unmap command from the host device;
- obtaining a first storage space, which is to be erased, from the first trim/erase/unmap command;
- performing a first trim/erase/unmap operation and updating information of valid page counts of the plurality of blocks of the flash memory device;
- receiving a second trim/erase/unmap command from the host;
- obtaining a second storage space, which is to be erased, from the second trim/erase/unmap command;
- and
- performing a second trim/erase/unmap operation and updating information of the valid page counts of the plurality of blocks of the flash memory device;
- wherein a space size of the second storage space is larger than a space size of the first storage space, and a waiting time for updating the information of the valid page counts when the first trim/erase/unmap operation is performed is shorter than a waiting time for updating the information of the valid page counts when the second trim/erase/unmap operation is performed.
A method of a flash controller to be coupled between a flash memory device and a host device, the flash memory device having a plurality of blocks each having a plurality of pages, and the method comprises:
- receiving a trim/erase/unmap command from the host device;
- obtaining a storage space, which is to be erased, from the trim/erase/unmap command;
- comparing a space size of the storage space with a threshold to determine whether the space size is larger than the threshold;
- and
- resetting valid page counts of the plurality of blocks of the flash memory device when the space size is larger than the threshold.
A method of a flash controller to be coupled to a host device and a flash memory device having a plurality of blocks each having a plurality of pages, comprising:
- receiving a first trim/erase/unmap command from the host device;
- obtaining a first storage space, which is to be erased, from the first trim/erase/unmap command;
- performing a first trim/erase/unmap operation and updating information of valid page counts of the plurality of blocks of the flash memory device;
- receiving a second trim/erase/unmap command from the host;
- obtaining a second storage space, which is to be erased, from the second trim/erase/unmap command;
- and
- performing a second trim/erase operation and updating information of the valid page counts of the plurality of blocks of the flash memory device;
- wherein a space size of the second storage space is larger than a space size of the first storage space, and a waiting time for updating the information of the valid page counts when the first trim/erase/unmap operation is performed is shorter than a waiting time for updating the information of the valid page counts when the second trim/erase/unmap operation is performed.
A flash controller to be coupled between a flash memory device and a host device, the flash memory device having a plurality of blocks each having a plurality of pages, and the flash controller comprises:
- a processing circuit, configured for:
- receiving a trim/erase/unmap command from the host device;
- obtaining a storage space, which is not to be erased, from the trim/erase/unmap command;
- comparing a space size of the storage space with a threshold to determine whether the space size is smaller than the threshold;
- and
- resetting valid page counts of the plurality of blocks of the flash memory device when the space size is smaller than the threshold.
A method of a flash controller to be coupled between a flash memory device and a host device, the flash memory device having a plurality of blocks each having a plurality of pages, and the method comprises:
- receiving a trim/erase/unmap command from the host device;
- obtaining a storage space, which is not to be erased, from the trim/erase/unmap command;
- comparing a space size of the storage space with a threshold to determine whether the space size is smaller than the threshold;
- and
- resetting valid page counts of the plurality of blocks of the flash memory device when the space size is smaller than the threshold.
Dependencies are inferred from the claim text.