Memory system and host device
The memory system addresses the challenge of stable long-term stream recording by using a controller that initializes interfaces with the host to set power states based on predefined configurations and power limits, enhancing temperature management and performance stability.
Patent Information
- Application Number
- JP2023038700
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing memory systems face challenges in performing stable stream recording for long periods due to difficulties in selecting appropriate power states and managing temperature during data transfer, especially with the PCIe/NVMe interface.
The memory system includes a controller that performs interface initialization cooperatively with the host, determines maximum supportable performance, and sets power states based on predefined configurations and power consumption limits, with additional power state sets for stream recording to stabilize performance and temperature.
This approach enables stable stream recording over extended periods by dynamically adjusting power states and temperature management, ensuring consistent performance and preventing overheating.
Smart Images

Figure 2024129470000001
Abstract
Description
[Technical field]
[0001] SUMMARY OF THE DISCLOSURE The present invention relates to a memory system and a host device. [Background technology]
[0002] In recent years, various memory cards have become popular. One type of memory card is the SD TM The card is known. SD TM SD Express as defined by the standard TM Cards conform to SD Express specifications TM The card is PCI Express TM (PCIe TM ) standard compliant interface (link) to connect to the host and NVM Express TM (NVMe TM It communicates with the host to write or read data using a protocol that complies with the NI 6115-1 / 2000 Serial Peripheral Interface (SPI) standard.
[0003] Recently, SD Express TM There is an increasing demand for cards that enable stable long-term streaming such as video recording. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] U.S. Pat. No. 1,104,1763 [Patent Document 2] US Patent Application Publication No. 2021 / 0081120 [Patent Document 3] U.S. Pat. No. 11,500,447 Summary of the Invention [Problem to be solved by the invention]
[0005] One embodiment provides a memory system and a host device capable of stably performing stream recording for a long period of time. [Means for solving the problem]
[0006] According to an embodiment, a memory system includes a non-volatile memory and a controller. The controller is a PCI Express TM (PCIe TM ) standard and can be connected to a host via an interface that complies with the NVM Express TM (NVMe TM The controller can communicate with the host to write or read data using a protocol that complies with the NVMe standard, and controls the non-volatile memory. The controller executes interface initialization in cooperation with the host, and determines the maximum supportable performance from among multiple performances that are predefined for stream recording based on the interface bus configuration determined by the interface initialization and the maximum allowable power consumption set during the interface initialization, and TM A power state set is generated, which is a data set to be stored in a power state register defined by a standard, and which corresponds each of all performances up to a determined maximum performance among a plurality of performances to a power state in order to present a list of supportable performances to the host. [Brief description of the drawings]
[0007] [Figure 1] FIG. 2 is a diagram showing an example of the configuration of a memory device according to the embodiment. [Diagram 2] FIG. 1 is a diagram for explaining the principle of determining the configuration of an interface that complies with the PCIe™ standard under the SD Express™ specifications defined in the SDTM standard. [Diagram 3] FIG. 1 is a diagram showing an example of performance allocation for each interface configuration that can be assumed in the SD Express™ specification defined in the SDTM standard. [Figure 4]FIG. 13 is a diagram showing an example of implementation of a memory device based on the calculation results of the maximum performance (class) for a combination of an interface configuration and maximum allowable power. [Diagram 5] FIG. 13 is a diagram showing an example of the configuration of a power state set [2] in the memory device of the embodiment. [Figure 6] FIG. 13 is a diagram showing an example of the configuration of a power state set [2] conforming to the extended standard for stream recording. [Figure 7] FIG. 13 is a diagram showing an example of determining maximum performance based on a combination of host version and device version when the standard is extended. [Figure 8] 10 is a flowchart showing a flow of interface initialization executed cooperatively by a memory device and a host according to an embodiment. [Figure 9] 10 is a flowchart showing a procedure for temperature monitoring executed by the memory device according to the embodiment. [Figure 10] 10 is a flowchart showing a flow of power state adjustment executed by a host according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, embodiments will be described with reference to the drawings.
[0009] FIG. 1 is a block diagram of a PCIe TM / NVMe TM 1 is a diagram showing an example of the configuration of a memory device 1 (hereinafter, memory device 1). Fig. 1 also shows an example of the configuration of a host 2 to which the memory device 1 is applied as storage, and an example of the configuration of an information processing system 100 including the memory device 1 and the host 2 (an example of a connection between the memory device 1 and the host 2).
[0010] Memory device 1 is, for example, SD Express TM It is realized as a card. SD Express TM The card is e.g. a standard size SD TM Card or microSD TMCard shape: SD Express TM The card has multiple rows of terminals, and the first row of terminals is used to TM It is possible to communicate with host 2 in accordance with the standard, and it uses multiple row terminals to support PCI Express TM It is possible to communicate with the host 2 in accordance with the standard. The memory device 1 is an NVMe TM It has a controller 11 and a flash memory 12 .
[0011] NVMe TM The controller 11 controls the system memory 23 and the flash memory 12 via the PCIe bus. For example, NVMe TM In response to a write command from the host 2, the controller 11 reads data from a specified location on the system memory 23 and controls the write process to the flash memory 12, and in response to a read command from the host 2, controls the read process of data from the flash memory 12 and transfers the data to a specified location on the system memory 23. TM The controller 11 is realized, for example, as an LSI (Large Scale Integration).
[0012] NVMe TM The controller 11 includes an interface circuit 111, firmware 112, a temperature sensor 113, a power state set[1] 114, a power state set[1] 115, and a profile 116.
[0013] The interface circuit 111 is a PCIe TM PCIe to / from port 222 TM Establish (connect) a standard-compliant interface (link). NVMe TM Controller 11 is PCIe TM NVMe via a standards-compliant interface TM Standards-compliant NVMe TM Receives the command and the corresponding NVMe TMThe execution result of the process corresponding to the command is sent. In other words, the write command and write command described above are sent to the NVMe TM Command. NVMe TM Controller 11 is PCIe TM An interrupt signal can be sent to the processor 21 of the host 2 via the PCIe interface using a packet in a format specified by a protocol that complies with the standard. TM The controller 11 can access the system memory 23 of the host 2 via the interface, that is, via the system controller 22 of the host 2. Specifically, NVMe TM The controller 11 serves as a PCIe Direct Memory Access (DMA) master and can directly write data to the system memory 23 and read data from the system memory 23.
[0014] The interface circuit 111 has a slot power limit (SPL) register 150. The SPL register 150 stores an SPL value of the host 2. The SPL value indicates the maximum allowable power that the host 2 sets for the memory device 1. The SPL value of the host 2 is set by, for example, the system controller 22 of the host 2 and the NVMe of the memory device 1. TM The host 2 transmits the SPL value indicating the maximum permitted power to the memory device 1 during the initialization of the interface performed in cooperation with the controller 11. TM The SPL register 250 of the port 222 is stored in this PCIe TM The SPL value stored in the SPL register 250 of the port 222 is transmitted from the host 2 to the memory device 1 and stored in the SPL register 150 of the interface circuit 111 .
[0015] The firmware 112 is an NVMe TM A program that describes the operation procedure of the controller 11. For example, NVMeTM When the controller 11 is realized as an LSI, a part of the area on the RAM (Random Access Memory) built in the LSI is used for the firmware 112, and the firmware stored in the flash memory 12 is loaded into the RAM and executed by a CPU (Central Processing Unit) built in the LSI, thereby realizing NVMe TM The controller 11 controls the flash memory 12 .
[0016] Temperature sensor 113 is NVMe TM The temperature of the controller 11 is detected. The flash memory 12 has a built-in temperature sensor 123, which detects the temperature of the NVMe TM The controller 11 can also read the temperature of the flash memory. The host 2 can read the temperature of the NVMe TM The temperature of the controller 11 or the flash memory 12 is TM These temperatures can be obtained from the memory device 1 by a command. Although not shown in the figure, these temperatures can also be read out using a sideband signal (SMBUS) that connects the host and the device.
[0017] Power state set[1]114 and power state set[2]115 are NVME TM A set of one or more power states that is stored in a power state register defined by a standard. The power state register of the memory device 1 can store up to 32 power states. A power state includes the power consumption when the memory device 1 operates in that power state, and can be defined from PS0 to PS31. One or more power states are set so that the power consumption decreases as the PS subscript number increases. Also, the lower the power consumption, the lower the performance of the memory device 1.
[0018] For example, if memory device 1 supports four data transfer speeds between host 2 and memory device 1, namely "600MB / s", "450MB / s", "300MB / s", and "150MB / s", four power states are normally defined: PS0=600MB / s, PS1=450MB / s, PS2=300MB / s, and PS3=150MB / s. Power state PS0 is selected for memory device 1 in the initial state.
[0019] By associating performance with power states, host 2 can set the power state register of memory device 1 to NVMe TM The power state register can be read by a command, and the contents of the power state register can be used to recognize the performance supported by the memory device 1. The host 2 can also learn the power consumption of each power state from the power state register, and can specify one of the one or more power states set in the memory device 1 to indicate to the NVMe that the specified power state should be selected. TM It is also possible to make a request by command to the memory device 1. For example, the host 2 can control the temperature of the memory device 1 by making the memory device 1 select a power state with lower performance than the power state set at that time, thereby suppressing the power consumption (heat generation) of the memory device 1.
[0020] One of the features of the memory device 1 of the embodiment is that it has two power state sets, a power state set [1] 114 and a power state set [2] 115. More specifically, the memory device 1 of the embodiment has a power state set [2] 115 for stream recording in addition to the default power state set [1] 114, which is a conventional power state set. The reason for having this power state set [2] 115 for stream recording will be described later. Note that, when it is assumed that the memory device 1 will be used only for stream recording, the memory device 1 may be configured to have only the power state set [2] 115 for stream recording instead of the default power state set [1] 114.
[0021] The profile 116 is a register that stores support information related to stream recording that the memory device 1 can handle. The support information includes SGS (Stream Granularity Size), which is the management area size of stream data, SWS (Stream Write Size), the stream write command data size, and the number of streams that can be recorded simultaneously. In addition, the support information is information for generating a power state for stream recording, and stores the result of calculating the maximum performance that the memory device 1 can implement for the combination of the interface configuration and the maximum allowable power. This information is related to FIG. 4 and will be explained later.
[0022] The flash memory 12 has an internal area 121 , a user area 122 , and a temperature sensor 123 .
[0023] The internal area 121 that cannot be accessed from host 2 and the user area 122 that can be accessed from host 2 are NVMe TM The controller 11 logically divides the storage area 120 of the flash memory 12 to secure each area as an independent area. The internal area 121 is an area for storing information used for internal processing of the memory device 1. The "training result" in the figure will be described later. On the other hand, the user area 122 is an area that the host 2 can use freely, for example, an area for storing data requested to be written by the host 2. FIG. 1 shows an example in which the memory device 1 is used for stream recording, and the "SGS (Stream Granularity Size)" in the figure is a unit of area in which stream data is stored. Each SGS is a physically divisible area of the flash memory 12. In addition, a logical address (LBA [Logical Block Address]) that is an integer multiple of the size of the SGS can be freely assigned to the top address of each SGS, and consecutive logical addresses (LBAs) are assigned within each SGS. The "measurement SGS" will be described later.
[0024] The temperature sensor 123 detects the temperature of the flash memory 12. More specifically, the temperature sensor 123 detects the temperature of the memory chips that constitute the memory area 120 of the flash memory 12. TM The controller 11 can read the temperature of the temperature sensor 123 by issuing a command to the flash memory 12. The host 2 can read the temperature information from the NVMe TM By using the command, the device temperature can be obtained from memory device 1. NVMe TM Controller 11 is the NVMe controller that reads the temperature information. TM When the command is received, the temperature sensor 123 value read from the flash memory 12 is returned to the host 2 as the device temperature.
[0025] The host 2 includes a processor 21 , a system controller 22 , a system memory 23 , a power supply circuit 24 , and a heat dissipation mechanism 25 .
[0026] The processor 21 loads various programs stored in the flash memory 12 into the system memory 23 and executes them. The various programs include an operating system 231, a PCIe TM Standard driver 232, NVMe TM There are a standard driver 233, a temperature control driver 234, and so on.
[0027] The operating system 231 controls the allocation of resources such as the processor 21 to various programs, and also controls a user interface for various programs to exchange data with the user.
[0028] PCIe TM Standard driver 232 is PCIe TM PCIe via standards-compliant interface TM Controls communication via standards-compliant protocols. NVMe TM Standard driver 233 is PCIe TM NVMe over standards-compliant interfacesTM Controls communication using protocols that comply with standards. PCIe TM Standard driver 232 and NVMe TM Standard driver 233 is a standard driver and cannot be customized. NVMe power states are implemented for individual devices, so NVMe TM The standard driver 233 does not control the power state of the memory device 1, but may use an Autonomous Power State Transitions function in which the device transitions between power states, or a temperature control driver 234 to manage a system-specific temperature.
[0029] NVMe TM Standard driver 233 is NVMe TM You can use the command to get support information from memory device 1. The support information includes information indicating whether memory device 1 supports streaming recording. In addition, TM Standard driver 233 is NVMe TM Using the command, it is possible to request the memory device 1 to perform an operation for stream recording.
[0030] The temperature control driver 234 is a driver specific to the information processing system 100, and can control the temperature of the memory device 1 by specifying the power state to be used. TM The temperature of the controller 11 and the temperature of the flash memory 12 detected by the temperature sensor 123 are TM The temperature control driver 234 acquires the temperature of the flash memory 12 from the memory device 1 using a command. For example, if the temperature of the flash memory 12 acquired from the memory device 1 exceeds a threshold, the temperature control driver 234 controls the NVMe TMBy using a command, the power state described above is switched to a power state with low performance but low power consumption, thereby performing temperature control such as lowering the temperature of the memory device 1. In addition, the temperature control driver 234 performs temperature control such as lowering the temperature of the NVMe memory 12 when the temperature of the flash memory 12 acquired from the memory device 1 has sufficiently dropped after switching the power state. TM It also provides temperature control, such as returning to the original high-performance power state on command. NVMe has a function that allows you to set two temperature thresholds, TMT1 and TMT2, as Thermal Management Temperatures. In this case, the device performs temperature comparison and can change the power state when the temperature of the flash memory 12 exceeds the threshold. It can also notify the host of an event according to the temperature change.
[0031] Incidentally, when the memory device 1 is used for purposes other than stream recording, the memory device 1 can be operated in a power state set to provide maximum performance until the temperature of the flash memory 12 exceeds a threshold value, and once the temperature of the flash memory 12 exceeds the threshold value, the memory device 1 can be operated by temporarily switching to a lower-performance power state, without causing a major problem as long as the device can be used continuously.
[0032] On the other hand, when using the memory device 1 for stream recording, for example, a temporary drop in image quality during recording is undesirable, and there is a possibility that video data generated in real time cannot be recorded. Therefore, it is better to avoid switching the power state of the memory device 1, which involves a large change in performance, in the middle of stream recording.
[0033] In addition, PCIe TM and NVMe TMSince the PCIe bus has high flexibility and the performance of the PCIe bus changes depending on the combination with the host 2, the performance of the memory device 1 is also restricted. Therefore, it is difficult for the host 2 to select a power state suitable for stream recording from all the power states supported by the memory device 1.
[0034] Therefore, the memory device 1 of the embodiment prepares a power state set [2] 115 for stream recording in addition to a default power state set [1] 114, which is a conventional power state set. The power state set [2] 115 is a set of one or more power states that allows the selection of a power state in which the temperature of the flash memory 12 does not exceed a threshold value, for example, by indicating a pair of stable performance for stream recording and power consumption required for that performance as a plurality of power states. The temperature of the device also differs depending on the system heat dissipation mechanism 25. A method for determining the contents of the power state set [2] 115 (one or more power states to be stored in the power state register) will be described later.
[0035] The system controller 22 controls the processor 21 to access the system memory 23, and also controls the processor 21 to access the memory device 1. The system controller 22 includes a memory controller 221 and a PCIe TM The memory controller 221 controls data transfer between the system memory 23 and the PCIe port 222. TM The port 222 is a PCIe TM It establishes (connects) a standard-compliant interface (link) and controls data transfer between the PCIe memory device 1. TM The port 222 includes the SPL register 250 described above.
[0036] In addition, the system controller 22 controls the memory device 1 to access the system memory 23 by PCIe DMA master transfer. TM NVMe on controller 11 TM command, and memory device 1 receives the NVMe TM Depending on the command, data can be written to the system memory 23 or data can be read from the system memory 23 using PCIe DMA master transfer.
[0037] The power supply circuit 24 generates power for operating the memory device 1 and supplies it to the memory device 1. The power supply circuit 24 is TM It is necessary to have the capability to supply power equal to or greater than the maximum allowable power indicated by the SPL value stored in the SPL register 250 of the port 222. Conversely, it is possible to set the SPL to a power value less than that depending on the power supply capability.
[0038] The heat dissipation mechanism 25 dissipates heat generated in the memory device 1 due to power consumption of the memory device 1 to the outside of the information processing system 100. The heat dissipation mechanism 25 is, for example, a heat dissipation sheet made of a flexible material with high thermal conductivity, such as an acrylic resin.
[0039] Theoretically, the heat dissipation mechanism 25 has the ability to dissipate heat generated within the memory device 1 when the maximum allowable power indicated by the SPL value is supplied from the power supply circuit 24. However, the air layer in the gap between the heat dissipation mechanism 25 arranged on the host 2 side and the memory device 1 has low thermal conductivity, which may cause the temperature of the memory device 1 to rise.
[0040] Next, in the memory device 1 of the embodiment, NVMe TM A method in which the controller 11 determines the contents of the power state set [2] 115 (one or more power states to be stored in the power state register) will be described.
[0041] SDTM SD Express as defined by the standard TM The card specifications include a PCIe interface that connects the host 2 to the memory device 1. TM Regarding interfaces (links) that comply with the standard, there are regulations regarding the number of lanes and the generation (data transfer speed). Specifically, regarding the number of lanes, 1 lane and 2 lanes are applicable, and regarding the generation, Gen3 (1GB / s) and Gen4 (2GB / s) are applicable. TM An interface that complies with the standard may simply be referred to as an interface.
[0042] Therefore, the configuration of the interface that connects the host 2 and the memory device 1 is determined by the combination of the host 2 and the memory device 1, as shown in FIG.
[0043] 2, when either the host 2 or the memory device 1 is "Gen3" and the other is "Gen4", the interface configuration is determined to be "Gen3". Also, when either the host 2 or the memory device 1 is "1 lane" and the other is "2 lane", the interface configuration is determined to be "1 lane".
[0044] For example, if host 2 is "Gen3 1 lane" and memory device 1 is "Gen4 2 lane", the interface configuration is determined to be "Gen3 1 lane". Conversely, if host 2 is "Gen4 2 lane" and memory device 1 is "Gen3 1 lane", the interface configuration is determined to be "Gen3 1 lane". This interface configuration is determined by the PCIe TM The interface configuration is determined by an interface initialization process executed cooperatively between the port 222 and the interface circuit 111 of the memory device 1. TM In the memory device 1, the bus configuration information is TM It is stored in a register (not shown).
[0045] The interface performance has the following relationship: "Gen3 1 lane" < "Gen3 2 lanes" / "Gen4 1 lane" < "Gen4 2 lanes". Generally, the higher the interface performance, the greater the required power consumption. Data transfer performance is not determined solely by the interface configuration, but may also be limited by the maximum allowable power (SPL value) that the host 2 sets for the memory device 1. This is because, if the allowable power is insufficient, the memory device 1 reduces data transfer performance to adjust power consumption to below the maximum allowable power.
[0046] Here, the default power state set [1] 114 will be explained. More specifically, the power state set [1] 114 defines as PS0 the power state that can achieve the maximum number of lanes supported by the device and the maximum data transfer rate supported by the memory device 1 in the fastest generation, and can define a total of up to 32 power states as the specifications of the memory device 1 while lowering the supported data transfer rate and reducing power consumption. If the temperature threshold is exceeded and sudden cooling is required, it is necessary to transition to PS1 or PS2 and suddenly reduce performance, but the rate at which performance is reduced is determined to be the optimal value depending on the threshold temperature, the implementation of the host heat dissipation mechanism 25, the control method of the temperature control driver 234, etc. In other words, the implementation needs to be adjusted for each system.
[0047] On the other hand, for streaming recording, the data transfer speed options are, for example, SD TM Standard: SD Express TMAfter the memory device 1 has completed initialization of the interface and determined the configuration of the interface, it defines the maximum data transfer rate that the memory device 1 supports among the predetermined options for the power state set [2] 115 for stream recording as power state PS0, and subsequently defines all data transfer rates lower than the data transfer rate defined as power state PS0 among the options as power state PS1, power state PS2, and so on.
[0048] Figure 3 shows the SD TM Standard: SD Express TM 1 is a diagram showing an example of allocating a predetermined number of types of performance as a standard for stream recording to each of the interface configurations that can be assumed in the specifications.
[0049] For example, four types of performance are assigned to each interface configuration. The four types of performance are standardized as classes, with higher numbers indicating higher performance. This standardization allows the manufacturer, when commercializing the memory device 1, to select the one that the memory device 1 can support for stream recording from among the four types of performance, and the maximum supportable performance can be displayed as the memory device performance.
[0050] For example, in the case of "Gen3 1 lane," the maximum performance of stream recording may be selected from "150MB / s," "300MB / s," "450MB / s," and "600MB / s." For example, if the memory device 1 is manufactured with "600MB / s" as the maximum performance of stream recording, it can also support "450MB / s," "300MB / s," and "150MB / s." Here, for example, in order for the host to perform stable stream recording for a long period of time at a performance of "600MB / s," it is necessary to have a heat dissipation mechanism 25 that can dissipate the power consumption of the memory device described in the power state PS0, and it is necessary not to cause a temperature rise exceeding a certain level due to continuous memory access. Normally, it is set so as not to exceed the upper limit temperature at which the flash memory can be used safely.
[0051] SD TM Standard: SD Express TM If the specifications support up to "600MB / s", there is little point in the host implementing "Gen4 2 lanes" and "Gen3 1 lane" is sufficient. "Gen4 1 lane" has the advantage that it is easier to implement "600MB / s".
[0052] In order to prevent the temperature from rising above a certain level during streaming, NVMe TM Controller 11 performs throttling. NVMe TMThe performance of the connection interface itself between the controller 11 and the flash memory 12 is determined by the bus width and the clock frequency. Throttling is, for example, a method of controlling the frequency of data transfers performed on this connection interface, and can also be said to be a method of adjusting the usage rate of the connection interface. In other words, if the maximum performance of the connection interface is 1000MB / s, the memory device 1 that supports a performance of "600MB / s" is adjusted by throttling so that its performance is slightly higher than "600MB / s" under the worst conditions during stream recording in order to take into account a margin. Even when operating at a performance of "450MB / s", "300MB / s", or "150MB / s", the memory device 1 is adjusted by throttling so that its performance is slightly higher than the specified value.
[0053] In the case of "Gen3 2 lanes" or "Gen4 1 lane", the maximum performance of stream recording may be selected from "1200MB / s", "1050MB / s", "900MB / s", and "750MB / s". For example, a memory device 1 manufactured by selecting "1200MB / s" can also support "1050MB / s", "900MB / s", "750MB / s", "600MB / s", "450MB / s", "300MB / s", and "150MB / s" which are lower than "1200MB / s".
[0054] Similarly, in the case of "Gen4 2 lanes", the maximum performance of stream recording may be selected from "2400MB / s", "2100MB / s", "1800MB / s", and "1500MB / s". For example, a memory device 1 manufactured by selecting "2400MB / s" can also support "2100MB / s", "1800MB / s", "1500MB / s", "1050MB / s", "900MB / s", "750MB / s", "600MB / s", "450MB / s", "300MB / s", and "150MB / s", which are lower than "2400MB / s".
[0055] As described above, in the memory device 1 of the embodiment, the allocation of performance to each interface configuration that the memory device 1 can apply is standardized, and further, the performance (class) provided to the host 2 for stream recording is standardized. For example, first, "150MB / s", "300MB / s", "450MB / s", and "600MB / s" that can be supported by "Gen3 1 lane" are standardized as four classes. In this case, the power state set [2] 115 generated by the memory device 1 will contain a maximum of four power states.
[0056] "Gen3 1 lane" is the lowest performance PCIe bus mode, so the four classes can be used in other PCIe bus modes with higher performance. For example, even in a "Gen4 2 lane" memory device 1 that can support "2400MB / s", for stream recording, it supports "150MB / s", "300MB / s", "450MB / s", and "600MB / s" up to a maximum of "600MB / s". However, even with the same speed class performance, if the PCIe bus interface becomes faster, the power consumption will increase accordingly.
[0057] In the future, when N performances higher than "600MB / s" are added as an extended standard for stream recording to define 4+N types of classes, the next highest "750MB / s" after "600MB / s" in Fig. 3, and the next highest "900MB / s" may be added in sequence. This allows manufacturers to manufacture, for example, "Gen3 2-lane" or "Gen4 1-lane" memory devices 1 as products that anticipate support for performance added in future extended standards.
[0058] NVMe TM The controller 11 determines whether to use the power state set [1] 114 or the power state set [2] 115, for example, when the host 2 requests a stream write operation. TMWhen the command is received, the contents stored in the power state register are switched from power state set [1] 114 to power state set [2] 115. TM The controller 11 sets the power state [2] 115 to the NVMe drive that instructs streaming write from the host 2. TM In other words, the host 2 may generate a stream write command to the NVMe TM Unless a command is received, NVMe TM The controller 11 may not generate the power state set [2] 115. Alternatively, for example, when the memory device 1 is assumed to be used for stream recording, the NVMe TM The controller 11 may automatically generate the power state set [2] 115 and store the contents of the power state set [2] 115 in the power state register. Furthermore, as described above, when the memory device 1 is assumed to be used for stream recording, the NVMe TM The controller 11 may not have the power state set[1] 114.
[0059] As mentioned above, when a device's power consumption is limited, the device's achievable performance is also limited. Depending on the host 2's maximum allowable power (SPL value), if this value is small, the performance may not be able to be achieved. Therefore, achievable performance is determined by considering not only the interface configuration but also the maximum allowable power. For example, the standard assigns five threshold values for the maximum allowable power setting: 1.8W, 2.5W, 2.8W, 3.2W, and 4.0W. By using these five power values as boundary values, a finite number of combinations can be considered.
[0060] In response to this, the maximum performance (class) that can be implemented for the memory device 1 can be calculated in advance by actual measurement or the like for the combination of the interface configuration and the maximum allowable power. Figure 4 shows an example of the implementation of the memory device 1 based on the calculation results of the maximum performance for the combination of the interface configuration and the maximum allowable power. NVMe TM By calculating the correspondence in the table shown in FIG. 4 at the time of design, the controller 11 can determine the maximum class performance that can be used once the interface configuration and maximum allowable power are determined.
[0061] Figure 4(a) shows the first example of a memory device 1 that is “Gen3 1 lane” and can support a performance of “600 MB / s”, but with an allowable power consumption of “1.8 W”, the performance drops to “450 MB / s”.
[0062] Once the maximum usable class performance is determined, NVMe TM The controller 11 can generate a power state set[2] 115 for stream recording.
[0063] In this case, when the interface initialization with host 2 is completed, the interface configuration is determined to be "Gen3 1 lane". If the SPL value obtained from host 2 is "2.5W" or more, the maximum class performance will be "600MB / s", and NVMe TM The controller 11 generates a power state set [2] 115 including four power states: power state PS0 = "600 MB / s", power state PS1 = "450 MB / s", power state PS2 = "300 MB / s", and power state PS3 = "150 MB / s". When the SPL value is "1.8 W", the maximum class performance is "450 MB / s", and the NVMe TM The controller 11 generates a power state set [2] 115 including three power states: power state PS0="450 MB / s", power state PS1="300 MB / s", and power state PS2="150 MB / s".
[0064] FIG. 4(b) shows the second example of a memory device 1 being “Gen3 1 lane” and capable of achieving a performance of “300 MB / s” at all allowable power consumptions.
[0065] In this case, when the interface initialization with host 2 is completed, the interface configuration is determined to be "Gen3 1 lane". Then, NVMe TM Regardless of the SPL value obtained from the host 2, the controller 11 generates a power state set [2] 115 including two power states: power state PS0="300 MB / s" and power state PS1="150 MB / s".
[0066] Figure 4(c) is an example where memory device 1 is "Gen4 1 lane". In this case, when interface initialization with host 2 is complete, whether the interface configuration is determined to be "Gen3 1 lane" or "Gen4 1 lane" depends on host 2. If "Gen3 1 lane" is determined, this memory device 1 can support a performance of "600MB / s" as in the case of Figure 4(a), but with an allowable power consumption of "1.8W", the performance drops to "450MB / s". NVMe TM If the SPL value obtained from the host 2 is "2.5W" or more, the controller 11 generates a power state set [2] 115 including four power states: power state PS0="600MB / s", power state PS1="450MB / s", power state PS2="300MB / s", and power state PS3="150MB / s". If the SPL value is "1.8W", the controller 11 generates a power state set [2] 115 including three power states: power state PS0="450MB / s", power state PS1="300MB / s", and power state PS2="150MB / s".
[0067] On the other hand, if "Gen4 1 lane" is selected, this memory device 1 can achieve a performance of "1050MB / s" with an allowable power consumption of "3.2W" or more, and a performance of "900MB / s" with an allowable power consumption of "2.5W" or more. Note that a performance of "750MB / s" can be achieved with an allowable power consumption of "1.8W", but this is not possible with SD TM Standard: SD Express TM According to the specifications, "Gen4" does not have to operate at "1.8W". As a device, it can achieve a performance of "1050MB / s", but for example, SD TM Standard: SD Express TM Assuming that the performance limit in the class performance standard version 1 of the specification is set at "600MB / s", NVMe TM Regardless of the SPL value obtained from the host 2, the controller 11 generates a power state set [2] 115 including four power states: power state PS0="600 MB / s", power state PS1="450 MB / s", power state PS2="300 MB / s", and power state PS3="150 MB / s".
[0068] In addition, if the extension standard for stream recording, for example, "900MB / s" and "750MB / s", is added, NVMe TM When the controller 11 determines "Gen4 1 lane" and the SPL value is "2.5W" or more, it generates a power state set [2] 115 including six power states: power state PS0="900MB / s", power state PS1="750MB / s", power state PS2="600MB / s", power state PS3="450MB / s", power state PS4="300MB / s", and power state PS5="150MB / s". When the SPL value is "1.8W" or more, it generates a power state set [2] 115 including six power states: power state PS0="900MB / s", power state PS1="750MB / s", power state PS2="600MB / s", power state PS3="450MB / s", power state PS4="300MB / s", and power state PS5="150MB / s". TMThe controller 11 generates a power state set [2] 115 including five power states: power state PS0 = "750 MB / s", power state PS1 = "600 MB / s", power state PS2 = "450 MB / s", power state PS3 = "300 MB / s", and power state PS4 = "150 MB / s". The above shows that the device can operate at an SPL value of "1.8 W" depending on the device implementation, but when using "Gen4 1 lane", the host is required to set an SPL value exceeding "1.8 W".
[0069] Figure 4(d) is an example of memory device 1 being "Gen3 2 lanes." In this case, when interface initialization with host 2 is complete, whether the interface configuration is determined to be "Gen3 1 lane" or "Gen3 2 lanes" depends on host 2. If "Gen3 1 lane" is determined, this memory device 1 can achieve a performance of "450MB / s" at all allowable power consumption. NVMe TM Regardless of the SPL value obtained from the host 2, the controller 11 generates a power state set [2] 115 including three power states: power state PS0="450 MB / s", power state PS1="300 MB / s", and power state PS2="150 MB / s".
[0070] On the other hand, if "Gen3 2-lane" is selected, this memory device 1 can achieve a performance of "900MB / s" with an allowable power consumption of "2.5W" or more. For example, TM Standard: SD Express TM Assuming that the performance limit is set at 600MB / s, NVMe TMIf the SPL value obtained from the host 2 is "2.5W" or more, the controller 11 generates a power state set [2] 115 including four power states: power state PS0="600MB / s", power state PS1="450MB / s", power state PS2="300MB / s", and power state PS3="150MB / s". If "Gen3 2 lanes" is selected and the SPL value is "1.8W", stream recording is not supported. The absence of a valid power state allows the host to recognize that the device cannot be supported. When using "Gen3 2 lanes", the host is required to set an SPL value of more than "1.8W".
[0071] In addition, there are extension standards for stream recording, such as SD TM Standard: SD Express TM If "900MB / s" and "750MB / s" are added as class performance standard version 2 of the specification, NVMe TM The controller 11 determines "Gen3 2 lanes", and if the SPL value is "2.5W" or more, and if the host supports class performance standard version 2, it generates a power state set [2] 115 including six power states: power state PS0="900MB / s", power state PS1="750MB / s", power state PS2="600MB / s", power state PS3="450MB / s", power state PS4="300MB / s", and power state PS5="150MB / s". If the host supports only class performance standard version 1, it generates a power state set [2] 115 including four power states: power state PS0="600MB / s", power state PS1="450MB / s", power state PS2="300MB / s", and power state PS3="150MB / s".
[0072] Figure 4(e) is an example of memory device 1 being "Gen4 2 lanes". In this case, when the initialization of the interface between host 2 is completed, the interface configuration is determined to be "Gen3 1 lane", "Gen3 2 lanes", "Gen4 1 lane", or "Gen4 2 lanes", depending on host 2. Also, memory device 1 can select "Gen3 1 lane", "Gen3 2 lanes", "Gen4 1 lane", or "Gen4 2 lanes" depending on the SPL value, for example. In other words, the host and memory device can operate in common, and a faster bus mode is selected. When "Gen3 1 lane" is determined, this memory device 1 can achieve a performance of "450MB / s" at all allowable power consumption. NVMe TM Regardless of the SPL value obtained from the host 2, the controller 11 generates a power state set [2] 115 including three power states: power state PS0="450 MB / s", power state PS1="300 MB / s", and power state PS2="150 MB / s".
[0073] If "Gen3 2-lane" or "Gen4 1-lane" is selected, this memory device 1 can achieve a performance of "900MB / s" with an allowable power consumption of "2.5W" or more. For example, TM Standard: SD Express TM Assuming that the performance limit in the class performance standard version 1 of the specification is set at "600MB / s", NVMe TM If the SPL value obtained from the host 2 is "2.5W" or more, the controller 11 generates a power state set [2] 115 including four power states: power state PS0="600MB / s", power state PS1="450MB / s", power state PS2="300MB / s", and power state PS3="150MB / s". If "Gen3 2 lanes" or "Gen4 1 lane" is selected and the SPL value is "1.8W", stream recording is not supported.
[0074] If "Gen4 2 lanes" is selected, this memory device 1 can achieve a performance of "1800MB / s" with an allowable power consumption of "4.0W" or more, and a performance of "1500MB / s" with an allowable power consumption of "3.2W" or more, but if the SPL value is less than "3.2W", stream recording cannot be supported. The host can reduce power consumption by using "Gen3 1 lane", "Gen3 2 lanes" or "Gen4 1 lane", which increases the possibility that memory device 1 can operate. For example, if you initialize it with "Gen3 2 lanes", NVMe TM The controller 11 can operate at 900 MB / s if the SPL value obtained from the host 2 is 2.5 W or more. TM Standard: SD Express TM Assuming that the class performance standard version 1 of the specification specifies the upper limit of performance as "600MB / s", a power state set [2] 115 is generated that includes four power states: power state PS0 = "600MB / s", power state PS1 = "450MB / s", power state PS2 = "300MB / s", and power state PS3 = "150MB / s". In other words, "Gen4 2-lane" is the bus mode that should be used when performance exceeding "1200MB / s" is required in the future. Hosts that only support class performance standard version 1 should not support "Gen4 2-lane".
[0075] In addition, if the class performance standard version 2 were to add, for example, "900MB / s" and "750MB / s" as an extension standard for stream recording, then NVMe TMFor a class performance standard version 2 host, when the controller 11 determines "Gen3 2 lanes" or "Gen4 1 lane" and the SPL value is "2.5W" or more, or when the controller 11 determines "Gen4 2 lanes" and the SPL value is "3.2W" or more, the controller 11 generates a power state set [2] 115 including six power states: power state PS0="900MB / s", power state PS1="750MB / s", power state PS2="600MB / s", power state PS3="450MB / s", power state PS4="300MB / s", and power state PS5="150MB / s".
[0076] FIG. 5 is a diagram showing an example of the configuration of the power state set [2] 115. For example, TM Standard: SD Express TM Assuming that the performance limit is set to "600MB / s" in the Class Performance Standard Version 1 of the specification, these four are valid power states. If there is no power state or the power state setting is invalid (for example, all zeros are set), it indicates that the device cannot support the class performance due to limitations in the interface configuration or allowable power consumption.
[0077] If the memory device 1 can support a performance of "150 MB / s" for stream recording, a power state set [2] 115 including one power state, power state PS0="150 MB / s", is generated. Note that, as described above, the performance that the memory device 1 can support for stream recording varies depending on the host 2.
[0078] If a performance of "300MB / s" can be supported, a power state set [2] 115 is generated that includes two power states: power state PS0="300MB / s" and power state PS1="150MB / s". If a performance of "450MB / s" can be supported, a power state set [2] 115 is generated that includes three power states: power state PS0="450MB / s", power state PS1="300MB / s", and power state PS2="150MB / s". If a performance of "600MB / s" can be supported, a power state set [2] 115 is generated that includes four power states: power state PS0="600MB / s", power state PS1="450MB / s", power state PS2="300MB / s", and power state PS3="150MB / s".
[0079] Thus, in addition to the default power state set [1] 114, the memory device 1 of the embodiment has a power state set [1] 115 for stream recording, in which the number of power states changes depending on the combination of the memory device 1 and the host 2, whereas the number of power states in the power state set [1] 114 is fixed.
[0080] As mentioned above, host 2 sets the power state register of memory device 1 to NVMe TM It can be read by a command. The power state register stores the number of power states. By referring to this number of power states, the host 2 can recognize the maximum performance that the memory device 1 supports in terms of stream recording.
[0081] For example, when the number of power states is three, the host 2 can recognize that power state PS0 = "450 MB / s", power state PS1 = "300 MB / s", and power state PS2 = "150 MB / s". This allows the host 2 to select power state PS0 for high-quality recording where "450 MB / s" is required, select power state PS1 for medium-quality recording where "300 MB / s" is sufficient, and select power state PS2 for low-quality recording where "150 MB / s" is sufficient.
[0082] FIG. 6 is a diagram showing an example of the configuration of the power state set [2] 115 when "750 MB / s" and "900 MB / s" are added as extended standards for stream recording.
[0083] For example, even if memory device 1 can support a performance of "900 MB / s" for stream recording, under the above-mentioned standardization, the maximum performance that memory device 1 supports for stream recording is "600 MB / s", which is assigned to power state PS0, and subsequently, "450 MB / s", "300 MB / s", and "150 MB / s" are assigned to power state PS1, power state PS2, and power state PS3.
[0084] On the other hand, if an extended standard is specified, the device will need to change the way it generates power states depending on the version information of the host. Figure 7 shows an example of how maximum performance is determined by the combination of the host version and device version when the standard is extended, assuming that there is a class as shown in Figure 3. As shown in Figure 7, Class performance standard version 1: Maximum performance up to 600MB / s Class performance standard version 2: Maximum performance extended to 1200MB / s Class performance standard version 3: Maximum performance extended to 2400MB / s It becomes.
[0085] The maximum class performance that version 2 and version 3 devices set to PS0 must be determined taking into account the host version. Version 1 devices do not need to take the host version into account.
[0086] When a version 1 host is connected to a version 2 device with a maximum performance of 900MB / s, the maximum performance remains at 600MB / s. When a version 2 host is connected, as shown in Figure 7, the maximum performance of 900MB / s is assigned to power state PS0, followed by 750MB / s to power state PS1, 600MB / s to PS2, 450MB / s to PS3, 300MB / s to PS4, and 150MB / s to PS5.
[0087] The SPL register value can be used as one way to recognize the host class performance standard version. SD TM Standard: SD Express TMIn the specification, the SPL boundary values are defined as 1.8W, 2.5W, 2.8W, 3.2W, and 4.0W, and Gen3x2 / Gen4x1 are set to 2.8W or more, and Gen4x2 is set to 4.0W or more. However, this power limit value requires a large power value because it is assumed that the device will operate at full power without throttling. On the other hand, Speed Class is assumed to be implemented with a lower SPL setting because it is assumed that the environment can be stably performed for long-term stream recording by reducing power consumption and heat generation. For example, even if the SPL value is less than 2.8W, it is possible to implement it to operate with Gen3x2 / Gen4x1. In other words, the conventional SPL specified value is not a mandatory requirement for Speed Class. Since there is a correlation between performance and power consumption, it is possible to associate the class performance standard version supported by the host with the SPL value set by the host. For example, if the SPL is set to less than 2.8W, memory device 1 recognizes the host's class performance standard as version 1. The possibility of becoming Gen4x2 is low due to insufficient power. With Gen3x2 / Gen4x1, there is room for implementing 600MB / s, and even with Gen3x1, 600MB / s can be implemented. Furthermore, for example, if the SPL is set to 2.8W or more and less than 4.0W, the host class performance standard is recognized as version 2. If the SPL is set to 4.0W or more, the host class performance standard is recognized as version 3. If memory device 1 is class performance standard version 1, there is no need to look at the host class performance standard version. 2.8W and 4.0W are examples of power boundary values, and other power values may be set as boundary values as long as they can distinguish three types of versions. For example, 2.5W and 3.2W may be used as boundary values.
[0088] In this way, according to the memory device 1 of the embodiment, the performance regarding stream recording is standardized, and under this standard, the power state set [2] 115 for stream recording is dynamically configured according to the host 2, thereby TM and NVMe TMThis enables stream recording, which has been difficult to perform stably for long periods of time due to the high flexibility of the memory device 1. The host 2 performing stream recording on the memory device 1 only needs to select one power state that matches the purpose, such as image quality, from one or more power states in the power state register obtained from the memory device 1.
[0089] FIG. 8 is a flowchart showing the flow of interface initialization executed cooperatively by the host 2 and the memory device 1.
[0090] The system controller 22 of the host 2 is a PCIe TM During the initialization of the interface specified in the standard, the Set_Slot_Power_Limit Message is used to TM The SPL value stored in the SPL register 250 of the port 222 is transferred to the memory device 1 (S101). TM The controller 11 stores the SPL value received from the host 2 in the SPL register 150 of the interface circuit 111 (S201). As described above, the memory device 1 can use the SPL value to identify the class performance standard version supported by the host.
[0091] Next, the system controller 22 of the host 2 acquires support information from the memory device 1 (S102). This support information includes information indicating whether or not the memory device 1 supports stream recording. The system controller 22 of the host 2 determines whether or not the memory device 1 supports stream recording based on the acquired support information (S103). If stream recording is not supported (S103: No), the system controller 22 of the host 2 does not perform subsequent initialization processing for stream recording, ends interface initialization, and operates as a normal memory device.
[0092] On the other hand, if streaming recording is supported (S103: Yes), The host sets the host version of SD Express class performance to the device (S104). For example, NVMe TM This step can be omitted if the SPL value is used to identify the class performance standard version supported by the host, as described above.
[0093] Host 2's system controller 22 is NVMe TM A stream directive is made available by using a Directive command (S105). The stream directive is a command group (stream directive command) used in stream recording, such as a Directive Receive command and a Directive Send command.
[0094] When the stream directive is enabled, the system controller 22 of the host 2 acquires parameters (stream-related parameters) required for stream recording from the memory device 1 (S106). TM The controller 11 transmits stream-related parameters to the host 2 in response to a request from the host 2 (not shown). For example, the controller 11 can obtain the number of available streams, the data size of the stream write command (the SWS), the management size of the stream area (the SGS), etc. TM Controller 11 is PCIe TM Register to PCIe TM Bus configuration information is obtained (S202).
[0095] In addition, the NVMe of memory device 1 TM The controller 11 acquires the allowable power consumption from the SPL register 150 of the interface circuit 111 (S203). The controller 11 acquires the SPL setting value or the host version set in (S104). The NVMe of the memory device 1 TM Controller 11 is PCIe TMBased on the bus configuration information, the allowable power consumption, and the host version, the power state set [2] 115 is set (S204).
[0096] Host 2's system controller 22 is NVMe TM The controller 11 is assigned resources for stream recording (S107), and for example, the number of multi-streams to be used is determined, thereby TM The controller 11 can reserve buffer resources for temporarily storing data for each stream. Also, the controller 11 acquires power state information (contents of the power state register) from the memory device 1 (S108). Then, the system controller 22 of the host 2 selects a power state suitable for image quality, etc. from the acquired power state information (S109). NVMe TM Controller 11 is the NVMe controller that gets the power state information of S108. TM When the command is received, the power state information is returned to the host 2 after the setting of the power state set [2] 115 of S104 is completed.
[0097] As described above, in the memory device 1 of the embodiment, it is possible to generate a power state in which stream recording can be performed stably for a long period of time in accordance with the result of connection with the host.
[0098] Incidentally, if a power state set[2]115 for stream recording is generated in the memory device 1 based on various information obtained by interface initialization performed cooperatively by the host 2 and the memory device 1, and the host 2 selects one of the power states from the set to perform stream recording, then theoretically, it is believed that the temperature rise in the memory device 1 will not exceed a certain level.
[0099] However, since the relationship between power consumption and heat dissipation capacity is complicated, it is not easy to implement a heat dissipation capacity that can be calculated theoretically. For example, as described above, the heat dissipation mechanism 25 theoretically has the ability to dissipate heat generated in the memory device 1 when the maximum allowable power indicated by the SPL value is supplied from the power supply circuit 24, but the air layer in the gap between the heat dissipation mechanism 25 arranged on the host 2 side and the memory device 1 has low thermal conductivity, which may cause the temperature of the memory device 1 to rise. This is also because there are many factors that change depending on the implementation, such as the thermal conductivity differing depending on the material of the memory device 1, the surface temperature of the memory device 1 not being uniform, and the location of heat generation differing depending on the mounting position of the heat-generating component.
[0100] Taking this into consideration, the memory device 1 of the embodiment monitors the temperature within the memory device 1, and if the temperature exceeds a threshold during stream recording, notifies the host 2 of the event. Meanwhile, the host 2 uses the event notification function of the memory device 1 to verify whether or not it is actually possible to stably perform stream recording for a long period of time in the selected power state when selecting a power state. The memory device 1 includes an NVMe TM There is a temperature sensor 113 in the controller 11 and a temperature sensor 123 in the flash memory 12, but the flash memory 12 has an NVMe TM Since the upper limit of the operable temperature is lower than that of the controller 11, it is preferable to use the temperature detected by the temperature sensor 123 for this monitoring.
[0101] Specifically, the host 2 executes continuous writing or continuous reading of data such as test data to the memory device 1. In real-time stream recording, performance is emphasized during writing, but it can also be measured during read operations that consume a lot of power. The "measurement SGS" of the flash memory 12 in FIG. 1 is an area used as a write destination for test data and the like. The memory device 1 can use, for example, an area such as a bad block that cannot be used to store data as this area. When using a bad block, an error is ignored even if it is detected. By reserving such an area in advance for continuous writing of test data, it is possible to prevent the user area 122 from being used in testing. Also, when using the user area 122, the host 2 can write test data, but when using a bad block, it is necessary for the memory device 1 to do so since it cannot be accessed from the outside. For example, a predetermined bad block address can be set to NVMe TM Set it to controller 11. NVMe will detect the occurrence of an event when the temperature threshold is exceeded. TM The controller 11 selects the incremented power state number, and executes writing of the prescribed continuous data to the previously set area of the flash memory 12 described above.
[0102] If the host 2 does not receive an event notification from the memory device 1 within a specified time after starting this continuous writing, it determines that stream recording can be performed stably for a long period of time and completes setting the power state for stream recording.
[0103] The host 2 performs continuous writing of test data to the memory device 1 for a specified period of time before starting stream recording, which has the effect of allowing stream recording to be started after the temperature rise in the memory device 1 has subsided and the memory device has reached a steady state.
[0104] On the other hand, if an event notification is received within the specified time, the host 2 switches to a power state one step lower in performance than the current power state and executes continuous writing of test data again. As a result, if there is no event notification within the specified time, it is determined that the power state after switching is capable of performing stream recording stably for a long period of time, and the setting of the power state for stream recording is completed. If an event notification is received within the specified time when executing continuous writing of test data even after switching to the power state with the lowest performance, the host 2 determines that the memory device 1 cannot be used for stream recording. Note that the "training result" of the flash memory 12 in the figure is information recorded as history information on whether or not a temperature rise exceeding the threshold occurred during continuous writing of test data.
[0105] There is also a method of selecting a power state during actual stream recording without using test access. If no event occurs, the default power state can continue to be used. If an event notification is received, the host 2 switches to a power state one step lower in performance than the current power state. If no event occurs, the selected power state continues to be used, and if an event notification is received, the power state is switched to a power state one step lower in performance. If it becomes impossible to switch to a power state with lower performance, it is determined that the memory device 1 cannot be used for stream recording. In addition, when an event notification is received, instead of switching to a power state with one level lower performance, the host can adjust the temperature by lowering the image quality (bit rate, resolution, amount of color information, etc.) to reduce the frequency of writing.
[0106] In this way, the memory device 1 of the embodiment cooperates with the host 2 to more reliably perform stream recording stably for a long period of time.
[0107] FIG. 9 is a flowchart showing the flow of temperature monitoring executed by the memory device 1.
[0108] Memory device 1 NVMe TM The controller 11 reads the temperature detected by the temperature sensor 123 of the flash memory 12 at a certain time interval (S301). TM The controller 11 judges whether the read temperature is equal to or lower than the threshold value (S302). If the temperature exceeds the threshold value (S302: No), the NVMe TM The controller 11 generates an event for notifying the host 2 of a temperature rise exceeding a certain level (S303).
[0109] Figure 10 shows Host 2 or NVMe TM 10 is a flowchart showing the flow of power state adjustment executed by the controller 11. In Fig. 10, N-1 indicates the number of the power state with the lowest performance. The number of the power state with the highest performance is 0.
[0110] The case where the host 2 executes this will be described. When an event notification is received from the memory device 1, the system controller 22 of the host 2 first acquires the current power state number (S401). If the acquired power state number matches the number N-1 of the power state with the lowest performance (S402: No), the system controller 22 determines that the memory device 1 cannot be used for stream recording. Note that, although the condition in the flowchart is that the number is lower than the number of the power state with the lowest performance, the power state numbers are incremented, so if it matches the power state number N-1, S402: No is obtained.
[0111] If the number is smaller than the number of the power state with the lowest performance (S402: Yes), the system controller 22 selects a power state with one step lower performance than the current power state (S403) and executes continuous access to the memory device 1 (S404). However, this step S404 can be omitted, and instead, the temperature can be monitored while performing actual stream recording. TM The controller 11 continuously monitors the temperature as shown in FIG.
[0112] The system controller 22 determines whether an event has occurred within a specified time (S405), and if an event has occurred within the specified time (S405: Yes), the process returns to S401 and repeats the process from S401. On the other hand, if no event has occurred within the specified time (S405: No), the system controller 22 determines that stream recording can be performed stably for a long period of time in the current power state, and ends the power state adjustment. If step S404 is omitted, the power state adjustment ends immediately.
[0113] As described above, in the memory device 1 of the embodiment, the host 2 and the memory device 1 cooperate to execute the training, thereby enabling stream recording to be reliably performed stably for a long period of time.
[0114] In the above explanation, an example of training in which the host 2 writes continuous data to the memory device 1 has been given, but the continuous data writing may be executed by the memory device 1 as background processing, regardless of commands from the host. If the temperature rise exceeds a threshold as a result of the continuous data writing, the memory device 1 may notify the host 2 of the event, and the host 2 may instruct the memory device 1 to switch the power state upon receiving this event notification. Training may also be performed by continuous memory writes performed during actual stream recording. As described above, instead of switching to a power state with lower performance, the host may adjust the temperature by lowering the image quality (bit rate, resolution, amount of color information, etc.) to reduce the frequency of writing.
[0115] Alternatively, the memory device 1 may also internally switch the power state when a temperature rise exceeding the threshold occurs, and upon detecting a power state in which no temperature rise exceeding the threshold occurs, notify the host 2 of that power state. Upon receiving this notification, the host 2 may instruct the memory device 1 as to whether or not to execute stream recording in that power state.
[0116] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0117] 1…PCIe TM / NVMe TM Memory device, 2…host, 11…NVMe TM Controller, 12... flash memory, 21... processor, 22... system controller, 23... system memory, 24... power supply circuit, 25... heat dissipation mechanism, 100... information processing system, 111... interface circuit, 112... firmware, 113... temperature sensor, 114... power state set [1], 115... power state set [2], 116... profile, 120... memory area, 121... internal area, 122... user area, 123... temperature sensor, 150... slot power limit (SPL) register, 221... memory controller, 222... PCIe TM Port, 231…Operating system, 232…PCIe TM Standard driver, 233...NVMe TM Standard driver, 234...Temperature control driver, 250...SPL resistor.
Claims
1. A non-volatile memory; PCI Express TM (PCIe TM It can be connected to a host via an interface that complies with the NVM Express standard. TM (NVMe TM a controller for controlling the non-volatile memory, capable of communicating with the host for writing or reading data in a protocol conforming to a standard; Equipped with The controller: Cooperatively executing an initialization of the interface with the host; determining a maximum supportable performance from among a plurality of performances predefined for stream recording, based on a bus configuration of the interface determined by initialization of the interface and a maximum allowable power consumption set during initialization of the interface; NVMe TM generating a power state set, which is a data set to be stored in a power state register defined by a standard, for indicating a list of supportable capabilities to the host, in which all capabilities among the plurality of capabilities equal to or less than the determined maximum capability are associated with a power state, one by one; Memory system.
2. The bus configuration of the interface is the PCIe TM 2. The memory system according to claim 1, wherein the bus speed and the number of lanes are determined by the initialization procedure defined by a standard.
3. The controller is a PCIe TM 2. The memory system according to claim 1, wherein the maximum allowable power consumption is obtained from a value of a Slot Power Limit register transferred from the host by a Slot_Power_Limit message defined in a standard.
4. When a maximum allowable power consumption value is determined by associating performance that the host can support with a maximum performance that the memory system can support for each of a plurality of ranges of the maximum allowable power consumption, the performance that the host can support and the maximum performance that the memory system can support are determined; 2. The memory system of claim 1, wherein the controller generates the power state set with the maximum performance of the power state being the lower of a performance that the host can support and a maximum performance that the memory system can support.
5. The controller: a first power state set for non-stream recording and a second power state set for stream recording, the generated power state set being the second power state set, the contents of which may vary depending on a bus configuration of the interface and the maximum allowable power consumption; NVMe TM generating the second power state set and switching the contents of the power state register from the contents of the first power state set to the contents of the second power state set when a command requesting a stream recording operation, as specified in a standard, is received from the host; 2. The memory system of claim 1.
6. A temperature sensor is provided. The controller: After receiving a command requesting the stream recording operation, the host device performs continuous data writing or reading to or from the non-volatile memory for a certain period of time, either in response to a request from the host device or independently; monitoring a temperature detected by the temperature sensor while continuously writing data to the nonvolatile memory; If the temperature exceeds a threshold value, a host is notified that the temperature of the memory system has risen above a certain level.
2. The memory system of claim 1.
7. The memory system of claim 6, wherein when the controller independently performs continuous data writing or reading to the non-volatile memory and the temperature exceeds the threshold within the certain period, the controller switches to a power state with lower performance than the current power state and selects a power state in which the temperature does not exceed the threshold even when continuous data writing or reading is performed to the non-volatile memory.
8. 7. The memory system according to claim 6, wherein the controller executes the writing of the consecutive data by using an area of the non-volatile memory reserved in advance for writing the consecutive data.
9. PCI Express TM (PCIe TM It can be connected to a memory system via an interface that complies with the NVM Express standard. TM (NVMe TM a system controller capable of communicating with the memory system to write or read data in accordance with a protocol conforming to the standard; a power supply circuit capable of supplying power to the memory system; Equipped with The system controller includes: Cooperatively performing initialization of the interface with the memory system; notifying the memory system of a maximum allowable power consumption of the memory system that can be supplied by the power supply circuit during initialization of the interface; When the memory system is used to perform stream recording, NVMe TM Transmitting a command to the memory system requesting a stream recording operation as specified by a standard; NVMe TM Obtaining the contents of a power state register defined by a standard from the memory system; selecting one power state from the one or more power states stored in the power state register and setting the selected power state in the memory system; Host device.
10. The system controller includes: Before starting the stream recording, performing continuous data writing to the memory system for a period of time; when a temperature rise of the memory system exceeding a certain level is notified from the memory system within the certain period of time, a power state having a lower performance than the current power state is reselected from the one or more power states stored in the power state register and set to the memory system.
10. The host device of claim 9.
11. 11. The host device according to claim 10, wherein the system controller specifies a predetermined address and executes successive data writes to the memory system.
Citation Information
Patent Citations
Adaptive throttling
US11041763B2
Power allocation management for external storage
US11500447B2
Electronic device, computer system, and control method
US20210081120A1
