Device configuration information static display method, device, medium and product

By reading and confirming the in-location information of the server device in the BIOS, updating or filling the configuration information, the problem of inaccurate viewing of device configuration information in the prior art is solved, and the rapid and accurate viewing and positioning of device information under the system is achieved. , save operation and maintenance costs and ensure equipment stability.

CN118689582BActive Publication Date: 2024-11-19INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411188222.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-11-19
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

The prior art is difficult to accurately view and distinguish the device configuration information of the server under the operating system, resulting in misleading information transmission and the inability to accurately locate the device situation and information.

Method used

In the basic input and output system (BIOS), by reading the in-place information of the core equipment of the electronic product, confirm whether the equipment is in-place, and update or fill the corresponding configuration information into the protocol table. The in-place equipment does not fill in the setting characters. Information for real-time viewing and precise positioning under the system.

Benefits of technology

It realizes real-time viewing and precise positioning of electronic product configuration information under the system, saves operation and maintenance labor costs, improves viewing timeliness and accuracy, and ensures the stability and reliability of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689582B_ABST
    Figure CN118689582B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a static display method, device, medium and product for device configuration information, which is applied to a basic input and output system, including: in the stage of executing a driver configuration environment, reading the in-place information of different core devices in an electronic product; confirming whether each core device is in place; if the core device is in place, updating or filling the corresponding configuration information of the in-place core device in the type table corresponding to the in-place core device in the protocol table; if the core device is not in place, filling the setting character information in the type table corresponding to the non-in-place core device in the protocol table. In this way, the actual in-place device configuration information is configured and displayed in a static manner using the protocol table, and the non-in-place device directly displays the setting characters in a static manner, which is convenient for users to conveniently and quickly view and accurately locate the configuration information of electronic products in real time under the system, and saves the operation and maintenance manpower cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, medium and product for statically displaying device configuration information. Background Art

[0002] Electronic products such as servers, desktops, notebooks and mobile phones all need to view relevant configuration information under the operating system. The information is mainly collected and summarized in the protocol specification table of the Basic Input Output System (BIOS) for recording. The specific actual configuration of each electronic product may not be the same. For example, the server configuration is divided into single-channel, dual-channel, four-channel, eight-channel and other servers. If there are multiple configurations involved in the server system but the specific equipment is not actually installed, it is impossible to distinguish between the actual installed equipment and the uninstalled equipment. If the information of the identified equipment is filled into the unidentified device type, this will lead to incorrect information transmission, misleading users to be unable to accurately locate the specific situation and specific information of the equipment. Summary of the invention

[0003] The purpose of the present invention is to provide a method, device, medium and product for static display of device configuration information, so that users can conveniently and quickly view and accurately locate the configuration information of electronic products in real time under the system, and save operation and maintenance manpower costs.

[0004] In order to solve the above technical problems, the present invention provides a method for statically displaying device configuration information, which is applied to a basic input and output system. The method comprises:

[0005] In the stage of executing the driver configuration environment, the in-situ information of different core devices in the electronic product is read;

[0006] According to the read presence information of different core devices, confirm whether each core device is in place;

[0007] If the core device is in place, the corresponding configuration information of the core device in place is updated or filled in the type table corresponding to the core device in place in the protocol table;

[0008] If the core device is not in place, the setting character information is filled in the type table corresponding to the core device that is not in place in the protocol table.

[0009] In a first aspect, in the static display method of device configuration information provided by the present invention, the in-place information of different core devices in the electronic product is read, including:

[0010] Read the in-place information of each processor, each memory, each peripheral component interconnect device and each power supply in the electronic product;

[0011] Correspondingly, according to the read presence information of different core devices, confirm whether each core device is in place, including:

[0012] According to the read information about each processor, each memory, each peripheral component interconnect device and each power supply, it is confirmed whether each processor is in place, whether the memory of each memory slot of each processor is in place, whether there is a peripheral component interconnect device in the slot corresponding to each peripheral component interconnect device, and whether the power supply is in place.

[0013] On the other hand, in the static display method of device configuration information provided by the present invention, if the core device is in place, the corresponding configuration information of the in-place core device is updated or filled in the type table corresponding to the in-place core device in the protocol table; if the core device is not in place, the setting character information is filled in the type table corresponding to the in-place core device in the protocol table, including:

[0014] If the processor is in place, the corresponding configuration information of the in-place processor is updated in the type table corresponding to the in-place processor in the protocol table; if the processor is not in place, the setting character information is filled in the type table corresponding to the processor not in place in the protocol table;

[0015] If the memory is in place, the corresponding configuration information of the in-place memory is filled into the type table corresponding to the in-place memory in the protocol table; if the memory is not in place, the setting character information is filled into the type table corresponding to the in-place memory in the protocol table;

[0016] If there is a peripheral component interconnect device in the slot, fill the corresponding configuration information of the existing peripheral component interconnect device into the type table corresponding to the existing peripheral component interconnect device in the protocol table; if there is no peripheral component interconnect device in the slot, fill the setting character information into the type table corresponding to the non-existent peripheral component interconnect device in the protocol table;

[0017] If the power supply is in place, the corresponding configuration information of the in-place power supply is updated to the type table corresponding to the in-place power supply in the protocol table; if the power supply is not in place, the setting character information is filled in the type table corresponding to the in-place power supply in the protocol table.

