TW201428474A - Power management methods and systems using the same - Google Patents

Power management methods and systems using the same Download PDF

Info

Publication number
TW201428474A
TW201428474A TW102100193A TW102100193A TW201428474A TW 201428474 A TW201428474 A TW 201428474A TW 102100193 A TW102100193 A TW 102100193A TW 102100193 A TW102100193 A TW 102100193A TW 201428474 A TW201428474 A TW 201428474A
Authority
TW
Taiwan
Prior art keywords
processing unit
state
central processing
power
specific
Prior art date
Application number
TW102100193A
Other languages
Chinese (zh)
Inventor
Chung-Ching Huang
Yeh Cho
Kuo-Han Chang
Chun-Hsu Chen
Original Assignee
Via Tech Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Via Tech Inc filed Critical Via Tech Inc
Priority to TW102100193A priority Critical patent/TW201428474A/en
Publication of TW201428474A publication Critical patent/TW201428474A/en

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

Power management methods for use in a system operated in a working state are provided. The system includes a central processing unit (CPU), a chipset and a basic input output system (BIOS). First, a specific processor state configuration for the CPU is provided. When detecting a command that configures the CPU to the configured specific processor state, the chipset triggers a system management interrupt to the CPU such that the CPU enters a system management mode, and then the system enters a dedicated system power saving state for power saving.

Description

電源管理方法及相關系統 Power management method and related system

本發明係有關於一種電源管理方法及其系統,特別是一種可有效率地進入省電狀態之電源管理方法。 The present invention relates to a power management method and system thereof, and more particularly to a power management method that can efficiently enter a power saving state.

為了省電的目的,一般系統,尤其是可攜式裝置例如筆記型電腦等,均採用進階組態與電源界面(Advanced Configuration and Power Interface,以下簡稱ACPI)標準來管理其電源。ACPI定義了各種不同狀態,包含有裝置狀態D(Device)、系統狀態S(Sleeping)以及處理單元狀態C(CPU)。系統狀態定義電腦系統整體之電源狀態,裝置狀態定義電腦系統中各裝置之電源狀態,而處理單元狀態定義為中央處理單元之電源狀態。其中,處理單元狀態可具有各種不同的層級例如C0、C1、C2、C3四個層級,系統運作時,作業系統會依據中央處理單元目前之使用狀態驅使中央處理單元進入適當之狀態。舉例來說,系統一般處於工作狀態(S0狀態),而當系統閒置一段時間之後,作業系統會依據中央處理單元目前之使用狀態驅使中央處理單元進入適當之省電狀態,甚至就系統而言,更可進入較省電的系統省電狀態S1至S5,其中S3比S1省電,S4比S3省電,依此類推。雖然S3狀態比S1狀態更省電,然而相對地,其恢復成正常工作狀態的時間也較長。 For power saving purposes, general systems, especially portable devices such as notebook computers, use the Advanced Configuration and Power Interface (ACPI) standard to manage their power supplies. ACPI defines various states, including device state D (Device), system state S (Sleeping), and processing unit state C (CPU). The system state defines the overall power state of the computer system. The device state defines the power state of each device in the computer system, and the state of the processing unit is defined as the power state of the central processing unit. The processing unit status may have four different levels, for example, C0, C1, C2, and C3. When the system is in operation, the operating system drives the central processing unit to an appropriate state according to the current usage state of the central processing unit. For example, the system is generally in a working state (S0 state), and when the system is idle for a period of time, the operating system drives the central processing unit to an appropriate power saving state according to the current state of use of the central processing unit, even in terms of the system. It can also enter the power-saving state of the more power-saving system S1 to S5, where S3 saves power compared to S1, S4 saves power compared to S3, and so on. Although the S3 state is more power efficient than the S1 state, the time it takes to return to the normal operating state is relatively long.

習知地,當系統閒置一段時間後,系統會自動進入預設的電源狀態以節省電源。近年來,手持式裝置,如行動電話、智慧型手機、個人數位助理等變得越來越高階且變得更多功能化。由於這些裝置的便利,也使得這些裝置成為人們的生活必需品之一。隨著使用習慣的改變,使用者愈來愈希望裝置,如電腦系統與手持式裝置能夠提供永遠開機永遠連線 (Always On Always Connected)的能力,因此對於系統的電源管理也更為重要。 Conventionally, when the system is idle for a period of time, the system automatically enters a preset power state to save power. In recent years, handheld devices, such as mobile phones, smart phones, personal digital assistants, etc., have become more sophisticated and more functional. Due to the convenience of these devices, these devices have also become one of the necessities of life. With the change of usage habits, users are increasingly hoping that devices, such as computer systems and handheld devices, can always be connected forever. (Always On Always Connected) capabilities are therefore more important for system power management.

然而,雖然ACPI提供了作業系統多種省電狀態例如C狀態、P狀態等等的電源管理機制,對於系統例如可攜式電腦的整體省電還是不夠,仍然無法有效的省電。 However, although ACPI provides a power management mechanism for various power saving states of the operating system, such as a C state, a P state, etc., the overall power saving of a system such as a portable computer is still insufficient, and power saving is still not effective.

