TWI395096B - Power management method and related chipset and computer system - Google Patents

Power management method and related chipset and computer system Download PDF

Info

Publication number
TWI395096B
TWI395096B TW98115667A TW98115667A TWI395096B TW I395096 B TWI395096 B TW I395096B TW 98115667 A TW98115667 A TW 98115667A TW 98115667 A TW98115667 A TW 98115667A TW I395096 B TWI395096 B TW I395096B
Authority
TW
Taiwan
Prior art keywords
locked loop
state
control state
power management
control
Prior art date
Application number
TW98115667A
Other languages
Chinese (zh)
Other versions
TW201040705A (en
Inventor
shuang-shuang Qin
Cheng Wei Huang
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 TW98115667A priority Critical patent/TWI395096B/en
Publication of TW201040705A publication Critical patent/TW201040705A/en
Application granted granted Critical
Publication of TWI395096B publication Critical patent/TWI395096B/en

Links

Landscapes

  • Power Sources (AREA)

Description

電源管理方法及其相關晶片組及電腦系統Power management method and related chipset and computer system

本發明係有關於一種電源管理方法及其相關管理裝置以及晶片組,特別是有關於一種基於進階組態與電源界面(Advanced Configuration and Power Interface,ACPI)的處理器電源狀態的電源管理方法,用以控制一電腦系統中的鎖相迴路之操作。The present invention relates to a power management method and related management apparatus and chipset thereof, and more particularly to a power management method based on a processor power state of an Advanced Configuration and Power Interface (ACPI). Used to control the operation of a phase-locked loop in a computer system.

為了提供電源管理,目前的電腦系統例如個人電腦或可攜式電腦均採用進階組態與電源界面(Advanced Configuration and Power Interface,以下簡稱ACPI),以有效地監控以及分配供應的能源給電腦系統中的每一元件。ACPI定義了五種狀態,例如:S0、S1、S3、S4和S5五種狀態。然而,只有狀態S0是電腦系統正常操作的狀態,其餘S1至S5狀態,電腦系統皆處於休眠狀態。此外,ACPI更定義了在狀態S0時的中央處理器省電狀態。In order to provide power management, current computer systems such as personal computers or portable computers use Advanced Configuration and Power Interface (ACPI) to effectively monitor and distribute the supplied energy to the computer system. Each component in it. ACPI defines five states, such as S0, S1, S3, S4, and S5. However, only the state S0 is the state in which the computer system is operating normally, and the remaining S1 to S5 states, the computer system is in a sleep state. In addition, ACPI further defines the central processor power saving state at state S0.

第1圖為ACPI定義中央處理器之電源狀態示意圖。ACPI定義中央處理器在工作狀態(full running state)時(C0狀態)正常地運作,例如執行各項指令與工作。如果電腦系統閒置超過一段預定時間,作業系統會讓中央處理器進入省電狀態例如C1-C4狀態。作業系統會根據電腦系統上的匯流排主控元件動作狀態(Bus Master activity status)來決定讓中央處理器進入哪一種省電狀態。ACPI標準中所定義的中央處理器省電狀態包含第一(C1)、第二(C2)、第三(C3)省電狀態以及比C3狀態更省電的第四(C4)省電狀態,其中C2狀態比C1狀態省電,C3狀態會比C2狀態省電,C4狀態會比C3狀態省電,因此又稱第四省電狀態(C4)為最低功耗省電狀態。在C2狀態中,中央處理器不執行任何指令,但是能夠窺探匯流排主控元件(Bus Master)的存取動作,其中匯流排主控元件係指在電腦系統中具有匯流排主控權之元件,例如USB控制器、PCI控制器等等。此時,若有中斷事件產生使得中斷(Interrupt)產生時、或中央處理器被請求執行指令時,中央處理器會從C2狀態回到C0狀態。在C3或C4狀態(以下簡稱C3/C4狀態)中,中央處理器停止時脈,同時也不能窺探匯流排主控元件的存取動作。C4狀態與C3狀態相比,中央處理器處於更深度的睡眠狀態中。因此,C4為處理器的所有省電狀態中的低耗電狀態,亦即損耗最少的能源。Figure 1 is a schematic diagram showing the power state of the central processor defined by ACPI. ACPI defines that the central processor operates normally in the full running state (C0 state), such as executing various instructions and operations. If the computer system is idle for more than a predetermined period of time, the operating system will cause the central processor to enter a power saving state such as the C1-C4 state. The operating system determines which power saving state the central processor enters based on the Bus Master activity status on the computer system. The central processor power saving state defined in the ACPI standard includes a first (C1), a second (C2), a third (C3) power saving state, and a fourth (C4) power saving state that is more power efficient than the C3 state. The C2 state saves power compared to the C1 state, the C3 state saves power compared to the C2 state, and the C4 state saves power compared to the C3 state. Therefore, the fourth power saving state (C4) is also referred to as the lowest power consumption state. In the C2 state, the central processor does not execute any instructions, but can snoop on the access actions of the bus master control component (Bus Master), where the busbar master control component refers to the component having the busbar mastership in the computer system. For example, a USB controller, a PCI controller, and the like. At this time, if an interrupt event occurs such that an interrupt occurs, or when the central processing unit is requested to execute an instruction, the central processor returns from the C2 state to the C0 state. In the C3 or C4 state (hereinafter referred to as the C3/C4 state), the CPU stops the clock and cannot snoop the access action of the bus master. The C4 state is in a deeper sleep state than the C3 state. Therefore, C4 is the low power state in all power saving states of the processor, that is, the energy with the least loss.

當電腦系統中的作業系統偵測到電腦系統無任何動作超過一段既定時間時,將致使中央處理器進入C3/C4狀態,藉此使得電腦系統更有效地節省電源。When the operating system in the computer system detects that the computer system has not acted for more than a predetermined period of time, it will cause the central processing unit to enter the C3/C4 state, thereby making the computer system more efficient in saving power.

電腦系統中,鎖相迴路(phase lock loop,PLL)係用來產生各種不同頻率的時脈訊號,其係根據一接收到的低頻率來源時脈訊號輸入,產生各種不同頻率的高時脈訊號輸出以供電腦系統內部使用。鎖相迴路係被整合至大部分的整合晶片中,以產生各種不同的高頻率時脈來源。然而,鎖相迴路的動作將會造成大量的電力耗損。因此,如何有效的控制鎖相迴路成為降低電源損耗的重要課題之一。In a computer system, a phase lock loop (PLL) is used to generate clock signals of various frequencies, which are generated according to a received low frequency source clock signal to generate high frequency signals of different frequencies. The output is for internal use by the computer system. Phase-locked loops are integrated into most integrated wafers to produce a variety of different high frequency clock sources. However, the action of the phase-locked loop will cause a large amount of power loss. Therefore, how to effectively control the phase-locked loop becomes one of the important topics to reduce power loss.

習知地,鎖相迴路係依據ACPI系統狀態例如S1狀態來加以控制,而在電腦系統正常操作的狀態S0下,鎖相迴路一般保持正常執行(free running),並未加以控制。換言之,當電腦系統正常操作時,由於鎖相迴路係較耗電,因此無法有效降低電源損耗。Conventionally, the phase-locked loop is controlled according to the ACPI system state, such as the S1 state, and in the normal operating state S0 of the computer system, the phase-locked loop generally remains free running and is not controlled. In other words, when the computer system is operating normally, the power loss is not effectively reduced because the phase-locked loop is more power-hungry.

此外,電腦系統一般不會頻繁地自動進入休眠狀態S1-S5,而作業系統卻會經常送出指令以將處理器狀態設為省電狀態C3/C4狀態。因此,處理器在省電狀態C3/C4狀態的時間遠比電腦系統在休眠狀態S1或其他休眠狀態長。In addition, the computer system generally does not automatically enter the sleep state S1-S5 frequently, but the operating system often sends instructions to set the processor state to the power-saving state C3/C4 state. Therefore, the processor is in the power saving state C3/C4 state for a much longer time than the computer system in the sleep state S1 or other sleep state.

因此,需要一種可於處理器狀態設為省電狀態(C3/C4狀態)時的鎖相迴路控制方法以及裝置。Therefore, there is a need for a phase-locked loop control method and apparatus that can be used when the processor state is set to a power-saving state (C3/C4 state).

有鑑於此,本發明提供一種電源管理方法,適用於一電腦系統,其中電腦系統具有一處理單元、一電源管理模組(PMU)以及一鎖相迴路(PLL)電路,電源管理模組耦接複數個周邊模組,並且電腦系統以及該處理單元可分別操作於一工作狀態與複數省電狀態下。其方法包括:當電腦系統操作於工作狀態且處理單元進入省電狀態中之一最低功耗省電狀態時,偵測周邊模組之狀態,以判斷一特定條件是否符合;以及當周邊模組之狀態符合特定條件時,依據一控制狀態設定,致使處理單元進入一控制狀態以控制鎖相迴路之操作。In view of this, the present invention provides a power management method suitable for a computer system, wherein the computer system has a processing unit, a power management module (PMU), and a phase locked loop (PLL) circuit, and the power management module is coupled. A plurality of peripheral modules, and the computer system and the processing unit are respectively operable in a working state and a plurality of power saving states. The method comprises: when the computer system is operating in a working state and the processing unit enters one of the lowest power consumption states in the power saving state, detecting the state of the peripheral module to determine whether a specific condition is met; and when the peripheral module When the state meets certain conditions, according to a control state setting, the processing unit enters a control state to control the operation of the phase locked loop.

本發明實施例另提供一種晶片組,其耦接至一時脈產生器以及一處理器,包括一鎖相迴路、一閘控單元、複數周邊模組以及一電源管理模組。鎖相迴路用以依據時脈產生器產生之一第一時脈訊號,產生至少一第二時脈訊號。閘控單元耦接至鎖相迴路,用以控制鎖相迴路產生之第二時脈訊號之輸出。每一周邊模組分別具有一低功耗省電狀態。電源管理模組耦接至閘控單元、周邊模組以及鎖相迴路。其中當處理單元進入省電狀態中之一最低功耗省電狀態時,電源管理模組偵測周邊模組之狀態,以判斷一特定條件是否符合,並當周邊模組之狀態符合特定條件時,依據一控制狀態設定,致使處理單元進入一控制狀態以控制鎖相迴路之操作。The embodiment of the present invention further provides a chip set coupled to a clock generator and a processor, including a phase lock loop, a gate control unit, a plurality of peripheral modules, and a power management module. The phase locked loop is configured to generate at least one second clock signal according to the first clock signal generated by the clock generator. The gate control unit is coupled to the phase locked loop for controlling the output of the second clock signal generated by the phase locked loop. Each peripheral module has a low power consumption state. The power management module is coupled to the gate control unit, the peripheral module, and the phase locked loop. When the processing unit enters one of the lowest power consumption states in the power saving state, the power management module detects the state of the peripheral module to determine whether a specific condition is met, and when the state of the peripheral module meets a specific condition According to a control state setting, the processing unit is caused to enter a control state to control the operation of the phase locked loop.

本發明實施例另提供一種電腦系統,包括一時脈產生器、一處理單元以及一晶片組。時脈產生器用以產生一第一時脈訊號。晶片組耦接至時脈產生器以及處理單元,其包括一鎖相迴路、一閘控單元、複數周邊模組以及一電源管理模組。鎖相迴路依據第一時脈訊號,產生至少一第二時脈訊號。閘控單元耦接至鎖相迴路,用以控制鎖相迴路產生之第二時脈訊號之輸出。每一周邊模組分別具有一低功耗省電狀態。電源管理模組耦接至閘控單元、周邊模組以及鎖相迴路。其中,當電腦系統操作於一工作狀態且處理單元進入控制狀態中之一最低功耗省電狀態時,電源管理模組偵測周邊模組之狀態,以判斷一特定條件是否符合,並當周邊模組之狀態符合特定條件時,依據一控制狀態設定,致使處理單元進入一控制狀態以控制鎖相迴路之操作。Another embodiment of the present invention provides a computer system including a clock generator, a processing unit, and a chip set. The clock generator is configured to generate a first clock signal. The chipset is coupled to the clock generator and the processing unit, and includes a phase lock loop, a gate control unit, a plurality of peripheral modules, and a power management module. The phase locked loop generates at least one second clock signal according to the first clock signal. The gate control unit is coupled to the phase locked loop for controlling the output of the second clock signal generated by the phase locked loop. Each peripheral module has a low power consumption state. The power management module is coupled to the gate control unit, the peripheral module, and the phase locked loop. Wherein, when the computer system is operating in a working state and the processing unit enters one of the lowest power consumption states in the control state, the power management module detects the state of the peripheral module to determine whether a specific condition is met, and When the state of the module meets certain conditions, according to a control state setting, the processing unit enters a control state to control the operation of the phase locked loop.

本發明上述方法可以透過程式碼方式收錄於實體媒體中。當程式碼被機器載入且執行時,機器變成用以實行本發明之裝置。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;

第2圖顯示依據本發明實施例之電腦系統200。其中,電腦系統200可操作於一工作狀態(如ACPI狀態S0)以及多個省電狀態(如ACPI狀態S1-S5),只有當操作於工作狀態時,電腦系統200為正常操作的狀態,其餘省電狀態皆處於休眠狀態。如第2圖所示,電腦系統200至少包括一處理單元210、一時脈產生器220、以及一晶片組(chipset)230。時脈產生器220係用以產生一第一時脈訊號。晶片組230係耦接至處理單元210以及時脈產生器220,其中晶片組230包括一鎖相迴路232、一閘控單元234、一電源管理模組236以及多個周邊模組238。其中,周邊模組238係為匯流排主控元件(Bus Master)或各種輸出入裝置控制器。舉例來說,周邊模組238可包括DRAM控制器、PCIe控制器、HDAC控制器、SMBus控制器、LPC控制器、即時時脈產生器(RTC)、中斷控制器(8259)、APIC、PCI控制器、SPI&SPI快閃記憶體、SDIO以及記憶卡介面控制器、鍵盤滑鼠控制器、繪圖控制晶片(GFX)、USB控制器以及SATA控制器等,但不限於此。每一個周邊模組238分別具有工作狀態以及多個省電狀態,其中省電狀態中最省電的模式稱為低功耗省電模式。舉例來說,若周邊模組238為記憶體控制器時,其低功耗省電模式即係工作於自我更新(self-refresh)模式;若周邊模組238為繪圖控制晶片時,其低功耗省電模式即係工作於快照(snapshot)模式;若周邊模組238為USB控制器時,其低功耗省電模式即係將USB裝置設為工作於D3模式:若周邊模組238為SATA控制器時,其低功耗省電模式即係將SATA裝置設為工作於部分/休眠(partial/slumber)模式。Figure 2 shows a computer system 200 in accordance with an embodiment of the present invention. The computer system 200 can operate in a working state (such as ACPI state S0) and a plurality of power saving states (such as ACPI states S1-S5). Only when operating in the working state, the computer system 200 is in a normal operating state, and the rest. The power saving state is in a sleep state. As shown in FIG. 2, the computer system 200 includes at least a processing unit 210, a clock generator 220, and a chipset 230. The clock generator 220 is configured to generate a first clock signal. The chip set 230 is coupled to the processing unit 210 and the clock generator 220. The chip set 230 includes a phase locked loop 232, a gate control unit 234, a power management module 236, and a plurality of peripheral modules 238. The peripheral module 238 is a bus master or a variety of input and output device controllers. For example, the peripheral module 238 can include a DRAM controller, a PCIe controller, an HDAC controller, an SMBus controller, an LPC controller, an instant clock generator (RTC), an interrupt controller (8259), an APIC, and a PCI control. , but not limited to, SPI & SPI flash memory, SDIO and memory card interface controller, keyboard mouse controller, graphics control chip (GFX), USB controller and SATA controller. Each of the peripheral modules 238 has an operating state and a plurality of power saving states, wherein the most power saving mode in the power saving state is referred to as a low power consumption mode. For example, if the peripheral module 238 is a memory controller, its low power consumption mode operates in a self-refresh mode; if the peripheral module 238 is a graphics control chip, its low power The power saving mode is in the snapshot mode; if the peripheral module 238 is a USB controller, the low power consumption mode is to set the USB device to work in the D3 mode: if the peripheral module 238 is For SATA controllers, the low-power mode saves the SATA device to work in partial/slumber mode.

鎖相迴路232係接收時脈產生器220所產生的第一時脈訊號,並依據第一時脈訊號,產生至少一第二時脈訊號,其中,第二時脈訊號一般具有比第一時脈訊號高的頻率。閘控單元234係耦接至鎖相迴路232,用以控制鎖相迴路232產生的第二時脈訊號的輸出。於一實施例中,閘控單元234更耦接至電源管理模組236,其係依據電源管理模組236的一控制訊號PLLG(第一控制訊號),決定是否遮斷(gating)鎖相迴路232的第二時脈訊號的輸出,亦即是否停止第二時脈訊號的輸出。鎖相迴路232耦接至電源管理模組236,其係依據電源管理模組236的一控制訊號PLLD(第二控制訊號),決定是否關閉(power down)鎖相迴路232。The phase-locked loop 232 receives the first clock signal generated by the clock generator 220, and generates at least one second clock signal according to the first clock signal, wherein the second clock signal generally has a first time The frequency at which the pulse signal is high. The thyristor 234 is coupled to the phase-locked loop 232 for controlling the output of the second clock signal generated by the phase-locked loop 232. In an embodiment, the thyristor 234 is further coupled to the power management module 236, which determines whether to gag the phase-locked loop according to a control signal PLLG (first control signal) of the power management module 236. The output of the second clock signal of 232, that is, whether to stop the output of the second clock signal. The phase-locked loop 232 is coupled to the power management module 236, which determines whether to shut down the phase-locked loop 232 according to a control signal PLLD (second control signal) of the power management module 236.

電源管理模組236係耦接至閘控單元234以及所有周邊模組238,用以執行依據本發明實施例的電源管理方法,用以依據處理單元210的省電狀態,控制鎖相迴路232的操作。The power management module 236 is coupled to the thyristor unit 234 and all of the peripheral modules 238 for performing a power management method according to an embodiment of the present invention for controlling the phase locked loop 232 according to the power saving state of the processing unit 210. operating.

第3圖顯示一依據本發明實施例之電源管理方法之流程圖。如前述,依據本發明實施例之電源管理方法可以由如第2圖中的電源管理模組236所執行。請同時參照第2圖。首先,當電腦系統200操作於工作狀態且處理單元210進入控制狀態中之一最低功耗省電狀態C4時,如步驟S310,電源管理模組236偵測所有周邊模組238的狀態,以判斷一特定條件是否符合(步驟S320)。請注意,電源管理模組236偵測周邊模組238的狀態(例如電源狀態)以判斷特定條件是否符合係於所有周邊模組238皆閒置一既定時間之後才進行判斷。由於每一周邊模組238分別具有一低功耗省電模式,因此電源管理模組236偵測周邊模組238之狀態以判斷特定條件是否符合係判斷周邊模組中的既定周邊模組是否處於對應的低功耗省電模式。於一實施例中,既定周邊模組可包括(但不限於此)一記憶體控制器、一繪圖控制器、USB控制器以及SATA控制器,則當下列條件成立時,特定條件係判斷為符合:Figure 3 shows a flow chart of a power management method in accordance with an embodiment of the present invention. As described above, the power management method according to an embodiment of the present invention can be performed by the power management module 236 as shown in FIG. 2. Please also refer to Figure 2. First, when the computer system 200 is in the working state and the processing unit 210 enters one of the lowest power consumption states C4 in the control state, the power management module 236 detects the state of all the peripheral modules 238 to determine the state in step S310. Whether or not a specific condition is met (step S320). Please note that the power management module 236 detects the status of the peripheral module 238 (eg, the power state) to determine whether the particular condition is consistent with all of the peripheral modules 238 being idle for a predetermined period of time before making a determination. Since each peripheral module 238 has a low power consumption mode, the power management module 236 detects the status of the peripheral module 238 to determine whether the specific condition is consistent with whether the predetermined peripheral module in the peripheral module is in the Corresponding low power saving mode. In an embodiment, the predetermined peripheral module may include, but is not limited to, a memory controller, a graphics controller, a USB controller, and a SATA controller, and the specific conditions are determined to be met when the following conditions are met. :

(1)記憶體控制器係工作於自我更新模式;(1) The memory controller works in a self-updating mode;

(2)繪圖控制器係工作於快照模式;(2) The drawing controller works in snapshot mode;

(3)USB控制器係將USB裝置設為工作於D3模式:以及(3) USB controller sets the USB device to work in D3 mode:

(4)SATA控制器係將SATA裝置設為工作於部分/休眠(partial/slumber)模式。(4) The SATA controller sets the SATA device to work in partial/slumber mode.

換言之,只有當上述條件(1)-(4)都符合時,電源管理模組236才會判斷特定條件為符合,否則判斷為不符合特定條件。如前述,由於上述判斷係於所有周邊模組238皆閒置一既定時間之後才進行,因此除了既定周邊模組的狀態需符合上述條件(1)-(4)之外,其他周邊模組則是閒置狀態。In other words, the power management module 236 determines that the specific condition is met only if the above conditions (1)-(4) are met, otherwise it is determined that the specific condition is not met. As described above, since the above determination is performed after all the peripheral modules 238 are idle for a predetermined period of time, in addition to the conditions of the predetermined peripheral modules that need to meet the above conditions (1)-(4), other peripheral modules are Idle state.

當周邊模組的狀態不符合特定條件時(步驟S320的否),例如上述條件(1)-(4)不符合或有任何定義好的喚醒事件發生時,便不做特別處理,流程結束。When the state of the peripheral module does not meet the specific condition (No in step S320), for example, if the above conditions (1)-(4) do not match or any defined wake-up event occurs, no special processing is performed, and the flow ends.

當周邊模組的狀態符合特定條件時(步驟S320的是),電源管理模組236便依據一預設的控制狀態設定,致使處理單元210進入一鎖相迴路控制狀態以控制鎖相迴路232的操作(步驟S330)。舉例來說,於一實施例中,可於電腦系統的基本輸出入系統(BIOS)(未繪示)中提供一控制狀態設定選項,以設定進入鎖相迴路控制狀態後的控制狀態。於本實施例中,鎖相迴路控制狀態有兩種控制狀態設定值:第一控制狀態(C4PG)以及第二控制狀態(C4PD)。此設定值將儲存於一暫存器(未繪示)中,例如設定值1表示第一控制狀態,而設定值0表示第二控制狀態。請參見第4圖,係顯示依據本發明實施例之中央處理器之電源狀態示意圖。如第4圖所示,中央處理器之電源狀態共有工作狀態C0、第一省電狀態C1、第二省電狀態C2、第三省電狀態C3、最低功耗省電狀態C4以及兩種可能的鎖相迴路控制狀態C4PG(第一控制狀態)以及C4PD(第二控制狀態)。其中,狀態C0至C4係類似於第1圖中的對應狀態,鎖相迴路控制狀態C4PG以及C4PD則依據暫存器中的設定值選擇性地進入。舉例來說,當處理單元210進入最低功耗省電狀態C4時,若暫存器中的設定值為1,則處理單元210將進入第一控制狀態(C4PG)。反之,當處理單元210進入最低功耗省電狀態C4時,若暫存器中的設定值為0,則處理單元210將進入第二控制狀態(C4PD)。當處理單元210進入第一或第二控制狀態後,若偵測到有任何喚醒事件發生時,電源管理模組236便執行一恢復程序以將處理單元210恢復至最低功耗省電狀態C4。When the state of the peripheral module meets the specific condition (Yes in step S320), the power management module 236 is configured according to a preset control state, causing the processing unit 210 to enter a phase locked loop control state to control the phase locked loop 232. Operation (step S330). For example, in one embodiment, a control state setting option can be provided in a basic input/output system (BIOS) (not shown) of the computer system to set a control state after entering the phase locked loop control state. In this embodiment, the phase locked loop control state has two control state setting values: a first control state (C4PG) and a second control state (C4PD). The set value will be stored in a register (not shown), for example, the set value 1 indicates the first control state, and the set value 0 indicates the second control state. Referring to FIG. 4, there is shown a schematic diagram of a power state of a central processing unit in accordance with an embodiment of the present invention. As shown in FIG. 4, the power state of the central processing unit has a working state C0, a first power saving state C1, a second power saving state C2, a third power saving state C3, a minimum power consumption state C4, and two possibilities. The phase locked loop controls the state C4PG (first control state) and C4PD (second control state). Among them, the states C0 to C4 are similar to the corresponding states in FIG. 1, and the phase-locked loop control states C4PG and C4PD are selectively entered according to the set values in the register. For example, when the processing unit 210 enters the lowest power consumption state C4, if the set value in the register is 1, the processing unit 210 will enter the first control state (C4PG). Conversely, when the processing unit 210 enters the lowest power consumption state C4, if the set value in the register is 0, the processing unit 210 will enter the second control state (C4PD). After the processing unit 210 enters the first or second control state, if any wake-up event is detected, the power management module 236 performs a recovery procedure to restore the processing unit 210 to the lowest power consumption state C4.

於步驟S330中,當控制狀態設定為第一控制狀態時,電源管理模組236送出一控制訊號PLLG至閘控單元234,以透過閘控單元234停止鎖相迴路232的時脈輸出。此時,鎖相迴路232的時脈輸出被遮斷,但是鎖相迴路232並未關閉(power down),仍保留電源。當控制狀態設定為第二控制狀態時,電源管理模組236送出控制訊號PLLD至鎖相迴路232,當鎖相迴路232接收到控制訊號PLLD之後,鎖相迴路232將整個關閉。於一實施例中,當控制狀態設定為第二控制狀態時,電源管理模組236分別送出控制訊號PLLD以及控制訊號C4PSTOP(第三控制訊號)至鎖相迴路232以及晶片組230外部的時脈產生器220(鎖相迴路232對應的來源時脈產生單元)。當鎖相迴路232接收到控制訊號PLLD之後,鎖相迴路232將整個關閉。當時脈產生器220接收到控制訊號C4PSTOP之後,時脈產生器220將停止輸出時脈訊號至鎖相迴路232。In step S330, when the control state is set to the first control state, the power management module 236 sends a control signal PLLG to the gate control unit 234 to stop the clock output of the phase locked loop 232 through the gate control unit 234. At this time, the clock output of the phase locked loop 232 is blocked, but the phase locked loop 232 is not powered down, and the power remains. When the control state is set to the second control state, the power management module 236 sends the control signal PLLD to the phase locked loop 232. After the phase locked loop 232 receives the control signal PLLD, the phase locked loop 232 will be completely turned off. In an embodiment, when the control state is set to the second control state, the power management module 236 sends the control signal PLLD and the control signal C4PSTOP (third control signal) to the phase-locked loop 232 and the clock outside the chip set 230, respectively. The generator 220 (the source clock generating unit corresponding to the phase locked loop 232). After the phase locked loop 232 receives the control signal PLLD, the phase locked loop 232 will be fully closed. After the clock generator 220 receives the control signal C4PSTOP, the clock generator 220 will stop outputting the clock signal to the phase locked loop 232.

在處理單元210進入鎖相迴路控制狀態之後,若偵測到一喚醒事件發生時,電源管理模組236將執行一恢復程序以致使該處理單元恢復至該最低功耗省電狀態C4。After the processing unit 210 enters the phase locked loop control state, if a wakeup event is detected, the power management module 236 will perform a recovery procedure to cause the processing unit to return to the lowest power consumption state C4.

第5圖顯示一依據本發明實施例之恢復程序之流程圖,如前述,依據本發明實施例之電源管理方法可以由如第2圖中的電源管理模組236所執行。Figure 5 shows a flow chart of a recovery procedure in accordance with an embodiment of the present invention. As described above, the power management method in accordance with an embodiment of the present invention can be performed by the power management module 236 as shown in Figure 2.

如第5圖所示,同時參照第4圖,如步驟S510,電源管理模組236先由暫存器的設定值判斷處理單元210處於第一或第二控制狀態。舉例來說,於一實施例中,當暫存器的設定值為1或0時,可判斷處理單元210係分別處於第一或第二控制狀態。若處於第一控制狀態,表示處理單元210係欲從第一控制狀態返回至C4狀態,反之表示處理單元210係欲從第二控制狀態返回至C4狀態。當由暫存器的設定值判斷處理單元210處於第一控制狀態時,如步驟S520,因為鎖相迴路232並未關閉,只是其時脈輸出被閘控單元234遮斷,因此恢復程序便直接透過閘控單元234停止遮斷鎖相迴路232,接著執行步驟S560。當由暫存器的設定值判斷處理單元210處於第二控制狀態時,於步驟S530中判斷時脈產生器220是否接收到控制訊號C4PSTOP,若否,表示時脈產生器220並未停止輸出時脈訊號,反之表示時脈產生器220停止了輸出時脈訊號。當時脈產生器220接收到控制訊號C4PSTOP(步驟S530的是),由於鎖相迴路232被關閉且外部時脈產生器的輸出被停止,因此恢復程序便執行步驟S540及S550以恢復被停止的時脈以及啟動鎖相迴路232。如步驟S540,恢復程序先啟動鎖相迴路232對應的來源時脈產生單元(亦即時脈產生器220)的輸出,並如步驟S550,於來源時脈產生單元啟動完成之後,再啟動鎖相迴路232,接著執行步驟S560。當時脈產生器220並未接收到控制訊號C4PSTOP(步驟S530的否),因為時脈產生器220並未停止輸出時脈訊號,因此恢復程序便直接執行步驟S550啟動鎖相迴路232,接著執行步驟S560。如步驟S560,恢復程序等待鎖相迴路232啟動穩定之後,最後,便將處理單元210的電源狀態恢復至最低功耗省電狀態C4。As shown in FIG. 5, referring to FIG. 4, in step S510, the power management module 236 first determines whether the processing unit 210 is in the first or second control state by the set value of the register. For example, in an embodiment, when the set value of the register is 1 or 0, it can be determined that the processing unit 210 is in the first or second control state, respectively. If it is in the first control state, it indicates that the processing unit 210 is to return from the first control state to the C4 state, and vice versa, that the processing unit 210 is to return from the second control state to the C4 state. When it is determined by the set value of the register that the processing unit 210 is in the first control state, as in step S520, since the phase locked loop 232 is not turned off, only the clock output thereof is blocked by the gate control unit 234, so the recovery procedure is directly The blocking phase-locked loop 232 is stopped by the gate control unit 234, and then step S560 is performed. When it is determined by the setting value of the register that the processing unit 210 is in the second control state, it is determined in step S530 whether the clock generator 220 receives the control signal C4PSTOP, and if not, it indicates that the clock generator 220 does not stop outputting. The pulse signal, on the other hand, indicates that the clock generator 220 stops outputting the clock signal. When the pulse generator 220 receives the control signal C4PSTOP (YES in step S530), since the phase locked loop 232 is turned off and the output of the external clock generator is stopped, the recovery program executes steps S540 and S550 to resume the stopped time. Pulse and start phase locked loop 232. In step S540, the recovery program first starts the output of the source clock generation unit (also the immediate pulse generator 220) corresponding to the phase-locked loop 232, and after the source clock generation unit is started, in step S550, the phase-locked loop is started. 232, then step S560 is performed. The clock generator 220 does not receive the control signal C4PSTOP (NO in step S530), because the clock generator 220 does not stop outputting the clock signal, so the recovery program directly executes step S550 to start the phase-locked loop 232, and then performs the steps. S560. In step S560, after the recovery program waits for the phase-locked loop 232 to start stable, finally, the power state of the processing unit 210 is restored to the lowest power-saving state C4.

以下列舉一實施例,用以進一步說明本發明之電源管理方法,但並非用以限定本發明。The following examples are provided to further illustrate the power management method of the present invention, but are not intended to limit the present invention.

於本實施例中,假設處理單元210因一段時間未動作已經進入最低功耗省電狀態C4且暫存器的設定值為0。於所有周邊模組238皆閒置一既定時間之後,電源管理模組236偵測周邊模組238的狀態以判斷特定條件是否符合,即判斷前述條件(1)-(4)是否都滿足。假設條件(1)-(4)都滿足,表示特定條件符合,電源管理模組236便依據預設的控制狀態設定,致使處理單元210進入一鎖相迴路控制狀態以控制鎖相迴路232的操作。由於暫存器的設定值為0,表示要進入第二控制狀態,電源管理模組236送出控制訊號PLLD鎖相迴路232,當鎖相迴路232接收到控制訊號PLLD之後,鎖相迴路232將整個關閉。In this embodiment, it is assumed that the processing unit 210 has entered the lowest power consumption state C4 due to a period of inactivity and the set value of the register is zero. After all the peripheral modules 238 are idle for a predetermined time, the power management module 236 detects the status of the peripheral module 238 to determine whether the specific conditions are met, that is, whether the foregoing conditions (1)-(4) are satisfied. Assuming that conditions (1)-(4) are satisfied, indicating that the specific conditions are met, the power management module 236 is set according to the preset control state, causing the processing unit 210 to enter a phase-locked loop control state to control the operation of the phase-locked loop 232. . Since the set value of the register is 0, indicating that the second control state is to be entered, the power management module 236 sends the control signal PLLD phase-locked loop 232. After the phase-locked loop 232 receives the control signal PLLD, the phase-locked loop 232 will shut down.

於一實施例中,暫存器的設定值為0,表示要進入第二控制狀態,電源管理模組236分別送出控制訊號PLLD以及控制訊號C4PSTOP至鎖相迴路232以及晶片組230外部的時脈產生器220。當鎖相迴路232接收到控制訊號PLLD之後,鎖相迴路232將整個關閉。當時脈產生器220接收到控制訊號C4PSTOP之後,時脈產生器220將停止輸出時脈訊號至鎖相迴路232。因此,處理單元210係進入第二控制狀態且鎖相迴路232被關閉以及外部時脈產生器的輸出被停止。之後,若偵測到一喚醒事件發生時,電源管理模組236將執行一恢復程序,由於時脈產生器220接收到了控制訊號C4PSTOP,表示鎖相迴路232被關閉且外部時脈產生器的輸出被停止,因此恢復程序便先啟動時脈產生器220,使其恢復輸出,在時脈產生器220啟動完成之後,致使處理單元210恢復至最低功耗省電狀態C4。In one embodiment, the set value of the register is 0, indicating that the second control state is to be entered, and the power management module 236 sends the control signal PLLD and the control signal C4PSTOP to the phase-locked loop 232 and the clock outside the chip set 230, respectively. Generator 220. After the phase locked loop 232 receives the control signal PLLD, the phase locked loop 232 will be fully closed. After the clock generator 220 receives the control signal C4PSTOP, the clock generator 220 will stop outputting the clock signal to the phase locked loop 232. Therefore, the processing unit 210 enters the second control state and the phase locked loop 232 is turned off and the output of the external clock generator is stopped. Thereafter, if a wake-up event is detected, the power management module 236 will perform a recovery procedure, since the clock generator 220 receives the control signal C4PSTOP, indicating that the phase-locked loop 232 is turned off and the output of the external clock generator is output. It is stopped, so the recovery program first starts the clock generator 220 to restore the output, and after the clock generator 220 is started, causes the processing unit 210 to return to the lowest power consumption state C4.

綜上所述,依據本發明之電源管理方法及相關之晶片組以及電腦系統,可透過新增的鎖相迴路控制狀態,提供在處理單元進入最低功耗省電狀態(即狀態C4)下的鎖相迴路控制,因為正常執行時處理單元將經常處於最低功耗省電狀態,可更有效地減少整個電腦系統的電源損耗,達到電源控制的目的。In summary, the power management method and related chipset and computer system according to the present invention can control the state through a new phase-locked loop to provide a state in which the processing unit enters the lowest power consumption state (ie, state C4). The phase-locked loop control, because the processing unit will often be in the lowest power consumption state during normal execution, can more effectively reduce the power loss of the entire computer system, and achieve the purpose of power control.

本發明之方法,或特定型態或其部份,可以以程式碼的型態包含於實體媒體,如軟碟、光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取)儲存媒體,其中,當程式碼被機器,如電腦載入且執行時,此機器變成用以參與本發明之裝置。本發明之方法與裝置也可以以程式碼型態透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸型態進行傳送,其中,當程式碼被機器,如電腦接收、載入且執行時,此機器變成用以參與本發明之裝置。當在一般用途處理器實作時,程式碼結合處理器提供一操作類似於應用特定邏輯電路之獨特裝置。The method of the present invention, or a specific type or part thereof, may be included in a physical medium such as a floppy disk, a compact disc, a hard disk, or any other machine (for example, a computer readable computer). A storage medium in which, when 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 code format through some transmission medium such as a wire or cable, an optical fiber, or any transmission type, wherein the code is received, loaded, and executed by a machine such as a computer. At this time, 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.