[0018] On the other hand, in the static display method of the device configuration information provided by the present invention, if the processor is in place, the corresponding configuration information of the in-place processor is updated in the type table corresponding to the in-place processor in the protocol table; if the processor is not in place, the setting character information is filled in the type table corresponding to the processor not in place in the protocol table, including:

[0019] If the processor is in place, then read the relevant registers of the in-place processor to obtain parameter information of the in-place processor;

[0020] Update the parameter information of the in-place processor in the first processor type table and the second processor type table in the protocol table; the first processor type table is used to display some key information of the processor; the second processor type table is used to display some cache information of the processor;

[0021] If the processor is not in place, the setting character information is filled in the first processor type table and the second processor type table corresponding to the processor not in place in the protocol table.

[0022] On the other hand, in the static display method of device configuration information provided by the present invention, updating the parameter information of the in-place processor in the first processor type table and the second processor type table in the protocol table includes:

[0023] Update the slot information, type, architecture, manufacturer, version, voltage, external clock, maximum speed, current speed, status, serial number, model, number of cores, number of enabled cores, number of threads, and type of cores of the in-place processor in the first processor type table in the protocol table;

[0024] The cache name, L1 cache operation mode, L1 cache location information, L1 cache installation capacity, L1 cache maximum capacity, L1 cache type, L1 cache error type of the L1 cache in the processor in place, the cache name, L2 cache operation mode, L2 cache location information, L2 cache installation capacity, L2 cache maximum capacity, L2 cache type, L2 cache error type of the L2 cache, the cache name, L3 cache operation mode, L3 cache location information, L3 cache installation capacity, L3 cache maximum capacity, L3 cache type, and L3 cache error type of the L3 cache in the second processor type table in the protocol table.

[0025] On the other hand, in the static display method of the device configuration information provided by the present invention, if the memory is in place, the corresponding configuration information of the in-place memory is filled into the type table corresponding to the in-place memory in the protocol table; if the memory is not in place, the setting character information is filled into the type table corresponding to the in-place memory in the protocol table, including:

[0026] If the memory is in place, obtain the relevant information of the memory in place;

[0027] Fill in the relevant information of the in-place memory in the first memory type table, the second memory type table and the third memory type table in the protocol table; the first memory type table is used to display the memory part type information; the second memory type table is used to display the memory part parameter information; the third memory type table is used to display the memory part address information;

[0028] If the memory is not in place, then the setting character information is filled in the first memory type table, the second memory type table and the third memory type table corresponding to the memory not in place in the protocol table.

[0029] On the other hand, in the static display method of device configuration information provided by the present invention, the relevant information of the in-place memory is filled in the first memory type table, the second memory type table and the third memory type table in the protocol table, including:

[0030] Fill in the memory link mode, memory error type, maximum memory capacity, and memory quantity of the in-place memory in the first memory type table in the protocol table;

[0031] Fill in the second memory type table in the protocol table with the total memory width, memory data width, memory capacity, memory type, memory location information, channel location information for data interaction between the memory and the processor, memory generation type, memory speed, memory manufacturer, memory serial number, number of memory blocks, memory setting speed, maximum memory voltage, minimum memory voltage, and current memory voltage of the in-place memory;

[0032] Fill in the memory start address and memory end address of the in-place memory in the third memory type table in the protocol table.

[0033] On the other hand, in the static display method of device configuration information provided by the present invention, if there is a peripheral component interconnect device in the slot, the corresponding configuration information of the existing peripheral component interconnect device is filled into the type table corresponding to the existing peripheral component interconnect device in the protocol table, including:

[0034] If there is a peripheral component interconnect device in the slot, the location information, bandwidth, protocol number, current status, device type, device identity information, power supply voltage, and unique identifier of the existing peripheral component interconnect device are filled in the slot type table corresponding to the existing peripheral component interconnect device in the protocol table; the slot type table is used to display key information of the slot device.

[0035] On the other hand, in the static display method of device configuration information provided by the present invention, if the power supply is in place, the corresponding configuration information of the in-place power supply is updated to the type table corresponding to the in-place power supply in the protocol table, including:

[0036] If the power supply is in place, the power supply serial number, power supply location information, power supply name, power supply manufacturer, power supply serial number, power supply maximum power, power supply status, power supply circuit breaker version, power supply type, power supply input voltage switching status, and power supply hot plug status are updated to the power supply type table corresponding to the in-place power supply in the protocol table; the power supply type table is used to display some key information of the power supply.

[0037] On the other hand, in the static display method of device configuration information provided by the present invention, confirming whether each processor is in place includes:

[0038] Determine the number of processors actually used by the electronic product and the first processor during the startup of the electronic product;

[0039] confirming whether the first processor is in place;

[0040] If the first processor is not in place, it is directly determined that the electronic product cannot be started;

[0041] If the first processor is in place, updating the corresponding configuration information of the first processor in the type table corresponding to the first processor in the protocol table;

[0042] After updating the relevant information of the first processor, confirm whether the next processor is in place.

[0043] On the other hand, in the static display method of device configuration information provided by the present invention, confirming whether the memory of each memory slot of each processor is in place includes:

[0044] If the first processor is in place, confirm whether the memory of the first memory slot of the first processor is in place;

[0045] If the memory in the first memory slot of the first processor is not in place, it is directly determined that the electronic product cannot be started;

