Host Resident Translation Layer Validity Check Technology

By maintaining the cached FTL mapping table in the host memory and verifying the validity of the physical address, the problem of incorrect or malicious access to memory requests in the host's resident FTL operation mode is solved, and the performance and data consistency of the memory system are improved.

CN113196245BActive Publication Date: 2024-10-11MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980082880.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-12-19
Filing Date
2019-12-17
Publication Date
2024-10-11
Estimated Expiration
2039-12-17

AI Technical Summary

Technical Problem

In the host-resident FTL operating mode, existing technology is difficult to effectively verify the integrity of the physical address requested by the host memory, resulting in possible errors or malicious access, affecting the performance and data consistency of the memory system.

Method used

This prevents erroneous or malicious storage by maintaining a cached FTL mapping table in host memory and using a decryption circuit to verify the validity of the physical address when a memory request is received, ensuring that only valid physical addresses can be used for memory operations. Pick.

Benefits of technology

Significantly improves random read performance, maintains consistency between the host FTL table and flash mapping table, and provides timely mapping table updates when the host is idle to prevent the memory system from accessing at wrong physical addresses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113196245B_ABST
    Figure CN113196245B_ABST
Patent Text Reader

Abstract

Devices and techniques are disclosed herein for verifying host-generated physical addresses at a memory device during a host-resident FTL mode of operation to mitigate erroneous or potentially malicious access to the memory device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority application

[0002] This application claims the benefit of priority to U.S. Application No. 16 / 226,078, filed on December 19, 2018, which is incorporated herein by reference in its entirety. Technical Field

[0003] This disclosure discusses memory techniques, and more particularly, techniques for checking the validity of memory access tasks of a system that includes a host-resident translation layer. Background Art

[0004] Memory devices are typically provided as internal semiconductor integrated circuits in computers or other electronic devices. There are many different types of memory, including volatile and non-volatile memory. Volatile memory may require power to maintain data and includes random-access memory (RAM), dynamic random-access memory (DRAM), and synchronous dynamic random-access memory (SDRAM), among others. Non-volatile memory can provide persistent data by retaining stored data when not powered, and may include NAND flash memory, NOR flash memory, read-only memory (ROM), electrically erasable programmable ROM (EEPROM), erasable programmable ROM (EPROM), and resistance variable memory, such as phase change random access memory (PCRAM), resistive random access memory (RRAM), and magnetoresistive random access memory (MRAM), 3D XPoint TM Memory, etc.

[0005] Memory cells are typically arranged in a matrix or array. Multiple matrices or arrays can be combined into a memory device, and multiple devices can be combined to form the storage capacity of a memory system, such as a solid-state drive (SSD), universal flash storage (UFS), or a memory card. TM ) devices, Multimedia Card (MMC) solid-state storage devices, embedded MMC devices (eMMC TM )wait.

[0006] The memory system may include one or more processors or other memory controllers for executing logic functions to operate the memory device or to interface with an external system. The memory matrix or array may include a number of blocks of memory cells organized into a number of physical pages. The memory system may receive commands from a host in conjunction with memory operations such as read or write operations to transfer data (e.g., user data and associated integrity data, such as error data and address data, etc.) between the memory device and the host, erase operations to erase data from the memory device, or to perform one or more other memory operations.

[0007] Memories are utilized as volatile and non-volatile data storage devices for a wide variety of electronic applications including, for example, personal computers, portable memory sticks, digital cameras, cellular phones, portable music players (e.g., MP3 players), movie players, and other electronic devices. Memory cells may be arranged in an array, where the array is used in a memory device.

[0008] Many electronic devices include several main components: a host processor (e.g., a central processing unit (CPU) or other main processor); a main memory (e.g., one or more volatile or non-volatile memory devices, such as dynamic RAM (DRAM), mobile or low-power double data rate synchronous DRAM (DDR SDRAM), etc.); and a storage device (e.g., a non-volatile memory (NVM) device, such as flash memory, read-only memory (ROM), SSD, MMC, or other memory card structure or assembly, or a combination of volatile and non-volatile memory, etc.). In some examples, the electronic device may include a user interface (e.g., a display, a touch screen, a keyboard, one or more buttons, etc.), a graphics processing unit (GPU), a power management circuit, a baseband processor, or one or more transceiver circuits, etc. Summary of the invention

[0009] Devices and techniques are disclosed herein for verifying host-generated physical addresses at a memory device during a host-resident FTL mode of operation to mitigate erroneous or potentially malicious access to the memory device.

[0010] This summary is intended to provide an overview of the subject matter of this patent application. It is not intended to provide an exclusive or exhaustive explanation of the invention. The detailed description is included to provide additional information about this patent application. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals with different letter suffixes may represent different instances of similar components. The drawings generally illustrate various embodiments discussed in this document by way of example and not limitation.

[0012] Figure 1 An example system is shown that illustrates an environment that includes a memory device upon which one or more examples of the present subject matter may be implemented.

[0013] Figure 2 A flow chart of an example method for implementing memory operations at a flash memory system using aspects of a host-resident FTL is generally shown.

[0014] Figure 3 A flow chart generally illustrates an example method for efficiently monitoring and updating host mapping table data for host-resident FTL operations.

