TWI751501B - Control setting method for link state transition and electronic device using the same - Google Patents
Control setting method for link state transition and electronic device using the same Download PDFInfo
- Publication number
- TWI751501B TWI751501B TW109106034A TW109106034A TWI751501B TW I751501 B TWI751501 B TW I751501B TW 109106034 A TW109106034 A TW 109106034A TW 109106034 A TW109106034 A TW 109106034A TW I751501 B TWI751501 B TW I751501B
- Authority
- TW
- Taiwan
- Prior art keywords
- state
- idle time
- volatile memory
- transition
- mode
- Prior art date
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Power Sources (AREA)
Abstract
Description
本揭露是有關於一種鏈路狀態轉換方法及電子裝置,且特別是有關於一種避免鏈路狀態轉換發生問題的鏈路狀態轉換方法及電子裝置。 The present disclosure relates to a link state transition method and an electronic device, and more particularly, to a link state transition method and an electronic device for avoiding the problem of link state transition.
目前的快速非揮發性記憶體固態硬碟(Non-Volatile Memory Express Solid State Drive,NVMe SSD)大多都有支援主動狀態電源管理(Active State Power Management,ASPM),而ASPM對於消費型筆記型電腦而言也是一個重要的功能。然而,在週邊元件互連(Peripheral Component Interconnect,PCI)規格的定義當中,ASPM是屬於硬體(即,儲存控制器)自主觸發的行為。主機不需要控制SSD的ASPM行為。ASPM讓PCIe SSD在某種情況下,能夠從工作模式通過把自身PCIe鏈路切換到低功耗模式,從而達 到降低整條鏈路功耗的目的。ASPM定義的低功耗模式包括L0s和L1。L0s為進入及離開較為快速的睡眠模式,而L1則是進入及離開較慢但卻較省電的模式。 Most of the current fast non-volatile memory solid state drives (Non-Volatile Memory Express Solid State Drive, NVMe SSD) support Active State Power Management (Active State Power Management, ASPM), and ASPM is used for consumer notebook computers. Language is also an important function. However, in the definition of the Peripheral Component Interconnect (PCI) specification, ASPM is a behavior triggered by the hardware (ie, the storage controller) autonomously. The host does not need to control the ASPM behavior of the SSD. ASPM enables PCIe SSD to switch from working mode to low-power mode by switching its PCIe link to low-power mode under certain circumstances, so as to achieve To reduce the power consumption of the entire link. The low power modes defined by ASPM include L0s and L1. L0s is a faster sleep mode to enter and exit, while L1 is a slower but less power-efficient mode to enter and leave.
NVMe仰賴自身的逾時(Timeout)機制來決定進入L0s、L1的時機。然而,目前ASPM全仰賴NVMe自主發起的設計並不理想。若NVMe為了自身的省電需求或效能需求,而自主進入低功耗模式將會多少對系統造成影響。例如,SSD自主進入L1機制設計不良,可能導致系統喚不醒發生死亡藍屏(Blue Screen of Death,BSoD),SSD頻繁進入L1也可能導致系統效能變差。因此,如何解決ASPM所衍生的相關問題是本領域技術人員應致力的目標。 NVMe relies on its own Timeout mechanism to determine the timing of entering L0s and L1. However, the current ASPM relies entirely on NVMe-initiated designs that are not ideal. If NVMe enters the low-power mode autonomously for its own power saving requirements or performance requirements, it will affect the system to some extent. For example, a poorly designed mechanism for an SSD to enter L1 autonomously may cause the system to fail to wake up and cause a Blue Screen of Death (BSoD), and frequent SSD entry into L1 may also lead to poor system performance. Therefore, how to solve the related problems derived from ASPM is the goal of those skilled in the art.
有鑑於此,本揭露提供一種鏈路狀態轉換方法及電子裝置,避免鏈路狀態轉換發生問題。 In view of this, the present disclosure provides a link state transition method and electronic device to avoid the problem of link state transition.
本揭露提出一種鏈路狀態轉換方法,包括:設定儲存裝置的主動狀態電源管理中從操作模式進入低功耗模式鏈路狀態的第一轉換前閒置時間,其中第一轉換前閒置時間小於等於儲存裝置的自主電源狀態轉換中從操作模式進入非操作模式的第二轉換前閒置時間;以及在重開機操作之後將主動狀態電源管理的第一轉換前閒置時間套用到儲存裝置。 The present disclosure provides a link state transition method, including: setting a first pre-transition idle time from an operating mode to a low-power mode link state in active state power management of a storage device, wherein the first pre-transition idle time is less than or equal to the storage device a second pre-transition idle time from an operating mode to a non-operational mode in an autonomous power state transition of the device; and applying the first pre-transition idle time of active state power management to the storage device after a reboot operation.
本揭露提出一種電子裝置,包括處理器;以及儲存裝置,耦接到處理器。處理器設定儲存裝置的主動狀態電源管理中從操作模式進入低功耗模式鏈路狀態的第一轉換前閒置時間,其中第一轉換前閒置時間小於等於儲存裝置的自主電源狀態轉換中從操作模式進入非操作模式的第二轉換前閒置時間;以及在重開機操作之後將主動狀態電源管理的第一轉換前閒置時間套用到儲存裝置。 The present disclosure provides an electronic device including a processor; and a storage device coupled to the processor. The processor sets a first pre-transition idle time from the operating mode to the low-power mode link state in the active state power management of the storage device, wherein the first pre-transition idle time is less than or equal to the transition from the operating mode in the autonomous power state of the storage device entering a second pre-transition idle time of a non-operational mode; and applying the first pre-transition idle time of active state power management to the storage device after a power cycle operation.
基於上述,本揭露的鏈路狀態轉換方法及電子裝置會透過系統端將主動狀態電源管理中從操作模式進入低功耗模式鏈路狀態的第一轉換前閒置時間設定為小於等於自主電源狀態轉換中從操作模式進入非操作模式的第二轉換前閒置時間,並將第一轉換前閒置時間套用到儲存裝置。如此一來,可解決ASPM全仰賴NVMe自主發起造成的問題。 Based on the above, the link state transition method and electronic device of the present disclosure will set the idle time before the first transition from the operation mode to the low power mode link state in the active state power management to be less than or equal to the autonomous power state transition through the system side The second pre-transition idle time from the operating mode to the non-operational mode is applied, and the first pre-transition idle time is applied to the storage device. In this way, the problem caused by ASPM's reliance on NVMe's independent initiation can be solved.
100:電子裝置 100: Electronics
110:處理器 110: Processor
120:儲存無裝置 120: no device for storage
S201~S202:鏈路狀態轉換方法的步驟 S201~S202: steps of the link state transition method
圖1為根據本揭露一實施例的電子裝置的方塊圖。 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure.
圖2為根據本揭露一實施例的鏈路狀態轉換方法的流程圖。 FIG. 2 is a flowchart of a link state transition method according to an embodiment of the present disclosure.
圖1為根據本揭露一實施例的電子裝置的方塊圖。 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present disclosure.
請參照圖1,本揭露一實施例的電子裝置100包括處理器
110及儲存裝置120耦接到處理器100。電子裝置100例如是個人電腦、筆記型電腦、智慧型手機、平板電腦或其他類似裝置。處理器110例如是中央處理器、微處理器或其他類似裝置。儲存裝置120例如是固態硬碟(例如,NVMe SSD、PCIe SSD等)或其他類似裝置。
Please refer to FIG. 1 , an
表一為儲存裝置120對應的APST機制的範例。快速非揮發性記憶體電源狀態PS0對應一般工作模式且PS1及PS2對應可能因系統過熱而降頻的工作模式。透過ITPS與ITPT的交互作用可讓儲存裝置120在系統下能夠在一定的時間內進入非操作模式以節省功耗。 Table 1 is an example of the APST mechanism corresponding to the storage device 120 . The fast non-volatile memory power state PS0 corresponds to the normal operating mode and PS1 and PS2 correspond to the operating modes that may be throttled due to overheating of the system. Through the interaction between ITPS and ITPT, the storage device 120 can enter the non-operation mode for a certain period of time under the system to save power consumption.
在一實施例中,處理器110可設定儲存裝置120的主動狀態電源管理(ASPM)中從操作模式進入低功耗模式鏈路狀態(例
如,L1或L1.2)的第一轉換前閒置時間(ITPT),其中第一轉換前閒置時間小於等於儲存裝置120的自主電源狀態轉換(APST)中從操作模式進入非操作模式的第二轉換前閒置時間。在重開機操作之後,主動狀態電源管理的第一轉換前閒置時間可被套用到儲存裝置120。對應APST及ASPM的ITPT逾時參數的設定可參考以下表二來說明。
In one embodiment, the
表二為儲存裝置120對應的APST機制及ASPM機制的範例。在一實施例中,ITPT_L1及ITPT_L1.2為操作模式下供儲存裝置120參考的PCIe鏈路狀態逾時參數。儲存裝置120必須遵
循電子裝置100的系統所下的逾時參數才能進入ITPT_L1或ITPT_L1.2鏈路狀態。值得注意的是,ASPM對應的ITPT_L1不可大於APST對應的ITPT,因為鏈路狀態是操作模式下進入淺層睡眠的機制,若ASPM鏈路狀態對應的逾時參數大於APST電源狀態對應的逾時參數將會導致儲存裝置120無法進入深層睡眠。因此若系統端將ASPM的ITPT_L1誤設成大於APST的ITPT時,儲存裝置120可直接將ASPM的ITPT_L1設定成等於APST的ITPT以避免產生錯誤。ITPT_L1.2對應的逾時參數為0代表不允許儲存裝置120在PS0/PS1/PS2的電源狀態底下讓儲存裝置120進入PCIe鏈路狀態L1.2。透過本揭露的鏈路狀態轉換方法,可在不同的系統狀態下分別設定不同NVMe鏈路狀態,而不用在交流電模式或直流電模式中只遵循基本輸入輸出系統(Basic Input Output System,BIOS)的設定來統一進入PCIe鏈路狀態L1或PCIe鏈路狀態L1.2的逾時時間。
Table 2 is an example of the APST mechanism and the ASPM mechanism corresponding to the storage device 120 . In one embodiment, ITPT_L1 and ITPT_L1.2 are PCIe link status timeout parameters for the storage device 120 to refer to in the operation mode. Storage device 120 must comply with
The ITPT_L1 or ITPT_L1.2 link state can be entered only according to the timeout parameter set by the system of the
在一實施例中,處理器110可透過NVMe的取得特徵(get feature)取得當前的ITPS及ITPT狀態。當系統端要額外設定ITPS及ITPT時可透過NVMe的設定特徵(set feature)作設定。舉例來說,系統應用程式可呼叫英特爾快速儲存技術(Rapid Storage Technology,RST)應用程式建立新的ITPT_L1、ITPT_L1.2逾時參數,並當系統重開機時將新的ITPT_L1、ITPT_L1.2逾時參數套用到儲存裝置120。
In one embodiment, the
圖2為根據本揭露一實施例的鏈路狀態轉換方法的流程圖。 FIG. 2 is a flowchart of a link state transition method according to an embodiment of the present disclosure.
請參照圖2,在步驟S201中,設定儲存裝置的主動狀態電源管理中從操作模式進入低功耗模式鏈路狀態的第一轉換前閒置時間,其中第一轉換前閒置時間小於等於儲存裝置的自主電源狀態轉換中從操作模式進入非操作模式的第二轉換前閒置時間。 Referring to FIG. 2, in step S201, set the idle time before the first transition from the operating mode to the link state of the low power consumption mode in the active state power management of the storage device, wherein the idle time before the first transition is less than or equal to the storage device's idle time A second pre-transition idle time from an operating mode to a non-operating mode in an autonomous power state transition.
在步驟S202中,在重開機操作之後將主動狀態電源管理的第一轉換前閒置時間套用到儲存裝置。 In step S202, the first pre-transition idle time of the active state power management is applied to the storage device after the reboot operation.
綜上所述,本揭露的鏈路狀態轉換方法及電子裝置會透過系統端將主動狀態電源管理中從操作模式進入低功耗模式鏈路狀態的第一轉換前閒置時間設定為小於等於自主電源狀態轉換中從操作模式進入非操作模式的第二轉換前閒置時間,並將第一轉換前閒置時間套用到儲存裝置。如此一來,可解決ASPM全仰賴NVMe自主發起造成的問題。 To sum up, the link state transition method and electronic device of the present disclosure will set the idle time before the first transition from the operation mode to the low power consumption mode link state in the active state power management to be less than or equal to the autonomous power supply through the system side The idle time before the second transition from the operation mode to the non-operation mode in the state transition is applied, and the first idle time before the transition is applied to the storage device. In this way, the problem caused by ASPM's reliance on NVMe's independent initiation can be solved.
雖然本揭露已以實施例揭露如上,然其並非用以限定本揭露,任何所屬技術領域中具有通常知識者,在不脫離本揭露的精神和範圍內,當可作些許的更動與潤飾,故本揭露的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present disclosure has been disclosed above with examples, it is not intended to limit the present disclosure. Anyone with ordinary knowledge in the technical field may make some changes and modifications without departing from the spirit and scope of the present disclosure. The scope of protection of the present disclosure shall be determined by the scope of the appended patent application.
S201~S202:鏈路狀態轉換方法的步驟 S201~S202: steps of the link state transition method
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW109106034A TWI751501B (en) | 2020-02-25 | 2020-02-25 | Control setting method for link state transition and electronic device using the same |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW109106034A TWI751501B (en) | 2020-02-25 | 2020-02-25 | Control setting method for link state transition and electronic device using the same |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202132944A TW202132944A (en) | 2021-09-01 |
| TWI751501B true TWI751501B (en) | 2022-01-01 |
Family
ID=78777650
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW109106034A TWI751501B (en) | 2020-02-25 | 2020-02-25 | Control setting method for link state transition and electronic device using the same |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI751501B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2024014337A (en) * | 2022-07-22 | 2024-02-01 | キオクシア株式会社 | memory system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1763694A (en) * | 2005-05-23 | 2006-04-26 | 威盛电子股份有限公司 | Peripheral device interconnection high-speed link power state conversion system and method thereof |
| WO2013162512A1 (en) * | 2012-04-24 | 2013-10-31 | Intel Corporation | Adaptive low-power link-state entry policy for active interconnect link power management |
| TW201740270A (en) * | 2016-05-06 | 2017-11-16 | 廣達電腦股份有限公司 | Server rack power management |
-
2020
- 2020-02-25 TW TW109106034A patent/TWI751501B/en not_active IP Right Cessation
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1763694A (en) * | 2005-05-23 | 2006-04-26 | 威盛电子股份有限公司 | Peripheral device interconnection high-speed link power state conversion system and method thereof |
| TW200641620A (en) * | 2005-05-23 | 2006-12-01 | Via Tech Inc | PCI express transitioning link power state system and method thereof |
| WO2013162512A1 (en) * | 2012-04-24 | 2013-10-31 | Intel Corporation | Adaptive low-power link-state entry policy for active interconnect link power management |
| TW201740270A (en) * | 2016-05-06 | 2017-11-16 | 廣達電腦股份有限公司 | Server rack power management |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202132944A (en) | 2021-09-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102566739B (en) | Multi-core processor system and its dynamic power management method and control device | |
| JP5707321B2 (en) | Sleep processor | |
| EP2239647B1 (en) | Motherboard with electronic device for reducing power consumption during sleep mode of computer motherboard | |
| US9563257B2 (en) | Dynamic energy-saving method and apparatus for PCIE device, and communication system thereof | |
| TWI438615B (en) | Power management method and device thereof | |
| EP2267575B1 (en) | Electronic device for reducing power consumption of computer motherboard and motherboard thereof | |
| CN104011626B (en) | Systems, methods and apparatus for energy efficiency and energy saving by configuring power management parameters during runtime | |
| US20150227476A1 (en) | Reducing latency in a peripheral component interconnect express link | |
| US20140143574A1 (en) | Power control system and power control method | |
| CN104246655A (en) | Information processing device, information processing method, and program | |
| KR102702988B1 (en) | A power saving apparatus and method of a computer system by the optimized clock frequency and voltage of GPU | |
| CN101907918A (en) | Computer system and related method for saving power consumption in standby/off state | |
| TWI751501B (en) | Control setting method for link state transition and electronic device using the same | |
| US20240370078A1 (en) | Robust platform low power mode via embedded controller-based health policy to correct anomalous computer idle conditions | |
| CN101281416A (en) | Method for ensuring system shutdown completion | |
| TWI667569B (en) | Computer wake-up method and computer power saving method | |
| WO2013170809A1 (en) | Method and device for reducing power consumption of mobile terminal, and terminal thereof | |
| CN101408792A (en) | Power management device and management method thereof | |
| CN102156523B (en) | Power management method and computer system | |
| CN103488270A (en) | Power saving method and electronic device thereof | |
| CN102594575A (en) | System and method of controlling sleep and awakening of server | |
| US8713337B2 (en) | Power management method for reducing power of host when turning off main monitor and computer system applying the same | |
| TWI451239B (en) | Control method applied to computer system in hybrid sleep mode | |
| KR102817423B1 (en) | A power saving apparatus and method of an energy-saving computer system that dynamically applies utilization function based on CPU usage | |
| CN101320347B (en) | Computer system and method for controlling processor thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |