CN108509301A - The update method and more new system of system slot information in a kind of SMBIOS - Google Patents
The update method and more new system of system slot information in a kind of SMBIOS Download PDFInfo
- Publication number
- CN108509301A CN108509301A CN201810204072.6A CN201810204072A CN108509301A CN 108509301 A CN108509301 A CN 108509301A CN 201810204072 A CN201810204072 A CN 201810204072A CN 108509301 A CN108509301 A CN 108509301A
- Authority
- CN
- China
- Prior art keywords
- slot
- information
- adapter
- smbios
- connection status
- 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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- 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/2236—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 CPU or processors
-
- 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/2289—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
-
- 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/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
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)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The update method of system slot information in a kind of SMBIOS provided herein, including:After initializing the SMBIOS, the combined information of slot and adapter on mainboard is determined;The number of buses of CPU root ports is obtained to determine CPU quantity, and static tableau format is determined according to the CPU quantity;The practical connection status of address bus is obtained, and the practical connection status is filled in the static table to update the system slot information.By the way that static tableau format is arranged according to CPU quantity, and include in static table, convenient for checking the practical connection of equipment, it is not necessary to be interfered by irrelevant information by the relevant information of address bus.The application also provides a kind of more new system of system slot information in SMBIOS, a kind of readable storage medium storing program for executing and a kind of server, has above-mentioned advantageous effect.
Description
Technical field
This application involves server field, more particularly to the update method of system slot information and update in a kind of SMBIOS
System, a kind of readable storage medium storing program for executing and a kind of server.
Background technology
At present in 2 road servers, according to 2 CPU the case where all slots and transfer card combination information are write
It is listed in static table well, static table is then deleted by redundancy according to the combined information of practical slot and adapter, however is
The Bus Address (address bus) to unite in slot Information in 1 and 2 CPU are different.
In addition, for other multipath servers, such as 4 tunnels or 8 road servers, there is also the information of root port
The case where changing because of CPU quantity differences can not show the actual Bus of equipment when the slot on adapter is inserted with equipment
The Bus Address information for the root port that slot is connected is shown in Address information, when no equipment.Therefore how to solve
Certainly the above problem is the problem of those skilled in the art need to face.
Apply for content
The purpose of the application is to provide the update method and more new system of system slot information in a kind of SMBIOS, Yi Zhongke
Storage medium and a kind of server are read, asking for real system slot Information can not be shown according to CPU quantity by solving existing static table
Topic.
In order to solve the above technical problems, the application provides a kind of update method of system slot information in SMBIOS, specifically
Technical solution is as follows:
After initializing the SMBIOS, the combined information of slot and adapter on mainboard is determined;
The number of buses of CPU root ports is obtained to determine CPU quantity, and static tableau format is determined according to the CPU quantity;
The practical connection status of address bus is obtained, and the practical connection status is filled in the static table to update
The system slot information.
Wherein, the combined information of slot and adapter includes on the determining mainboard:
The combined information of slot and adapter on mainboard is determined by reading GPIO values.
Wherein, the practical connection status for obtaining address bus includes:
Scan Bus:Dev:Tri- parameters of Fun are to obtain the practical connection status of address bus.
Wherein, the update method further includes:
Delete the combined information of the slot and adapter of redundancy.
The application also provides a kind of more new system of system slot information in SMBIOS, including:
First determining module, the combination letter for after initializing the SMBIOS, determining slot and adapter on mainboard
Breath;
Second determining module, for obtaining the number of buses of CPU root ports to determine CPU quantity, and according to the CPU quantity
Determine static state tableau format;
Update module, the practical connection status for obtaining address bus, and the practical connection status is filled in institute
Static table is stated to update the system slot information.
Wherein, first determining module includes:
Determination unit, the combined information for determining slot and adapter on mainboard by reading GPIO values.
Wherein, the update module includes:
Scanning element, for scanning Bus:Dev:Tri- parameters of Fun are to obtain the practical connection status of address bus.
Wherein, further include:
Removing module, the combined information of slot and adapter for deleting redundancy.
The application also provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, and 5, which state computer program, is performed
Shi Shixian realizes step corresponding to following method:
After initializing the SMBIOS, the combined information of slot and adapter on mainboard is determined;
The number of buses of CPU root ports is obtained to determine CPU quantity, and static tableau format is determined according to the CPU quantity;
The practical connection status of address bus is obtained, and the practical connection status is filled in the static table to update
The system slot information.
The application also provides a kind of server, including memory and processor, has computer program in the memory,
The processor realizes step corresponding to following method when calling the computer program in the memory:
After initializing the SMBIOS, the combined information of slot and adapter on mainboard is determined;
The number of buses of CPU root ports is obtained to determine CPU quantity, and static tableau format is determined according to the CPU quantity;
The practical connection status of address bus is obtained, and the practical connection status is filled in the static table to update
The system slot information.
The update method of system slot information in a kind of SMBIOS provided herein, including:Described in initialization
After SMBIOS, the combined information of slot and adapter on mainboard is determined;Obtain CPU root ports number of buses to determine CPU quantity,
And static tableau format is determined according to the CPU quantity;The practical connection status of address bus is obtained, and the reality is connected
State is filled in the static table to update the system slot information.By the way that static tableau format is arranged according to CPU quantity, and
And by the relevant information of address bus include in static table, convenient for checking the practical connection of equipment, it is not necessary to by unrelated letter
Breath interference.The application also provides a kind of more new system of system slot information in SMBIOS, a kind of readable storage medium storing program for executing and one kind
Server has above-mentioned advantageous effect, and details are not described herein again.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
The flow chart of the update method of system slot information in a kind of SMBIOS that Fig. 1 is provided by the embodiment of the present application;
The update system structure signal of system slot information in a kind of SMBIOS that Fig. 2 is provided by the embodiment of the present application
Figure.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, in a kind of SMBIOS that Fig. 1 is provided by the embodiment of the present application system slot information update method
Flow chart, the update method is as follows:
S101:After initializing the SMBIOS, the combined information of slot and adapter on mainboard is determined;
System slot information includes mainly PCIE slots bandwidth, current PC IE slot bandwidth usages state, switching card type
With Slot ID etc..Update mainly judge slot whether access device, if so, obtaining above-mentioned slot Information and updating.
This step is intended to obtain the combined information of slot and adapter.Specific determining method is not limited herein, such as can
To determine the combined information of slot and adapter on mainboard by reading GPIO values, it that is to say and pin is reserved by slot on mainboard
Level information determine combined information.
It should be noted that not an adapter corresponds to a slot, an adapter may correspond to multiple slots.
Therefore the level height combination that pin can be reserved according to slot judges corresponding switching card type in slot.Also therefore, when slotting
When the reserved number of pins of slot is t, 2 can be predefinedtA switching card type.
S102:The number of buses of CPU root ports is obtained to determine CPU quantity, and static table is determined according to the CPU quantity
Format;
In the prior art, after the combined information of slot and adapter, directly combined information is filled on determining mainboard
Into static table.By taking 2 road CPU as an example, existing static table format is the sequence of CPU0/CPU1.
And the application first obtains the quantity of CPU, avoids the practical letter for only showing two CPU in static table there are one CPU
Breath is misled.Specifically, determining the quantity of CPU by obtaining the number of buses (Busnumber) of CPU root ports (root port).Tool
The order transmission of body is completed by the form of function code.
After determining CPU quantity, static tableau format is determined according to CPU quantity.Such as 4 road CPU, work as determination
When there are 3 CPU, can static table format be set with the format of CPU0/CPU1/CPU2.
Certainly, determined that static table format can establish static table, the process for establishing static table is the prior art, herein not
It repeats.
S103:The practical connection status of address bus is obtained, and the practical connection status is filled in the static table
To update the system slot information.
This step is intended to determine the corresponding access state of slot.Specifically, can be by scanning Bus:Dev:Tri- ginsengs of Fun
For number to obtain the practical connection status of address bus, the Bus Address (address bus) when no equipment have Bus when equipment
Address, corresponding Current Usage (currently used situation).
It should be noted that can show the Bus Address information for the root port that slot is connected when without equipment.
Later, the static table that will be determined in specific slot Information filling step S102.It should be noted that this process
Dynamic process, so-called dynamic process, refer to when there is equipment to be switched in or out, corresponding its slot state information of update.
Based on above-described embodiment, the update method can also include:
Delete the combined information of the slot and adapter of redundancy.
Here deletion refers to deleting the slot Information of no equipment access so that static table is only presented that there are equipment accesses
Slot Information so that the existing slot Information of system is very clear.
The embodiment of the present application provides a kind of update method of system slot information in SMBIOS, can pass through the above method
Realize that the dynamic update of system slot information will not be limited to the information listed by static table completely, in 2 road servers, according to
The number of CPU, dynamic update system slot Information.It is shown according to the sequence of CPU0/CPU1 in display, when CPU1 is not present
When, all slot Informations connected to it can be all removed, so that being conducive to check which equipment be connected to.In addition, being
Bus Address information in system slot Information, which is inserted with according to the slot on the adapter connect when equipment is deposited, shows equipment reality
Bus Address information, be conducive to the practical connection for checking equipment.
The more new system of system slot information in a kind of SMBIOS provided by the embodiments of the present application is introduced below, under
The more new system of text description can correspond reference with update method above.
Referring to Fig. 2, the application also provides a kind of more new system of system slot information in SMBIOS, which can be with
Including:
First determining module 100, for after initializing the SMBIOS, determining the combination of slot and adapter on mainboard
Information;
Second determining module 200, for obtaining the number of buses of CPU root ports to determine CPU quantity, and according to the CPU
Quantity determines static tableau format;
Update module 300, the practical connection status for obtaining address bus, and by the practical connection status fill in
The static table is to update the system slot information.
Wherein, first determining module includes:
Determination unit, the combined information for determining slot and adapter on mainboard by reading GPIO values.
Wherein, the update module includes:
Scanning element, for scanning Bus:Dev:Tri- parameters of Fun are to obtain the practical connection status of address bus.
Wherein, further include:
Removing module, the combined information of slot and adapter for deleting redundancy.
Present invention also provides a kind of readable storage medium storing program for executing, have computer program thereon, which is performed
When the step of above-described embodiment is provided may be implemented.The storage medium may include:USB flash disk, mobile hard disk, read-only memory
(Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD
Etc. the various media that can store program code.
Present invention also provides a kind of servers, may include memory and processor, have calculating in the memory
When the processor calls the computer program in the memory, the step that above-described embodiment is provided may be implemented in machine program
Suddenly.Certain server can also include various network interfaces, the components such as power supply.
Each embodiment is described by the way of progressive in specification, the highlights of each of the examples are with other realities
Apply the difference of example, just to refer each other for identical similar portion between each embodiment.For embodiment provide system and
Speech, since it is corresponding with the method that embodiment provides, so description is fairly simple, related place is referring to method part illustration
.
Specific examples are used herein to illustrate the principle and implementation manner of the present application, and above example is said
It is bright to be merely used to help understand the present processes and its core concept.It should be pointed out that for the ordinary skill of the art
For personnel, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these improvement
It is also fallen into the application scope of the claims with modification.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only that
A little elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. the update method of system slot information in a kind of SMBIOS, which is characterized in that including:
After initializing the SMBIOS, the combined information of slot and adapter on mainboard is determined;
The number of buses of CPU root ports is obtained to determine CPU quantity, and static tableau format is determined according to the CPU quantity;
The practical connection status of address bus is obtained, and the practical connection status is filled in the static table with described in updating
System slot information.
2. update method according to claim 1, which is characterized in that the combination of slot and adapter on the determining mainboard
Information includes:
The combined information of slot and adapter on mainboard is determined by reading GPIO values.
3. update method according to claim 1, which is characterized in that the practical connection status packet for obtaining address bus
It includes:
Scan Bus:Dev:Tri- parameters of Fun are to obtain the practical connection status of address bus.
4. update method according to claim 1, which is characterized in that the update method further includes:
Delete the combined information of the slot and adapter of redundancy.
5. the more new system of system slot information in a kind of SMBIOS, which is characterized in that including:
First determining module, for after initializing the SMBIOS, determining the combined information of slot and adapter on mainboard;
Second determining module is determined for obtaining the number of buses of CPU root ports to determine CPU quantity, and according to the CPU quantity
Static tableau format;
Update module, the practical connection status for obtaining address bus, and the practical connection status is filled in described quiet
State table is to update the system slot information.
6. more new system according to claim 5, which is characterized in that first determining module includes:
Determination unit, the combined information for determining slot and adapter on mainboard by reading GPIO values.
7. more new system according to claim 5, which is characterized in that the update module includes:
Scanning element, for scanning Bus:Dev:Tri- parameters of Fun are to obtain the practical connection status of address bus.
8. more new system according to claim 5, which is characterized in that further include:
Removing module, the combined information of slot and adapter for deleting redundancy.
9. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is performed
Realize acquisition methods according to any one of claims 1-4.
10. a kind of server, which is characterized in that including memory and processor, have computer program, institute in the memory
It states when processor calls the computer program in the memory and realizes acquisition methods according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810204072.6A CN108509301A (en) | 2018-03-13 | 2018-03-13 | The update method and more new system of system slot information in a kind of SMBIOS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810204072.6A CN108509301A (en) | 2018-03-13 | 2018-03-13 | The update method and more new system of system slot information in a kind of SMBIOS |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108509301A true CN108509301A (en) | 2018-09-07 |
Family
ID=63376469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810204072.6A Pending CN108509301A (en) | 2018-03-13 | 2018-03-13 | The update method and more new system of system slot information in a kind of SMBIOS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108509301A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399280A (en) * | 2019-06-18 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of management method of PCIE device, management system and relevant apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104202194A (en) * | 2014-09-10 | 2014-12-10 | 华为技术有限公司 | Configuration method and device of PCIe (peripheral component interface express) topology |
CN106557340A (en) * | 2015-09-29 | 2017-04-05 | 中兴通讯股份有限公司 | A kind of collocation method and device |
CN107193599A (en) * | 2017-05-23 | 2017-09-22 | 郑州云海信息技术有限公司 | A kind of method that dynamic updates system slot information in SMBIOS |
CN107656855A (en) * | 2016-07-26 | 2018-02-02 | 佛山市顺德区顺达电脑厂有限公司 | User is reminded to misplace CPU system and method |
-
2018
- 2018-03-13 CN CN201810204072.6A patent/CN108509301A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104202194A (en) * | 2014-09-10 | 2014-12-10 | 华为技术有限公司 | Configuration method and device of PCIe (peripheral component interface express) topology |
CN106557340A (en) * | 2015-09-29 | 2017-04-05 | 中兴通讯股份有限公司 | A kind of collocation method and device |
CN107656855A (en) * | 2016-07-26 | 2018-02-02 | 佛山市顺德区顺达电脑厂有限公司 | User is reminded to misplace CPU system and method |
CN107193599A (en) * | 2017-05-23 | 2017-09-22 | 郑州云海信息技术有限公司 | A kind of method that dynamic updates system slot information in SMBIOS |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399280A (en) * | 2019-06-18 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of management method of PCIE device, management system and relevant apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106557340B (en) | Configuration method and device | |
CN103595790B (en) | The remote access method of equipment, thin-client and virtual machine | |
CN110543404A (en) | Server, hard disk lighting method and system and computer readable storage medium | |
CN105281937B (en) | Server, service management system, and service management method | |
CN112214247B (en) | System starting method and related equipment | |
CN111143256A (en) | Method and device for reading field replaceable unit information | |
CN108170620A (en) | A kind of server hard disk extension system and method, hard disk signal enhancing method | |
CN116521429B (en) | Asset information reporting method and device, storage medium and electronic equipment | |
CN109451098A (en) | FPGA accelerator card MAC Address configuration method, device and accelerator card | |
CN109933557A (en) | A kind of generation method and device of I2C topological diagram | |
CN111294413A (en) | Method, device and readable medium for determining Internet Protocol (IP) address | |
CN112671942A (en) | Method, device, equipment and storage medium for setting network port name | |
CN111078353A (en) | Operation method of storage equipment and physical server | |
CN115129249A (en) | SAS link topology identification management method, system, terminal and storage medium | |
CN107193599A (en) | A kind of method that dynamic updates system slot information in SMBIOS | |
CN114003528A (en) | OCP switching card, switching system and switching method | |
CN108509301A (en) | The update method and more new system of system slot information in a kind of SMBIOS | |
CN110515540B (en) | Method and device for topology of hard disk | |
US10803109B2 (en) | Method and device for reading and writing video data in NAS device | |
CN117591009A (en) | Data management method, storage device and server | |
CN110502282B (en) | Loading method, device and equipment of multi-channel NTB card and readable storage medium | |
CN117135055A (en) | Bandwidth resource control method and device, storage medium and electronic device | |
CN109344032A (en) | A kind of monitoring method and device | |
CN112860595B (en) | PCI (peripheral component interconnect express) equipment or PCIE (peripheral component interconnect express) equipment, data access method and related assembly | |
CN112527715B (en) | Automatic configuration method for multi-IO expansion of server and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180907 |