CN109947686A - A kind of PCIE system, hot-swappable processing method and relevant apparatus - Google Patents
A kind of PCIE system, hot-swappable processing method and relevant apparatus Download PDFInfo
- Publication number
- CN109947686A CN109947686A CN201910222140.6A CN201910222140A CN109947686A CN 109947686 A CN109947686 A CN 109947686A CN 201910222140 A CN201910222140 A CN 201910222140A CN 109947686 A CN109947686 A CN 109947686A
- Authority
- CN
- China
- Prior art keywords
- pcie
- place
- hot
- state
- pcie device
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 25
- 238000001514 detection method Methods 0.000 claims abstract description 5
- 230000009471 action Effects 0.000 claims description 49
- 238000000034 method Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 10
- 238000003780 insertion Methods 0.000 claims description 9
- 230000037431 insertion Effects 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 21
- 238000012423 maintenance Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 230000006399 behavior Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
This application discloses a kind of PCIE systems, comprising: PCIE device;The PCIE controller being connect with PCIE device;It is connect with PCIE device, obtains the PCIE of state in place in bit detector for carrying out detection in place to PCIE device;It is connect with PCIE device, for generating the PCIE interrupt flip-flop of plug interrupt signal when PCIE device is inserted into or is pulled out;It is connect with PCIE controller, PCIE in bit detector and PCIE interrupt flip-flop, for executing the processor of hot-swappable operation according to state in place and plug interrupt signal.By being connected to bit detector and interrupt flip-flop between processor and PCIE device, processor is set to monitor the hot-swappable movement of PCIE device, and then realize hot drawing plugging function to PCIE device.Disclosed herein as well is a kind of hot-swappable processing method, computer equipment and computer readable storage mediums, have the above beneficial effect.
Description
Technical field
This application involves field of computer technology, in particular to a kind of PCIE system, hot-swappable processing method, computer are set
Standby and computer readable storage medium.
Background technique
As the technology of storage equipment continues to develop, PCIE (peripheral component interconnect
Express high speed serialization computer expansion bus standard) interface IO (Input/Output input/output) equipment be widely applied
In computer equipment.Since the PCIE device of use is carried out data transmission by PCIE interface, data transmission can be improved
Speed and efficiency.With the application scenarios of PCIE device and being continuously increased for the application frequency, PCIE device needs support hot drawing
Plugging function.And the warm connection function of PCIE device needs to meet two conditions, PCIE device supports hot plug and PCIE controller
Support hot plug.
Currently, the most of PCIE devices used have all supported hot plug, but since cost and equipment performance etc. are asked
Topic, part PCIE controller do not support PCIE device hot plug, such as the processor of open power also.Cause to control using these
The system of device processed cannot support the function of I/O device hot plug, make troubles the operation and maintenance of system.
It therefore, is those skilled in the art pass how to not supporting hot-swappable PCIE controller to realize hot drawing plugging function
The Important Problems of note.
Summary of the invention
The purpose of the application is to provide a kind of PCIE system, hot-swappable processing method, computer equipment and computer can
Storage medium is read, by connecting PCIE between processor and PCIE device in bit detector and PCIE interrupt flip-flop, makes to locate
Reason device can monitor the hot-swappable movement of PCIE device, and then execute hot-swappable operation, realize to the hot-swappable of PCIE device
Function.
In order to solve the above technical problems, the application provides a kind of PCIE system, comprising:
PCIE device;It is connect with the PCIE device, the PCIE controller for being controlled the PCIE device;
It connect with the PCIE device, exists for carrying out the PCIE that detection in place obtains state in place to the PCIE device
Bit detector;
It is connect with the PCIE device, for generating plug interrupt signal when the PCIE device is inserted into or is pulled out
PCIE interrupt flip-flop;
It is connect with the PCIE controller, the PCIE in bit detector and the PCIE interrupt flip-flop, is used for root
The processor of hot-swappable operation is executed according to the state in place and the plug interrupt signal.
Optionally, the PCIE is specifically used for carrying out state judgement in place to the PCIE device in bit detector, obtains
The state in place, and record the state in place.
Optionally, the PCIE interrupt flip-flop is specifically used for being monitored the PCIE device, when the PCIE is set
When for insertion or pulling out, the plug interrupt signal is generated, and send the plug interrupt signal to the processor.
Optionally, the processor is specifically used for when in the plug from the PCIE interrupt flip-flop received
When break signal, judge whether current action is insert action according to the state in place, when the current action is the insertion
When movement, heat addition operation is executed to the PCIE device, when the current action is not the insert action, to described
PCIE device executes hot removal operation.
The application also provides a kind of hot-swappable processing method of PCIE system, comprising:
Upon receiving an interrupt signal, judge whether the interrupt signal comes from PCIE interrupt flip-flop;
When the interrupt signal comes from the PCIE interrupt flip-flop, sentenced according to PCIE in the state in place of bit detector
Whether disconnected current action is insert action;
When the current action is insert action, heat addition operation is executed to the PCIE device;
When the current action is not insert action, hot removal operation is executed to the PCIE device.
Optionally, further includes:
Before receiving interrupt signal, the PCIE interrupt flip-flop judges whether that insertion event occurs or pulls out thing
Part;
If so, generating the interrupt signal, and the interrupt signal is sent to processor.
Optionally, when the interrupt signal comes from the PCIE interrupt flip-flop, existed according to PCIE in bit detector
Position state judges whether current action is insert action, comprising:
When the interrupt signal comes from the PCIE interrupt flip-flop, the history for obtaining the PCIE in bit detector exists
Position state and current state in place;
Correspondingly, executing heat addition operation to the PCIE device when the current action is insert action, comprising:
When history state in place is not in place, and the current state in place is in place, the PCIE is set
It is standby to execute heat addition operation;
Correspondingly, executing hot removal operation, packet to the PCIE device when the current action is not insert action
It includes:
When history state in place is in place, and the current state in place is not in place, the PCIE is set
It is standby to execute hot removal operation.
Optionally, further includes:
After the heat addition operation or hot removal operation execute, according to the current state in place to described
History state in place is updated.
The application also provides a kind of computer equipment, comprising:
Memory, for storing computer program;
Processor, the step of hot-swappable processing method as described above is realized when for executing the computer program.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium
Machine program, the step of hot-swappable processing method as described above is realized when the computer program is executed by processor.
A kind of PCIE system provided herein, comprising: PCIE device;It is connect with the PCIE device, for institute
State the PCIE controller that PCIE device is controlled;It is connect with the PCIE device, it is in place for being carried out to the PCIE device
Detection obtains the PCIE of state in place in bit detector;Connect with the PCIE device, for when the PCIE device insertion or
The PCIE interrupt flip-flop of plug interrupt signal is generated when pulling out;With the PCIE controller, the PCIE bit detector with
And the PCIE interrupt flip-flop connection, for executing hot-swappable operation according to the state in place and the plug interrupt signal
Processor.
The technical solution connects PCIE in bit detector and PCIE between the PCIE device and processor of the PCIE system
Interrupt flip-flop determines that PCIE is set by the interrupt signal and PCIE of PCIE interrupt flip-flop in the signal in place of bit detector
It is standby whether to carry out hot-swappable operation, and determinations be heat addition or hot removal operate in some, and then in the processor
Corresponding hot addition operation or hot removal operation are executed, hot-swappable operation, realization pair are executed to PCIE device except controller
The hot drawing plugging function of PCIE device, the convenience that raising system uses keep maintenance process more convenient.
The application also provides the hot-swappable processing method, computer equipment and computer-readable storage of a kind of PCIE system
Medium has the above beneficial effect, and therefore not to repeat here.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of structural schematic diagram of PCIE system provided by the embodiment of the present application;
Fig. 2 is a kind of flow chart of the hot-swappable processing method of PCIE system provided by the embodiment of the present application;
Fig. 3 is the flow chart of the hot-swappable processing method of another kind PCIE system provided by the embodiment of the present application.
Specific embodiment
The core of the application is to provide a kind of PCIE system, hot-swappable processing method, computer equipment and computer can
Storage medium is read, by connecting PCIE between processor and PCIE device in bit detector and PCIE interrupt flip-flop, makes to locate
Reason device can monitor the hot-swappable movement of PCIE device, and then execute hot-swappable operation, realize to the hot-swappable of PCIE device
Function.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
In the prior art, the most of PCIE devices used have all supported hot plug, but due to cost and equipment
The problems such as energy, part PCIE controller does not support PCIE device hot plug, such as the processor of open power also.Cause using
The system of these controllers cannot support the function of I/O device hot plug, make troubles the operation and maintenance of system.
Therefore, the application provides a kind of PCIE system, connects between the PCIE device and processor of the PCIE system
PCIE is in bit detector and PCIE interrupt flip-flop, by the interrupt signal and PCIE of PCIE interrupt flip-flop in bit detector
Signal in place determines whether PCIE device carries out hot-swappable operation, and determination is certain in heat addition or hot removal operation
One, and then corresponding heat addition operation or hot removal operation are executed in the processor, PCIE device is held except controller
The hot-swappable operation of row, realizes the hot drawing plugging function to PCIE device, and the convenience that raising system uses makes maintenance process more just
Benefit.
Referring to FIG. 1, Fig. 1 is a kind of structural schematic diagram of PCIE system provided by the embodiment of the present application.
In the embodiment of the present application, which may include:
PCIE device 100;It is connect with PCIE device 100, the PCIE controller for being controlled PCIE device 100
200;
It is connect with PCIE device 100, it is in place for carrying out the PCIE that detection in place obtains state in place to PCIE device 100
Detector 300;
It is connect with PCIE device 100, for generating the PCIE of plug interrupt signal when PCIE device 100 is inserted into or is pulled out
Interrupt flip-flop 400;
It connect with PCIE controller 200, PCIE in bit detector 300 and PCIE interrupt flip-flop 400, exists for basis
Position state and plug interrupt signal execute the processor 500 of hot-swappable operation.
As it can be seen that PCIE is connected in the present embodiment between processor 500 and PCIE device 100 in 300 He of bit detector
PCIE interrupt flip-flop 400.When hot-swappable PCIE device 100, processor 500 can pass through PCIE interrupt flip-flop 400
Interrupting information determines whether that hot-swappable movement has occurred, then determines that the hot-swappable operation is heat by PCIE interrupt flip-flop 400
Insert action or hot removal movement, and then corresponding hot insert action or hot removal movement are executed again.It is, this implementation
For the PCIE added in example in bit detector 300 and PCIE interrupt flip-flop 400, effect is to keep processor 500 available to pass
In the hot-swappable movement of PCIE device 100, and then corresponding operation is executed, realizes hot drawing plugging function.
And in the prior art, part PCIE controller is made to have no idea to get PCIE and set due to cost or performance
The signal of standby hot-swappable movement, that is, PCIE controller do not support the hot drawing plugging function of PCIE device.In this case, to the greatest extent
Pipe PCIE device supports hot drawing plugging function, also has no idea to be supported in systems.When being operated or being safeguarded to hardware,
Make complicated for operation, reduction maintainability.
Also, the heat to PCIE device 100 is realized by general interrupt signal in the present embodiment in processor 500
Plug operation reduces operation difficulty without determining special interrupt signal again for hot-swappable operation.And in the prior art, one
As support the controller of hot-swappable operation to need to generate special interrupt signal, improve the complexity that processor 500 is handled
Degree is unfavorable for the Rapid Implementation technical solution.
Wherein, the PCIE in the present embodiment sentences in bit detector 300 specifically for carrying out state in place to PCIE device 100
It is disconnected, state in place is obtained, and record state in place.
The PCIE can be using any one that the prior art provides in bit detector, as long as can be in bit detector 300
The state in place of PCIE device 100 is detected, all can serve as the PCIE in the present embodiment in bit detector 300, herein
It is not specifically limited.
Specifically, the PCIE in the present embodiment can carry out state in place to PCIE device 100 in real time in bit detector 300
Judgement, can also carry out state judgement in place to PCIE device 100 according to predetermined period, can also only send out in PCIE device 100
State judgement in place is carried out to PCIE device 100 when heat Plug Action.As it can be seen that being carried out in the present embodiment to PCIE device 100
The opportunity of state judgement in place is not unique, can choose suitable opportunity and judges PCIE device 100, does not do have herein
Body limits.
Wherein, the PCIE interrupt flip-flop 400 in the present embodiment is specifically used for being monitored PCIE device 100, when
When PCIE device 100 is inserted into or is pulled out, plug interrupt signal is generated, and send plug interrupt signal to processor 500.
Any one interrupt flip-flop that the PCIE interrupt flip-flop 400 can be provided using the prior art, as long as can be with
Plug interrupt signal is generated when insert action occurs for PCIE device 100 or pulls out movement, all can serve as in the present embodiment
PCIE interrupt flip-flop 400, is not specifically limited herein.
Wherein, PCIE interrupt flip-flop 400 is monitored PCIE device 100, that is, whether judges PCIE device 100
Hot-swappable movement occurs.Specifically, the PCIE interrupt flip-flop 400 in the present embodiment can be with real-time judge PCIE device 100
It is no that hot-swappable movement occurs, it can also judge whether PCIE device 100 occurs hot-swappable movement according to predetermined period, it can be with root
Judge whether PCIE device 100 occurs hot-swappable movement according to the state of physical switch.As it can be seen that judging PCIE device in the present embodiment
100 whether occur hot-swappable movement mode it is not unique, can choose suitable mode and judge whether PCIE device 100 occurs
Hot-swappable movement, is not specifically limited herein.
Wherein, the processor 500 in the present embodiment is specifically used for when the pulling out from PCIE interrupt flip-flop 400 received
When inserting interrupt signal, judge whether current action is insert action according to state in place, it is right when current action is insert action
PCIE device 100 executes heat addition operation, when current action is not insert action, executes hot removal behaviour to PCIE device 100
Make.
In general, processor 500 run process there are various interrupt signals.Believe when receiving a certain interruption
Number when, it is also necessary to judge whether the interrupt signal is plug interrupt signal, that is, judge whether interrupt signal comes from PCIE
Disconnected trigger 400.General interrupt signal, and non-special interrupt signal, so in order to realize are used in the present embodiment
Hot drawing plugging function needs to judge interrupt signal.
To sum up, the present embodiment is in place by connecting PCIE between the PCIE device 100 and processor 500 of the PCIE system
Detector 300 and PCIE interrupt flip-flop 400, according to the interrupt signal of PCIE interrupt flip-flop 400 and PCIE in bit detector
300 signal in place, determines whether PCIE device 100 carries out hot-swappable operation, and determination is heat addition or hot removal behaviour
Some in work, and then corresponding heat addition operation or hot removal operation are executed in processor 500, it is right except controller
PCIE device 100 executes hot-swappable operation, realizes the hot drawing plugging function to PCIE device 100, the convenience that raising system uses,
Keep maintenance process more convenient.
On the basis of a upper embodiment, the embodiment of the present application also provides a kind of hot drawing plugging function of the PCIE system of basis
Implementation method.
Increase PCIE interrupt flip-flop 400 and PCIE in the PCIE system of the present embodiment in bit detector 300, the two is all divided
It is not connect with PCIE device 100 and processor 500.
Wherein, the effect of PCIE interrupt flip-flop 400 is that monitoring PCIE device 100 inserts or pull out, when there is insertion event
Or when extracting event generation, PCIE interrupt flip-flop 400 generates plug interrupt signal, which is transmitted to processor 500, makes to locate
It manages device 500 and generates interruption, execute interrupt service routine.
Wherein, PCIE is whether monitoring PCIE device 100 is in place in the effect of bit detector 300, and processor 500 can pass through
PCIE knows the state in place of PCIE device 100 in bit detector 300.
Meanwhile increasing hot plug processing module in system firmware.In system start-up phase, PCIE resource is reserved, and is led to
The state in place that PCIE knows PCIE device 100 in the information of bit detector 300 that reads is crossed, operation system is entered after being saved
System.
In the interrupt service program, increase PCIE hot plug branch.Into when interrupting, judge if PCIE interrupt flip-flop
400 interruptions generated, then enter PCIE hot plug branch.In this branch, PCIE is read in the state of bit detector 300, is sentenced
The situation in place of disconnected PCIE device 100 at this time, and make comparisons with the state in place stored when starting, judgement is hot removal or heat
Addition.Such as read at this time PCIE device 100 be it is in place, and currently stored state in place be it is not in place, then be judged as addition
Movement.Corresponding heat addition or hot removal operation are executed according to judgement.After operation, the state in place updated storage, after being
Continuous hot plug acts service.
As it can be seen that the present embodiment is in place by connecting PCIE between the PCIE device 100 and processor 500 of the PCIE system
Detector 300 and PCIE interrupt flip-flop 400, according to the interrupt signal of PCIE interrupt flip-flop 400 and PCIE in bit detector
300 signal in place, determines whether PCIE device 100 carries out hot-swappable operation, and determination is heat addition or hot removal behaviour
Some in work, and then corresponding heat addition operation or hot removal operation are executed in processor 500, it is right except controller
PCIE device 100 executes hot-swappable operation, realizes the hot drawing plugging function to PCIE device 100, the convenience that raising system uses,
Keep maintenance process more convenient.
A kind of hot-swappable processing method of PCIE system provided by the embodiments of the present application is introduced below, is described below
The hot-swappable processing method of PCIE system a kind of can correspond to each other reference with a kind of above-described PCIE system.
Referring to FIG. 2, Fig. 2 is a kind of process of the hot-swappable processing method of PCIE system provided by the embodiment of the present application
Figure.
In the present embodiment, this method may include:
S201 judges whether interrupt signal comes from PCIE interrupt flip-flop 400 upon receiving an interrupt signal;If so,
Execute S202;
S202, when interrupt signal come from PCIE interrupt flip-flop 400 when, according to PCIE bit detector 300 shape in place
State judges whether current action is insert action;If so, executing S203;If it is not, then executing S204;
S203 executes heat addition operation to PCIE device 100 when current action is insert action;
S204 executes hot removal operation to PCIE device 100 when current action is not insert action.
Heat addition operation or hot removal operation in the present embodiment, can specifically include the money for reserving the PCIE device 100
Then source carries out insertion operation to it or pulls out operation.
Optionally, the present embodiment can also include:
Before receiving interrupt signal, PCIE interrupt flip-flop 400 judges whether that insertion event occurs or pulls out event;
If so, generating interrupt signal, and interrupt signal is sent to processor 500.
As it can be seen that the present embodiment is in place by connecting PCIE between the PCIE device 100 and processor 500 of the PCIE system
Detector 300 and PCIE interrupt flip-flop 400, according to the interrupt signal of PCIE interrupt flip-flop 400 and PCIE in bit detector
300 signal in place, determines whether PCIE device 100 carries out hot-swappable operation, and determination is heat addition or hot removal behaviour
Some in work, and then corresponding heat addition operation or hot removal operation are executed in processor 500, it is right except controller
PCIE device 100 executes hot-swappable operation, realizes the hot drawing plugging function to PCIE device 100, the convenience that raising system uses,
Keep maintenance process more convenient.
On the basis of Fig. 2 corresponding embodiment, the embodiment of the present application also provides another hot-swappable processing method.The reality
The action state that example judges PCIE device 100 by history state in place and current state in place is applied, the accurate of judgement is improved
Property and precision.
Referring to FIG. 3, Fig. 3 is the stream of the hot-swappable processing method of another kind PCIE system provided by the embodiment of the present application
Cheng Tu.
In the present embodiment, this method may include:
S301 judges whether interrupt signal comes from PCIE interrupt flip-flop 400 upon receiving an interrupt signal;If so,
Execute S302;
S302 obtains PCIE and exists in the history of bit detector 300 when interrupt signal comes from PCIE interrupt flip-flop 400
Position state and current state in place;
S303 holds PCIE device 100 when history state in place is not in place, and current state in place is in place
Row heat addition operation;
S304 holds PCIE device 100 when history state in place is in place, and current state in place is not in place
The operation of row hot removal;
S305, after heat addition operation or hot removal operation execute, according to current state in place to history shape in place
State is updated.
As it can be seen that mainly by the history state in place of historical record and current state in place in the present embodiment, to PCIE
The movement of equipment 100 is judged, the accuracy and precision of judgement can be improved.Wherein, history state in place can be
The historical information that PCIE is recorded in bit detector 300, current state in place can be processor 500 and temporarily obtain when judging
Status information in place.
To sum up, the present embodiment is in place by connecting PCIE between the PCIE device 100 and processor 500 of the PCIE system
Detector 300 and PCIE interrupt flip-flop 400, according to the interrupt signal of PCIE interrupt flip-flop 400 and PCIE in bit detector
300 signal in place, determines whether PCIE device 100 carries out hot-swappable operation, and determination is heat addition or hot removal behaviour
Some in work, and then corresponding heat addition operation or hot removal operation are executed in processor 500, it is right except controller
PCIE device 100 executes hot-swappable operation, realizes the hot drawing plugging function to PCIE device 100, the convenience that raising system uses,
Keep maintenance process more convenient.
The embodiment of the present application also provides a kind of computer equipment, comprising:
Memory, for storing computer program;
Processor realizes hot-swappable processing method as described above in Example when for executing the computer program
Step.
The embodiment of the present application also provides a kind of computer readable storage medium, stores on the computer readable storage medium
There is computer program, hot-swappable processing method as described above in Example is realized when the computer program is executed by processor
The step of.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only
Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Above to a kind of PCIE system, hot-swappable processing method, computer equipment and computer provided herein
Readable storage medium storing program for executing is described in detail.Specific case used herein carries out the principle and embodiment of the application
It illustrates, the description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for this
For the those of ordinary skill of technical field, under the premise of not departing from the application principle, the application can also be carried out several
Improvement and modification, these improvement and modification are also fallen into the protection scope of the claim of this application.
Claims (10)
1. a kind of PCIE system characterized by comprising
PCIE device;It is connect with the PCIE device, the PCIE controller for being controlled the PCIE device;
It connect with the PCIE device, is examined in place for carrying out the PCIE that detection in place obtains state in place to the PCIE device
Survey device;
It is connect with the PCIE device, in the PCIE for generating plug interrupt signal when the PCIE device is inserted into or is pulled out
Disconnected trigger;
It is connect with the PCIE controller, the PCIE in bit detector and the PCIE interrupt flip-flop, for according to institute
It states state in place and the plug interrupt signal executes the processor of hot-swappable operation.
2. PCIE system according to claim 1, which is characterized in that the PCIE is specifically used in bit detector to described
PCIE device carries out state judgement in place, obtains the state in place, and record the state in place.
3. PCIE system according to claim 1, which is characterized in that the PCIE interrupt flip-flop is specifically used for described
PCIE device is monitored, and when the PCIE device is inserted into or when pulling out, generates the plug interrupt signal, and to the processing
Device sends the plug interrupt signal.
4. PCIE system according to claim 1, which is characterized in that the processor is specifically used for coming from when what is received
When the plug interrupt signal of the PCIE interrupt flip-flop, judge whether current action is insertion according to the state in place
Movement executes heat addition operation to the PCIE device, when described current dynamic when the current action is the insert action
When not being the insert action, hot removal operation is executed to the PCIE device.
5. a kind of hot-swappable processing method of PCIE system characterized by comprising
Upon receiving an interrupt signal, judge whether the interrupt signal comes from PCIE interrupt flip-flop;
When the interrupt signal comes from the PCIE interrupt flip-flop, worked as according to PCIE in the state in place judgement of bit detector
Whether preceding movement is insert action;
When the current action is insert action, heat addition operation is executed to PCIE device;
When the current action is not insert action, hot removal operation is executed to the PCIE device.
6. hot-swappable processing method according to claim 5, which is characterized in that further include:
Before receiving interrupt signal, the PCIE interrupt flip-flop judges whether that insertion event occurs or pulls out event;
If so, generating the interrupt signal, and the interrupt signal is sent to processor.
7. hot-swappable processing method according to claim 5, which is characterized in that when the interrupt signal comes from the PCIE
When interrupt flip-flop, judge whether current action is insert action in the state in place of bit detector according to PCIE, comprising:
When the interrupt signal comes from the PCIE interrupt flip-flop, the PCIE is obtained in the history shape in place of bit detector
State and current state in place;
Correspondingly, executing heat addition operation to the PCIE device when the current action is insert action, comprising:
When history state in place is not in place, and the current state in place is in place, the PCIE device is held
Row heat addition operation;
Correspondingly, executing hot removal operation to the PCIE device when the current action is not insert action, comprising:
When history state in place is in place, and the current state in place is not in place, the PCIE device is held
The operation of row hot removal.
8. hot-swappable processing method according to claim 6, which is characterized in that further include:
After the heat addition operation or hot removal operation execute, according to the current state in place to the history
State in place is updated.
9. a kind of computer equipment characterized by comprising
Memory, for storing computer program;
Processor realizes such as claim 5 to 8 described in any item hot-swappable processing sides when for executing the computer program
The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes such as claim 5 to 8 described in any item hot-swappable processing methods when the computer program is executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910222140.6A CN109947686A (en) | 2019-03-22 | 2019-03-22 | A kind of PCIE system, hot-swappable processing method and relevant apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910222140.6A CN109947686A (en) | 2019-03-22 | 2019-03-22 | A kind of PCIE system, hot-swappable processing method and relevant apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109947686A true CN109947686A (en) | 2019-06-28 |
Family
ID=67011354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910222140.6A Pending CN109947686A (en) | 2019-03-22 | 2019-03-22 | A kind of PCIE system, hot-swappable processing method and relevant apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109947686A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111984106A (en) * | 2020-07-17 | 2020-11-24 | 苏州浪潮智能科技有限公司 | PSU monitoring method and system supporting hot plug |
CN114020670A (en) * | 2021-10-28 | 2022-02-08 | 郑州云海信息技术有限公司 | PCIE card management method, system, equipment and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1983221A (en) * | 2006-05-31 | 2007-06-20 | 华为技术有限公司 | Thermal-plug controller and controlling method |
CN202615294U (en) * | 2012-04-20 | 2012-12-19 | 浪潮电子信息产业股份有限公司 | Hot inserting-pulling type internal memory board |
CN104133533A (en) * | 2014-08-06 | 2014-11-05 | 浪潮(北京)电子信息产业有限公司 | Expansion board card system for supporting full-length PCIE |
CN104272326A (en) * | 2013-12-03 | 2015-01-07 | 华为终端有限公司 | Card burning preventing detecting device, terminal equipment, and card burning detecting and processing method |
CN105187497A (en) * | 2015-08-07 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Line card management method based on distributed system OLT (Optical Line Terminal) equipment |
CN105335542A (en) * | 2014-08-13 | 2016-02-17 | 海思光电子有限公司 | In-place state monitoring device and method and communication equipment |
CN105677606A (en) * | 2014-11-21 | 2016-06-15 | 杭州华为数字技术有限公司 | Hot-swapping method of bus device and bus device |
CN105786747A (en) * | 2016-02-22 | 2016-07-20 | 北京和利时系统工程有限公司 | Method and device for achieving hot plug processing |
CN106326160A (en) * | 2015-06-26 | 2017-01-11 | 华为技术有限公司 | Processing system and processing method |
CN107203448A (en) * | 2017-05-24 | 2017-09-26 | 郑州云海信息技术有限公司 | A kind of method and system of test PCIe switch chip violence warm connection functions |
CN108255410A (en) * | 2016-12-28 | 2018-07-06 | 华为技术有限公司 | A kind of method, apparatus and equipment for handling disk roam |
-
2019
- 2019-03-22 CN CN201910222140.6A patent/CN109947686A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1983221A (en) * | 2006-05-31 | 2007-06-20 | 华为技术有限公司 | Thermal-plug controller and controlling method |
CN202615294U (en) * | 2012-04-20 | 2012-12-19 | 浪潮电子信息产业股份有限公司 | Hot inserting-pulling type internal memory board |
CN104272326A (en) * | 2013-12-03 | 2015-01-07 | 华为终端有限公司 | Card burning preventing detecting device, terminal equipment, and card burning detecting and processing method |
CN104133533A (en) * | 2014-08-06 | 2014-11-05 | 浪潮(北京)电子信息产业有限公司 | Expansion board card system for supporting full-length PCIE |
CN105335542A (en) * | 2014-08-13 | 2016-02-17 | 海思光电子有限公司 | In-place state monitoring device and method and communication equipment |
CN105677606A (en) * | 2014-11-21 | 2016-06-15 | 杭州华为数字技术有限公司 | Hot-swapping method of bus device and bus device |
CN106326160A (en) * | 2015-06-26 | 2017-01-11 | 华为技术有限公司 | Processing system and processing method |
CN105187497A (en) * | 2015-08-07 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Line card management method based on distributed system OLT (Optical Line Terminal) equipment |
CN105786747A (en) * | 2016-02-22 | 2016-07-20 | 北京和利时系统工程有限公司 | Method and device for achieving hot plug processing |
CN108255410A (en) * | 2016-12-28 | 2018-07-06 | 华为技术有限公司 | A kind of method, apparatus and equipment for handling disk roam |
CN107203448A (en) * | 2017-05-24 | 2017-09-26 | 郑州云海信息技术有限公司 | A kind of method and system of test PCIe switch chip violence warm connection functions |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111984106A (en) * | 2020-07-17 | 2020-11-24 | 苏州浪潮智能科技有限公司 | PSU monitoring method and system supporting hot plug |
CN114020670A (en) * | 2021-10-28 | 2022-02-08 | 郑州云海信息技术有限公司 | PCIE card management method, system, equipment and storage medium |
CN114020670B (en) * | 2021-10-28 | 2024-04-26 | 郑州云海信息技术有限公司 | PCIE card management method, system, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106371807B (en) | A kind of method and device of extensible processor instruction set | |
WO2016202040A1 (en) | Pcie-based sub-card hot plugging method and apparatus | |
CN109947686A (en) | A kind of PCIE system, hot-swappable processing method and relevant apparatus | |
JP5336985B2 (en) | Power loss detection and notification method, system, and program based on dynamic load of single shared power domain | |
CN101819550A (en) | Interface testing system for serial connecting small computer system | |
CN109240953A (en) | A kind of method, pinboard and the system of adaptive switching hard disk | |
CN108665272A (en) | Block chain data processing method, device, equipment and storage medium | |
CN111966603B (en) | Memory leakage detection method and device, readable storage medium and electronic equipment | |
CN106201843A (en) | The processing method of a kind of terminal data, device and terminal | |
CN103559124A (en) | Fast fault detection method and device | |
CN109901664A (en) | Method, apparatus, system, equipment and the readable storage medium storing program for executing of clock signal are provided | |
CN109582505A (en) | A kind of recovery system, method and device of BIOS option default value | |
CN111918236A (en) | Internet of things security sensor network searching method, device, equipment and storage medium | |
CN116300780B (en) | Component configuration method, device, electronic equipment and storage medium | |
TWI439856B (en) | Method and multiple computer system with a failover support to manage shared resources | |
CN110362448A (en) | A kind of GPU management-control method and relevant apparatus | |
CN109669905A (en) | A kind of hot removing method, system and the relevant apparatus of PCIE device | |
CN107229858B (en) | PECI bus master-slave machine verification system and method supporting crc8 verification | |
CN113220554B (en) | Method and apparatus for detecting performance of program code | |
CN115994112A (en) | Energy storage coordination control method, controller, equipment and medium | |
CN102638403B (en) | Method and device for processing messages | |
CN117095736A (en) | Memory testing method and testing device, electronic equipment and readable storage medium | |
CN101971562B (en) | Method, device and system for controlling automatic running process performance | |
CN110733037B (en) | Signal processing method and device, storage medium and processor | |
CN114116275A (en) | Terminal abnormity repairing method and device, storage medium and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190628 |
|
RJ01 | Rejection of invention patent application after publication |