[0046] If the memory of the first memory slot of the first processor is in place, the corresponding configuration information of the memory of the first memory slot of the first processor is filled into the type table corresponding to the first memory slot of the first processor in the protocol table.

[0047] On the other hand, in the static display method of device configuration information provided by the present invention, confirming whether the power supply is in place includes:

[0048] Check whether at least one power supply is in place;

[0049] If all power sources are not in place, it is directly determined that the electronic product cannot be started;

[0050] If at least one power supply is in place, the corresponding configuration information of the in-place power supply is updated into the type table corresponding to the in-place power supply in the protocol table.

[0051] In order to solve the above technical problems, the present invention further provides a static display device for device configuration information, the device comprising:

[0052] Memory for storing computer programs;

[0053] The processor is used to implement the steps of the above-mentioned method for statically displaying device configuration information when executing the computer program.

[0054] In order to solve the above technical problem, the present invention also provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method for statically displaying device configuration information are implemented.

[0055] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned method for statically displaying device configuration information when executed by a processor.

[0056] It can be seen from the above technical scheme that a static display method of device configuration information provided by the present invention is applied to a basic input and output system, including: in the execution driver configuration environment stage, reading the in-place information of different core devices in the electronic product; confirming whether each core device is in place based on the read in-place information of different core devices; if the core device is in place, updating or filling the corresponding configuration information of the in-place core device in the type table corresponding to the in-place core device in the protocol table; if the core device is not in place, filling the set character information in the type table corresponding to the non-in-place core device in the protocol table.

[0057] The beneficial effect of the present invention lies in that the above-mentioned device configuration information static display method provided by the present invention, in the execution drive configuration environment stage, determines whether to update or fill in the corresponding device information in the corresponding type table in the protocol table by confirming whether each core device is in place, or fills in the setting character information in the corresponding type table in the protocol table. In this way, the actual in-place device configuration information of the electronic product is configured and displayed in a static manner using the protocol table, and the non-in-place device of the electronic product can be directly displayed with the setting characters in a static manner, which is convenient for users to conveniently and quickly view and accurately locate the configuration information of the electronic product in real time through the protocol table under the system, and saves operation and maintenance manpower costs, and does not need to rely on physical disassembly to view the physical information of the server, thereby improving the timeliness and accuracy of viewing the core device configuration information of the electronic product and ensuring the stability and reliability of the electronic product.

[0058] In addition, the present invention also provides a corresponding device configuration information static display device, non-volatile storage medium and product for the device configuration information static display method, which have the same or corresponding technical features as the above-mentioned device configuration information static display method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0060] Figure 1 A flowchart of a method for statically displaying device configuration information provided by an embodiment of the present invention;

[0061] Figure 2 A schematic diagram of the structure of a static display device for device configuration information provided by an embodiment of the present invention;

[0062] Figure 3 A schematic diagram of the structure of a static display device for device configuration information provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A flowchart of a method for statically displaying device configuration information provided by an embodiment of the present invention, such as Figure 1 As shown, the method is applied to a basic input and output system, comprising:

[0065] S101, in the stage of executing the driver configuration environment, reading the in-place information of different core devices in the electronic product.

[0066] In implementation, different core devices in an electronic product may include: a processor, a memory, a peripheral component interconnect (PCI), and a power supply unit (PSU).

[0067] In specific implementation, after the electronic product is powered on, it enters the BIOS execution driver configuration environment stage, and then executes step S101 to read the in-place information of different core devices in the electronic product, which may include: reading the in-place information of each processor, each memory, each peripheral component interconnection device and each power supply in the electronic product.

[0068] S102: confirm whether each core device is in place according to the read presence information of different core devices.

[0069] In specific implementation, step S102 confirms whether each core device is in place based on the read presence information of different core devices, which may specifically include: confirming whether each processor is in place, whether the memory of each memory slot of each processor is in place, whether there is a peripheral component interconnect device in the slot corresponding to each peripheral component interconnect device, and whether the power supply is in place based on the read presence information of each processor, each memory, each peripheral component interconnect device and each power supply.

[0070] If the core device is in place, execute step S103; if the core device is not in place, execute step S104;

[0071] S103: Update or fill corresponding configuration information of the in-place core device in the type table corresponding to the in-place core device in the protocol table.

[0072] It should be noted that the configuration information may include configuration information related to the processor, memory, PCI device, power supply, etc.

[0073] S104, filling the setting character information in the type table corresponding to the non-present core device in the protocol table.

[0074] It should be noted that the set character information can be set to NA (Not Available) or other special characters.

[0075] Take the example of an electronic product being a server. When the server is started, the BIOS will transmit the PCI device of the server and the corresponding configuration information collected to the baseboard management controller (BMC) for display during the PCI enumeration phase of the startup. This method has some disadvantages: the server must enter the operating system after the startup is completed, and the BMC will receive and analyze the data of the server BIOS and display it on the web page interface of the BMC. At the same time, the information transmitted by the BIOS to the BMC is the server device information identified by the BIOS during the startup process, and the unidentified information cannot be effectively transmitted. At the same time, if you want to view this information in time, you must wait until the server enters the operating system before you can view it. If the server does not enter the operating system, the BMC will display the configuration information of the last server startup and it is inaccurate. Therefore, the present invention can configure and display the core information of the server by utilizing the unified specification (System Management BIOS, SMBIOS) protocol that the motherboard or system manufacturer needs to follow to display product management information in a standard format, and view it through commands in the BIOS interface shell (essentially a program that provides a line-oriented interactive interface between the user and the operating system) environment without entering the operating system, or, when the server enters the operating system, view it through commands under the system. In the SMBIOS protocol, the present invention can collect and store the core configuration information of the processor, memory, power supply, PCI devices, etc. Even if the CPU slot is not connected to the CPU device, the present invention still needs to display it, but the display content is set character information (such as NA). The information display of the memory part is similar, the information display of the PSU is similar, and the PCI device information can also be displayed in the same way.