C0-C4、C4PD、C4PG...狀態C0-C4, C4PD, C4PG. . . status

200...電腦系統200. . . computer system

210...處理單元210. . . Processing unit

220...時脈產生器220. . . Clock generator

230...晶片組230. . . Chipset

232...鎖相迴路232. . . Phase-locked loop

234...閘控單元234. . . Gating unit

236...電源管理模組236. . . Power management module

238...周邊模組238. . . Peripheral module

C4PSTOP、PLLD、PLLG...控制訊號C4PSTOP, PLLD, PLLG. . . Control signal

S310-S330...執行步驟S310-S330. . . Steps

S510-S560...執行步驟S510-S560. . . Steps

第1圖係顯示一習知的ACPI定義中央處理器之電源狀態示意圖。Figure 1 is a schematic diagram showing the power state of a conventional ACPI-defined central processor.

第2圖係顯示一依據本發明實施例之電腦系統。Figure 2 shows a computer system in accordance with an embodiment of the present invention.

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

第4圖係顯示一依據本發明實施例之中央處理器之電源狀態示意圖。Figure 4 is a diagram showing the power state of a central processing unit in accordance with an embodiment of the present invention.

第5圖係顯示一依據本發明實施例之恢復程序之流程圖。Figure 5 is a flow chart showing a recovery procedure in accordance with an embodiment of the present invention.

