CN107168895A - Control method, bridge piece and the system of external equipment - Google Patents

Control method, bridge piece and the system of external equipment Download PDF

Info

Publication number
CN107168895A
CN107168895A CN201610126294.1A CN201610126294A CN107168895A CN 107168895 A CN107168895 A CN 107168895A CN 201610126294 A CN201610126294 A CN 201610126294A CN 107168895 A CN107168895 A CN 107168895A
Authority
CN
China
Prior art keywords
cpu
register
bridge piece
control instruction
value
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.)
Granted
Application number
CN201610126294.1A
Other languages
Chinese (zh)
Other versions
CN107168895B (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.)
Loongson Technology Corp Ltd
Original Assignee
Loongson Technology Corp Ltd
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 Loongson Technology Corp Ltd filed Critical Loongson Technology Corp Ltd
Priority to CN201610126294.1A priority Critical patent/CN107168895B/en
Publication of CN107168895A publication Critical patent/CN107168895A/en
Application granted granted Critical
Publication of CN107168895B publication Critical patent/CN107168895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Microcomputers (AREA)

Abstract

The present invention provides a kind of method, bridge piece and the system of control external equipment, wherein, this method is applied to be embedded with control instruction code in the bridge piece with independent signal processing function, the BIOS of the bridge piece end, and this method includes:Obtain the control instruction for reading buffer status value in CPU, according to the mapping relations between buffer status value in control instruction code and the control instruction and CPU, read the current state value of control instruction correspondence register, and according to the current state value of control instruction correspondence register, control the function of the register corresponding device.Technical scheme, it is not necessary to increase external circuitses, reduces the complexity of computer system, improves the precision of buffer status value and control peripheral hardware, reduces CPU power consumption, improve CPU stability.

Description