有鑑於此,本發明之目的之一為提供一種電源管理方法及其系統。 In view of the above, it is an object of the present invention to provide a power management method and system therefor.

本發明實施例提供一種電源管理方法,適用於處於一工作狀態之一系統,系統包括一中央處理單元、一晶片組以及一基本輸入輸出系統。方法包括下列步驟。首先,提供中央處理單元之一特定處理單元狀態設定。當晶片組偵測到將中央處理單元設定為特定處理單元狀態之一指令時,觸發一系統管理中斷訊號至中央處理單元,致使中央處理單元進入一系統管理模式,而使系統進入一指定之系統省電狀態。 The embodiment of the invention provides a power management method suitable for a system in a working state, the system comprising a central processing unit, a chip set and a basic input output system. The method includes the following steps. First, a specific processing unit state setting is provided for one of the central processing units. When the chipset detects an instruction to set the central processing unit to a specific processing unit state, triggering a system management interrupt signal to the central processing unit, causing the central processing unit to enter a system management mode, and causing the system to enter a designated system Power saving status.

本發明實施例另提供一種系統,系統處於一工作狀態,至少包括一中央處理單元、一基本輸入輸出系統以及一晶片組。晶片組耦接至中央處理單元以及基本輸入輸出系統,用於偵測到將中央處理單元設定為特定處理單元狀態之一指令時,觸發一系統管理中斷訊號至中央處理單元,致使中央處理單元進入一系統管理模式,而使系統進入一指定之系統省電狀態。 Another embodiment of the present invention provides a system in which the system is in an active state, including at least a central processing unit, a basic input/output system, and a chip set. The chipset is coupled to the central processing unit and the basic input/output system for detecting when the central processing unit is set to one of the specific processing unit states, triggering a system management interrupt signal to the central processing unit, causing the central processing unit to enter A system management mode that allows the system to enter a specified system power saving state.

本發明上述方法可以透過程式碼方式收錄於實體媒體中。當程式碼被機器載入且執行時,機器變成用以實行本發明之裝置。 The above method of the present invention can be recorded in physical media through code. When the code is loaded and executed by the machine, the machine becomes the means for practicing the invention.

為使本發明之上述和其他目的、特徵、和優點能更明顯易懂,下文特舉出較佳實施例,並配合所附圖式,作詳細說明如下。 The above and other objects, features and advantages of the present invention will become more <RTIgt;

100‧‧‧系統 100‧‧‧ system

110‧‧‧中央處理單元 110‧‧‧Central Processing Unit

120‧‧‧晶片組 120‧‧‧chipset

122‧‧‧電源管理單元 122‧‧‧Power Management Unit

124‧‧‧暫存器 124‧‧‧Scratch

SMI#‧‧‧系統管理中斷訊號 SMI#‧‧‧System Management Interrupt Signal

130‧‧‧基本輸入輸出系統 130‧‧‧Basic input and output system

132‧‧‧系統管理中斷處理程序 132‧‧‧System Management Interrupt Handler

S202、S204、S206、S208‧‧‧執行步驟 S202, S204, S206, S208‧‧‧ execution steps

S302、S304、...、S312‧‧‧執行步驟 S302, S304, ..., S312‧‧‧ steps

第1圖係顯示依據本發明實施例之系統架構之示意圖。 Figure 1 is a schematic diagram showing the system architecture in accordance with an embodiment of the present invention.

第2圖係顯示依據本發明實施例之電源管理方法之流程圖。 2 is a flow chart showing a power management method according to an embodiment of the present invention.

第3圖係顯示依據本發明另一實施例之電源管理方法之流程圖。 Figure 3 is a flow chart showing a power management method in accordance with another embodiment of the present invention.

本發明實施例中提供一種電源管理方法及其裝置,可於偵測到中央處理單元(central processing unit,CPU)之處理單元狀態將被設為特定處理單元狀態(例如:最省電之C3狀態時)時,觸發一系統管理中斷(system management interrupt,SMI)訊號,驅使中央處理單元進入系統管理模式(system management mode,SMM),進而使中央處理單元執行基本輸入輸出系統(BIOS)的一段特定系統管理中斷處理程式(SMI handler routine)來將系統設定為指定之系統省電狀態,達到省電的目的。 The embodiment of the present invention provides a power management method and a device thereof, which can detect that a processing unit state of a central processing unit (CPU) is set to a specific processing unit state (for example, a most power-saving C3 state). When a system management interrupt (SMI) signal is triggered, the central processing unit is driven into a system management mode (SMM), which in turn causes the central processing unit to perform a specific portion of the basic input/output system (BIOS). The system management interrupt handler (SMI handler routine) is used to set the system to the specified system power saving state to save power.

第1圖顯示依據本發明實施例之系統100。舉例來說,系統100可以是電腦系統或可攜式裝置,如筆記型電腦、超極緻電腦(Ultrabook)、如行動電話、智慧型手機、與個人數位助理(PDA)等等,但不限於此。其中,系統100可操作於一工作狀態(如ACPI標準之S0狀態)以及多個系統省電狀態(如ACPI標準之S1~S5狀態)。在本實施例中,當操作於工作狀態時,係指系統100為正常操作的狀態。如第1圖所示,電腦系統100至少包括一中央處理單元(CPU)110、一晶片組(chipset)120以及一基本輸入輸出系統(BIOS)130。中央處理單元110可於電腦系統100處於一工作狀態(即:S0狀態)時,依當下的使用狀況被設定為不同的處理單元狀態,例如:C0-Cx狀態,其中Cx狀態為該中央處理單元110最省電的狀態,用以節省中央處理單元110的電源消耗。換言之,依據不同中央處理單元的設計,其最省電的Cx狀態會有所不同。 Figure 1 shows a system 100 in accordance with an embodiment of the present invention. For example, the system 100 can be a computer system or a portable device, such as a notebook computer, an ultrabook, such as a mobile phone, a smart phone, a personal digital assistant (PDA), etc., but is not limited thereto. this. The system 100 can operate in a working state (such as the S0 state of the ACPI standard) and multiple system power saving states (such as the S1~S5 state of the ACPI standard). In the present embodiment, when operating in an active state, the system 100 is in a state of normal operation. As shown in FIG. 1, computer system 100 includes at least a central processing unit (CPU) 110, a chipset 120, and a basic input/output system (BIOS) 130. The central processing unit 110 can be set to different processing unit states according to the current usage status when the computer system 100 is in an operating state (ie, the S0 state), for example, a C0-Cx state, where the Cx state is the central processing unit. The most power-saving state of 110 is to save power consumption of the central processing unit 110. In other words, depending on the design of the different central processing units, the most power-saving Cx state will vary.

晶片組120係耦接至中央處理單元110以及BIOS 130,用以執行依據本發明之電源管理方法。晶片組120可更設置有一電源管理單元122以及一暫存器124,晶片組120的電源管理單元122可發送控制訊號至中央處理單元110,致使中央處理單元110可依據當下之使用狀態進入不同處理單元狀態(C state),而暫存器124係用以儲存一特定處理單元狀態設定。於此實施例中,電源管理單元122可發送控制訊號至中央處理單元110以將中央處理單元110之電源狀態設為指定的處理單元狀態。此外,當電源管理單元122於偵測到將中央處理單元110之電源狀態設為暫存器中的特定處理單元狀態時,晶片組120觸發一系統管理中斷訊號SMI#至中央處 理單元110,驅使中央處理單元110進入一系統管理模式(SMM)。舉例來說,當作業系統偵測到目前中央處理單元110之運作狀態符合進入一特定處理單元狀態(例如:C3狀態)時,作業系統會下達將中央處理單元110設為特定處理單元狀態的指令至晶片組120,而晶片組120可相應此指令發送控制訊息/訊號至中央處理單元110,致使中央處理單元110進入指定的處理單元狀態。 The chipset 120 is coupled to the central processing unit 110 and the BIOS 130 for performing the power management method in accordance with the present invention. The chipset 120 can be further provided with a power management unit 122 and a register 124. The power management unit 122 of the chipset 120 can send control signals to the central processing unit 110, so that the central processing unit 110 can enter different processes according to the current usage state. The cell state (C state), and the register 124 is used to store a particular processing unit state setting. In this embodiment, the power management unit 122 can send a control signal to the central processing unit 110 to set the power state of the central processing unit 110 to a specified processing unit state. In addition, when the power management unit 122 detects that the power state of the central processing unit 110 is set to a specific processing unit state in the scratchpad, the chipset 120 triggers a system management interrupt signal SMI# to the center. The unit 110 drives the central processing unit 110 into a system management mode (SMM). For example, when the operating system detects that the current operating state of the central processing unit 110 is in compliance with a particular processing unit state (eg, C3 state), the operating system issues an instruction to set the central processing unit 110 to a particular processing unit state. To the chipset 120, the chipset 120 can send control messages/signals to the central processing unit 110 in response to the command, causing the central processing unit 110 to enter the designated processing unit state.

基本輸入輸出系統130包括相應系統管理模式的一系統管理中斷處理程序(SMI handler routine)132,其係可於中央處理單元110進入管理模式130透過一系統管理中斷處理程式(SMI handler)來執行。 The basic input/output system 130 includes a system management interrupt handler (SMI handler routine) 132 of the corresponding system management mode, which can be executed by the central processing unit 110 entering the management mode 130 through a system management interrupt handler (SMI handler).

第2圖為一流程圖係顯示依據本發明實施例之電源管理方法。請同時參照第1圖與第2圖。依據本發明實施例之電源管理方法可適用於第1圖的系統100。 Fig. 2 is a flow chart showing a power management method according to an embodiment of the present invention. Please refer to both Figure 1 and Figure 2. The power management method according to an embodiment of the present invention can be applied to the system 100 of Fig. 1.

首先,如步驟S202,提供中央處理單元110之一特定處理單元狀態設定。舉例來說,假設中央處理單元110之處理單元狀態可設定為C0-C3狀態時,則特定處理單元狀態設定可為較省電C2狀態或為最省電之C3狀態,其中,此特定處理單元狀態設定可預先儲存於晶片組120的暫存器124中。值得一提的是,在不同的實施例中,中央處理單元依照不同的設計,其處理單元狀態可設定為C0-Cx狀態,而Cx狀態為該中央處理單元最省電的狀態。於一些實施例中,儲存有特定處理單元狀態設定的暫存器124也可無須設置於晶片組120之內,可另外設置於任何可供晶片組120進行存取的系統單元或儲存空間內。換言之,晶片組120可由暫存器124中得到關於特定處理單元狀態的設定值。此設定值可由使用者預先定義或為預設值。於一實施例中,此特定處理單元狀態係為中央處理單元110之最省電處理單元狀態,例如當中央處理單元110之處理單元狀態為C0-C3狀態時,則最省電處理單元狀態為C3狀態。 First, as step S202, a specific processing unit state setting of one of the central processing units 110 is provided. For example, if the processing unit status of the central processing unit 110 can be set to the C0-C3 state, the specific processing unit status setting can be a more power-saving C2 state or a C3 state that is the most power-saving, wherein the specific processing unit The state settings can be pre-stored in the register 124 of the chipset 120. It is worth mentioning that in different embodiments, the central processing unit can be set to the C0-Cx state according to different designs, and the Cx state is the most power-saving state of the central processing unit. In some embodiments, the register 124 storing the particular processing unit state settings may also need not be disposed within the wafer set 120, and may be additionally disposed in any system unit or storage space accessible to the wafer set 120. In other words, wafer set 120 can be derived from scratchpad 124 for a set value for a particular processing unit state. This setting can be predefined by the user or preset. In an embodiment, the specific processing unit status is the most power saving processing unit status of the central processing unit 110. For example, when the processing unit status of the central processing unit 110 is in the C0-C3 state, the state of the most power saving processing unit is C3 status.

當系統100(例如:一可攜式電腦)處於工作狀態(S0狀態)且閒置一段時間之後,作業系統便會發送要求中央處理單元110進入一指定的處理單元狀態(例如:C1-C3狀態等省電狀態)的一指令以要求中央處理單元110進入所指定的處理單元狀態。於一實施例中,作業系統能夠透過ACPI中所定義的_CST物件(_CST object)知道系統100有支援哪些處理單元狀態 (例如:支援C1、C2與C3狀態或僅支援C1與C2狀態)以及透過哪些暫存器來觸發處理單元狀態。 When the system 100 (eg, a portable computer) is in an active state (S0 state) and is idle for a period of time, the operating system sends a request to the central processing unit 110 to enter a specified processing unit state (eg, C1-C3 state, etc.) An instruction of the power saving state) causes the central processing unit 110 to enter the specified processing unit state. In an embodiment, the operating system can know which processing unit states are supported by the system 100 through the _CST object defined in the ACPI. (For example: support C1, C2, and C3 states or only C1 and C2 states) and which scratchpads are used to trigger the processing unit state.

接著,如步驟S204,晶片組120偵測到將中央處理單元110設定為特定處理單元狀態的一指令,觸發一系統管理中斷訊號SMI#至中央處理單元110。於一些實施例中,晶片組120偵測到將中央處理單元110設定為特定處理單元狀態的一指令係透過一輸出入埠中斷捕捉(IO trap)方式,其中輸出入埠中斷捕捉(IO trap)方式係偵測定義的一特定輸出入埠並於捕捉(trap)到特定輸出入埠的一動作表示作業系統要求中央處理單元110進入特定處理單元狀態。 Next, in step S204, the chipset 120 detects an instruction to set the central processing unit 110 to a specific processing unit state, triggering a system management interrupt signal SMI# to the central processing unit 110. In some embodiments, the chipset 120 detects that an instruction to set the central processing unit 110 to a specific processing unit state is through an input/output interrupt capture (IO trap) mode, wherein the input/output interrupt capture (IO trap) The manner of detecting a particular output of the definition and trapping to a particular output indicates that the operating system requires the central processing unit 110 to enter a particular processing unit state.

當中央處理單元110接收到系統管理中斷訊號SMI#之後,如步驟S206,中央處理單元110依據系統管理中斷訊號SMI#由目前模式進入至一系統管理模式(SMM),並於進入系統管理模式之後,發送一控制訊息至基本輸入輸出系統130以執行基本輸入輸出系統130中相應系統管理模式的一系統管理中斷處理程序132。其中,中央處理單元110係透過一系統管理中斷處理程式來執行基本輸入輸出系統130中相應系統管理模式的系統管理中斷處理程序132。 After the central processing unit 110 receives the system management interrupt signal SMI#, in step S206, the central processing unit 110 enters into a system management mode (SMM) according to the system management interrupt signal SMI# from the current mode, and after entering the system management mode. A system management interrupt handler 132 that sends a control message to the basic input output system 130 to execute the corresponding system management mode in the basic input output system 130. The central processing unit 110 executes the system management interrupt processing program 132 of the corresponding system management mode in the basic input/output system 130 through a system management interrupt processing program.

