CN101131663B - Method for detecting installation correctness of computer PCI/PCI Express devices - Google Patents

Method for detecting installation correctness of computer PCI/PCI Express devices Download PDF

Info

Publication number
CN101131663B
CN101131663B CN200610200815XA CN200610200815A CN101131663B CN 101131663 B CN101131663 B CN 101131663B CN 200610200815X A CN200610200815X A CN 200610200815XA CN 200610200815 A CN200610200815 A CN 200610200815A CN 101131663 B CN101131663 B CN 101131663B
Authority
CN
China
Prior art keywords
pci
equipment
pci express
correctness
information
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.)
Expired - Fee Related
Application number
CN200610200815XA
Other languages
Chinese (zh)
Other versions
CN101131663A (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN200610200815XA priority Critical patent/CN101131663B/en
Publication of CN101131663A publication Critical patent/CN101131663A/en
Application granted granted Critical
Publication of CN101131663B publication Critical patent/CN101131663B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A kind of detection method of the right installment of computer PCI/PCI Express equipment is used to detect the right method of the PCI/PCI Express equipment installment set in the computer's slot. The detecting computer includes a detection unit and the detection method of the right method of the PCI/PCI Express equipment installment includes the following steps: record all the possible hardwarecombination of the detecting computer in the equipment installment table; make the main board information of the detecting computer, the information of PCI/PCI Express equipment and the equipment installment table storied in the data base; generate the collocation document corresponding to the hardware combination according to the main board information and PCI/PCI Express equipment information and the equipment installment table storied in the data base; the detection die set told above traverses PCI/PCI Express equipment tree and detects the correct of the PCI/PCI Express equipment installed in the detecting computer according to the collocation document said above and then outputs the test report.

Description

Computer PCI/PCI Express equipment is installed the detection method of correctness
Technical field
The present invention relates to a kind of computer hardware equipment the detection method of correctness is installed, refer to the detection method of a kind of PCI (Peripheral Component Interconnect, Peripheral Component Interconnect)/PCI Express equipment installation correctness especially.
Background technology
After PCI/PCI Express equipment such as sound card, video card, network interface card, TV adjuster card are installed in computer system, must detect the correctness that these PCI/PCI Express equipment are installed, with guarantee these PCI/PCI Express equipment can be in computer system operate as normal.The detection method of the correctness that traditional PCI/PCI Express equipment is installed comprises manual test and tests two kinds of methods automatically.The method of manual test is by comparing the Bus number of PCI/PCI Express equipment, the correctness whether setting value in the configuration documentation of device number and function number and computer system equates to come judgment device to install, because the Bus number of computer system settings, device number and function number depend on the particular hardware configuration of computing machine, thereby this method requirement user must be at first according to BOM (Bill of Material, equipment installation table) assembled a computing machine, on this computing machine, move the configuration documentation generator program then to generate configuration documentation, if there is alternative material (video card for example in some element of computing machine, when elements such as internal memory can be selected other model for use) also need to have assembled a computing machine in addition with this alternative material, repeat said process then and generate new configuration documentation, if all there are alternative material in several elements, then the operator will have to the difference configuration that institute might occur is generated the configuration documentations that overlap by said process more.This method needs the link of manual intervention many, and efficient is low and do not fit into the situation that has the plurality of replaceable material.
Automatic test method is by reading BIOS (Basic Input/Output system, basic input/output) routing table in (Routing Table) information is obtained slot (slot) information of computing machine, whether thereby it is correct to judge the PCI equipment of installing on the slot of appointment, but this method requires BIOS must preserve complete routing table, and in real work, some slot Information such as AGP (Accelerated Graphics Port that a lot of computing machines are arranged, Accelerated Graphics Port) slot is not recorded in the routing table, thus can't judge be installed on the AGP slot or PCI/PCI Express equipment that other is not recorded on the slot in the routing table whether correct.In addition, can also add subcard on some senior PCI/PCI Express plug-in card equipment, not be connected with mainboard owing to add subcard, but be additional on the master card, therefore at this moment utilize the self-checking function of BIOS also can't finish the detection task by slot.
Summary of the invention
In view of above content, be necessary to provide a kind of method that PCI equipment is installed correctness that comprehensively detects automatically.
A kind of computer PCI/PCI Express equipment is installed the detection method of correctness, be used to detect the correctness of the PCI/PCI Express equipment installation that is inserted on the computer slot to be measured, described computing machine to be measured comprises that one detects module, and the detection method that described computer PCI/PCI Express equipment is installed correctness may further comprise the steps at least: all possible hardware combinations of computing machine to be measured is recorded in the equipment installation table; With each KindMainboard information, various PCI/PCI Express facility information and described equipment installation table are saved in the database; Generate and described hardware combinations configuration documentation one to one according to the various mainboard information of preserving in the database, various PCI/PCIExpress facility information and described equipment installation table; Described detection module travels through PCI/PCI Express device tree, and detects the correctness of each the PCI/PCI Express equipment on the computing machine to be measured that is installed on according to described configuration documentation; And output test report.
The method that the present invention detects PCI/PCI Express equipment installation correctness is the purpose that reaches PCI/PCIExpress Equipment Inspection robotization, information with each mainboard and all PCI/PCI Express plug-in card equipment is saved in the database earlier, detection system is installed table (BOM) according to equipment and is generated and the corresponding one by one configuration documentation of all possible hardware combinations, and transfer to computing machine to be measured, the test module of described computing machine to be measured is according to the attribute the correctness whether consistent PCI/PCI of judgement Express equipment is installed of the corresponding device of actual installation on the property value that writes down in the more described configuration documentation and this computing machine to be measured, needn't depend on the integrality of the Routing Table of BIOS, can detect all PCI/PCIExpress equipment automatically, testing efficiency height, the scope of application are more extensive.
Description of drawings
Fig. 1 is the detection system structural drawing that better embodiment computer PCI of the present invention/PCI Express equipment is installed correctness.
Fig. 2 is the detection method process flow diagram that better embodiment computer PCI of the present invention/PCI Express equipment is installed correctness.
Fig. 3 is a PCI/PCI Express Equipment Inspection concrete grammar process flow diagram among Fig. 2.
Fig. 4 is the structural representation of PCI/PCI Express device tree.
Embodiment
See also Fig. 1, the detection system that better embodiment computer PCI of the present invention/PCI Express equipment is installed correctness comprises a SQL (Structured Query Language, Structured Query Language (SQL)) database 10, a configuration documentation maker 20 and a UUT (Unit Under Test is at proving installation) worker stands 30.Described database 10 is used to preserve various mainboard information (comprising that the PCI plate carries facility information and slot Information), PCI/PCI Express equipment (network interface card, video card etc.) information and BOM table (Bill ofMaterial, equipment is installed table).Described configuration documentation maker 20 is stood by network and described database 10 and described UUT worker and 30 is linked to each other, and stands 30 in order to generate PCI/PCI Express configuration documentation and to transfer to described UUT worker according to BOM table, mainboard information and the PCI/PCI Express facility information preserved in the database 10.Described UUT worker stands and 30 comprises at least one computing machine to be measured, is equiped with various PCI/PCI Express equipment to be detected on the described computing machine to be measured, and described computing machine to be measured also comprises the detection module.After described detection module had detected all PCI/PCI Express equipment, described UUT worker stood and 30 automatically generates the report of PCI testing of equipments.PCI/PCIExpress facility informations such as described mainboard information and network interface card, video card are with XML (Extensible Markup Language, extend markup language) form is stored in the described database 10, and described BOM table has write down the stand hardware combinations situation of computing machine to be measured of 30 various different hardware configurations of described UUT worker with the form of Excel (spreadsheet that Microsoft produces) form.
See also Fig. 2, the operation steps that the detection system of utilizing described computer PCI/PCI Express equipment that correctness is installed detects PCI/PCI Express equipment installation correctness is as follows:
(1) various mainboard information and PCI/PCI Express facility information are saved in the described database 10.Mainboard packets of information rubbing board carries facility information and slot Information, the packets of information rubbing board that plate carries equipment carries information such as path, function number, Sort Code, manufacturer's sign, equipment sign, subsystem equipment sign, the subsystem manufacturer sign of equipment, and the path that plate carries equipment is made up of Bus number and device number; Slot Information comprises the path of slot, Bus number, information such as device number, function number.Described PCI/PCI Express facility information comprises relative path, the Bus number of PCI/PCI Express equipment, device number, function number etc.Because except root bus (bus 0), the Bus number of other bus may change with the configuration of PCI/PCIExpress equipment is different, thereby utilize relative path to indicate the installation site of PCI/PCI Express equipment and be stored in the described database 10, described relative path by arrive from certain bridge the designated equipment node the equipment of process form, the path of described bridge number indicates (for example the equipment 1 that adheres on the root bus (bus 0) among Fig. 4 is a bridge, and its path P ath=D01F00 refers to No. 0 function of No. 01 equipment) with device number and function.
(2) the BOM table is saved in the described database.
(3) described detection system according to the BOM that preserves in database table, mainboard information and the PCI/PCIExpress facility information generates and the BOM tabular goes out a configuration documentation of the corresponding generation of each hardware configuration situation (for example, write down the Component List of six kinds of different hardware configurations types in the BOM table, six parts of configuration documentations of then corresponding generation, concrete when detecting the computing machine of a certain type, access a configuration documentation corresponding and actual hardware with this type dispose to compare get final product); Described configuration documentation comprises information such as the path, Bus number, device number, function number of slot, the device name that is inserted in the PCI/PCI Express equipment on this slot, path, Bus number, device number, function number.
(4) on described UUT worker station, the configuration documentation that described detection module generates according to described detection system detects the correctness of each the PCI/PCI Express equipment on the computing machine to be measured that is installed on.
See also Fig. 3, the idiographic flow that described detection module test PCI/PCI Express equipment is installed correctness is as follows:
(41) bus/device tree (see figure 4) of traversal PCI/PCI Express equipment, obtain all the PCI/PCI Express list of devices on the UUT worker station, note the path and the relevant information of all devices, and dynamically revise respective value in the configuration documentation according to the actual Bus number of reading.Before the Bus number in revising configuration documentation, described detection module must find with at the corresponding configuration documentation of test computer particular hardware configuration.The method of described traversal PCI/PCI Express device tree is: the configuration space that at first number reads the bridge on the root bus (bus 0) according to the device number of the Bus number of root bus (bus 0) and bridge, function; The Bus number of next the bar bus (sub-bus) that obtains linking to each other from the configuration space of bridge then with this bridge; Again this sub-bus is traveled through afterwards; Repeat preceding two steps, up to finding all PCI/PCI Express equipment.
(42) check one by one whether the value of information of the corresponding device that each property value that all plates in the configuration documentation carry equipment and actual (the actual hardware configuration of computing machine to be measured) are found is in full accord.
(43) whether the property value of checking the PCI/PCI Express equipment of installing on the host slot of computing machine to be measured is consistent with the value set in the configuration documentation.
(44) check on the computing machine to be measured whether have the PCI/PCIExpress equipment that is not recorded in the configuration documentation.
(45) output test report.
See also Fig. 4, a PCI device tree comprises bus 0, bus 1 and bus 2.On bus 0, adhere to an equipment 0, equipment 1 (equipment 1 is a bridge in this better embodiment) and equipment 2 (three is plate and carries equipment), the function of described equipment No. 0 is 0, the function of described equipment No. 1 is 0, the function of described equipment No. 3 is 0 and 1 (having two kinds of functions), and the Bus number of described equipment 0, equipment 1 and equipment 2 is 0.On bus 1, adhere to equipment 0 and an equipment 1, described equipment 0 is one not plug the slot of pci card as yet, and described equipment 1 is one to have plugged the slot of a TV adjuster card, and described TV adjuster card comprises a bridge that bus 1 and bus 2 are coupled together.On bus 2, adhere to equipment 0 and an equipment 1, the function of equipment 0 and equipment No. 1 is 0.

Claims (7)

1. a computer PCI/PCI Express equipment is installed the detection method of correctness, be used to detect the correctness of the PCI/PCI Express equipment installation that is inserted on the computer slot to be measured, described computing machine to be measured comprises that one detects module, and the detection method that described computer PCI/PCI Express equipment is installed correctness may further comprise the steps at least:
The all possible hardware combinations of computing machine to be measured is recorded in the equipment installation table;
Various mainboard information, various PCI/PCI Express facility information and described equipment installation table are saved in the database;
Generate and described hardware combinations configuration documentation one to one according to the various mainboard information of preserving in the database, various PCI/PCI Express facility information and described equipment installation table;
Described detection module travels through PCI/PCI Express device tree, and detects the correctness of each the PCI/PCI Express equipment on the computing machine to be measured that is installed on according to described configuration documentation; And
The output test report.
2. computer PCI as claimed in claim 1/PCI Express equipment is installed the detection method of correctness, it is characterized in that: the described step that is installed on the correctness of each the PCI/PCI Express equipment on the computing machine to be measured according to described configuration documentation detection further may further comprise the steps:
By traveling through the PCI/PCI Express device tree of computing machine to be measured, obtain all the PCI/PCI Express list of devices on the computing machine to be measured, note the path and the relevant information of all PCI/PCI Express equipment, and dynamically revise respective value in the configuration documentation according to the actual Bus number of reading;
Check one by one whether all plates in the configuration documentation carry the value of information of each value of information of equipment and the actual corresponding device that finds in full accord;
Whether each property value of checking the PCI/PCI Express equipment of installing on all slots of mainboard of computing machine to be measured is consistent with the value stipulated in the configuration documentation;
Check and whether have the PCI/PCIExpress equipment that is not recorded in the configuration documentation on the computing machine to be measured.
3. computer PCI as claimed in claim 2/PCI Express equipment is installed the detection method of correctness, it is characterized in that: described step by traversal PCI/PCI Express device tree may further comprise the steps:
Number read the configuration space of the bridge on the root bus according to the device number of the Bus number of root bus and bridge, function;
Obtain the Bus number of the sub-bus that links to each other with this bridge from the configuration space of bridge;
This sub-bus is traveled through; And
Repeat preceding two steps, up to finding all PCI/PCI Express equipment.
4. computer PCI as claimed in claim 2/PCI Express equipment is installed the detection method of correctness, it is characterized in that: described dynamically revise the step of the respective value in the configuration documentation according to the actual Bus number of reading before, comprise that also described detection module finds the step of corresponding configuration documentation according to the particular hardware configuration situation of computing machine to be measured.
5. computer PCI as claimed in claim 1/PCI Express equipment is installed the detection method of correctness, and it is characterized in that: described configuration documentation is generated by a configuration documentation maker.
6. computer PCI as claimed in claim 1/PCI Express equipment is installed the detection method of correctness, it is characterized in that: it is to be saved in the database with the form of the extend markup language information with PCI/PCI Express equipment that described PCI/PCI Express facility information with computing machine to be measured is saved in step in the database.
7. computer PCI as claimed in claim 1/PCI Express equipment is installed the detection method of correctness, it is characterized in that: it is with the form of extend markup language the information that the plate of mainboard carries information and PCI/PCI Express slot to be saved in the database that described mainboard information with computing machine to be measured is saved in step in the database.
CN200610200815XA 2006-08-22 2006-08-22 Method for detecting installation correctness of computer PCI/PCI Express devices Expired - Fee Related CN101131663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610200815XA CN101131663B (en) 2006-08-22 2006-08-22 Method for detecting installation correctness of computer PCI/PCI Express devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610200815XA CN101131663B (en) 2006-08-22 2006-08-22 Method for detecting installation correctness of computer PCI/PCI Express devices

Publications (2)

Publication Number Publication Date
CN101131663A CN101131663A (en) 2008-02-27
CN101131663B true CN101131663B (en) 2010-09-29

Family

ID=39128936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610200815XA Expired - Fee Related CN101131663B (en) 2006-08-22 2006-08-22 Method for detecting installation correctness of computer PCI/PCI Express devices

Country Status (1)

Country Link
CN (1) CN101131663B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566962B (en) * 2008-04-22 2012-07-04 辉达公司 Test board and method for the consistency of peripheral component interconnect express expansion system
CN102591885A (en) * 2011-01-17 2012-07-18 鸿富锦精密工业(深圳)有限公司 Test repot generating system and method
CN103646010A (en) * 2011-06-29 2014-03-19 北京奇虎科技有限公司 Installation configuration list generating method
CN102968362A (en) * 2012-11-21 2013-03-13 浪潮电子信息产业股份有限公司 Method for detecting integrity of PCIE (peripheral component interface express) equipment in system start-up process
CN105867891A (en) * 2015-09-22 2016-08-17 乐视致新电子科技(天津)有限公司 Guide loading device and method, electronic equipment and mainboard replacement method thereof
CN106681878A (en) * 2017-01-05 2017-05-17 郑州云海信息技术有限公司 Method for testing PCIE channel bandwidth

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0962867A2 (en) * 1998-06-05 1999-12-08 International Business Machines Corporation Variable computer slot configuration for multi-speed bus
CN1325062A (en) * 2000-05-19 2001-12-05 英业达股份有限公司 Intelligent hardware installing method
CN1516014A (en) * 2003-01-07 2004-07-28 英业达股份有限公司 Method for testing interconnected bus of external components

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0962867A2 (en) * 1998-06-05 1999-12-08 International Business Machines Corporation Variable computer slot configuration for multi-speed bus
CN1325062A (en) * 2000-05-19 2001-12-05 英业达股份有限公司 Intelligent hardware installing method
CN1516014A (en) * 2003-01-07 2004-07-28 英业达股份有限公司 Method for testing interconnected bus of external components

Also Published As

Publication number Publication date
CN101131663A (en) 2008-02-27

Similar Documents

Publication Publication Date Title
CN107885656B (en) Automatic product algorithm testing method and application server
CN101131663B (en) Method for detecting installation correctness of computer PCI/PCI Express devices
CN102567166B (en) Testing method and testing system of graphics card
CN106055361B (en) Integrated firmware implementation method and system for multiple different types based on BMC (baseboard management controller)
CN108111364B (en) Service system testing method and device
US20120254662A1 (en) Automated test system and automated test method
CN103279846A (en) Project acceptance method and system based on BIM model
CN113138929A (en) Distributed interface testing method and device, electronic equipment and storage medium
CN104966021A (en) Creating and analytic methods and device for security baseline data files
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN109656769A (en) A kind of Android communicating terminal test method for hardware, test technology and system test process
CN112882995A (en) Script automatic generation method and device, electronic equipment and storage medium
CN113434542A (en) Data relation identification method and device, electronic equipment and storage medium
CN112579475A (en) Code testing method, device, equipment and readable storage medium
CN100498731C (en) Process for basic input output system supporting vertical card
CN113051171A (en) Interface test method, device, equipment and storage medium
CN113469649A (en) Project progress analysis method and device, electronic equipment and storage medium
CN113282496A (en) Automatic interface test method, device, equipment and storage medium
CN112527655A (en) Software version quality abnormity detection method and device, electronic equipment and storage medium
CN113240351A (en) Business data consistency checking method and device, electronic equipment and medium
CN109669872A (en) A kind of verification method and device
CN101427253B (en) System and method for the automatic verification of planning results
TWI761917B (en) Program debugging method, device and storage media
CN103136395A (en) Computer system used for circuit diagram data verification and circuit diagram data verification method
CN114706715B (en) Control method, device, equipment and medium for distributed RAID based on BMC

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100929

Termination date: 20150822

EXPY Termination of patent right or utility model