200...電腦系統200. . . computer system

210...處理單元210. . . Processing unit

220...時脈產生器220. . . Clock generator

230...晶片組230. . . Chipset

232...鎖相迴路232. . . Phase-locked loop

234...閘控單元234. . . Gating unit

236...電源管理模組236. . . Power management module

238...周邊模組238. . . Peripheral module

C4PSTOP、PLLD、PLLG...控制訊號C4PSTOP, PLLD, PLLG. . . Control signal

Claims (21)

一種電源管理方法,適用於一電腦系統,其中該電腦系統具有一處理單元、一電源管理模組以及一鎖相迴路(PLL)電路,該電源管理模組耦接複數個周邊模組,並且該電腦系統以及該處理單元可分別操作於一工作狀態以及複數省電狀態下,該方法包括:當該電腦系統操作於該工作狀態且該處理單元進入該等省電狀態中之一最低功耗省電狀態時,偵測該等周邊模組之狀態,以判斷一特定條件是否符合;以及當該等周邊模組之狀態符合該特定條件時,依據一控制狀態設定,致使該處理單元進入一控制狀態以控制該鎖相迴路,其中每一該等周邊模組分別具有一低功耗省電模式並且該偵測該等周邊模組之狀態以判斷該特定條件是否符合係判斷該等周邊模組中之既定周邊模組是否處於對應之該低功耗省電模式。 A power management method is applicable to a computer system, wherein the computer system has a processing unit, a power management module, and a phase locked loop (PLL) circuit, wherein the power management module is coupled to the plurality of peripheral modules, and the The computer system and the processing unit are respectively operable in a working state and a plurality of power saving states, the method comprising: when the computer system operates in the working state and the processing unit enters one of the power saving states In the electrical state, detecting the state of the peripheral modules to determine whether a particular condition is met; and when the states of the peripheral modules meet the specific condition, setting the control unit according to a control state, causing the processing unit to enter a control a state to control the phase locked loop, wherein each of the peripheral modules has a low power consumption mode and the state of the peripheral modules is detected to determine whether the specific condition is consistent with determining the peripheral modules Whether the predetermined peripheral module is in the corresponding low power consumption mode. 如申請專利範圍第1項所述之電源管理方法,其中該依據該控制狀態設定,致使該處理單元進入該控制狀態以控制該鎖相迴路之步驟更包括:當該控制狀態設定為一第一控制狀態時,送出一第一控制訊號以遮斷該鎖相迴路之時脈輸出;以及當該控制狀態設定為一第二控制狀態時,送出一第二控制訊號,以關閉該鎖相迴路。 The power management method of claim 1, wherein the step of causing the processing unit to enter the control state to control the phase locked loop according to the control state setting further comprises: when the control state is set to a first When the state is controlled, a first control signal is sent to interrupt the clock output of the phase locked loop; and when the control state is set to a second control state, a second control signal is sent to close the phase locked loop. 如申請專利範圍第1項所述之電源管理方法,其中該依據該控制狀態設定,致使該處理單元進入該控制狀態以 控制該鎖相迴路之步驟更包括:當該控制狀態設定為一第二控制狀態時,分別送出一第二控制訊號以及一第三控制訊號,以關閉該鎖相迴路以及該鎖相迴路對應之一來源時脈產生單元之輸出。 The power management method according to claim 1, wherein the processing unit is configured to cause the processing unit to enter the control state. The step of controlling the phase-locked loop further includes: when the control state is set to a second control state, respectively sending a second control signal and a third control signal to close the phase-locked loop and the phase-locked loop corresponding to the phase-locked loop The output of a source clock generation unit. 如申請專利範圍第1項所述之電源管理方法,更包括:於基本輸出入系統(BIOS)中提供一控制狀態設定選項,以設定該控制狀態。 The power management method according to claim 1, further comprising: providing a control state setting option in the basic input/output system (BIOS) to set the control state. 如申請專利範圍第1項所述之電源管理方法,其中該等既定周邊模組包括一記憶體控制器、一繪圖控制器、一USB控制器以及一SATA控制器,並且當下列條件成立時,該電源管理模組判斷該特定條件係符合:記憶體控制器係工作於自我更新(self-refresh)模式;繪圖控制器係工作於快照(snapshot)模式;USB控制器係將USB裝置設為工作於D3模式:以及SATA控制器係將SATA裝置設為工作於部分/休眠(partial/slumber)模式。 The power management method of claim 1, wherein the predetermined peripheral modules comprise a memory controller, a graphics controller, a USB controller, and a SATA controller, and when the following conditions are met, The power management module determines that the specific condition is consistent: the memory controller operates in a self-refresh mode; the graphics controller operates in a snapshot mode; and the USB controller sets the USB device to work. In D3 mode: and SATA controllers set the SATA device to work in partial/slumber mode. 如申請專利範圍第1項所述之電源管理方法,其中該偵測該等周邊模組之狀態以判斷該特定條件是否符合係於該等周邊模組皆閒置一既定時間之後。 The power management method of claim 1, wherein the detecting the status of the peripheral modules to determine whether the specific condition is consistent after the peripheral modules are idle for a predetermined time. 如申請專利範圍第2項所述之電源管理方法,其中當於該控制狀態下偵測到一喚醒事件發生時,執行一恢復程序,致使該處理單元恢復至該最低功耗省電狀態,並且當該控制狀態設定為該第一控制狀態時,該恢復程序停止遮斷該鎖相迴路之輸出。 The power management method of claim 2, wherein when a wakeup event is detected in the control state, a recovery procedure is executed, causing the processing unit to return to the lowest power consumption state, and When the control state is set to the first control state, the recovery program stops interrupting the output of the phase locked loop. 如申請專利範圍第2項所述之電源管理方法,其中當於該控制狀態下偵測到一喚醒事件發生時,執行一恢復程序,致使該處理單元恢復至該最低功耗省電狀態,並且當該控制狀態設定為該第二控制狀態時,該恢復程序啟動該鎖相迴路。 The power management method of claim 2, wherein when a wakeup event is detected in the control state, a recovery procedure is executed, causing the processing unit to return to the lowest power consumption state, and The recovery procedure initiates the phase locked loop when the control state is set to the second control state. 如申請專利範圍第3項所述之電源管理方法,其中當於該控制狀態下偵測到一喚醒事件發生時,執行一恢復程序,致使該處理單元恢復至該最低功耗省電狀態,並且當該控制狀態設定為該第二控制狀態且送出該第三控制信號時,該恢復程序啟動該鎖相迴路對應之該來源時脈產生單元之輸出,並於該來源時脈產生單元啟動之後啟動該鎖相迴路。 The power management method of claim 3, wherein when a wakeup event is detected in the control state, a recovery procedure is executed, causing the processing unit to return to the lowest power consumption state, and When the control state is set to the second control state and the third control signal is sent, the recovery program starts the output of the source clock generation unit corresponding to the phase-locked loop, and starts after the source clock generation unit is started. The phase locked loop. 一種晶片組,耦接至一時脈產生器以及一處理器,包括:一鎖相迴路,用以依據該時脈產生器產生之一第一時脈訊號,產生至少一第二時脈訊號;一閘控單元,耦接至該鎖相迴路,用以控制該鎖相迴路產生之該第二時脈訊號之輸出;複數周邊模組,每一該等周邊模組分別具有一低功耗省電模式;以及一電源管理模組,耦接至該閘控單元、該等周邊模組以及該鎖相迴路;其中當該處理單元進入該等省電狀態中之一最低功耗省電狀態時,該電源管理模組偵測該等周邊模組之狀態,以判斷一特定條件是否符合,並當該等周邊模組 之狀態符合該特定條件時,依據一控制狀態設定,致使該處理單元進入一控制狀態以控制該鎖相迴路且其中每一該等周邊模組分別具有一低功耗省電模式並且該電源管理模組更判斷該等周邊模組中之既定周邊模組是否處於對應之該低功耗省電模式以判斷該特定條件是否符合。 A chip set coupled to a clock generator and a processor, comprising: a phase locked loop for generating at least one second clock signal according to the first clock signal generated by the clock generator; a gate control unit coupled to the phase lock loop for controlling an output of the second clock signal generated by the phase lock loop; a plurality of peripheral modules, each of the peripheral modules respectively having a low power consumption And a power management module coupled to the gate control unit, the peripheral modules, and the phase locked loop; wherein when the processing unit enters one of the lowest power consumption states of the power saving states, The power management module detects the status of the peripheral modules to determine whether a specific condition is met, and when the peripheral modules are When the state meets the specific condition, according to a control state setting, the processing unit enters a control state to control the phase-locked loop and each of the peripheral modules respectively has a low-power power-saving mode and the power management The module further determines whether the predetermined peripheral module in the peripheral modules is in the corresponding low power consumption mode to determine whether the specific condition is met. 如申請專利範圍第10項所述之晶片組,其中當該控制狀態設定為一第一控制狀態時,該電源管理模組送出一第一控制訊號至該閘控單元,以遮斷(gating)該鎖相迴路之該第二時脈訊號輸出,而當該控制狀態設定為一第二控制狀態時,該電源管理模組送出一第二控制訊號以關閉該鎖相迴路。 The chip set of claim 10, wherein when the control state is set to a first control state, the power management module sends a first control signal to the gating unit to gating The second clock signal of the phase locked loop is output, and when the control state is set to a second control state, the power management module sends a second control signal to close the phase locked loop. 如申請專利範圍第10項所述之晶片組,其中當該控制狀態設定為一第二控制狀態時,該電源管理模組分別送出一第二控制訊號以及一第三控制訊號至該鎖相迴路以及該時脈產生器,以關閉該鎖相迴路以及該鎖相迴路對應之該時脈產生器之輸出。 The chip set of claim 10, wherein when the control state is set to a second control state, the power management module respectively sends a second control signal and a third control signal to the phase locked loop. And the clock generator to turn off the phase locked loop and the output of the clock generator corresponding to the phase locked loop. 如申請專利範圍第10項所述之晶片組,其中該等既定周邊模組包括一記憶體控制器、一繪圖控制器、USB控制器以及SATA控制器,並且當下列條件成立時,該電源管理模組判斷該特定條件係符合:該記憶體控制器係工作於自我更新(self-refresh)模式;該繪圖控制器係工作於快照(snapshot)模式;USB控制器係將USB裝置設為工作於D3模式:以及SATA控制器係將SATA裝置設為工作於部分/休眠 (partial/slumber)。 The chip set of claim 10, wherein the predetermined peripheral modules comprise a memory controller, a graphics controller, a USB controller, and a SATA controller, and the power management is performed when the following conditions are met. The module determines that the specific condition is consistent: the memory controller operates in a self-refresh mode; the drawing controller operates in a snapshot mode; the USB controller sets the USB device to operate D3 mode: and SATA controllers set SATA devices to work in partial/sleep (partial/slumber). 如申請專利範圍第10項所述之晶片組,其中該電源管理模組偵測該等周邊模組之狀態以判斷該特定條件是否符合係於該等周邊模組皆閒置一既定時間之後。 The chip set of claim 10, wherein the power management module detects the status of the peripheral modules to determine whether the specific condition is consistent after the peripheral modules are idle for a predetermined time. 如申請專利範圍第11項所述之晶片組,其中當於該控制狀態下偵測到一喚醒事件發生時,該電源管理模組執行一恢復程序以致使該處理單元恢復至該最低功耗省電狀態,當該控制狀態設定為該第一控制狀態時,該恢復程序透過該閘控單元停止遮斷該鎖相迴路之輸出。 The chip set of claim 11, wherein when a wake-up event is detected in the control state, the power management module performs a recovery process to cause the processing unit to return to the lowest power consumption province. In an electrical state, when the control state is set to the first control state, the recovery procedure stops interrupting the output of the phase locked loop through the gating unit. 如申請專利範圍第11項所述之晶片組,其中當於該控制狀態下偵測到一喚醒事件發生時,該電源管理模組執行一恢復程序以致使該處理單元恢復至該最低功耗省電狀態,當該控制狀態設定為該第二控制狀態時,該恢復程序啟動該鎖相迴路對應之該時脈產生器之輸出。 The chip set of claim 11, wherein when a wake-up event is detected in the control state, the power management module performs a recovery process to cause the processing unit to return to the lowest power consumption province. The electrical state, when the control state is set to the second control state, the recovery program starts the output of the clock generator corresponding to the phase locked loop. 如申請專利範圍第12項所述之晶片組,其中當於該控制狀態下偵測到一喚醒事件發生時,該電源管理模組執行一恢復程序以致使該處理單元恢復至該最低功耗省電狀態,當該控制狀態設定為該第二控制狀態時,該恢復程序啟動該鎖相迴路對應之該時脈產生器之輸出,並於該時脈產生器啟動之後啟動該鎖相迴路。 The chip set of claim 12, wherein when a wakeup event is detected in the control state, the power management module performs a recovery procedure to cause the processing unit to return to the lowest power consumption province. The electrical state, when the control state is set to the second control state, the recovery program starts the output of the clock generator corresponding to the phase locked loop, and starts the phase locked loop after the clock generator is started. 一種電腦系統,包括:一時脈產生器,用以產生一第一時脈訊號;一處理單元;以及一晶片組,耦接至該時脈產生器以及該處理單元,包括: 一鎖相迴路,用以依據該第一時脈訊號,產生至少一第二時脈訊號;一閘控單元,耦接至該鎖相迴路,用以控制該鎖相迴路產生之該第二時脈訊號之輸出;複數周邊模組,每一該等周邊模組分別具有一低功耗省電模式;以及一電源管理模組,耦接至該閘控單元、該等周邊模組以及該鎖相迴路;其中當該電腦系統操作於一工作狀態且該處理單元進入該等省電狀態中之一最低功耗省電狀態時,該電源管理模組偵測該等周邊模組之狀態,以判斷一特定條件是否符合,並當該等周邊模組之狀態符合該特定條件時,依據一控制狀態設定,致使該處理單元進入一控制狀態以控制該鎖相迴路,且其中每一該等周邊模組分別具有一低功耗省電模式並且該電源管理模組更判斷該等周邊模組中之既定周邊模組是否處於對應之該低功耗省電模式以判斷該特定條件是否符合。 A computer system comprising: a clock generator for generating a first clock signal; a processing unit; and a chip set coupled to the clock generator and the processing unit, comprising: a phase-locked loop for generating at least one second clock signal according to the first clock signal; a gate control unit coupled to the phase-locked loop for controlling the second time generated by the phase-locked loop An output of the pulse signal; a plurality of peripheral modules, each of the peripheral modules respectively having a low power consumption mode; and a power management module coupled to the gate control unit, the peripheral modules, and the lock a phase loop; wherein when the computer system is operating in a working state and the processing unit enters one of the lowest power consumption states of the power saving states, the power management module detects the states of the peripheral modules, Determining whether a specific condition is met, and when the state of the peripheral modules meets the specific condition, according to a control state setting, causing the processing unit to enter a control state to control the phase-locked loop, and each of the peripherals The modules respectively have a low power consumption mode, and the power management module further determines whether the predetermined peripheral modules in the peripheral modules are in the corresponding low power consumption mode to determine whether the specific conditions are met. 如申請專利範圍第18項所述之電腦系統,其中當該控制狀態設定為一第一控制狀態時,該電源管理模組送出一第一控制訊號至該閘控單元,以遮斷該鎖相迴路之該第二時脈訊號輸出,而當該控制狀態設定為一第二控制狀態時,該電源管理模組送出一第二控制訊號以關閉該鎖相迴路。 The computer system of claim 18, wherein when the control state is set to a first control state, the power management module sends a first control signal to the gating unit to block the phase lock. The second clock signal of the loop is output, and when the control state is set to a second control state, the power management module sends a second control signal to close the phase locked loop. 如申請專利範圍第18項所述之電腦系統,其中當 該控制狀態設定為一第二控制狀態時,該電源管理模組分別送出一第二控制訊號以及一第三控制訊號至該鎖相迴路以及該時脈產生器,以關閉該鎖相迴路以及該鎖相迴路對應之該時脈產生器之輸出。 For example, the computer system described in claim 18, wherein When the control state is set to a second control state, the power management module respectively sends a second control signal and a third control signal to the phase locked loop and the clock generator to close the phase locked loop and the The phase-locked loop corresponds to the output of the clock generator. 如申請專利範圍第18項所述之電腦系統,其中該等既定周邊模組包括一記憶體控制器、一繪圖控制器、USB控制器以及SATA控制器,並且當下列條件成立時,該電源管理模組判斷該特定條件係符合:該記憶體控制器係工作於自我更新(self-refresh)模式;該繪圖控制器係工作於快照(snapshot)模式;USB控制器係將USB裝置設為工作於D3模式:以及SATA控制器係將SATA裝置設為工作於部分/休眠(partial/slumber)。 The computer system of claim 18, wherein the predetermined peripheral modules comprise a memory controller, a graphics controller, a USB controller, and a SATA controller, and the power management is performed when the following conditions are met. The module determines that the specific condition is consistent: the memory controller operates in a self-refresh mode; the drawing controller operates in a snapshot mode; the USB controller sets the USB device to operate D3 mode: And the SATA controller sets the SATA device to work in partial/slumber.
TW98115667A 2009-05-12 2009-05-12 Power management method and related chipset and computer system TWI395096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98115667A TWI395096B (en) 2009-05-12 2009-05-12 Power management method and related chipset and computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98115667A TWI395096B (en) 2009-05-12 2009-05-12 Power management method and related chipset and computer system

Publications (2)

Publication Number Publication Date
TW201040705A TW201040705A (en) 2010-11-16
TWI395096B true TWI395096B (en) 2013-05-01

Family

ID=44996038

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98115667A TWI395096B (en) 2009-05-12 2009-05-12 Power management method and related chipset and computer system

Country Status (1)

Country Link
TW (1) TWI395096B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI483103B (en) * 2013-05-28 2015-05-01 Acer Inc Power management method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6510525B1 (en) * 1999-04-26 2003-01-21 Mediaq, Inc. Method and apparatus to power up an integrated device from a low power state
US6665802B1 (en) * 2000-02-29 2003-12-16 Infineon Technologies North America Corp. Power management and control for a microcontroller
TW200708926A (en) * 2005-08-30 2007-03-01 Via Tech Inc Power management method of north bridge
TW200732891A (en) * 2005-12-29 2007-09-01 Intel Corp Mechanism for self refresh during C0
US7299370B2 (en) * 2003-06-10 2007-11-20 Intel Corporation Method and apparatus for improved reliability and reduced power in a processor by automatic voltage control during processor idle states
US7340624B2 (en) * 2002-11-22 2008-03-04 Nec Corporation Clock control system and clock control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6510525B1 (en) * 1999-04-26 2003-01-21 Mediaq, Inc. Method and apparatus to power up an integrated device from a low power state
US6665802B1 (en) * 2000-02-29 2003-12-16 Infineon Technologies North America Corp. Power management and control for a microcontroller
US7340624B2 (en) * 2002-11-22 2008-03-04 Nec Corporation Clock control system and clock control method
US7299370B2 (en) * 2003-06-10 2007-11-20 Intel Corporation Method and apparatus for improved reliability and reduced power in a processor by automatic voltage control during processor idle states
TW200708926A (en) * 2005-08-30 2007-03-01 Via Tech Inc Power management method of north bridge
TW200732891A (en) * 2005-12-29 2007-09-01 Intel Corp Mechanism for self refresh during C0

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI483103B (en) * 2013-05-28 2015-05-01 Acer Inc Power management method