於是,如步驟S208,系統管理中斷處理程序132可驅使系統100進入一指定的系統省電狀態(例如:S3狀態)。於此實施例中,當中央處理單元110執行本案之系統管理中斷處理程序132時,中央處理單元110會執行基本輸入輸出系統130中的某段程式碼,致使中央處理單元110將電腦系統100之系統電源狀態設為一特定省電狀態(例如:S3狀態)。具體來說,系統管理中斷處理程序係為基本輸入輸出系統130中預先設置的一段相應系統管理模式的程式碼,這些程式碼主要是把必要的內文(context)儲存起來,執行一連串定義的操作來儲存目前系統的一些狀態及暫存器設定值,最後再轉發一個進入指定的系統省電狀態的指令至晶片組120,驅使系統100進入一指定的系統省電狀態(例如:S3狀態),關掉一些不必要的電源,達到省電的目的。 Thus, in step S208, system management interrupt handler 132 can drive system 100 into a specified system power saving state (eg, S3 state). In this embodiment, when the central processing unit 110 executes the system management interrupt processing program 132 of the present case, the central processing unit 110 executes a certain piece of code in the basic input/output system 130, so that the central processing unit 110 can The system power state is set to a specific power saving state (for example, S3 state). Specifically, the system management interrupt processing program is a program code of a corresponding system management mode preset in the basic input/output system 130. The program code mainly stores the necessary context and performs a series of defined operations. To store some status of the current system and the register settings, and finally forward an instruction to enter the specified system power saving state to the chipset 120 to drive the system 100 into a specified system power saving state (eg, S3 state), Turn off some unnecessary power to save power.

於系統100進入指定的系統省電狀態之後,若一周邊裝置發送一中斷事件或一匯流排主控器要求(bus master request)事件時,便可相應一回復指示而產生回復訊號,從而致使系統100由指定的系統省電狀態重 新回復為工作狀態(S0)。基本輸入輸出系統130可重新恢復內容並由作業系統來處理中斷事件或匯流排主控器要求事件。 After the system 100 enters the specified system power saving state, if a peripheral device sends an interrupt event or a bus master request event, a response signal may be generated corresponding to the response indication, thereby causing the system to 100 is saved by the specified system power saving state The new reply is the working status (S0). The basic input output system 130 can re-restore the content and process the interrupt event or bus master request event by the operating system.

值得一提的是,習知系統的電源管理方式為當中央處理單元為處理單元省電狀態(通常為處理單元之最省電狀態),且系統也閒置一段時間時,中央處理單元需先從處理單元省電狀態恢復為處理單元工作狀態C0後,系統才能由系統工作狀態S0,進入系統省電狀態(例如:S3狀態)。然而,本案在中央處理單元為處理單元省電狀態(通常為處理單元之最省電狀態),且系統也閒置一段時間時,藉由觸發一系統管理中斷(SMI)訊號,驅使中央處理單元進入系統管理模式(SMM),進而使系統直接進入系統省電狀態(例如:S3狀態)。 It is worth mentioning that the power management mode of the conventional system is that when the central processing unit is the power saving state of the processing unit (usually the most power-saving state of the processing unit), and the system is idle for a period of time, the central processing unit needs to After the power saving state of the processing unit is restored to the working state of the processing unit C0, the system can enter the system power saving state (for example, the S3 state) from the system working state S0. However, in the case where the central processing unit is the power saving state of the processing unit (usually the most power-saving state of the processing unit), and the system is idle for a period of time, the central processing unit is driven to enter by triggering a system management interrupt (SMI) signal. System Management Mode (SMM), which in turn allows the system to enter the system power-saving state directly (for example, the S3 state).

以下列舉一些實施例,用以輔助說明依據本發明之系統管理方法細節,但本發明並不限於此。第3圖為一流程圖係顯示依據本發明另一實施例之電源管理方法。請同時參照第1圖與第3圖。依據本實施例之系統管理方法可以應用於系統100上。於此實施例,假設系統100係為一可攜式裝置,系統100之工作狀態係為S0狀態,系統100之指定之系統省電狀態係為S3狀態,中央處理單元110之處理單元狀態可被設為C0-C3狀態,而暫存器124的特定處理單元狀態的設定值係設為中央處理單元110的最省電處理單元狀態,亦即C3狀態。 Some embodiments are listed below to assist in explaining the details of the system management method according to the present invention, but the present invention is not limited thereto. Figure 3 is a flow chart showing a power management method in accordance with another embodiment of the present invention. Please refer to both Figure 1 and Figure 3. The system management method according to the present embodiment can be applied to the system 100. In this embodiment, it is assumed that the system 100 is a portable device, the working state of the system 100 is the S0 state, and the system power saving state specified by the system 100 is the S3 state, and the processing unit state of the central processing unit 110 can be The C0-C3 state is set, and the set value of the specific processing unit state of the register 124 is set to the state of the most power-saving processing unit of the central processing unit 110, that is, the C3 state.

假設系統100處於S0狀態且中央處理單元110之處理單元狀態為C0狀態,閒置一段時間之後,作業系統便會發送指令要求中央處理單元110進入一指定的處理單元狀態C1-C3狀態。 Assuming that system 100 is in the S0 state and the processing unit state of central processing unit 110 is in the C0 state, after a period of inactivity, the operating system will send an instruction to request central processing unit 110 to enter a specified processing unit state C1-C3 state.

