CN106126454B - The access method and device of a kind of computer system, high speed peripheral component interconnection endpoint device - Google Patents

The access method and device of a kind of computer system, high speed peripheral component interconnection endpoint device Download PDF

Info

Publication number
CN106126454B
CN106126454B CN201610474435.9A CN201610474435A CN106126454B CN 106126454 B CN106126454 B CN 106126454B CN 201610474435 A CN201610474435 A CN 201610474435A CN 106126454 B CN106126454 B CN 106126454B
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
Application number
CN201610474435.9A
Other languages
Chinese (zh)
Other versions
CN106126454A (en
CN106126454B9 (en
Inventor
葛小宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610474435.9A priority Critical patent/CN106126454B9/en
Priority claimed from CN201380002624.0A external-priority patent/CN103797469B/en
Publication of CN106126454A publication Critical patent/CN106126454A/en
Application granted granted Critical
Publication of CN106126454B publication Critical patent/CN106126454B/en
Publication of CN106126454B9 publication Critical patent/CN106126454B9/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0024Peripheral 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 present embodiments relate to a kind of access methods of high speed peripheral component interconnection endpoint device, computer system and device, the message status for the access request that processor is sent is monitored, and when determining the not sent response message to the access request of PCIe endpoint 1590 equipment, the analog response message of access request is sent to processor, it enables a processor to according to the analog response message, the corresponding process of access request issued before confirmation has been completed, to close the timer for carrying out timing to the access request, and remove the access request of caching, the processing inside processor is kept to be normally carried out, it avoids access request and accumulates caused MCE reset issues in processor.

Description

A kind of computer system, the access method of high speed peripheral component interconnection endpoint device and Device
Technical field
The present embodiments relate to computer technology, especially a kind of access side of high speed peripheral component interconnection endpoint device Method, computer system and device.
Background technique
High speed peripheral component interconnects the letter of (Peripheral Component Interconnect Express, PCIe) Claim, is for calculating and the high-performance system bus on communications platform.PCIe bus is widely used in CPU and peripheral equipment Interconnection system in, calculate and store equipment in be used as core business channel.It is set by PCIe bus and the periphery interconnected CPU It is standby can there are many, such as network card equipment or solid state hard disk (Solid State Disk, SSD) etc. are set in this document by such It is standby to be referred to as PCIe endpoint 1590 equipment.
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, need to increase in case of constant power or remove PCIe endpoint 1590 equipment, i.e. hot plug Demand.Existing PCIe hot plug follows following operating process: operator is by initiating hot drawing request, hot plug control by lower button All possible drivings for accessing the PCIe endpoint 1590 equipment, which stop accessing, after device processed learns hot plug events, in notice system is somebody's turn to do PCIe endpoint 1590 equipment, and the resource for the PCIe endpoint 1590 equipment for needing to carry out hot plug is uninstalled, hereafter, to the PCIe endpoint 1590 Electric under equipment, operator extracts the 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, and the application such as External cable increases, and cable is easy abnormal It falls off, the offline situation of the PCIe endpoint 1590 unit exception that do not prenotice occurs.In addition, user is direct using solid-state hard disk SSD The scene of access system is more and more extensive, and due to the factor of user's habit, the possible without previous notice of user just directly plugs SSD Disk.However, in the case of abnormal suddenly for PCIe endpoint 1590 equipment mentioned above offline, if CPU has been initiated to this The read write command of a PCIe endpoint 1590 equipment, relevant instruction will always be in state to be done, when CPU sets the PCIe endpoint 1590 Standby access instruction 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 propose the access method of high speed peripheral component interconnection endpoint device a kind of, computer system and Device guarantees 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 refers to for obtaining the operational order to access to the PCIe endpoint 1590 equipment according to the operation It enables, Xiang Suoshu PCIe endpoint 1590 equipment sends access request;
The computer system further includes analog response module, for sending out in the processor to the PCIe endpoint 1590 equipment After sending the access request, the message status of the access request is monitored, when preset trigger condition reaches, really The message status of the fixed access request obtains the access if the message status of the access request is " unfinished " The analog response message of request, and the analog response message is sent to the processor;
Wherein, the message status of the access request includes " being completed " or " unfinished ", " unfinished " the expression institute State 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 the processing In device 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 monitors and itself whether receives the described of the PCIe endpoint 1590 equipment transmission The response message of access request, if the response message for the access request that the PCIe endpoint 1590 equipment is sent is received, by institute The message status for stating access request is recorded as " being completed ".
With reference to first aspect or the first possible implementation of first aspect, in second of possible implementation In, the computer system further include: PCIe exchanger, for multiple PCIe endpoint 1590 equipment to be connected to the processing The downstream port of device, the PCIe exchanger is connect by the PCIe bus with multiple PCIe endpoint 1590 equipment;
The upstream port that a port of the analog response module passes through the PCIe bus and the PCIe exchanger Connection, another port of the analog response module is connected to the processor.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect can The implementation of energy, in the third possible implementation, the analog response message of the access request includes the first kind Analog response message or Second Type analog response message, the first kind analog response message indicate that the PCIe endpoint 1590 is set It is standby that the access request, the Second Type analog response message is not supported to indicate the PCIe endpoint 1590 unit exception;
The processor is also used to be disappeared according to the first kind analog response message or the Second Type analog response Breath stops the subsequent access to the PCIe endpoint 1590 equipment.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect can The implementation of energy, in the fourth possible implementation, the preset trigger condition are PCIe endpoint 1590 equipment hair It is raw abnormal offline;
Correspondingly, the analog response module be 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 message status of the access request is determined.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect can The implementation of energy, in a fifth possible implementation, the preset trigger condition are the timing of the access request Device time-out;
Correspondingly, the access request starting timing that the analog response module is also used to send for the processor Device 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 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, to the visit Ask that the message status of request is monitored, wherein the message status of the access request includes " being completed " or " unfinished ", institute State " 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.
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 receiving The response message of the access request sent to the PCIe endpoint 1590 equipment, the message status of the access request is recorded as " being completed ".
In conjunction with the possible implementation of the first of second aspect or second aspect, in second of possible implementation In, the preset trigger condition is that the PCIe endpoint 1590 equipment is abnormal offline;
The method also includes:
Monitor the PCIe endpoint 1590 equipment whether be abnormal offline, determine the PCIe endpoint 1590 equipment be abnormal from When line, 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 implementation In, 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 expired Afterwards, 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 component interconnection PCIe endpoint 1590 equipment is accessed in the computer system by PCIe bus, and described device includes:
Monitoring unit sends access request to the PCIe endpoint 1590 equipment for the processor in the computer system Later, the message status of the access request is monitored, wherein the message status of the access request includes " being completed " Or " unfinished ", " unfinished " response message for indicating the not sent access request of PCIe endpoint 1590 equipment;
Determination unit, for determining institute according to the monitored results of the monitoring unit when preset trigger condition reaches State the message status of access request;
Acquiring unit obtains when for determining that the message status of the access request is " unfinished " in the determination unit Take the analog response message of the access request;
Response unit, for sending the analog response message that the acquiring unit obtains to the processor.
It further include handing in the second possible implementation in conjunction with the first possible implementation of the third aspect Mutual 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 whether the interactive unit receives the PCIe endpoint 1590 equipment transmission The access request response message, if the response for receiving the access request that the PCIe endpoint 1590 equipment is sent disappears Breath, is recorded as " being completed " for the message status of the access request.
Fourth aspect proposes a kind of computer, comprising: processor, memory, bus and communication interface;
For storing computer executed instructions, the processor is connected with the memory by the bus memory It connects, when computer operation, the processor executes the computer executed instructions of the memory storage, so that institute It states computer and executes a kind of access method of high speed peripheral component interconnection PCIe endpoint 1590 equipment described in second aspect.
5th aspect, proposes a kind of computer-readable medium, including computer executed instructions, when the processor of computer When executing the computer executed instructions, the computer executes a kind of high speed peripheral component interconnection PCIe described in second aspect The access method of endpoint device.
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, the simulation for sending access request to processor is rung Message is answered, is enabled a processor to according to the analog response message, the corresponding process of access request issued before confirmation is It completes, to close the timer for carrying out timing to the access request, and removes the access request of caching, keep in processor The processing in portion is normally carried out, and is avoided access request and is accumulated caused MCE reset issues 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 required in the prior art or embodiment Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings Other attached 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 propose the access method of high speed peripheral component interconnection endpoint device a kind of, 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 and be pre-processed, just straight The connection disconnected between PCIe endpoint 1590 equipment and processor is connect, processor will not generate the risk of MCE reset at this time.
PCIe endpoint 1590 equipment is directly extracted system to the embodiment of the present invention or the case where going offline of breaking down is referred to as The exception of PCIe endpoint 1590 equipment is 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, wraps in computer system shown in FIG. 1 CPU 110 and memory 120 are included, PCIe endpoint 1590 equipment 130 is connected to CPU110 by PCIe bus 140, and can be from the meter It is plugged away in calculation machine system.PCIe endpoint 1590 equipment 130 includes multiple types, 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, the PCIe All devices in domain connect with CPU 110 by PCIe bus 140 and receive the control of CPU110.
After CPU110 gets the operational order to access to PCIe endpoint 1590 equipment 130, CPU110 refers to according to operation It enables, issues access request to PCIe endpoint 1590 equipment 130, it is desirable that read operation is carried out to the register of PCIe endpoint 1590 equipment 130 or is write Operation, if PCIe endpoint 1590 equipment 130 is abnormal offline, CPU110 will not receive PCIe endpoint 1590 equipment 130 to CPU110 Access request response message, at this point, CPU just will be considered that the access request belongs to unfinished task, if such not complete It is accumulated in CPU at task to a certain extent, CPU just will be considered that whole system exception, quotes MCE mistake and is resetted.
The embodiment of the present invention increases analog response module 160 newly in systems, which is used for described After CPU110 sends the access request to the PCIe endpoint 1590 equipment 130, to the CPU110 access request sent Message status is monitored, if preset trigger condition reaches, the message status of the access request is still " not Complete ", i.e., the described not sent response message to the access request of PCIe endpoint 1590 equipment 130, the analog response module 160 is just The analog response message of the access request is obtained, and sends the analog response message to CPU110.Since the simulation is rung Answer message and access request heading having the same, the access request and the analog response message in correspondence with each other, CPU can be made to think that the corresponding process of access request of its sending previous has been completed, to close to the access request The timer of timing is carried out, and removes the access request of CPU own cache.
Wherein, the message status of the access request includes " being completed " or " unfinished ", described in " being completed " expression PCIe endpoint 1590 equipment has sent the response message of the access request, " unfinished " to indicate that the PCIe endpoint 1590 equipment is not sent The response message of the access request.
In addition, the analog response module 160 is also used in the processor to described in PCIe endpoint 1590 equipment transmission After access request, the analog response message of the access request is just generated, and the analog response for caching the access request disappears Breath, the analog response message of the subsequent access request for directly acquiring own cache of the analog response module 160.
In the embodiment of the present invention, since analog response module can be to the message status of the CPU access request sent It is monitored, and when determining the not sent response message to the access request of PCIe endpoint 1590 equipment, sends access to CPU and ask The analog response message asked enables CPU according to the analog response message, the corresponding stream of access request issued before confirmation Journey has been completed, to close the timer for carrying out timing to the access request, and removes the access request of caching, is kept Processing inside CPU is normally carried out, and is avoided access request and is accumulated caused MCE reset issues in CPU.
In a kind of specific embodiment of the present invention, analog response module 160 to the message status of the access request into Whether row monitoring itself can receive the response for the access request that the PCIe endpoint 1590 equipment 130 is sent by monitoring Message is realized, if the response that the analog response module receives the access request that the PCIe endpoint 1590 equipment is sent disappears The message status of the access request is recorded as " being completed " by breath, analog response module.
In one particular embodiment of the present invention, analog response module 160 can be arranged in CPU110 and each In transmission path between PCIe endpoint 1590 equipment 130, guarantee that the message between CPU110 and each PCIe endpoint 1590 equipment 130 all needs To pass through analog response module 160, so that whether analog response module 160 itself can receive the end PCIe by monitoring The response message for the access request that point device 130 is sent monitors the message status of the access request, and another kind realizes It in mode, can also be configured in PCIe endpoint 1590 equipment 130 in advance, so that PCIe endpoint 1590 equipment 130 is sent to CPU110 When the response message of the access request, the response message also is sent to analog response module, in this way it is also ensured that mould Quasi- respond module 160 monitors the message of the access request according to the response message of the access request itself whether is received State.Certainly, the implementation that those skilled in the art can also provide according to embodiments of the present invention, using other it is equivalent or Similar implementation realizes that analog response module 160 is monitored the message status of the access request.
As shown in Figure 1, analog response module 160 is arranged on the letter between CPU110 and each PCIe endpoint 1590 equipment 130 In number transmission path, in this way, the access request that CPU110 is issued needs to get to PCIe endpoint 1590 by analog response module 160 Equipment 130, therefore analog response module 160 can receive access request, also, due to the message of PCIe endpoint 1590 equipment transmission Need to get to CPU110 by analog response module 160, therefore whether analog response module 160 can receive according to itself It is described to determine whether PCIe endpoint 1590 equipment 130 sends for the response message to the access request sent to PCIe endpoint 1590 equipment 130 The response message of access request, and record the message status of the access request.Further, in the another of the embodiment of the present invention In kind specific implementation, after analog response module 160 receives the access request of CPU110 transmission, this can also be cached Access request, if the response message for the access request that subsequently received PCIe endpoint 1590 equipment 130 is sent, analog response module 160 can stamp the access request of caching the label of " being completed ", or delete the access request of caching, analog response Module 160 can inquire the message status of the access request, i.e. the access of query caching is asked when preset trigger condition reaches If the label of the label the asked perhaps access request of the query caching access request indicate the access request " unfinished " or The access request of caching is not deleted, and analog response module 160 determines that the message status of the access request is " unfinished ", 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 access request Analog response message, and send the analog response message to CPU110.
Wherein, analog response module 160 can generate institute when receiving the access request of CPU110 transmission in advance State the analog response message of access request, and by the analog response message of the access request of generation and the access request into Row association caching, subsequent analog response module 160 directly acquire the analog response message of the access request of caching.When So, analog response module 160 can also disappear determining the response for the access request for not receiving the transmission of PCIe endpoint 1590 equipment 130 When breath, just generate the analog response message of the access request, the embodiment of the present invention to specific implementation form without limitation.
As shown in Fig. 2, can be realized by PCIe exchanger 150 more if there are multiple PCIe endpoint 1590 equipment in system The connection of a PCIe endpoint 1590 equipment 130 and CPU110, in system shown in Fig. 2 other than each component shown in FIG. 1, also Including PCIe exchanger 150, which is connect by PCIe bus 140 with CPU110, downstream port A PCIe port is provided towards each PCIe endpoint 1590 equipment, each PCIe port is connected to often by PCIe bus 140 A PCIe endpoint 1590 equipment, PCIe exchanger 150 for data to be downstream routed to corresponding PCIe port, and from it is each solely Vertical PCIe port is by data upstream by CPU110.In Fig. 2, analog response module 160 be can be set in CPU110 In signal transmission path between PCIe exchanger 150, for receiving the access request of CPU110 sending, and CPU110 is sent out Access request out is cached, and Xiang Suoshu PCIe endpoint 1590 equipment 130 forwards the access request, to the report of the access request Literary state is monitored, however, it is determined that the response for itself receiving the access request that the PCIe endpoint 1590 equipment 130 is sent disappears The access request of own cache is stamped the label of " being completed ", or deletes the access request of own cache by breath, When preset trigger condition reaches, the label of the access request of query caching or the access request of caching, if the access The label of request indicates that the access request " unfinished " or the access request of caching are not deleted, and analog response 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 that PCIe endpoint 1590 is set Standby 130 are abnormal offline, and in such cases, whether analog response module 160 is also used to monitor the PCIe endpoint 1590 equipment different Often offline, in Fig. 1 and embodiment shown in Fig. 2, whether the determination of analog response module 160 itself receives PCIe endpoint 1590 equipment 130 abnormal offline notification (such as PCIe endpoint 1590 equipment be pulled out system interrupt notification), according to the PCIe endpoint 1590 equipment 130 abnormal offline notification determines that the PCIe endpoint 1590 equipment 130 is abnormal offline.Above-mentioned preset trigger condition can be with It is the timer expired of the access request, in such cases, analog response module 160 is also used to for PCIe endpoint 1590 equipment The 130 access request starting timers sent determine whether PCIe endpoint 1590 equipment 130 sends to visit after the timer expired The response message for asking request, in Fig. 1 and embodiment shown in Fig. 2, analog response module 160 is receiving CPU110 transmission Access request and after caching the access request, i.e., start timer for the access request.
The embodiment of the present invention, analog response module is by the monitoring of the message status to access request, in preset triggering When condition reaches, if the message status of access request remains as " unfinished " state, analog response module just generates simulation The analog response message of access request be sent to CPU so that CPU do not continue to it is whether complete to the corresponding process of the access request At progress timing, and the access request of own cache is removed, keep the normal operation of CPU inter-process, avoids CPU access Request timed out does not complete caused MCE reset issues.
In the above embodiments, analog response message of the analog response module 160 to the CPU110 access request sent It may include first kind analog response message or Second Type analog response message, the first kind analog response message refers to Show that the PCIe endpoint 1590 equipment 130 does not support the access request, the Second Type analog response message to indicate the PCIe Endpoint device 130 is abnormal, after the CPU110 receives the analog response message of access request, is also used to according to described first Type simulation response message or the Second Type analog response message determine that the access to the PCIe endpoint 1590 equipment 130 is lost It loses, and does not restart the operation of the reading of access number evidence accordingly.Due to further specifying analog response message in the present embodiment Type so that CPU according to this browsing process of analog response message authentication complete while, additionally it is possible to confirm this access And non-once successfully accesses, and does not go to execute the operation to the next step of this access associated data accordingly and (such as read behaviour Make), therefore maintenance CPU normal process flow of the embodiment of the present invention in the case where PCIe endpoint 1590 unit exception is offline is same When, it is thus also avoided that CPU goes to execute some unnecessary operations, to avoid the waste of system resource.
In yet another embodiment of the present invention, the CPU110 may specifically not for accessed PCIe endpoint 1590 equipment An only access request, such as a plurality of access request is sent, in such cases, analog response module 160 can send out the CPU Every message status of a plurality of access request sent all is monitored, such as caches each of a plurality of access request Item, the response message for whether receiving each access request to itself are monitored, right when preset trigger condition reaches The quantity for being not received by the access request of response message is counted, and obtaining message status in a plurality of access request is The quantity of the access request of " unfinished ", if the quantity is more than the first threshold value, the simulation for obtaining the access request is rung Message is answered, and sends the analog response message to the processor.In the present embodiment, as long as not there is an access request The response message being not received by, CPU will generate MCE reset, and actually CPU has certain Tolerance, only do not returning The access request quantity for returning response message is accumulated to after certain numerical value, can just generate MCE reset, therefore, the present embodiment setting First threshold value, when being only not received by the access request quantity of response message more than this first threshold value, analog response Analog response message is sent to CPU by 160 ability of module, is resetted to avoid the MCE of CPU.
Above-mentioned analog response module 160 can be realized by way of software or hardware, in one kind provided by the invention In embodiment, FPGA (Field-Programmable Gate Array) can be used, i.e., field programmable gate array is real It is existing.
CPU110 described in Fig. 1 and Fig. 2 is also a kind of example, such as can also be specific integrated circuit, regardless of which A kind of form realizes the function of processor in computer systems.Computer system described in the embodiment of the present invention, can be with It is calculation type server, is also possible to the server of management routing, such as interchanger, specific reality of the present invention to computer system Existing form is 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, being mentioned for the embodiment of the present invention The process to access to PCIe endpoint 1590 equipment supplied, the PCIe endpoint 1590 equipment access computer system, packet by PCIe bus It includes:
S301: after the CPU in the computer system sends access request to PCIe endpoint 1590 equipment, analog response mould Block is monitored the message status of the access request.
Specifically, the message status of the access request includes " being completed " or " unfinished ", described in " being completed " expression PCIe endpoint 1590 equipment has sent the response message of the access request, " unfinished " to indicate that the PCIe endpoint 1590 equipment is not sent The response message of the access request.
The analog response module is monitored the message status of the access request, can be by whether monitoring itself The response message for the access request that the PCIe endpoint 1590 equipment is sent is received to realize, if the analog response module connects Receive the response message for the access request that the PCIe endpoint 1590 equipment is sent, analog response module is by the access request Message status is recorded as " being completed ".
Further, analog response module can be set on CPU and the signal transmission path of PCIe endpoint 1590 equipment, this Sample, analog response module can receive the access request from CPU, also can receive the access from PCIe endpoint 1590 equipment The response message of request, analog response module can cache the access request after receiving access request, if subsequent receive To the response message of the access request, then the access request of caching is stamped to the label or analog response mould of " being completed " The access request of block deletion caching (in such cases, the message status of access request is by whether request to mark by cache access Note, if cache access is requested, then it represents that the message status of the access request does not complete, if the access request of caching is deleted, Indicate that the message status of the access request is completed).
S302: when preset trigger condition reaches, the analog response module determines the report of the access request Literary state.
The preset trigger condition can be the timer expired of the access request, be also possible to receive PCIe endpoint 1590 equipment is abnormal offline notice, and embodiment subsequent embodiment will be introduced specifically.
S303: if the message status of the access request is " unfinished ", the analog response module obtains the visit Ask the analog response message of 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, it is described Analog response message and access request heading having the same, the access request and the analog response message are mutual It is corresponding, CPU can be made to think 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, maintain processing inside CPU normally into Row avoids the MCE reset issues that access request accumulates caused CPU in CPU.
The analog response message of access request in the embodiment of the present invention is not issued by PCIe endpoint 1590 equipment, not described The true response message of access request can be generated by other module simulations, can be by the simulation in the embodiment of the present invention Respond module generates the analog response message of the access request.Analog response module can pre-generate the mould of the access request Quasi- response message, can also temporarily generate the access request when determining the message status of the access request is " unfinished " Analog response message.
The embodiment of the present invention, analog response module is by the monitoring of the message status to access request, in preset triggering When condition reaches, if the message status of access request remains as " unfinished " state, analog response module just generates simulation The analog response message of access request be sent to CPU so that CPU do not continue to it is whether complete to the corresponding process of the access request At progress timing, and the access request of own cache is removed, keep the normal operation of CPU inter-process, avoids CPU access Request timed out 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 and PCIe In signal transmission path between endpoint device, the embodiment of the present invention one specific browsing process is as shown in Figure 4, comprising:
S401: the CPU in computer system obtains operational order, and the operational order indicates the CPU to 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 endpoint 1590 The drive module of equipment receives the calling of upstream endpoint, is generated according to preconfigured access interface and is carried out to PCIe endpoint 1590 equipment The operational order of access, CPU obtain the operational order.
S402: the analog response module receives the access request from the CPU, caches the access request.
Since the analog response module is set in the signal transmission path between CPU and PCIe endpoint 1590 equipment, energy Enough receive the access request from CPU;
S403: the analog response module generates the analog response message of the access request, and by the analog response Message is associated with caching with the access request.
Analog response module can generate the visit in this step 403, that is, when caching the access request in advance It asks the analog response message of request, can also determine in the next steps when need analog response message, described in regeneration 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 the visit that the PCIe endpoint 1590 equipment is sent The response message of request is asked, if the analog response module receives the access request that the PCIe endpoint 1590 equipment is sent The access request of caching is stamped the label or analog response module of " being completed " by response message, analog response module Delete the access request of caching.
The analog response module can after step 404, i.e., it is asked to accessing described in the PCIe endpoint 1590 device forwards Start the monitoring after asking, can also be after step 401, i.e. CPU sends the access request to the PCIe endpoint 1590 equipment Just start the monitoring later.
S406: the analog response module receives the offline notice of the PCIe endpoint 1590 unit exception, determines the visit Ask the message status of request.
In the present embodiment, preset trigger condition is to receive the offline notice of the PCIe endpoint 1590 unit exception. 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 Out, the offline notice of the PCIe endpoint 1590 unit exception transmitted to CPU can pass through analog response module, which receives The offline notice of the PCIe endpoint 1590 unit exception determines that preset trigger condition reaches, inquires the report of the access request Literary state determines the message status.
S407: if the analog response module determines that the message status of the access request is " unfinished ", the simulation Respond module obtains the analog response message of the access request of own cache, and sends the analog response to the CPU Message.
In the present embodiment, the analog response message can be first kind analog response message, indicate the end PCIe Point device 130 does not support the access request, such as the analog response message to carry Unsupported Request (UR) and refer to Show, alternatively, the analog response message can be Second Type analog response message, indicates that the PCIe endpoint 1590 equipment 130 is different Often, such as the analog response message carries Completer Abort (CA) instruction.
S408: the CPU receives the analog response message, determines that the access is asked according to the analog response message It asks corresponding process 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 analog response Message corresponds to each other, and CPU can be made to think that the corresponding process of access request of its sending previous has been completed, to close The timer of timing is carried out to the access request, and removes the access request of CPU own cache, is finally maintained inside CPU Processing be normally carried out, avoid access request accumulated in CPU caused by CPU MCE reset issues.
Further, since the analog response message is also possible to carry UR or CA instruction, analog response module can also be into The instruction information that one step is carried according to the analog response message determines that the access to the PCIe endpoint 1590 equipment fails, and Access error handle.The access errors processing may include: to inhibit the CPU relevant to the access request into one Step operation (such as reading of data), or the state recording of the PCIe endpoint 1590 equipment is offline to be abnormal, to make CPU is obtained to stop to carry out subsequent access operation to the PCIe endpoint 1590 equipment.
S409: the offline notice of the PCIe endpoint 1590 unit exception is transmitted to the CPU by the analog response module.
The subsequent notice that can be offline according to the PCIe endpoint 1590 unit exception of the CPU, by the PCIe endpoint 1590 equipment Corresponding physical equipment carries out down electrically operated and relevant resource release operations.
In the embodiment of the present invention, analog response module by the monitoring of the message status to access request, receive by When the offline notice of the PCIe endpoint 1590 unit exception of access, if the message status of access request remains as " unfinished " state, The analog response message for the access request that simulation generates just is sent to CPU by analog response module, so that CPU will not be to the access It requests whether corresponding process is completed to carry out overtime timing, keeps the normal operation of CPU inter-process, avoid and visited inside CPU Ask that request timed out does not complete caused MCE reset issues.In the embodiment of the present invention, CPU and PCIe is arranged in analog response module In signal transmission path between endpoint device, whether can receive what accessed PCIe endpoint 1590 equipment issued by itself The response message of access request realizes the monitoring to access request message status, implements convenient, flexible, and efficiency is higher.
In addition, due to further specifying the type of analog response message in the present embodiment, so that CPU is rung according to the simulation While answering this browsing process of message authentication to complete, additionally it is possible to confirm this access and non-once successfully accesses, and accordingly It does not go to execute the operation to the next step of this access associated data (such as read operation), therefore the embodiment of the present invention is in PCIe While maintenance CPU in the case that endpoint device is abnormal offline normal process flow, it is thus also avoided that CPU go to execute it is some need not The operation wanted, to avoid the waste of system resource.
Embodiment of the present invention method two, analog response module is still set to CPU and PCIe endpoint 1590 equipment in the present embodiment Between signal transmission path in, as shown in figure 5, this method comprises:
S501: the CPU in computer system obtains operational order, and the operational order indicates the CPU to 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 access 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 analog response Message is associated with caching with the access request.
Analog response module can generate the visit in this step 503, that is, when caching the access request in advance It asks the analog response message of request, can also determine in the next steps when need analog response message, described in regeneration Analog response message.
Above-mentioned steps 503 and step 504 execute no successive point, and analog response module can receive the access It is started simultaneously at after 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 the visit that the PCIe endpoint 1590 equipment is sent The response message of request is asked, if the analog response module receives the access request that the PCIe endpoint 1590 equipment is sent The access request of caching is stamped the label or analog response module of " being completed " by response message, analog response module Delete the access request of caching.
S507: the analog response module determines the message status of the access request after the timer expired.
In the present embodiment, preset trigger condition is whether the timer of access request is overtime, the timing of the timer Time sets based on experience value, when which is the maximum tolerance for the response message that PCIe endpoint 1590 equipment sends access request Between, under normal circumstances, if PCIe endpoint 1590 equipment keeps normal, within the empirical value time, analog response module centainly may be used To 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 ", the simulation Respond module obtains the analog response message of the access request of own cache, and sends the analog response to the CPU Message.
After timer expired, the message status of access request described in analog response module polls, however, it is determined that the message State is " unfinished ", then can determine that accessed PCIe endpoint 1590 unit exception is offline substantially, CPU is unlikely to receive visit The response message of request is asked, at this point, MCE reset issues caused by the access request time-out in order to avoid cpu cache, simulation are rung Answer module that the analog response message generated in advance is sent to CPU.
In the present embodiment, the analog response message can be first kind analog response message, indicate the end PCIe Point device 130 does not support the access request, such as the analog response message to carry Unsupported Request (UR) and refer to Show or the analog response message can be Second Type analog response message, indicates that the PCIe endpoint 1590 equipment 130 is different Often, such as the analog response message carries Completer Abort (CA) instruction.
S509: the CPU receives the analog response message, determines that the access is asked according to the analog response message It asks corresponding process 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 analog response Message corresponds to each other, and CPU can be made to think that the corresponding process of access request of its sending previous has been completed, to close The timer of timing is carried out to the access request, and removes the access request of CPU own cache, is finally maintained inside CPU Processing be normally carried out, avoid access request accumulated in CPU caused by CPU MCE reset issues.
Further, since the analog response message is also possible to carry UR or CA instruction, analog response module can also be into The instruction information that one step is carried according to the analog response message, access error handle;Access errors processing can be with It include: to inhibit the CPU 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 carry out subsequent visit to the PCIe endpoint 1590 equipment Ask operation.
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 event occurs Barrier, it is offline if it is the PCIe endpoint 1590 unit exception, step 511 is executed, if it is the PCIe endpoint 1590 device fails, Execute step 512.
The analog response module can determine itself whether receive the offline notice of PCIe endpoint 1590 unit exception, according to Whether receive the notice and determine that whether abnormal the PCIe endpoint 1590 equipment is offline, can also send and visit to PCIe endpoint 1590 equipment Survey 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 sends institute The offline notice of PCIe endpoint 1590 unit exception is stated, so that the notice CPU offline according to the PCIe endpoint 1590 unit exception, The corresponding physical equipment of the PCIe endpoint 1590 equipment is subjected to down electrically operated and resource release operations.
S512: if the analog response module determines the PCIe endpoint 1590 device fails, the end PCIe is repaired The failure of point device.
In the embodiment of the present invention, analog response module is surpassed by the monitoring of the message status to access request in timer Shi Hou, if the message status of access request remains as " unfinished " state, the access that analog response module just generates simulation The analog response message of request is sent to CPU, so that whether CPU will not complete the corresponding process of the access request to carry out time-out Timing keeps the normal operation of CPU inter-process, avoids CPU inter access request timed out and does not complete caused MCE reset Problem.
In addition, due to further specifying the type of analog response message in the present embodiment, so that CPU is rung according to the simulation While answering this browsing process of message authentication to complete, additionally it is possible to confirm this access and non-once successfully accesses, and accordingly It does not go to execute the operation to the next step of this access associated data (such as read operation), therefore the embodiment of the present invention is in PCIe While maintenance CPU in the case that endpoint device is abnormal offline normal process flow, it is thus also avoided that CPU go to execute it is some need not The operation wanted, to avoid the waste of system resource.
Apparatus of the present invention embodiment
Analog response device provided in an embodiment of the present invention is applied in computer system, and PCIe endpoint 1590 equipment passes through PCIe bus accesses in the computer system, as shown in fig. 6, described device is interacted with PCIe endpoint 1590 equipment 130 and CPU110, The device includes:
Monitoring unit 601 sends to the PCIe endpoint 1590 equipment for the CPU110 in the computer system and accesses After request, the message status of the access request is monitored, wherein the message status of the access request includes " Complete " or " unfinished ", " unfinished " response message for indicating the not sent access request of PCIe endpoint 1590 equipment;
Determination unit 602, for when preset trigger condition reaches, according to the monitored results of the monitoring unit 601 Determine the message status of the access request;
Acquiring unit 603, for determining that the message status of the access request is " unfinished " in the determination unit 602 When, obtain the analog response message of the access request;
Response unit 604 disappears for sending the analog response that the acquiring unit 603 obtains to the CPU110 Breath.
Further, in another Installation practice of the invention, as shown in fig. 7, the device can further include:
Interactive unit 605, the access request sent for receiving the CPU110,130 turns of Xiang Suoshu PCIe endpoint 1590 equipment Send out access request described;
Then the monitoring unit 601 is set specifically for whether the monitoring interactive unit 605 receives the PCIe endpoint 1590 The response message for the access request that preparation is sent, if receiving the sound for the access request that the PCIe endpoint 1590 equipment is sent Message is answered, the message status of the access request is recorded as " being completed ".
Further, in another Installation practice of the invention, it is single that the monitoring unit 601 is also used to cache the interaction The access request that member 605 receives;
The monitoring unit 601 is specifically used for receiving what the PCIe endpoint 1590 equipment was sent in the interactive unit 605 When the response message of the access request, the access request of the caching is stamped into the label of " being completed ", or delete Except the access request of caching;
The determination unit 602 is specifically used for when preset trigger condition reaches, and inquires the monitoring unit 601 and caches The access request, if the label of the access request of caching be to be completed " or the access request that caches is 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 is not The access request of completion " or caching does not have " being completed " label, it is determined that the message status of the access request is " not It completes ".
Further, in another Installation practice of the invention, the monitoring unit 601 is also used to, single in the interaction After member 605 receives the access request that the CPU110 is sent, the analog response message of the access request is generated, and Cache the analog response message of the access request;
Then, the acquiring unit 603 is specifically used for obtaining the simulation for the access request that the monitoring unit 601 caches Response message.
Further, in another Installation practice of the invention, the analog response message of the access request includes first Type simulation response message or Second Type analog response message, the first kind analog response message indicate the end PCIe Point device does not support the access request, the Second Type analog response message to indicate the PCIe endpoint 1590 unit exception.
Further, in another Installation practice of the invention, the preset trigger condition is that the PCIe endpoint 1590 is set It is standby to be abnormal offline;
The monitoring unit 601 is also used to: monitoring whether the PCIe endpoint 1590 equipment is abnormal offline, described in determination When PCIe endpoint 1590 equipment is abnormal offline, the determination unit 602 is notified to execute the message of the determination access request The step of state.
Further, in another Installation practice of the invention, the monitoring unit 601 is specifically used for: determining the friendship Whether mutual unit 605 receives the abnormal offline notification of the PCIe endpoint 1590 equipment, if so, determining the PCIe endpoint 1590 equipment It 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 is according to connecing The abnormal offline notification of the PCIe endpoint 1590 equipment 130 received, by the corresponding physical equipment of the PCIe endpoint 1590 equipment 130 into It is electrically operated under row.
Further, in another Installation practice of the invention, the preset trigger condition is the access request Timer expired;
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 expired Afterwards, 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 that exception is offline, then The interactive unit 605 is notified to send the abnormal offline notification of the PCIe endpoint 1590 equipment 130 to the CPU110, so that institute CPU110 is stated according to the abnormal offline notification of the PCIe endpoint 1590 equipment 130 received, the PCIe endpoint 1590 equipment 130 is right The physical equipment answered carries out down electrically operated.
Further, in another Installation practice of the invention, the CPU110 is sent to the PCIe endpoint 1590 equipment 130 A plurality of access request;
The monitoring unit 601 is specifically used for carrying out the message status of every access request of a plurality of access request Monitoring;
The determination unit 602 is specifically used for when preset trigger condition reaches, and counts in a plurality of access request Whether the quantity for not receiving the access request of response message determines the quantity more than the first threshold value;
The acquiring unit 603 is specifically used for obtaining the access request when the quantity is more than the first threshold value Analog response message.
It is the structure composition schematic diagram of computer provided in an embodiment of the present invention such as Fig. 8.The computer of the embodiment of the present invention Can include:
Processor 801, memory 802, system bus 804 and communication interface 805.Processor 801, memory 802 and logical It connects by system bus 804 between letter interface 805 and completes mutual communication.
Processor 801 may be single or multiple core central processing unit, perhaps be specific integrated circuit or be configured At the one or more integrated circuits for implementing the embodiment of the present invention.
Memory 802 can be high speed RAM memory, or nonvolatile memory (non-volatile Memory), a for example, at least magnetic disk storage.
Memory 802 is used for computer executed instructions 803.Specifically, may include program in computer executed instructions 803 Code.
When computer operation, processor 801 runs computer executed instructions 803, and it is one of any can to execute Fig. 3-Fig. 5 The method flow is specifically not repeated to describe herein.
It will be recognized by those of ordinary skill in the art that the possibility implementation of various aspects of the invention or various aspects It can be embodied as system, method or computer program product.Therefore, each aspect of the present invention or various aspects Possible implementation can use complete hardware embodiment, complete software embodiment (including firmware, resident software etc.), or The form of the embodiment of integration software and hardware aspect, collectively referred to herein as " circuit ", " module " or " system ".In addition, The possibility implementation of each aspect of the present invention or various aspects can use the form of computer program product, computer journey Sequence product refers to the computer readable program code of storage in computer-readable medium.
Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer can Read storage medium including but not limited to electronics, magnetism, optics, electromagnetism, infrared or semiconductor system, equipment perhaps device or It is above-mentioned any appropriately combined, such as random access memory (RAM), read-only memory (ROM), the read-only storage of erasable programmable Device (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, so that place Reason device is able to carry out function action specified in the combination of each step or each step in flow charts;It generates and implements in block diagram Each piece or each piece of combination specified in function action device.
Computer readable program code can execute on the user's computer completely, part is held on the user's computer Row, as individual software package, part on the user's computer and part on the remote computer, or completely long-range It is executed on computer or server.It is also noted that in some alternative embodiments, each step or frame in flow charts Each piece of function of indicating may not be occurred by the sequence indicated in figure in figure.For example, depending on related function, show in succession Two steps or two blocks out may be actually executed substantially concurrently or these blocks sometimes may be by with opposite suitable Sequence executes.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the 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, according to the operational order, Access request is sent to the PCIe endpoint 1590 equipment;
The computer system further includes analog response module, for sending institute to the PCIe endpoint 1590 equipment in the processor After stating access request, the message status of the access request is monitored, when preset trigger condition reaches, determines institute State the message status of access request, if the message status of the access request be it is unfinished, obtain the access request Analog response message, and the analog response message is sent to the processor;
Wherein, the message status of the access request includes being completed or not completing, the unfinished expression PCIe endpoint 1590 The response message of the not sent access request of equipment;
The simulation corresponding message of the access request includes that first kind simulation corresponding message or Second Type simulate corresponding message, The first kind analog response message indicates that the PCIe endpoint 1590 equipment does not support the access request, the Second Type mould Quasi- response message indicates 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, in Only to the subsequent access of the PCIe endpoint 1590 equipment.
2. computer system according to claim 1, which is characterized in that the analog response module is set to the processing In device 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 monitors and itself whether receives the described of the PCIe endpoint 1590 equipment transmission The response message of access request, if the response message for the access request that the PCIe endpoint 1590 equipment is sent is received, by institute The message status for stating access request is recorded as being completed.
3. computer system according to claim 2, which is characterized in that the computer system further include: PCIe exchange Device, for multiple PCIe endpoint 1590 equipment to be connected to the processor, the downstream port of the PCIe exchanger passes through institute PCIe bus is stated to connect 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, which is characterized in that the analog response module is also used to connecing After receiving the access request that the processor is sent, the access request is cached, is set if receiving the PCIe endpoint 1590 The access request of caching is stamped completed label, or deleted by the response message for the access request that preparation is sent Except the access request of caching;
Correspondingly, the analog response module is when preset trigger condition reaches, the access request of query caching, if slow The label for the access request deposited is or the access request of caching is deleted, it is determined that the access The message status of request is to be completed, if the access that the label of the access request of caching is or caches is asked It asks and label is not completed, it is determined that the message status of the access request is unfinished.
5. computer system according to claim 2 or 3, which is characterized in that the analog response module is also used to connecing After receiving the access request that the processor is sent, the analog response message of the access request is generated, and cache institute State the analog response message of access request;
Correspondingly, it is slow to obtain itself when determining the message status of the access request is not complete for the analog response module The analog response message for the access request deposited.
6. computer system according to claim 1-3, which is characterized in that the analog response module is using existing Field programmable gate array is realized.
7. -3 described in any item computer systems according to claim 1, which is characterized in that the preset trigger condition is 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, in determination When the PCIe endpoint 1590 equipment is abnormal offline, the message status of the access request is determined.
8. computer system according to claim 7, which is characterized in that the analog response module is specifically used for determining certainly Whether body receives the abnormal offline notification of the PCIe endpoint 1590 equipment, if so, it is different to determine that the PCIe endpoint 1590 equipment occurs It is often offline.
9. computer system according to claim 8, which is characterized in that the analog response module is also used to the place Reason device forwards the abnormal offline notification of the PCIe endpoint 1590 equipment;
The processor is also used to the abnormal offline notification according to the PCIe endpoint 1590 equipment received, by the PCIe endpoint 1590 The corresponding physical equipment of equipment carries out down electrically operated.
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 analog response module be also used to for the processor send the access request start timer into Row timing determines the message status of the access request after the timer expired.
11. computer system according to claim 10, which is characterized in that the analog response module is to the processing After device sends the analog response message, it is also used to determine the state of the PCIe endpoint 1590 equipment, however, it is determined that the end PCIe The state of point device 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 the abnormal offline notification according to the PCIe endpoint 1590 equipment received, by the PCIe endpoint 1590 The corresponding physical equipment of equipment carries out down electrically operated.
12. computer system according to claim 1, which is characterized in that the processor is specifically used for the PCIe Endpoint device sends a plurality of access request;
The analog response module is specifically used for supervising the message status of every access request of a plurality of access request Control counts the access request for not receiving response message in a plurality of access request when preset trigger condition reaches Quantity obtains the analog response message of the access request if the quantity is more than the first threshold value, and to the processor Send the analog response message.
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 passes through PCIe bus accesses in computer system, which comprises
After the processor in the computer system sends access request to the PCIe endpoint 1590 equipment, the access is asked The message status asked is monitored, wherein the message status of the access request includes being completed or not completing, described not complete Indicate the response message of the not sent access request of the 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 of the access request accordingly disappears Breath includes first kind analog response message or Second Type analog response message, the first kind analog response message instruction The PCIe endpoint 1590 equipment does not support the access request, the Second Type analog response message to indicate that the PCIe endpoint 1590 is set Standby abnormal, the first kind analog response message or Second Type analog response message are used to indicate the processor suspension pair 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 institute The response message for stating the access request of PCIe endpoint 1590 equipment transmission, the message status of the access request is recorded as complete At.
15. according to the method for claim 14, which is characterized in that asked receiving the access that the processor is sent After asking, further includes: cache the access request;
Then, the message status by the access request, which is recorded as being completed, includes:
If the response message for the access request that the PCIe endpoint 1590 equipment is sent is received, by the access request of caching Stamp completed label, or delete the access request of caching;
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 It is deleted for the access request that is completed or caches, it is determined that the message status of the access request is complete At, if label is not completed in the access request that the label of the access request of caching is or caches, Determine that the message status of the access request is unfinished.
16. method according to claim 14 or 15, which is characterized in that in the visit for receiving the processor transmission After asking request, further includes: generate the analog response message of the access request, and cache the analog response of the access request Message;
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 described PCIe endpoint 1590 equipment is abnormal offline;
The method also includes:
It monitors whether the PCIe endpoint 1590 equipment is abnormal offline, is determining that the PCIe endpoint 1590 equipment is abnormal offline When, 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 it is different whether the monitoring PCIe endpoint 1590 equipment occurs Often include: offline
The abnormal offline notification for itself whether receiving the PCIe endpoint 1590 equipment determined, if so, determining 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 the processor is according to receiving The PCIe endpoint 1590 equipment abnormal offline notification, by the corresponding physical equipment of the PCIe endpoint 1590 equipment carry out it is lower electricity grasp Make.
20. the described in any item methods of 3-15 according to claim 1, which is characterized in that the preset trigger condition is described The timer expired of access request;
The method also includes:
Timing is carried out for the access request starting timer that the processor is sent to hold after the timer expired The step of message status of the row determination access request.
21. according to the method for claim 20, which is characterized in that further include:
Determine the state of the PCIe endpoint 1590 equipment, however, it is determined that the state of the PCIe endpoint 1590 equipment is that exception is offline, then to institute The abnormal offline notification that processor sends the PCIe endpoint 1590 equipment is stated, so that the processor is according to what is received The abnormal offline notification of PCIe endpoint 1590 equipment carries out down the corresponding physical equipment of the PCIe endpoint 1590 equipment electrically operated.
22. according to the method for claim 13, which is characterized in that the processor sends more to the PCIe endpoint 1590 equipment Access request;
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 access request for not receiving response message in a plurality of access request is counted Quantity;
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 is accessed in the computer system by PCIe bus, and described device includes:
Monitoring unit, for the processor in the computer system to the PCIe endpoint 1590 equipment send access request it Afterwards, the message status of the access request is monitored, wherein the message status of the access request is including being completed or not It completes, the unfinished response message for indicating the not sent access request of PCIe endpoint 1590 equipment;
Determination unit, for determining the visit according to the monitored results of the monitoring unit when preset trigger condition reaches Ask the message status of request;
Acquiring unit when for determining that the message status of the access request is " unfinished " in the determination unit, obtains institute State the analog response message of access request;
Response unit, for sending the analog response message that the acquiring unit obtains to the processor, wherein described Analog response message 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, described in the Second Type analog response message instruction PCIe endpoint 1590 unit exception, the first kind analog response message or the Second Type analog response message are used to indicate institute Processor suspension is stated 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 accesses described in Xiang Suoshu PCIe endpoint 1590 device forwards for receiving the access request of the processor transmission Request;
Then the monitoring unit is specifically used for monitoring whether the interactive unit receives the institute that the PCIe endpoint 1590 equipment is sent The response message of access request is stated, it, will 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 interactive unit The access request received;
The access that the monitoring unit is specifically used for receiving the PCIe endpoint 1590 equipment transmission in the interactive unit is asked When the response message asked, by the label for stamping " being completed " of the access request of the caching, or the institute of caching is deleted State access request;
The determination unit is specifically used for when preset trigger condition reaches, and inquires the access of the monitoring unit caching Request, if the access request that the label of the access request of caching is or caches is deleted, really The message status of the fixed access request is to be completed, if the label of the access request of caching is or caches Label is not completed in the access request, it is determined that the message status of the access request is unfinished.
26. the device according to claim 24 or 25, which is characterized in that the monitoring unit is also used to, in the interaction After unit receives the access request that the processor is sent, the analog response message of the access request is generated, and Cache 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 the end PCIe Point device is abnormal offline;
The monitoring unit is also used to: being monitored whether the PCIe endpoint 1590 equipment is abnormal offline, is being determined the end PCIe When point device is abnormal offline, the determination unit is notified to execute the step of the message status of the determination access request Suddenly.
28. device according to claim 27, which is characterized in that the monitoring unit is specifically used for: determining the interaction Whether unit receives the abnormal offline notification of the PCIe endpoint 1590 equipment, if so, determining that the PCIe endpoint 1590 equipment occurs It 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 the processor is according to receiving The PCIe endpoint 1590 equipment abnormal offline notification, by the corresponding physical equipment of the PCIe endpoint 1590 equipment carry out it is lower electricity grasp Make.
30. the device according to claim 24 or 25, which is characterized in that the preset trigger condition is that the access is asked The timer expired asked;
The monitoring unit is also used to:
Timing is carried out for the access request starting timer that the processor is sent, after the timer expired, is led to Know the step of determination unit executes the message status of the determination access request.
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, however, it is determined that the state of the PCIe endpoint 1590 equipment is that exception is offline, then notifies The interactive unit sends the abnormal offline notification of the PCIe endpoint 1590 equipment to the processor, so that the processor root According to the abnormal offline notification of the PCIe endpoint 1590 equipment received, the corresponding physical equipment of the PCIe endpoint 1590 equipment is carried out Under it is electrically operated.
32. device according to claim 23, which is characterized in that the processor sends more to the PCIe endpoint 1590 equipment Access request;
The monitoring unit is specifically used for being monitored the message status of every access request of a plurality of access request;
The determination unit is specifically used for when preset trigger condition reaches, and counts and does not receive in a plurality of access request Whether the quantity of the access request of response message determines the quantity more than the first threshold value;
The acquiring unit is specifically used for obtaining the analog response of the access request when the quantity is more than the first threshold value Message.
33. a kind of computer characterized by comprising processor, memory, bus and communication interface;
For storing computer executed instructions, the processor is connect with the memory by the bus memory, When computer operation, the processor executes the computer executed instructions of the memory storage, so that described Computer perform claim requires method described in 13-22 any one.
CN201610474435.9A 2013-05-20 2013-05-20 Computer system, and access method and device of high-speed peripheral component interconnection endpoint equipment Active CN106126454B9 (en)

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 true CN106126454B (en) 2019-07-23
CN106126454B9 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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
CN106126454B9 (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN103797469B (en) The access method of a kind of computer system, peripheral component interconnection endpoint device and device
US10834015B2 (en) Dynamic resource allocation for sensor devices on a mixed-infrastructure network
CN107547589B (en) Data acquisition processing method and device
CN109391505B (en) Network instance management method and related equipment
CN106502814B (en) Method and device for recording error information of PCIE (peripheral component interface express) equipment
JP6851952B2 (en) Data collection device and data collection method
CN106126454B (en) The access method and device of a kind of computer system, high speed peripheral component interconnection endpoint device
US20140201356A1 (en) Monitoring system of managing cloud-based hosts and monitoring method using for the same
CN105446657A (en) Method for monitoring RAID card
CN104067599A (en) Network state monitoring system
US9571333B2 (en) Network device and method for maintaining network connection
CN110247812A (en) A kind of more cluster management methods, device, system and associated component
TWI539273B (en) Concurrent network application scheduling for reduced power consumption
CN112367395A (en) Alarm threshold modifying method, equipment and computer readable storage medium
CN115412609A (en) Service processing method, device, server and storage medium
KR20110102983A (en) Apparatus and method for dynamic lane operation in multi-lane based ethernet
CN115421997A (en) Reporting method, processor, terminal equipment and computer readable storage medium
CN110752939B (en) Service process fault processing method, notification method and device
CN108303115A (en) A kind of operating range computation processing method and server
CN110019535B (en) Database management method, database management device, storage medium and computer equipment
CN202632199U (en) Server restorer
CN104335194B (en) The access method of a kind of computer system, peripheral component interconnection endpoint device and device
KR100574894B1 (en) Method for processing communication of remote test unit in communication network management system
TWM643016U (en) Power source equipment
CN104951338B (en) A kind of Time Attendance Device Service-Port update method and device

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: Cuo Wu

Number: 30-01

Page: Quan Wen

Volume: 35

CI03 Correction of invention patent