US 12,105,622 B2
Method and non-transitory computer-readable storage medium and apparatus for data access in response to host discard commands
Shen-Ting Chiu, Miaoli County (TW)
Assigned to SILICON MOTION, INC., Zhubei (TW)
Filed by Silicon Motion, Inc., Zhubei (TW)
Filed on Feb. 16, 2023, as Appl. No. 18/110,747.
Claims priority of application No. 202210335258.1 (CN), filed on Mar. 31, 2022.
Prior Publication US 2023/0315622 A1, Oct. 5, 2023
Int. Cl. G06F 12/02 (2006.01); G06F 13/16 (2006.01)
CPC G06F 12/0246 (2013.01) [G06F 12/0292 (2013.01); G06F 13/1668 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for data access in response to a host discard command, performed by a processing unit, comprising:
allocating space in a random access memory (RAM) for an expanded discard table, wherein the expanded discard table comprises a plurality of entries and each entry records one logical address of discarded user data;
receiving a first host discard command from a host side, wherein the first host discard command indicates first logical addresses of user data that is no longer used;
appending first new entries each comprising one first logical address to the expanded discard table; and
setting a start-address register and/or an end-address register in a performance engine for redefining an address range in the RAM that stores the expanded discard table, thereby enabling the performance engine to search the expanded discard table in the address range in the RAM for determining whether a specific logical address of user data is no longer used.