如步驟S302,晶片組120偵測中央處理單元110之處理單元狀態設定指令並如步驟S304,判斷此指令是否為將中央處理單元110設定為最省電之C3狀態之指令。 In step S302, the chipset 120 detects the processing unit state setting command of the central processing unit 110 and determines whether the command is an instruction to set the central processing unit 110 to the most power-saving C3 state, as in step S304.

於此實施例中,晶片組120可透過輸出入埠中斷捕捉方式,持續偵測各個輸入輸出埠(IO port)或輸入輸出埠的讀取週期並於捕捉到特定的輸入輸出埠或輸入輸出埠的讀取週期的動作時,表示已接收到將中央處理單元110設定為最省電的電源狀態的一命令。 In this embodiment, the chipset 120 can continuously detect the read cycle of each input/output port (IO port) or input/output port through the input/output interrupt capture mode and capture a specific input/output port or input/output port. The operation of the read cycle indicates that a command to set the central processing unit 110 to the most power-saving state of the power supply has been received.

若中央處理單元110之處理單元狀態設定指令並非將中央處理單元110設定為最省電之C3狀態之指令時(步驟S304的否),晶片組 120便將中央處理單元110設定為相應指令的處理單元狀態(步驟S306),並回到步驟S302,繼續偵測中央處理單元110之處理單元狀態設定指令。舉例來說,當偵測到中央處理單元110之處理單元狀態設定指令為將中央處理單元110設定為C1或C2狀態之指令時,晶片組120可對應地將中央處理單元設定為C1或C2狀態。 If the processing unit state setting command of the central processing unit 110 is not an instruction to set the central processing unit 110 to the most power-saving C3 state (NO in step S304), the chipset 120, the central processing unit 110 is set to the processing unit state of the corresponding instruction (step S306), and returns to step S302 to continue detecting the processing unit status setting instruction of the central processing unit 110. For example, when it is detected that the processing unit state setting command of the central processing unit 110 is an instruction to set the central processing unit 110 to the C1 or C2 state, the chipset 120 can correspondingly set the central processing unit to the C1 or C2 state. .

若中央處理單元110之處理單元狀態設定指令係為將中央 處理單元110設定為最省電之C3狀態之指令時(步驟S304的是),晶片組120觸發一系統管理中斷訊號SMI#至中央處理單元110(步驟S308),致使中央處理單元110依據系統管理中斷訊號SMI#進入至系統管理模式,執行基本輸入輸出系統130中相應系統管理模式的系統管理中斷處理程序132(步驟S310)。系統管理中斷處理程序132將把必要的內文儲存起來,執行一連串定義的操作來儲存目前系統的一些狀態及暫存器設定值,最後再轉發一個進入指定的系統省電狀態-S3狀態的指令至晶片組120,驅使系統100進入S3狀態,關掉一些不必要的電源(步驟S312)。 If the processing unit state setting command of the central processing unit 110 is to be central When the processing unit 110 is set to the instruction of the most power-saving C3 state (YES in step S304), the chipset 120 triggers a system management interrupt signal SMI# to the central processing unit 110 (step S308), so that the central processing unit 110 is managed according to the system. The interrupt signal SMI# enters the system management mode, and executes the system management interrupt processing program 132 of the corresponding system management mode in the basic input/output system 130 (step S310). The system management interrupt handler 132 will store the necessary contexts, perform a series of defined operations to store some of the current system status and register settings, and finally forward an instruction to enter the specified system power saving state - S3 state. To the chipset 120, the system 100 is driven into the S3 state, turning off some unnecessary power (step S312).

於系統進入S3狀態之後,若一周邊裝置發送一中斷事件或 一匯流排主控器要求事件時,基本輸入輸出系統130可重新恢復內容並將控制權轉回作業系統,從而致使系統100由S3狀態回復為S0狀態,由作業系統來處理該中斷事件或匯流排主控器要求事件。 After the system enters the S3 state, if a peripheral device sends an interrupt event or When a bus master requests an event, the basic input output system 130 can re-restore the content and transfer control back to the operating system, causing the system 100 to return from the S3 state to the S0 state, which is handled by the operating system. The row master requests an event.

綜上所述,依據本發明之系統之電源管理方法及其系統,在 中央處理單元準備進入特定處理單元狀態例如C2狀態或最省電之處理單元狀態時,可無須回復至C0狀態,晶片組便可透過輸出入埠中斷捕捉的方式,於接收到使中央處理單元進入特定處理單元狀態的指令時透過系統管理中斷訊號來將控制權由作業系統轉移給基本輸入輸出系統,使得基本輸入輸出系統可轉發將系統設為指定的系統省電狀態例如S3狀態的指令來設定系統之狀態設為指定的系統省電狀態,可進一步達到省電的目的。 In summary, the power management method and system of the system according to the present invention are When the central processing unit is ready to enter a specific processing unit state such as the C2 state or the most power-saving processing unit state, the chip group can be returned to the C0 state, and the chip group can receive the central processing unit through the input/output interrupt capture mode. The instruction of the specific processing unit state is transferred from the operating system to the basic input/output system through the system management interrupt signal, so that the basic input/output system can forward the system to set the system to the specified system power saving state, for example, the S3 state. The state of the system is set to the specified system power saving state, which can further achieve the purpose of power saving.