[0076] In the above-mentioned static display method of device configuration information provided by an embodiment of the present invention, in the execution drive configuration environment stage, by confirming whether each core device is in place, it is decided whether to update or fill in the corresponding device information in the type table corresponding to the protocol table, or the setting character information is filled in the corresponding type table in the protocol table. In this way, the actual in-place device configuration information of the electronic product is configured and displayed in a static manner using the protocol table, and the non-in-place device of the electronic product can be directly displayed with the set characters in a static manner. This is convenient for users to conveniently and quickly view and accurately locate the configuration information of the electronic product in real time through the protocol table under the system, and saves operation and maintenance manpower costs. There is no need to rely on physical disassembly to view the physical information of the server, which improves the timeliness and accuracy of viewing the core device configuration information of the electronic product and ensures the stability and reliability of the electronic product.

[0077] Furthermore, in a specific implementation, in the above-mentioned method for statically displaying device configuration information provided in an embodiment of the present invention, confirming whether each processor is in place may specifically include: determining the number of processors actually used by the electronic product, and the first processor in the startup process of the electronic product; confirming whether the first processor is in place; if the first processor is not in place, directly determining that the electronic product cannot be started; if the first processor is in place, updating the corresponding configuration information of the first processor in the type table corresponding to the first processor in the protocol table; after updating the relevant information of the first processor, confirming whether the next processor is in place.

[0078] In practice, since electronic products involve different numbers of processors, the BIOS in the present invention can first confirm the number of processors actually used by the electronic product, if it is a 2-way system, then it is 2 processors, and if it is a 4-way system, then it is 4 processors.

[0079] The following takes the electronic product as a server and the processor as a central processing unit (CPU) as an example. It can be set up according to two CPUs in two ways. At the same time, the two-way CPU server defaults to 32 memory slots, 6 x16 bandwidth PCI devices and other basic physical information.

[0080] When the server starts, during the BIOS execution driver configuration environment phase, the BIOS confirms whether the CPU is in place by reading the CPU's in-place information. Specifically, it first reads the in-place information of CPU0 (i.e., the first processor). At this time, if CPU0 is not in place, the server cannot start normally. Currently, CPU0 must be in place. When CPU0 is in place, the corresponding configuration information of CPU0 is updated in the type table corresponding to CPU0 in the SMBIOS protocol table. After updating the relevant information of CPU0, confirm whether CPU1 is in place.

[0081] Further, in a specific implementation, in the static display method of device configuration information provided in the embodiment of the present invention, if the core device is in place, the corresponding configuration information of the in-place core device is updated or filled in the type table corresponding to the in-place core device in the protocol table; if the core device is not in place, the setting character information is filled in the type table corresponding to the in-place core device in the protocol table, which may specifically include the following steps:

[0082] If the processor is in place, the corresponding configuration information of the in-place processor is updated in the type table corresponding to the in-place processor in the protocol table; if the processor is not in place, the setting character information is filled in the type table corresponding to the processor not in place in the protocol table;

[0083] If the memory is in place, the corresponding configuration information of the in-place memory is filled into the type table corresponding to the in-place memory in the protocol table; if the memory is not in place, the setting character information is filled into the type table corresponding to the in-place memory in the protocol table;

[0084] If there is a peripheral component interconnect device in the slot, fill the corresponding configuration information of the existing peripheral component interconnect device into the type table corresponding to the existing peripheral component interconnect device in the protocol table; if there is no peripheral component interconnect device in the slot, fill the setting character information into the type table corresponding to the non-existent peripheral component interconnect device in the protocol table;

[0085] If the power supply is in place, the corresponding configuration information of the in-place power supply is updated to the type table corresponding to the in-place power supply in the protocol table; if the power supply is not in place, the setting character information is filled in the type table corresponding to the in-place power supply in the protocol table.

[0086] Furthermore, in the specific implementation, in the above steps, if the processor is in place, the corresponding configuration information of the in-place processor is updated in the type table corresponding to the in-place processor in the protocol table; if the processor is not in place, the setting character information is filled in the type table corresponding to the processor not in place in the protocol table, which may specifically include: if the processor is in place, reading the relevant registers of the in-place processor to obtain the parameter information of the in-place processor; updating the parameter information of the in-place processor in the first processor type table and the second processor type table in the protocol table; the first processor type table is used to display some key information of the processor; the second processor type table is used to display some cache information of the processor; if the processor is not in place, filling in the setting character information in the first processor type table and the second processor type table corresponding to the processor not in place in the protocol table.