[0015] Figure 4 A block diagram is shown of an example machine upon which any one or more of the techniques (eg, methodologies) discussed herein may be executed. DETAILED DESCRIPTION

[0016] Flash memory-based storage devices (e.g., NAND memory) can use a Flash Translation Layer (FTL) to convert the logical address of an I / O request (commonly referred to as a logical block address (LBA)) into a corresponding flash memory address stored in one or more FTL mapping tables. An LBA may be a logical address used by a host to manage data. Mobile storage devices typically have a size-constrained cache and therefore often lack memory to store the entire mapping table. Therefore, portions of the mapping table may be retrieved from the flash memory on demand, which may cause random read performance to degrade.

[0017] In order to improve random read performance, the technology described herein implements the use of a host resident memory other than a memory unit of a memory device coupled to a host as a cache of an FTL mapping table. Under a host resident FTL, the speed of reading FTL data from a host memory is faster than the speed of reading FTL data from a flash memory, and the host can initiate a memory operation by retrieving a physical address (PA) of the flash memory and including the PA in a memory request to the flash memory. The PA can be retrieved by the host using the host's FTL memory cache and the host's LBA. Upon receiving a memory request, the flash memory system can immediately retrieve the data associated with the physical address without the delay associated with accessing a flash memory-based mapping table and using the LBA to obtain the physical address.

[0018] In certain embodiments of the host resident FTL, the improvement of random read workload performance can be significant. However, the inventor has identified a technology for the host resident FTL, which can help verify the integrity of the host memory request, can help maintain the consistency between the host FTL table and the actual flash mapping table, and can help provide timely updates to the host FTL table when the memory operation triggered by the host is at or close to idle. The direct implementation of the host resident FTL can assume that the mapping table remains accurate between the operations initiated by the host. However, the memory system or memory device connected to the host usually performs housekeeping operations, such as garbage collection and wear leveling, between the operations initiated by the host or during the idle time of the host. The housekeeping operations move data around the resident mapping table at the memory device, and often correct and update the mapping table. Without some validity checks, the direct implementation of the host resident FTL, such as the memory system blindly using the PA provided by the host to access flash data, may often cause the memory system to access the flash memory at the wrong PA.

[0019] Figure 1 An example of an environment 100 including a host 105 and a memory device 110 configured to communicate via a communication interface is shown. The host 105 or the memory device 110 may be included in a variety of products 150, such as IoT devices (e.g., refrigerators or other appliances, sensors, motors or actuators, mobile communication devices, cars, mobile phones, drones, etc.) to support processing, communication, or control of the product 150.

[0020] The memory device 110 includes a memory controller 115 and a memory array 120, which includes, for example, one or more individual memory dies (e.g., a stack of three-dimensional (3D) NAND dies). In 3D architecture semiconductor memory technology, vertical structures are stacked in multiple levels and coupled to form physical pages, thereby increasing the storage density of a memory device (e.g., a memory device) in a given footprint (i.e., form factor). In one example, the memory device 110 may be a discrete memory device.

[0021] One or more communication interfaces 111 may be used to transfer data between the memory device 110 and one or more other components of the host 105, such as a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a UFS interface, an eMMC interface, or a 32-bit SATA interface. TM interface, or one or more other connectors or interfaces. The host 105 may include a host system, an electronic device, a processor, a memory card reader, or one or more other electronic devices external to the memory device 110. In some examples, the host 105 may be a Figure 44. The memory device 110 may include some or all of the components discussed above for machine 400. Data may be transferred between memory device 110 and other components via an input / output (I / O) bus, which may include one or more latches for temporarily storing data while the data is being transferred (e.g., before being read from or written to a memory array).

[0022] The memory controller 115 may receive instructions from the host 105 and may communicate with the memory array, such as transferring data to (e.g., writing or erasing) or transferring data from (e.g., reading) one or more of the memory cells, planes, sub-blocks, blocks, or pages of the memory array. The memory controller 115 may include, among other things, circuitry or firmware, including one or more components or integrated circuits. For example, the memory controller 115 may include one or more memory control units, circuits, control circuitry, or components configured to control access on the memory array 120 and provide a translation layer between the host 105 and the memory device 110. The memory controller 115 may include one or more I / O circuits (and corresponding latches), caches, wire-OR interfaces to transfer data to or from the memory array 120. The memory controller 115 may include a memory manager 125 and an array controller 135.

[0023] The array controller 135 may include, among other things, circuitry or components configured to control memory operations associated with writing data to, reading data from, or erasing one or more memory cells of the memory device 110 coupled to the memory controller 115. The memory operations may be based on, for example, host commands received from the host 105, or generated internally by the memory manager 125 (e.g., in conjunction with wear leveling, error detection or correction, etc.).