Also Published As

Publication number Publication date
TW201040705A (en) 2010-11-16

Similar Documents

Publication Publication Date Title
US8977880B2 (en) Method for managing power supply of multi-core processor system involves powering off main and slave cores when master bus is in idle state
TWI400604B (en) Platform power management based on latency guidance
US9471121B2 (en) Microprocessor based power management system architecture
US7430673B2 (en) Power management system for computing platform
JP3406594B2 (en) Computer power management system
US6981163B2 (en) Method and apparatus for power mode transition in a multi-thread processor
US8250393B2 (en) Power management method and related chipset and computer system
US9098274B2 (en) Methods and apparatuses to improve turbo performance for events handling
TWI438615B (en) Power management method and device thereof
US20100332870A1 (en) Electronic device for reducing power consumption of computer motherboard and motherboard thereof
EP2843502B1 (en) Information processing device, information processing method, and program
TWI641943B (en) Controlling power supply unit power consumption during idle state
US20210141438A1 (en) Systems, apparatus, and methods for transitioning between multiple operating states
US9110723B2 (en) Multi-core binary translation task processing
TW201432494A (en) A computer system having voice control function and voice control method
US9377833B2 (en) Electronic device and power management method
US9612652B2 (en) Controlling power consumption by power management link
WO2015135468A1 (en) Systems and methods for messaging-based fine granularity system-on-a-chip power gating
TWI395096B (en) Power management method and related chipset and computer system
CN103970253B (en) Power-saving operation method and electronic device
CN101281416A (en) Method for ensuring system closedown completion
CN101980103A (en) Power state management method and related computer system
TWI484328B (en) Method for operating an advanced configuration and power interface and a computer system using the same
TW201814430A (en) Electronic devices and power management methods
US20160216756A1 (en) Power management in computing devices