[0087] Among them, updating the parameter information of the in-place processor in the first processor type table and the second processor type table in the protocol table can specifically include: updating the slot information, type, architecture, manufacturer, version, voltage, external clock, maximum rate, current rate, status, serial number, model, number of cores, number of enabled cores, number of threads, and core type of the in-place processor in the first processor type table in the protocol table; updating the cache name, L1 cache operation mode, L1 cache location information, L1 cache installation capacity, L1 cache maximum capacity, L1 cache type, L1 cache error type of the L1 cache in the in-place processor, the cache name, L2 cache operation mode, L2 cache location information, L2 cache installation capacity, L2 cache maximum capacity, L2 cache type, L2 cache error type, the cache name, L3 cache operation mode, L3 cache location information, L3 cache installation capacity, L3 cache maximum capacity, L3 cache type, and L3 cache error type of the L1 cache in the in-place processor in the second processor type table in the protocol table.

[0088] In implementation, if CPU0 is in place, the parameter settings of CPU0 will be obtained by reading the relevant registers of CPU0, and updated to the Type4 type (i.e., the first processor type table, used to display the key information of the processor part) and Type7 type (i.e., the second processor type table, used to display the cache information of the processor part) of the CPU0 part of the SMBIOS protocol. Type4 type involves CPU0's slot information, type, architecture, manufacturer, version, voltage, external clock, maximum speed, current speed, status, serial number, model, number of cores, number of enabled cores, number of threads, type of cores, etc.; Type7 type involves the basic information of the L1 / L2 / L3 cache corresponding to CPU0, such as cache name, cache operation mode, cache location information, cache installation capacity, cache maximum capacity, cache type, cache error type, etc. After the CPU0 information is updated, the in-place information of CPU1 is judged after Type4 and Type7, and the Type4 and Type7 corresponding to the SMBIOS protocol table of the in-place CPU1 information are updated. For CPU slots that are not installed, the above information is still displayed, but the actual content is displayed as NA, so that customers can easily understand how many CPUs the current server has.

[0089] Furthermore, in a specific implementation, in the above steps, if the memory is in place, the corresponding configuration information of the in-place memory is filled into the type table corresponding to the in-place memory in the protocol table; if the memory is not in place, the setting character information is filled into the type table corresponding to the not-in-place memory in the protocol table, which may specifically include: if the memory is in place, obtaining relevant information of the in-place memory; filling relevant information of the in-place memory in the first memory type table, the second memory type table and the third memory type table in the protocol table; the first memory type table is used to display part type information of the memory; the second memory type table is used to display part parameter information of the memory; the third memory type table is used to display part address information of the memory; if the memory is not in place, filling in the setting character information in the first memory type table, the second memory type table and the third memory type table corresponding to the not-in-place memory in the protocol table.

[0090] Among them, filling in the relevant information of the in-place memory in the first memory type table, the second memory type table and the third memory type table in the protocol table, specifically may include: filling in the memory link mode, memory error type, maximum memory capacity, and memory quantity of the in-place memory in the first memory type table in the protocol table; filling in the total memory width, memory data width, memory capacity, memory type, memory location information, channel location information for data interaction between the memory and the processor, memory generation, memory speed, memory manufacturer, memory serial number, number of memory blocks, memory setting speed, maximum memory voltage, minimum memory voltage, and current memory voltage of the in-place memory in the second memory type table in the protocol table; filling in the memory start address and memory end address of the in-place memory in the third memory type table in the protocol table.

[0091] During implementation, after all CPU information is updated, confirm the memory slot information and memory parameters. If CPU1 is not installed, fill in NA for the memory related to CPU1. If CPU1 is installed, fill in according to the memory filling rules of CPU0. If CPU0 is installed, confirm whether the memory is in place for the memory slot information under CPU0. If the memory is not in place, fill in NA. However, the memory of the first slot of CPU0 must be in place. If the memory at this position is not in place, the server cannot be started. When the first memory slot of CPU0 is detected to be in place, the obtained memory-related information is filled in Type16 (i.e., the first memory type table, used to display part of the memory type information), Type17 (i.e., the second memory type table, used to display part of the memory parameter information), and Type19 (i.e., the third memory type table, used to display part of the memory address information) of the SMBIOS protocol.

[0092] Type 16 involves memory link mode, memory error type, maximum memory capacity, memory quantity, etc. Type 17 involves total memory width, memory data width, memory capacity, memory type, memory location information, memory internal partition (RANK) location information, memory detailed type, memory generation, memory speed, memory manufacturer, memory serial number (SN), memory part number (PN), memory RANK quantity, memory setting speed, memory maximum voltage, memory minimum voltage, memory current voltage, memory technology, etc. Type 19 involves memory start address, memory end address, memory capacity, etc. Other undetected memory information can be filled in with NA information.

[0093] Furthermore, in the specific implementation, in the above steps, if there is a peripheral component interconnect device in the slot, the corresponding configuration information of the existing peripheral component interconnect device is filled into the type table corresponding to the existing peripheral component interconnect device in the protocol table, which may specifically include: if there is a peripheral component interconnect device in the slot, the location information, bandwidth, protocol number, current state, device type, device identity information, power supply voltage, and unique identifier of the existing peripheral component interconnect device are filled into the slot type table corresponding to the existing peripheral component interconnect device in the protocol table; the slot type table is used to display key information of the slot device.

[0094] In implementation, after the memory information is filled in the SMBIOS protocol type, the corresponding configuration information of the PCI device is filled in the Type9 (i.e., slot type table, used to display key information of slot devices) type of the SMBIOS protocol. Type9 type involves information such as PCI device location information, PCI device bandwidth and PCI protocol number, PCI device current status, PCI device type, PCI device identity document (ID) number information, PCI device power supply voltage, PCI device unique identifier (Bus Device Function, BDF), etc.