[0024] The array controller 135 may include an error correction code (ECC) component 140, which may include, among other things, an ECC engine or other circuitry configured to detect or correct errors associated with writing data to or reading data from one or more memory cells of the memory device 110 coupled to the memory controller 115. The ECC component 140 may, for example, detect or calculate a bit error rate (BER) associated with performing a plurality of memory operations. The BER may correspond to a bit error occurring in a latch of an I / O bus, an internal error of the memory controller 115, an error occurring in any one or more of one or more of the NAND arrays, or one or more multi-level cells (MLCs) of the memory device 110. The memory controller 115 may be configured to effectively detect and recover from error occurrences (e.g., bit errors, operational errors, crash conditions, stalls, hangups, etc.) associated with various operations or data storage, while maintaining the integrity of data transferred between the host 105 and the memory device 110, or maintaining the integrity of stored data (e.g., using redundant RAID storage, etc.), and may remove (e.g., retire) failed memory resources (e.g., memory cells, memory arrays, pages, blocks, etc.) to prevent future errors. The array controller 135 may transmit the detected BER information to the memory manager 125 for storage and tracking. The memory controller 115 may include a command queue (not shown) that tracks memory commands received from the host. The commands in the queue may be executed by the memory controller 115 in a first-in first-out (FIFO) manner, in a stacked manner, out of order, according to priority, or in any other suitable order.

[0025] The described memory device 110 includes a cryptographic circuit system 160 combined with a memory array 120. In some examples, the cryptographic circuit system 160 may include an encryption circuit, a decryption circuit, or a combination thereof. In some embodiments, the memory controller 115 of the memory device 110 may include a control circuit system configured to implement the functions of the cryptographic circuit 160. In other embodiments, the cryptographic circuit 160 may include an independent control circuit system for implementing the described functionality. In still other embodiments, the control circuit system may be divided between the cryptographic circuit 160 and the memory controller 115 to implement the described functions of the cryptographic circuit 160. In the depicted example, the array controller 135 forms a part of the memory controller 115, and the cryptographic circuit 160 forms a part of the array controller. In other embodiments, the cryptographic circuit 160 may be external and / or outside the array controller 135. For example, the cryptographic circuit 160 (or any individual component thereof) may be an independent component coupled to one or more components in the environment 100. Although physically located, the additional functional structure of the cryptographic circuit 160 is provided to verify the physical address provided by the host 105 to prevent erroneous or malicious access to the memory device, and to provide the host with an opportunity to refresh the host-resident mapping table information to align the mapping information with the mapping information of the memory device during host-resident FTL operation of the environment 100.

[0026] The memory manager 125 may include, among other things, circuitry or firmware, such as several components or integrated circuits associated with various memory management functions. For purposes of the present description, example memory operations and management functions will be described in the context of NAND memory. Those skilled in the art will recognize that other forms of non-volatile memory may have similar memory operations or management functions. Such NAND management functions include wear leveling (e.g., garbage collection or recycling), error detection (e.g., BER monitoring) or correction, block retirement, or one or more other memory management functions. The memory manager 125 may parse or format host commands (e.g., commands received from a host) into device commands (e.g., commands associated with the operation of a memory array, etc.), or generate device commands for the device controller 135 or one or more other components of the memory device 110 (e.g., to implement various memory management functions).

[0027] The memory manager 125 may include a set of management tables 130 configured to maintain various information associated with one or more components of the memory device 110 (e.g., various information associated with a memory array or one or more memory cells coupled to the memory controller 115 and which may include an FTL table). For example, the management table 130 may include information about FTL mapping information of one or more memory cell blocks coupled to the memory controller 115, block age, block erase count, error history, error parameter information, host reset timeout value, memory operation command latency, or one or more error counts (e.g., write operation error count, read bit error count, read operation error count, erase error count, etc.). In some examples, if the number of errors detected for one or more of the error counts (e.g., error parameters) is higher than a threshold value (e.g., an allowable error threshold), the bit error may be referred to as an uncorrectable bit error. The management table 130 may, in particular, maintain counts of correctable or uncorrectable bit errors.

[0028] The memory array 120 may include a plurality of memory cells arranged in, for example, a number of devices, planes, sub-blocks, blocks, or pages. As an example, a 48GB TLC NAND memory device may include 18,592 bytes of data per page (16,384+2208 bytes), 1536 pages per block, 548 blocks per plane, and 4 or more planes per device. As another example, a 32GB MLC memory device (storing two data bits per cell (i.e., 4 programmable states)) may include 18,592 bytes (B) of data per page (16,384+2208 bytes), 1024 pages per block, 548 blocks per plane, and 4 planes per device, but with half the write time and twice the program / erase (P / E) cycles required compared to a corresponding TLC memory device. Other examples may include other quantities or arrangements. In some examples, a memory device or portion thereof may be selectively operated in an SLC mode or in a desired MLC mode (such as TLC, QLC, etc.).

[0029] In operation, data is typically written to or read from the memory device 110 in pages and erased in blocks. However, one or more memory operations (e.g., read, write, erase, etc.) may be performed on larger or smaller groups of memory cells as desired. The data transfer size of the memory device 110 is typically referred to as a page, while the data transfer size of the host is typically referred to as a sector.

[0030] Different types of memory cells or memory arrays 120 may provide different page sizes, or may require different amounts of metadata associated therewith. For example, different memory device types may have different bit error rates, which may result in different amounts of metadata being required to ensure the integrity of a page of data (e.g., a memory device with a higher bit error rate may require more bytes of error correction code data than a memory device with a lower bit error rate). As an example, an MLC NAND flash device may have a higher bit error rate than a corresponding single-level cell (SLC) NAND flash device. Thus, an MLC device may require more bytes of metadata for erroneous data than a corresponding SLC device.

