CN102360241A - Reset processing method, device and system of equipment - Google Patents
Reset processing method, device and system of equipment Download PDFInfo
- Publication number
- CN102360241A CN102360241A CN2011102891238A CN201110289123A CN102360241A CN 102360241 A CN102360241 A CN 102360241A CN 2011102891238 A CN2011102891238 A CN 2011102891238A CN 201110289123 A CN201110289123 A CN 201110289123A CN 102360241 A CN102360241 A CN 102360241A
- Authority
- CN
- China
- Prior art keywords
- equipment
- pci
- main equipment
- bridge device
- main
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention provides a reset processing method, device and system of equipment. The method comprises the following steps: rescanning bridge equipment connected below main equipment after the main equipment is reset; and sending the stored configuration information corresponding to each PCI (peripheral component interconnect) equipment down to the PCI equipment which is not powered off and is connected below the bridge equipment respectively so as to open PCI channels corresponding to the PCI equipment. The device comprises a scanning module and a sending down module. The system comprises the main equipment, a plurality of bridge equipment connected below the main equipment and a plurality of PCI equipment connected below the bridge equipment, wherein the main equipment comprises the reset processing device of the equipment. By adopting the method, the device and the system, the efficiency of system recovery after abnormal reset of the main equipment is improved.
Description
Technical field
The present invention relates to the communication technology, relate in particular to a kind of reset processing method, device and system of equipment.
Background technology
Peripheral device interconnection (Peripheral Component Interconnect; Hereinafter to be referred as: PCI) be a kind of standard of releasing in 1991 by Intel company that is used to define local bus; It has set up a kind of high-performance, low cost, compatible strong industrial bus standard; Nearly 10 expansion cards of deferring to the PCI standard, for example sound card, network interface cards etc. are installed in permission in computing machine.The operation of PCI chip, plug-in card and motherboard (mainboard) is independent of CPU, makes pci bus can adapt to the variation of CPU upgrading, CPU element that simultaneously can compatible how tame manufacturer.In addition, PCI equipment can independently be accomplished data and transmit, and does not need CPU to intervene, so the PCI operation of equipment can be parallel with the operation of CPU.
In the prior art, main equipment is in order to know the relevant information of each PCI equipment that it connects down, so that PCI equipment is conducted interviews; Main equipment is when each the startup, and the CPU autoscan pci bus in the main equipment is discerned all devices on the pci bus; Can recognize the bridge device that pci bus connects earlier; Continue the PCI equipment that connects below this bridge device of scanning again, when accomplish this bridge device and below after the scanning of all PCI equipment, begin to scan second bridge device; So circulation is accomplished all bridge devices and PCI equipment up to scanning.
Yet after exceptional reset appearred in main equipment, CPU still repeated above-mentioned steps, again all bridge devices on the pci bus and PCI equipment was scanned and initialization, and whole scanning process is very consuming time, had reduced the efficient of system recovery behind the main equipment exceptional reset.
Summary of the invention
The present invention provides a kind of reset processing method, device and system of equipment, in order to solve scanning process defective very consuming time in the prior art, the efficient of system recovery behind the raising main equipment exceptional reset.
The present invention provides a kind of reset processing method of equipment, comprising:
After main equipment resetted, the bridge device that said main equipment is connected down rescaned, and obtained the corresponding configuration information of said bridge device;
With the corresponding configuration information of preserving of each PCI equipment, be issued to each the not electric down PCI equipment that connects under the said bridge device respectively, to open the corresponding PCI passage of said PCI equipment.
The present invention provides a kind of reset processing device of equipment, comprising:
Scan module is used for after main equipment resets, and the bridge device that said main equipment is connected down rescans;
Issue module, be used for, be issued to each the not electric down PCI equipment that connects under the said bridge device respectively, to open the corresponding PCI passage of said PCI equipment with the corresponding configuration information of preserving of each PCI equipment.
The present invention provides a kind of reset processing system of equipment, comprises main equipment, is connected a plurality of bridge devices under the said main equipment, is connected a plurality of PCI equipment under the said bridge device, and said main equipment comprises the reset processing device of the said equipment.
The reset processing method of equipment of the present invention, device and system; Through preserving the corresponding configuration information of each PCI equipment in advance, after main equipment resets, directly configuration information is issued to not each PCI equipment of electricity down; To open the corresponding PCI passage of PCI equipment; Avoided PCI equipment is carried out multiple scanning and initialization, solved defective very consuming time in the prior art, improved the efficient of system recovery behind the main equipment exceptional reset the scanning process of PCI equipment.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of the reset processing method embodiment one of present device;
Fig. 2 is the process flow diagram of the reset processing method embodiment two of present device;
Fig. 3 is the network architecture synoptic diagram among the reset processing method embodiment two of present device;
Fig. 4 is the structural representation of the reset processing device embodiment one of present device;
Fig. 5 is the structural representation of the reset processing device embodiment two of present device.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 1 is the process flow diagram of the reset processing method embodiment one of present device, and is as shown in Figure 1, and present embodiment provides a kind of reset processing method of equipment, can specifically comprise the steps:
Step 101, after main equipment resetted, the bridge device that said main equipment is connected down rescaned.
Break down etc. when unusual at main equipment, need reset main equipment.After main equipment resets; Main equipment adopts " depth-first " algorithm that each equipment that it connects is down carried out corresponding reset processing, and main equipment finds its first bridge device that connects down earlier, and this bridge device is rescaned; For this bridge device reserves Bus number, resource space etc.; And obtain the corresponding configuration information of this bridge device, to realize making this bridge device to carry out proper communication with main equipment to the reinitializing of this bridge device.
Step 102 with the corresponding configuration information of preserving of each PCI equipment, is issued to each the not electric down PCI equipment that connects under the said bridge device respectively, to open the corresponding PCI passage of said PCI equipment.
After a bridge device that connects under the main equipment was reinitialized, main equipment continued each the not electric down PCI equipment that connects under this bridge device is carried out reset processing.Particularly, in the present embodiment, on main equipment, preserve the corresponding configuration information of reserving when starting first of each PCI equipment; Main equipment need not PCI equipment is rescaned and initialization; Only need the corresponding configuration information of each PCI equipment with this locality preservation, be issued to each the PCI equipment that connects under the bridge device respectively, PCI equipment is not down when resetting owing to main equipment; Then need not the hardware of PCI equipment is carried out initialization; Only need be according to configuration information with the state of the software synchronization in each PCI equipment to its hardware, to open the corresponding PCI passage of PCI equipment, then PCI equipment just can be communicated by letter with bridge device and main equipment normally.
After the reset processing of accomplishing each the PCI equipment that connects under the bridge device; Continue repetition above-mentioned steps 101-102; PCI equipment to next bridge device and connection down thereof carries out reset processing, till the scanning process of all bridge devices of accomplishing the main equipment connection.
Present embodiment provides a kind of reset processing method of equipment; Through preserving the corresponding configuration information of each PCI equipment in advance, after main equipment resets, directly configuration information is issued to not each PCI equipment of electricity down; To open the corresponding PCI passage of PCI equipment; Avoided PCI equipment is carried out multiple scanning and initialization, solved defective very consuming time in the prior art, improved the efficient of system recovery behind the main equipment exceptional reset the scanning process of PCI equipment.
Fig. 2 is the process flow diagram of the reset processing method embodiment two of present device, and is as shown in Figure 2, and present embodiment provides a kind of reset processing method of equipment, can specifically comprise the steps:
Fig. 3 is the network architecture synoptic diagram among the reset processing method embodiment two of present device; As shown in Figure 3, CPU is arranged in main equipment, is connected with bridge device 1, bridge device 2, bridge device 3... through bus 1 under the main equipment; Bridge device 1 time connects a PCI equipment respectively through bus 2, bus 3; Bridge device 2 connects the another one bridge device through bus 4, connects a PCI equipment through bus 7, and bridge device 3 connects a PCI equipment respectively through bus 8, bus 9.In the present embodiment, when main equipment started first, main equipment adopted " depth-first " algorithm that each equipment that main equipment connects is down scanned and initialization.Main equipment at first finds bridge device 1, and this bridge device is scanned, and for this bridge device reserves Bus number and resource space, realizes the initialization of bridge device.
Step 202, main equipment scans each the PCI equipment that connects under the bridge device, obtains the corresponding configuration information of each said PCI equipment, and the configuration information that each PCI equipment is corresponding is kept at this locality.
After main equipment is accomplished the scanning and initialization to a bridge device; Main equipment continues each the PCI equipment that connects under this bridge device is scanned; Call the initialization interface of each PCI equipment respectively, accomplish initialization, obtain the corresponding configuration information of each PCI equipment through scanning to this PCI equipment; And the configuration information that each PCI equipment is corresponding is kept at main equipment this locality, uses in order to the break down back that resets of follow-up main equipment.
After the scanning and initialization of all PCI equipment of accomplishing a bridge device and connecting down; Main equipment begins to scan next bridge device again; Like bridge device 2, promptly repeat above-mentioned steps 201-202, accomplish all bridge devices and the PCI equipment that main equipment connects down up to scanning.
When main equipment breaks down, descend electricity to restart to main equipment and bridge device in the present embodiment, and each the PCI equipment that connects under the maintenance bridge device is not down.This step is for after main equipment resets, and main equipment rescans the bridge device that it connects down, and obtains the corresponding configuration information of bridge device, and bridge device is reinitialized.
The corresponding configuration information of each PCI equipment that step 205, main equipment will be preserved is issued to each the not electric down PCI equipment that connects under the said bridge device respectively, to open the corresponding PCI passage of said PCI equipment.
After main equipment reinitializes its bridge device that connects down; Owing to when main equipment starts first, got access to each not electric down PCI configuration of devices information; And be kept at main equipment this locality, then main equipment need not PCI equipment is rescaned and initialization, only needs the corresponding configuration information of each PCI equipment that this locality is preserved; Be issued to each the PCI equipment that connects under the bridge device respectively; Because PCI equipment was not electric down when main equipment resetted, and then need not the hardware of PCI equipment is carried out initialization, only need according to configuration information the state of the software synchronization in each PCI equipment to its hardware; To open the corresponding PCI passage of PCI equipment, then PCI equipment just can be communicated by letter with bridge device and main equipment normally.
After the reset processing of all PCI equipment of accomplishing a bridge device and connecting down; Main equipment begins to scan next bridge device again; Like bridge device 2, promptly repeat above-mentioned steps 204-205, up to all bridge devices of accomplishing connection under the main equipment and the reset processing of PCI equipment.
Present embodiment provides a kind of reset processing method of equipment; Through preserving the corresponding configuration information of each PCI equipment in advance; After main equipment resets, directly configuration information is issued to not each PCI equipment of electricity down, to open the corresponding PCI passage of PCI equipment; Avoided PCI equipment is carried out multiple scanning and initialization; Solved defective very consuming time in the prior art, improved the efficient of system recovery behind the main equipment exceptional reset, thereby accelerated the speed of device start the scanning process of PCI equipment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of programmed instruction; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Fig. 4 is the structural representation of the reset processing device embodiment one of present device, and is as shown in Figure 4, and present embodiment provides a kind of reset processing device of equipment, can specifically carry out each step among the said method embodiment one, repeats no more here.The reset processing device of the equipment that present embodiment provides can specifically comprise scan module 401 and issue module 402.Wherein, scan module 401 is used for after main equipment resets, and the bridge device that said main equipment is connected down rescans.Issue module 402 and be used for, be issued to each the not electric down PCI equipment that connects under the said bridge device respectively, to open the corresponding PCI passage of said PCI equipment with the corresponding configuration information of preserving of each PCI equipment.
Fig. 5 is the structural representation of the reset processing device embodiment two of present device, and is as shown in Figure 5, and present embodiment provides a kind of reset processing device of equipment, can specifically carry out each step among the said method embodiment two, repeats no more here.The reset processing device of the equipment that present embodiment provides is on above-mentioned basis shown in Figure 4; Can also comprise acquisition module 501; Acquisition module 501 is used for when said main equipment starts first, after the bridge device that under to said main equipment, connects scans, respectively each the PCI equipment that connects under the said bridge device is scanned; Obtain the corresponding configuration information of each said PCI equipment, and it is local that the corresponding configuration information of said each PCI equipment is kept at said main equipment.
Further; The reset processing device of the equipment that present embodiment provides can also comprise restarts control module 502; Restarting control module 502 is used for when said main equipment breaks down; Descend electricity to restart said main equipment with the bridge device that said main equipment is connected down, each the PCI equipment that keeps connecting under the said bridge device is in non-power-down state.
Particularly, the configuration information in the present embodiment comprises Bus number, reserved resource space and the configuration space of distribution.
Present embodiment provides a kind of reset processing device of equipment; Through preserving the corresponding configuration information of each PCI equipment in advance; After main equipment resets, directly configuration information is issued to not each PCI equipment of electricity down, to open the corresponding PCI passage of PCI equipment; Avoided PCI equipment is carried out multiple scanning and initialization; Solved defective very consuming time in the prior art, improved the efficient of system recovery behind the main equipment exceptional reset, thereby accelerated the speed of device start the scanning process of PCI equipment.
Present embodiment also provides a kind of reset processing system of equipment; This reset processing system specifically comprises main equipment, be connected a plurality of bridge devices under the said main equipment, be connected a plurality of PCI equipment under the said bridge device, and said main equipment comprises the reset processing device of above-mentioned Fig. 4 or equipment shown in Figure 5.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.
Claims (9)
1. the reset processing method of an equipment is characterized in that, comprising:
After main equipment resetted, the bridge device that said main equipment is connected down rescaned;
With the corresponding configuration information of preserving of each PCI equipment, be issued to each the not electric down PCI equipment that connects under the said bridge device respectively, to open the corresponding PCI passage of said PCI equipment.
2. method according to claim 1 is characterized in that, also comprises:
When said main equipment starts first; After the bridge device that under to said main equipment, connects scans; Respectively each the PCI equipment that connects under the said bridge device is scanned; Obtain the corresponding configuration information of each said PCI equipment, and it is local that the corresponding configuration information of said each PCI equipment is kept at said main equipment.
3. method according to claim 1 and 2 is characterized in that, also comprises:
When said main equipment breaks down, descend electricity to restart said main equipment with the bridge device that said main equipment is connected down, each the PCI equipment that keeps connecting under the said bridge device is in non-power-down state.
4. method according to claim 1 is characterized in that, said configuration information comprises Bus number, reserved resource space and the configuration space of distribution.
5. the reset processing device of an equipment is characterized in that, comprising:
Scan module is used for after main equipment resets, and the bridge device that said main equipment is connected down rescans;
Issue module, be used for, be issued to each the not electric down PCI equipment that connects under the said bridge device respectively, to open the corresponding PCI passage of said PCI equipment with the corresponding configuration information of preserving of each PCI equipment.
6. device according to claim 5 is characterized in that, also comprises:
Acquisition module; Be used for when said main equipment starts first; After the bridge device that under to said main equipment, connects scans; Respectively each the PCI equipment that connects under the said bridge device is scanned, obtain the corresponding configuration information of each said PCI equipment, and it is local that the corresponding configuration information of said each PCI equipment is kept at said main equipment.
7. according to claim 5 or 6 described devices, it is characterized in that, also comprise:
Restart control module, be used for when said main equipment breaks down, descend electricity to restart said main equipment with the bridge device that said main equipment is connected down, each the PCI equipment that keeps connecting under the said bridge device is in non-power-down state.
8. device according to claim 5 is characterized in that, said configuration information comprises Bus number, reserved resource space and the configuration space of distribution.
9. the reset processing system of an equipment; It is characterized in that; Comprise main equipment, be connected a plurality of bridge devices under the said main equipment, be connected a plurality of PCI equipment under the said bridge device, said main equipment comprises the reset processing device of each described equipment among the claim 5-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102891238A CN102360241A (en) | 2011-09-23 | 2011-09-23 | Reset processing method, device and system of equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102891238A CN102360241A (en) | 2011-09-23 | 2011-09-23 | Reset processing method, device and system of equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102360241A true CN102360241A (en) | 2012-02-22 |
Family
ID=45585577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011102891238A Pending CN102360241A (en) | 2011-09-23 | 2011-09-23 | Reset processing method, device and system of equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102360241A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110858184A (en) * | 2018-08-24 | 2020-03-03 | 龙芯中科技术有限公司 | PCI bus device enumeration method and device |
CN111767242A (en) * | 2020-05-28 | 2020-10-13 | 西安广和通无线软件有限公司 | PCIE equipment control method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6393558B1 (en) * | 1998-07-29 | 2002-05-21 | Samsung Electronics Co., Ltd. | Peripheral component interconnect (PCI) card for selectively processing a PCI bus reset signal and method for resetting the PCI card |
CN101017393A (en) * | 2007-02-06 | 2007-08-15 | 杭州华为三康技术有限公司 | Method and device for controlling electric sequence of distributed system |
CN101034365A (en) * | 2007-04-23 | 2007-09-12 | 杭州华为三康技术有限公司 | Failure diagnosis method, device and system for PCI system |
CN101499045A (en) * | 2008-02-01 | 2009-08-05 | 英业达股份有限公司 | Method for implementing hot plug of PCI adapter |
-
2011
- 2011-09-23 CN CN2011102891238A patent/CN102360241A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6393558B1 (en) * | 1998-07-29 | 2002-05-21 | Samsung Electronics Co., Ltd. | Peripheral component interconnect (PCI) card for selectively processing a PCI bus reset signal and method for resetting the PCI card |
CN101017393A (en) * | 2007-02-06 | 2007-08-15 | 杭州华为三康技术有限公司 | Method and device for controlling electric sequence of distributed system |
CN101034365A (en) * | 2007-04-23 | 2007-09-12 | 杭州华为三康技术有限公司 | Failure diagnosis method, device and system for PCI system |
CN101499045A (en) * | 2008-02-01 | 2009-08-05 | 英业达股份有限公司 | Method for implementing hot plug of PCI adapter |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110858184A (en) * | 2018-08-24 | 2020-03-03 | 龙芯中科技术有限公司 | PCI bus device enumeration method and device |
CN110858184B (en) * | 2018-08-24 | 2021-07-20 | 龙芯中科(北京)信息技术有限公司 | PCI bus device enumeration method and device |
CN111767242A (en) * | 2020-05-28 | 2020-10-13 | 西安广和通无线软件有限公司 | PCIE equipment control method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106557340B (en) | Configuration method and device | |
CN103064795B (en) | A kind of control method of memory device and relevant apparatus | |
CN109587331B (en) | Method and system for automatically repairing cloud mobile phone fault | |
CN105653345A (en) | Method and device supporting data nonvolatile random access | |
US20180276161A1 (en) | PCIe VIRTUAL SWITCHES AND AN OPERATING METHOD THEREOF | |
CN102983989B (en) | Removing method, device and equipment of server virtual address | |
CN111008162A (en) | Method and system for realizing single PCIE slot supporting multiple PCIE ports | |
CN103491134A (en) | Container monitoring method and device and agency service system | |
CN102541750A (en) | Implementation method and device for data snapshot | |
CN104010077A (en) | Information processing method and electronic equipment | |
CN102360241A (en) | Reset processing method, device and system of equipment | |
CN108646979B (en) | Input/output (IO) backplane, and configuration method and device of IO backplane | |
CN107547451B (en) | Multi-path server, CPU connection method and device | |
CN112925525A (en) | Compiling method, mapping method, server, chip, device and medium | |
EP2827205A2 (en) | Remote terminal device and method of operating the same | |
CN109697179A (en) | Hardware resource expands system and heat insertion managing device | |
CN104035844A (en) | Fault testing method and electronic device | |
CN100458696C (en) | System and method for realizing multiple CPU loading | |
EP2829974A2 (en) | Memory dump method, information processing apparatus and program | |
CN102523221A (en) | Detection method of data message and network safety detection device | |
CN112291096B (en) | Configuration method and device of bare metal server | |
CN102270184B (en) | PCI-E slot control system and method based on multiple processors | |
CN104636228A (en) | Electronic device convenient to test and testing method | |
CN107357684A (en) | A kind of kernel failure method for restarting and device | |
CN103793283A (en) | Terminal fault handling method and terminal fault handling 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 | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120222 |