Control method, bridge piece and the system of external equipment
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method, the bridge piece of control external equipment And system.
Background technology
Microprocessor (Microprocessor without interlocked piped without inner interlocked pipelining-stage Stages, abbreviation MIPS) it is that one kind uses Reduced Instruction Set Computer (Reduced Instruction Set Computer, abbreviation RISC) processor architecture.At this stage, as Computing core and control The central processing unit (Central Processing Unit, abbreviation CPU) of core can be that one kind uses MIPS The high-performance RISC processor of framework, it is applied to desktop and high-performance server field.Due to CPU Load effect CPU temperature height, and CPU temperature has a direct impact to CPU stability, And CPU stability and power consumption is the important component of computer system performance, it, which is directly affected, is The mean time between failures of system.Therefore, illustrated below by taking the temperature for controlling CPU as an example, That is, it is to improve system that CPU temperature how is monitored in real time and dynamic regulation is carried out to CPU rotation speed of the fan The one side for stability of uniting.
At present, temperature monitoring and the control to CPU in computer system is mainly realized by the following method. Specifically, by setting a temperature-sensing element (for example, thermistor) near CPU, An external control chip between CPU and fan, and temperature-sensing element is connected with control chip, utilizes The resistance that control chip reads temperature-sensing element determines CPU temperature and is fed back to CPU, enters And CPU is calculated suitable rotation speed of the fan according to the current rotating speed of the temperature and fan, and then pass through control Coremaking piece adjusts the rotating speed of fan in real time, reaches the purpose of control cpu temperature.
However, above-mentioned control method is due to needing external circuitses to connect control chip so that computer system Complexity increase, cost is high, because the monitoring of cpu temperature is known using temperature-sensing element sensing , thus temperature monitoring the degree of accuracy than relatively low, further, since calculating rotation speed of the fan needs to take CPU Resource, also add CPU power consumption, have impact on CPU stability.
The content of the invention
The present invention provides a kind of method, bridge piece and the system of control external equipment, to solve in the prior art The problem of CPU power consumption is high, cpu system performance is unstable.
The method for a kind of control external equipment that the present invention is provided, applied to independent signal transacting work( Control instruction code is embedded with the bridge piece of energy, the BIOS of the bridge piece end, this method includes:
Obtain the control instruction for reading buffer status value in CPU;
According to the control instruction code and the control instruction and buffer status value in the CPU it Between mapping relations, read the current state value of control instruction correspondence register;
According to the current state value of control instruction correspondence register, the register corresponding device is controlled Function.
The present invention also provides a kind of bridge piece of control external equipment, and the bridge piece has independent signal transacting Control instruction code is embedded with function, the BIOS of the bridge piece end, the bridge piece includes:
Acquisition module, for obtaining to read the control instruction of buffer status value in CPU;
Read module, for according in the control instruction code and the control instruction and the CPU Mapping relations between buffer status value, read the current state of the control instruction correspondence register Value;
Control module, for the current state value according to control instruction correspondence register, control is described The function of register corresponding device.
The present invention also provides a kind of system for controlling external equipment, including:CPU, bridge piece, memory, Input-output equipment and external equipment;The CPU is connected with the memory, the bridge piece respectively with institute State CPU, the input-output equipment, external equipment connection;
The bridge piece for the control external equipment that the bridge piece provides for the present invention.
Method, bridge piece and the system for the control external equipment that the present invention is provided, use can be got by bridge piece The control instruction of buffer status value in reading CPU, and then read control instruction correspondence register Current state value, and then control the function of the register corresponding device.Technical scheme, is not required to Increase external circuitses, reduce the complexity of computer system, improve buffer status value and control The precision of peripheral hardware, reduces CPU power consumption, improves CPU stability, solves existing skill The problem of CPU power consumption is high in art, cpu system performance is unstable.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to reality The accompanying drawing used required for applying in example or description of the prior art is briefly described, it should be apparent that, under Accompanying drawing in the description of face is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
The schematic flow sheet of the embodiment of the method one for the control external equipment that Fig. 1 provides for the present invention;
The schematic flow sheet of the embodiment of the method two for the control external equipment that Fig. 2 provides for the present invention;
The schematic flow sheet of the embodiment of the method three for the control external equipment that Fig. 3 provides for the present invention;
The structural representation of the bridge piece embodiment one for the control external equipment that Fig. 4 provides for the present invention;
The structural representation of the bridge piece embodiment two for the control external equipment that Fig. 5 provides for the present invention;
The structural representation of the bridge piece embodiment three for the control external equipment that Fig. 6 provides for the present invention;
The structural representation of the system embodiment for the control external equipment that Fig. 7 provides for the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with this hair Accompanying drawing in bright embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, Obviously, described embodiment is a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made The every other embodiment obtained, belongs to the scope of protection of the invention.
Central processing unit (Central Processing Unit, abbreviation CPU) is one piece of ultra-large collection The arithmetic core and control core of a computer into circuit, its be used for interpretive machine instruction and Handle the data in computer software.CPU stability and power consumption directly affects the property of computer system Can, and CPU temperature has a direct impact to CPU stability, it is therefore desirable to monitor CPU in real time Temperature and control it.
In fact, the implementation for cpu temperature to be monitored and controlled, except what is mentioned in background technology , can also be directly using CPU certainly outside by control chip, temperature-sensing element and CPU collective effects Body is realized.Specifically, CPU checks CPU state of temperature self by the mode of poll, work as prison Measure CPU temperature it is too high when, directly send control signal adjust fan rotating speed, that is, CPU The rotating speed of fan is adjusted according to own temperature during whole service, and then controls CPU temperature.But In this method, CPU polls check CPU state of temperature and calculate rotation speed of the fan and are required to take CPU Resource, can so increase CPU power consumption, equally have impact on CPU stability.
For drawbacks described above of the prior art, the invention provides a kind of method for controlling external equipment, Bridge piece and system, for solving, CPU power consumption is high, cpu system performance is unstable in the prior art asks Topic.
What deserves to be explained is, method, bridge piece and the system of the control external equipment that the present invention is provided, not only Suitable for by monitoring the state value of register CPU come the function of control register corresponding device, and Suitable for judged by monitoring the state value of register CPU the working condition of register corresponding device with Processing notice is sent into CPU makes it handle the register corresponding device.
The schematic flow sheet of the embodiment of the method one for the control external equipment that Fig. 1 provides for the present invention.This hair The method of external equipment is controlled to be applied to the bridge piece with independent signal processing function in bright embodiment, should It is embedding in the basic input output system (Basic Input Output System, abbreviation BIOS) of bridge piece end Enter to have control instruction code.Specifically, as shown in figure 1, outside the control that the embodiment of the present invention one is provided The method of equipment, including:
Step 101:Obtain the control instruction for reading buffer status value in CPU;
Specifically, the bridge piece in the embodiment of the present invention is connected with CPU, the bridge piece carries processor core, its With independent signal processing function, and embedded control instruction code in the BIOS of the bridge piece end.Bridge The control for being used for buffer status value in reading CPU that piece can obtain user's input from outside input interface refers to Order, can also obtain the control instruction set, on specific acquisition modes, this hair from bridge piece Bright embodiment is defined not to this.
Step 102:According between buffer status value in control instruction code and control instruction and CPU Mapping relations, read the current state value of control instruction correspondence register;
As being configured with reflecting between buffer status value in control instruction and CPU in the bridge piece of executive agent Relation is penetrated, therefore, the bridge piece is according to the above-mentioned control instruction got, by running control instruction generation Code can then get the current state value of register in the CPU.
Step 103:According to the current state value of control instruction correspondence register, the register pair is controlled Answer the function of equipment.
Because bridge piece is per se with processor core, possess independent signal processing function, therefore, the bridge piece The current state value of register can be corresponded to according to above-mentioned control instruction, to the work of the register corresponding device Make state and carry out the working condition that Reasonable adjustment makes it be adjusted to theory, that is, bridge piece can refer to according to control The current state value of order correspondence register, controls the function of the register corresponding device.
Register in the embodiment of the present invention is mainly the register in CPU, and it can have a variety of, example Such as, temperature status register, interrupt register etc..If by taking the temperature status register in CPU as an example Illustrate, its corresponding equipment is cpu fan, then, when bridge piece is read for reading temperature shape After the control instruction of state buffer status value, according to control instruction code embedded in the BIOS of bridge piece end And the mapping relations between the control instruction and temperature status register state value, temperature shape can be got The current state value of state register, that is, CPU current temperature value, and then control cpu fan to make it It is the corresponding theoretical rotational speed of CPU current temperature values by adjustment of rotational speed, so that CPU preferably radiates, Improve CPU stability.
What deserves to be explained is, the bridge piece in the present embodiment is embedded in the control in the BIOS of its end by operation Instruction code processed can not only monitor the state value of register in CPU, the work(of control register corresponding device Can, but also the communication that can be responsible between I/O buses.
The method for the control external equipment that the embodiment of the present invention one is provided, at independent signal The bridge piece that control instruction code is embedded with function and end BIOS is managed, obtains and is posted for reading in CPU The control instruction of storage state value, and according to control instruction code and the control instruction with being deposited in CPU Mapping relations between device state value, read the current state value of control instruction correspondence register, and then According to the current state value of control instruction correspondence register, the function of control register corresponding device.This The technical scheme of invention, the shape of register in CPU is obtained by the bridge piece with independent signal processing function State value and the function of controlling corresponding registers corresponding device, it is not necessary to increase external circuitses, not only reduce The complexity of computer system, also improves the precision of buffer status value and control peripheral hardware, in addition, logical Cross setting bridge piece to monitor CPU state and make it corresponding processing, also reduce CPU work( Consumption, improves CPU stability.
Further, the method for the control external equipment that above-described embodiment is provided, in addition to:
The access relation between register in bridge piece and CPU is determined by way of window configuration address.
Specifically, can access the register in CPU in order to ensure bridge piece, the embodiment of the present invention passes through window The mode of mouthful configuration address determines the access relation in bridge piece and CPU between register, that is, by One sector address scope is set in bridge piece, and the address realm is that the mode limited using window is distributed to specifically Register, therefore, when running control instruction code embedded in bridge piece, bridge piece can just get CPU The current state value of middle register.
For example, being illustrated by taking temperature status register as an example.Specifically, window configuration address can be passed through Mode determine between bridge piece and temperature status register have access relation, also only determine above-mentioned Access relation, when bridge piece runs above-mentioned control instruction code according to control instruction, just may be read into temperature The state value of status register, and then get the current temperature values of the CPU.
Optionally, in the method for the control external equipment that the above embodiment of the present invention is provided, above-mentioned bridge piece Processor core is carried, the mapping between buffer status value in control instruction and CPU is configured with the bridge piece Relation.
Because the chip with processor core just can perform corresponding processing operation, and above-mentioned bridge piece needs to hold Row obtains buffer status value and calculates or judge the operation state values of register corresponding device, therefore, this Bridge piece in inventive embodiments must be the bridge piece for itself carrying processor core.
When the mapping relations being configured with bridge piece in control instruction and CPU between buffer status value, because This, the bridge piece is according to control instruction, during operationally stating control instruction code, can just get The current state value of register in the CPU.
The schematic flow sheet of the embodiment of the method two for the control external equipment that Fig. 2 provides for the present invention.This hair Bright embodiment two is that the method implementation for controlling external equipment is entered on the basis of above-described embodiment one One step explanation.If above-mentioned control instruction refers to for the control for reading interrupt register state value in CPU Order, then, as shown in Fig. 2 above-mentioned steps 103, that is, according to control instruction correspondence register Current state value, controls the function of the register corresponding device, comprises the following steps.
Step 201:According to the current state value of above-mentioned control instruction correspondence register, the register is judged Whether there is interrupt event to need processing in corresponding device;
Specifically, when the control instruction that bridge piece is got is for reading interrupt register state value in CPU Control instruction, then bridge piece is according to reflecting between interrupt register state value in the control instruction and CPU Relation is penetrated, the current state value of interrupt register can be got by running the control instruction code.
Bridge piece may determine that in interrupt register corresponding device whether have according to the state value of interrupt register Event need processing, that is, according to the current state value of interrupt register can interpolate that out CPU whether need The interrupt event in equipment is answered to handle to interrupting register pair.
Step 202:When there is interrupt event to need processing, send processing and notify to give the CPU, so that CPU Notified to control the function of the interrupt register corresponding device according to processing.
Judge to obtain thering is event to need processing in interrupt register corresponding device specifically, working as bridge piece, so, Bridge piece is sent to CPU by notice is handled, so that CPU is notified directly to the interrupt register according to the processing Event in corresponding device is handled, and then controls the function of the interrupt register corresponding device.
The method of control external equipment provided in an embodiment of the present invention, in obtaining for reading in CPU The control instruction of disconnected buffer status value, and then according between the control instruction and interrupt register state value Mapping relations, the current state value of interrupt register can be got by running above-mentioned control instruction code, be entered And when judging to have in interrupt register corresponding device the event need processing, by bridge piece to CPU transmissions at Reason is notified, so that the CPU notifies to control the function of the interrupt register corresponding device according to processing.This hair Whether the technical scheme of bright embodiment, just can be monitored busy in interrupt register corresponding device by bridge piece Part needs processing, it is not necessary to which CPU goes monitoring, reduces CPU power consumption, improves CPU stabilization Performance.
Optionally, in the method for the control external equipment that above-described embodiment two is provided, above-mentioned register pair The equipment answered includes network interface card and/or USB device.
Specifically, bridge piece can know network interface card and/or USB by monitoring the state value of interrupt register Whether there is event to need processing in equipment, when there is event to need processing, bridge piece is directly notified by handling Informing has event to need processing in the corresponding network interface card of CPU interrupt registers and/or USB device, so that CPU is directly handled the event in network interface card and/or USB device, and then controls network interface card and/or USB The function of equipment.
The schematic flow sheet of the embodiment of the method three for the control external equipment that Fig. 3 provides for the present invention.This hair Bright embodiment three is that the method implementation for controlling external equipment is entered on the basis of above-described embodiment one One step explanation.As shown in figure 3, above-mentioned steps 103, that is, according to control instruction correspondence register Current state value, controls the function of the register corresponding device, can also comprise the following steps.
Step 301:According between buffer status value and the working condition theoretical value of register corresponding device Corresponding relation and the register current state value, run the control instruction code and calculate the deposit The current operating state theoretical value of device corresponding device;
In fact, the working condition due to being configured with buffer status value and register corresponding device in bridge piece Corresponding relation between theoretical value, so the bridge piece can not only read the current shape of register in CPU State value, can also be calculated according to the current state value of above-mentioned register by running above-mentioned control instruction code Go out the current operating state theoretical value of the register corresponding device.
What deserves to be explained is, the current operating state theoretical value and register of the register corresponding device are current State value is one-to-one.
Step 302:According to the current operating state theoretical value of above-mentioned register corresponding device, this is controlled to post The current operating state value of storage corresponding device makes it be adjusted to current operating state theoretical value.
Specifically, the current state value of register in CPU can be got by bridge piece, this can be calculated and posted The current operating state theoretical value of storage corresponding device, therefore, above-mentioned register pair is can control using bridge piece Answering the current operating state value of equipment makes it be adjusted to current operating state theoretical value, it is possible to increase CPU's Stability, and then improve CPU operating efficiency.
The embodiment of the present invention three provide control external equipment method, by according to buffer status value with The current shape of corresponding relation and the register between the working condition theoretical value of the register corresponding device State value, the current operating state theory of the register corresponding device can be calculated by running the control instruction code Value, and then control the current operating state value of the register corresponding device it is adjusted to the work at present shape State theoretical value, that is, the embodiment of the present invention is by obtaining the current state value of register in CPU, and is counted The current operating state theoretical value of the register corresponding device is calculated, bridge piece can be made to register corresponding device Working condition make corresponding adjustment, improve the reasonability that register pair answers equipment working state, and then CPU power consumption is reduced, CPU stability is improved.
Optionally, in the method for the control external equipment that above-described embodiment three is provided, match somebody with somebody in above-mentioned bridge piece It is equipped with the corresponding relation between buffer status value and the working condition theoretical value of register corresponding device.
If specifically, being configured with buffer status value and the working condition reason of register corresponding device in bridge piece By the corresponding relation between value, when bridge piece runs control instruction code embedded in bridge piece end BIOS When, the current work of the register corresponding device can be directly calculated according to the current state value of register Make regime theory value, and then make bridge piece control the register pair to set according to the current operating state theoretical value Standby working condition.
Further, in the method for the control external equipment that above-described embodiment three is provided, above-mentioned control refers to Make reading the control instruction of temperature status register state value in CPU, then, the register pair should be set Standby is cpu fan.
Specifically, bridge piece is first according to the mapping relations between the control instruction and temperature status register, The state value of the temperature status register is read by running control instruction code, and then obtains CPU's Current temperature value, secondly according to the corresponding relation between cpu temperature value and cpu fan theoretical rotational speed with And CPU current temperature value, the current theoretical rotational speed of cpu fan is calculated, finally according to the CPU The current theoretical rotational speed of fan, the rotating speed of control cpu fan makes it be adjusted to above-mentioned current theoretical rotational speed.
The inventive embodiments to monitor cpu temperature using bridge piece come dynamic regulation cpu fan rotating speed in real time Exemplified by illustrate, by run bridge piece end be embedded in control instruction code when can obtain the current of CPU The current theoretical rotational speed of temperature value and cpu fan, controls cpu fan to make it be current by rotational speed regulation Theoretical rotational speed, so that CPU is operated at rational temperature, improves the accurate of cpu temperature monitoring Degree, reduces load during CPU operations, reduces CPU power consumption, it is ensured that it is steady that CPU works Qualitative energy.
The structural representation of the bridge piece embodiment one for the control external equipment that Fig. 4 provides for the present invention.As schemed Shown in 4, the bridge piece of control external equipment provided in an embodiment of the present invention, including:
Acquisition module 401, for obtaining to read the control instruction of buffer status value in CPU;
Read module 402, for according to control instruction code and the control instruction and register in CPU Mapping relations between state value, read the current state value of control instruction correspondence register;
Control module 403, for the current state value according to control instruction correspondence register, control is posted The function of storage corresponding device.
The bridge piece for the control external equipment that the embodiment of the present invention one is provided, it is square as shown in Figure 1 available for performing The technical scheme of method embodiment, its realization principle is similar, and here is omitted.
The bridge piece provided in an embodiment of the present invention for controlling external equipment is with independent signal processing function and end The bridge piece of control instruction code is embedded with portion BIOS, the bridge piece is obtained by acquisition module for reading The control instruction of buffer status value in CPU is taken, control instruction correspondence is read by read module and is posted The current state value of storage, and then make control module according to the current state of control instruction correspondence register Value, the function of control register corresponding device.Technical scheme, at independent signal The bridge piece of reason function obtains in CPU the state value of register and controls the work(of corresponding registers corresponding device Can, it is not necessary to increase external circuitses, not only reduce the complexity of computer system, also improve deposit The precision of device state value and control peripheral hardware, in addition, monitoring CPU state by setting bridge piece and to it Corresponding processing is made, CPU power consumption is also reduced, CPU stability is improved.
Further, the bridge piece for the control external equipment that above-described embodiment one is provided, in addition to:Determine mould Block.
The determining module, for determining the bridge piece and register in CPU by way of window configuration address Between access relation.
Further, above-mentioned bridge piece carries in processor core, and the bridge piece and is configured with control instruction and CPU Mapping relations between middle buffer status value.
The structural representation of the bridge piece embodiment two for the control external equipment that Fig. 5 provides for the present invention.This hair Bright embodiment two is to controlling the bridge piece of external equipment furtherly on the basis of above-described embodiment one It is bright.As shown in figure 5, in the bridge piece of control external equipment provided in an embodiment of the present invention, the control refers to Make to read the control instruction of interrupt register state value in CPU, then the control module 403, including:
Judging unit 501, for the current state value according to above-mentioned control instruction correspondence register, judges Whether there is interrupt event to need processing in the register corresponding device;
Transmitting element 502, notifies to give the CPU for when there is interrupt event to need processing, sending processing, So that CPU notifies the function of control interrupt register corresponding device according to processing.
Wherein, the corresponding equipment of the register includes network interface card and/or USB device.
The bridge piece for the control external equipment that the embodiment of the present invention two is provided, it is square as shown in Figure 2 available for performing The technical scheme of method embodiment, its realization principle is similar, and here is omitted.
The bridge piece of control external equipment provided in an embodiment of the present invention, by judge module according to control instruction The current state value of register is corresponded to judge whether to have in register corresponding device interrupt event to need place Reason, when there is interrupt event to need processing, will handle notice by transmitting element and is sent to CPU so that should CPU notifies to control the function of the interrupt register corresponding device according to processing.The technology of the embodiment of the present invention Scheme, just can monitor whether have event to need processing in interrupt register corresponding device by bridge piece, no Need CPU to go monitoring, reduce CPU power consumption, improve CPU stability.
The structural representation of the bridge piece embodiment three for the control external equipment that Fig. 6 provides for the present invention.This hair Bright embodiment three is to controlling the bridge piece of external equipment furtherly on the basis of above-described embodiment one It is bright.As shown in fig. 6, in the bridge piece of control external equipment provided in an embodiment of the present invention, above-mentioned control Module 403, including:Processing unit 601 and control unit 602.
The processing unit 601, for the working condition according to buffer status value and register corresponding device The current state value of corresponding relation and the register between theoretical value, runs above-mentioned control instruction code Calculate the current operating state theoretical value of register corresponding device;
The control unit 602, for the current operating state theoretical value according to the register corresponding device, The current operating state value of control register corresponding device makes it be adjusted to current operating state theoretical value.
Further, in the bridge piece for the control external equipment that above-described embodiment one is provided, match somebody with somebody in the bridge piece It is equipped with the corresponding relation between buffer status value and the working condition theoretical value of register corresponding device.
Optionally, above-mentioned control instruction is to read the control instruction of temperature status register state value in CPU, Then register corresponding device is cpu fan.
The bridge piece for the control external equipment that the embodiment of the present invention three is provided, it is square as shown in Figure 3 available for performing The technical scheme of method embodiment, its realization principle is similar, and here is omitted.
The bridge piece for the control external equipment that the embodiment of the present invention three is provided, processing unit passes through according to register Corresponding relation and the register between state value and the working condition theoretical value of the register corresponding device Current state value, the work at present of the register corresponding device can be calculated by running the control instruction code Regime theory value, and then control the current operating state value of the register corresponding device to make by control unit It is adjusted to the current operating state theoretical value, improves register pair and answers the reasonable of equipment working state Property, and then CPU power consumption is reduced, improve CPU stability.
The structural representation of the system embodiment for the control external equipment that Fig. 7 provides for the present invention.Such as Fig. 7 It is shown, the system of control external equipment provided in an embodiment of the present invention, including:CPU 701, bridge piece 702nd, memory 703, input and output (I/O) equipment 704 and external equipment 705.Wherein, CPU 701 Be connected with memory 703, bridge piece 702 respectively with CPU 701, input and output (I/O) equipment 704 and External equipment 705 is connected.
Specifically, bridge piece 702 is the bridge of the control external equipment described in Fig. 4 to embodiment illustrated in fig. 6 Piece;About composition structure, the realization principle of bridge piece 702, referring to Fig. 4 to embodiment illustrated in fig. 6 Jie Continue, here is omitted.
Memory 703 is connected with CPU 701, for the data storage for handling CPU 701, just Directly read when follow-up use from memory, the processing operation for being similarly follow-up is provided convenience.
Input and output (I/O) equipment 704 is the hardware carried out data transmission with computer, including hard disk, The equipment such as floppy disk, CD, keyboard, mouse and various interfaces, it is connected with bridge piece 702, for managing The input and output with control computer are managed, and the data transfer that bridge piece 702 is handled is gone out.
External equipment 705 in the embodiment of the present invention can be the corresponding equipment of register in CPU, outside The state of equipment 705 can characterize CPU 701 state or the function by controlling external equipment 705 CPU 701 state can be adjusted.For example, the equipment such as cpu fan, LED, passes through bridge piece 702 The working condition of external equipment 705 can be controlled so that CPU 701 run under suitable conditions and then Ensure the stability of CPU work.
What deserves to be explained is, system provided in an embodiment of the present invention includes but is not limited to include CPU 701st, bridge piece 702, memory 703, input and output (I/O) equipment 704 and external equipment 705 etc. are set Standby, the embodiment of the present invention is simply illustrated by taking above-mentioned equipment component as an example, and the present invention is not carried out to this Limit.
In summary, method, bridge piece and the system of control external equipment provided in an embodiment of the present invention, lead to Crossing bridge piece can get for reading the control instruction of buffer status value in CPU, and then read the control The current state value of instruction correspondence register, and then control the function of the register corresponding device.The present invention Technical scheme, it is not necessary to increase external circuitses, reduce the complexity of computer system, improve and post The precision of storage state value and control peripheral hardware, reduces CPU power consumption, improves CPU stability Energy.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than right It is limited;Although the present invention is described in detail with reference to foregoing embodiments, this area it is common Technical staff should be understood:It can still be repaiied to the technical scheme described in foregoing embodiments Change, or equivalent substitution is carried out to which part or all technical characteristic;And these are changed or replaced Change, the essence of appropriate technical solution is departed from the scope of various embodiments of the present invention technical scheme.

Claims (17)

1. a kind of method for controlling external equipment, it is characterised in that at independent signal Manage in the bridge piece of function, the basic input-output system BIOS of the bridge piece end and be embedded with control instruction Code, this method includes:
Obtain the control instruction for reading buffer status value in CPU;
According to the control instruction code and the control instruction and buffer status value in the CPU it Between mapping relations, read the current state value of control instruction correspondence register;
According to the current state value of control instruction correspondence register, the register corresponding device is controlled Function.
2. according to the method described in claim 1, it is characterised in that also include:
The access between register in the bridge piece and the CPU is determined by way of window configuration address Relation.
3. according to the method described in claim 1, it is characterised in that the bridge piece carries processor core, The mapping being configured with the bridge piece in the control instruction and the CPU between buffer status value is closed System.
4. the method according to claim any one of 1-3, it is characterised in that the control instruction is Control instruction for reading interrupt register state value in CPU, it is described according to control instruction correspondence The current state value of register, controls the function of the register corresponding device, including:
According to the current state value of control instruction correspondence register, the register corresponding device is judged In whether have interrupt event need processing;
When there is interrupt event to need processing, send processing and notify to the CPU, so that the CPU roots Notify to control the function of the interrupt register corresponding device according to processing.
5. method according to claim 4, it is characterised in that the corresponding equipment bag of the register Include network interface card and/or USB device.
6. the method according to claim any one of 1-3, it is characterised in that described according to the control The current state value of system instruction correspondence register, controls the function of the register corresponding device, including:
According to corresponding between buffer status value and the working condition theoretical value of the register corresponding device The current state value of relation and the register, runs the control instruction code and calculates the deposit The current operating state theoretical value of device corresponding device;
According to the current operating state theoretical value of the register corresponding device, control the register pair should The current operating state value of equipment makes it be adjusted to the current operating state theoretical value.
7. method according to claim 6, it is characterised in that be configured with described in the bridge piece Corresponding relation between buffer status value and the working condition theoretical value of the register corresponding device.
8. method according to claim 6, it is characterised in that the control instruction is for reading The control instruction of temperature status register state value in CPU is taken, the register corresponding device is CPU Fan.
9. a kind of bridge piece of control external equipment, it is characterised in that the bridge piece has independent signal Control instruction code is embedded with processing function, the basic input-output system BIOS of the bridge piece end, The bridge piece includes:
Acquisition module, for obtaining to read the control instruction of buffer status value in CPU;
Read module, for according in the control instruction code and the control instruction and the CPU Mapping relations between buffer status value, read the current state of the control instruction correspondence register Value;
Control module, for the current state value according to control instruction correspondence register, control is described The function of register corresponding device.
10. bridge piece according to claim 9, it is characterised in that also include:Determining module;
The determining module, for determining the bridge piece and the CPU by way of window configuration address Access relation between middle register.
11. bridge piece according to claim 9, it is characterised in that the bridge piece carries processor core, The mapping being configured with the bridge piece in the control instruction and the CPU between buffer status value is closed System.
12. the bridge piece according to claim any one of 9-11, it is characterised in that the control instruction For the control instruction for reading interrupt register state value in CPU, then the control module, including:
Judging unit, for the current state value according to control instruction correspondence register, judges described Whether there is interrupt event to need processing in register corresponding device;
Transmitting element, for when there is interrupt event to need processing, sending processing and notifying to the CPU, So that the CPU notifies to control the function of the interrupt register corresponding device according to processing.
13. bridge piece according to claim 12, it is characterised in that the corresponding equipment of the register Including network interface card and/or USB device.
14. the bridge piece according to claim any one of 9-11, it is characterised in that the control mould Block, including:Processing unit and control unit;
The processing unit, for the work shape according to buffer status value and the register corresponding device The current state value of corresponding relation and the register between state theoretical value, runs the control instruction Code calculates the current operating state theoretical value of the register corresponding device;
Described control unit, for the current operating state theoretical value according to the register corresponding device, Controlling the current operating state value of the register corresponding device makes it be adjusted to the current operating state reason By value.
15. bridge piece according to claim 14, it is characterised in that configured in the bridge piece State the corresponding relation between the working condition theoretical value of buffer status value and the register corresponding device.
16. bridge piece according to claim 14, it is characterised in that the control instruction be for The control instruction of temperature status register state value in CPU is read, the register corresponding device is CPU Fan.
17. a kind of system for controlling external equipment, it is characterised in that including:CPU, bridge piece, storage Device, input-output equipment and external equipment;The CPU is connected with the memory, the bridge piece difference It is connected with the CPU, the input-output equipment, the external equipment;
The bridge piece is the bridge piece of the control external equipment described in claim any one of 9-16.
CN201610126294.1A 2016-03-07 2016-03-07 Method, bridge piece and system for controlling external equipment Active CN107168895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610126294.1A CN107168895B (en) 2016-03-07 2016-03-07 Method, bridge piece and system for controlling external equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610126294.1A CN107168895B (en) 2016-03-07 2016-03-07 Method, bridge piece and system for controlling external equipment

Publications (2)

Publication Number Publication Date
CN107168895A true CN107168895A (en) 2017-09-15
CN107168895B CN107168895B (en) 2020-03-13

Family

ID=59848395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610126294.1A Active CN107168895B (en) 2016-03-07 2016-03-07 Method, bridge piece and system for controlling external equipment

Country Status (1)

Country Link
CN (1) CN107168895B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080189453A1 (en) * 2007-02-06 2008-08-07 Samsung Electronics Co., Ltd. Semiconductor integrated circuit device and method of operating the same
CN101872330A (en) * 2009-11-04 2010-10-27 杭州海康威视数字技术股份有限公司 Interrupt processing method of multi-PCIE (Peripheral Component Interface Express) equipment system
CN102236631A (en) * 2010-04-21 2011-11-09 英业达股份有限公司 Calculator system
CN104214121A (en) * 2013-05-31 2014-12-17 鸿富锦精密工业(深圳)有限公司 Fan revolution control system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080189453A1 (en) * 2007-02-06 2008-08-07 Samsung Electronics Co., Ltd. Semiconductor integrated circuit device and method of operating the same
CN101872330A (en) * 2009-11-04 2010-10-27 杭州海康威视数字技术股份有限公司 Interrupt processing method of multi-PCIE (Peripheral Component Interface Express) equipment system
CN102236631A (en) * 2010-04-21 2011-11-09 英业达股份有限公司 Calculator system
CN104214121A (en) * 2013-05-31 2014-12-17 鸿富锦精密工业(深圳)有限公司 Fan revolution control system and method

Also Published As

Publication number Publication date
CN107168895B (en) 2020-03-13

Similar Documents

Publication Publication Date Title
US6701272B2 (en) Method and apparatus for optimizing thermal solutions
US11868201B2 (en) Memory evaluation method and apparatus
EP2466418A1 (en) Throttling memory in a computer system
US10055366B2 (en) Method for data transmission and server for implementing the method
WO2021115076A1 (en) Motor function safety control method and device
CN110135711A (en) A kind of information management method and device
CN114151373B (en) Method, system, terminal and storage medium for regulating and controlling rotation speed of server fan
WO2023245902A1 (en) Current output device, method, apparatus and system, and medium
CN105045701A (en) Server system with high-precision PCIE equipment power consumption monitoring function
US10528109B2 (en) System and method for determining power loads
US11340690B2 (en) System and method of utilizing different power levels of at least one processor of an information handling system
CN111338873A (en) Method and system for verifying server heat dissipation strategy
CN104598365A (en) Server system with high-precision fan power consumption monitoring function
WO2021143134A1 (en) Bios strategy configuration method, apparatus and device, and storage medium
CN110286728A (en) Radiator monitoring method, device and electronic equipment
CN113468006A (en) Method and device for testing low power consumption time of solid state disk in and out, computer equipment and storage medium
CN107168895A (en) Control method, bridge piece and the system of external equipment
CN108953205A (en) Server fan rotating speed control system and method
CN109344025A (en) Cpu performance is from monitoring method and server
CN206805447U (en) One kind soar computer temperature detection circuit
CN110989814A (en) Server protection method, device and equipment
TW202011149A (en) Temperature control system for central processing unit and temperature control method thereof
CN116164424A (en) Water heater and combustion control method, system and storage medium thereof
CN221008258U (en) Thermal resistance test equipment and control device thereof
CN216956943U (en) Data computing system and server with built-in data computing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Patentee after: Loongson Zhongke Technology Co.,Ltd.

Address before: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Patentee before: LOONGSON TECHNOLOGY Corp.,Ltd.

CP01 Change in the name or title of a patent holder