[0031] Figure 2 A flowchart of an example method 200 for implementing memory operations at a flash memory system using aspects of a host-resident FTL is generally shown. In some instances, the method can help verify that a physical address received from a host corresponds to an LBA provided by the host. Without some form of verification, a malicious host can provide an LBA and an unrelated physical address, which can result in accessing flash memory data that is not intended to be accessible by the host or is not intended to be accessed by the host using a specific host memory request received at the memory system. At 201, the memory system can receive a host memory request including an LBA and a representation of a physical address during a host-resident FTL operating mode. The LBA represents a memory location within the host's memory system. The physical address represents a memory location within the flash memory of the flash memory system. Outside of the host-resident FTL operating mode, a memory controller of the flash memory system can use mapping information within a cache memory of the memory controller or use a complete mapping table stored on the flash memory of the flash memory system to locate the physical address of the mapped received LBA. During the host-resident FTL operating mode, the host can provide a mapped physical address associated with the LBA or a representation thereof. In some cases, providing the mapped physical address can reduce the frequency with which the memory controller retrieves memory information from the flash memory of the flash memory system. Accessing the flash memory to retrieve the memory mapping information can significantly reduce the performance of the host's memory operations, and therefore, reducing the frequency with which the memory controller retrieves the memory mapping information can significantly enhance the performance of the host's memory requests.

[0032] To prevent unintended or malicious access to a restricted area of ​​the flash memory of the memory system, a key of the flash memory system may be used to decrypt the representation of the physical address at 203. In some examples, the flash memory system may include cryptographic circuitry. In some examples, the cryptographic circuitry may be part of a memory controller. The cryptographic circuitry may be implemented in hardware, firmware, software, or a combination thereof.

[0033] At 205, the decrypted physical address may be verified as a valid physical address for the flash memory system for the memory request. In some examples, the verification may include locating the LBA in a cache of the memory controller and comparing the decrypted physical address to a physical address mapped to the LBA. Regardless of whether the LBA is located within the cache of the memory controller, the memory controller may compare the decrypted physical address to a table including address regions not limited to the memory request and verify that the decrypted physical address is within one of the address regions.

[0034] At 207, when the memory controller has verified that the decrypted physical address is a valid physical address for the memory request, the memory controller may use the decrypted physical address to execute the memory request. When the memory controller fails to verify that the decrypted physical address is a valid physical address for the memory request, the memory controller does not use the decrypted physical address to execute the memory request.

[0035] At 209, when the memory controller fails to verify that the decrypted physical address is a valid physical address for the memory request, the memory controller does not use the decrypted physical address to execute the memory request. At 211, the memory controller may optionally return an error indication to the host. At 213, when the memory controller fails to verify that the decrypted physical address is a valid physical address for the memory request, the memory controller may optionally use mapping information stored and maintained in a cache or flash memory of the flash memory system to retrieve the correct physical address associated with the LBA, and then at 213, use the correct physical address to execute the memory request. In some instances, the LBA may be verified as a valid LBA at the memory system. Such verification may include comparing the received LBA with an entry in a table of valid LBAs. If the received LBA does not match an entry in a table of valid LBAs, the memory controller may ignore the memory request, return an error indication, or a combination thereof.

[0036] In some examples, the mapping information provided to the host for use during the host resident FTL operating mode is provided by the memory device.Before providing the mapping information to the host, the memory controller of the flash memory system may encrypt the physical addresses and provide an encrypted representation of each physical address in place of the actual physical address. Figure 3A flow chart of an example method 300 for providing mapping information from a flash memory system to a host is generally shown. A memory controller may generate mapping information as a memory request received from a host. The mapping information may be quite large so that it is stored on the flash memory along with the stored data. In some instances, the mapping information may be stored in a table, wherein a record in the table includes an LBA associated with a memory location of the host, and a physical address associated with a memory location of the flash memory system mapped to the LBA. At 301, a memory controller, or a cryptographic circuit of the memory controller, may receive a mapping table record. The mapping table record may include an LBA and a physical address of the flash memory system mapped to the LBA. In some instances, when the host makes a memory request for the flash memory system, the memory controller maps each LBA of the host to a corresponding physical address of the flash memory system.

[0037] At 301, a cryptographic circuit may receive mapping information, such as a mapping record of a mapping table including an LBA of a host and a physical address of a flash memory system mapped to the LBA. The cryptographic circuit may be part of a flash memory system. In some instances, the cryptographic circuit may be part of a memory controller of the flash memory system. At 303, the cryptographic circuit may apply an encryption algorithm to a physical address using a token. In some instances, the token may be hard-coded in a non-volatile memory of the flash memory system. Application of the encryption algorithm produces an encrypted version of the physical address. At 305, the physical address of the mapping record may be replaced with the encrypted version of the physical address. At 307, the mapping information may be transmitted to the host for use during a host-resident FTL operating mode of a system including a host and a flash memory system. The mapping information may include a mapping record including an LBA and a corresponding encrypted version of the physical address to the LBA.