[0095] Furthermore, in the specific implementation, in the above steps, if the power supply is in place, the corresponding configuration information of the in-place power supply is updated to the type table corresponding to the in-place power supply in the protocol table, which may specifically include: if the power supply is in place, the power supply serial number, power supply location information, power supply name, power supply manufacturer, power supply serial number, power supply maximum power, power supply status, power supply circuit breaker version, power supply type, power supply input voltage switching status, and power supply hot plug status are updated to the power supply type table corresponding to the in-place power supply in the protocol table; the power supply type table is used to display some key information of the power supply.

[0096] In practice, after the PCI device information is filled in the SMBIOS protocol type, the corresponding configuration information of the power supply is filled in the Type39 type (i.e., the power type table, which is used to display some key information of the power supply) of the SMBIOS protocol. Type39 type involves information such as power supply serial number, power supply location information, power supply name, power supply manufacturer, power supply SN serial number, power supply PN serial number, power supply maximum power, power supply status, power supply FW version, power supply type, power supply input voltage switching status, power supply hot plug status, etc.

[0097] Furthermore, in a specific implementation, in the above-mentioned method for statically displaying device configuration information provided in an embodiment of the present invention, confirming whether the memory of each memory slot of each processor is in place may specifically include: if the first processor is in place, confirming whether the memory of the first memory slot of the first processor is in place; if the memory of the first memory slot of the first processor is not in place, directly determining that the electronic product cannot be started; if the memory of the first memory slot of the first processor is in place, filling in the corresponding configuration information of the memory of the first memory slot of the first processor into the type table corresponding to the first memory slot of the first processor in the protocol table.

[0098] In practice, if the memory in the first slot of CPU0 is not in place, it means that the server cannot be started. In other words, in order to ensure the server is powered on, the memory in the first slot of CPU0 must be in place. The presence information of CPU0 and the first memory of CPU0 is judged. If any one of them is not in place, the server cannot be started and the SMBIOS protocol cannot be updated.

[0099] Furthermore, in a specific implementation, in the above-mentioned method for static display of device configuration information provided in an embodiment of the present invention, confirming whether the power supply is in place may specifically include: confirming whether at least one power supply is in place; if all power supplies are not in place, directly determining that the electronic product cannot be started; if at least one power supply is in place, updating the corresponding configuration information of the in-place power supply to the type table corresponding to the in-place power supply in the protocol table.

[0100] In implementation, in order to ensure that the server is powered on and used, at least one of the PSU0 and PSU1 power supplies must be present. If neither power supply is present, the server cannot be started. Fill in the above information for the existing power supplies. If the power supply is not in place, fill in the NA character.

[0101] In summary, the present invention can determine whether the server can be started normally by judging whether CPU0 is in place. If not, the server cannot be started, and the rest of the SMBIOS information cannot be updated. When CPU0 is in place, various parameter information of CPU0 is updated to Type4 and Type7, and then confirm whether CPU1 is in place. If CPU1 is in place, it is synchronously updated in the manner of CPU0. If not, the information in Type4 and Type7 is filled with NA or other character information; at the same time, confirm whether the first memory slot of CPU0 is in place. If not, the server cannot be started because there is no memory available. If in place, the parameter information of the memory is updated to Type16, Type17, and Type19, and then other memory information is executed. The method here is similar to the solution of CPU1. There must be at least one CPU0, the first slot memory of CPU0, and PSU. These three conditions must be met to fully ensure that the server can be turned on and used.

[0102] When the server starts and the memory is filled, the PCI device information is identified. Whether the PCI device information can be identified or not does not affect the server startup, that is, the startup of the electronic product has no direct connection with whether the PCI device part is in place; if the PCI device information is identified, the corresponding parameter information is filled in Type9, and if the PCI device information is not identified, NA is filled in type9. At the same time, the power supply information, whether it is PSU0 or PSU1, can ensure the server startup as long as any one is in place, and only need to update the identified PSU power supply information to Type39, and continue to fill in NA or special characters if it is not identified. The above method can ensure that the server configuration is viewed in detail when viewing the SMBIOS protocol under the system. The present invention updates or fills in the corresponding configuration information of the CPU, memory, power supply, PCI device, etc. in Type4, Type7, Type16, Type17, Type19, Type9, and Type39, and fills in the character information in the type table corresponding to the device that is not in place as NA or a special character, so that users can conveniently and quickly view and accurately locate the configuration information of the server in real time under the system, saving the labor cost of operation and maintenance, without the need to physically view each device, and improving the timeliness of viewing the core components of the server.

[0103] In the above embodiments, the static display method of device configuration information is described in detail, and the present invention also provides embodiments corresponding to the static display device of device configuration information and the static display device of device configuration information. It should be noted that the present invention describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.

[0104] Figure 2 This is a schematic diagram of the structure of the static display device for device configuration information provided by an embodiment of the present invention. This embodiment is based on the perspective of functional modules, such as Figure 2 As shown, the device comprises:

[0105] The information reading module 10 is used to read the in-situ information of different core devices in the electronic product during the execution of the driver configuration environment stage;

[0106] A presence determination module 11 is used to determine whether each core device is in place according to the presence information of different core devices read;

[0107] The first processing module 12 is used to update or fill the corresponding configuration information of the in-place core device in the type table corresponding to the in-place core device in the protocol table when the core device is in-place;