本發明之方法,或特定型態或其部份,可以以程式碼的型態 包含於實體媒體,如軟碟、光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取)儲存媒體,其中,當程式碼被機器,如電腦載入且執行時,此機器變成用以參與本發明之裝置。本發明之方法與裝置也可以以程式碼型態透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸型態進行傳送, 其中,當程式碼被機器,如電腦接收、載入且執行時,此機器變成用以參與本發明之裝置。當在一般用途處理器實作時,程式碼結合處理器提供一操作類似於應用特定邏輯電路之獨特裝置。 The method of the present invention, or a specific type or part thereof, may be in the form of a code Included in physical media, such as floppy disks, CDs, hard drives, or any other machine readable (such as computer readable) storage media, where the code is loaded and executed by a machine, such as a computer, The machine becomes a device for participating in the present invention. The method and apparatus of the present invention can also be transmitted in a coded form through some transmission medium such as a wire or cable, an optical fiber, or any transmission type. Wherein, when the code is received, loaded and executed by a machine, such as a computer, the machine becomes a device for participating in the present invention. When implemented in a general purpose processor, the code in conjunction with the processor provides a unique means of operation similar to application specific logic.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何熟悉此項技藝者,在不脫離本發明之精神和範圍內,當可做些許更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application.

S202、S204、S206、S208‧‧‧執行步驟 S202, S204, S206, S208‧‧‧ execution steps

Claims (16)

