[go: up one dir, main page]

CN100547520C - Computer system and power management method thereof - Google Patents

Computer system and power management method thereof Download PDF

Info

Publication number
CN100547520C
CN100547520C CNB2007101664349A CN200710166434A CN100547520C CN 100547520 C CN100547520 C CN 100547520C CN B2007101664349 A CNB2007101664349 A CN B2007101664349A CN 200710166434 A CN200710166434 A CN 200710166434A CN 100547520 C CN100547520 C CN 100547520C
Authority
CN
China
Prior art keywords
processor
coprocessor
computer system
power consumption
instruction stack
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CNB2007101664349A
Other languages
Chinese (zh)
Other versions
CN101145080A (en
Inventor
侯舒志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Via Technologies Inc
Original Assignee
Via Technologies 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 Technologies Inc filed Critical Via Technologies Inc
Priority to CNB2007101664349A priority Critical patent/CN100547520C/en
Publication of CN101145080A publication Critical patent/CN101145080A/en
Application granted granted Critical
Publication of CN100547520C publication Critical patent/CN100547520C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a computer system and a power management method thereof. The computer system includes a host processor, a coprocessor, and an instruction stack for storing tasks requiring processing by the coprocessor. The power management method of the computer system comprises the following steps: judging whether a storage bus between the coprocessor and a memory is idle for a specific time; and if the bus between the coprocessor and the memory is idle for the specific time, judging whether the instruction stack is empty or not. And if the instruction stack is empty, a switching command is sent out to enable the coprocessor to enter a low power consumption mode. The main processor with lower power consumption in the computer system can enable the coprocessor with relatively higher power consumption to enter a low power consumption mode, thereby achieving the effect of reducing the power consumption of the computer system.

Description

计算机系统及计算机系统的电源管理方法 Computer system and power management method of computer system

技术领域 technical field

本发明是有关于一种计算机系统的电源管理方法,特别是有关于一种具有多处理器的计算机系统的电源管理方法及设备。The invention relates to a power management method of a computer system, in particular to a power management method and equipment of a computer system with multiple processors.

背景技术 Background technique

随着集成电路技术的快速发展,多媒体功能是消费者对便携式设备的一项基本需要。以手机为例,手机从最初单纯用于通话的设备演变成可以运行Window mobile、Symbian、PalmOS等操作系统,并整合了游戏、音频播放、视频播放、数字摄影以及可自由下载应用软件的个人信息处理等功能。为实现这些功能,手机已不仅能连接到移动电话网络,而且还可能连接到无线局域网并与PC通信,或者使用蓝牙技术连接无线耳机。所有这些附加的功能都要靠电池组提供电能。此外,系统及功能的复杂化,使得手机的处理器(例如ARM7)必须具有更高的运算处理能力,这直接导致处理器的功耗增大。事实上,除了改进电池本身以外,改进手机电源管理功能也是提升手机功效的有效方法。这对于提高应用的使用时间以及延长电池使用寿命等都极有帮助,并在用户使用系统所有功能的前提下显著延长待机时间、通话时间或播放时间。With the rapid development of integrated circuit technology, multimedia functionality is a basic requirement of consumers for portable devices. Taking the mobile phone as an example, the mobile phone has evolved from a device that was originally used simply for calling to one that can run Window mobile, Symbian, PalmOS and other operating systems, and integrates games, audio playback, video playback, digital photography, and personal information that can be downloaded freely. processing functions. To achieve these functions, the mobile phone can not only connect to the mobile phone network, but also may connect to the wireless local area network and communicate with the PC, or use Bluetooth technology to connect the wireless headset. All these additional functions rely on the battery pack to provide power. In addition, the complexity of the system and functions makes the mobile phone's processor (such as ARM7) have to have higher computing and processing capabilities, which directly leads to increased power consumption of the processor. In fact, in addition to improving the battery itself, improving the power management function of the mobile phone is also an effective way to improve the efficiency of the mobile phone. This is extremely helpful for improving application usage time and battery life, and can significantly increase standby time, talk time or playback time while the user uses all functions of the system.

因此,如何在支持新增功能的同时,维持计算机系统较长的待机时间是亟待解决的问题。Therefore, how to maintain a long standby time of the computer system while supporting new functions is an urgent problem to be solved.

发明内容 Contents of the invention

本发明的目的在于提供一种可支持多功能的计算机系统以及降低计算机系统功耗的电源管理方法。The purpose of the present invention is to provide a computer system capable of supporting multiple functions and a power management method for reducing power consumption of the computer system.

本发明提供一种计算机系统的电源管理方法。所述计算机系统包括一主处理器、一协处理器以及一用于存储所述主处理器分配给所述协处理器处理的任务的指令栈。所述计算机系统的电源管理方法包括:判断所述协处理器与一存储器之间的存储总线是否空闲一特定时间;若所述协处理器与所述存储器之间的总线空闲该特定时间,则判断所述指令栈是否为空。若所述指令栈为空,则发出一切换命令使所述协处理器进入一低功耗模式。The invention provides a power management method of a computer system. The computer system includes a main processor, a coprocessor and an instruction stack for storing tasks assigned by the main processor to the coprocessor. The power management method of the computer system includes: judging whether the storage bus between the coprocessor and a memory is idle for a specific time; if the bus between the coprocessor and the memory is idle for the specific time, then It is judged whether the instruction stack is empty. If the instruction stack is empty, a switching command is issued to cause the coprocessor to enter a low power consumption mode.

本发明又提供一种计算机系统,包括:一第一处理器、一第二处理器、一指令栈、一存储器以及一耦接于所述第一处理器与所述第二处理器之间的桥接器。第二处理器用于执行所述第一处理器分配的任务。指令栈用于存储所述第一处理器分配给所述第二处理器执行的任务的指令。存储器通过一存储总线耦接至所述第二处理器,并用于暂存处理数据。桥接器包括一总线状态侦测单元以及一指令栈状态侦测单元。总线状态侦测单元用于侦测所述存储总线的状态,并输出一超时信号,以表示所述存储总线处于空闲状态。指令栈状态侦测单元用于侦测所述指令栈的状态,并输出一指令栈空信号,以表示所述指令栈为空。所述第一处理器根据所述超时信号与指令栈空信号输出一切换命令,以使所述第二处理器由一正常工作模式切换为一低功耗模式。The present invention further provides a computer system, including: a first processor, a second processor, an instruction stack, a memory, and a computer coupled between the first processor and the second processor bridge. The second processor is used to execute the task assigned by the first processor. The instruction stack is used to store instructions assigned by the first processor to tasks executed by the second processor. The memory is coupled to the second processor through a memory bus, and is used for temporarily storing processing data. The bridge includes a bus state detection unit and an instruction stack state detection unit. The bus state detection unit is used for detecting the state of the storage bus and outputting a timeout signal to indicate that the storage bus is in an idle state. The instruction stack state detection unit is used to detect the state of the instruction stack, and output an instruction stack empty signal to indicate that the instruction stack is empty. The first processor outputs a switch command according to the timeout signal and the instruction stack empty signal, so that the second processor switches from a normal working mode to a low power consumption mode.

本发明计算机系统中功耗较小的主处理器可以使功耗相对较大的协处理器进入低功耗模式,并且只有在需要协处理器执行的任务达到一定量时,才会使协处理器由低功耗模式转换为正常工作模式,因而可以达到降低计算机系统的功耗的效果。The main processor with low power consumption in the computer system of the present invention can make the coprocessor with relatively large power consumption enter the low power consumption mode, and only when the tasks that need to be performed by the coprocessor reach a certain amount, the coprocessor The switch from the low power consumption mode to the normal operation mode can achieve the effect of reducing the power consumption of the computer system.

附图说明 Description of drawings

通过结合下面的实施例及示出的附图进行的描述,本发明的上述其他目的和特点将会变得更加清楚,其中:The above-mentioned other objects and features of the present invention will become clearer by describing in conjunction with the following embodiments and the accompanying drawings, wherein:

图1为根据本发明一实施例的计算机系统的示意图;1 is a schematic diagram of a computer system according to an embodiment of the present invention;

图2为图1所示计算机系统的详细示意图;Fig. 2 is a detailed schematic diagram of the computer system shown in Fig. 1;

图3为根据本发明一实施例的电源管理方法的流程图;FIG. 3 is a flowchart of a power management method according to an embodiment of the present invention;

图4为根据本发明另一实施例的电源管理方法的流程图。FIG. 4 is a flowchart of a power management method according to another embodiment of the present invention.

具体实施方式 Detailed ways

为让本发明的上述和其它目的、特征和优点能更明显易懂,下文特举出较佳实施例,并配合所附图式,作详细说明如下。In order to make the above and other objects, features and advantages of the present invention more comprehensible, preferred embodiments are listed below and described in detail in conjunction with the accompanying drawings.

一般来说,在计算机领域中存在两种通用的处理器架构,即采用复杂指令系统的x86架构处理器以及采用精简指令系统的ARM架构处理器。X86处理器通常用于个人计算机中,进行办公、图像处理以及数据库处理等。相对于X86处理器,ARM处理器具有成本低、功耗小,开放性好等特点,因而通常用于消费性电子产品中,例如,手机、数码相机等。然而,使用ARM处理器的计算机系统不支持大部分扩展的硬件或软件设备,例如,不能处理WORD、EXCEL、PPT和ACROBAT等电子文档,因而对消费性电子产品的功能提升造成了限制。Generally speaking, there are two general-purpose processor architectures in the computer field, that is, an x86 architecture processor using a complex instruction system and an ARM architecture processor using a simplified instruction system. X86 processors are usually used in personal computers for office work, image processing, and database processing. Compared with the X86 processor, the ARM processor has the characteristics of low cost, low power consumption, and good openness, so it is usually used in consumer electronic products, such as mobile phones and digital cameras. However, computer systems using ARM processors do not support most extended hardware or software devices, for example, cannot process electronic documents such as WORD, EXCEL, PPT, and ACROBAT, thus limiting the improvement of consumer electronics products.

为解决上述问题,如图1所示,本发明提供一计算机系统100包括一X86架构的协处理器11以及一多媒体处理器12,以将计算机系统100的处理任务合理划分,实现性能与功耗的优化。举例来说,协处理器11用于处理性能要求较高的任务,例如公式计算等。多媒体处理器12由ARM处理器与图形处理芯片(GPU)组成,用于进行常规的任务以及多媒体信息的处理。计算机系统100还包括一桥接器13,与协处理器11及多媒体处理器12连接以进行协处理器11与多媒体处理器12之间的协议转换。于本实施例中,计算机系统100还包括与协处理器11连接的传输控制器110,与多媒体处理器12连接的外设控制器120以及分别与传输控制器110及多媒体处理器12连接的存储器111、121。传输控制器110可由一芯片组(chipset)实现,以控制数据传输以及协处理器11与其他组件的通信。外设控制器120可由一西桥(westbridge)实现,以负责多媒体处理器12与其他组件的通信以及特定外设之间的直接通信。如本领域技术人员所知,在计算机系统100中通常会集成有电源管理单元(power managementunit,PMU),用于管理系统的功耗。例如,基于X86架构的协处理器11可依据高级配置与电源接口(ACPI,advancedconfiguration and power interface)规范进入节能模式C0~C5。基于ARM架构的多媒体处理器12也可以进入空闲模式、休眠模式以及关机模式。In order to solve the above problems, as shown in FIG. 1 , the present invention provides a computer system 100 including a coprocessor 11 of X86 architecture and a multimedia processor 12, so as to reasonably divide the processing tasks of the computer system 100 to achieve performance and power consumption. Optimization. For example, the coprocessor 11 is used to process tasks with higher performance requirements, such as formula calculation. The multimedia processor 12 is composed of an ARM processor and a graphics processing chip (GPU), and is used for performing routine tasks and processing multimedia information. The computer system 100 also includes a bridge 13 connected to the coprocessor 11 and the multimedia processor 12 for protocol conversion between the coprocessor 11 and the multimedia processor 12 . In this embodiment, the computer system 100 further includes a transmission controller 110 connected to the coprocessor 11, a peripheral controller 120 connected to the multimedia processor 12, and a memory connected to the transmission controller 110 and the multimedia processor 12 respectively. 111, 121. The transmission controller 110 can be implemented by a chipset to control data transmission and communication between the coprocessor 11 and other components. The peripheral controller 120 may be implemented by a westbridge, which is responsible for the communication between the multimedia processor 12 and other components and the direct communication between certain peripherals. As known to those skilled in the art, a power management unit (power management unit, PMU) is usually integrated in the computer system 100 for managing power consumption of the system. For example, the coprocessor 11 based on the X86 architecture can enter the energy-saving modes C0-C5 according to the ACPI (advanced configuration and power interface) specification. The multimedia processor 12 based on ARM architecture can also enter idle mode, sleep mode and shutdown mode.

为进一步减小计算机系统100的功耗,本实施例计算机系统100的协处理器11还可以依据PCIE规范所定义的活动状态电源管理(Active State Power Management,ASPM)机制进入链接(link)低功耗模式。如图2所示,于本实施例中,多媒体处理器12可看作计算机系统100的主处理器,负责处理日常事务以及多媒体任务,协处理器11则被看作PCIE设备,用于处理多媒体处理器12所分配的任务。存储器111用于暂存需要处理的数据或处理后的数据。存储器121用于存储系统程序与数据,并设有一指令栈(instruction stack)1211,存储多媒体处理器12分配给协处理器11执行的指令。桥接器13通过PCIE总线与协处理器11以及多媒体处理器12相连接,并包括一侦测模块131与一协议转换器132。协议转换器132用于完成ARM命令(command)与X86命令之间的协议转换。In order to further reduce the power consumption of the computer system 100, the coprocessor 11 of the computer system 100 of the present embodiment can also enter the link (link) low power according to the active state power management (Active State Power Management, ASPM) mechanism defined by the PCIE specification. consumption mode. As shown in Figure 2, in this embodiment, the multimedia processor 12 can be regarded as the main processor of the computer system 100, responsible for processing daily affairs and multimedia tasks, and the coprocessor 11 is regarded as a PCIE device, used for processing multimedia tasks assigned by the processor 12. The memory 111 is used for temporarily storing data to be processed or processed data. The memory 121 is used for storing system programs and data, and has an instruction stack (instruction stack) 1211 for storing instructions assigned by the multimedia processor 12 to the coprocessor 11 for execution. The bridge 13 is connected to the coprocessor 11 and the multimedia processor 12 through the PCIE bus, and includes a detection module 131 and a protocol converter 132 . The protocol converter 132 is used to complete the protocol conversion between the ARM command (command) and the X86 command.

侦测模块131包括总线状态侦测单元133、指令栈状态侦测单元134以及输出单元135。于本实施例中,若总线状态侦测单元133在一特定时间内未侦测到存储器111与传输控制器110之间有数据传送操作,且指令栈状态侦测单元134侦测到指令栈1211为空,则输出单元135会输出信号GNT,以告知多媒体处理器12可以将协处理器11转换为链接低功耗模式。具体来说,总线状态侦测单元133设有一总线周期侦测单元1331与一计时器1332。总线周期侦测单元1331连接至存储器111与传输控制器110之间的存储总线(未图示),以侦测协处理器11与存储器111之间是否有数据传送。计时器1332用于计时一特定时间,且该特定时间由多媒体处理器12预先配置。当总线周期侦测单元1331侦测到一笔数据传输总线周期(data transfer bus cycle)时,计时器1332清零;当总线周期侦测单元1331未侦测到数据传输总线周期时,计时器1332开始计时该特定时间。若计时器1332的计时时间超过该特定时间,则发送一超时信号T_OUT至输出单元135,以表明存储总线已空闲了该特定时间,即协处理器11与存储器111之间在该特定时间内没有数据传送操作。指令栈1211在存储器121中的地址范围会由多媒体处理器12预先写入指令栈状态侦测单元134的相应寄存器中。指令栈状态侦测单元134依据指令栈1211的地址范围以及侦测到的栈指针(stackpointer)的值,判断指令栈1211是否为空,若为空,则发送一指令栈空信号S_EMPTY至输出单元135,以表明目前没有需要协处理器11执行的任务。由以上描述可知,当输出单元135在同时接收到超时信号T_OUT与指令栈空信号S_EMPTY时才会输出信号GNT,以说明协处理器11已经空闲一特定时间,且没有新的任务需要执行。多媒体处理器12在接收到侦测模块131发出的GNT信号后,会发出一切换命令,以使协处理器11进入链接低功耗模式,该切换命令通过协议转换模块132处理后输出至协处理器11。然而,由于协处理器11很可能此时还有一些后台数据或进程在处理中而无法进入链接低功耗模式。因此,本实施例中协处理器11在接收到切换命令后会判断当前是否还有数据或进程在处理中,若否,则通过协议转换模块132发送一回应信号ACK至多媒体处理器12并进入链接低功耗模式。若当前还有数据或进程在处理中,则不发送回应信号ACK。The detection module 131 includes a bus state detection unit 133 , an instruction stack state detection unit 134 and an output unit 135 . In this embodiment, if the bus state detection unit 133 does not detect that there is a data transmission operation between the memory 111 and the transmission controller 110 within a specific time, and the instruction stack state detection unit 134 detects that the instruction stack 1211 If it is empty, the output unit 135 will output a signal GNT to inform the multimedia processor 12 that the coprocessor 11 can be switched to the link low power consumption mode. Specifically, the bus state detection unit 133 is provided with a bus cycle detection unit 1331 and a timer 1332 . The bus cycle detection unit 1331 is connected to a memory bus (not shown) between the memory 111 and the transmission controller 110 to detect whether there is data transmission between the coprocessor 11 and the memory 111 . The timer 1332 is used to count a specific time, and the specific time is pre-configured by the multimedia processor 12 . When the bus cycle detection unit 1331 detects a data transfer bus cycle (data transfer bus cycle), the timer 1332 is cleared; when the bus cycle detection unit 1331 does not detect the data transfer bus cycle, the timer 1332 Start counting that specific time. If the counting time of the timer 1332 exceeds the specified time, a timeout signal T_OUT is sent to the output unit 135 to indicate that the storage bus has been free for the specified time, that is, there is no communication between the coprocessor 11 and the memory 111 within the specified time. Data transfer operation. The address range of the instruction stack 1211 in the memory 121 is pre-written by the multimedia processor 12 into the corresponding register of the instruction stack state detection unit 134 . The instruction stack state detection unit 134 judges whether the instruction stack 1211 is empty according to the address range of the instruction stack 1211 and the value of the detected stack pointer (stackpointer), and if it is empty, then sends an instruction stack empty signal S_EMPTY to the output unit 135 to indicate that there is no task to be performed by the coprocessor 11 at present. It can be known from the above description that the output unit 135 will output the signal GNT when receiving the timeout signal T_OUT and the instruction stack empty signal S_EMPTY at the same time, indicating that the coprocessor 11 has been idle for a specific time and there is no new task to execute. After the multimedia processor 12 receives the GNT signal sent by the detection module 131, it will send a switching command, so that the coprocessor 11 enters the link low power consumption mode, and the switching command is processed by the protocol conversion module 132 and then output to the coprocessing Device 11. However, since the coprocessor 11 probably still has some background data or processes being processed at this time, it cannot enter the link low power consumption mode. Therefore, in the present embodiment, coprocessor 11 can judge whether there is data or process in processing at present after receiving switching command, if not, then send a response signal ACK to multimedia processor 12 by protocol conversion module 132 and enter Link low power mode. If there is still data or process being processed, no response signal ACK will be sent.

如前所述,本实施例的协处理器11为X86架构的处理器,因而可以依据ACPI规范进入处理器低功耗模式C0~C5。一般来说,当协处理器11要进入处理器低功耗模式时,需要发出一特别的配置信息至存储器111,且该配置信息会通过一配置周期(C state configure cycle)由存储总线传送至存储器111。因而,本实施例侦测模块131的总线状态侦测单元133还设有一低功耗模式识别单元1333,用于侦测存储总线上的配置周期。若低功耗模式识别单元1333侦测到配置周期,则发送一已进入处理器低功耗模式信号C_MODE至输出单元135,此时,即使输出单元135同时接收到超时信号T_OUT与指令栈空信号S_EMPTY,也不会输出信号GNT。也就是说,本发明实例的协处理器11进入处理器低功耗模式后,多媒体处理器12不会发出使协处理器11进入链接低功耗模式的命令。需要说明的是,若协处理器11并非X86架构的处理器,则可以不设置低功耗模式识别单元1333,即输出单元135仅依据超时信号T_OUT与指令栈空信号S_EMPTY输出信号GNT。As mentioned above, the coprocessor 11 of this embodiment is a processor of the X86 architecture, so it can enter the processor low power consumption mode C0-C5 according to the ACPI specification. Generally speaking, when the coprocessor 11 wants to enter the low power consumption mode of the processor, it needs to send a special configuration information to the memory 111, and the configuration information will be transmitted from the storage bus to the memory 111 through a configuration cycle (C state configure cycle). memory 111. Therefore, the bus state detection unit 133 of the detection module 131 in this embodiment is further provided with a low power consumption mode recognition unit 1333 for detecting configuration cycles on the storage bus. If the low power consumption mode identification unit 1333 detects a configuration cycle, it sends a signal C_MODE that has entered the low power consumption mode of the processor to the output unit 135. At this time, even if the output unit 135 receives the timeout signal T_OUT and the instruction stack empty signal at the same time S_EMPTY, also does not output signal GNT. That is to say, after the coprocessor 11 of the example of the present invention enters the processor low power consumption mode, the multimedia processor 12 will not issue a command for the coprocessor 11 to enter the link low power consumption mode. It should be noted that if the coprocessor 11 is not an X86 architecture processor, the low power consumption mode identification unit 1333 may not be provided, that is, the output unit 135 outputs the signal GNT only according to the timeout signal T_OUT and the instruction stack empty signal S_EMPTY.

另一方面,本实施例的多媒体处理器12设有一状态记录单元122以及一决策单元123。状态记录单元122用于通过一处理器状态值来记录协处理器11的工作模式,例如,处理器状态值为1时,表示协处理器11处于正常工作模式,处理器状态值为0时,表示协处理器11处于链接低功耗模式。该状态记录单元122的初始值为正常工作模式。指令栈状态侦测单元134还依据栈指针以及指令栈1211的地址范围,判断指令栈1211的剩余大小是否小于一特定值,即判断指令栈1211是否快要满了。若指令栈1211快要满了,则输出一指令栈满信号S_FULL至多媒体处理器12的决策单元123。决策单元123依据输出单元134输出的信号GNT、指令栈状态侦测单元134输出的指令栈满信号S_FULL以及状态记录单元122的值,判断是否输出使协处理器11由链接低功耗模式转换为正常工作模式的命令。举例来说,当决策单元123接收到指令栈满信号S_FULL时,若状态记录单元122的值表示协处理器11处于链接低功耗模式,则输出使协处理器11由链接低功耗模式转换为正常工作模式的命令,并修改状态记录单元122的值。当决策单元123接收到输出单元134输出的信号GNT时,若状态记录单元122的值表示协处理器11处于正常工作模式,则输出使协处理器11进入链接低功耗模式的切换命令,并修改状态记录单元122的值。On the other hand, the multimedia processor 12 of this embodiment is provided with a status recording unit 122 and a decision unit 123 . The state recording unit 122 is used to record the working mode of the coprocessor 11 through a processor state value, for example, when the processor state value is 1, it means that the coprocessor 11 is in the normal working mode; when the processor state value is 0, Indicates that the coprocessor 11 is in the link low power consumption mode. The initial value of the state recording unit 122 is the normal working mode. The instruction stack state detection unit 134 also judges whether the remaining size of the instruction stack 1211 is less than a specific value according to the stack pointer and the address range of the instruction stack 1211 , that is, determines whether the instruction stack 1211 is almost full. If the instruction stack 1211 is almost full, output an instruction stack full signal S_FULL to the decision unit 123 of the multimedia processor 12 . The decision-making unit 123 judges whether to output the coprocessor 11 from the link low power consumption mode to commands in normal operating mode. For example, when the decision unit 123 receives the instruction stack full signal S_FULL, if the value of the state recording unit 122 indicates that the coprocessor 11 is in the link low power consumption mode, the output makes the coprocessor 11 switch from the link low power consumption mode It is a command of the normal working mode, and modifies the value of the state recording unit 122. When the decision-making unit 123 receives the signal GNT output by the output unit 134, if the value of the state recording unit 122 indicates that the coprocessor 11 is in the normal operating mode, it outputs a switching command that causes the coprocessor 11 to enter the link low power consumption mode, and Modify the value of the status record unit 122 .

于本实施例中,存储器111与存储器121可以为两个物理上独立的存储器,例如DDR、DDR2等,也可以为位于同一物理存储器上的两个存储空间。如本领域普通技术人员所知,协处理器11可以通过传输控制器110读取存储器121中的指令栈1211,以执行多媒体处理器12分配的任务(未图示)。In this embodiment, the memory 111 and the memory 121 may be two physically independent memories, such as DDR, DDR2, etc., or may be two storage spaces located on the same physical memory. As known to those skilled in the art, the coprocessor 11 can read the instruction stack 1211 in the memory 121 through the transmission controller 110 to execute tasks assigned by the multimedia processor 12 (not shown).

图3所示为根据本发明一实施例计算机系统的电源管理方法的流程图。首先,在步骤S30中,总线状态侦测单元133判断存储器111与传输控制器110之间的存储总线是否已经空闲了一特定时间,若是,则执行步骤S31。在步骤S31中,指令栈状态侦测单元134判断指令栈1211是否为空,若是,说明X86处理器既没有数据需要传输也没有新的任务需要执行,因而进入步骤S32。在步骤S32中,判断X86处理器是否处于处理器低功耗模式,若是,则跳至步骤S34,若否,则使X86处理器进入链接低功耗模式(步骤S33)。在步骤S33之后,执行步骤S34,判断指令栈是否即将被存满,若否,则使X86处理器保持在链接低功耗模式,若是,则使X86处理器由链接低功耗模式转换为正常工作模式(步骤S35),并结束流程。FIG. 3 is a flowchart of a power management method for a computer system according to an embodiment of the invention. First, in step S30, the bus state detection unit 133 judges whether the memory bus between the memory 111 and the transmission controller 110 has been idle for a specific time, and if so, executes step S31. In step S31, the instruction stack state detection unit 134 judges whether the instruction stack 1211 is empty, if yes, it means that the X86 processor has neither data to transmit nor new tasks to execute, and thus proceeds to step S32. In step S32, it is judged whether the X86 processor is in the low power consumption mode of the processor, if yes, jump to step S34, if not, make the X86 processor enter the connection low power consumption mode (step S33). After step S33, step S34 is executed to judge whether the instruction stack is about to be stored full, if not, then make the X86 processor remain in the connection low power consumption mode, if so, then make the X86 processor be converted to normal by the connection low power consumption mode working mode (step S35), and end the process.

图4所示为根据本发明另一实施例计算机系统的电源管理方法的流程图。首先,在步骤S401中,若总线周期侦测单元1331未侦测到一数据传输总线周期,则执行步骤S402,启动计时器1332开始计时一特定时间。接着,在步骤S403中,再次判断存储总线上是否有数据传输总线周期,若有,则将计时器1332清零(步骤S404)后返回步骤S401。若在步骤S403中仍未发现数据传输总线周期,则执行步骤S405,判断计时器1332是否超时。若计时器1332已经超时,即存储总线已经空闲一特定时间,则接着判断指令栈1211是否为空(步骤S406)。若指令栈1211为空,即X86处理器没有新的任务需要执行,也没有数据需要传送,则执行步骤S407,判断X86处理器是否处于处理器低功耗模式。若指令栈1211不为空,则返回步骤S401。在步骤S407,若协处理器11处于处理器低功耗模式,则结束流程。若协处理器11并未处于处理器低功耗模式,则判断协处理器11是否处于链接低功耗模式(步骤S408),若否,则发出一使协处理器11进入链接低功耗模式的命令(步骤S409)。若协处理器11处于链接低功耗模式,则跳至步骤S412。在步骤S410后,执行步骤S410,判断协处理器11是否依据接收到的命令输出回应信号ACK,若是,则表明协处理器11当前没有需要处理的数据或进程,并进入了链接低功耗模式(步骤S411)。若在步骤S410中,协处理器11未输出回应信号ACK,则返回步骤S401。在步骤S411之后,执行步骤S412与步骤S413,当指令栈1211的剩余空间小于或等于一特定值时,即指令栈1211即将满了的时候,发出使协处理器11由链接低功耗模式转换为正常工作模式的命令。接着,判断协处理器11是否输出回应信号ACK(步骤S414),若是,则表明协处理器11由链接低功耗模式转换为正常工作模式(步骤S415),即结束本实施例的电源管理流程。若否,则结束流程。FIG. 4 is a flowchart of a power management method for a computer system according to another embodiment of the present invention. First, in step S401, if the bus cycle detection unit 1331 does not detect a data transmission bus cycle, then execute step S402, start the timer 1332 to count a specific time. Next, in step S403, it is judged again whether there is a data transmission bus cycle on the storage bus, and if yes, the timer 1332 is cleared (step S404) and then returns to step S401. If no data transmission bus cycle is found in step S403, step S405 is executed to determine whether the timer 1332 has timed out. If the timer 1332 has timed out, that is, the storage bus has been idle for a specific time, then it is determined whether the instruction stack 1211 is empty (step S406 ). If the instruction stack 1211 is empty, that is, the X86 processor has no new tasks to execute and no data to transmit, then step S407 is executed to determine whether the X86 processor is in the processor low power consumption mode. If the instruction stack 1211 is not empty, return to step S401. In step S407, if the coprocessor 11 is in the processor low power consumption mode, the process ends. If the coprocessor 11 is not in the processor low power consumption mode, then judge whether the coprocessor 11 is in the link low power consumption mode (step S408), if not, then send a message to make the coprocessor 11 enter the link low power consumption mode command (step S409). If the coprocessor 11 is in the link low power consumption mode, skip to step S412. After step S410, step S410 is executed to determine whether the coprocessor 11 outputs a response signal ACK according to the received command, if so, it indicates that the coprocessor 11 currently has no data or process to be processed, and enters the connection low power consumption mode (step S411). If in step S410, the coprocessor 11 does not output the response signal ACK, then return to step S401. After step S411, execute step S412 and step S413, when the remaining space of instruction stack 1211 is less than or equal to a certain value, promptly when instruction stack 1211 is about to be full, issue and make coprocessor 11 switch over by link low power consumption mode commands for normal operating mode. Then, it is judged whether the coprocessor 11 outputs the response signal ACK (step S414), if so, it indicates that the coprocessor 11 is converted from the link low power consumption mode to the normal operation mode (step S415), that is, the power management process of the present embodiment is ended . If not, the process ends.

通过本实施例的电源管理流程,计算机系统100中功耗较小的多媒体处理器12可以依据ASPM规范使功耗相对较大的协处理器11进入链接低功耗模式,并且只有在需要协处理器11执行的任务达到一定量时,才会使协处理器11由链接低功耗模式转换为正常工作模式,从而可以进一步降低计算机系统100的功耗。Through the power management process of this embodiment, the multimedia processor 12 with low power consumption in the computer system 100 can make the coprocessor 11 with relatively large power consumption enter the link low power consumption mode according to the ASPM specification, and only when coprocessing is required When the tasks performed by the coprocessor 11 reach a certain amount, the coprocessor 11 will be converted from the link low power consumption mode to the normal working mode, thereby further reducing the power consumption of the computer system 100 .

以上所述仅为本发明较佳实施例,然其并非用以限定本发明的范围,任何熟悉本项技术的人员,在不脱离本发明的精神和范围内,可在此基础上做进一步的改进和变化,因此本发明的保护范围当以本申请的权利要求书所界定的范围为准。The above description is only a preferred embodiment of the present invention, but it is not intended to limit the scope of the present invention. Any person familiar with this technology can make further improvements on this basis without departing from the spirit and scope of the present invention. Improvements and changes, so the protection scope of the present invention should be defined by the claims of the present application.

Claims (12)

1. the method for managing power supply of a computer system, described computer system comprises that a primary processor, a coprocessor and are used to store the instruction stack that described primary processor is distributed to the task of described coprocessor processing, it is characterized in that the method for managing power supply of described computer system comprises:
Judge the memory bus idle special time whether between a described coprocessor and the storer;
If idle this special time of the bus between described coprocessor and the described storer judges then whether described instruction stack is empty; And
If described instruction stack is empty, then sends a switching order and make described coprocessor enter a low-power consumption mode.
2. the method for managing power supply of computer system according to claim 1, it is characterized in that, switch order described coprocessor is also comprised before entering the step of a low-power consumption mode sending one: judge whether described coprocessor is in described low-power consumption mode, if not, then send described switching command.
3. the method for managing power supply of computer system according to claim 2 is characterized in that, also comprises:
If described coprocessor is in described low-power consumption mode, whether the remaining space of then judging described instruction stack is less than a particular value; And
If the remaining space of described instruction stack then sends one and makes described coprocessor enter the order of a normal mode of operation less than this particular value.
4. the method for managing power supply of computer system according to claim 1 is characterized in that, described judge the memory bus between a described coprocessor and the storer whether the step of idle this special time comprise:
Judge whether a data transmission bus cycle is arranged on the memory bus between described coprocessor and the described storer; And
If do not have the described data transmission bus cycle on the described memory bus, then start this special time of timer timing;
If the timing time of this timer surpasses this special time, then show described memory bus idle this special time.
5. the method for managing power supply of computer system according to claim 4 is characterized in that, also comprises: if behind the described timer initiation, arranged, then with described timer zero clearing a data transmission bus cycle on the described memory bus.
6. the method for managing power supply of computer system according to claim 1 is characterized in that, also comprises:
Judge whether described coprocessor enters a processor low-power consumption mode according to the ACPI standard;
If then finish the power management flow process.
7. a computer system is characterized in that, comprising:
One first processor;
One second processor is used to carry out the task that described first processor distributes;
One instruction stack is used to store the instruction that described first processor is distributed to the task of described second processor execution;
One storer is coupled to described second processor by a memory bus, with temporary deal with data;
One bridge is coupled between described first processor and described second processor, comprising:
One bus state detecting unit is used to detect the state of described memory bus, and exports a timeout signal, is in idle condition to represent described memory bus;
One instruction stack state detecting unit is used to detect the state of described instruction stack, and exports an instruction stack spacing wave, is sky to represent described instruction stack; And
Wherein, described first processor switches order according to described timeout signal and instruction stack spacing wave output one, so that described second processor switches to a low-power consumption mode by a normal mode of operation.
8. computer system according to claim 7 is characterized in that, described bus state detecting unit comprises:
One bus cycles detecting unit is used to detect the data transmission bus cycle on the described memory bus;
One timer, the bus cycles detecting unit detects the data transmission bus cycle as described, this timer zero clearing; The bus cycles detecting unit does not detect the data transmission bus cycle as described, then this timer special time that picks up counting; And
Wherein, described bus cycles detecting unit is not if detect the data transmission bus cycle, and the timing time of this timer then should can be exported described timeout signal by the bus cycles detecting unit above this special time.
9. computer system according to claim 8 is characterized in that, the remaining space that described instruction stack state detecting unit detects described instruction stack is exported the full signal of an instruction stack to described first processor during less than a particular value.
10. computer system according to claim 9, it is characterized in that, described first processor is provided with a decision package, is used for making described second processor be switched to the order of normal mode of operation by low-power consumption mode according to full signal of described instruction stack and processor state value output one; And a state recording unit, be used to write down the described processor state value of described second processor, and export described processor state value to described decision package.
11. computer system according to claim 7 is characterized in that, described bus state detecting unit is provided with a low-power consumption mode recognition unit, is used for exporting a low-power consumption mode signal according to the configuration cycle on the described memory bus.
12. computer system according to claim 11, it is characterized in that, this bridge also comprises an output unit, it receives this low-power consumption mode signal, as this moment this output unit receive this timeout signal and this instruction stack spacing wave simultaneously, will can not export the described switching command that makes this second processor enter this low-power consumption mode.
CNB2007101664349A 2007-11-07 2007-11-07 Computer system and power management method thereof Active CN100547520C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101664349A CN100547520C (en) 2007-11-07 2007-11-07 Computer system and power management method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101664349A CN100547520C (en) 2007-11-07 2007-11-07 Computer system and power management method thereof

Publications (2)

Publication Number Publication Date
CN101145080A CN101145080A (en) 2008-03-19
CN100547520C true CN100547520C (en) 2009-10-07

Family

ID=39207628

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101664349A Active CN100547520C (en) 2007-11-07 2007-11-07 Computer system and power management method thereof

Country Status (1)

Country Link
CN (1) CN100547520C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI510908B (en) * 2012-08-09 2015-12-01 Acer Inc Power management system and power management method

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593287B (en) * 2008-05-28 2010-12-08 北京中电华大电子设计有限责任公司 Power consumption balancing method of smart card
CN101668350B (en) * 2008-09-01 2012-07-25 联想(北京)有限公司 Mobile-terminal state-switching method and mobile terminal
CN101751114B (en) * 2008-12-22 2012-01-25 联想(北京)有限公司 Display switching method for mobile terminal and mobile terminal
CN101754458B (en) * 2008-12-01 2016-10-05 联想(北京)有限公司 The Working mode switching method of communication system and mobile terminal
CN101937363B (en) * 2009-07-01 2013-12-25 联想(北京)有限公司 Mobile terminal operating mode switching method and mobile terminal
US8631256B2 (en) * 2010-12-22 2014-01-14 Via Technologies, Inc. Distributed management of a shared power source to a multi-core microprocessor
US20140059322A1 (en) * 2011-12-23 2014-02-27 Elmoustapha Ould-Ahmed-Vall Apparatus and method for broadcasting from a general purpose register to a vector register
US9760150B2 (en) * 2012-11-27 2017-09-12 Nvidia Corporation Low-power states for a computer system with integrated baseband
CN103941843B (en) * 2014-03-31 2017-06-09 华为技术有限公司 mode switching method and device
CN110516800B (en) * 2019-07-08 2022-03-04 山东师范大学 Deep learning network application distributed self-assembly instruction processor core, processor, circuit and processing method
CN110413098B (en) * 2019-07-31 2021-11-16 联想(北京)有限公司 Control method and device
CN114816034A (en) * 2021-01-27 2022-07-29 炬芯科技股份有限公司 Power consumption control method and device for multi-core system
CN119576108B (en) * 2025-02-07 2025-06-10 山东大学 Processor low power state switching method based on RISC-V server platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1492299A (en) * 2003-09-09 2004-04-28 威盛电子股份有限公司 Computer system with power management and its method
CN1547117A (en) * 2003-12-02 2004-11-17 威盛电子股份有限公司 Processor power management and bus optimization methods

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1492299A (en) * 2003-09-09 2004-04-28 威盛电子股份有限公司 Computer system with power management and its method
CN1547117A (en) * 2003-12-02 2004-11-17 威盛电子股份有限公司 Processor power management and bus optimization methods

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI510908B (en) * 2012-08-09 2015-12-01 Acer Inc Power management system and power management method

Also Published As

Publication number Publication date
CN101145080A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
CN100547520C (en) Computer system and power management method thereof
US8479031B2 (en) System switching unit having a switch to switch on/off a channel for data interaction between a first system and the bus interface of a second system according to the operation state of the second system
RU2633126C2 (en) Strengthening mechanism of transfer and/or configuration of one protocol of inter-connections for another protocol of inter-connections
US7587525B2 (en) Power control with standby, wait, idle, and wakeup signals
US9740645B2 (en) Reducing latency in a peripheral component interconnect express link
KR100229575B1 (en) Information processing system
US20170262395A1 (en) Method, apparatus, system for including interrupt functionality in sensor interconnects
US20090204834A1 (en) System and method for using inputs as wake signals
JP5095682B2 (en) Information processing apparatus, power control method for information processing apparatus, and computer-executable program
US9552051B2 (en) Block partition to minimize power leakage
JP2003316731A (en) Data transfer control device, electronic device, and data transfer control method
US9176570B2 (en) System and method for providing universal serial bus link power management policies in a processor environment
CN101778161A (en) Mobile Internet terminal
JP2003316732A (en) Data transfer control device, electronic device, and data transfer control method
US20080010476A1 (en) Method and system for saving power of central processing unit
JP2010055265A (en) System lsi, control method of system lsi, program, and storage medium
CN112306558A (en) Processing unit, processor, processing system, electronic device, and processing method
JP2007299367A (en) Data processing system and method for touch pad
CN100437474C (en) System and method for regulating CPU frequency
CN101315577B (en) Power consumption control method, device and system of memory interface
CN1154051C (en) Intelligent battery electric quantity reading device
US8131907B2 (en) Multi-processor system supporting dynamic power saving and dynamic power saving method thereof
US20200065274A1 (en) Always-on ibi handling
CN116745768B (en) Data processing method and electronic device
CN220671886U (en) Main board unit and handheld terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant