CN106126454B9 - Computer system, and access method and device of high-speed peripheral component interconnection endpoint equipment - Google Patents
Computer system, and access method and device of high-speed peripheral component interconnection endpoint equipment Download PDFInfo
- Publication number
- CN106126454B9 CN106126454B9 CN201610474435.9A CN201610474435A CN106126454B9 CN 106126454 B9 CN106126454 B9 CN 106126454B9 CN 201610474435 A CN201610474435 A CN 201610474435A CN 106126454 B9 CN106126454 B9 CN 106126454B9
- Authority
- CN
- China
- Prior art keywords
- access request
- equipment
- pcie endpoint
- response message
- analog response
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000002093 peripheral effect Effects 0.000 title claims abstract description 18
- 230000004044 response Effects 0.000 claims abstract description 342
- 238000012544 monitoring process Methods 0.000 claims abstract description 44
- 238000004088 simulation Methods 0.000 claims abstract description 20
- 230000002159 abnormal effect Effects 0.000 claims description 62
- 230000002452 interceptive effect Effects 0.000 claims description 18
- 230000008054 signal transmission Effects 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 9
- 238000004891 communication Methods 0.000 claims description 6
- 238000011144 upstream manufacturing Methods 0.000 claims description 6
- 230000005055 memory storage Effects 0.000 claims description 2
- 239000000725 suspension Substances 0.000 claims 2
- 238000012545 processing Methods 0.000 abstract description 10
- 238000009825 accumulation Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 23
- 208000037924 multicystic encephalomalacia Diseases 0.000 description 16
- 238000009434 installation Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 239000000203 mixture Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 239000007787 solid Substances 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000005389 magnetism Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4204—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
- G06F13/4221—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0024—Peripheral component interconnect [PCI]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention relates to an access method, a computer system and a device for high-speed peripheral component interconnected endpoint equipment, which are used for monitoring the message state of an access request sent by a processor and sending a simulation response message of the access request to the processor when PCIe endpoint equipment is determined not to send a response message of the access request, so that the processor can confirm that the flow corresponding to the previously sent access request is completed according to the simulation response message, thereby closing a timer for timing the access request, clearing the cached access request, keeping the normal processing in the processor, and avoiding the MCE reset problem caused by the accumulation of the access request in the processor.
Description
Technical field
The present embodiments relate to computer technology, especially a kind of high speed peripheral component interconnection endpoint device
Access method, computer system and device.
Background technique
High speed peripheral component interconnects (Peripheral Component Interconnect Express, PCIe)
Abbreviation, be for calculate and communications platform on high-performance system bus.PCIe bus is widely used
In the interconnection system of CPU and peripheral equipment, core business channel is used as in equipment calculating and storing.It is logical
Cross PCIe bus and CPU interconnection peripheral equipment can there are many, such as network card equipment or solid state hard disk
(Solid State Disk, SSD) etc., is referred to as PCIe endpoint 1590 equipment for such equipment in this document.
PCIe bus is widely used as the bus interface of server or storage system, when system operates normally,
Due to the demand of on-line rapid estimation and maintenance, needs to increase in case of constant power or remove PCIe endpoint 1590 and set
It is standby, i.e. the demand of hot plug.Existing PCIe hot plug follows following operating process: operator is by pressing
Button initiates hot drawing request, after hot-swapping controller learns hot plug events, all possibility in notice system
The driving for accessing the PCIe endpoint 1590 equipment stops accessing the PCIe endpoint 1590 equipment, and will need to carry out hot plug
The resource of PCIe endpoint 1590 equipment uninstall, hereafter, to electric under the PCIe endpoint 1590 equipment, operator extracts should
PCIe endpoint 1590 equipment.
Existing PCIe endpoint 1590 equipment hot swap needs, which are prenoticed, just can guarantee that system operates normally.However,
In recent years, PCIe bus is gradually by interconnection of the interconnection development between system in system, the application such as External cable
Increase, cable is easy exception and falls off, and the offline situation of the PCIe endpoint 1590 unit exception that do not prenotice occurs.
In addition, user is more and more extensive using the scene that solid-state hard disk SSD is directly accessed to the system, due to user's habit
Factor, the possible without previous notice of user just directly plug SSD disk.However, for PCIe endpoint 1590 mentioned above
The unexpected abnormal offline situation of equipment, if CPU has initiated to refer to the read-write of this PCIe endpoint 1590 equipment
It enables, relevant instruction will always be in state to be done, when CPU is to the access instruction of the PCIe endpoint 1590 equipment
Persistent accumulation reaches a certain level, and CPU just will be considered that whole system exception, and it is abnormal to quote machine detection
(Machine check exception, MCE) mistake, and resetted.
Summary of the invention
The embodiment of the present invention proposes a kind of access method of high speed peripheral component interconnection endpoint device, computer
System and device guarantee that CPU will not generate reset after PCIe endpoint 1590 unit exception is offline.
In a first aspect, the embodiment of the present invention proposes a kind of computer system, the computer system includes:
Processor;
High speed peripheral component interconnects PCIe bus, for connecting PCIe endpoint 1590 equipment;
The processor is for obtaining the operational order to access to the PCIe endpoint 1590 equipment, according to described
Operational order, Xiang Suoshu PCIe endpoint 1590 equipment send access request;
The computer system further includes analog response module, in the processor to the PCIe endpoint 1590
After equipment sends the access request, the message status of the access request is monitored, preset
When trigger condition reaches, the message status of the access request is determined, if the message shape of the access request
State is " unfinished ", then obtains the analog response message of the access request, and send institute to the processor
State analog response message;
Wherein, the message status of the access request includes " being completed " or " unfinished ", described " not complete
At " indicate the response message of the not sent access request of PCIe endpoint 1590 equipment.
With reference to first aspect, in the first possible implementation, the analog response module is set to institute
It states in processor and the signal transmission path of the PCIe endpoint 1590 equipment, is specifically used for receiving the processor hair
The access request sent, access request described in Xiang Suoshu PCIe endpoint 1590 device forwards, monitors whether itself receives
The response message for the access request that the PCIe endpoint 1590 equipment is sent, if receiving the PCIe endpoint 1590
The response message for the access request that equipment is sent, the message status of the access request is recorded as "
It completes ".
With reference to first aspect or the first possible implementation of first aspect, in second of possible reality
In existing mode, the computer system further include: PCIe exchanger, for multiple PCIe endpoint 1590s to be set
Standby to be connected to the processor, the downstream port of the PCIe exchanger passes through the PCIe bus and multiple institutes
State the connection of PCIe endpoint 1590 equipment;
The upstream that a port of the analog response module passes through the PCIe bus and the PCIe exchanger
Port connection, another port of the analog response module is connected to the processor.
With reference to first aspect or the first possible implementation of first aspect or first aspect second
The possible implementation of kind, in the third possible implementation, the analog response of the access request disappears
Breath includes first kind analog response message or Second Type analog response message, and the first kind simulation is rung
Message is answered to indicate that the PCIe endpoint 1590 equipment does not support the access request, the Second Type analog response to disappear
Breath indicates the PCIe endpoint 1590 unit exception;
The processor is also used to be rung according to the first kind analog response message or Second Type simulation
Message is answered, the subsequent access to the PCIe endpoint 1590 equipment is stopped.
With reference to first aspect or the first possible implementation of first aspect or first aspect second
The possible implementation of kind, in the fourth possible implementation, the preset trigger condition is described
PCIe endpoint 1590 equipment is abnormal offline;
Correspondingly, the analog response module be also used to monitor the PCIe endpoint 1590 equipment whether be abnormal from
Line determines the message status of the access request when determining that the PCIe endpoint 1590 equipment is abnormal offline.
With reference to first aspect or the first possible implementation of first aspect or first aspect second
The possible implementation of kind, in a fifth possible implementation, the preset trigger condition is described
The timer expired of access request;
Correspondingly, the analog response module is also used to open for the access request that the processor is sent
Dynamic timer carries out timing and determines the message status of the access request after the timer expired.
Second aspect, it is also proposed that a kind of access method of high speed peripheral component interconnection PCIe endpoint 1590 equipment, PCIe
Endpoint device is accessed in computer system by PCIe bus, which comprises
It is right after the processor in the computer system sends access request to the PCIe endpoint 1590 equipment
The message status of the access request is monitored, wherein the message status of the access request includes "
Complete " or " unfinished ", " unfinished " the expression not sent access of PCIe endpoint 1590 equipment
The response message of request;
When preset trigger condition reaches, the message status of the access request is determined;
If the message status of the access request is " unfinished ", the analog response of the access request is obtained
Message;
The analog response message of the access request is sent to the processor.
In conjunction with second aspect, in the first possible implementation, the method also includes:
Receive the access request that the processor is sent, access request described in Xiang Suoshu PCIe endpoint 1590 device forwards;
Then, the message status to the access request, which is monitored, includes:
The response message for itself whether receiving the access request that the PCIe endpoint 1590 equipment is sent is monitored,
If the response message for the access request that the PCIe endpoint 1590 equipment is sent is received, by the access request
Message status be recorded as " being completed ".
In conjunction with the possible implementation of the first of second aspect or second aspect, in second of possible reality
In existing mode, the preset trigger condition is that the PCIe endpoint 1590 equipment is abnormal offline;
The method also includes:
It monitors whether the PCIe endpoint 1590 equipment is abnormal offline, is determining the PCIe endpoint 1590 equipment hair
When raw abnormal offline, the step of executing the message status of the determination access request.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the third possible reality
In existing mode, the preset trigger condition is the timer expired of the access request;
The method also includes:
Timing is carried out for the access request starting timer that the processor is sent, in the timer
After time-out, the step of executing the message status of the determination access request.
The third aspect proposes a kind of analog response device, is applied in computer system, high-speed peripheral group
Part interconnects PCIe endpoint 1590 equipment and is accessed in the computer system by PCIe bus, and described device includes:
Monitoring unit sends to the PCIe endpoint 1590 equipment for the processor in the computer system and visits
After asking request, the message status of the access request is monitored, wherein the report of the access request
Literary state includes " being completed " or " unfinished ", " unfinished " the expression PCIe endpoint 1590 equipment
The response message of the not sent access request;
Determination unit, for when preset trigger condition reaches, according to the monitored results of the monitoring unit
Determine the message status of the access request;
Acquiring unit, for determining that the message status of the access request is " unfinished " in the determination unit
When, obtain the analog response message of the access request;
Response unit, for sending the analog response message that the acquiring unit obtains to the processor.
In conjunction with the first possible implementation of the third aspect, in the second possible implementation, also
Including interactive unit, the access request sent for receiving the processor, Xiang Suoshu PCIe endpoint 1590 equipment turns
Send out access request described;
Then the monitoring unit is specifically used for monitoring whether the interactive unit receives the PCIe endpoint 1590 equipment
The response message of the access request sent, if receiving the access that the PCIe endpoint 1590 equipment is sent
The message status of the access request is recorded as " being completed " by the response message of request.
Fourth aspect proposes a kind of computer, comprising: processor, memory, bus and communication interface;
The memory is for storing computer executed instructions, the processor and the memory described in
Bus connection, when computer operation, the processor executes the calculating of the memory storage
Machine executes instruction, so that the computer executes a kind of high speed peripheral component interconnection PCIe described in second aspect
The access method of endpoint device.
5th aspect, proposes a kind of computer-readable medium, including computer executed instructions, works as computer
Processor when executing the computer executed instructions, the computer executes a kind of high described in second aspect
The access method of fast peripheral assembly interconnection PCIe endpoint 1590 equipment.
In the embodiment of the present invention, since the message status for the access request that can be sent to processor is monitored,
And when determining the not sent response message to the access request of PCIe endpoint 1590 equipment, sends and visit to processor
The analog response message for asking request enables a processor to be issued before confirmation according to the analog response message
The corresponding process of access request completed, thus close to the access request carry out timing timer,
And the access request of caching is removed, it keeps the processing inside processor to be normally carried out, avoids access request
Caused MCE reset issues are accumulated in processor.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to the prior art or embodiment
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of composition figure of the computer system provided according to embodiments of the present invention;
Fig. 2 is the composition figure of another computer system provided according to embodiments of the present invention;
Fig. 3 is a kind of method flow diagram provided according to embodiments of the present invention;
Fig. 4 is another method flow diagram provided according to embodiments of the present invention;
Fig. 5 is another method flow diagram provided according to embodiments of the present invention;
Fig. 6 is a kind of composition figure of the analog response device provided according to embodiments of the present invention;
Fig. 7 is the composition figure of another the analog response device provided according to embodiments of the present invention;
Fig. 8 is a kind of composition figure of the computer provided according to embodiments of the present invention.
Specific embodiment
The embodiment of the present invention proposes a kind of access method of high speed peripheral component interconnection endpoint device, computer
System and device can not have to advance notification system when there is PCIe endpoint 1590 equipment to need to carry out hot plug operations
It is pre-processed, just the connection directly between disconnection PCIe endpoint 1590 equipment and processor, processor is not yet at this time
The risk of MCE reset can be generated.
PCIe endpoint 1590 equipment is directly extracted system or the case where the going offline system that breaks down by the embodiment of the present invention
Referred to as PCIe endpoint 1590 equipment is abnormal offline.
The system architecture of the embodiment of the present invention
Fig. 1 depicts the composition figure of computer system provided in an embodiment of the present invention, computer shown in FIG. 1
It include CPU 110 and memory 120 in system, PCIe endpoint 1590 equipment 130 is connected by PCIe bus 140
To CPU110, and can be plugged away from the computer system.PCIe endpoint 1590 equipment 130 includes multiple types
Type, such as graphics processing unit 131, network adapter 132, solid state hard disk 133 and video acceleration component 134.
PCIe endpoint 1590 equipment 130 and CPU110 in computer system shown in FIG. 1 form a domain PCIe,
All devices in the domain PCIe connect with CPU 110 by PCIe bus 140 and receive CPU110's
Control.
After CPU110 gets the operational order to access to PCIe endpoint 1590 equipment 130, CPU110 root
According to operational order, access request is issued to PCIe endpoint 1590 equipment 130, it is desirable that PCIe endpoint 1590 equipment 130
Register carry out read operation or write operation, if PCIe endpoint 1590 equipment 130 is abnormal offline, CPU110
PCIe endpoint 1590 equipment 130 will not received to the response message of the access request of CPU110, at this point, CPU is just
It will be considered that the access request belongs to unfinished task, if such unfinished task runs up to one in CPU
Determine degree, CPU just will be considered that whole system exception, quote MCE mistake and be resetted.
The embodiment of the present invention increases analog response module 160 newly in systems, which is used for
After the CPU110 sends the access request to the PCIe endpoint 1590 equipment 130, CPU110 is sent
The message status of the access request be monitored, it is described if preset trigger condition reaches
The message status of access request is still " unfinished ", i.e., the described PCIe endpoint 1590 equipment 130 is not sent to institute
The response message of access request is stated, which just obtains the analog response of the access request
Message, and the analog response message is sent to CPU110.Due to the analog response message and the access
Heading having the same is requested, the access request and the analog response message in correspondence with each other, can make
It obtains CPU and thinks that the corresponding process of access request of its sending previous has been completed, to close to the access
Request carries out the timer of timing, and removes the access request of CPU own cache.
Wherein, the message status of the access request includes " being completed " or " unfinished ", " being completed "
Indicate that the PCIe endpoint 1590 equipment has sent the response message of the access request, " unfinished " expression institute
State the response message of the not sent access request of PCIe endpoint 1590 equipment.
In addition, the analog response module 160 is also used to send out in the processor to the PCIe endpoint 1590 equipment
After sending the access request, the analog response message of the access request is just generated, and caches the access
The analog response message of request, the subsequent access for directly acquiring own cache of the analog response module 160
The analog response message of request.
In the embodiment of the present invention, since analog response module can be to the report of the CPU access request sent
Literary state is monitored, and when determining the not sent response message to the access request of PCIe endpoint 1590 equipment,
The analog response message that access request is sent to CPU, enables CPU according to the analog response message, really
The corresponding process of access request issued before recognizing has been completed, and carries out timing to the access request to close
Timer, and remove the access request of caching, keep the processing inside CPU to be normally carried out, avoid
Access request accumulates caused MCE reset issues in CPU.
In a kind of specific embodiment of the present invention, message of the analog response module 160 to the access request
State is monitored, can be by monitoring the institute for itself whether receiving the PCIe endpoint 1590 equipment 130 and sending
The response message of access request is stated to realize, if the analog response module receives the PCIe endpoint 1590 equipment
The response message of the access request sent, analog response module remember the message status of the access request
Record is " being completed ".
In one particular embodiment of the present invention, analog response module 160 can be arranged in CPU110 and
In transmission path between each PCIe endpoint 1590 equipment 130, guarantee CPU110 and each PCIe endpoint 1590 equipment
Message between 130 is required by analog response module 160, so that analog response module 160 can pass through
The response message for monitoring the access request for itself whether receiving the transmission of PCIe endpoint 1590 equipment 130 comes
It monitors the message status of the access request, in another implementation, can also be set in advance in PCIe endpoint 1590
It is configured on standby 130, so that PCIe endpoint 1590 equipment 130 sends the sound of the access request to CPU110
When answering message, the response message also is sent to analog response module, in this way it is also ensured that analog response
Module 160 monitors the access request according to the response message of the access request itself whether is received
Message status.Certainly, the implementation that those skilled in the art can also provide according to embodiments of the present invention,
Realize analog response module 160 to the access request using other equivalent or similar implementations
Message status is monitored.
As shown in Figure 1, analog response module 160 is arranged on CPU110 and each PCIe endpoint 1590 equipment 130
Between signal transmission path in, in this way, CPU110 issue access request need through analog response module
160 get to PCIe endpoint 1590 equipment 130, therefore analog response module 160 can receive access request,
Also, since the message that PCIe endpoint 1590 equipment is sent needs to get to by analog response module 160
CPU110, therefore whether analog response module 160 can receive the hair of PCIe endpoint 1590 equipment 130 according to itself
The response message to the access request sent, determines whether PCIe endpoint 1590 equipment 130 sends the access request
Response message, and record the message status of the access request.Further, in the embodiment of the present invention
In another specific implementation, when analog response module 160 receive CPU110 transmission access request it
Afterwards, the access request can also be cached, if the access that subsequently received PCIe endpoint 1590 equipment 130 is sent is asked
The access request of caching can be stamped " being completed " by the response message asked, analog response module 160
Label, or the access request of caching is deleted, analog response module 160 is reached in preset trigger condition
When, the message status of the access request, the i.e. label of the access request of query caching or inquiry can be inquired
The access request of caching, if the label of the access request indicates the access request " unfinished " or caching
Access request be not deleted, analog response module 160 determines that the message status of the access request is " not
Complete ", i.e. the response message of the not sent access request of the PCIe endpoint 1590 equipment 130, then analog response
Module 160 obtains the analog response message of the access request, and sends the analog response message to CPU110.
Wherein, analog response module 160 can be mentioned when receiving the access request of CPU110 transmission
Previous existence at the analog response message of the access request, and the analog response of the access request of generation is disappeared
Breath is associated caching with the access request, and subsequent analog response module 160 directly acquires the described of caching
The analog response message of access request.Certainly, analog response module 160 can also not received in determination
When the response message of the access request sent to PCIe endpoint 1590 equipment 130, the mould of the access request is just generated
Quasi- response message, the embodiment of the present invention to specific implementation form without limitation.
As shown in Fig. 2, PCIe exchanger can be passed through if there are multiple PCIe endpoint 1590 equipment in system
150 realize the connection of multiple PCIe endpoint 1590 equipment 130 and CPU110, in addition to Fig. 1 in system shown in Fig. 2
Shown in except each component, further include PCIe exchanger 150,150 upstream port of PCIe exchanger
It is connect by PCIe bus 140 with CPU110, downstream port provides one towards each PCIe endpoint 1590 equipment
PCIe port, each PCIe port are connected to each PCIe endpoint 1590 equipment by PCIe bus 140,
Data for being downstream routed to corresponding PCIe port by PCIe exchanger 150, and from each independent
PCIe port is by data upstream by CPU110.In Fig. 2, analog response module 160 be can be set
In signal transmission path between CPU110 and PCIe exchanger 150, for receiving CPU110 sending
Access request, and the CPU110 access request issued is cached, Xiang Suoshu PCIe endpoint 1590 equipment 130
The access request is forwarded, the message status of the access request is monitored, however, it is determined that itself is received
The response message for the access request that the PCIe endpoint 1590 equipment 130 is sent, by the visit of own cache
It asks that the label of " being completed " is stamped in request, or deletes the access request of own cache, preset
When trigger condition reaches, the label of the access request of query caching or the access request of caching, if the visit
It asks that the label of request indicates that the access request " unfinished " or the access request of caching are not deleted, simulates
Respond module 160 is the response message for determining the not sent access request of PCIe endpoint 1590 equipment 130, then obtains
The analog response message of the access request, and the analog response message is sent to CPU110.
In the above-described embodiments, above-mentioned preset trigger condition can be analog response module 160 and determine PCIe
Endpoint device 130 is abnormal offline, and in such cases, analog response module 160 is also used to monitor described
Whether PCIe endpoint 1590 equipment is abnormal offline, in Fig. 1 and embodiment shown in Fig. 2, analog response module 160
Abnormal offline notification (such as the PCIe endpoint 1590 equipment for itself whether receiving PCIe endpoint 1590 equipment 130 determined
It is pulled out the interrupt notification of system), institute is determined according to the abnormal offline notification of the PCIe endpoint 1590 equipment 130
PCIe endpoint 1590 equipment 130 is stated to be abnormal offline.Above-mentioned preset trigger condition can also be that the access is asked
The timer expired asked, in such cases, analog response module 160 are also used to for PCIe endpoint 1590 equipment 130
Whether the access request starting timer of transmission determines PCIe endpoint 1590 equipment 130 after the timer expired
Send the response message to access request, in Fig. 1 and embodiment shown in Fig. 2, analog response module 160
After receiving the access request of CPU110 transmission and caching the access request, i.e., start for the access request
Timer.
The embodiment of the present invention, analog response module are being preset by the monitoring of the message status to access request
Trigger condition when reaching, if the message status of access request remains as " unfinished " state, simulation is rung
Answer module that the analog response message for the access request that simulation generates just is sent to CPU, so that CPU is not continued to
Whether the corresponding process of the access request is completed to carry out timing, and removes the access request of own cache,
The normal operation for keeping CPU inter-process avoids CPU access request time-out and does not complete caused MCE
Reset issues.
In the above embodiments, analog response module 160 is rung to the simulation of the CPU110 access request sent
Answering message may include first kind analog response message or Second Type analog response message, the first kind
Pattern intends response message and indicates that the PCIe endpoint 1590 equipment 130 does not support the access request, second class
Pattern intends response message and indicates that the PCIe endpoint 1590 equipment 130 is abnormal, and the CPU110 receives access and asks
After the analog response message asked, it is also used to according to the first kind analog response message or second class
Pattern intends response message, determines that the access to the PCIe endpoint 1590 equipment 130 fails, and do not restart accordingly
Access the operation of the reading of data.Due to further specifying the type of analog response message in the present embodiment,
While so that CPU is completed according to this browsing process of analog response message authentication, additionally it is possible to confirm this
It accesses and non-once successfully accesses, and do not go to execute the behaviour to the next step of this access associated data accordingly
Make (such as read operation), therefore the embodiment of the present invention is in the case where PCIe endpoint 1590 unit exception is offline
While maintaining CPU normal process flow, it is thus also avoided that CPU goes to execute some unnecessary operations, thus
Avoid the waste of system resource.
In yet another embodiment of the present invention, the CPU110 can for accessed PCIe endpoint 1590 equipment
The specific more than one access request of energy, such as a plurality of access request is sent, in such cases, analog response mould
Block 160 can all be monitored every message status of the CPU a plurality of access request sent,
Such as each of a plurality of access request is cached, the sound of each access request whether is received to itself
It answers message to be monitored, when preset trigger condition reaches, the access for being not received by response message is asked
The quantity asked is counted, and obtaining message status in a plurality of access request is that the access of " unfinished " is asked
The quantity asked obtains the analog response message of the access request if the quantity is more than the first threshold value,
And the analog response message is sent to the processor.In the present embodiment, as long as not there is an access
The response message being not received by is requested, CPU will generate MCE reset, and actually CPU has certain appearance
The amount of bearing can just generate only after the access request quantity of not returning response message is accumulated to certain numerical value
MCE resets, and therefore, the first threshold value is arranged in the present embodiment, and the access for being only not received by response message is asked
When quantity being asked to be more than this first threshold value, analog response message is sent to CPU by 160 ability of analog response module,
It is resetted to avoid the MCE of CPU.
Above-mentioned analog response module 160 can be realized by way of software or hardware, provide in the present invention
A kind of embodiment in, FPGA (Field-Programmable Gate Array) can be used, i.e., it is live
Programmable gate array is realized.
CPU110 described in Fig. 1 and Fig. 2 is also a kind of example, such as can also be specific integrated circuit,
Regardless of any form realizes the function of processor in computer systems.Described in the embodiment of the present invention
Computer system, can be calculation type server, be also possible to the server of management routing, such as exchange
Machine, the present invention to the specific implementation form of computer system without limitation.
The browsing process of PCIe endpoint 1590 equipment
The browsing process embodiment of PCIe endpoint 1590 equipment is introduced below, as shown in figure 3, for the present invention
The process to access to PCIe endpoint 1590 equipment that embodiment provides, the PCIe endpoint 1590 equipment are total by PCIe
Line accesses computer system, comprising:
S301: after the CPU in the computer system sends access request to PCIe endpoint 1590 equipment, mould
Quasi- respond module is monitored the message status of the access request.
Specifically, the message status of the access request includes " being completed " or " unfinished ", " being completed "
Indicate that the PCIe endpoint 1590 equipment has sent the response message of the access request, " unfinished " expression institute
State the response message of the not sent access request of PCIe endpoint 1590 equipment.
The analog response module is monitored the message status of the access request, can be by monitoring certainly
Whether body receives the response message for the access request that the PCIe endpoint 1590 equipment is sent to realize, if institute
State the response message that analog response module receives the access request that the PCIe endpoint 1590 equipment is sent, mould
The message status of the access request is recorded as " being completed " by quasi- respond module.
Further, the signal transmission path in CPU and PCIe endpoint 1590 equipment can be set in analog response module
On, in this way, analog response module can receive the access request from CPU, it also can receive and come from
The response message of the access request of PCIe endpoint 1590 equipment, analog response module can be after receiving access request
The access request is cached, if the subsequent response message for receiving the access request, by the access of caching
The access request that the label of " being completed " is stamped in request or analog response module deletes caching is (such
In the case of, the message status of access request is by whether cache access is requested to mark, if cache access is requested,
Then indicate that the message status of the access request does not complete, if the access request of caching is deleted, then it represents that the visit
Ask that the message status of request is completed).
S302: when preset trigger condition reaches, the analog response module determines that the access is asked
The message status asked.
The preset trigger condition can be the timer expired of the access request, be also possible to connect
It receives PCIe endpoint 1590 equipment and is abnormal offline notice, embodiment subsequent embodiment will be introduced specifically.
S303: if the message status of the access request is " unfinished ", the analog response module is obtained
The analog response message of the access request.
S304: Xiang Suoshu CPU sends the analog response message.
Specifically, the analog response message of the available access request itself generated of analog response module,
The analog response message and access request heading having the same, the access request and the mould
Quasi- response message in correspondence with each other, can make CPU think the corresponding process of access request of its sending previous
Through being completed, to close the timer for carrying out timing to the access request, and CPU own cache is removed
The access request maintains the processing inside CPU and is normally carried out, avoids access request and accumulate in CPU
The MCE reset issues of caused CPU.
The analog response message of access request in the embodiment of the present invention is not issued by PCIe endpoint 1590 equipment, and
The non-true response message of the access request, can be generated, the embodiment of the present invention by other module simulations
In the analog response message of the access request can be generated by the analog response module.Analog response module
The analog response message of the access request can be pre-generated, it can also be in the message for determining the access request
When state is " unfinished ", the analog response message of the access request is temporarily generated.
The embodiment of the present invention, analog response module are being preset by the monitoring of the message status to access request
Trigger condition when reaching, if the message status of access request remains as " unfinished " state, simulation is rung
Answer module that the analog response message for the access request that simulation generates just is sent to CPU, so that CPU is not continued to
Whether the corresponding process of the access request is completed to carry out timing, and removes the access request of own cache,
The normal operation for keeping CPU inter-process avoids CPU access request time-out and does not complete caused MCE
Reset issues.
In conjunction with above-mentioned computer system embodiment shown in fig. 1 or fig. 2, when analog response module is set to CPU
In signal transmission path between PCIe endpoint 1590 equipment, the embodiment of the present invention one specific browsing process is such as
Shown in Fig. 4, comprising:
S401: the CPU in computer system obtains operational order, and the operational order indicates described CPU pairs
PCIe endpoint 1590 equipment accesses, and the CPU sends access request to the PCIe endpoint 1590 equipment.
Wherein, when upstream endpoint generates the read operation or write operation demand to PCIe endpoint 1590 equipment, the PCIe
The drive module of endpoint device receives the calling of upstream endpoint, according to the generation pair of preconfigured access interface
The operational order that PCIe endpoint 1590 equipment accesses, CPU obtain the operational order.
S402: the analog response module receives the access request from the CPU, caches the visit
Ask request.
The signal transmission path being set to due to the analog response module between CPU and PCIe endpoint 1590 equipment
In, the access request from CPU can be received;
S403: the analog response module generates the analog response message of the access request, and by the mould
Quasi- response message is associated with caching with the access request.
Analog response module when caching the access request, can give birth in advance in this step 403
At the analog response message of the access request, it can also determine in the next steps and need analog response message
When, regenerate the analog response message.
S404: the analog response module is to access request described in the PCIe endpoint 1590 device forwards.
S405: the message status of access request described in the analog response module monitors.
Specifically, whether the analog response module monitors itself receive what the PCIe endpoint 1590 equipment was sent
The response message of the access request, if the analog response module receives the PCIe endpoint 1590 equipment and sends
The access request response message, analog response module stamps the access request of caching " complete
At " label or analog response module delete caching the access request.
The analog response module can after step 404, i.e., it is to described in the PCIe endpoint 1590 device forwards
Start the monitoring after access request, can also be after step 401, i.e. CPU is set to the PCIe endpoint 1590
Preparation just starts the monitoring after sending the access request.
S406: the analog response module receives the offline notice of the PCIe endpoint 1590 unit exception, determines
The message status of the access request.
In the present embodiment, it is offline that preset trigger condition receives the PCIe endpoint 1590 unit exception
Notice.It is arranged in the signal transmission path between CPU and PCIe endpoint 1590 equipment due to analog response module, if
PCIe endpoint 1590 equipment is pulled out, and the offline notice of the PCIe endpoint 1590 unit exception transmitted to CPU can be by simulation
Respond module, the analog response module receive the offline notice of the PCIe endpoint 1590 unit exception, and determination is set in advance
Fixed trigger condition reaches, and inquires the message status of the access request, determines the message status.
S407: if the analog response module determines that the message status of the access request is " unfinished ", institute
The analog response message that analog response module obtains the access request of own cache is stated, and to the CPU
Send the analog response message.
In the present embodiment, the analog response message can be first kind analog response message, described in instruction
PCIe endpoint 1590 equipment 130 does not support the access request, such as the analog response message to carry
Unsupported Request (UR) instruction, alternatively, the analog response message can be Second Type simulation
Response message indicates that the PCIe endpoint 1590 equipment 130 is abnormal, such as the analog response message carries
Completer Abort (CA) instruction.
S408: the CPU receives the analog response message, determines institute according to the analog response message
It states the corresponding process of access request to be completed, removes the access request of own cache.
Due to the analog response message and access request heading having the same, access request and mould
Quasi- response message corresponds to each other, and CPU can be made to have thought the corresponding process of access request of its sending previous
Through being completed, to close the timer for carrying out timing to the access request, and CPU own cache is removed
The access request finally maintains the processing inside CPU and is normally carried out, avoids access request in CPU
The MCE reset issues of CPU caused by accumulation.
Further, since the analog response message is also possible to carry UR or CA instruction, analog response module
The instruction information that can also be further carried according to the analog response message, determination set the PCIe endpoint 1590
Standby access failure, and the error handle that accesses.The access errors processing may include: to inhibit institute
CPU is stated to the relevant further operating of the access request (such as reading of data), or by the PCIe
The state recording of endpoint device is to be abnormal offline, so that CPU stops to the PCIe endpoint 1590 equipment
Carry out subsequent access operation.
S409: the offline notice of the PCIe endpoint 1590 unit exception is transmitted to described by the analog response module
CPU。
The subsequent notice that can be offline according to the PCIe endpoint 1590 unit exception of the CPU, by the PCIe
The corresponding physical equipment of endpoint device carries out down electrically operated and relevant resource release operations.
In the embodiment of the present invention, analog response module is being connect by the monitoring of the message status to access request
When receiving the offline notice of accessed PCIe endpoint 1590 unit exception, if the message status of access request is still
For the analog response message hair for the access request that " unfinished " state, analog response module just generate simulation
CPU is given, so that whether CPU will not complete the corresponding process of the access request to carry out overtime timing, is kept
The normal operation of CPU inter-process, avoid CPU inter access request timed out do not complete caused by MCE it is multiple
Position problem.In the embodiment of the present invention, the signal between CPU and PCIe endpoint 1590 equipment is arranged in analog response module
In transmission path, the access request that accessed PCIe endpoint 1590 equipment issues whether can be received by itself
Response message realize monitoring to access request message status, implement convenient, flexible, efficiency is higher.
In addition, due to further specifying the type of analog response message in the present embodiment so that CPU according to
While this browsing process of analog response message authentication is completed, additionally it is possible to confirm this access and non-once
Successfully access, and do not go to execute the operation to the next step of this access associated data accordingly and (such as read
Operation), therefore maintenance CPU of the embodiment of the present invention in the case where PCIe endpoint 1590 unit exception is offline is normal
While process flow, it is thus also avoided that CPU goes to execute some unnecessary operations, to avoid system resource
Waste.
Embodiment of the present invention method two, analog response module is still set to the end CPU and PCIe in the present embodiment
In signal transmission path between point device, as shown in figure 5, this method comprises:
S501: the CPU in computer system obtains operational order, and the operational order indicates described CPU pairs
PCIe endpoint 1590 equipment accesses, and the CPU sends access request to the PCIe endpoint 1590 equipment.
S502: the analog response module receives the access request from the CPU, caches the visit
Ask request.
It is arranged in the signal transmission path between CPU and PCIe endpoint 1590 equipment due to the analog response module,
It can receive the access request from CPU.
S503: the analog response module starts timer for the access request, and starts timing.
S504: the analog response module generates the analog response message of the access request, and by the mould
Quasi- response message is associated with caching with the access request.
Analog response module when caching the access request, can give birth in advance in this step 503
At the analog response message of the access request, it can also determine in the next steps and need analog response message
When, regenerate the analog response message.
Above-mentioned steps 503 and step 504 execute no successive point, and analog response module can receive
It is started simultaneously at after the access request and executes step 503 and 504,503 can also be first carried out and execute 504 again.
S505: the analog response module is to access request described in the PCIe endpoint 1590 device forwards.
S506: the message status of access request described in the analog response module monitors.
Specifically, whether the analog response module monitors itself receive what the PCIe endpoint 1590 equipment was sent
The response message of the access request, if the analog response module receives the PCIe endpoint 1590 equipment and sends
The access request response message, analog response module stamps the access request of caching " complete
At " label or analog response module delete caching the access request.
S507: the analog response module determines the message of the access request after the timer expired
State.
In the present embodiment, preset trigger condition is whether the timer of access request is overtime, the timer
Timing time set based on experience value, the empirical value be PCIe endpoint 1590 equipment send access request response disappear
The maximum tolerance time of breath, under normal circumstances, if PCIe endpoint 1590 equipment keeps normal, in the empirical value
In time, analog response module centainly can receive the response message of the access request of its sending.
S508: if the analog response module determines that the message status of the access request is " unfinished ", institute
The analog response message that analog response module obtains the access request of own cache is stated, and to the CPU
Send the analog response message.
After timer expired, the message status of access request described in analog response module polls, however, it is determined that institute
Stating message status is " unfinished ", then can determine that accessed PCIe endpoint 1590 unit exception is offline substantially,
CPU is unlikely to receive the response message of access request, at this point, the access request in order to avoid cpu cache is super
When caused MCE reset issues, the analog response message generated in advance is sent to CPU by analog response module.
In the present embodiment, the analog response message can be first kind analog response message, described in instruction
PCIe endpoint 1590 equipment 130 does not support the access request, such as the analog response message to carry
Unsupported Request (UR) instruction or the analog response message can be Second Type simulation and rings
Message is answered, indicates that the PCIe endpoint 1590 equipment 130 is abnormal, such as the analog response message carries
Completer Abort (CA) instruction.
S509: the CPU receives the analog response message, determines institute according to the analog response message
It states the corresponding process of access request to be completed, removes the access request of own cache.
Due to the analog response message and access request heading having the same, access request and mould
Quasi- response message corresponds to each other, and CPU can be made to have thought the corresponding process of access request of its sending previous
Through being completed, to close the timer for carrying out timing to the access request, and CPU own cache is removed
The access request finally maintains the processing inside CPU and is normally carried out, avoids access request in CPU
The MCE reset issues of CPU caused by accumulation.
Further, since the analog response message is also possible to carry UR or CA instruction, analog response module
The instruction information that can also be further carried according to the analog response message, access error handle;Institute
Stating access errors processing may include: to inhibit the CPU to the relevant further operating (example of the access request
Such as the reading of data), or the state recording of the PCIe endpoint 1590 equipment is offline to be abnormal, thus
So that CPU stops to carry out subsequent access operation to the PCIe endpoint 1590 equipment.
S510: the analog response module determines the state of the PCIe endpoint 1590 equipment.
The analog response module further determines that the state of the PCIe endpoint 1590 equipment is abnormal offline or hair
Raw failure, it is offline if it is the PCIe endpoint 1590 unit exception, step 511 is executed, if it is the PCIe
Endpoint device breaks down, and executes step 512.
The analog response module can determine itself whether receive offline logical of PCIe endpoint 1590 unit exception
Know, it, can also be to according to whether receiving the notice determines that whether abnormal the PCIe endpoint 1590 equipment is offline
PCIe endpoint 1590 equipment sends probe message, the state to the determination PCIe endpoint 1590 equipment.
S511: if the analog response module determines that the PCIe endpoint 1590 unit exception is offline, Xiang Suoshu CPU
The offline notice of the PCIe endpoint 1590 unit exception is sent, so that the CPU is according to the PCIe endpoint 1590
The offline notice of unit exception, by the corresponding physical equipment of the PCIe endpoint 1590 equipment carry out down it is electrically operated and
Resource release operations.
S512: if the analog response module determines the PCIe endpoint 1590 device fails, described in reparation
The failure of PCIe endpoint 1590 equipment.
In the embodiment of the present invention, analog response module is being counted by the monitoring of the message status to access request
When device time-out after, if the message status of access request remains as " unfinished " state, analog response module
The analog response message for the access request that simulation generates just is sent to CPU, so that CPU will not ask the access
It asks whether corresponding process is completed to carry out overtime timing, keeps the normal operation of CPU inter-process, avoid
CPU inter access request timed out does not complete caused MCE reset issues.
In addition, due to further specifying the type of analog response message in the present embodiment so that CPU according to
While this browsing process of analog response message authentication is completed, additionally it is possible to confirm this access and non-once
Successfully access, and do not go to execute the operation to the next step of this access associated data accordingly and (such as read
Operation), therefore maintenance CPU of the embodiment of the present invention in the case where PCIe endpoint 1590 unit exception is offline is normal
While process flow, it is thus also avoided that CPU goes to execute some unnecessary operations, to avoid system resource
Waste.
Apparatus of the present invention embodiment
Analog response device provided in an embodiment of the present invention is applied in computer system, PCIe endpoint 1590 equipment
It is accessed in the computer system by PCIe bus, as shown in fig. 6, described device is set with PCIe endpoint 1590
Standby 130 and CPU110 interaction, the device include:
Monitoring unit 601 is sent out for the CPU110 in the computer system to the PCIe endpoint 1590 equipment
After sending access request, the message status of the access request is monitored, wherein the access request
Message status include " being completed " or " unfinished ", " unfinished " expression PCIe endpoint 1590
The response message of the not sent access request of equipment;
Determination unit 602, for when preset trigger condition reaches, according to the prison of the monitoring unit 601
Control result determines the message status of the access request;
Acquiring unit 603, for determining that the message status of the access request is " not in the determination unit 602
Complete " when, obtain the analog response message of the access request;
Response unit 604, for sending the simulation that the acquiring unit 603 obtains to the CPU110
Response message.
Further, in another Installation practice of the invention, as shown in fig. 7, the device can also be into one
Step includes:
Interactive unit 605, the access request sent for receiving the CPU110, Xiang Suoshu PCIe endpoint 1590 are set
The standby 130 forwarding access request;
Then the monitoring unit 601 is specifically used for monitoring whether the interactive unit 605 receives the PCIe
The response message for the access request that endpoint device is sent, if receiving what the PCIe endpoint 1590 equipment was sent
The message status of the access request is recorded as " being completed " by the response message of the access request.
Further, in another Installation practice of the invention, the monitoring unit 601 is also used to cache institute
State the access request that interactive unit 605 receives;
The monitoring unit 601 is specifically used for receiving the PCIe endpoint 1590 equipment in the interactive unit 605
It is when the response message of the access request sent, stamping for the access request of the caching is " complete
At " label, or delete caching the access request;
The determination unit 602 is specifically used for when preset trigger condition reaches, and inquires the monitoring unit
The access request of 601 cachings, if the label of the access request of caching is to be completed " or caching
The access request it is deleted, it is determined that the message status of the access request is " being completed ", if
The label of the access request of caching be unfinished " or the access request that caches do not have it is " complete
At " label, it is determined that the message status of the access request is " unfinished ".
Further, in another Installation practice of the invention, the monitoring unit 601 is also used to, in institute
After stating the access request that interactive unit 605 receives the CPU110 transmission, generates the access and ask
The analog response message asked, and cache the analog response message of the access request;
Then, the access that the acquiring unit 603 is specifically used for obtaining the caching of monitoring unit 601 is asked
The analog response message asked.
Further, in another Installation practice of the invention, the analog response message package of the access request
First kind analog response message or Second Type analog response message are included, the first kind analog response disappears
Breath indicates that the PCIe endpoint 1590 equipment does not support the access request, the Second Type analog response message to refer to
Show the PCIe endpoint 1590 unit exception.
Further, in another Installation practice of the invention, the preset trigger condition is the PCIe
Endpoint device is abnormal offline;
The monitoring unit 601 is also used to: monitor the PCIe endpoint 1590 equipment whether be abnormal offline,
When determining that the PCIe endpoint 1590 equipment is abnormal offline, the determination unit 602 is notified to execute the determination
The step of message status of the access request.
Further, in another Installation practice of the invention, the monitoring unit 601 is specifically used for: really
Whether the fixed interactive unit 605 receives the abnormal offline notification of the PCIe endpoint 1590 equipment, if so,
Determine that the PCIe endpoint 1590 equipment is abnormal offline.
Further, in another Installation practice of the invention, the interactive unit 605 is also used to:
The abnormal offline notification of the PCIe endpoint 1590 equipment is forwarded to the CPU110, so that the CPU110
According to the abnormal offline notification of the PCIe endpoint 1590 equipment 130 received, by the PCIe endpoint 1590 equipment
130 corresponding physical equipments carry out down electrically operated.
Further, in another Installation practice of the invention, the preset trigger condition is the access
The timer expired of request;
The monitoring unit 601 is also used to:
Timing is carried out for the access request starting timer that the CPU110 is sent, in the timer
After time-out, the step of notifying the determination unit 602 to execute the message status of the determination access request.
The monitoring unit 601 is also used to:
Determine the state of the PCIe endpoint 1590 equipment, however, it is determined that the state of the PCIe endpoint 1590 equipment is abnormal
Offline, then the interactive unit 605 is notified to send the PCIe endpoint 1590 equipment 130 to the CPU110
Abnormal offline notification, so that the CPU110 is according to the different of the PCIe endpoint 1590 equipment 130 received
Normal offline notification carries out down the corresponding physical equipment of the PCIe endpoint 1590 equipment 130 electrically operated.
Further, in another Installation practice of the invention, the CPU110 is set to the PCIe endpoint 1590
Standby 130 send a plurality of access request;
The monitoring unit 601 is specifically used for the message shape to every access request of a plurality of access request
State is monitored;
The determination unit 602 is specifically used for when preset trigger condition reaches, and counts a plurality of access
Whether the quantity for not receiving the access request of response message in request determines the quantity more than the first thresholding
Value;
The acquiring unit 603 is specifically used for obtaining the access when the quantity is more than the first threshold value
The analog response message of request.
It is the structure composition schematic diagram of computer provided in an embodiment of the present invention such as Fig. 8.The embodiment of the present invention
Computer can include:
Processor 801, memory 802, system bus 804 and communication interface 805.Processor 801 is deposited
It connects by system bus 804 between reservoir 802 and communication interface 805 and completes mutual communication.
Processor 801 may be single or multiple core central processing unit, perhaps for specific integrated circuit or
For the one or more integrated circuits for being configured to implement the embodiment of the present invention.
Memory 802 can be high speed RAM memory, or nonvolatile memory
(non-volatile memory), for example, at least a magnetic disk storage.
Memory 802 is used for computer executed instructions 803.Specifically, can be in computer executed instructions 803
Including program code.
When computer operation, processor 801 runs computer executed instructions 803, can execute Fig. 3-Fig. 5
Method flow described in one of any, is specifically not repeated to describe herein.
It will be recognized by those of ordinary skill in the art that the possibility of various aspects of the invention or various aspects is real
Existing mode can be embodied as system, method or computer program product.Therefore, of the invention each
The possibility implementation of aspect or various aspects can use complete hardware embodiment, complete software embodiment
The form of the embodiment of (including firmware, resident software etc.) or integration software and hardware aspect, at this
In be all referred to as " circuit ", " module " or " system ".In addition, each aspect of the present invention or each side
The possibility implementation in face can use the form of computer program product, and computer program product refers to storage
Computer readable program code in computer-readable medium.
Computer-readable medium can be computer-readable signal media or computer readable storage medium.Meter
Calculation machine readable storage medium storing program for executing including but not limited to electronics, magnetism, optics, electromagnetism, infrared or semiconductor system,
Equipment perhaps device or above-mentioned any appropriately combined, such as random access memory (RAM) read-only are deposited
It is reservoir (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), optical fiber, portable
Read-only memory (CD-ROM).
Processor in computer reads the computer readable program code of storage in computer-readable medium,
It enables a processor to execute function action specified in the combination of each step or each step in flow charts;
Generate the device for implementing defined function action in each block of the block diagram, or a combination of blocks.
Computer readable program code can execute, on the user's computer completely partially in the calculating of user
On machine execute, as individual software package, part on the user's computer and part in remote computer
On, or execute on a remote computer or server completely.It is also noted that implementing in certain substitutions
In scheme, each piece of function of indicating may not be by indicating in figure in each step or block diagram in flow charts
Sequence occurs.For example, depending on related function, two steps or two block reality shown in succession
On may be executed substantially concurrently or these blocks may be sometimes performed with reverse order.
Those of ordinary skill in the art may be aware that described in conjunction with the examples disclosed in this document respectively show
The unit and algorithm steps of example can be come with the combination of electronic hardware or computer software and electronic hardware
It realizes.These functions are implemented in hardware or software actually, the specific application depending on technical solution
And design constraint.Professional technician can realize each specific application using distinct methods
Described function, but such implementation should not be considered as beyond the scope of the present invention.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited to
This, anyone skilled in the art in the technical scope disclosed by the present invention, can readily occur in
Change or replacement should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention is answered
It is described to be subject to the protection scope in claims.
Claims (33)
1. a kind of computer system, which is characterized in that the computer system includes:
Processor;
High speed peripheral component interconnects PCIe bus, for connecting PCIe endpoint 1590 equipment;
The processor is for obtaining the operational order to access to the PCIe endpoint 1590 equipment, and according to the operational order, Xiang Suoshu PCIe endpoint 1590 equipment sends access request;
The computer system further includes analog response module, for after the processor sends the access request to the PCIe endpoint 1590 equipment, the message status of the access request is monitored, when preset trigger condition reaches, determine the message status of the access request, if the message status of the access request be it is unfinished, obtain the analog response message of the access request, and send the analog response message to the processor;
Wherein, the message status of the access request includes being completed or not completing, the unfinished response message for indicating the not sent access request of PCIe endpoint 1590 equipment;
The simulation corresponding message of the access request includes first kind simulation corresponding message or Second Type simulation corresponding message, the first kind analog response message indicates that the PCIe endpoint 1590 equipment does not support the access request, the Second Type analog response message to indicate the PCIe endpoint 1590 unit exception;
The processor is also used to simulate corresponding message or the Second Type analog response message according to the first kind, stops the subsequent access to the PCIe endpoint 1590 equipment.
2. computer system according to claim 1, it is characterized in that, the analog response module is set in the processor and the signal transmission path of the PCIe endpoint 1590 equipment, the access request sent specifically for receiving the processor, to access request described in the PCIe endpoint 1590 device forwards, the response message for itself whether receiving the access request that the PCIe endpoint 1590 equipment is sent monitored, if receiving the response message for the access request that the PCIe endpoint 1590 equipment is sent, the message status of the access request is recorded as being completed.
3. computer system according to claim 2, it is characterized in that, the computer system further include: PCIe exchanger, for multiple PCIe endpoint 1590 equipment to be connected to the processor, the downstream port of the PCIe exchanger is connect by the PCIe bus with multiple PCIe endpoint 1590 equipment;
The a port of the analog response module is connect by the PCIe bus with the upstream port of the PCIe exchanger, another port of the analog response module is connected to the processor.
4. computer system according to claim 2 or 3, it is characterized in that, the analog response module is also used to after receiving the access request that the processor is sent, cache the access request, if receiving the response message for the access request that the PCIe endpoint 1590 equipment is sent, by the completed label of stamping of the access request of caching, or delete the access request of caching;
Correspondingly, the analog response module is when preset trigger condition reaches, the access request of query caching, if the label of the access request of caching is or the access request of caching is deleted, the message status for then determining the access request is to be completed, if the label of the access request of caching is or label is not completed in the access request of caching, it is determined that the message status of the access request is unfinished.
5. computer system according to claim 2 or 3, it is characterized in that, the analog response module is also used to after receiving the access request that the processor is sent, and generates the analog response message of the access request, and cache the analog response message of the access request;
Correspondingly, the analog response module obtains the analog response message of the access request of own cache when determining the message status of the access request is not complete.
6. computer system according to claim 1-3, which is characterized in that the analog response module is realized using field programmable gate array.
7. -3 described in any item computer systems according to claim 1, which is characterized in that the preset trigger condition is that the PCIe endpoint 1590 equipment is abnormal offline;
Correspondingly, the analog response module is also used to monitor whether the PCIe endpoint 1590 equipment is abnormal offline, when determining that the PCIe endpoint 1590 equipment is abnormal offline, determines the message status of the access request.
8. computer system according to claim 7, which is characterized in that the analog response module is specifically used for the abnormal offline notification for itself whether receiving the PCIe endpoint 1590 equipment determined, if so, determining that the PCIe endpoint 1590 equipment is abnormal offline.
9. computer system according to claim 8, which is characterized in that the analog response module is also used to forward the abnormal offline notification of the PCIe endpoint 1590 equipment to the processor;
The processor is also used to be carried out down the corresponding physical equipment of the PCIe endpoint 1590 equipment electrically operated according to the abnormal offline notification of the PCIe endpoint 1590 equipment received.
10. computer system according to claim 1-3, which is characterized in that the preset trigger condition is the timer expired of the access request;
Correspondingly, the access request starting timer that the analog response module is also used to send for the processor carries out timing and determines the message status of the access request after the timer expired.
11. computer system according to claim 10, it is characterized in that, the analog response module is after sending the analog response message to the processor, it is also used to determine the state of the PCIe endpoint 1590 equipment, if it is determined that the state of the PCIe endpoint 1590 equipment is that exception is offline, then the abnormal offline notification of the PCIe endpoint 1590 equipment is sent to the processor;
The processor is also used to be carried out down the corresponding physical equipment of the PCIe endpoint 1590 equipment electrically operated according to the abnormal offline notification of the PCIe endpoint 1590 equipment received.
12. computer system according to claim 1, which is characterized in that the processor is specifically used for sending a plurality of access request to the PCIe endpoint 1590 equipment;
The analog response module is specifically used for being monitored the message status of every access request of a plurality of access request, when preset trigger condition reaches, count the quantity for not receiving the access request of response message in a plurality of access request, if the quantity is more than the first threshold value, the analog response message of the access request is then obtained, and sends the analog response message to the processor.
13. a kind of access method of high speed peripheral component interconnection PCIe endpoint 1590 equipment, which is characterized in that PCIe endpoint 1590 equipment is accessed in computer system by PCIe bus, which comprises
After the processor in the computer system sends access request to the PCIe endpoint 1590 equipment, the message status of the access request is monitored, wherein, the message status of the access request includes being completed or not completing, the unfinished response message for indicating the not sent access request of PCIe endpoint 1590 equipment;
When preset trigger condition reaches, the message status of the access request is determined;
If the message status of the access request is " unfinished ", the analog response message of the access request is obtained;
The analog response message of the access request is sent to the processor, wherein, the simulation corresponding message of the access request includes first kind analog response message or Second Type analog response message, the first kind analog response message indicates that the PCIe endpoint 1590 equipment does not support the access request, the Second Type analog response message indicates that the PCIe endpoint 1590 unit exception, the first kind analog response message or Second Type analog response message are used to indicate the processor suspension to the subsequent access of the PCIe endpoint 1590 equipment.
14. according to the method for claim 13, which is characterized in that further include:
Receive the access request that the processor is sent, access request described in Xiang Suoshu PCIe endpoint 1590 device forwards;
Then, the message status to the access request, which is monitored, includes:
The response message for itself whether receiving the access request that the PCIe endpoint 1590 equipment is sent is monitored, if receiving the response message for the access request that the PCIe endpoint 1590 equipment is sent, the message status of the access request is recorded as being completed.
15. according to the method for claim 14, which is characterized in that after receiving the access request that the processor is sent, further includes: cache the access request;
Then, the message status by the access request, which is recorded as being completed, includes:
If receiving the response message for the access request that the PCIe endpoint 1590 equipment is sent, by the completed label of stamping of the access request of caching, or the access request of caching is deleted;
It is described when preset trigger condition reaches, determine that the message status of the access request includes:
When preset trigger condition reaches, the access request of query caching, if the label of the access request of caching is or the access request of caching is deleted, the message status for then determining the access request is to be completed, if the label of the access request of caching is or label is not completed in the access request of caching, it is determined that the message status of the access request is unfinished.
16. method according to claim 14 or 15, which is characterized in that after receiving the access request that the processor is sent, further includes: generate the analog response message of the access request, and cache the analog response message of the access request;
Then, the analog response message for obtaining the access request includes:
Obtain the analog response message of the access request of own cache.
17. the described in any item methods of 3-15 according to claim 1, which is characterized in that the preset trigger condition is that the PCIe endpoint 1590 equipment is abnormal offline;
The method also includes:
Monitor whether the PCIe endpoint 1590 equipment is abnormal offline, when determining that the PCIe endpoint 1590 equipment is abnormal offline, the step of executing the message status of the determination access request.
18. according to the method for claim 17, which is characterized in that whether the monitoring PCIe endpoint 1590 equipment is abnormal includes: offline
The abnormal offline notification for itself whether receiving the PCIe endpoint 1590 equipment determined, if so, determining that the PCIe endpoint 1590 equipment is abnormal offline.
19. according to the method for claim 18, which is characterized in that further include:
The abnormal offline notification of the PCIe endpoint 1590 equipment is forwarded to the processor, so that abnormal offline notification of the processor according to the PCIe endpoint 1590 equipment received, the corresponding physical equipment of the PCIe endpoint 1590 equipment is carried out down electrically operated.
20. the described in any item methods of 3-15 according to claim 1, which is characterized in that the preset trigger condition is the timer expired of the access request;
The method also includes:
Timing, after the timer expired, the step of executing the message status of the determination access request are carried out for the access request starting timer that the processor is sent.
21. according to the method for claim 20, which is characterized in that further include:
Determine the state of the PCIe endpoint 1590 equipment, if it is determined that the state of the PCIe endpoint 1590 equipment is abnormal offline, the abnormal offline notification of the PCIe endpoint 1590 equipment is then sent to the processor, so that abnormal offline notification of the processor according to the PCIe endpoint 1590 equipment received, the corresponding physical equipment of the PCIe endpoint 1590 equipment is carried out down electrically operated.
22. according to the method for claim 13, which is characterized in that the processor sends a plurality of access request to the PCIe endpoint 1590 equipment;
The described method includes:
The message status of every access request of a plurality of access request is monitored;
When preset trigger condition reaches, the quantity for not receiving the access request of response message in a plurality of access request is counted;
If the quantity is more than the first threshold value, the analog response message of the access request is obtained.
23. a kind of analog response device, which is characterized in that be applied to computer system, high speed peripheral component interconnects PCIe endpoint 1590 equipment and accesses in the computer system by PCIe bus, and described device includes:
Monitoring unit, for after the processor in the computer system sends access request to the PCIe endpoint 1590 equipment, the message status of the access request is monitored, wherein, the message status of the access request includes being completed or not completing, the unfinished response message for indicating the not sent access request of PCIe endpoint 1590 equipment;
Determination unit, for determining the message status of the access request according to the monitored results of the monitoring unit when preset trigger condition reaches;
Acquiring unit when for determining that the message status of the access request is " unfinished " in the determination unit, obtains the analog response message of the access request;
Response unit, for sending the analog response message that the acquiring unit obtains to the processor, wherein, the analog response message includes first kind analog response message or Second Type analog response message, the first kind analog response message indicates that the PCIe endpoint 1590 equipment does not support the access request, the Second Type analog response message indicates that the PCIe endpoint 1590 unit exception, the first kind analog response message or the Second Type analog response message are used to indicate the processor suspension to the subsequent access of the PCIe endpoint 1590 equipment.
24. device according to claim 23, which is characterized in that further include:
Interactive unit, for receiving the access request of the processor transmission, access request described in Xiang Suoshu PCIe endpoint 1590 device forwards;
Then the monitoring unit is specifically used for monitoring the response message whether interactive unit receives the access request that the PCIe endpoint 1590 equipment is sent, if receiving the response message for the access request that the PCIe endpoint 1590 equipment is sent, the message status of the access request is recorded as being completed.
25. device according to claim 24, which is characterized in that the monitoring unit is also used to cache the access request that the interactive unit receives;
The monitoring unit is specifically used for when the interactive unit receives the response message for the access request that the PCIe endpoint 1590 equipment is sent, by the label for stamping " being completed " of the access request of the caching, or delete the access request of caching;
The determination unit is specifically used for when preset trigger condition reaches, inquire the access request of the monitoring unit caching, if the label of the access request of caching is or the access request of caching is deleted, the message status for then determining the access request is to be completed, if the label of the access request of caching is or label is not completed in the access request of caching, it is determined that the message status of the access request is unfinished.
26. the device according to claim 24 or 25, it is characterized in that, the monitoring unit is also used to, after the access request that the interactive unit receives that the processor is sent, the analog response message of the access request is generated, and caches the analog response message of the access request;
Then, the acquiring unit is specifically used for obtaining the analog response message of the access request of the monitoring unit caching.
27. the device according to claim 24 or 25, which is characterized in that the preset trigger condition is that the PCIe endpoint 1590 equipment is abnormal offline;
The monitoring unit is also used to: monitor whether the PCIe endpoint 1590 equipment is abnormal offline, when determining that the PCIe endpoint 1590 equipment is abnormal offline, and the step of notifying the determination unit to execute the message status of the determination access request.
28. device according to claim 27, which is characterized in that the monitoring unit is specifically used for: determining whether the interactive unit receives the abnormal offline notification of the PCIe endpoint 1590 equipment, if so, determining that the PCIe endpoint 1590 equipment is abnormal offline.
29. device according to claim 28, which is characterized in that the interactive unit is also used to:
The abnormal offline notification of the PCIe endpoint 1590 equipment is forwarded to the processor, so that abnormal offline notification of the processor according to the PCIe endpoint 1590 equipment received, the corresponding physical equipment of the PCIe endpoint 1590 equipment is carried out down electrically operated.
30. the device according to claim 24 or 25, which is characterized in that the preset trigger condition is the timer expired of the access request;
The monitoring unit is also used to:
Timing, after the timer expired, the step of notifying the determination unit to execute the message status of the determination access request are carried out for the access request starting timer that the processor is sent.
31. device according to claim 30, which is characterized in that the monitoring unit is also used to:
Determine the state of the PCIe endpoint 1590 equipment, if it is determined that the state of the PCIe endpoint 1590 equipment is abnormal offline, the interactive unit is then notified to send the abnormal offline notification of the PCIe endpoint 1590 equipment to the processor, so that abnormal offline notification of the processor according to the PCIe endpoint 1590 equipment received, the corresponding physical equipment of the PCIe endpoint 1590 equipment is carried out down electrically operated.
32. device according to claim 23, which is characterized in that the processor sends a plurality of access request to the PCIe endpoint 1590 equipment;
The monitoring unit is specifically used for being monitored the message status of every access request of a plurality of access request;
Whether the determination unit is specifically used for when preset trigger condition reaches, count the quantity for not receiving the access request of response message in a plurality of access request, determine the quantity more than the first threshold value;
The acquiring unit is specifically used for obtaining the analog response message of the access request when the quantity is more than the first threshold value.
33. a kind of computer characterized by comprising processor, memory, bus and communication interface;
The memory is for storing computer executed instructions, the processor is connect with the memory by the bus, when computer operation, the processor executes the computer executed instructions of the memory storage, so that the computer perform claim requires method described in 13-22 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610474435.9A CN106126454B9 (en) | 2013-05-20 | 2013-05-20 | Computer system, and access method and device of high-speed peripheral component interconnection endpoint equipment |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610474435.9A CN106126454B9 (en) | 2013-05-20 | 2013-05-20 | Computer system, and access method and device of high-speed peripheral component interconnection endpoint equipment |
CN201380002624.0A CN103797469B (en) | 2013-05-20 | 2013-05-20 | The access method of a kind of computer system, peripheral component interconnection endpoint device and device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380002624.0A Division CN103797469B (en) | 2013-05-20 | 2013-05-20 | The access method of a kind of computer system, peripheral component interconnection endpoint device and device |
Publications (3)
Publication Number | Publication Date |
---|---|
CN106126454A CN106126454A (en) | 2016-11-16 |
CN106126454B CN106126454B (en) | 2019-07-23 |
CN106126454B9 true CN106126454B9 (en) | 2019-08-30 |
Family
ID=57282197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610474435.9A Active CN106126454B9 (en) | 2013-05-20 | 2013-05-20 | Computer system, and access method and device of high-speed peripheral component interconnection endpoint equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106126454B9 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108733479B (en) * | 2017-04-24 | 2021-11-02 | 上海宝存信息科技有限公司 | Method for unloading solid state hard disk card and device using same |
CN110865960B (en) * | 2018-08-28 | 2022-07-22 | 上海忆芯实业有限公司 | Emulating a PCIe bus over a network |
CN112015580A (en) * | 2019-05-31 | 2020-12-01 | 瑞昱半导体股份有限公司 | Electronic device with data transmission and reception mechanism and data transmission and reception method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996146A (en) * | 2009-08-26 | 2011-03-30 | 戴尔产品有限公司 | Multi-mode processing module and using method thereof |
CN102023941A (en) * | 2009-09-23 | 2011-04-20 | 联想(北京)有限公司 | Laptop |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8782461B2 (en) * | 2010-09-24 | 2014-07-15 | Intel Corporation | Method and system of live error recovery |
-
2013
- 2013-05-20 CN CN201610474435.9A patent/CN106126454B9/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996146A (en) * | 2009-08-26 | 2011-03-30 | 戴尔产品有限公司 | Multi-mode processing module and using method thereof |
CN102023941A (en) * | 2009-09-23 | 2011-04-20 | 联想(北京)有限公司 | Laptop |
Also Published As
Publication number | Publication date |
---|---|
CN106126454A (en) | 2016-11-16 |
CN106126454B (en) | 2019-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103797469B (en) | The access method of a kind of computer system, peripheral component interconnection endpoint device and device | |
JP5953573B2 (en) | Computer system, method and apparatus for accessing a peripheral component interconnect express endpoint device | |
TWI569134B (en) | Storage medium, system and method for storage area network management using serial attached scsi expander | |
CN106502814B (en) | Method and device for recording error information of PCIE (peripheral component interface express) equipment | |
JP2012118958A (en) | Data prefetch in sas expander | |
CN107566214B (en) | Performance test method and device | |
US20140201356A1 (en) | Monitoring system of managing cloud-based hosts and monitoring method using for the same | |
CN107172171A (en) | A kind of service request processing method, device and computer-readable recording medium | |
CN106126454B9 (en) | Computer system, and access method and device of high-speed peripheral component interconnection endpoint equipment | |
CN105446657A (en) | Method for monitoring RAID card | |
TW201616371A (en) | System for retrieving console messages and method thereof and non-transitory computer-readable medium | |
CN104737150A (en) | System and method for accessing disk image files using HTML5 KVM/vMEDIA client running in a web browser | |
CN105580335B (en) | Method and apparatus for authorizing the access to shared resource | |
CN110704198B (en) | Data operation method, device, storage medium and processor | |
US20140115112A1 (en) | Server system and message processing method thereof | |
US20160156518A1 (en) | Server for automatically switching sharing-network | |
CN112367395A (en) | Alarm threshold modifying method, equipment and computer readable storage medium | |
CN104854951A (en) | Method for the reduction of signalling traffic on mobile devices | |
CN110290435B (en) | Optical fiber network management method and device and terminal equipment | |
CN110417593A (en) | A kind of device management method and device | |
CN104335194B (en) | The access method of a kind of computer system, peripheral component interconnection endpoint device and device | |
CN110019535B (en) | Database management method, database management device, storage medium and computer equipment | |
JP2015053555A (en) | Data transfer device and data transfer method | |
CN116405377B (en) | Network state detection method, protocol conversion component, equipment and storage medium | |
JP7368713B2 (en) | Service provision system, server, service provision method, and service provision program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CI03 | Correction of invention patent |
Correction item: Claims Correct: Zheng Que False: Error Number: 30-01 Page: full text Volume: 35 |
|
CI03 | Correction of invention patent |