一種電源管理方法,適用於處於一工作狀態之一系統,該系統包括一中央處理單元、一晶片組以及一基本輸入輸出系統,包括下列步驟:提供該中央處理單元之一特定處理單元狀態設定,其中該特定處理單元狀態係為該中央處理單元之一省電狀態;以及當該晶片組偵測到將該中央處理單元設定為該特定處理單元狀態之一指令時,觸發一系統管理中斷訊號至該中央處理單元,致使該中央處理單元進入一系統管理模式,而使該系統進入一指定之系統省電狀態。 A power management method for a system in a working state, the system comprising a central processing unit, a chip set and a basic input/output system, comprising the steps of: providing a specific processing unit state setting of one of the central processing units, The specific processing unit state is a power saving state of the central processing unit; and when the chipset detects that the central processing unit is set to one of the specific processing unit states, triggering a system management interrupt signal to The central processing unit causes the central processing unit to enter a system management mode to bring the system into a designated system power saving state. 如申請專利範圍第1項所述之電源管理方法,其中該特定處理單元狀態設定係預先儲存於該晶片組之一暫存器中。 The power management method of claim 1, wherein the specific processing unit state setting is pre-stored in a register of the chipset. 如申請專利範圍第1項所述之電源管理方法,其中該特定處理單元狀態為該中央處理單元之最省電處理單元狀態。 The power management method of claim 1, wherein the specific processing unit status is a state of the most power saving processing unit of the central processing unit. 如申請專利範圍第1項所述之電源管理方法,其中該特定處理單元狀態為ACPI標準之C3狀態。 The power management method of claim 1, wherein the specific processing unit state is a C3 state of the ACPI standard. 如申請專利範圍第1項所述之電源管理方法,其中該工作狀態為S0狀態,該指定之系統省電狀態為S3狀態。 The power management method according to claim 1, wherein the working state is an S0 state, and the specified system power saving state is an S3 state. 如申請專利範圍第1項所述之電源管理方法,其中該中央處理單元係於進入該系統管理模式時,執行該基本輸入輸出系統中相應該系統管理模式之一系統管理中斷處理程序,致使該系統進入該指定之系統省電狀態。 The power management method according to claim 1, wherein the central processing unit is configured to execute a system management interrupt processing program corresponding to the system management mode in the basic input/output system when entering the system management mode, thereby causing the The system enters the specified system power saving state. 如申請專利範圍第6項所述之電源管理方法,其中該中央處理單元係透過一系統管理中斷處理程式執行該基本輸入輸出系統中相應該系統管理模式之該系統管理中斷處理程序。 The power management method according to claim 6, wherein the central processing unit executes the system management interrupt processing program corresponding to the system management mode in the basic input/output system through a system management interrupt processing program. 如申請專利範圍第1項所述之電源管理方法,其中該晶片組偵測到將該中央處理單元設定為該特定處理單元狀態之該指令係透過一輸出入埠中斷捕捉(IO trap)方式,係偵測定義之一特定輸出入埠並於捕捉(trap)到該特定輸出入埠之一動作表示該特定處理單元狀態。 The power management method of claim 1, wherein the chipset detects that the central processing unit is set to the state of the specific processing unit, and the command is transmitted through an input/output interrupt (IO trap) mode. One action that detects one of the specific outputs and traps to that particular output indicates the state of that particular processing unit. 如申請專利範圍第1項所述之電源管理方法,其中該晶片組更於該系統之電源狀態進入該指定之系統省電狀態之後,並於接收到一中斷事件或一匯流排主控器要求事件時,發送一控制訊息至該中央處理單元,致使該中央處理單元將該系統由該指定之系統省電狀態重新回復為該工作狀態。 The power management method of claim 1, wherein the chipset enters the specified system power saving state after the power state of the system, and receives an interrupt event or a bus master request At the time of the event, a control message is sent to the central processing unit, causing the central processing unit to revert the system back to the operational state from the designated system power saving state. 一種系統,該系統處於一工作狀態,包括:一中央處理單元;一基本輸入輸出系統;以及一晶片組,耦接至該中央處理單元以及該基本輸入輸出系統,於偵測到將該中央處理單元設定為一特定處理單元狀態之一指令時,觸發一系統管理中斷訊號至該中央處理單元,致使該中央處理單元進入一系統管理模式,而使該系統進入一指定之系統省電狀態, 其中該特定處理單元狀態係為該中央處理單元之一省電狀態。 A system, the system being in an active state, comprising: a central processing unit; a basic input/output system; and a chip set coupled to the central processing unit and the basic input/output system for detecting the central processing When the unit is set to one of the specific processing unit states, a system management interrupt signal is triggered to the central processing unit, causing the central processing unit to enter a system management mode, and the system enters a specified system power saving state. The specific processing unit state is a power saving state of the central processing unit. 如申請專利範圍第10項所述之系統,其中該中央處理單元係於進入該系統管理模式時,執行該基本輸入輸出系統中相應該系統管理模式之一系統管理中斷處理程序,致使該系統進入該指定之系統省電狀態。 The system of claim 10, wherein the central processing unit is configured to execute a system management interrupt processing program corresponding to the system management mode in the basic input/output system when entering the system management mode, so that the system enters The specified system saves power. 如申請專利範圍第10項所述之系統,其中該晶片組更設置有一暫存器,用以儲存該特定處理單元狀態設定。 The system of claim 10, wherein the chip set is further provided with a register for storing the specific processing unit state setting. 如申請專利範圍第10項所述之系統,其中該特定處理單元狀態為該中央處理單元之最省電處理單元狀態。 The system of claim 10, wherein the specific processing unit state is the most power saving processing unit state of the central processing unit. 如申請專利範圍第10項所述之系統,其中該工作狀態為S0狀態,該指定之系統省電狀態為S3狀態。 The system of claim 10, wherein the working state is an S0 state, and the designated system power saving state is an S3 state. 如申請專利範圍第10項所述之系統,其中該特定處理單元狀態為C3狀態。 The system of claim 10, wherein the specific processing unit state is a C3 state. 如申請專利範圍第10項所述之系統,更包括一特定輸出入埠,該晶片組偵測到將該中央處理單元設定為該特定處理單元狀態之該指令係透過一輸出入埠中斷捕捉(IO trap)方式,係偵測定義之該特定輸出入埠並於捕捉(trap)到該特定輸出入埠之一動作表示該特定處理單元狀態。 The system of claim 10, further comprising a specific input port, wherein the chipset detects that the central processing unit is set to the state of the specific processing unit, and the command is interrupted by an input/output interrupt ( The IO trap method is to detect the specific output of the defined input and to trap to the specific output, indicating the state of the particular processing unit.
TW102100193A 2013-01-04 2013-01-04 Power management methods and systems using the same TW201428474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102100193A TW201428474A (en) 2013-01-04 2013-01-04 Power management methods and systems using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102100193A TW201428474A (en) 2013-01-04 2013-01-04 Power management methods and systems using the same

Publications (1)

Publication Number Publication Date
TW201428474A true TW201428474A (en) 2014-07-16

Family

ID=51726086

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102100193A TW201428474A (en) 2013-01-04 2013-01-04 Power management methods and systems using the same

Country Status (1)

Country Link
TW (1) TW201428474A (en)

Similar Documents

Publication Publication Date Title
US9740645B2 (en) Reducing latency in a peripheral component interconnect express link
TWI622874B (en) Power efficient processor architecture
US8695008B2 (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
JP5885881B2 (en) Implementing a power off state on a computing device
US8719609B2 (en) Using latched events to manage sleep/wake sequences on computer systems
EP2972826B1 (en) Multi-core binary translation task processing
US20160328002A1 (en) Power state transition analysis
US20210141438A1 (en) Systems, apparatus, and methods for transitioning between multiple operating states
TWI557551B (en) Electronic apparatus and wake-up method thereof
TW201413440A (en) Method for controlling power mode switching
CN101281416A (en) Method for ensuring system closedown completion
US9207742B2 (en) Power saving operating method for an electronic device by disabling a connection port to a touch device before the touch device enters power-saving mode
US20180157311A1 (en) System-Wide Idle Resiliency Mechanism for Always-On Always-Connected Computers
TW201428474A (en) Power management methods and systems using the same
TWI489260B (en) Stand-by management method and related management module and computer system
US7272731B2 (en) Information handling system having reduced power consumption
TW201348948A (en) Method and system for recording shutdown information in notebook computer
CN105637494A (en) Techniques for processing custom events
TW201316164A (en) Power-saving system, power-saving method and computer program products thereof
TWI575367B (en) Unattended wakeup
TW201329706A (en) Electronic device, hibernation method and computer program product
JP6409218B2 (en) Power efficient processor architecture
US11294446B2 (en) Non-wakeable system states
KR20050120161A (en) Apparatus and method for controlling status battery in low voltage
TWM524502U (en) Host system