A hardware information transmission method, product, device and medium
By configuring the memory mapping baseboard management controller interface and starting the operation shared memory data thread, the problem that the BMC cannot directly obtain hardware device data is solved, and the acquisition and hardware monitoring of NVME hard disk SMART data are realized, improving system performance and real-time performance.
Patent Information
- Application Number
- CN202410954802.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-17
AI Technical Summary
BMC cannot directly obtain the data of certain hardware devices through out-of-band methods, such as SMART data of NVME hard disks, resulting in unfavorable hardware monitoring.
By configuring the register information of the memory-mapped baseboard management controller interface when the server is powered on, and starting the operation shared memory data thread based on the management component transfer protocol of the memory-mapped baseboard management controller interface, the host system software is used to read the target hardware device. The data is also stored in the circular buffer of the baseboard management controller, enabling the BMC to obtain data that cannot be directly obtained out-of-band.
It realizes BMC's efficient and reliable acquisition and transmission of target hardware device data, reduces delays, improves system performance, and can monitor hardware health status and process user operation requests in real time.
Smart Images

Figure CN118503053B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of server technology, and in particular to a hardware information transmission method, product, device and medium. Background Art
[0002] The Baseboard Management Controller (BMC) is an independent management processor in a computer system, usually used to monitor and manage system hardware status, remote management and control, etc. The Memory-Mapped BMC Interface (MMBI) is an interface for BMC to communicate with the host system through memory mapping. MMBI provides a direct and efficient data transmission method, making the communication between the host system and BMC more flexible and faster.
[0003] Currently, BMC can communicate with hardware through Management Component Transport Protocol (MCTP) over Peripheral Component Interconnect Express (PCIE) / Inter-Integrated Circuit (I2C) and other channels to obtain hardware information. However, there are limitations on some hardware information, and it cannot be directly obtained through out-of-band methods; for example, BMC cannot normally read the Self-Monitoring, Analysis and Reporting Technology (SMART) data of Non-Volatile Memory Express (NVME) hard disks through MCTP over PCIE / I2C and other channels, which is not conducive to BMC's monitoring of hardware.
[0004] In view of the above problems, how to solve the problem that the current BMC cannot directly obtain some hardware device data out-of-band, which is not conducive to BMC monitoring of hardware, is an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0005] The purpose of the present invention is to provide a hardware information transmission method, product, device and medium to solve the problem that the current BMC cannot directly obtain some hardware device data out-of-band, which is not conducive to BMC monitoring of hardware.
[0006] In order to solve the above technical problems, the present invention provides a hardware information transmission method, which is applied to a baseboard management controller; the method comprises:
[0007] When the server is powered on normally, register information related to the memory-mapped baseboard management controller interface is configured;
[0008] Initiate an operation shared memory data thread based on a management component transfer protocol of a memory-mapped baseboard management controller interface;
[0009] Reading target data from the host to the baseboard management controller circular buffer by operating the shared memory data thread, and displaying the target data through a web page;
[0010] The target data is data of a target hardware device that the baseboard management controller cannot directly read out-of-band; the target data is read from the target hardware device by the host and stored in a host-to-baseboard management controller circular buffer.
[0011] In one aspect, the configuration includes register information related to a memory-mapped baseboard management controller interface, including:
[0012] Configuring the total size of the memory-mapped baseboard management controller interface;
[0013] Configuring interrupt states and enables associated with data transfers on the memory-mapped baseboard management controller interface;
[0014] The host writable status bit is configured, and the host to baseboard management controller circular buffer and baseboard management controller to host circular buffer are configured.
[0015] On the other hand, the initiation of the operation shared memory data thread based on the management component transmission protocol of the memory-mapped baseboard management controller interface includes:
[0016] Set the source electronic ID card identifier and the destination electronic ID card identifier to 0;
[0017] Selecting a physical channel with the host as the memory-mapped baseboard management controller interface;
[0018] Set the physical transport binding identifier to 0x07.
[0019] On the other hand, the host reads the target data of the target hardware device and stores the target data in a host-to-baseboard management controller circular buffer, including:
[0020] Acquire the target data of the target hardware device through the system software of the host;
[0021] When an interrupt indicating completion of acquisition of the target data is triggered, the target data is written into a baseboard management controller circular buffer of the host through the system software of the host;
[0022] An interrupt indicating that the acquisition of the target data is completed is sent to the baseboard management controller through the system software of the host, so that the baseboard management controller can read the target data in the host-to-baseboard management controller circular buffer.
[0023] On the other hand, before obtaining the target data of the target hardware device through the system software of the host, the method further includes:
[0024] When the host is turned on, initializing the memory mapped input and output through the basic input and output system of the host;
[0025] establishing access to the memory mapped baseboard management controller interface via the host;
[0026] The general input / output pin corresponding to the interrupt is configured so that the corresponding interrupt is triggered by switching the level state of the general input / output pin.
[0027] On the other hand, it also includes:
[0028] Monitor the health index of the server;
[0029] Storing the health index of the server in a baseboard management controller to host circular buffer through the management component transmission protocol based on the memory-mapped baseboard management controller interface;
[0030] An interruption indicating that the acquisition and storage of the health index is completed is sent to the host, so that the host can read the health index through system software.
[0031] On the other hand, the host reads the health index through system software, including:
[0032] When receiving an interrupt indicating that the acquisition and storage of the health index is complete, the system software of the host reads the health index of the server in the host circular buffer from the baseboard management controller through memory mapped input and output;
[0033] The health index of the server is displayed through the system software of the host.
[0034] On the other hand, it also includes:
[0035] Obtain user operation requests for server hardware;
[0036] storing the operation request in a baseboard management controller-to-host circular buffer through the management component transmission protocol based on the memory-mapped baseboard management controller interface;
[0037] An interruption indicating that the operation request has been acquired and stored is sent to the host, so that the host can read the operation request through system software.
[0038] On the other hand, the host reads the operation request through system software, including:
[0039] When receiving an interrupt indicating that the operation request has been acquired and stored, the system software of the host reads the operation request from the baseboard management controller to the server hardware in the host circular buffer through memory mapped input and output;
[0040] The operation request of the user to the server hardware is processed by the system software of the host.
[0041] On the other hand, the host reads the target data of the target hardware device and stores the target data in a host-to-baseboard management controller circular buffer, including:
[0042] Based on the system software of the host, the self-monitoring analysis and reporting technology data of the non-volatile memory standard hard disk is obtained through the self-monitoring analysis and reporting technology monitoring tool;
[0043] When an interruption indicating completion of acquisition of the self-monitoring analysis and reporting technical data is triggered, the self-monitoring analysis and reporting technical data is written into a baseboard management controller circular buffer of the host through the system software of the host;
[0044] An interrupt indicating that the acquisition of the self-monitoring analysis and reporting technical data is completed is sent to the baseboard management controller through the system software of the host, so that the baseboard management controller can read the self-monitoring analysis and reporting technical data of the non-volatile memory standard hard disk in the baseboard management controller circular buffer from the host to the baseboard management controller.
[0045] On the other hand, after the baseboard management controller reads the self-monitoring analysis and reporting technical data of the non-volatile memory standard hard disk in the baseboard management controller circular buffer from the host, it also includes:
[0046] determining a health status of the non-volatile memory standard hard disk based on the self-monitoring analysis and reporting technical data;
[0047] Determining whether the non-volatile memory standard hard disk is faulty;
[0048] If so, an alarm message is output and a hard disk failover mechanism of the non-volatile memory standard hard disk is triggered.
[0049] On the other hand, it also includes:
[0050] When the server is powered on normally, the management component communication component monitoring process is started;
[0051] Based on the monitoring process of the management component communication part, data of the remaining hardware devices except the target hardware device are obtained through a management component transmission protocol path based on a high-speed serial computer expansion bus standard or a management component transmission protocol path based on a serial communication bus.
[0052] 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 hardware information transmission method when executed by a processor.
[0053] In order to solve the above technical problems, the present invention further provides a hardware information transmission device, comprising:
[0054] Memory for storing computer programs;
[0055] The processor is used to implement the steps of the above-mentioned hardware information transmission method when executing the computer program.
[0056] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above hardware information transmission method are implemented.
[0057] The hardware information transmission method provided by the present invention is applied to a baseboard management controller; specifically, when a server is powered on normally, register information related to a memory-mapped baseboard management controller interface is configured; an operation shared memory data thread of a management component transmission protocol based on the memory-mapped baseboard management controller interface is started; target data in a host-to-baseboard management controller circular buffer is read by operating the shared memory data thread, and the target data is displayed through a web page; wherein the target data is data of a target hardware device that the baseboard management controller cannot directly read out-of-band; the target data is read from the target hardware device by the host and stored in the host-to-baseboard management controller circular buffer.
[0058] The beneficial effect of the present invention is that a management component transmission protocol based on a memory-mapped baseboard management controller interface is adopted to establish a communication link between the BMC and the host system software. When the BMC needs to obtain the target data of some target hardware devices that cannot be directly obtained out-of-band, the host reads the target data of the target hardware device and stores it in the host-to-baseboard management controller circular buffer mapped by MMBI. Finally, the BMC reads the host-to-baseboard management controller circular buffer through the management component transmission protocol based on the memory-mapped baseboard management controller interface, thereby obtaining the target data of the target hardware device. This solution is based on the software level of the host, and realizes the acquisition of the target hardware device data by the BMC through in-band acquisition, and at the same time realizes the transmission of the target hardware device data of the BMC, which solves the problem that the current BMC cannot directly obtain some hardware device data out-of-band, which is not conducive to the monitoring of the hardware by the BMC, and can efficiently and reliably transmit hardware device data, reduce delays and improve the overall performance of the system.
[0059] On the other hand, in a specific implementation, the present invention realizes the configuration of register information related to the memory-mapped BMC interface by configuring the total size of the memory-mapped BMC interface; configuring the interrupt status and enable related to the data transmission of the memory-mapped BMC interface; configuring the host writable status bit, and configuring the host-to-BMC circular buffer and the BMC-to-host circular buffer. The source electronic ID card identifier and the destination electronic ID card identifier are both set to 0; the physical channel between the host and the host is selected as the memory-mapped BMC interface; the physical transmission binding identifier is set to 0x07, which ensures that the BMC and the host perform data transmission through the MCTP over MMBI protocol. The target data of the target hardware device is obtained through the host's system software; when the interrupt representing the completion of the acquisition of the target data is triggered, the target data is written from the host to the BMC circular buffer through the host's system software; the interrupt representing the completion of the acquisition of the target data is sent to the BMC through the host's system software, so that the BMC reads the target data in the host-to-BMC circular buffer, thereby realizing the host's reading and storage of the target data of the target hardware device. When the host is turned on, the memory-mapped input and output are initialized through the host's basic input and output system; the path of the memory-mapped baseboard management controller interface is established through the host; the general input and output pins corresponding to the interrupt are configured so that the corresponding interrupt is triggered by switching the level state of the general input and output pins, thereby realizing the advance configuration of the host and ensuring that the host can smoothly read the data of the target hardware device and trigger the interrupt after the data transmission structure. Monitor the health index of the server; store the health index of the server in the baseboard management controller to the host circular buffer through the management component transmission protocol based on the memory-mapped baseboard management controller interface; send an interrupt to the host indicating that the health index has been obtained and stored; when the host receives the interrupt indicating that the health index has been obtained and stored, the host's system software reads the health index of the server in the baseboard management controller to the host circular buffer through the memory-mapped input and output, and displays the health index of the server through the host's system software, thereby realizing the acquisition and display of the server's health index by the host, which can enable users to better understand the health status of the server.The method obtains the user's operation request for the server hardware; stores the operation request in the baseboard management controller to the host circular buffer through the management component transmission protocol based on the memory-mapped baseboard management controller interface; sends an interruption representing that the operation request has been obtained and stored to the host, so that the host can read the operation request through the system software; when the host receives the interruption representing that the operation request has been obtained and stored, the system software of the host reads the server hardware operation request from the baseboard management controller to the host circular buffer through the memory-mapped input and output; the user's operation request for the server hardware is processed by the system software of the host, so that the host can obtain and process the user's operation request for the server, and can enable the user to better control the operation of the server. Based on the host system software, the self-monitoring analysis and reporting technology data of the non-volatile memory standard hard disk is obtained through the self-monitoring analysis and reporting technology monitoring tool; when the interrupt representing the completion of the acquisition of the self-monitoring analysis and reporting technology data is triggered, the self-monitoring analysis and reporting technology data is written into the host-to-baseboard management controller circular buffer through the host system software; the interrupt representing the completion of the acquisition of the self-monitoring analysis and reporting technology data is sent to the baseboard management controller through the host system software, so that the baseboard management controller can read the self-monitoring analysis and reporting technology data of the non-volatile memory standard hard disk in the host-to-baseboard management controller circular buffer, and the BMC obtains the SMART data of the NVME hard disk through the in-band acquisition method based on the host software level. Determine the health status of the non-volatile memory standard hard disk based on the self-monitoring analysis and reporting technology data; judge whether the non-volatile memory standard hard disk has a fault; if so, output an alarm message and trigger the hard disk fault transfer mechanism of the non-volatile memory standard hard disk, thereby ensuring the security of the hard disk data. When the server is powered on normally, the management component communication component monitoring process is started; based on the management component communication component monitoring process, the data of the remaining hardware devices except the target hardware device are obtained through the management component transmission protocol channel based on the high-speed serial computer expansion bus standard or the management component transmission protocol channel based on the serial communication bus, thereby realizing direct reading of the data of the remaining hardware devices.
[0060] In addition, the present invention also provides a computer program product, a hardware information transmission device and a medium, with the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] 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.
[0062] Figure 1A flowchart of a hardware information transmission method provided by an embodiment of the present invention;
[0063] Figure 2 A diagram of the MCTP over MMBI communication architecture provided in an embodiment of the present invention;
[0064] Figure 3 An example architecture diagram of NVME hard disk SMART data capture provided by an embodiment of the present invention;
[0065] Figure 4 A schematic diagram of a hardware information transmission device provided by an embodiment of the present invention;
[0066] Figure 5 A schematic diagram of a hardware information transmission device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0067] 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.
[0068] The core of the present invention is to provide a hardware information transmission method, product, device and medium to solve the problem that the current BMC cannot directly obtain some hardware device data out-of-band, which is not conducive to BMC monitoring of hardware.
[0069] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0070] MMBI is an interface for communication between the host system and BMC, which uses memory mapping technology to achieve efficient data transmission. MMBI maps the registers or buffers of the BMC to the specific memory address space of the host system, allowing the host system to directly access these resources.
[0071] At present, BMC can communicate with hardware through channels such as MCTP over PCIE / I2C to obtain hardware information. However, there are limitations on some hardware information, and it cannot be directly obtained through out-of-band methods; for example, BMC cannot normally read the SMART data of NVME hard disks through channels such as MCTP overPCIE / I2C, which is not conducive to BMC's monitoring of hardware. In order to solve the above problems, the present invention provides a hardware information transmission method, which is specifically applied to the BMC of a server.
[0072] Figure 1A flowchart of a hardware information transmission method provided by an embodiment of the present invention. Figure 1 As shown, the method includes:
[0073] S10: When the server is powered on normally, register information related to the memory-mapped baseboard management controller interface is configured.
[0074] First, when the server is powered on normally, the BMC starts and configures the register information related to the MMBI. It should be noted that in this embodiment, there is no restriction on the specific configured register information related to the MMBI, such as the configurable MMBI size, the memory block mapped by the MMBI, etc., depending on the specific implementation situation.
[0075] S11: Start the operation shared memory data thread based on the management component transmission protocol of the memory mapping baseboard management controller interface.
[0076] The operation shared memory data thread based on the Management Component Transport Protocol over Memory Mapped Baseboard Management Controller Interface (MCTP over MMBI) is further initiated.
[0077] Figure 2 The MCTP over MMBI communication architecture diagram provided in the embodiment of the present invention is shown in FIG. Figure 2 As shown, the MCTP over MMBI protocol in the present invention is a communication protocol applied between the BMC and the Platform Controller Hub (PCH) of the host. Among them, MMBI is a function of exchanging data between the PCH and the BMC through the Enhanced Serial Peripheral Interface (ESPI) peripheral channel memory cycle. In this embodiment, there is no restriction on the startup method of the MCTP over MMBI operation shared memory data thread, which depends on the specific implementation situation.
[0078] S12: Read the target data in the host-to-baseboard management controller circular buffer by operating the shared memory data thread, and display the target data through a web page.
[0079] The target data is data of the target hardware device that the baseboard management controller cannot directly read out-of-band; the target data is read from the target hardware device by the host and stored in the host-to-baseboard management controller circular buffer.
[0080] After the BMC starts the MCTP over MMBI operation shared memory data thread, the target data in the host to BMC (H2B) circular buffer is read based on the operation shared memory data thread, that is, through the MCTP over MMBI protocol.
[0081] It should be noted that the H2B circular buffer is a buffer used for data transmission between the host and the BMC. In this structure, the host writes data to the buffer, and the BMC reads data from the buffer. Since the buffer is circular, when the write pointer reaches the end of the buffer, it automatically wraps around to the beginning of the buffer, thereby realizing circular storage and transmission of data.
[0082] In addition, the target data is the data of the target hardware device that the BMC cannot directly read out-of-band, such as the SMART data of the NVME hard disk. In this solution, the host reads the target data of the target hardware device and stores it in the H2B circular buffer, so that the BMC can directly read the target data in the H2B circular buffer through the MCTP over MMBI protocol, thereby realizing the reading of the target hardware device data.
[0083] It should be noted that in this embodiment, the specific process of the host reading the target data of the target hardware device and storing it in the H2B circular buffer is not limited, and it depends on the specific implementation situation. The MCTP over MMBI protocol adopted by the present invention can significantly improve the efficiency and reliability of data transmission. The use of a memory mapping interface can provide faster access speeds and lower latency, making the transmission of hardware information more real-time. Hardware information can be obtained by directly reading memory without a complicated communication process.
[0084] In this embodiment, a management component transmission protocol based on a memory-mapped baseboard management controller interface is used to establish a communication link between the BMC and the host system software. When the BMC needs to obtain the target data of some target hardware devices that cannot be directly obtained out-of-band, the host reads the target data of the target hardware device and stores it in the host-to-baseboard management controller circular buffer mapped by MMBI. Finally, the BMC reads the host-to-baseboard management controller circular buffer through the management component transmission protocol based on the memory-mapped baseboard management controller interface, thereby obtaining the target data of the target hardware device. This solution is based on the software level of the host, and realizes the acquisition of the target hardware device data by the BMC through in-band acquisition, and at the same time realizes the transmission of the target hardware device data of the BMC, which solves the problem that the current BMC cannot directly obtain some hardware device data out-of-band, which is not conducive to the monitoring of the hardware by the BMC, and can efficiently and reliably transmit hardware device data, reduce delays and improve the overall performance of the system.
[0085] Based on the above embodiments, in some embodiments, configuring register information related to a memory-mapped baseboard management controller interface includes:
[0086] S101: configuring the total size of the memory-mapped baseboard management controller interface;
[0087] S102: configuring interrupt status and enabling related to data transmission of a memory-mapped baseboard management controller interface;
[0088] S103: Configure the host writable status bit, and configure the host to baseboard management controller circular buffer and the baseboard management controller to host circular buffer.
[0089] In a specific implementation, in order to configure the register information related to the MMBI, the total size of the MMBI is specifically configured. Generally, the total size of the MMBI can be set to 64KB, 128KB, 256KB, 512KB, 1MB, 2MB, 4MB or 8MB, depending on the specific implementation. In order to be able to store a large amount of hardware device data, the present invention chooses to set the total size of the MMBI to 8MB, so as to store a large amount of hardware information, interrupt information and fault information.
[0090] Furthermore, the interrupt status and enable related to MMBI data transmission are configured. It can be understood that by configuring interrupts and enable, the BMC can efficiently handle various events and requests, and improve the real-time and concurrency of the system. In this embodiment, the interrupt status and enable related to MMBI data transmission are configured, and 16 groups of interrupts can be specifically configured: Host RWP 0~1of Instance #0~#7. For example, setting the Host RWP 0 Instance #0 interrupt enable can enable the host to trigger an interrupt after reading this part of the content, and perform subsequent processes.
[0091] Finally, configure the host writable status bit, and configure the H2B circular buffer and the baseboard management controller to host (BMC to Host, B2H) circular buffer. It can be understood that, in general, the host writable status bit indicates whether the host has write permission to the register or status word; in this embodiment, the host writable status bit indicates whether the host has write permission to the H2B circular buffer. The B2H circular buffer is similar to the H2B circular buffer, but in the opposite direction. In this structure, the BMC writes data to the buffer, and the host reads data from the buffer. Similarly, when the write pointer reaches the end of the buffer, it automatically wraps around to the beginning of the buffer, thereby realizing circular storage and transmission of data. Both the H2B circular buffer and the B2H circular buffer utilize the characteristics of circular queues, which can efficiently process data flow in limited memory space without frequent memory allocation or copy operations.
[0092] In this embodiment, the configuration of register information related to the memory-mapped baseboard management controller interface is achieved by configuring the total size of the memory-mapped baseboard management controller interface; configuring the interrupt status and enable related to the memory-mapped baseboard management controller interface data transmission; configuring the host writable status bit, and configuring the host to baseboard management controller circular buffer and the baseboard management controller to host circular buffer.
[0093] Based on the above embodiments, in some embodiments, starting an operation shared memory data thread based on a management component transmission protocol of a memory-mapped baseboard management controller interface includes:
[0094] S111: setting the source electronic ID card identifier and the destination electronic ID card identifier to 0;
[0095] S112: Selecting a physical channel between the host and the memory-mapped baseboard management controller interface;
[0096] S113: Set the physical transport binding identifier to 0x07.
[0097] In the specific implementation, BMC starts MCTP over MMBI to operate the shared memory data thread and follows the MCTP over MMBI protocol. In order to ensure data transmission between BMC and the host through the MCTP over MMBI protocol, it is necessary to set the source electronic ID identifier (Source EID) and the destination electronic ID identifier (Dest EID) to 0, so as not to specify the source address and destination address of the transmission data packet, and select the physical channel between BMC and the host as MMBI, and set the physical transmission binding identifier to 0x07, so as to ensure data transmission between BMC and the host through the MCTP over MMBI protocol.
[0098] Based on the above embodiments, in some embodiments, the host reads the target data of the target hardware device and stores it in the host-to-baseboard management controller circular buffer, including:
[0099] S131: Acquire target data of the target hardware device through the system software of the host;
[0100] S132: When an interrupt indicating completion of acquisition of target data is triggered, the target data is written into a baseboard management controller circular buffer by the host through the system software of the host;
[0101] S133: Sending an interrupt indicating completion of acquisition of the target data to the baseboard management controller through the system software of the host, so that the baseboard management controller can read the target data in the host-to-baseboard management controller circular buffer.
[0102] As can be seen from the above embodiments, the host pre-reads the target data of the target hardware device and stores it in the H2B circular buffer. In a specific implementation, the host specifically obtains the target data of the target hardware device through the system software, that is, reads the data of the target hardware device through in-band acquisition. After the data of the target hardware device is read, an interrupt is triggered.
[0103] When the interrupt indicating the completion of target data acquisition is triggered, the host writes the target data into the H2B circular buffer through the system software, and sends an interrupt indicating the completion of target data acquisition to the BMC after writing is completed, so that the BMC can read the target data in the H2B circular buffer after receiving the interrupt.
[0104] In this embodiment, the target data of the target hardware device is acquired through the system software of the host; when an interrupt indicating the completion of the acquisition of the target data is triggered, the target data is written into the host-to-baseboard management controller circular buffer through the system software of the host; the interrupt indicating the completion of the acquisition of the target data is sent to the baseboard management controller through the system software of the host, so that the baseboard management controller reads the target data in the host-to-baseboard management controller circular buffer, thereby realizing the reading and storage of the target data of the target hardware device by the host.
[0105] In order to ensure that the host can smoothly read the data of the target hardware device and trigger an interrupt after the data transmission structure, based on the above embodiment, in some embodiments, before obtaining the target data of the target hardware device through the system software of the host, it also includes:
[0106] S134: when the host is turned on, initializing the memory mapped input and output through the basic input and output system of the host;
[0107] S135: Establishing a path of a memory-mapped baseboard management controller interface through the host;
[0108] S136: configuring the general input / output pin corresponding to the interrupt, so as to trigger the corresponding interrupt by switching the level state of the general input / output pin.
[0109] Specifically, when the host is turned on, the memory-mapped input / output (MMIO) is initialized through the host's Basic Input / Output System (BIOS). Further, the host establishes normal access to the MMBI channel. Finally, the general purpose input / output (GPIO) pin corresponding to the interrupt is configured so that the interrupt can be triggered by switching the level state of the GPIO pin. For example. When data communication is completed, the GPIO pin is pulled high or low to trigger the corresponding interrupt.
[0110] In this embodiment, when the host is turned on, the memory-mapped input and output are initialized through the host's basic input and output system; a path for the memory-mapped baseboard management controller interface is established through the host; and the general input and output pins corresponding to the interrupts are configured so that the corresponding interrupts can be triggered by switching the level status of the general input and output pins, thereby realizing advance configuration of the host and ensuring that the host can smoothly read the data of the target hardware device and trigger the interrupt after the data transmission structure.
[0111] In order to enable the host to obtain and display relevant data of the server, such as the health index of the server, based on the above embodiments, in some embodiments, the method further includes:
[0112] S141: monitor the health index of the server;
[0113] S142: storing the health index of the server in a baseboard management controller-to-host circular buffer through a management component transmission protocol based on a memory-mapped baseboard management controller interface;
[0114] S143: Sending an interruption indicating that the acquisition and storage of the health index is completed to the host, so that the host can read the health index through the system software.
[0115] First, the BMC monitors the server's health index in real time and stores it in the B2H circular buffer through the MCTP over MMBI protocol. Furthermore, the BMC sends an interrupt to the host indicating that the health index has been obtained and stored, so that the host can read the health index through the system software.
[0116] In order for the host to obtain and display the health index of the server, in a specific implementation, the host reads the health index through the system software, including:
[0117] S144: when receiving an interrupt indicating that the acquisition and storage of the health index is complete, the system software of the host reads the health index of the server in the circular buffer of the host from the baseboard management controller through the memory mapping input and output;
[0118] S145: Displaying the health index of the server through the system software of the host.
[0119] Specifically, when the host receives an interrupt indicating that the health index has been acquired and stored, the host's system software reads the server's health index in the B2H circular buffer through MMIO, and displays the server's health index through the host's system software, which can be specifically displayed through a web page.
[0120] In this way, the host can obtain and display the health index of the server, enabling users to better understand the health status of the server.
[0121] In order to enable the host to obtain and process the user's operation request to the server, based on the above embodiment, in some embodiments, the method further includes:
[0122] S151: Obtaining a user's operation request for server hardware;
[0123] S152: storing the operation request in a baseboard management controller-to-host circular buffer through a management component transmission protocol based on a memory-mapped baseboard management controller interface;
[0124] S153: Sending an interruption indicating that the operation request has been obtained and stored to the host, so that the host can read the operation request through system software.
[0125] First, the BMC obtains the user's operation request for the server hardware. In this embodiment, the specific type of the operation request is not limited and depends on the specific implementation situation. The operation request is further stored in the B2H circular buffer through the MCTP over MMBI protocol, and an interrupt representing that the operation request has been obtained and stored is sent to the host, so that the host can read the operation request through the system software.
[0126] In order for the host to obtain and process the user's operation request to the server, in a specific implementation, the host reads the operation request through the system software, including:
[0127] S154: When receiving an interrupt indicating that the acquisition and storage of the operation request is complete, the system software of the host reads the operation request of the server hardware in the circular buffer of the host from the baseboard management controller through the memory mapped input and output;
[0128] S155: Processing the user's operation request to the server hardware through the host's system software.
[0129] Specifically, when the host receives an interrupt indicating that the operation request has been acquired and stored, the host system software reads the operation request of the server hardware in the B2H circular buffer through MMIO, and processes the user's operation request to the server hardware through the system software. In this embodiment, there is no restriction on the specific processing method of the host software system for the operation request, which depends on the specific implementation situation.
[0130] In this way, the host can obtain and process the user's operation request to the server, which can enable the user to better control the operation of the server.
[0131] It is understandable that in a specific implementation, the BMC cannot directly read the SMART data of the NVME hard disk in an out-of-band manner. Figure 3 The example architecture diagram of NVME hard disk SMART data capture provided by the embodiment of the present invention. In order to realize the acquisition of SMART data of NVME hard disk by BMC, based on the above embodiment, in some embodiments, based on Figure 3 In the architecture shown, the host reads the target data of the target hardware device and stores it in the host-to-baseboard management controller circular buffer, including:
[0132] S161: host-based system software, using the self-monitoring analysis and reporting technology monitoring tool to obtain the self-monitoring analysis and reporting technology data of the non-volatile memory standard hard disk;
[0133] S162: When an interrupt indicating that the acquisition of the self-monitoring analysis and reporting technology data is completed is triggered, the self-monitoring analysis and reporting technology data is written by the host to the baseboard management controller circular buffer through the host system software;
[0134] S163: Sending an interrupt indicating that the acquisition of the self-monitoring analysis and reporting technical data is completed to the baseboard management controller through the system software of the host, so that the baseboard management controller can read the self-monitoring analysis and reporting technical data of the non-volatile memory standard hard disk in the host-to-baseboard management controller circular buffer.
[0135] Specifically, firstly, based on the host system software, the SMART data of the NVME hard disk is obtained through the Self-Monitoring Analysis and Reporting Technology Monitoring (smartctl) tool. When the interrupt indicating the completion of SMART data acquisition is triggered, the SMART data is written into the H2B circular buffer through the host system software.
[0136] The host system software further sends an interrupt indicating that the SMART data has been obtained to the BMC, so that the BMC knows that the current SMART data has been saved in the H2B circular buffer, and then the BMC reads the SMART data of the NVME hard disk in the H2B circular buffer. In this way, the BMC obtains the SMART data of the NVME hard disk in an in-band manner based on the host software layer.
[0137] In order to ensure the data security of the NVME hard disk, based on the above embodiments, in some embodiments, after the baseboard management controller reads the self-monitoring analysis and reporting technical data of the non-volatile memory standard hard disk from the host to the baseboard management controller circular buffer, it also includes:
[0138] S164: Determine the health status of the non-volatile memory standard hard disk based on the self-monitoring analysis and reporting technology data;
[0139] S165: Determine whether the non-volatile memory standard hard disk is faulty; if so, proceed to step S166;
[0140] S166: Outputting an alarm message and triggering a hard disk failover mechanism of the non-volatile memory standard hard disk.
[0141] Specifically, after reading the SMART data of the NVME hard disk, the BMC determines the health status of the NVME hard disk according to the SMART data, and determines whether the NVME hard disk has a fault.
[0142] If it is confirmed that the NVME hard disk has not failed, the SMART data of the NVME hard disk will continue to be detected. If it is confirmed that the NVME hard disk has failed, an alarm message will be output to remind the user of the hard disk failure, and the hard disk failure transfer mechanism of the NVME hard disk will be triggered to transfer the data in the current NVME hard disk to prevent data loss caused by hard disk failure. In this way, the data security of the NVME hard disk is guaranteed.
[0143] In addition, in the specific implementation, in addition to being able to judge the fault of the NVME hard disk based on the SMART data of the NVME hard disk, the BMC can also optimize the system performance based on the performance indicators in the SMART data (such as read / write speed, latency, etc.). For example, if the performance of a hard disk degrades, the BMC can rebalance the load or adjust the I / O priority to ensure that critical tasks are not affected. At the same time, the BMC can also check the firmware version information in the SMART data and manage firmware updates as needed. If the firmware version is too old or there are known problems, the BMC can automatically download and install the new firmware to ensure the stability and security of the hard disk.
[0144] Based on the above embodiments, in some embodiments, the method further includes:
[0145] S171: When the server is powered on normally, the management component communication component monitoring process is started;
[0146] S181: Based on the monitoring process of the management component communication component, data of the remaining hardware devices except the target hardware device are obtained through the management component transmission protocol channel based on the high-speed serial computer expansion bus standard or the management component transmission protocol channel based on the serial communication bus.
[0147] It is understandable that for some hardware devices, the BMC can directly obtain the corresponding data through some channels, without the need to obtain it indirectly through the host and the circular buffer. Therefore, in the specific implementation, when the server is powered on normally, the management component communication component monitoring process is started; based on the management component communication component monitoring process, the data of the remaining hardware devices except the target hardware device are obtained through the MCTP over PCIE protocol channel or the MCTP over I2C protocol channel, thereby realizing the direct reading of the hardware device information.
[0148] In the above embodiments, the hardware information transmission method is described in detail. The present invention also provides a corresponding embodiment of the hardware information transmission device.
[0149] Figure 4 A schematic diagram of a hardware information transmission device provided by an embodiment of the present invention. The device is applied to a baseboard management controller; Figure 4 As shown, the method includes:
[0150] The configuration module 10 is used to configure register information related to the memory-mapped baseboard management controller interface when the server is powered on normally.
[0151] The startup module 11 is used to start the operation shared memory data thread based on the management component transmission protocol of the memory mapping baseboard management controller interface.
[0152] The reading module 12 is used to read the target data in the host-to-baseboard management controller circular buffer by operating the shared memory data thread, and display the target data through a web page.
[0153] The target data is data of the target hardware device that the baseboard management controller cannot directly read out-of-band; the target data is read from the target hardware device by the host and stored in the host-to-baseboard management controller circular buffer.
[0154] In some embodiments, the configuration module 10 includes:
[0155] A first configuration submodule, used to configure the total size of the memory-mapped baseboard management controller interface;
[0156] A second configuration submodule, used to configure interrupt status and enable related to data transmission of a memory-mapped baseboard management controller interface;
[0157] The third configuration submodule is used to configure the host writable status bit, and configure the host to baseboard management controller circular buffer and the baseboard management controller to host circular buffer.
[0158] In some embodiments, the startup module 11 includes:
[0159] The first setting submodule is used to set the source electronic ID card identifier and the destination electronic ID card identifier to 0;
[0160] A second setting submodule is used to select the physical channel between the host and the memory-mapped baseboard management controller interface;
[0161] The third setting submodule is used to set the physical transmission binding identifier to 0x07.
[0162] In some embodiments, the host reads the target data of the target hardware device and stores it in a host-to-baseboard management controller circular buffer, specifically including: obtaining the target data of the target hardware device through the host's system software; when an interrupt representing the completion of target data acquisition is triggered, writing the target data into the host-to-baseboard management controller circular buffer through the host's system software; sending an interrupt representing the completion of target data acquisition to the baseboard management controller through the host's system software, so that the baseboard management controller can read the target data in the host-to-baseboard management controller circular buffer.
[0163] In some embodiments, before obtaining the target data of the target hardware device through the host's system software, it also includes: when the host is turned on, initializing the memory mapped input and output through the host's basic input and output system; establishing a path for the memory mapped baseboard management controller interface through the host; configuring the general input and output pins corresponding to the interrupt, so as to trigger the corresponding interrupt by switching the level state of the general input and output pins.
[0164] In some embodiments, it also includes:
[0165] Monitoring submodule, used to monitor the health index of the server;
[0166] A first storage submodule is used to store the health index of the server in a baseboard management controller to host circular buffer through a management component transmission protocol based on a memory-mapped baseboard management controller interface;
[0167] The first sending submodule is used to send an interruption indicating that the acquisition and storage of the health index is completed to the host, so that the host can read the health index through the system software.
[0168] In some embodiments, the host reads the health index through the system software, including: when receiving an interrupt indicating that the health index has been acquired and stored, the host's system software reads the health index of the server in the host's circular buffer from the baseboard management controller through memory mapped input and output; and displays the server's health index through the host's system software.
[0169] In some embodiments, it also includes:
[0170] The first acquisition submodule is used to obtain the user's operation request for the server hardware;
[0171] A second storage submodule is used to store the operation request in a baseboard management controller to host circular buffer through a management component transmission protocol based on a memory-mapped baseboard management controller interface;
[0172] The second sending submodule is used to send an interruption indicating that the operation request has been obtained and stored to the host, so that the host can read the operation request through the system software.
[0173] In some embodiments, the host reads the operation request through the system software, including: when receiving an interrupt indicating that the operation request has been acquired and stored, the host's system software reads the operation request of the server hardware from the baseboard management controller to the host's circular buffer through memory mapped input and output; and processes the user's operation request for the server hardware through the host's system software.
[0174] In some embodiments, the host reads the target data of the target hardware device and stores it in a host-to-baseboard management controller circular buffer, including: based on the host's system software, obtaining the self-monitoring analysis and reporting technology data of the non-volatile memory standard hard disk through a self-monitoring analysis and reporting technology monitoring tool; when an interrupt representing the completion of the acquisition of the self-monitoring analysis and reporting technology data is triggered, the self-monitoring analysis and reporting technology data is written into the host-to-baseboard management controller circular buffer through the host's system software; and the interrupt representing the completion of the acquisition of the self-monitoring analysis and reporting technology data is sent to the baseboard management controller through the host's system software, so that the baseboard management controller can read the self-monitoring analysis and reporting technology data of the non-volatile memory standard hard disk in the host-to-baseboard management controller circular buffer.
[0175] In some embodiments, it also includes:
[0176] A first determination submodule, for determining the health status of the non-volatile memory standard hard disk based on the self-monitoring analysis and reporting technical data;
[0177] The judgment submodule is used to judge whether the non-volatile memory standard hard disk has a fault; if so, the alarm module is triggered;
[0178] The alarm module is used to output alarm information and trigger the hard disk failover mechanism of the non-volatile memory standard hard disk.
[0179] In some embodiments, it also includes:
[0180] The startup submodule is used to start the monitoring process of the management component communication component when the server is powered on normally;
[0181] The second acquisition submodule is used to monitor the process based on the management component communication component, and obtain the data of the remaining hardware devices except the target hardware device through the management component transmission protocol channel based on the high-speed serial computer expansion bus standard or the management component transmission protocol channel based on the serial communication bus.
[0182] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0183] In addition, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned hardware information transmission method when executed by a processor.
[0184] Figure 5 A schematic diagram of a hardware information transmission device provided by an embodiment of the present invention. Figure 5 As shown, the hardware information transmission device includes:
[0185] A memory 20, used for storing computer programs;
[0186] The processor 21 is used to implement the steps of the hardware information transmission method mentioned in the above embodiment when executing the computer program.
[0187] The hardware information transmission device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
[0188] 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 an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU 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.
[0189] The memory 20 may include one or more computer-readable 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 hardware information transmission method 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. Data 203 may include but is not limited to data related to the hardware information transmission method.
[0190] In some embodiments, the hardware information transmission device 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 .
[0191] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the hardware information transmission device, and may include more or fewer components than those shown in the figure.
[0192] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable 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.
[0193] 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, 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, etc. Various media that can store program codes.
[0194] The above is a detailed introduction to a hardware information transmission method, product, device and medium 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.
[0195] 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.
Claims
1. A method for transmitting hardware information, characterized in that: Applied to a baseboard management controller; the method comprises: When the server is powered on normally, register information related to the memory-mapped baseboard management controller interface is configured; Initiate an operation shared memory data thread based on a management component transfer protocol of a memory-mapped baseboard management controller interface; Reading target data from the host to the baseboard management controller circular buffer by operating the shared memory data thread, and displaying the target data through a web page; Wherein, the target data is data of a target hardware device that the baseboard management controller cannot directly read out-of-band; the target data is read from the target hardware device by the host and stored in a host-to-baseboard management controller circular buffer; The method of starting an operation shared memory data thread based on a management component transmission protocol of a memory-mapped baseboard management controller interface includes: Set the source electronic ID card identifier and the destination electronic ID card identifier to 0; Selecting a physical channel with the host as the memory-mapped baseboard management controller interface; Set the physical transport binding identifier to 0x07; The host reads the target data of the target hardware device and stores the target data in a host-to-baseboard management controller circular buffer, including: Acquire the target data of the target hardware device through the system software of the host; When an interrupt indicating completion of acquisition of the target data is triggered, the target data is written into a baseboard management controller circular buffer of the host through the system software of the host; An interrupt indicating that the acquisition of the target data is completed is sent to the baseboard management controller through the system software of the host, so that the baseboard management controller can read the target data in the host-to-baseboard management controller circular buffer.
2. The method for transmitting hardware information according to claim 1, characterized in that: The configuration and memory mapping baseboard management controller interface related register information include: Configuring the total size of the memory-mapped baseboard management controller interface; Configuring interrupt states and enables associated with data transfers on the memory-mapped baseboard management controller interface; The host writable status bit is configured, and the host to baseboard management controller circular buffer and baseboard management controller to host circular buffer are configured.
3. The method for transmitting hardware information according to claim 1, characterized in that: Before acquiring the target data of the target hardware device through the system software of the host, the method further includes: When the host is turned on, initializing the memory mapped input and output through the basic input and output system of the host; establishing access to the memory mapped baseboard management controller interface via the host; The general input / output pin corresponding to the interrupt is configured so that the corresponding interrupt is triggered by switching the level state of the general input / output pin.
4. The method for transmitting hardware information according to claim 1, characterized in that: Also includes: Monitor the health index of the server; Storing the health index of the server in a baseboard management controller to host circular buffer through the management component transmission protocol based on the memory-mapped baseboard management controller interface; An interruption indicating that the acquisition and storage of the health index is completed is sent to the host, so that the host can read the health index through system software.
5. The method for transmitting hardware information according to claim 4, characterized in that: The host reads the health index through system software, including: When receiving an interrupt indicating that the acquisition and storage of the health index is complete, the system software of the host reads the health index of the server in the host circular buffer from the baseboard management controller through memory mapped input and output; The health index of the server is displayed through the system software of the host.
6. The method for transmitting hardware information according to claim 1, characterized in that: Also includes: Obtain user operation requests for server hardware; storing the operation request in a baseboard management controller-to-host circular buffer through the management component transmission protocol based on the memory-mapped baseboard management controller interface; An interruption indicating that the operation request has been acquired and stored is sent to the host, so that the host can read the operation request through system software.
7. The method for transmitting hardware information according to claim 6, characterized in that: The host reads the operation request through system software, including: When receiving an interrupt indicating that the operation request has been acquired and stored, the system software of the host reads the operation request from the baseboard management controller to the server hardware in the host circular buffer through memory mapped input and output; The operation request of the user to the server hardware is processed by the system software of the host.
8. The method for transmitting hardware information according to claim 1, characterized in that: The host reads the target data of the target hardware device and stores the target data in a host-to-baseboard management controller circular buffer, including: Based on the system software of the host, the self-monitoring analysis and reporting technology data of the non-volatile memory standard hard disk is obtained through the self-monitoring analysis and reporting technology monitoring tool; When an interruption indicating completion of acquisition of the self-monitoring analysis and reporting technical data is triggered, the self-monitoring analysis and reporting technical data is written into a baseboard management controller circular buffer of the host through the system software of the host; An interrupt indicating that the acquisition of the self-monitoring analysis and reporting technical data is completed is sent to the baseboard management controller through the system software of the host, so that the baseboard management controller can read the self-monitoring analysis and reporting technical data of the non-volatile memory standard hard disk in the baseboard management controller circular buffer from the host to the baseboard management controller.
9. The method for transmitting hardware information according to claim 8, characterized in that: After the baseboard management controller reads the self-monitoring analysis and reporting technical data of the non-volatile memory standard hard disk in the baseboard management controller circular buffer from the host, the method further includes: determining a health status of the non-volatile memory standard hard disk based on the self-monitoring analysis and reporting technical data; Determining whether the non-volatile memory standard hard disk is faulty; If so, an alarm message is output and a hard disk failover mechanism of the non-volatile memory standard hard disk is triggered.
10. The method for transmitting hardware information according to any one of claims 1 to 9, characterized in that: Also includes: When the server is powered on normally, the management component communication component monitoring process is started; Based on the monitoring process of the management component communication part, data of the remaining hardware devices except the target hardware device are obtained through a management component transmission protocol path based on a high-speed serial computer expansion bus standard or a management component transmission protocol path based on a serial communication bus.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the hardware information transmission method according to any one of claims 1 to 10 are implemented.
12. A hardware information transmission device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the hardware information transmission method according to any one of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the hardware information transmission method according to any one of claims 1 to 10 are implemented.