[0038] Figure 4A block diagram of an example machine 400 on which any one or more of the techniques (e.g., methods) discussed herein may be executed is shown. In alternative embodiments, the machine 400 may act as a standalone device or may be connected (e.g., networked) to other machines. In a networked deployment, the machine 400 may operate in the capacity of a server, a client, or both in a server-client network environment. In one example, the machine 400 may act as a peer machine in a peer-to-peer (P2P) (or other distributed) network environment. The machine 400 may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a mobile phone, a network appliance, an IoT device, an automotive system, or any machine capable of executing (sequentially or otherwise) instructions specifying actions to be taken by the machine. In addition, although only a single machine is shown, the term "machine" should also be deemed to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to implement any one or more of the methods discussed herein, such as cloud computing, software as a service (SaaS), and other computer cluster configurations.

[0039] As described herein, an example may include logic, components, devices, packages, or mechanisms, or may be operated by logic, components, devices, packages, or mechanisms. A circuit system is a collection (e.g., a set) of circuits implemented in a tangible entity including hardware (e.g., simple circuits, gates, logic, etc.). The members of the circuit system may be flexible over time and as the underlying hardware changes. The circuit includes components that can perform specific tasks individually or in combination when operated. In an example, the hardware of the circuit system may be designed in an unchangeable manner to perform specific operations (e.g., hard-wired). In an example, the hardware of the circuit may include variably connected physical components (e.g., execution units, transistors, simple circuits, etc.), including a computer-readable medium that is physically modified (e.g., magnetically, electrically, removably placed with constant aggregate particles, etc.) to encode instructions for specific operations. When connecting physical components, the fundamental electrical properties of the hardware components are changed, such as from an insulator to a conductor, or vice versa. The instructions enable participating hardware (e.g., an execution unit or loading mechanism) to create a circuit system component in hardware via a variable connection to perform a portion of a specific task when in operation. Thus, the computer-readable medium is communicatively coupled to other components of the circuit system when the device is operating. In an example, any one of the physical components can be used in more than one component in more than one circuit. For example, in operation, an execution unit can be used in a first circuit of a first circuit system at one point in time and reused by a second circuit in the first circuit system, or reused by a third circuit in the second circuit system at a different time.

[0040] A machine (e.g., a computer system) 400 (e.g., a host 105, a memory device 110, etc.) may include a processing device 402 (e.g., a hardware processor, a central processing unit (CPU), a graphics processing unit (GPU), a hardware processor core, or any combination thereof, such as a memory controller of the memory device 110, etc.), a main memory 404 (e.g., a read-only memory (ROM), a flash memory, a dynamic random access memory (DRAM), such as a synchronous DRAM (SDRAM) or a Rambus DRAM (RDRAM)), etc.), a static memory 406 (e.g., a flash memory, a static random access memory (SRAM), etc.), and a data storage system 418, some or all of which may communicate with each other via an interconnect link (e.g., a bus) 430.

[0041] Processing device 402 may represent one or more general-purpose processing devices, such as a microprocessor, a central processing unit, etc. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. Processing device 402 may also be one or more special-purpose processing devices, such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, etc. Processing device 402 may be configured to execute instructions 426 for implementing the operations and steps discussed herein. Computer system 400 may further include a network interface device 408 to communicate via a network 420.

[0042] The data storage system 418 may include a machine-readable storage medium 424 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 426 or software embodying any one or more of the methods or functions described herein. The instructions 426 may also reside completely or at least partially within the main memory 404 and / or within the processing device 402 during execution thereof by the computer system 400, with the main memory 404 and the processing device 402 also constituting machine-readable storage media. The machine-readable storage medium 424, the data storage system 418, or the main memory 404 may correspond to Figure 1 A memory device 110 is provided.

[0043] In one embodiment, the instructions 426 include instructions for implementing the instructions corresponding to the implementation of the above Figure 2 or Figure 3Instructions for the functionality of one or more host-resident FTL operations discussed. Although the machine-readable storage medium 424 is shown as a single medium in the example implementation, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for machine execution and causing the machine to perform any one or more of the methods disclosed herein. Therefore, the term "computer-readable medium" will be used to include but not limited to solid-state memory, optical media, and magnetic media. In one example, the large-capacity machine-readable medium includes a machine-readable medium having a plurality of particles, the particles having a constant (e.g., stationary) mass. Therefore, the large-capacity machine-readable medium is not a temporary propagating signal. Specific examples of large-capacity machine-readable media may include: non-volatile memory, such as semiconductor memory devices (e.g., electrically programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM)) and flash memory devices; disks, such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks.

