CN107423171A - The detection method and device of insertion slot type function expansion card based on PCIE standards - Google Patents
The detection method and device of insertion slot type function expansion card based on PCIE standards Download PDFInfo
- Publication number
- CN107423171A CN107423171A CN201710277472.5A CN201710277472A CN107423171A CN 107423171 A CN107423171 A CN 107423171A CN 201710277472 A CN201710277472 A CN 201710277472A CN 107423171 A CN107423171 A CN 107423171A
- Authority
- CN
- China
- Prior art keywords
- slots
- current
- detected
- expansion card
- pcie
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4204—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
- G06F13/4221—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides the detection method and device of the insertion slot type function expansion card based on PCIE standards, this method, including:Pre-set the standard feature extension card information of each PCIE slots on server to be detected;Obtain the SMBIOS tables of the server to be detected;From the SMBIOS tables, the identification information of each PCIE slots on the server to be detected is obtained;According to the identification information of each PCIE slots, the Function Extension card information to be detected of each PCIE slots of acquisition;For each PCIE slots, compare the Function Extension card information to be detected of current PC IE slots and the standard feature extension card information of the current PC IE slots, determine whether the current PC IE slots pass through detection.The invention provides the detection method and device of the insertion slot type function expansion card based on PCIE standards, it is possible to increase the accuracy of testing result.
Description
Technical field
The present invention relates to field of computer technology, more particularly to based on PCIE (peripheral component
Interconnect express, high speed serialization computer expansion bus standard) standard insertion slot type function expansion card detection
Method and device.
Background technology
At present in server system maquila, after completing to assemble, it is thus necessary to determine that client whether has been inserted on server to be needed
The function expansion card asked.
In the prior art, the work(of customer demand whether has been inserted on detection service device typically by way of manually estimating
Can expansion card.Because requirement of the different clients to the function expansion card of server is each same not to the utmost, some needs increase by one
PCIE Gen3 video card, some possibility need plus the network interface card of an optical fiber, and the model of the function expansion card such as network interface card video card, Gu
Part version, or even the version of chip have numerous kinds, and these information are difficult to be detected by manually estimating.
Visible by foregoing description, whether prior art has inserted client by way of manually estimating on detection service device
The function expansion card of demand, the accuracy of testing result are relatively low.
The content of the invention
, can the embodiments of the invention provide the detection method and device of the insertion slot type function expansion card based on PCIE standards
Improve the accuracy of testing result.
On the one hand, the embodiments of the invention provide a kind of detection side of the insertion slot type function expansion card based on PCIE standards
Method, including:
Pre-set the standard feature extension card information of each PCIE slots on server to be detected;
Obtain the SMBIOS tables of the server to be detected;
From the SMBIOS tables, the identification information of each PCIE slots on the server to be detected is obtained;
According to the identification information of each PCIE slots, the function expansion card to be detected of each PCIE slots of acquisition
Information;
For each PCIE slots, compare the Function Extension card informations to be detected of current PC IE slots with it is described current
The standard feature extension card information of PCIE slots, determines whether the current PC IE slots pass through detection.
Further, for not needing the PCIE slots of installation function expansion card, the standard feature extends card information, bag
Include:The information of installation function expansion card is not needed;
PCIE slots for needing installation function expansion card, the standard feature expansion card information include:Need to install
Function expansion card standard card information;
PCIE slots for being fitted without function expansion card, the Function Extension card information to be detected, including:Do not pacify
Fill the information of function expansion card;
PCIE slots for being provided with function expansion card, the function expansion card information to be detected include:The work(of installation
The card information to be detected of energy expansion card.
Further, the relatively Function Extension card information to be detected of current PC IE slots and the current PC IE slots
Standard feature extension card information, determine the current PC IE slots whether by detection, including:
A1:According to the Function Extension card information to be detected of the current PC IE slots, judge that the current PC IE slots are
It is no that function expansion card is installed, if it is, performing A2, otherwise, perform A4;
A2:Card information is extended according to the standard feature of the current PC IE slots, whether judges the current PC IE slots
Installation function expansion card is needed, if it is, A3 is performed, otherwise, it determines the current PC IE slots are not over detection;
A3:Judge that the card information of standard corresponding to the current PC IE slots and the current PC IE slots are corresponding to be checked
Whether the card information of survey is identical, if it is, the current PC IE slots are determined by detection, otherwise, it determines described current
PCIE slots are not over detection;
A4:Card information is extended according to the standard feature of the current PC IE slots, whether judges the current PC IE slots
Installation function expansion card is needed, if it is, the current PC IE slots are determined not over detection, otherwise, it determines described work as
Preceding PCIE slots are not over detection.
Further, the card information includes:Label, device id, auxiliary label, auxiliary equipment ID, version number, function expand
Open up one or more of description of card.
Further, described from the SMBIOS tables, each PCIE obtained on the server to be detected is inserted
The identification information of groove, including:
Read the type 9 of SMBIOS tables information.
Further, the SMBIOS tables for obtaining the server to be detected, including:
From the BIOS (Basic Input Output System, basic input output system) of the server to be detected
The middle inquiry SMBIOS tables, the SMBIOS tables are mapped in internal memory.
Further, the identification information includes:Bus number, device number, function number.
On the other hand, the embodiments of the invention provide a kind of detection of insertion slot type function expansion card based on PCIE standards dress
Put, including:
Storage unit, the standard feature extension card information of each PCIE slots on server to be detected;
Table acquiring unit, for obtaining the SMBIOS tables of the server to be detected;
Identification information obtaining unit, for from the SMBIOS tables, obtaining each institute on the server to be detected
State the identification information of PCIE slots;
Information acquisition unit to be detected, for the identification information according to each PCIE slots, obtain each described
The Function Extension card information to be detected of PCIE slots;
Detection unit, for for each PCIE slots, comparing the function expansion card to be detected of current PC IE slots
Information and the standard feature extension card information of the current PC IE slots, determine whether the current PC IE slots pass through detection.
Further, for not needing the PCIE slots of installation function expansion card, the standard feature extends card information, bag
Include:The information of installation function expansion card is not needed;
PCIE slots for needing installation function expansion card, the standard feature expansion card information include:Need to install
Function expansion card standard card information;
PCIE slots for being fitted without function expansion card, the Function Extension card information to be detected, including:Do not pacify
Fill the information of function expansion card;
PCIE slots for being provided with function expansion card, the function expansion card information to be detected include:The work(of installation
The card information to be detected of energy expansion card.
Further, the detection unit, including:First judgment sub-unit, the second judgment sub-unit, the 3rd judge that son is single
Member and the 4th judgment sub-unit;
First judgment sub-unit, for the Function Extension card information to be detected according to the current PC IE slots, sentence
Whether the current PC IE slots that break are provided with function expansion card, if it is, triggering second judgment sub-unit, otherwise, is touched
Send out the 4th judgment sub-unit described;
Second judgment sub-unit, for extending card information according to the standard feature of the current PC IE slots, judge
Whether the current PC IE slots need installation function expansion card, if it is, the 3rd judgment sub-unit is performed, otherwise,
Determine the current PC IE slots not over detection;
3rd judgment sub-unit, for judging that the card information of standard corresponding to the current PC IE slots is worked as with described
Whether card information to be detected is identical corresponding to preceding PCIE slots, if it is, the current PC IE slots are determined by detecting,
Otherwise, it determines the current PC IE slots are not over detection;
4th judgment sub-unit, for extending card information according to the standard feature of the current PC IE slots, judge
Whether the current PC IE slots need installation function expansion card, if it is, determine the current PC IE slots not over
Detection, otherwise, it determines the current PC IE slots are not over detection.
Further, the card information includes:Label, device id, auxiliary label, auxiliary equipment ID, version number, function expand
Open up one or more of description of card.
Further, the identification information obtaining unit, the information of the type 9 for reading the SMBIOS tables.
Further, the table acquiring unit, for inquiring about the SMBIOS from the BIOS of the server to be detected
Table, the SMBIOS tables are mapped in internal memory.
Further, the identification information includes:Bus number, device number, function number.
In embodiments of the present invention, the standard feature extension card information of each PCIE slots is pre-set, passes through SMBIOS
Table obtains the identification information of each PCIE slots, and the function expansion card to be detected that each PCIE slots are obtained according to identification information is believed
Breath, the accuracy of the information of each PCIE slots of acquisition is higher, by the Function Extension card information to be detected of each PCIE slots
Compared with extending card information with standard feature, it is determined that whether each PCIE slots configure correctly, compared with prior art, improve
The accuracy of testing result.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of detection method for insertion slot type function expansion card based on PCIE standards that one embodiment of the invention provides
Flow chart;
Fig. 2 is the detection side for another insertion slot type function expansion card based on PCIE standards that one embodiment of the invention provides
The flow chart of method;
Fig. 3 is a kind of detection means for insertion slot type function expansion card based on PCIE standards that one embodiment of the invention provides
Schematic diagram;
Fig. 4 is the detection dress for another insertion slot type function expansion card based on PCIE standards that one embodiment of the invention provides
The schematic diagram put.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of detection of the insertion slot type function expansion card based on PCIE standards
Method, this method may comprise steps of:
Step 101:Pre-set the standard feature extension card information of each PCIE slots on server to be detected;
Step 102:Obtain the SMBIOS tables of the server to be detected;
Step 103:From the SMBIOS tables, the mark of each PCIE slots on the server to be detected is obtained
Know information;
Step 104:According to the identification information of each PCIE slots, the measurement of power to be checked of each PCIE slots of acquisition
Card information can be extended;
Step 105:For each PCIE slots, compare the Function Extension card informations to be detected of current PC IE slots with
The standard feature extension card information of the current PC IE slots, determines whether the current PC IE slots pass through detection.
In embodiments of the present invention, the standard feature extension card information of each PCIE slots is pre-set, passes through SMBIOS
Table obtains the identification information of each PCIE slots, and the function expansion card to be detected that each PCIE slots are obtained according to identification information is believed
Breath, the accuracy of the information of each PCIE slots of acquisition is higher, by the Function Extension card information to be detected of each PCIE slots
Compared with extending card information with standard feature, it is determined that whether each PCIE slots configure correctly, compared with prior art, improve
The accuracy of testing result.
In an embodiment of the present invention, for not needing the PCIE slots of installation function expansion card, the standard feature expands
Card information is opened up, including:The information of installation function expansion card is not needed;
PCIE slots for needing installation function expansion card, the standard feature expansion card information include:Need to install
Function expansion card standard card information;
PCIE slots for being fitted without function expansion card, the Function Extension card information to be detected, including:Do not pacify
Fill the information of function expansion card;
PCIE slots for being provided with function expansion card, the function expansion card information to be detected include:The work(of installation
The card information to be detected of energy expansion card.
In embodiments of the present invention, for do not need installation function expansion card PCIE slots, standard feature expansion card letter
Breath, can be " not needing installation function expansion card ".PCIE slots for being fitted without function expansion card, expand obtaining function
When opening up the card information to be detected of card, the information of acquisition is empty, then Function Extension card information to be detected, can " be fitted without
Function expansion card ".
In an embodiment of the present invention, the card information includes:Label (vendor ID), device id (device ID),
Aid in label (sub-vendor ID), auxiliary equipment ID (sub-device ID), version number (Reversion), Function Extension
One or more of description of card.
In an embodiment of the present invention, the relatively Function Extension card information to be detected of current PC IE slots is worked as with described
Whether the standard feature extension card information of preceding PCIE slots, determine the current PC IE slots by detection, including:
A1:According to the Function Extension card information to be detected of the current PC IE slots, judge that the current PC IE slots are
It is no that function expansion card is installed, if it is, performing A2, otherwise, perform A4;
A2:Card information is extended according to the standard feature of the current PC IE slots, whether judges the current PC IE slots
Installation function expansion card is needed, if it is, A3 is performed, otherwise, it determines the current PC IE slots are not over detection;
A3:Judge that the card information of standard corresponding to the current PC IE slots and the current PC IE slots are corresponding to be checked
Whether the card information of survey is identical, if it is, the current PC IE slots are determined by detection, otherwise, it determines described current
PCIE slots are not over detection;
A4:Card information is extended according to the standard feature of the current PC IE slots, whether judges the current PC IE slots
Installation function expansion card is needed, if it is, the current PC IE slots are determined not over detection, otherwise, it determines described work as
Preceding PCIE slots are not over detection.
In embodiments of the present invention, it can detect server to be detected compared with demand, if to be mounted with that function expands less
Whether whether exhibition card is mounted with function expansion card more, can also detect that the function expansion card on each PCIE slots with needing
The function expansion card asked is identical, and the installation situation that can treat the function expansion card on detection service device more fully hereinafter is examined
Survey.
In an embodiment of the present invention, it is described from the SMBIOS tables, obtain each on the server to be detected
The identification information of the PCIE slots, including:
Read the type 9 of SMBIOS tables information.
What is stored in the type9 parts of SMBIOS tables is the identification information of PCIE slots, by reading type9 information i.e.
The identification information of each PCIE slots can be got.
Specifically, can be realized by code below:
In an embodiment of the present invention, the SMBIOS tables for obtaining the server to be detected, including:
The SMBIOS tables are inquired about from the BIOS of the server to be detected, the SMBIOS tables are mapped to internal memory
In.
Because SMBIOS tables are stored in BIOS, can not compared with the Function Extension card information to be detected of acquisition,
In the embodiment of the present invention, SMBIOS tables are mapped in internal memory, it is convenient that information in SMBIOS tables is operated.
In an embodiment of the present invention, the identification information includes:Bus number (bus number), device number (device
Number), function number (function number).
Specifically, according to the identification information of each PCIE slots, the function expansion card to be detected of each PCIE slots is obtained
Information, it can be realized by code below:
In an embodiment of the present invention, for each PCIE slots, the Function Extension to be detected of current PC IE slots is compared
Whether the standard feature extension card information of card information and current PC IE slots, determine current PC IE slots by detection, Ke Yitong
Cross code below realization:
As shown in Fig. 2 the embodiments of the invention provide a kind of detection of the insertion slot type function expansion card based on PCIE standards
Method, this method may comprise steps of:
Step 201:The standard feature extension card information of each PCIE slots on server to be detected is pre-set, its
In, the PCIE slots for not needing installation function expansion card, standard feature extension card information, including:Installation function is not needed
The information of expansion card;PCIE slots for needing installation function expansion card, standard feature expansion card information include:Need to install
Function expansion card standard card information.
Specifically, when the standard feature for storing each PCIE slots extends card information, each PCIE slots can be established
Identification information and its standard feature extension card information corresponding relation.In the Function Extension to be detected of more each PCIE slots
During the standard feature extension card information of card information and each PCIE slots, the identification information of each PCIE slots and this can be passed through
Corresponding relation finds corresponding Function Extension card information to be detected.
Specifically, the standard feature of each PCIE slots is set to extend card information according to the demand of client.
For example, there are four PCIE slots, wherein, according to the demand of client, the first PCIE slots need installation function
Expansion card A, the 2nd PCIE slots need installation function expansion card B, the 3rd PCIE slots and the 4th PCIE slots not installation function
Expansion card.
At this moment, the card information for the standard that the standard feature extension card information of the first PCIE slots is function expansion card A.Second
The card information for the standard that the standard feature extension card information of PCIE slots is function expansion card B.The standard work(of 3rd PCIE slots
Card information can be extended not need installation function expansion card.The standard feature extension card information of 4th PCIE slots is to pacify
Fill function expansion card.
The standard feature extension card information of each PCIE slots on server to be detected can be stored in what is pre-set
In database, the database can be defined by code below:
The database can also be realized by code below:
Step 202:Obtain the SMBIOS tables of server to be detected.
Specifically, SMBIOS tables are inquired about from the BIOS of server to be detected, SMBIOS tables are mapped in internal memory.
In addition, after inquiring SMBIOS tables in the BIOS from server to be detected, can search in the SMBIOS tables is
No presence _ SMI_ marks, if it is present determining that the SMBIOS tables are correct, subsequent treatment can be carried out using the SMBIOS tables,
If it does not exist, then determine that the SMBIOS tables are incorrect, it is impossible to carry out subsequent treatment using the SMBIOS tables.
Step 203:From SMBIOS tables, the identification information of each PCIE slots on server to be detected is obtained.
Specifically, the identification information includes:Bus number, device number, function number.
One PCIE slot can be uniquely determined by Bus number, device number, function number.
Step 204:According to the identification information of each PCIE slots, the function expansion card to be detected of each PCIE slots is obtained
Information, wherein, the PCIE slots for being fitted without function expansion card, Function Extension card information to be detected, including:It is fitted without
The information of function expansion card;PCIE slots for being provided with function expansion card, function expansion card information to be detected include:Installation
Function expansion card card information to be detected.
For example, the first PCIE slots are provided with function expansion card A, and first can be got by the first PCIE slots
The Function Extension card information to be detected of PCIE slots, the Function Extension card information to be detected are the to be detected of function expansion card A
Card information.2nd PCIE slots are provided with function expansion card C, and the 2nd PCIE slots can be got by the 2nd PCIE slots
Function Extension card information to be detected, the Function Extension card information to be detected are function expansion card C card information to be detected.3rd
PCIE slots are provided with function expansion card B, and the brake to be checked of the 3rd PCIE slots can be got by the 3rd PCIE slots
Card information is extended, the Function Extension card information to be detected is function expansion card B card information to be detected.4th PCIE slots do not have
There is installation function expansion card.
Specifically, card information includes:Label, device id, auxiliary label, auxiliary equipment ID, version number, function expansion card
One or more of description.
For each PCIE slots, following steps are performed:
Step 205:For each PCIE slots, perform:According to the Function Extension card information to be detected of current PC IE slots,
Judge whether current PC IE slots are provided with function expansion card, if it is, performing step 206, otherwise, perform step 208.
For example, the first PCIE slots, the 2nd PCIE slots and the 3rd PCIE slots are mounted on function expansion card, then
Perform step 206.
4th PCIE slots are fitted without function expansion card, perform step 208.
Step 206:Card information is extended according to the standard feature of current PC IE slots, judges whether current PC IE slots need
Installation function expansion card, if it is, performing step 207, otherwise, perform step 209.
For example, card information is extended according to the standard feature of each PCIE slots, determines the first PCIE slots and the
Two PCIE slots are required to installation function expansion card, then perform step 207 for the first PCIE slots and the 2nd PCIE slots.Root
Card information is extended according to the standard feature of each PCIE slots, determines that the 3rd PCIE slots do not need installation function expansion card, really
Fixed 3rd PCIE slots are not over detection.
Step 207:Judge that the card information of standard corresponding to current PC IE slots and current PC IE slots are corresponding to be detected
Card information it is whether identical, if it is, perform step 210, otherwise, perform step 209.
For example, for the first PCIE slots, Function Extension card information to be detected is the to be detected of function expansion card A
Card information, the card information for the standard that standard feature extension card information is function expansion card A.By entering to each single item in card information
Row compares, it may be determined that goes out the first PCIE slots and passes through detection.For the 2nd PCIE slots, Function Extension card information to be detected is
Function expansion card C card information to be detected, the card information for the standard that standard feature extension card information is function expansion card B.It is logical
Cross and each single item in card information is compared, it may be determined that go out the 2nd PCIE slots not over detection.
Step 208:Card information is extended according to the standard feature of current PC IE slots, judges whether current PC IE slots need
Installation function expansion card, if it is, performing step 209, otherwise, perform step 210.
For example, for the 4th PCIE slots, determine that the 4th PCIE slots do not need installation function expansion card, then the 4th
PCIE slots pass through detection.
Step 209:Determine current PC IE slots not over detection.
Step 210:Determine that current PC IE slots pass through detection.
As shown in Figure 3, Figure 4, the embodiments of the invention provide a kind of insertion slot type function expansion card based on PCIE standards
Detection means.Device embodiment can be realized by software, can also be realized by way of hardware or software and hardware combining.From
For hardware view, as shown in figure 3, being a kind of insertion slot type function expansion card based on PCIE standards provided in an embodiment of the present invention
Detection means where equipment a kind of hardware structure diagram, except the processor shown in Fig. 3, internal memory, network interface and it is non-easily
Outside the property lost memory, the equipment in embodiment where device can also generally include other hardware, as being responsible for processing message
Forwarding chip etc..It is by being set where it as shown in figure 4, as the device on a logical meaning exemplified by implemented in software
Corresponding computer program instructions in nonvolatile memory are read what operation in internal memory was formed by standby CPU.The present embodiment
A kind of detection means of the insertion slot type function expansion card based on PCIE standards provided, including:
Storage unit 401, the standard feature extension card information of each PCIE slots on server to be detected;
Table acquiring unit 402, for obtaining the SMBIOS tables of the server to be detected;
Identification information obtaining unit 403, it is each on the server to be detected for from the SMBIOS tables, obtaining
The identification information of the PCIE slots;
Information acquisition unit 404 to be detected, for the identification information according to each PCIE slots, obtain each described
The Function Extension card information to be detected of PCIE slots;
Detection unit 405, for for each PCIE slots, comparing the Function Extension to be detected of current PC IE slots
The standard feature extension card information of card information and the current PC IE slots, determines whether the current PC IE slots pass through inspection
Survey.
In an embodiment of the present invention, for not needing the PCIE slots of installation function expansion card, the standard feature expands
Card information is opened up, including:The information of installation function expansion card is not needed;
PCIE slots for needing installation function expansion card, the standard feature expansion card information include:Need to install
Function expansion card standard card information;
PCIE slots for being fitted without function expansion card, the Function Extension card information to be detected, including:Do not pacify
Fill the information of function expansion card;
PCIE slots for being provided with function expansion card, the function expansion card information to be detected include:The work(of installation
The card information to be detected of energy expansion card.
In an embodiment of the present invention, the detection unit, including:First judgment sub-unit, the second judgment sub-unit,
Three judgment sub-units and the 4th judgment sub-unit;
First judgment sub-unit, for the Function Extension card information to be detected according to the current PC IE slots, sentence
Whether the current PC IE slots that break are provided with function expansion card, if it is, triggering second judgment sub-unit, otherwise, is touched
Send out the 4th judgment sub-unit described;
Second judgment sub-unit, for extending card information according to the standard feature of the current PC IE slots, judge
Whether the current PC IE slots need installation function expansion card, if it is, the 3rd judgment sub-unit is performed, otherwise,
Determine the current PC IE slots not over detection;
3rd judgment sub-unit, for judging that the card information of standard corresponding to the current PC IE slots is worked as with described
Whether card information to be detected is identical corresponding to preceding PCIE slots, if it is, the current PC IE slots are determined by detecting,
Otherwise, it determines the current PC IE slots are not over detection;
4th judgment sub-unit, for extending card information according to the standard feature of the current PC IE slots, judge
Whether the current PC IE slots need installation function expansion card, if it is, determine the current PC IE slots not over
Detection, otherwise, it determines the current PC IE slots are not over detection.
In an embodiment of the present invention, the card information includes:Label, device id, auxiliary label, auxiliary equipment ID, version
This number, one or more of the description of function expansion card.
In an embodiment of the present invention, the identification information obtaining unit, for reading the type 9 of the SMBIOS tables
Information.
In an embodiment of the present invention, the table acquiring unit, for being inquired about from the BIOS of the server to be detected
The SMBIOS tables, the SMBIOS tables are mapped in internal memory.
In an embodiment of the present invention, the identification information includes:Bus number, device number, function number.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method
Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
The embodiments of the invention provide a kind of computer-readable recording medium, including execute instruction, when the computing device of storage control
During the execute instruction, the storage control performs any one slot based on PCIE standards provided in an embodiment of the present invention
The detection method of formula function expansion card.
The embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
The memory is used to store execute instruction, and the processor is connected with the memory by the bus, when
During the storage control operation, the execute instruction of memory storage described in the computing device, so that the storage
Controller performs the detection method of any one insertion slot type function expansion card based on PCIE standards provided in an embodiment of the present invention.
The each embodiment of the present invention at least has the advantages that:
1st, in embodiments of the present invention, the standard feature extension card information of each PCIE slots is pre-set, is passed through
SMBIOS tables obtain the identification information of each PCIE slots, and the brake to be checked that each PCIE slots are obtained according to identification information expands
Card information is opened up, the accuracy of the information of each PCIE slots of acquisition is higher, by the Function Extension to be detected of each PCIE slots
Compared with card information extends card information with standard feature, it is determined that whether each PCIE slots configure correctly, with prior art phase
Than improving the accuracy of testing result.
2nd, in embodiments of the present invention, it can detect server to be detected compared with demand, if to be mounted with function less
Expansion card or whether be mounted with function expansion card, can also detect that function expansion card on each PCIE slots whether with
The function expansion card of demand is identical, and the installation situation that can treat the function expansion card on detection service device more fully hereinafter is carried out
Detection.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation makes a distinction with another entity or operation, and not necessarily require or imply and exist between these entities or operation
Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those key elements,
But also the other element including being not expressly set out, or also include solid by this process, method, article or equipment
Some key elements.In the absence of more restrictions, by sentence, " including the key element that a 〃 " is limited is not arranged
Except other identical factor in the process including the key element, method, article or equipment being also present.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in computer-readable storage medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, is merely to illustrate the skill of the present invention
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention,
Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.
Claims (10)
1. a kind of detection method of the insertion slot type function expansion card based on PCIE standards, it is characterised in that pre-set to be detected
The standard feature extension card information of each PCIE slots on server;
Including:
Obtain the SMBIOS tables of the server to be detected;
From the SMBIOS tables, the identification information of each PCIE slots on the server to be detected is obtained;
According to the identification information of each PCIE slots, the function expansion card to be detected for obtaining each PCIE slots is believed
Breath;
For each PCIE slots, compare the Function Extension card information to be detected of current PC IE slots and the current PC IE
The standard feature extension card information of slot, determines whether the current PC IE slots pass through detection.
2. according to the method for claim 1, it is characterised in that
PCIE slots for not needing installation function expansion card, the standard feature extend card information, including:It need not install
The information of function expansion card;
PCIE slots for needing installation function expansion card, the standard feature expansion card information include:Need work(to be mounted
The card information of the standard of energy expansion card;
PCIE slots for being fitted without function expansion card, the Function Extension card information to be detected, including:It is fitted without work(
The information of energy expansion card;
PCIE slots for being provided with function expansion card, the function expansion card information to be detected include:The function of installation expands
Open up the card information to be detected of card.
3. according to the method for claim 2, it is characterised in that
The standard feature of the relatively Function Extension card information to be detected of current PC IE slots and the current PC IE slots expands
Card information is opened up, whether determines the current PC IE slots by detection, including:
A1:According to the Function Extension card information to be detected of the current PC IE slots, judge whether the current PC IE slots pacify
Equipped with function expansion card, if it is, performing A2, otherwise, A4 is performed;
A2:Card information is extended according to the standard feature of the current PC IE slots, judges whether the current PC IE slots need
Installation function expansion card, if it is, A3 is performed, otherwise, it determines the current PC IE slots are not over detection;
A3:Judge that the card information of standard corresponding to the current PC IE slots and the current PC IE slots are corresponding to be detected
Whether card information is identical, if it is, the current PC IE slots are determined by detection, otherwise, it determines the current PC IE is inserted
Groove is not over detection;
A4:Card information is extended according to the standard feature of the current PC IE slots, judges whether the current PC IE slots need
Installation function expansion card, if it is, the current PC IE slots are determined not over detection, otherwise, it determines described current
PCIE slots are not over detection.
4. according to the method for claim 2, it is characterised in that
The card information includes:Label, device id, auxiliary label, auxiliary equipment ID, version number, function expansion card description in
One or more.
5. according to any described method in claim 1-4, it is characterised in that
It is described to obtain the identification information of each PCIE slots on the server to be detected from the SMBIOS tables,
Including:
Read the type 9 of SMBIOS tables information;
And/or
The SMBIOS tables for obtaining the server to be detected, including:
The SMBIOS tables are inquired about from the basic input-output system BIOS of the server to be detected, by the SMBIOS tables
It is mapped in internal memory;
And/or
The identification information includes:Bus number, device number, function number.
A kind of 6. detection means of the insertion slot type function expansion card based on PCIE standards, it is characterised in that including:
Storage unit, the standard feature extension card information of each PCIE slots on server to be detected;
Table acquiring unit, for obtaining the SMBIOS tables of the server to be detected;
Identification information obtaining unit, it is each described on the server to be detected for from the SMBIOS tables, obtaining
The identification information of PCIE slots;
Information acquisition unit to be detected, for the identification information according to each PCIE slots, obtain each PCIE and insert
The Function Extension card information to be detected of groove;
Detection unit, for for each PCIE slots, comparing the Function Extension card information to be detected of current PC IE slots
Card information is extended with the standard feature of the current PC IE slots, determines whether the current PC IE slots pass through detection.
7. device according to claim 6, it is characterised in that
PCIE slots for not needing installation function expansion card, the standard feature extend card information, including:It need not install
The information of function expansion card;
PCIE slots for needing installation function expansion card, the standard feature expansion card information include:Need work(to be mounted
The card information of the standard of energy expansion card;
PCIE slots for being fitted without function expansion card, the Function Extension card information to be detected, including:It is fitted without work(
The information of energy expansion card;
PCIE slots for being provided with function expansion card, the function expansion card information to be detected include:The function of installation expands
Open up the card information to be detected of card.
8. device according to claim 7, it is characterised in that
The detection unit, including:First judgment sub-unit, the second judgment sub-unit, the 3rd judgment sub-unit and the 4th judge
Subelement;
First judgment sub-unit, for the Function Extension card information to be detected according to the current PC IE slots, judge institute
State whether current PC IE slots are provided with function expansion card, if it is, triggering second judgment sub-unit, otherwise, triggers institute
State the 4th judgment sub-unit;
Second judgment sub-unit, for extending card information according to the standard feature of the current PC IE slots, described in judgement
Whether current PC IE slots need installation function expansion card, if it is, the 3rd judgment sub-unit is performed, otherwise, it determines
The current PC IE slots are not over detection;
3rd judgment sub-unit, for judge the card information of standard corresponding to the current PC IE slots with it is described current
Whether card information to be detected is identical corresponding to PCIE slots, if it is, the current PC IE slots are determined by detection, it is no
Then, determine the current PC IE slots not over detection;
4th judgment sub-unit, for extending card information according to the standard feature of the current PC IE slots, described in judgement
Whether current PC IE slots need installation function expansion card, if it is, the current PC IE slots are determined not over detection,
Otherwise, it determines the current PC IE slots are not over detection.
9. according to the method for claim 7, it is characterised in that
The card information includes:Label, device id, auxiliary label, auxiliary equipment ID, version number, function expansion card description in
One or more.
10. according to any described method in claim 6-9, it is characterised in that
The identification information obtaining unit, the information of the type 9 for reading the SMBIOS tables;
And/or
The table acquiring unit, for described in the inquiry from the basic input-output system BIOS of the server to be detected
SMBIOS tables, the SMBIOS tables are mapped in internal memory;
And/or
The identification information includes:Bus number, device number, function number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710277472.5A CN107423171A (en) | 2017-04-25 | 2017-04-25 | The detection method and device of insertion slot type function expansion card based on PCIE standards |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710277472.5A CN107423171A (en) | 2017-04-25 | 2017-04-25 | The detection method and device of insertion slot type function expansion card based on PCIE standards |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107423171A true CN107423171A (en) | 2017-12-01 |
Family
ID=60424286
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710277472.5A Pending CN107423171A (en) | 2017-04-25 | 2017-04-25 | The detection method and device of insertion slot type function expansion card based on PCIE standards |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107423171A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189602A (en) * | 2018-09-21 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of PCIE Slot Fault Locating Method, device and equipment |
CN109597732A (en) * | 2018-12-11 | 2019-04-09 | 郑州云海信息技术有限公司 | A kind of PCIE device monitoring method based on Linux |
CN111124842A (en) * | 2019-12-10 | 2020-05-08 | 山东超越数控电子股份有限公司 | Method for displaying equipment information on domestic firmware interface |
CN114116544A (en) * | 2020-08-31 | 2022-03-01 | 北京达佳互联信息技术有限公司 | Method, device and equipment for acquiring slot information and storage medium |
WO2023284099A1 (en) * | 2021-07-16 | 2023-01-19 | 长鑫存储技术有限公司 | Anomaly detection method, repair method and anomaly detection system for slots of machine |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1851663A (en) * | 2005-04-22 | 2006-10-25 | 鸿富锦精密工业(深圳)有限公司 | Peripheral component interconnecting device assembling rightness verifying device and method |
US7149885B2 (en) * | 2002-04-05 | 2006-12-12 | Nec Corporation | Automatic concealment of expansion cards in computer system |
-
2017
- 2017-04-25 CN CN201710277472.5A patent/CN107423171A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7149885B2 (en) * | 2002-04-05 | 2006-12-12 | Nec Corporation | Automatic concealment of expansion cards in computer system |
CN1851663A (en) * | 2005-04-22 | 2006-10-25 | 鸿富锦精密工业(深圳)有限公司 | Peripheral component interconnecting device assembling rightness verifying device and method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189602A (en) * | 2018-09-21 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of PCIE Slot Fault Locating Method, device and equipment |
CN109597732A (en) * | 2018-12-11 | 2019-04-09 | 郑州云海信息技术有限公司 | A kind of PCIE device monitoring method based on Linux |
CN111124842A (en) * | 2019-12-10 | 2020-05-08 | 山东超越数控电子股份有限公司 | Method for displaying equipment information on domestic firmware interface |
CN114116544A (en) * | 2020-08-31 | 2022-03-01 | 北京达佳互联信息技术有限公司 | Method, device and equipment for acquiring slot information and storage medium |
CN114116544B (en) * | 2020-08-31 | 2024-05-07 | 北京达佳互联信息技术有限公司 | Slot information acquisition method, device, equipment and storage medium |
WO2023284099A1 (en) * | 2021-07-16 | 2023-01-19 | 长鑫存储技术有限公司 | Anomaly detection method, repair method and anomaly detection system for slots of machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107423171A (en) | The detection method and device of insertion slot type function expansion card based on PCIE standards | |
CN107844417A (en) | Method for generating test case and device | |
CN110704304B (en) | Application program testing method and device, storage medium and server | |
CN103116621B (en) | The detection method of computer hardware temperature, system and the method identifying ardware model number | |
CN106294222A (en) | A kind of method and device determining PCIE device and slot corresponding relation | |
CN110287696A (en) | A kind of detection method, device and the equipment of the shell process that rebounds | |
US9286180B1 (en) | Final result checking for system with pre-verified cores | |
CN108345787B (en) | Determine the method, detection device and system of processor security | |
CN112256635B (en) | Method and device for identifying file type | |
CN112925524A (en) | Method and device for detecting unsafe direct memory access in driver | |
CN104281805A (en) | Secure protection method and processor | |
CN109992511B (en) | Device and method for obtaining code test coverage rate | |
CN105912415B (en) | A kind of method and device of checking cache consistency protocols | |
KR20220080703A (en) | Method for analyzing a similarity of a website based on a keyword in script | |
CN109491679B (en) | CPLD online upgrading method and device | |
CN114625106B (en) | Method, device, electronic equipment and storage medium for vehicle diagnosis | |
CN115292113A (en) | Method and device for fault detection of internal memory of server and electronic equipment | |
CN115357894A (en) | Application program bug detection method and system with custom verification function | |
CN114416442A (en) | Hardware change detection method and device, electronic equipment and readable storage medium | |
CN108021951A (en) | A kind of method of document detection, server and computer-readable recording medium | |
JP2003271694A (en) | Simulation method and device for verifying logic circuit including processor and error detecting program for verifying logic circuit | |
CN111931161A (en) | RISC-V processor based chip verification method, apparatus and storage medium | |
CN111355614A (en) | Abnormal information positioning method and device suitable for payment equipment log | |
CN112948415A (en) | SQL statement detection method and device, terminal equipment and storage medium | |
CN111124885B (en) | White board switch testing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171201 |
|
RJ01 | Rejection of invention patent application after publication |