Equipment connection position determination method and device, equipment and storage medium
Obtaining the device expansion card signal and numbering information through the substrate management controller solves the problem that BMC cannot obtain the silk screen position, and achieves the improvement of rapid positioning and maintenance efficiency.
Patent Information
- Application Number
- CN202410961655.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-12
AI Technical Summary
The BMC cannot directly obtain the silkscreen location from the high-speed serial bus device, resulting in low maintenance efficiency and difficulty in positioning the faulty device.
The substrate management controller obtains the signal in the device expansion card when the server is powered on, obtains the number information of the high-speed serial bus device and processor port information, and stores it to quickly locate the device connection location.
It realizes the fast positioning of high-speed serial bus equipment connected to the server, improves equipment maintenance efficiency, and simplifies the troubleshooting and repair process.
Smart Images

Figure CN118939578A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of server technology, and in particular, to a method, apparatus, device and storage medium for determining a device connection location. Background Art
[0002] BMC (Baseboard Management Controller) is a small operating system independent of the server system. It can be used to monitor the high-speed serial bus (PCI E) devices connected to the server. When monitoring the high-speed serial bus devices, BMC obtains relevant information of the device from the high-speed serial bus devices and displays the relevant information of the device on the device list page.
[0003] In the related art, the BMC cannot directly obtain the silk screen position (the chassis rear window slot number marked on the chassis) from the high-speed serial bus device. When an abnormality occurs in the device, it is difficult for maintenance personnel to locate the faulty high-speed serial bus device, which reduces the efficiency of equipment maintenance. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device and storage medium for determining a device connection location, which are intended to quickly locate a high-speed serial bus device connected to a server.
[0005] A first aspect of an embodiment of the present application provides a method for determining a device connection location, the method comprising:
[0006] When the server is powered on, the baseboard management controller obtains a first signal in the device expansion card, wherein the first signal indicates that a high-speed serial bus device is connected to a corresponding slot in the device expansion card;
[0007] The baseboard management controller obtains first number information corresponding to the high-speed serial bus device from the high-speed serial bus device corresponding to the first signal;
[0008] The baseboard management controller obtains the second number information and the first processor port information corresponding to the high-speed serial bus device from the basic input and output system;
[0009] When the first numbering information matches the second numbering information, the baseboard management controller stores the slot information corresponding to the high-speed serial bus device and the first processor port information in a corresponding manner.
[0010] Optionally, before the baseboard management controller obtains the second number information and processor port information corresponding to the high-speed serial bus device from the basic input and output system, the method further includes:
[0011] The baseboard management controller obtains a second signal of the slot corresponding to the high-speed serial bus device from the device expansion card;
[0012] The baseboard management controller compares the second signal with a pre-stored port comparison table to determine the second processor port information corresponding to the high-speed serial bus device. The port comparison table stores the correspondence between the second signal and the second processor port information. The second processor port information includes the processor port to which the high-speed serial bus device may be connected.
[0013] Optionally, before the baseboard management controller stores the slot information corresponding to the high-speed serial bus device and the first processor port information accordingly, the method further includes:
[0014] The baseboard management controller compares the first processor port information with the second processor port information;
[0015] In a case where the processor port included in the first processor port information is any of the processor ports included in the second processor port information, it is determined that the first processor port information is correct information.
[0016] Optionally, the baseboard management controller obtains a first signal in a device expansion card, including:
[0017] The baseboard management controller obtains first chip data from the first chip in the device expansion card;
[0018] The baseboard management controller determines a signal on each pin of the first chip according to the first chip data;
[0019] The baseboard management controller determines the first signal from signals on each pin of the first chip.
[0020] Optionally, the baseboard management controller obtains a second signal of the slot corresponding to the high-speed serial bus device from the device expansion card, including:
[0021] The baseboard management controller obtains the second chip data from the second chip in the device expansion card;
[0022] The baseboard management controller determines a signal on each pin of the second chip according to the second chip data;
[0023] The baseboard management controller determines the second signal corresponding to the high-speed serial bus device from the signal on each pin of the second chip.
[0024] Optionally, before the baseboard management controller matches the second signal with a pre-stored port comparison table to determine the second processor port information corresponding to the high-speed serial bus device, the method further includes:
[0025] The baseboard management controller determines the device type of the device expansion card;
[0026] Determining, according to the device type, a correspondence between the second signal of the device expansion card and the processor port;
[0027] The correspondence between the second signal and the processor port is stored in the port comparison table.
[0028] Optionally, the method further comprises:
[0029] In the event that the high-speed serial bus device fails, the baseboard management controller determines first processor port information corresponding to the high-speed serial bus device;
[0030] The baseboard manager determines the slot information corresponding to the high-speed serial bus device according to the correspondence between the first processor port information and the slot information;
[0031] The baseboard management controller generates corresponding alarm information according to the first processor port information and the slot information;
[0032] The baseboard management controller sends the alarm information to the corresponding device and suspends the use of the high-speed serial bus device;
[0033] When the high-speed serial bus device is repaired, the baseboard management controller restores the connection between the high-speed serial bus device and the central processing unit.
[0034] A second aspect of an embodiment of the present application provides a device for determining a device connection location, the device comprising:
[0035] A first signal acquisition module, used for, when the server is powered on, the baseboard management controller to acquire a first signal in the device expansion card, wherein the first signal indicates that a high-speed serial bus device is connected to a corresponding slot in the device expansion card;
[0036] A first number information acquisition module, used for the baseboard management controller to acquire first number information corresponding to the high-speed serial bus device from the high-speed serial bus device corresponding to the first signal;
[0037] A first port processing information acquisition module, used by the baseboard management controller to acquire the second number information corresponding to the high-speed serial bus device and the first processor port information from the basic input and output system;
[0038] The corresponding storage module is used for the baseboard management controller to store the slot information corresponding to the high-speed serial bus device and the first processor port information accordingly when the first numbering information matches the second numbering information.
[0039] Optionally, the device further comprises:
[0040] A second signal acquisition module, used for the baseboard management controller to acquire a second signal of the slot corresponding to the high-speed serial bus device from the device expansion card;
[0041] A second processor port information acquisition module is used for the baseboard management controller to compare the second signal with a pre-stored port comparison table to determine the second processor port information corresponding to the high-speed serial bus device, wherein the port comparison table stores the correspondence between the second signal and the second processor port information, and the second processor port information includes the processor port to which the high-speed serial bus device may be connected.
[0042] Optionally, the device further comprises:
[0043] An information comparison module, used for the baseboard management controller to compare the first processor port information with the second processor port information;
[0044] An information confirmation module is used to determine that the first processor port information is correct information when the processor port included in the first processor port information is any of the processor ports included in the second processor port information.
[0045] Optionally, the first signal acquisition module includes:
[0046] A first chip data acquisition submodule, used for the baseboard management controller to acquire first chip data from the first chip in the device expansion card;
[0047] A first pin signal acquisition submodule, used for the baseboard management controller to determine the signal on each pin of the first chip according to the first chip data;
[0048] The first signal determination submodule is used for the baseboard management controller to determine the first signal from the signal on each pin of the first chip.
[0049] Optionally, the second signal acquisition module includes:
[0050] The second chip data acquisition submodule, the baseboard management controller acquires the second chip data from the second chip in the device expansion card;
[0051] A second pin signal acquisition submodule, used for the baseboard management controller to determine the signal on each pin of the second chip according to the second chip data;
[0052] The second signal determination submodule is used for the baseboard management controller to determine the second signal corresponding to the high-speed serial bus device from the signal on each pin of the second chip.
[0053] Optionally, the device further comprises:
[0054] A device type determination module, used by the baseboard management controller to determine the device type of the device expansion card;
[0055] A correspondence determination module, used to determine the correspondence between the second signal of the device expansion card and the processor port according to the device type;
[0056] The port comparison table generating module is used to store the correspondence between the second signal and the processor port in the port comparison table.
[0057] Optionally, the device further comprises:
[0058] A first port processing information determination module, configured to, when the high-speed serial bus device fails, determine, by the baseboard management controller, first processor port information corresponding to the high-speed serial bus device;
[0059] A slot information determination module, used for the baseboard manager to determine the slot information corresponding to the high-speed serial bus device according to the corresponding relationship between the first processor port information and the slot information;
[0060] An alarm information generating module, used for the baseboard management controller to generate corresponding alarm information according to the first processor port information and the slot information;
[0061] An alarm information sending module, used for the baseboard management controller to send the alarm information to the corresponding device and suspend the use of the high-speed serial bus device;
[0062] The connection recovery module is used by the baseboard management controller to restore the connection between the high-speed serial bus device and the processor when the high-speed serial bus device is repaired.
[0063] A third aspect of an embodiment of the present application provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the method described in the first aspect of the present application are implemented.
[0064] A fourth aspect of an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect of the present application are implemented.
[0065] By adopting the device connection position determination method provided by the present application, when the server is powered on, the baseboard management controller obtains a first signal in the device expansion card, the first signal indicating that a high-speed serial bus device is connected to the corresponding slot in the device expansion card; the baseboard management controller obtains first numbering information corresponding to the high-speed serial bus device from the high-speed serial bus device corresponding to the first signal; the baseboard management controller obtains second numbering information and first processor port information corresponding to the high-speed serial bus device from the basic input and output system; when the first numbering information matches the second numbering information, the baseboard management controller stores the slot information corresponding to the high-speed serial bus device and the first processor port information accordingly. In the method, the baseboard management controller determines which slot is connected to the high-speed serial bus device according to the signal in the device expansion card, so as to determine which slot on the chassis is connected to the device, obtains the corresponding first number from the device, and then obtains the second number of the high-speed serial bus device and the first processor port information from the basic input and output system, and matches the first number with the second number to determine the first processor port information corresponding to the connected high-speed serial bus device, and then stores the slot information corresponding to the high-speed serial bus device and the first processor port information in correspondence, so as to facilitate the quick positioning of the slot and processor port corresponding to each high-speed serial bus device at any time, thereby improving the equipment maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0067] Figure 1 is a flow chart of a method for determining a device connection location proposed in an embodiment of the present application;
[0068] Figure 2 This is a schematic diagram of the structure of a device expansion card proposed in an embodiment of the present application;
[0069] Figure 3 It is a system architecture diagram proposed in one embodiment of the present application;
[0070] Figure 4 is a schematic diagram of a device connection position determination apparatus proposed in an embodiment of the present application;
[0071] Figure 5 It is a schematic diagram of an electronic device proposed in an embodiment of the present application. DETAILED DESCRIPTION
[0072] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0073] refer to Figure 1 , Figure 1 : is a flow chart of a method for determining a device connection location proposed in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0074] S11: When the server is powered on, the baseboard management controller obtains a first signal in the device expansion card, where the first signal indicates that a high-speed serial bus device is connected to a corresponding slot in the device expansion card.
[0075] In this embodiment, the baseboard management controller is a small operating system independent of the server system, a chip integrated on the motherboard, and a firmware system with an independent IP. The server cluster generally uses the baseboard management controller instructions for large-scale unattended operation. The main functions of the baseboard management controller include remote access and control, hardware monitoring and alarm, remote virtual media, remote power control, and system health detection. Through the baseboard management controller, the administrator can remotely access the server console through the network and perform various operations such as starting or shutting down the server, restarting and resetting the server. At the same time, the BMC can also monitor the hardware status of the server, such as CPU, memory, hard disk, power supply, etc., and generate alarms or logs when problems or abnormalities occur, and notify the administrator to handle and repair. The device expansion card is connected to the motherboard of the server, and the high-speed serial bus device is connected to the slot on the device expansion card. The slot on the device expansion card corresponds to the silk screen on the chassis. The first signal is the hardware in place signal, which can indicate that the corresponding slot in the device expansion card is connected to a high-speed serial bus device.
[0076] In this embodiment, when the server is powered on, the baseboard management controller accesses the first chip in the device expansion card, obtains chip data from the first chip, and then determines the first signal from the chip data.
[0077] For example, the high-speed serial bus device connected to the device expansion card can be a RAID card, which is an external card that combines multiple physical disk drives into a logical unit to achieve data redundancy and performance improvement. Responsible for the management of the entire disk array, including data distribution, redundant storage, fault recovery, etc., RAID cards are widely used in general and storage servers. The high-speed serial bus device can also be a hard disk or a CXL card.
[0078] In this embodiment, the specific steps of the baseboard management controller acquiring the first signal in the device expansion card include:
[0079] S11 - 1 : The baseboard management controller obtains first chip data from a first chip in the device expansion card.
[0080] In this embodiment, the first chip is a chip that indicates whether each slot of the device expansion card is connected to a device, and the first chip data includes pin information of each pin of the first chip and a signal on each pin.
[0081] In this embodiment, the baseboard management controller accesses the first chip in the device expansion card through the i2c link and obtains the first chip data from the first chip.
[0082] By way of example, the first chip is a PCA9555_0 chip.
[0083] S11 - 2 : The baseboard management controller determines a signal on each pin of the first chip according to the first chip data.
[0084] In this embodiment, after acquiring the first chip data, the baseboard management controller determines the signal on each pin of the first chip.
[0085] S11 - 3 : The baseboard management controller determines the first signal from the signal on each pin of the first chip.
[0086] In this embodiment, the baseboard management controller finds the pins representing the hardware presence signal of the device expansion card from the signals on each pin of the first chip according to the function corresponding to each pin, and checks whether there are hardware presence signals, i.e., the first signals, on these pins.
[0087] In this embodiment, the slot of the device expansion card corresponds to the slot silk screen on the rear window of the chassis. When the baseboard management controller obtains the first signal, it can determine whether a high-speed serial bus device under a slot silk screen is in place.
[0088] For example, refer to Figure 2 , Figure 2 is a schematic diagram of the structure of a device expansion card proposed in an embodiment of the present application, such as Figure 2 As shown, the lower three bits of the IO_1 pin of the PCA9555_0 chip: IO_1_0, IO_1_1, IO_1_2 respectively represent the in-position signals of the PC IE SLOT0 (slot), SLOT1, and SLOT2 of this expansion card.
[0089] S12: The baseboard management controller obtains first number information corresponding to the high-speed serial bus device from the high-speed serial bus device corresponding to the first signal.
[0090] In this embodiment, the first numbering information is the bus number, device number and function number (BDF, Bus number, Device number, Function number) of the device directly obtained by the baseboard management controller from the high-speed serial bus device.
[0091] In this embodiment, after determining the first signal, the baseboard management controller can determine which slot of the device expansion card is connected to the device, and then obtain the first number information of the device from the register of the device.
[0092] S13: The baseboard management controller obtains the second number information and the first processor port information corresponding to the high-speed serial bus device from the basic input and output system.
[0093] In this embodiment, the Basic Input Output System (BIOS) is a set of programs that are fixed to a ROM chip on the motherboard of the computer. It stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-starting program. It can read and write specific information of system settings from CMOS. Its main function is to provide the computer with the lowest and most direct hardware settings and controls. In addition, BIOS also provides some system parameters to the operating system. The changes in the system hardware are hidden by BIOS, and the program uses BIOS functions instead of directly controlling the hardware. The second number is the bus number, device number, and function number of the device obtained directly from the high-speed serial bus device by the basic input and output system. The first processor port information represents which port of the central processor the slot corresponding to the device is connected to.
[0094] In this embodiment, when the server is powered on, the basic input and output system directly obtains the second number information and the first processor port information from the connected high-speed serial bus device, and then sends the obtained second number information and the first processor port information to the baseboard management controller, and the baseboard management controller executes subsequent steps according to the received information.
[0095] S14: When the first numbering information matches the second numbering information, the baseboard management controller stores the slot information corresponding to the high-speed serial bus device and the first processor port information accordingly.
[0096] In this embodiment, after receiving the second numbering information and the first processor port information, the baseboard management controller matches the existing first numbering information with the received second numbering information, that is, compares the bus number, device number and function number included in the first numbering information with the bus number, device number and function number included in the second numbering information. When both are the same, it means that the high-speed serial bus device obtained by the basic input and output system and the high-speed serial bus device obtained by the baseboard management controller are the same high-speed serial bus device, and then the slot information of the high-speed serial bus device and the first processor port information can be associated. After associating the slot information of the high-speed serial bus device and the first processor port information, the two are stored correspondingly in the memory of the baseboard management controller.
[0097] In this embodiment, after the slot information corresponding to the high-speed serial bus device and the first processor port information are stored correspondingly, the baseboard management controller can display the slot information of the high-speed serial bus device and the first processor port information on the page of the baseboard management controller, that is, the slot silk screen and the processor port on the chassis corresponding to the high-speed serial bus device are displayed on the corresponding page.
[0098] For example, the structure of the displayed information is CPU0_PE2AB_PC I E2.
[0099] In another embodiment of the present application, before the baseboard management controller obtains the second number information and processor port information corresponding to the high-speed serial bus device from the basic input and output system, the method further includes:
[0100] S21: The baseboard management controller obtains a second signal of the slot corresponding to the high-speed serial bus device from the device expansion card.
[0101] In this embodiment, the second signal is a signal on the second chip in the device expansion card, and there is a corresponding relationship between the second signal and the port of the processor.
[0102] In this embodiment, Figure 2 As shown, the baseboard management controller obtains the second information number of the slot corresponding to the high-speed serial bus device from the second chip of the device expansion card.
[0103] In this embodiment, the baseboard management controller obtains the second signal of the slot corresponding to the high-speed serial bus device from the device expansion card, including:
[0104] S21 - 1 : The baseboard management controller obtains the second chip data from the second chip in the device expansion card.
[0105] In this embodiment, the baseboard management controller obtains the second chip data from the second chip in the device expansion card. The baseboard management controller accesses the second chip through the i2c link and obtains the second chip data from the second chip.
[0106] S21 - 2 : The baseboard management controller determines a signal on each pin of the second chip according to the second chip data.
[0107] In this embodiment, the baseboard management controller determines the signal of each pin on the second chip according to the second chip data.
[0108] S21 - 3 : The baseboard management controller determines the second signal corresponding to the high-speed serial bus device from the signal on each pin of the second chip.
[0109] In this embodiment, there is a corresponding relationship between the second signal of a high-speed serial bus device and the connected processor port.
[0110] In this embodiment, the baseboard management controller finds the pin corresponding to the high-speed serial bus device from the signal on each pin of the second chip, reads the signal of the pin, and uses the read signal as the second signal.
[0111] For example, the baseboard management controller accesses the device expansion card through the I2C link and reads the PCA9555_1 chip data. According to the hardware design of the expansion card, the IO_1 and IO_0 pins of the chip represent the VPP signals of SLOT1 and SLOT2 respectively, and the VPP signal has a corresponding relationship with the processor port (CPU PORT). Based on this data, the baseboard management controller can obtain the processor port information of the high-speed serial bus device under the processor with the corresponding slot silk screen. Due to the limitation of the number of chip pins, the processor port obtained through this solution can only distinguish the port with X16 bandwidth, and cannot determine whether it is X8 bandwidth.
[0112] Since different device expansion cards have different VPP signal levels or different slot numbers, different types of expansion cards have their own VPP signal and processor port mapping table. To facilitate updating and use, the mapping table is pre-saved in the storage device of the baseboard management controller in the form of a configuration file and loaded into the memory when needed. The mapping table between the VPP signal and the port information is shown in the following table:
[0113]
[0114] Table 1
[0115] S22: The baseboard management controller compares the second signal with a pre-stored port comparison table to determine the second processor port information corresponding to the high-speed serial bus device. The port comparison table stores the correspondence between the second signal and the second processor port information. The second processor port information includes the processor port to which the high-speed serial bus device may be connected.
[0116] In this embodiment, the port comparison table records the corresponding relationship between the VPP signal and the processor port. The second port information includes the processor port to which the high-speed serial bus device may be connected.
[0117] In this embodiment, after finding the second signal, the baseboard management controller compares the second signal with the pre-stored port comparison table to determine the second processor port information corresponding to the second signal. The second processor port information is inaccurate information and can only locate the bandwidth of X16 and is only used as a control group.
[0118] In another embodiment of the present application, before the baseboard management controller stores the slot information corresponding to the high-speed serial bus device and the first processor port information accordingly, the method further includes:
[0119] S31: The baseboard management controller compares the first processor port information with the second processor port information.
[0120] In this embodiment, the baseboard management controller obtains the first processor port information corresponding to the high-speed serial bus device from the basic input and output system, obtains the second processor port information from the port comparison table, and compares the first processor port information with the second processor port information.
[0121] S32: When the processor port included in the first processor port information is any of the processor ports included in the second processor port information, determine that the first processor port information is correct information.
[0122] In this embodiment, when the processor port included in the first processor port information is any processor port included in the second processor port information, the first processor port information is determined to be correct information. Because the port in the first processor port information falls within the range of the port determined by the second processor port information, it is shown that the first processor port information is correct and the detection is correct.
[0123] In another embodiment of the present application, before the baseboard management controller matches the second signal with a pre-stored port comparison table to determine the second processor port information corresponding to the high-speed serial bus device, the method further includes:
[0124] S41: The baseboard management controller determines the device type of the device expansion card.
[0125] In this embodiment, there are multiple types of device expansion cards. Different types of device expansion cards may have different numbers of slots, and the corresponding relationships between the pin signals in the second chip and the processing ports are also different.
[0126] In this embodiment, the baseboard management controller first determines the device type of the device expansion card.
[0127] S42: Determine, according to the device type, a correspondence between the second signal of the device expansion card and the processor port.
[0128] In this embodiment, the correspondence between the second signal of the device expansion card and the processor port is determined according to the device type.
[0129] S43: Store the correspondence between the second signal and the processor port in the port comparison table.
[0130] In this embodiment, after the correspondence between the second signal of the device expansion card and the processor port is determined, the correspondence between the second signal and the processor port is stored in a port comparison table.
[0131] In this embodiment, the port comparison table is pre-stored in the memory of the baseboard management controller so that it can be retrieved and used at any time.
[0132] In another embodiment of the present application, the method further includes:
[0133] S51: When the high-speed serial bus device fails, the baseboard management controller determines first processor port information corresponding to the high-speed serial bus device.
[0134] In this embodiment, when a high-speed serial bus device fails, the baseboard management controller searches for the first processor port information corresponding to the high-speed serial bus device. The first processor port information is sent to the baseboard management controller by the basic input and output system when the server is powered on. After receiving the first processor port information, the baseboard management controller will store it in the memory.
[0135] S52: The baseboard manager determines the slot information corresponding to the high-speed serial bus device according to the correspondence between the first processor port information and the slot information.
[0136] In this embodiment, the first processor port information and slot information corresponding to the high-speed serial bus device have been stored correspondingly in the previous steps, and the baseboard management controller determines the slot information corresponding to the high-speed serial bus device based on the correspondence between the first processor port information and the slot information.
[0137] In this embodiment, the first processing port information and slot information of each connected high-speed serial bus device can be directly displayed in the device status page of the baseboard management controller.
[0138] S53: The baseboard management controller generates corresponding alarm information according to the first processor port information and the slot information.
[0139] In this embodiment, the alarm information is used to warn the outside world when a device fails.
[0140] In this embodiment, the baseboard management controller generates corresponding alarm information according to the first processor port information and slot information.
[0141] S54: The baseboard management controller sends the alarm information to the corresponding device and suspends the use of the high-speed serial bus device.
[0142] In this embodiment, after generating the alarm information, the baseboard management controller sends the alarm information to the corresponding device and suspends the use of the high-speed serial bus device.
[0143] S55: When the high-speed serial bus device is repaired, the baseboard management controller restores the connection between the high-speed serial bus device and the central processing unit.
[0144] In this embodiment, after receiving the alarm information, the maintenance personnel troubleshoot the high-speed serial bus device. After troubleshooting, the baseboard management controller detects the high-speed serial bus device. After detecting that the repair is complete, the baseboard management controller restores the connection between the high-speed serial bus device and the central processing unit. This helps maintain the stable operation of the entire server and further improves the maintenance efficiency of the high-speed serial bus device.
[0145] In this embodiment, the baseboard management controller scans all high-speed serial bus devices and compares the number of devices sent by the basic input and output system. If the number is inconsistent, an alarm for inconsistent hardware quantity in place can be generated to remind maintenance personnel that the number of devices recognized by the basic input and output system is abnormal.
[0146] refer to Figure 3 , Figure 3 This is a system architecture diagram proposed in an embodiment of the present application, in which the BIOS (Basic Input Output System) is connected to the BMC (Baseboard Management Controller), and the BMC is connected to the PCI E expansion card (device expansion card) through an I2C link, and the device expansion card is connected to PCI E device 1, PCI E device 2, and PCI E device 3. The above embodiments are all based on this system architecture.
[0147] In the above embodiment of the present application, the baseboard management controller combines the precise processor port information sent by the basic input and output system with the location information of the high-speed serial bus device directly obtained out of band, and then determines the processor port corresponding to a high-speed serial bus device and the silk screen position on the chassis. When displaying a page or giving an alarm, the processor port position and silk screen position of the device can be more intuitively reflected, which is convenient for operation and maintenance personnel to locate and troubleshoot. Since the structure of each device expansion card is different, the high and low meanings of the VPP signal are also different, and the slots that can be expanded are different, each device expansion card has a VPP signal and processor port comparison relationship table, which is saved in the form of a configuration file and loaded into the memory when in use. If the device configuration changes and another device expansion card is used, there is no need to update the BMC firmware, and the new corresponding relationship configuration file can be directly imported, thereby improving the operating efficiency of the system.
[0148] Based on the same inventive concept, an embodiment of the present application provides a device connection location determination apparatus. Figure 4 , Figure 4 FIG. 4 is a schematic diagram of a device connection location determination apparatus 400 proposed in an embodiment of the present application. Figure 4 As shown, the device comprises:
[0149] A first signal acquisition module 404 is used for, when the server is powered on, for the baseboard management controller to acquire a first signal in the device expansion card, wherein the first signal indicates that a high-speed serial bus device is connected to a corresponding slot in the device expansion card;
[0150] A first number information acquisition module 402, configured for the baseboard management controller to acquire first number information corresponding to the high-speed serial bus device from the high-speed serial bus device corresponding to the first signal;
[0151] A first port processing information acquisition module 403, used by the baseboard management controller to acquire the second number information corresponding to the high-speed serial bus device and the first processor port information from the basic input and output system;
[0152] The corresponding storage module 404 is used for the baseboard management controller to store the slot information corresponding to the high-speed serial bus device and the first processor port information correspondingly when the first numbering information matches the second numbering information.
[0153] Optionally, the device further comprises:
[0154] A second signal acquisition module, used for the baseboard management controller to acquire a second signal of the slot corresponding to the high-speed serial bus device from the device expansion card;
[0155] A second processor port information acquisition module is used for the baseboard management controller to compare the second signal with a pre-stored port comparison table to determine the second processor port information corresponding to the high-speed serial bus device, wherein the port comparison table stores the correspondence between the second signal and the second processor port information, and the second processor port information includes the processor port to which the high-speed serial bus device may be connected.
[0156] Optionally, the device further comprises:
[0157] An information comparison module, used for the baseboard management controller to compare the first processor port information with the second processor port information;
[0158] An information confirmation module is used to determine that the first processor port information is correct information when the processor port included in the first processor port information is any of the processor ports included in the second processor port information.
[0159] Optionally, the first signal acquisition module includes:
[0160] A first chip data acquisition submodule, used for the baseboard management controller to acquire first chip data from the first chip in the device expansion card;
[0161] A first pin signal acquisition submodule, used for the baseboard management controller to determine the signal on each pin of the first chip according to the first chip data;
[0162] The first signal determination submodule is used for the baseboard management controller to determine the first signal from the signal on each pin of the first chip.
[0163] Optionally, the second signal acquisition module includes:
[0164] The second chip data acquisition submodule, the baseboard management controller acquires the second chip data from the second chip in the device expansion card;
[0165] A second pin signal acquisition submodule, used for the baseboard management controller to determine the signal on each pin of the second chip according to the second chip data;
[0166] The second signal determination submodule is used for the baseboard management controller to determine the second signal corresponding to the high-speed serial bus device from the signal on each pin of the second chip.
[0167] Optionally, the device further comprises:
[0168] A device type determination module, used by the baseboard management controller to determine the device type of the device expansion card;
[0169] A correspondence determination module, used to determine the correspondence between the second signal of the device expansion card and the processor port according to the device type;
[0170] The port comparison table generating module is used to store the correspondence between the second signal and the processor port in the port comparison table.
[0171] Optionally, the device further comprises:
[0172] A first port processing information determination module, configured to, when the high-speed serial bus device fails, determine, by the baseboard management controller, first processor port information corresponding to the high-speed serial bus device;
[0173] A slot information determination module, used for the baseboard manager to determine the slot information corresponding to the high-speed serial bus device according to the corresponding relationship between the first processor port information and the slot information;
[0174] An alarm information generating module, used for the baseboard management controller to generate corresponding alarm information according to the first processor port information and the slot information;
[0175] An alarm information sending module, used for the baseboard management controller to send the alarm information to the corresponding device and suspend the use of the high-speed serial bus device;
[0176] The connection recovery module is used for the baseboard management controller to restore the connection between the high-speed serial bus device and the central processing unit when the high-speed serial bus device is repaired.
[0177] Based on the same inventive concept, another embodiment of the present application provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the method for determining a device connection location as described in any of the above embodiments of the present application.
[0178] Based on the same inventive concept, another embodiment of the present application provides an electronic device, Figure 5 It is a schematic diagram of an electronic device 500 proposed in one embodiment of the present application, including a memory 502, a processor 501 and a computer program stored in the memory and executable on the processor, and when the processor is executed, the steps in the method for determining the device connection location described in any of the above embodiments of the present application are implemented.
[0179] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0180] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0181] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0182] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0183] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0184] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0185] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0186] Finally, it should be noted that, in this article, 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 "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0187] The above is a detailed introduction to the device connection location determination method, apparatus, device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for determining a device connection location, characterized in that: The method comprises: When the server is powered on, the baseboard management controller obtains a first signal in the device expansion card, wherein the first signal indicates that a high-speed serial bus device is connected to a corresponding slot in the device expansion card; The baseboard management controller obtains first number information corresponding to the high-speed serial bus device from the high-speed serial bus device corresponding to the first signal; The baseboard management controller obtains the second number information and the first processor port information corresponding to the high-speed serial bus device from the basic input and output system; When the first numbering information matches the second numbering information, the baseboard management controller stores the slot information corresponding to the high-speed serial bus device and the first processor port information in a corresponding manner.
2. The method for determining a device connection position according to claim 1, characterized in that: Before the baseboard management controller obtains the second number information and processor port information corresponding to the high-speed serial bus device from the basic input and output system, the method further includes: The baseboard management controller obtains a second signal of the slot corresponding to the high-speed serial bus device from the device expansion card; The baseboard management controller compares the second signal with a pre-stored port comparison table to determine the second processor port information corresponding to the high-speed serial bus device. The port comparison table stores the correspondence between the second signal and the second processor port information. The second processor port information includes the processor port to which the high-speed serial bus device may be connected.
3. The method for determining a device connection position according to claim 2, characterized in that: Before the baseboard management controller stores the slot information corresponding to the high-speed serial bus device and the first processor port information accordingly, the method further includes: The baseboard management controller compares the first processor port information with the second processor port information; In a case where the processor port included in the first processor port information is any of the processor ports included in the second processor port information, it is determined that the first processor port information is correct information.
4. The method for determining a device connection position according to claim 1, characterized in that: The baseboard management controller obtains a first signal from a device expansion card, including: The baseboard management controller obtains first chip data from the first chip in the device expansion card; The baseboard management controller determines a signal on each pin of the first chip according to the first chip data; The baseboard management controller determines the first signal from signals on each pin of the first chip.
5. The method for determining a device connection position according to claim 2, characterized in that: The baseboard management controller obtains a second signal of the slot corresponding to the high-speed serial bus device from the device expansion card, including: The baseboard management controller obtains the second chip data from the second chip in the device expansion card; The baseboard management controller determines a signal on each pin of the second chip according to the second chip data; The baseboard management controller determines the second signal corresponding to the high-speed serial bus device from the signal on each pin of the second chip.
6. The method according to claim 2, characterized in that Before the baseboard management controller matches the second signal with a pre-stored port comparison table to determine the second processor port information corresponding to the high-speed serial bus device, the method further includes: The baseboard management controller determines the device type of the device expansion card; Determining, according to the device type, a correspondence between the second signal of the device expansion card and the processor port; The correspondence between the second signal and the processor port is stored in the port comparison table.
7. The method according to claim 1, characterized in that The method further comprises: In the case where the high-speed serial bus device fails, the baseboard management controller determines the first processor port information corresponding to the high-speed serial bus device; The baseboard manager determines the slot information corresponding to the high-speed serial bus device according to the correspondence between the first processor port information and the slot information; The baseboard management controller generates corresponding alarm information according to the first processor port information and the slot information; The baseboard management controller sends the alarm information to the corresponding device and suspends the use of the high-speed serial bus device; When the high-speed serial bus device is repaired, the baseboard management controller restores the connection between the high-speed serial bus device and the central processing unit.
8. A device for determining a connection position of a device, characterized in that: The device comprises: A first signal acquisition module, used for, when the server is powered on, the baseboard management controller to acquire a first signal in the device expansion card, wherein the first signal indicates that a high-speed serial bus device is connected to a corresponding slot in the device expansion card; A first number information acquisition module, used for the baseboard management controller to acquire first number information corresponding to the high-speed serial bus device from the high-speed serial bus device corresponding to the first signal; A first port processing information acquisition module, used by the baseboard management controller to acquire the second number information corresponding to the high-speed serial bus device and the first processor port information from the basic input and output system; The corresponding storage module is used for the baseboard management controller to store the slot information corresponding to the high-speed serial bus device and the first processor port information accordingly when the first numbering information matches the second numbering information.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