[0108] The second processing module 13 is used to fill the setting character information in the type table corresponding to the core device that is not in place in the protocol table when the core device is not in place.

[0109] In the above-mentioned static display device of device configuration information provided in an embodiment of the present invention, the interaction of the above-mentioned four modules can be used to confirm whether each core device is in place during the execution of the driver configuration environment stage to decide whether to update or fill in the corresponding device information in the corresponding type table in the protocol table, or fill in the setting character information in the corresponding type table in the protocol table. In this way, the actual in-place device configuration information of the electronic product is configured and displayed in a static manner using the protocol table, and the non-in-place device of the electronic product can be directly displayed with the setting characters in a static manner. This is convenient for users to conveniently and quickly view and accurately locate the configuration information of the electronic product in real time through the protocol table under the system, and saves operation and maintenance manpower costs. There is no need to rely on physical disassembly to view the physical information of the server, which improves the timeliness and accuracy of viewing the core device configuration information of the electronic product and ensures the stability and reliability of the electronic product.

[0110] Since the embodiments of the apparatus part correspond to the embodiments of the method part, the embodiments of the apparatus part refer to the description of the embodiments of the method part, which will not be described here. And it has the same beneficial effects as the above-mentioned static display method of device configuration information.

[0111] Figure 3 This is a schematic diagram of the structure of a static display device for device configuration information provided by an embodiment of the present invention. This embodiment is based on the hardware perspective, such as Figure 3 As shown, the static display device of device configuration information includes:

[0112] A memory 20, used for storing computer programs;

[0113] The processor 21 is used to implement the steps of the method for statically displaying device configuration information as mentioned in the above embodiment when executing a computer program.

[0114] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0115] The memory 20 may include one or more non-volatile storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the static display method of device configuration information disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the static display method of device configuration information mentioned above.

[0116] In some embodiments, the static display device for device configuration information may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26. Those skilled in the art will appreciate that Figure 3The structure shown in the figure does not constitute a limitation on the static display device of device configuration information, and may include more or fewer components than shown in the figure. The static display device of device configuration information provided by the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: static display method of device configuration information, the effect is the same as above.

[0117] Finally, the present invention also provides an embodiment corresponding to a non-volatile storage medium. The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0118] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code. The non-volatile storage medium provided by the present invention can realize the static display method of device configuration information mentioned above, and the effect is the same as above.

[0119] Finally, the present invention also provides an embodiment corresponding to a computer program product. The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps described in the embodiment of the static display method of device configuration information are implemented. The computer program product provided by the present invention can implement the static display method of device configuration information mentioned above, and the effect is the same as above.

[0120] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0121] The above is a detailed introduction to the static display method, device, medium and product of the device configuration information provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A method for statically displaying device configuration information, characterized in that: Applied to a basic input and output system, the method comprises: In the stage of executing the driver configuration environment, the in-place information of different core devices in the electronic product is read; the different core devices in the electronic product include: processor and memory; According to the in-place information of different core devices read, confirm whether each core device is in place; determine the number of processors actually used by the electronic product, and the first processor in the startup process of the electronic product; confirm whether the first processor is in place; if the first processor is not in place, directly determine that the electronic product cannot be started; if the first processor is in place, update the corresponding configuration information of the first processor in the type table corresponding to the first processor in the protocol table; after updating the relevant information of the first processor, confirm whether the next processor is in place; if the first processor is in place, confirm whether the memory of the first memory slot of the first processor is in place; if the memory of the first memory slot of the first processor is not in place, directly determine that the electronic product cannot be started; if the memory of the first memory slot of the first processor is in place, fill in the corresponding configuration information of the memory of the first memory slot of the first processor in the type table corresponding to the first memory slot of the first processor in the protocol table; If the core device is in place, the corresponding configuration information of the in-place core device is updated or filled in the type table corresponding to the in-place core device in the protocol table; wherein, if the memory is in place, the relevant information of the in-place memory is obtained, and the relevant information of the in-place memory is filled in the first memory type table, the second memory type table and the third memory type table in the protocol table; the first memory type table is used to display the memory part type information; the second memory type table is used to display the memory part parameter information; the memory part parameter information includes the total memory width and the memory capacity; the third memory type table is used to display the memory part address information; If the core device is not in place, fill in the set character information in the type table corresponding to the core device that is not in place in the protocol table; directly display the set characters of the electronic product's non-in-place device in a static manner, so that the configuration information of the electronic product can be viewed in real time and accurately located through the protocol table; Among them, if the processor is not in place, the setting character information is filled in the first processor type table and the second processor type table corresponding to the processor not in place in the protocol table; the first processor type table is used to display some key information of the processor; the key information of the processor part includes the slot information and type of the processor; the second processor type table is used to display some cache information of the processor; if the memory is not in place, the setting character information is filled in the first memory type table, the second memory type table and the third memory type table corresponding to the memory not in place in the protocol table.

2. The static display method of device configuration information according to claim 1, characterized in that: Read the in-situ information of different core devices in electronic products, including: Read the in-place information of each processor, each memory, each peripheral component interconnect device and each power supply in the electronic product; Correspondingly, according to the read presence information of different core devices, confirm whether each core device is in place, including: According to the read information about each processor, each memory, each peripheral component interconnect device and each power supply, it is confirmed whether each processor is in place, whether the memory of each memory slot of each processor is in place, whether there is a peripheral component interconnect device in the slot corresponding to each peripheral component interconnect device, and whether the power supply is in place.