[0044] The machine 400 may further include a display unit, an alphanumeric input device (e.g., a keyboard), and a user interface (UI) navigation device (e.g., a mouse). In an example, one or more of the display unit, the input device, or the UI navigation device may be a touch screen display. The machine includes a signal generating device (e.g., a speaker), or one or more sensors, such as a global positioning system (GPS) sensor, a compass, an accelerometer, or one or more other sensors. The machine 400 may include an output controller, such as a serial (e.g., a universal serial bus (USB), parallel or other wired or wireless (e.g., infrared (IR), near field communication (NFC), etc.) connection to communicate with or control one or more peripheral devices (e.g., a printer, a card reader, etc.).

[0045] Instructions 426 (e.g., software, programs, operating systems (OS), etc.) or other data stored on data storage devices 418 can be accessed by main memory 404 for use by processing device 402. Main memory 404 (e.g., DRAM) is typically fast but volatile, and is therefore a different type of storage device than data storage devices 418 (e.g., SSDs) that are suitable for long-term storage (including when in a "power-off" condition). Instructions 426 or data for use by a user or machine 400 are typically loaded in main memory 404 for use by processing device 402. When main memory 404 is full, virtual space from data storage devices 418 can be allocated to supplement main memory 404; however, because data storage devices 418 devices are typically slower than main memory 404, and write speeds are typically at least twice slower than read speeds, the use of virtual memory may greatly reduce the user experience due to storage device latency (compared to main memory 404, e.g., DRAM). In addition, the use of data storage devices 418 for virtual memory may greatly reduce the usable service life of data storage devices 418.

[0046] Compared to virtual memory, virtual memory compression (e.g. The kernel feature "ZRAM") uses portions of memory as compressed block storage to avoid paging to the data storage device 418. Paging occurs in compressed blocks until it is necessary to write such data to the data storage device 418. Virtual memory compression increases the available size of the main memory 404 while reducing the wear and tear on the data storage device 418.

[0047] Memory devices optimized for mobile electronic devices or mobile storage devices traditionally include MMC solid-state memory devices (e.g., micro Secure Digital (microSD TM ) card, etc.). MMC devices include several parallel interfaces (e.g., 8-bit parallel interfaces) with a host (e.g., a host device), and are typically components that can be removed from and separated from the host. In contrast, eMMC TM The device is attached to the board and is seen as a component of the host computer, and can be read at speeds comparable to Serial ATA-based TM (Serial AT (Advanced Technology) Attachment, or SATA) SSD devices. However, the demand for mobile device performance continues to increase in order to fully enable virtual or augmented reality devices, take advantage of increased network speeds, etc. In response to this demand, storage devices have transitioned from parallel communication interfaces to serial communication interfaces. Universal Flash Storage (UFS) devices, which include a controller and firmware, use a low-voltage differential signaling (LVDS) serial interface with a dedicated read / write path to communicate with the host, further promoting higher read / write speeds.

[0048] Instructions 426 may further be transmitted or received over network 420 using a transmission medium via network interface device 408 using any of a number of transmission protocols (e.g., frame relay, Internet Protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc.). Example communication networks may include local area networks (LANs), wide area networks (WANs), packet data networks (e.g., the Internet), mobile telephone networks (e.g., cellular networks), plain old telephone (POTS) networks, and wireless data networks (e.g., the Institute of Electrical and Electronics Engineers (IEEE) 802.11 series of standards, known as IEEE 802.16 series of standards, known as ), IEEE 802.15.4 family of standards, peer-to-peer (P2P) networks, etc. In one example, the network interface device 408 may include one or more physical jacks (e.g., Ethernet, coaxial, or telephone jacks) or one or more antennas to connect to the network 420. In one example, the network interface device 408 may include multiple antennas to wirelessly communicate using at least one of single-input multiple-output (SIMO), multiple-input multiple-output (MIMO), or multiple-input single-output (MISO) technology. The term "transmission media" should be taken to include any intangible media capable of storing, encoding, or carrying instructions for execution by the machine 400, and includes digital or analog communication signals or other intangible media to facilitate the communication of such software.

[0049] Additional Notes and Examples

[0050] Example 1 is a method comprising: receiving, at a memory system, a memory request from a host, the memory request comprising a logical block address (LBA) associated with the host and a first representation of a physical address associated with the memory system; at a decryption circuit, decrypting the first representation of the physical address using a key of the memory system to provide a second representation of the physical address; and executing the memory request using the second representation.

[0051] In example 2, the subject matter of example 1, wherein decrypting the first representation of the physical address includes applying a decryption algorithm to the first representation using the key to provide a decrypted representation of the first representation.

[0052] In Example 3, the subject matter of Example 2, wherein decrypting the first representation of the physical address includes: determining that the decrypted representation is a valid physical address for the memory system; and setting the second representation equal to the decrypted representation of the first representation of the physical address.

[0053] In Example 4, the subject matter of any of Examples 2 to 3, wherein decrypting the first representation of the physical address includes: determining that the decrypted representation is not a valid physical address of the memory system; using memory system resident mapping information to determine a correct physical address of the memory system associated with the LBA received from the host; and setting the second representation to be equal to the correct physical address.

[0054] In example 5, the subject matter of example 4, wherein determining the correct physical address and setting the second representation comprises searching a cache of the memory system for the LBA.

[0055] In example 6, according to the subject matter of example 5, when the LBA is located in the cache, retrieving the correct physical address from the cache.

[0056] In Example 7, according to the subject matter of any of Examples 5-6, when the LBA is not located in the cache, retrieving mapping information including the LBA from a flash memory of the memory system to the cache.

[0057] In Example 8, the subject matter of any of Examples 1-7 includes mapping the physical address to a logical block address at the memory system.

[0058] In example 9, the subject matter of example 8 includes encrypting, at the memory system, the physical address to provide the first representation.

[0059] In example 10, the subject matter of example 9 comprises transmitting mapping information from the memory system to the host, wherein the mapping information comprises the LBA and the first representation of the physical address.

[0060] In example 11, the subject matter of example 10, wherein transferring mapping information from the memory system to the host comprises transferring mapping information from the memory system to the host before receiving a memory request from the host at the memory system.

[0061] Example 12 is a memory device comprising: a cache configured to maintain a portion of a mapping table of the memory device; a flash memory configured to store and retrieve user data of a host and to store the mapping table of the memory device; and a controller configured to: receive a memory request from a host, the memory request including a logical block address (LBA) associated with the host and a first representation of a physical address associated with the memory device; decrypt the first representation of the physical address using a key of the memory device at a decryption circuit to provide a second representation of the physical address; and execute the memory request using the second representation.

[0062] In Example 13, the subject matter of Example 12, wherein the controller is configured to receive an indication of a performance-enhanced operating mode at the memory device prior to receiving the memory request including the LBA and the first representation.

[0063] In Example 14, the subject matter of any of Examples 12-13 includes the decryption circuit; and wherein the decryption circuit is configured to apply a decryption algorithm to the first representation using the key to provide a decrypted representation of the first representation.

[0064] In Example 15, the subject matter of Example 14, wherein the controller is configured to determine that the decrypted representation is a valid physical address of the memory device and to set the second representation equal to the decrypted representation of the first representation of the physical address.

[0065] In Example 16, the subject matter of any of Examples 14 to 15, wherein the controller is configured to determine that the decrypted representation is not a valid physical address of the memory device, use mapping information of the cache or the flash memory to determine a correct physical address of the memory device associated with the LBA received from the host, and set the second representation equal to the correct physical address.

[0066] In Example 17, the subject matter of Example 16, wherein the controller is configured to search a cache of the memory device for the LBA when the decrypted representation is not a valid physical address of the memory device.

[0067] In Example 18, the subject matter of Example 17, wherein when the LBA is located in the cache, the controller is configured to retrieve the correct physical address from the cache.

[0068] In Example 19, the subject matter of any of Examples 12-18, wherein when the LBA is not located in the cache, the controller is configured to retrieve mapping information from the flash memory to the cache that includes the LBA.

[0069] In Example 20, the subject matter of any of Examples 12-19, wherein the controller is configured to map the physical address to the logical block address.

[0070] In Example 21, the subject matter of Example 20, wherein the controller includes an encryption circuit configured to encrypt the physical address to provide the first representation.

[0071] In Example 22, the subject matter of Example 21, wherein the controller is configured to communicate mapping information to the host, wherein the mapping information includes the LBA and the first representation of the physical address.

[0072] Example 23 is at least one machine-readable medium comprising instructions that, when executed by processing circuitry, cause the processing circuitry to operate to implement any of Examples 1-22.

[0073] Example 24 is a device comprising means for implementing any of Examples 1-22.

[0074] Example 25 is a system for implementing any of Examples 1-22.

[0075] Example 26 is a method of implementing any of Examples 1-22.

[0076] The above detailed description includes reference to the accompanying drawings, which form part of the detailed description. The drawings illustrate by means of diagrams specific embodiments in which the present invention can be practiced. These embodiments are also referred to as "examples" in this article. Such examples may include elements other than those shown or described. However, the inventors also contemplate examples in which only those elements shown or described are provided. In addition, the inventors also contemplate examples (or one or more aspects thereof) of any combination or arrangement of those elements shown or described with respect to a specific example (or one or more aspects thereof) or with respect to other examples (or one or more aspects thereof) shown or described herein.

[0077] In this document, as is common in patent literature, the term "a" is used to include one or more than one, which is independent of any other examples or uses of "at least one" or "one or more". In this document, the term "or" is used to refer to a non-exclusive or, so that unless otherwise indicated, "A or B" may include "A but not B", "B but not A" and "A and B". In the appended claims, the terms "including" and "in which" are used as colloquial equivalents of the corresponding terms "including" and "wherein". Similarly, in the appended claims, the terms "including" and "including" are open-ended. A system, device, article or process that includes elements in addition to the elements listed after such terms in the claims is still deemed to belong to the scope of the claims. In addition, in the appended claims, the terms "first", "second" and "third" and the like are used only as markers and are not intended to impose numerical requirements on their objects.

[0078] In various examples, the components, controllers, processors, units, engines, or tables described herein may include, among other things, physical circuitry or firmware stored on a physical device. As used herein, "processor" means any type of computing circuit, such as, but not limited to, a microprocessor, a microcontroller, a graphics processor, a digital signal processor (DSP), or any other type of processor or processing circuit, including a processor or a multi-core device group.

[0079] As used herein, operating a memory cell includes reading from the memory cell, writing to the memory cell, or erasing the memory cell. The operation of placing a memory cell in a given state is referred to herein as "programming," and may include both writing to or erasing a memory cell (e.g., a memory cell may be programmed to an erased state).

[0080] According to one or more embodiments of the present disclosure, a memory controller (e.g., a processor, a controller, firmware, etc.) located inside or outside a memory device is capable of determining (e.g., selecting, setting, adjusting, calculating, changing, clearing, transferring, adapting, deriving, defining, utilizing, modifying, applying, etc.) a certain number of wear cycles or wear states (e.g., recording wear cycles, counting operations of the memory device as they occur, tracking operations of the memory device from which they originate, evaluating memory device characteristics corresponding to wear states, etc.).

[0081] According to one or more embodiments of the present disclosure, a memory access device may be configured to provide wear cycle information to a memory device with respect to each memory operation. A memory device control circuit (e.g., control logic) may be programmed to compensate for memory device performance changes corresponding to the wear cycle information. The memory device may receive the wear cycle information and determine one or more operating parameters (e.g., values, characteristics) in response to the wear cycle information.

[0082] The method examples described herein may be implemented at least in part by a machine, device, or computer. Some examples may include a computer-readable medium, a device-readable medium, or a machine-readable medium encoded with instructions, which may be operable to configure an electronic device to perform a method as described in the above examples. The implementation of such methods may include code, such as microcode, assembly language code, high-level language code, and the like. Such code may include computer-readable instructions for performing various methods. The code may form part of a computer program product. In addition, the code may be tangibly stored on one or more volatile or non-volatile tangible computer-readable media, such as during execution or at other times. Examples of these tangible computer-readable media may include, but are not limited to: a hard disk, a removable disk, a removable optical disk (e.g., a compact disc and a digital video disc), a cassette, a memory card or stick, a random access memory (RAM), a read-only memory (ROM), a solid-state drive (SSD), a universal flash storage (UFS) device, an embedded MMC (eMMC) device, and the like.

[0083] The above description is intended to be illustrative and not restrictive. For example, the examples described above (or one or more aspects thereof) may be used in combination with each other. Other embodiments may be used by a person of ordinary skill in the art after consulting the above description. The abstract is submitted with the following understanding: it will not be used to interpret or limit the scope or meaning of the claims. In addition, in the above specific embodiments, various features may be grouped together to simplify the present disclosure. This should not be interpreted as an expectation that the disclosed features that are not required are necessary for any claim. In fact, the subject matter of the invention may be less than all the features of a specific disclosed embodiment. Therefore, the attached claims are hereby incorporated into the specific embodiments, wherein each claim exists independently as a separate embodiment, and it is expected that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present invention should be determined by reference to the attached claims and the full scope of equivalents granted by the claims.

Claims

1. A method for performing a memory operation, comprising: receiving, at a memory system, a memory request from a host, the memory request including a logical block address (LBA) associated with the host and a first representation of a physical address associated with the memory system; At a decryption circuit, decrypting the first representation of the physical address using a key of the memory system to provide a second representation of the physical address, wherein decrypting the first representation of the physical address comprises: applying a decryption algorithm to the first representation using the key to provide a decrypted representation of the first representation; determining that the decrypted representation is not a valid physical address of the memory system; using memory system resident mapping information to determine a correct physical address of the memory system associated with the LBA received from the host; and setting the second representation equal to the correct physical address; and The memory request is performed using the second representation.

2. The method of claim 1, wherein determining a correct physical address and setting the second representation comprises searching a cache of the memory system for the LBA.

3. The method of claim 2, retrieving the correct physical address from the cache when the LBA is located in the cache. 4 . The method of claim 2 , when the LBA is not located in the cache, retrieving mapping information including the LBA from a flash memory of the memory system to the cache.

5. The method of claim 1, comprising mapping the physical address to the logical block address at the memory system.

6. The method of claim 5, comprising encrypting the physical address at the memory system to provide the first representation.

7. The method of claim 6, comprising transmitting mapping information from the memory system to the host, wherein the mapping information comprises the LBA and the first representation of the physical address.

8. The method of claim 7, wherein transferring mapping information from the memory system to the host comprises transferring mapping information from the memory system to the host prior to the receiving, at the memory system, of a memory request from a host.

9. A memory device comprising: a cache configured to hold a portion of a mapping table of the memory device; a flash memory configured to store and retrieve user data of a host and to store the mapping table of the memory device; as well as A controller configured to: receiving a memory request from a host, the memory request comprising a logical block address (LBA) associated with the host and a first representation of a physical address associated with the memory device; decrypting the first representation of the physical address using a key of the memory device at a decryption circuit to apply a decryption algorithm to the first representation to provide a decrypted representation of the first representation; determining that the decrypted representation is not a valid physical address of the memory device; determining a correct physical address of the memory device associated with the LBA received from the host using mapping information of the cache or the flash memory, and setting a second representation equal to the correct physical address; as well as The memory request is performed using the second representation.

10. The memory device of claim 9, wherein the controller is configured to receive an indication of a performance-enhanced operating mode at the memory device prior to receiving the memory request including the LBA and the first representation.

11. The memory device of claim 9, wherein the controller is configured to search a cache of the memory device for the LBA when the decrypted representation is not a valid physical address of the memory device.

12. The memory device of claim 11, wherein when the LBA is located in the cache, the controller is configured to retrieve the correct physical address from the cache.

13. The memory device of claim 9, wherein when the LBA is not located in the cache, the controller is configured to retrieve mapping information including the LBA from the flash memory to the cache.

14. The memory device of claim 9, wherein the controller is configured to map the physical address to the logical block address.

15. The memory device of claim 14, wherein the controller includes an encryption circuit configured to encrypt the physical address to provide the first representation of the physical address to the host.

16. The memory device of claim 15, wherein the controller is configured to communicate mapping information to the host, wherein the mapping information includes the LBA and the first representation of the physical address.