CN-122003658-A - Memory system, operation method thereof, system and storage medium
Abstract
The embodiment of the disclosure provides a memory system, an operation method thereof, a system and a storage medium, wherein the memory system comprises a memory and a memory controller coupled with the memory, the memory controller is configured to control the memory to store in regions, wherein a storage space of a single region is configured to support sequential writing, the memory controller is configured with a first interface for coupling with a host and receives a first command from the host through the first interface, the first command comprises an identification of the designated region and mode switching information of the designated region, and the memory controller is further configured to switch a storage mode of the designated region to a target storage mode indicated in the mode switching information according to the mode switching information.
Inventors
- WANG YUETAN
- MA YUE
- CAO KAIYAO
Assignees
- 长江存储科技有限责任公司
Dates
- Publication Date
- 20260508
- Application Date
- 20240806
Claims (20)
- A memory system, comprising: A memory and a memory controller coupled to the memory, the memory controller configured to control the memory to store in regions, wherein a memory space of a single region is configured to support sequential writing; The memory controller is configured with a first interface for coupling with a host and receives a first command from the host through the first interface, wherein the first command comprises an identification of a designated area and mode switching information of the designated area, and the memory controller is further configured to switch a storage mode of the designated area to a target storage mode indicated in the mode switching information according to the mode switching information.
- The memory system according to claim 1, wherein the memory controller is configured to determine a current storage mode of the specified area, and switch the current storage mode to the target storage mode according to the mode switching information if the current storage mode and the target storage mode indicated in the mode switching information are different.
- The memory system according to claim 1 or 2, wherein the storage modes include a first storage mode and a second storage mode, wherein each of the storage units corresponding to the storage space of the area can be written with N-bit data when the area is in the first storage mode, and wherein each of the storage units corresponding to the storage space of the area can be written with M-bit data when the area is in the second storage mode, M and N being integers greater than or equal to 1, M being greater than N.
- The memory system of claim 3, wherein the memory controller is configured to determine the designated area based on an identification of the designated area; And switching the designated area from the first storage mode to the second storage mode according to the mode switching information, or switching the designated area from the second storage mode to the first storage mode according to the mode switching information.
- The memory system of claim 3 wherein the memory controller is further configured to receive an area write request and write data through the first interface, the area write request to indicate an area in which the write data is written to a storage mode that is a first storage mode if the write data is hot data, the area write request to indicate an area in which the write data is written to a storage mode that is a second storage mode if the write data is non-hot data, and to write the write data to a storage space of the corresponding area according to the area write request.
- The memory system of claim 1, wherein the memory controller is configured to reset the state of the designated region to an empty state in accordance with the first command.
- The memory system of claim 1, wherein the first command comprises a reset write pointer command, the mode switch information occupying two bit fields in the reset write pointer command.
- The memory system of claim 1, wherein the region is a region in a region namespace (ZNS).
- The memory system of claim 1 wherein the memory controller is further configured to receive a second command through the first interface, the second command including mode reply information indicating whether a return to store mode information is required, and And generating report area parameter data meeting the indication of the mode reply information according to the second command.
- The memory system according to claim 9, wherein the memory controller is configured to generate the report area parameter data including the storage mode information according to the second command in a case where the mode reply information indicates that storage mode information needs to be returned.
- The memory system of claim 10, wherein the storage mode information is located in a region descriptor in the reporting region parameter data.
- The memory system of claim 11, wherein the storage mode information occupies four bit fields in the region descriptor.
- The memory system of claim 11, wherein the reporting region parameter data comprises a region descriptor list including at least one of the region descriptors indicating self-properties of the corresponding region and a common descriptor indicating common properties of a plurality of the regions.
- The memory system of claim 11, wherein the region descriptor further comprises a region type field, a region status field, a region length field, a region start logical block address field, a write pointer logical block address field.
- The memory system of claim 13, wherein the common descriptor includes a region list length field, a same field, a maximum logical block address field, and the like.
- The memory system of claim 9, wherein the second command comprises a report area command.
- A system comprising a memory system and a host, wherein The memory system includes: A memory and a memory controller coupled to the memory, the memory controller configured to control the memory to store in regions, wherein a memory space of a single region is configured to support sequential writing; Wherein the memory controller is configured with a first interface for coupling with the host and receives a first command from the host through the first interface, the first command including an identification of a specified region and mode switching information of the specified region; The host includes a host controller and a second interface for coupling with the memory controller, the host controller is configured to generate the first command and send the first command to the memory controller through the second interface.
- The system of claim 17, wherein the memory controller is further configured to switch the storage mode of the specified region to the target storage mode indicated in the mode switch information according to the mode switch information.
- The system of claim 18, wherein the memory controller is configured to: And determining a current storage mode of the designated area, and switching the current storage mode to the target storage mode according to the mode switching information when the current storage mode and the target storage mode indicated in the mode switching information are different.
- The system of claim 17 or 18, wherein the storage modes include a first storage mode and a second storage mode, wherein each of the storage units corresponding to the storage space of the region is capable of being written with N-bit data when the region is in the first storage mode, and wherein each of the storage units corresponding to the storage space of the region is capable of being written with M-bit data when the region is in the second storage mode, M and N being integers greater than or equal to 1, M being greater than N.
Description
Memory system, operation method thereof, system and storage medium Technical Field Embodiments of the present disclosure relate to the field of semiconductor technologies, and in particular, to a memory system, and an operating method, system and storage medium thereof. Background Memory and its systems are storage devices used in modern information technology to hold information. With the increasing demands of people on storage devices, there are many spaces for memories and systems thereof to be lifted. Content of the application The embodiment of the disclosure provides a memory system, an operation method thereof, a system and a storage medium. In a first aspect, embodiments of the present disclosure provide a memory system comprising a memory and a memory controller coupled to the memory, the memory controller configured to control the memory to store in zones, wherein a storage space of a single zone is configured to support sequential writing, wherein the memory controller is configured with a first interface for coupling to a host and to receive a first command from the host via the first interface, the first command comprising an identification of the specified zone and mode switching information of the specified zone, and the memory controller is further configured to switch a storage mode of the specified zone to a target storage mode indicated in the mode switching information according to the mode switching information. In the above scheme, the memory controller is configured to determine a current storage mode of the designated area, and switch the current storage mode to the target storage mode according to the mode switching information in a case where the current storage mode and the target storage mode indicated in the mode switching information are different. In the scheme, the storage modes comprise a first storage mode and a second storage mode, each storage unit corresponding to the storage space of the area can be written with N-bit data when the area is in the first storage mode, and each storage unit corresponding to the storage space of the area can be written with M-bit data when the area is in the second storage mode, M and N are integers which are larger than or equal to 1, and M is larger than N. In the above scheme, the memory controller is configured to determine the designated area according to the identification of the designated area, switch the designated area from the first storage mode to the second storage mode according to the mode switching information, or switch the designated area from the second storage mode to the first storage mode according to the mode switching information. In the scheme, the memory controller is further configured to receive an area writing request and writing data through the first interface, if the writing data is hot data, the area writing request is used for indicating that the writing data is written into an area with a storage mode being a first storage mode, if the writing data is non-hot data, the area writing request is used for indicating that the writing data is written into an area with a storage mode being a second storage mode, and the writing data is written into a storage space of the corresponding area according to the area writing request. In the above scheme, the memory controller is configured to reset the state of the designated area to the empty state according to the first command. In the above scheme, the first command includes a reset write pointer command, and the mode switching information occupies two bit fields in the reset write pointer command. In the above scheme, the region is a region in a region namespace (ZNS). In the above scheme, the memory controller is further configured to receive a second command through the first interface, the second command including mode reply information indicating whether the mode information needs to be returned for storage, and generate reporting area parameter data satisfying the indication of the mode reply information according to the second command. In the above scheme, the memory controller is configured to generate reporting area parameter data including the storage mode information according to the second command in the case that the mode reply information is used for indicating that the storage mode information needs to be returned. In the above scheme, the storage mode information is located in the region descriptor in the report region parameter data. In the above scheme, the storage mode information occupies four bit fields in the region descriptor. In the scheme, the report area parameter data comprises an area descriptor list and a public descriptor, wherein the area descriptor list comprises at least one area descriptor, the area descriptor is used for indicating the self attribute of the corresponding area, and the public descriptor is used for indicating the public attribute of a plurality of areas. In the above solution, the area descriptor further includes an