3. The static display method of device configuration information according to claim 2, characterized in that: If the core device is in place, the corresponding configuration information of the core device in place is updated or filled in the type table corresponding to the core device in place in the protocol table; If the core device is not in place, fill in the set character information in the type table corresponding to the core device that is not in place in the protocol table, including: If the processor is in place, the corresponding configuration information of the in-place processor is updated in the type table corresponding to the in-place processor in the protocol table; if the processor is not in place, the setting character information is filled in the type table corresponding to the processor not in place in the protocol table; If the memory is in place, the corresponding configuration information of the in-place memory is filled into the type table corresponding to the in-place memory in the protocol table; if the memory is not in place, the setting character information is filled into the type table corresponding to the in-place memory in the protocol table; If there is a peripheral component interconnect device in the slot, fill the corresponding configuration information of the existing peripheral component interconnect device into the type table corresponding to the existing peripheral component interconnect device in the protocol table; if there is no peripheral component interconnect device in the slot, fill the setting character information into the type table corresponding to the non-existent peripheral component interconnect device in the protocol table; If the power supply is in place, the corresponding configuration information of the in-place power supply is updated to the type table corresponding to the in-place power supply in the protocol table; if the power supply is not in place, the setting character information is filled in the type table corresponding to the in-place power supply in the protocol table.

4. The method for statically displaying device configuration information according to claim 3, characterized in that: If the processor is in place, the corresponding configuration information of the in-place processor is updated in the type table corresponding to the in-place processor in the protocol table, including: If the processor is in place, then read the relevant registers of the in-place processor to obtain parameter information of the in-place processor; The parameter information of the in-place processor is updated in the first processor type table and the second processor type table in the protocol table.

5. The method for statically displaying device configuration information according to claim 4, characterized in that: Updating parameter information of the in-place processor in the first processor type table and the second processor type table in the protocol table includes: Update the slot information, type, architecture, manufacturer, version, voltage, external clock, maximum speed, current speed, status, serial number, model, number of cores, number of enabled cores, number of threads, and type of cores of the in-place processor in the first processor type table in the protocol table; The cache name, L1 cache operation mode, L1 cache location information, L1 cache installation capacity, L1 cache maximum capacity, L1 cache type, L1 cache error type of the L1 cache in the processor in place, the cache name, L2 cache operation mode, L2 cache location information, L2 cache installation capacity, L2 cache maximum capacity, L2 cache type, L2 cache error type of the L2 cache, the cache name, L3 cache operation mode, L3 cache location information, L3 cache installation capacity, L3 cache maximum capacity, L3 cache type, and L3 cache error type of the L3 cache in the second processor type table in the protocol table.

6. The method for statically displaying device configuration information according to claim 3, characterized in that: Fill in the relevant information of the in-place memory in the first memory type table, the second memory type table and the third memory type table in the protocol table, including: Fill in the memory link mode, memory error type, maximum memory capacity, and memory quantity of the in-place memory in the first memory type table in the protocol table; Fill in the second memory type table in the protocol table with the total memory width, memory data width, memory capacity, memory type, memory location information, channel location information for data interaction between the memory and the processor, memory generation type, memory speed, memory manufacturer, memory serial number, number of memory blocks, memory setting speed, maximum memory voltage, minimum memory voltage, and current memory voltage of the in-place memory; Fill in the memory start address and memory end address of the in-place memory in the third memory type table in the protocol table.

7. The method for statically displaying device configuration information according to claim 3, characterized in that: If there is a peripheral component interconnect device in the slot, the corresponding configuration information of the existing peripheral component interconnect device is filled into the type table corresponding to the existing peripheral component interconnect device in the protocol table, including: If there is a peripheral component interconnect device in the slot, the location information, bandwidth, protocol number, current status, device type, device identity information, power supply voltage, and unique identifier of the existing peripheral component interconnect device are filled in the slot type table corresponding to the existing peripheral component interconnect device in the protocol table; the slot type table is used to display key information of the slot device.

8. The method for statically displaying device configuration information according to claim 3, characterized in that: If the power supply is in place, the corresponding configuration information of the power supply in place is updated to the type table corresponding to the power supply in place in the protocol table, including: If the power supply is in place, the power supply serial number, power supply location information, power supply name, power supply manufacturer, power supply serial number, power supply maximum power, power supply status, power supply circuit breaker version, power supply type, power supply input voltage switching status, and power supply hot plug status are updated to the power supply type table corresponding to the in-place power supply in the protocol table; the power supply type table is used to display some key information of the power supply.

9. The method for statically displaying device configuration information according to claim 2, characterized in that: Confirm that the power supply is in place, including: Check whether at least one power supply is in place; If all power sources are not in place, it is directly determined that the electronic product cannot be started; If at least one power supply is in place, the corresponding configuration information of the in-place power supply is updated into the type table corresponding to the in-place power supply in the protocol table.

10. A static display device for device configuration information, characterized in that: The device comprises: Memory for storing computer programs; A processor, configured to implement the steps of the method for statically displaying device configuration information as described in any one of claims 1 to 9 when executing the computer program.

11. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for statically displaying device configuration information according to any one of claims 1 to 9 are implemented.

12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method for statically displaying device configuration information as described in any one of claims 1 to 9 are implemented.