CN103412836A - Hot plug processing method, device and system - Google Patents

Hot plug processing method, device and system Download PDF

Info

Publication number
CN103412836A
CN103412836A CN2013102595943A CN201310259594A CN103412836A CN 103412836 A CN103412836 A CN 103412836A CN 2013102595943 A CN2013102595943 A CN 2013102595943A CN 201310259594 A CN201310259594 A CN 201310259594A CN 103412836 A CN103412836 A CN 103412836A
Authority
CN
China
Prior art keywords
pci
controller
universal input
equipment
register
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
CN2013102595943A
Other languages
Chinese (zh)
Other versions
CN103412836B (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.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310259594.3A priority Critical patent/CN103412836B/en
Publication of CN103412836A publication Critical patent/CN103412836A/en
Application granted granted Critical
Publication of CN103412836B publication Critical patent/CN103412836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a hot plug processing method, device and system. The hot plug processing method includes the steps that a CPU generates register configuration information relevant to PCI-E equipment according to hot plug request messages; the CPU sends the register configuration information to a PCI-E switch chip; the CPU receives register configuration completion messages sent by the PCI-E switch chip, and generates hardware control signals of the PCI-E equipment; the CPU sends the hardware control signals to a general input/output controller; the CPU judges whether hot plug processing of the PCI-E equipment is completed according to register numerical value messages. According to the hot plug processing method, device and system, the CPU directly controls the PCI-E equipment to conduct hot plug, the problem of limitation of I2C addresses of I2C devices is solved, and more PCI-E equipment capable of being hot plugged is supported and expanded.

Description

Hot-swap processing method, device and system
Technical field
The embodiment of the present invention relates to the computer craze plugging technique, relates in particular to a kind of hot-swap processing method, device and system.
Background technology
High speed peripheral component interlinkage standard (Peripheral Component Interconnection Express, abbreviation PCI-E) hot plug of equipment, to improving the reliability of computer system, availability, maintainable (Reliability, Availability, Serviceability, be called for short RAS) etc. characteristic important effect is arranged.
Fig. 1 is hot plug technology scheme schematic diagram in prior art, and as shown in Figure 1, at present, the scheme that realizes the PCI-E equipment hot swap is that (Inter-Integrated Circuit Expander is called for short I to the IC bus extender 2C Expander) pass through I 2The C agreement is read and write the relevant register of the inner hot-swapping controller of PCI-E exchange chip, again by universal input/o controller (General Purpose Input Output, abbreviation GPIO) the PCI-E equipment PCI-E exchange chip articulated carries out hardware operation, to complete, the hot plug of PCI-E equipment is controlled.
In current implementation, I 2C Expander device is owing to being subjected to I 2The restriction of C address, cause the number of devices that the PCI-E exchange chip articulates also to be subject to corresponding restriction, makes and can't support more hot-swappable PCI-E equipment.By increasing I 2C Expander device can be realized expansion support, but I 2The problems such as the cost of C Expander device, size, power consumption all can be brought certain influence to the design of whole system.
Summary of the invention
The embodiment of the present invention provides a kind of hot-swap processing method, device and system, to solve the problem that can't support to expand more hot-swappable PCI-E equipment in existing hot plug technology.
First aspect, the embodiment of the present invention provide a kind of hot-swap processing method, comprising:
Processor CPU receives the hot plug solicited message of high speed peripheral component interlinkage Standard PC I-E equipment, and generates and the device-dependent register configuration information of described PCI-E according to described hot plug request message;
Described CPU sends to described PCI-E exchange chip by described register configuration information so that described PCI-E exchange chip according to described register configuration information in the PCI-E exchange chip, being configured with the device-dependent register of described PCI-E;
The register configuration that described CPU receives described PCI-E exchange chip transmission completes message, and generates the hardware controls signal of described PCI-E equipment;
Described CPU sends to universal input/o controller by described hardware controls signal, so that described universal input/o controller operates the device-dependent hardware of described PCI-E according to described hardware controls signal;
Described CPU obtains the device-dependent register value message with described PCI-E from described PCI-E exchange chip, and judges according to described register value message whether the hot plug processing of described PCI-E equipment completes.
In the possible implementation of the first of first aspect, described register configuration information comprises following at least a register-bit configuration information:
Register-bit configuration information in place, manual operation keep snap close register-bit configuration information, power light register-bit configuration information and hot plug indicator register position configuration information.
In the possible implementation of the second of first aspect, the hardware controls signal of the described PCI-E equipment of described generation comprises:
Generate reseting controling signal and the hardware driving control signal of described PCI-E equipment.
The implementation possible according to the second of first aspect, in the third possible implementation, described hardware driving control signal comprises:
Power driving control signal and clock drive control signal.
The third possible implementation according to first aspect, in the 4th kind of possible implementation, described CPU sends to universal input/o controller by described hardware controls signal, so that described universal input/o controller operates the device-dependent hardware of described PCI-E according to described hardware controls signal, comprising:
When recognizing the hot plug solicited message for heat insertion solicited message, described CPU sends to universal input/o controller by described power driving control signal, so that described universal input/o controller enables power module corresponding to described PCI-E equipment according to the power driving control signal;
Described CPU sends to universal input/o controller by described clock drive control signal, so that described universal input/o controller enables clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Described CPU sends to universal input/o controller by described reseting controling signal, so that, after described universal input/o controller wait predetermined time delay, stop sending the reset signal of described PCI-E equipment.
The third possible implementation according to first aspect, in the 5th kind of possible implementation, described CPU sends to universal input/o controller by described hardware controls signal, so that described universal input/o controller operates the device-dependent hardware of described PCI-E according to described hardware controls signal, comprising:
When recognizing the hot plug solicited message, be hot drawing while going out solicited message, described CPU sends to universal input/o controller by described reseting controling signal, so that described universal input/o controller sends reset signal to described PCI-E equipment;
Described CPU sends to universal input/o controller by described clock drive control signal, so that described universal input/o controller is closed clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Described CPU sends to universal input/o controller by described power driving control signal, so that described universal input/o controller is closed power module corresponding to described PCI-E equipment according to the power driving control signal.
In the 6th kind of possible implementation of first aspect, also comprise:
Described CPU, according to the state value with the device-dependent register of described PCI-E, controls to show the duty of described PCI-E equipment to described pilot lamp.
In the 7th kind of possible implementation of first aspect, use and comprise that at least following a kind of hardware communication protocols communicates between described universal input/o controller and PCI-E equipment and between described universal input/o controller and described CPU:
Ethernet protocol, PCI-E agreement and I 2The C agreement.
Second aspect, the embodiment of the present invention provide a kind of hot plug treating apparatus, comprising:
The first generation module, be used to receiving the hot plug solicited message of high speed peripheral component interlinkage Standard PC I-E equipment, and generate and the device-dependent register configuration information of described PCI-E according to described hot plug request message;
The first sending module, for described register configuration information is sent to described PCI-E exchange chip so that described PCI-E exchange chip according to described register configuration information in the PCI-E exchange chip, being configured with the device-dependent register of described PCI-E;
The second generation module, complete message be used to the register configuration that receives described PCI-E exchange chip transmission, and generate the hardware controls signal of described PCI-E equipment;
The second sending module, for described hardware controls signal is sent to universal input/o controller, so that described universal input/o controller operates the device-dependent hardware of described PCI-E according to described hardware controls signal;
Judge module, for from described PCI-E exchange chip, obtaining the device-dependent register value message with described PCI-E, and judge according to described register value message whether the hot plug processing of described PCI-E equipment completes.
In the possible implementation of the first of second aspect, described register configuration information comprises following at least a register-bit configuration information:
Register-bit configuration information in place, manual operation keep snap close register-bit configuration information, power light register-bit configuration information and hot plug indicator register position configuration information.
In the possible implementation of the second of second aspect, described the second generation module, specifically for:
Generate reseting controling signal and the hardware driving control signal of described PCI-E equipment.
The implementation possible according to the second of second aspect, in the third possible implementation, described hardware driving control signal comprises:
Power driving control signal and clock drive control signal.
According to the third possible implementation of second aspect, in the 4th kind of possible implementation, described the second sending module, specifically for:
When recognizing the hot plug solicited message for heat insertion solicited message, described power driving control signal is sent to universal input/o controller, so that described universal input/o controller enables power module corresponding to described PCI-E equipment according to the power driving control signal;
Described clock drive control signal is sent to universal input/o controller, so that described universal input/o controller enables clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Described reseting controling signal is sent to universal input/o controller, so that, after described universal input/o controller wait predetermined time delay, stop sending the reset signal of described PCI-E equipment.
According to the third possible implementation of second aspect, in the 5th kind of possible implementation, described the second sending module, specifically for:
When recognizing the hot plug solicited message, be hot drawing while going out solicited message, described reseting controling signal sent to universal input/o controller, so that described universal input/o controller sends reset signal to described PCI-E equipment;
Described clock drive control signal is sent to universal input/o controller, so that described universal input/o controller is closed clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Described power driving control signal is sent to universal input/o controller, so that described universal input/o controller is closed power module corresponding to described PCI-E equipment according to the power driving control signal.
In the 6th kind of possible implementation of second aspect, also comprise:
Control module, for the state value according to the device-dependent register of described PCI-E, control to show the duty of described PCI-E equipment to described pilot lamp.
In the 7th kind of possible implementation of second aspect, use and comprise that at least following a kind of hardware communication protocols communicates between described universal input/o controller and PCI-E equipment and between the processor CPU of described universal input/o controller and configuration hot plug treating apparatus:
Ethernet protocol, PCI-E agreement and I 2The C agreement.
The third aspect, the invention provides a kind of hot plug disposal system, comprising: processor CPU, and high speed peripheral component interlinkage Standard PC I-E exchange chip, universal input/o controller and PCI-E equipment, wherein:
Described CPU is connected communication by the PCI-E agreement with described PCI-E exchange chip;
Under described PCI-E exchange chip, articulate PCI-E equipment;
Described CPU is connected with described universal input/o controller by hardware communication protocols;
Described universal input/o controller is communicated by letter with described PCI-E equipment connection by hardware communication protocols;
In described CPU, dispose the hot plug treating apparatus.
The hot-swap processing method that the embodiment of the present invention provides, device and system, replace Hardware I by the software control with in CPU 2C Expander device is processed the PCI-E equipment hot swap, makes and has avoided I 2The I of C Expander device 2The problem that the C address is limited, realize supporting the more hot-swappable PCI-E equipment of expansion, and save cost and be conducive to veneer integrated.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is hot plug technology scheme schematic diagram in prior art;
Fig. 2 is the process flow diagram of hot-swap processing method embodiment mono-of the present invention;
Fig. 3 is the process flow diagram of hot-swap processing method embodiment bis-of the present invention;
Fig. 4 is the process flow diagram of hot-swap processing method embodiment tri-of the present invention;
Fig. 5 is the structural representation of hot plug treating apparatus embodiment mono-of the present invention;
Fig. 6 is the structural representation of hot plug treating apparatus embodiment bis-of the present invention;
Fig. 7 is the configuration diagram of hot plug disposal system embodiment mono-of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Fig. 2 is the process flow diagram of hot-swap processing method embodiment mono-of the present invention, and the method for the present embodiment is applicable to carry out in the PCI-E system processing of hot plug.The PCI-E system generally comprises processor (CPU), one or more PCI-E exchange chips, universal input/o controller and PCI-E equipment.Each PCI-E exchange chip is connected to CPU, carries out exchanges data under CPU controls.Various PCI-E equipment is hot-swappable works in the interface of PCI-E exchange chip.The method is carried out by the hot plug treating apparatus, and this device is usually realized in the mode of software, is integrated in CPU.As shown in Figure 2, the method for the present embodiment comprises the steps:
Step 200, CPU receive the hot plug solicited message of PCI-E equipment, and generate and the device-dependent register configuration information of described PCI-E according to described hot plug request message;
In this step, by software or hardware circuit to CPU trigger equipment hot plug request.For example, when the PCI-E exchange chip has recognized the PCI-E apparatus connecting at its interface, or while from its interface, extracting, namely obtain relevant information, produce the hot plug solicited message and send to CPU.PCI-E equipment often carrys out work by the register in the PCI-E exchange chip, can read and write to carry out the parameter configuration in equipment to register.With the device-dependent register of described PCI-E, comprise following at least a register-bit configuration information:
Register-bit configuration information in place, manual operation keep snap close register-bit configuration information, power light register-bit configuration information and hot plug indicator register position configuration information.
Step 201, described CPU send to described PCI-E exchange chip by described register configuration information so that described PCI-E exchange chip according to described register configuration information in the PCI-E exchange chip, being configured with the device-dependent register of described PCI-E;
In this step, CPU is by the PCI-E link between CPU and PCI-E exchange chip, register to the PCI-E exchange chip carries out relevant configuration, complete in the PCI-E exchange chip, relate to as in place, MRL, hot plug indication, power light etc. with as described in the configuration of the device-dependent register-bit of PCI-E.
The register configuration that step 202, described CPU receive described PCI-E exchange chip transmission completes message, and generates the hardware controls signal of described PCI-E equipment;
After register configuration completed, the PCI-E exchange chip can return and configure message to CPU.Particularly, in this step, the hardware controls signal of the described PCI-E equipment of described generation can comprise: the reseting controling signal and the hardware driving control signal that generate described PCI-E equipment.
Further, described hardware driving control signal can comprise: power driving control signal and clock drive control signal.
Step 203, described CPU send to universal input/o controller by described hardware controls signal, so that described universal input/o controller operates with the device-dependent hardware of described PCI-E according to described hardware controls signal pair;
Universal input/o controller (GPIO) is by high-speed hardware communication protocol, as I 2C, PCI-E, Ethernet etc. are connected between CPU and PCI-E equipment.According to the hardware controls signal received, operation and the device-dependent hardware of described PCI-E, such as power supply, the hardware modules such as clock.
Step 204, described CPU obtain the device-dependent register value message with described PCI-E from described PCI-E exchange chip, and judge according to described register value message whether the hot plug processing of described PCI-E equipment completes.
In this step, CPU reads the Link State register relevant to PCI-E of PCI-E exchange chip inside by the PCI-E link, thereby judges whether the hot plug operations of PCI-E equipment completes.
In prior art, each PCI-E hot-plug equipment need to coordinate an I 2C Expander device, I 2C Expander device passes through I 2The C agreement is read and write just and can be completed the PCI-E hot plug the relevant register of the inner hot-swapping controller of PCI-E exchange chip, and the present embodiment replaces Hardware I by the software control with in CPU 2C Expander device is processed the PCI-E equipment hot swap, makes and has got around I 2The I of C Expander device 2The problem that the C address is limited, realize supporting the more hot-swappable PCI-E equipment of expansion, and save cost and be conducive to veneer integrated.
Further, on the basis of the present embodiment, between GPIO and PCI-E equipment and between GPIO and CPU, can use and comprise that at least following a kind of hardware communication protocols communicates: Ethernet protocol, PCI-E agreement and I 2The C agreement.When the interface of GPIO controller is used high-speed interface, can further improve the efficiency of equipment hot swap.
Fig. 3 is the process flow diagram of hot-swap processing method embodiment bis-of the present invention, and the present embodiment, on the basis of embodiment mono-, is inserted as example with PCI-E equipment heat and describes, and the method for the present embodiment comprises the steps:
Step 300, CPU receive the heat of PCI-E equipment and insert solicited message, and insert request message generation and the device-dependent register configuration information of described PCI-E according to described heat;
Step 301, described CPU send to described PCI-E exchange chip by described register configuration information so that described PCI-E exchange chip according to described register configuration information in the PCI-E exchange chip, being configured with the device-dependent register of described PCI-E;
The register configuration that step 302, described CPU receive described PCI-E exchange chip transmission completes message, and generates the hardware controls signal of described PCI-E equipment;
Step 303, described CPU send to universal input/o controller by described power driving control signal, so that described universal input/o controller enables power module corresponding to described PCI-E equipment according to the power driving control signal;
Step 304, described CPU send to universal input/o controller by described clock drive control signal, so that described universal input/o controller enables clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Step 305, described CPU send to universal input/o controller by described reseting controling signal, so that, after described universal input/o controller wait predetermined time delay, stop sending the reset signal of described PCI-E equipment;
In this step, after loading clock, according to PCI-E agreement regulation, need to wait for the delay of the schedule time, after the 100ms constant time lag, CPU stops the reset signal of transmitting apparatus by the GPIO controller.
Step 306, described CPU obtain the device-dependent register value message with described PCI-E from described PCI-E exchange chip, and judge according to described register value message whether the hot insert handling of described PCI-E equipment completes.
The present embodiment, control PCI-E exchange chip and GPIO controller by CPU, realizes the hot update of PCI-E, walks around I 2The control of C extender, thus solve because of I 2The limited problem that can't expand more PCI-E equipment caused in C address.
On the basis of the present embodiment, further, also comprise: described CPU, according to the state value with the device-dependent register of described PCI-E, controls to show the duty of described PCI-E equipment to described pilot lamp.Such as, after the step 301 of the present embodiment and after step 306, can control according to the state value of register the state of pilot lamp.Whether like this, the user can judge the duty of current PCI-E equipment according to the state of pilot lamp, such as whether power supply closes, reset and complete etc.
Fig. 4 is the process flow diagram of hot-swap processing method embodiment tri-of the present invention, and the present embodiment be take the hot drawing of PCI-E equipment and gone out as example to describe on the basis of embodiment mono-, and the method for the present embodiment comprises the steps:
The hot drawing that step 400, CPU receive PCI-E equipment goes out solicited message, and goes out request message generation and the device-dependent register configuration information of described PCI-E according to described hot drawing;
Step 401, described CPU send to described PCI-E exchange chip by described register configuration information so that described PCI-E exchange chip according to described register configuration information in the PCI-E exchange chip, being configured with the device-dependent register of described PCI-E;
The register configuration that step 402, described CPU receive described PCI-E exchange chip transmission completes message, and generates the hardware controls signal of described PCI-E equipment;
Step 403, described CPU send to universal input/o controller by described reseting controling signal, so that described universal input/o controller sends reset signal to described PCI-E equipment;
Step 404, described CPU send to universal input/o controller by described clock drive control signal, so that described universal input/o controller is closed clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Step 405, described power driving control signal is sent to universal input/o controller, so that described universal input/o controller is closed power module corresponding to described PCI-E equipment according to the power driving control signal;
Step 406, described CPU obtain the device-dependent register value message with described PCI-E from described PCI-E exchange chip, and judge that according to described register value message the hot drawing of described PCI-E equipment goes out processing and whether completes.
The present embodiment, control PCI-E exchange chip and GPIO controller by CPU, realizes that the hot drawing of PCI-E goes out operation, walks around I 2The control of C extender, thus solve because of I 2The limited problem that can't expand more PCI-E equipment caused in C address.
Fig. 5 is the structural representation of hot plug treating apparatus embodiment mono-of the present invention, and as shown in Figure 5, the device of the present embodiment comprises:
The first generation module 51, be used to receiving the hot plug solicited message of PCI-E equipment, and generate and the device-dependent register configuration information of described PCI-E according to described hot plug request message;
The first sending module 52, for described register configuration information is sent to described PCI-E exchange chip so that described PCI-E exchange chip according to described register configuration information in the PCI-E exchange chip, being configured with the device-dependent register of described PCI-E;
The second generation module 53, complete message be used to the register configuration that receives described PCI-E exchange chip transmission, and generate the hardware controls signal of described PCI-E equipment;
The second sending module 54, for described hardware controls signal is sent to universal input/o controller, so that described universal input/o controller operates with the device-dependent hardware of described PCI-E according to described hardware controls signal pair;
Judge module 55, for from described PCI-E exchange chip, obtaining the device-dependent register value message with described PCI-E, and judge according to described register value message whether the hot plug processing of described PCI-E equipment completes.
The device of the present embodiment, be used to carrying out the technical scheme of embodiment of the method shown in Figure 2, its realize principle and technique effect similar, repeat no more herein.
Fig. 6 is the structural representation of hot plug treating apparatus embodiment bis-of the present invention, and the present embodiment, on the basis of a upper embodiment, increases control module.As shown in Figure 6, the device of the present embodiment comprises:
The second generation module 53, specifically for: generate reseting controling signal and the hardware driving control signal of described PCI-E equipment, wherein said hardware driving control signal comprises: power driving control signal and clock drive control signal;
The second sending module, specifically for: when recognizing the hot plug solicited message and insert solicited message for heat, described power driving control signal is sent to universal input/o controller, so that described universal input/o controller enables power module corresponding to described PCI-E equipment according to the power driving control signal; Described clock drive control signal is sent to universal input/o controller, so that described universal input/o controller enables clock module corresponding to described PCI-E equipment according to the clock drive control signal; Described reseting controling signal is sent to universal input/o controller, so that, after described universal input/o controller wait predetermined time delay, stop sending the reset signal of described PCI-E equipment; And,
The second sending module, specifically for: when recognizing the hot plug solicited message, be that hot drawing is while going out solicited message, described reseting controling signal is sent to universal input/o controller, so that described universal input/o controller sends reset signal to described PCI-E equipment; Described clock drive control signal is sent to universal input/o controller, so that described universal input/o controller is closed clock module corresponding to described PCI-E equipment according to the clock drive control signal; Described power driving control signal is sent to universal input/o controller, so that described universal input/o controller is closed power module corresponding to described PCI-E equipment according to the power driving control signal;
Control module 61, be connected with the second generation module 53 and judge module 55, for the state value according to the device-dependent register of described PCI-E, described pilot lamp controlled to show to the duty of described PCI-E equipment.
In the present embodiment, described register configuration information comprises following at least a register-bit configuration information:
Register-bit configuration information in place, manual operation keep snap close register-bit configuration information, power light register-bit configuration information and hot plug indicator register position configuration information.
Between described universal input/o controller and PCI-E equipment and between the CPU of described universal input/o controller and configuration hot plug treating apparatus, use and comprise that at least following a kind of hardware communication protocols communicates: Ethernet protocol, PCI-E agreement and I 2The C agreement.
The device of the present embodiment, for the technical scheme of execution graph 3 or embodiment of the method shown in Figure 4, its realize principle and technique effect similar, repeat no more herein.
Fig. 7 is the configuration diagram of hot plug disposal system embodiment mono-of the present invention.As shown in Figure 7, the system of the present embodiment comprises:
CPU71, PCI-E exchange chip 72, universal input/o controller 73 and PCI-E equipment 74, wherein:
Described CPU71 is connected communication by the PCI-E agreement with described PCI-E exchange chip 72;
Described PCI-E exchange chip articulates PCI-E equipment 74 72 times;
Described CPU71 is connected with described universal input/o controller 73 by hardware communication protocols;
Described universal input/o controller 73 is connected communication by hardware communication protocols with described PCI-E equipment 74;
In described CPU71, dispose the described hot plug treating apparatus 70 of above-mentioned any one embodiment.
Signal type can be polytype signal between universal input/o controller described in the present embodiment and PCI-E equipment and between described universal input/o controller and described CPU, or even high speed signal, as the PCI-E signal, ethernet signal etc., and not only be confined to I 2C, so, hot plug efficiency that just can equipment will improve greatly.
The PCI-E hot-swap system that the present embodiment provides is by the in-band management signal of the PCI-E between CPU and PCI-E exchange chip and PCI-E exchange chip and PCI-E equipment, the coherent signal that hot plug need to be controlled is collected, then to the out-of-band-signal between universal input/o controller and universal input/o controller and PCI-E, PCI-E equipment is carried out to relevant hardware level operation by CPU.Realized getting around I 2The operation of C extender to PCI-E equipment, thus solve because of I 2The address that the C extender causes is limited, can't expand the problem of more PCI-E equipment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the hardware that programmed instruction is correlated with.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to aforementioned each embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme that aforementioned each embodiment puts down in writing, or some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.

Claims (17)

1. a hot-swap processing method, is characterized in that, comprising:
Processor CPU receives the hot plug solicited message of high speed peripheral component interlinkage Standard PC I-E equipment, and generates and the device-dependent register configuration information of described PCI-E according to described hot plug request message;
Described CPU sends to described PCI-E exchange chip by described register configuration information so that described PCI-E exchange chip according to described register configuration information in the PCI-E exchange chip, being configured with the device-dependent register of described PCI-E;
The register configuration that described CPU receives described PCI-E exchange chip transmission completes message, and generates the hardware controls signal of described PCI-E equipment;
Described CPU sends to universal input/o controller by described hardware controls signal, so that described universal input/o controller operates with the device-dependent hardware of described PCI-E according to described hardware controls signal pair;
Described CPU obtains the device-dependent register value message with described PCI-E from described PCI-E exchange chip, and judges according to described register value message whether the hot plug processing of described PCI-E equipment completes.
2. method according to claim 1, is characterized in that, described register configuration information comprises following at least a register-bit configuration information:
Register-bit configuration information in place, manual operation keep snap close register-bit configuration information, power light register-bit configuration information and hot plug indicator register position configuration information.
3. method according to claim 1, is characterized in that, described CPU generates the hardware controls signal of described PCI-E equipment, comprising:
CPU generates reseting controling signal and the hardware driving control signal of described PCI-E equipment.
4. method according to claim 3, is characterized in that, described hardware driving control signal comprises:
Power driving control signal and clock drive control signal.
5. method according to claim 4, it is characterized in that, described CPU sends to universal input/o controller by described hardware controls signal, so that described universal input/o controller operates with the device-dependent hardware of described PCI-E according to described hardware controls signal pair, comprising:
When recognizing the hot plug solicited message for heat insertion solicited message, described CPU sends to universal input/o controller by described power driving control signal, so that described universal input/o controller enables power module corresponding to described PCI-E equipment according to the power driving control signal;
Described CPU sends to universal input/o controller by described clock drive control signal, so that described universal input/o controller enables clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Described CPU sends to universal input/o controller by described reseting controling signal, so that, after described universal input/o controller wait predetermined time delay, stop sending the reset signal of described PCI-E equipment.
6. method according to claim 4, it is characterized in that, described CPU sends to universal input/o controller by described hardware controls signal, so that described universal input/o controller operates with the device-dependent hardware of described PCI-E according to described hardware controls signal pair, comprising:
When recognizing the hot plug solicited message, be hot drawing while going out solicited message, described CPU sends to universal input/o controller by described reseting controling signal, so that described universal input/o controller sends reset signal to described PCI-E equipment.
Described CPU sends to universal input/o controller by described clock drive control signal, so that described universal input/o controller is closed clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Described CPU sends to universal input/o controller by described power driving control signal, so that described universal input/o controller is closed power module corresponding to described PCI-E equipment according to the power driving control signal.
7. method according to claim 1, is characterized in that, also comprises:
Described CPU, according to the state value with the device-dependent register of described PCI-E, controls to show the duty of described PCI-E equipment to described pilot lamp.
8. method according to claim 1, is characterized in that, uses and comprise that at least following a kind of hardware communication protocols communicates between described universal input/o controller and PCI-E equipment and between described universal input/o controller and described CPU:
Ethernet protocol, PCI-E agreement and I 2The C agreement.
9. a hot plug treating apparatus, is characterized in that, comprising:
The first generation module, be used to receiving the hot plug solicited message of high speed peripheral component interlinkage Standard PC I-E equipment, and generate and the device-dependent register configuration information of described PCI-E according to described hot plug request message;
The first sending module, for described register configuration information is sent to described PCI-E exchange chip so that described PCI-E exchange chip according to described register configuration information in the PCI-E exchange chip, being configured with the device-dependent register of described PCI-E;
The second generation module, complete message be used to the register configuration that receives described PCI-E exchange chip transmission, and generate the hardware controls signal of described PCI-E equipment;
The second sending module, for described hardware controls signal is sent to universal input/o controller, so that described universal input/o controller operates with the device-dependent hardware of described PCI-E according to described hardware controls signal pair;
Judge module, for from described PCI-E exchange chip, obtaining the device-dependent register value message with described PCI-E, and judge according to described register value message whether the hot plug processing of described PCI-E equipment completes.
10. device according to claim 9, is characterized in that, described register configuration information comprises following at least a register-bit configuration information:
Register-bit configuration information in place, manual operation keep snap close register-bit configuration information, power light register-bit configuration information and hot plug indicator register position configuration information.
11. device according to claim 9, is characterized in that, described the second generation module, specifically for:
Generate reseting controling signal and the hardware driving control signal of described PCI-E equipment.
12. device according to claim 11, is characterized in that, described hardware driving control signal comprises:
Power driving control signal and clock drive control signal.
13. device according to claim 12, is characterized in that, described the second sending module, specifically for:
When recognizing the hot plug solicited message for heat insertion solicited message, described power driving control signal is sent to universal input/o controller, so that described universal input/o controller enables power module corresponding to described PCI-E equipment according to the power driving control signal;
Described clock drive control signal is sent to universal input/o controller, so that described universal input/o controller enables clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Described reseting controling signal is sent to universal input/o controller, so that, after described universal input/o controller wait predetermined time delay, stop sending the reset signal of described PCI-E equipment.
14. device according to claim 12, is characterized in that, described the second sending module, specifically for:
When recognizing the hot plug solicited message, be hot drawing while going out solicited message, described reseting controling signal sent to universal input/o controller, so that described universal input/o controller sends reset signal to described PCI-E equipment;
Described clock drive control signal is sent to universal input/o controller, so that described universal input/o controller is closed clock module corresponding to described PCI-E equipment according to the clock drive control signal;
Described power driving control signal is sent to universal input/o controller, so that described universal input/o controller is closed power module corresponding to described PCI-E equipment according to the power driving control signal.
15. device according to claim 9, is characterized in that, also comprises:
Control module, for the state value according to the device-dependent register of described PCI-E, control to show the duty of described PCI-E equipment to described pilot lamp.
16. device according to claim 9, it is characterized in that, use and comprise that at least following a kind of communication protocol communicates between described universal input/o controller and PCI-E equipment and between the processor CPU of described universal input/o controller and configuration hot plug treating apparatus:
Ethernet protocol, PCI-E agreement and I 2The C agreement.
17. a hot plug disposal system comprises: processor CPU, high speed peripheral component interlinkage Standard PC I-E exchange chip, universal input/o controller and PCI-E equipment is characterized in that:
Described CPU is connected communication by the PCI-E agreement with described PCI-E exchange chip;
Under described PCI-E exchange chip, articulate PCI-E equipment;
Described CPU is connected with described universal input/o controller by hardware communication protocols;
Described universal input/o controller is communicated by letter with described PCI-E equipment connection by hardware communication protocols;
In described CPU, dispose described hot plug treating apparatus as arbitrary as claim 9-16.
CN201310259594.3A 2013-06-26 2013-06-26 Hot plug processing method, device and system Active CN103412836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310259594.3A CN103412836B (en) 2013-06-26 2013-06-26 Hot plug processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310259594.3A CN103412836B (en) 2013-06-26 2013-06-26 Hot plug processing method, device and system

Publications (2)

Publication Number Publication Date
CN103412836A true CN103412836A (en) 2013-11-27
CN103412836B CN103412836B (en) 2016-08-10

Family

ID=49605849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310259594.3A Active CN103412836B (en) 2013-06-26 2013-06-26 Hot plug processing method, device and system

Country Status (1)

Country Link
CN (1) CN103412836B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700975A (en) * 2016-01-08 2016-06-22 华为技术有限公司 Heat removing method and device as well as heat adding method and device for CPUs
CN106708596A (en) * 2015-11-13 2017-05-24 华为技术有限公司 Input/output virtual resource adjustment method and processor
CN107357754A (en) * 2017-07-19 2017-11-17 郑州云海信息技术有限公司 Method for electrically under a kind of PCIE device hot plug of optimization
CN108701109A (en) * 2016-04-01 2018-10-23 英特尔公司 The methods, devices and systems of Plugin Mechanism for computer expansion bus
CN109308236A (en) * 2018-09-17 2019-02-05 郑州云海信息技术有限公司 A kind of warm connection function test method, device and relevant device
CN110955624A (en) * 2018-09-26 2020-04-03 阿里巴巴集团控股有限公司 Hot plug method, device and system of PCIE (peripheral component interface express) equipment
CN114661648A (en) * 2022-04-01 2022-06-24 北京和利时系统工程有限公司 Hot plug method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040003159A1 (en) * 2002-06-28 2004-01-01 Kumar Mohan J. Method and apparatus for in-band signaling of runtime general purpose events
CN1936875A (en) * 2005-09-23 2007-03-28 英业达股份有限公司 Hot plug-pull control system and method
CN101082894A (en) * 2006-05-30 2007-12-05 英业达股份有限公司 Hot-swap system of high speed perimeter component jointing interface device and method thereof
US20080040526A1 (en) * 2006-08-11 2008-02-14 Nec Corporation Processing apparatus and method of modifying system configuration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040003159A1 (en) * 2002-06-28 2004-01-01 Kumar Mohan J. Method and apparatus for in-band signaling of runtime general purpose events
CN1936875A (en) * 2005-09-23 2007-03-28 英业达股份有限公司 Hot plug-pull control system and method
CN101082894A (en) * 2006-05-30 2007-12-05 英业达股份有限公司 Hot-swap system of high speed perimeter component jointing interface device and method thereof
US20080040526A1 (en) * 2006-08-11 2008-02-14 Nec Corporation Processing apparatus and method of modifying system configuration

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708596A (en) * 2015-11-13 2017-05-24 华为技术有限公司 Input/output virtual resource adjustment method and processor
CN106708596B (en) * 2015-11-13 2020-02-14 华为技术有限公司 Method for adjusting input and output virtualized resources and processor
CN105700975A (en) * 2016-01-08 2016-06-22 华为技术有限公司 Heat removing method and device as well as heat adding method and device for CPUs
CN105700975B (en) * 2016-01-08 2019-05-24 华为技术有限公司 A kind of central processor CPU heat removes, hot adding method and device
US10846186B2 (en) 2016-01-08 2020-11-24 Huawei Technologies Co., Ltd. Central processing unit CPU hot-remove method and apparatus, and central processing unit CPU hot-add method and apparatus
CN108701109A (en) * 2016-04-01 2018-10-23 英特尔公司 The methods, devices and systems of Plugin Mechanism for computer expansion bus
CN107357754A (en) * 2017-07-19 2017-11-17 郑州云海信息技术有限公司 Method for electrically under a kind of PCIE device hot plug of optimization
CN109308236A (en) * 2018-09-17 2019-02-05 郑州云海信息技术有限公司 A kind of warm connection function test method, device and relevant device
CN110955624A (en) * 2018-09-26 2020-04-03 阿里巴巴集团控股有限公司 Hot plug method, device and system of PCIE (peripheral component interface express) equipment
CN110955624B (en) * 2018-09-26 2023-08-15 阿里巴巴集团控股有限公司 Hot plug method, device and system of PCIE equipment
CN114661648A (en) * 2022-04-01 2022-06-24 北京和利时系统工程有限公司 Hot plug method and system

Also Published As

Publication number Publication date
CN103412836B (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN103412836A (en) Hot plug processing method, device and system
CN107423169B (en) Method and system for testing high speed peripheral device interconnection equipment
US8898358B2 (en) Multi-protocol communication on an I2C bus
CN105354070B (en) A method of passing through I2C updating apparatus firmware
CN103645975B (en) A kind of method of abnormal restoring and serial bus transmission device
CN107480086B (en) Terminal and control method thereof
CN102478800A (en) System and method for monitoring electric power sequential signals
CN105955911B (en) Hot plug control circuit and control method thereof
CN100383544C (en) Method and apparatus for real-time monitoring level signal
US9779047B2 (en) Universal intelligent platform management interface (IPMI) host to baseboard management controller (BMC) communication for non-x86 and legacy free systems
CN102446149A (en) Processing method and system capable of achieving hot plug of compact PCI product
CN110619914A (en) Mass production method for solid state disk with PCIe interface mass production device
CN111213099B (en) Motion control card, motion control system, robot system and numerical control machine tool
CN102073602A (en) Computer system, connection control device as well as connecting and disconnecting method
CN103067617A (en) Test terminal driving method and apparatus thereof, and terminal test method and system thereof
CN102147739B (en) Multi-mainboard server system and network-driving method thereof
CN106126465A (en) A kind of data transmission method and device
CN111756858A (en) Remote development processing system, method and device of embedded equipment
CN103106113A (en) Interrupt event processing method and processing equipment
CN103412838B (en) A kind of expanding system, communication means, address configuration method, equipment and device
CN111158731A (en) CPLD-based network card firmware upgrading device and method
CN102884515B (en) Serial ports re-orientation processes method, apparatus and system
TWI474679B (en) Bridge and operation method thereof
CN102445981B (en) Data transmission system and data transmission method
US9563592B2 (en) Remote terminal device and method of operating the same

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
TR01 Transfer of patent right

Effective date of registration: 20211221

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right