US 12,253,957 B2
Method of handling trim command in flash memory and related memory controller and storage system thereof
Tzu-Yi Yang, Hsinchu County (TW)
Assigned to Silicon Motion, Inc., Hsinchu County (TW)
Filed by Silicon Motion, Inc., Hsinchu County (TW)
Filed on Jan. 30, 2023, as Appl. No. 18/102,779.
Prior Publication US 2024/0256465 A1, Aug. 1, 2024
Int. Cl. G06F 12/12 (2016.01); G06F 12/1009 (2016.01)
CPC G06F 12/12 (2013.01) [G06F 12/1009 (2013.01)] 14 Claims
OG exemplary drawing
 
1. A method of handling trim commands in a flash memory, comprising:
receiving a trim command;
modifying logical-to-physical (L2P) address mapping entries of a L2P address mapping table according to the trim command;
storing trim information of the trim command into one of data blocks of the flash memory without saving the modified L2P address mapping entries to the flash memory after modifying the L2P address mapping entries according to the trim command; and
returning a finish notification to a host device which issues the trim command after storing the trim information into the flash memory.