PCIE driver card firmware upgrade method, device, system, equipment and medium
The baseboard management controller uses signal switches and driver chips in the PCIE driver card to configure link parameters, realizing firmware upgrades without on-site operations and without downtime, solving the problems of low upgrade efficiency and high maintenance costs in the existing technology, and improving Improved user experience and batch upgrade capabilities.
Patent Information
- Application Number
- CN202111276788.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-10-29
AI Technical Summary
The firmware upgrade operation of the existing PCIE driver card is cumbersome and requires on-site operation. The upgrade efficiency is low, affects the user experience, and requires shutdown, resulting in high maintenance costs and the inability to achieve rapid firmware upgrade of batch machines.
Use the signal switch through the baseboard management controller (BMC) to refresh the firmware to be updated into the storage space of the PCIE driver card, and use the driver chip to configure the PCIE link parameters, send link retraining instructions, complete the firmware upgrade, and avoid on-site operations. and shutdown process.
It realizes firmware upgrade that does not require on-site operations and does not interrupt business, improves upgrade efficiency and operability, reduces maintenance costs, and supports rapid firmware upgrade of batch machines.
Smart Images

Figure CN114153477B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a firmware upgrade method, device, electronic device and readable storage medium for a PCIE driver card. Background Art
[0002] With the continuous development of computer technology, servers are increasingly used in various technical fields, such as from the Internet to the financial industry, from the mobile communications industry to education funds and scientific research. With the development of the diversity of server application scope and application scenarios, customers have higher and higher demands on servers. PCIE (Peripheral component interconnect express, a high-speed serial computer expansion bus standard) resources are also being decoupled from servers and independently upgraded. They are no longer attached to server products, resulting in GPU (Graphics Processing Unit, graphics processor) nodes, NVME (Non-Volatile Memory express) all-flash nodes, network resource pools, etc., which forced the birth of PCIE driver boards. The early PCIE driver boards had frequent board firmware upgrades. Although the firmware could be upgraded, the upgrade operation was cumbersome and required on-site operation, or the business needed to be stopped first, resulting in a poor user experience.
[0003] Related technologies include Figure 1 The method shown upgrades the firmware of the PCIE driver card. The PCIE upstream port is connected to the CPU (Central Processing Unit), the downstream port is connected to the PCIE interface, and the BMC communicates data with the driver chip through I2C (Inter-Integrated Circuit). The current product can only read simple information such as temperature. The driver chip firmware exists in EEPROM (Electrically Erasable Programmable readonly memory). The firmware upgrade depends on the board pin, which is connected to the driver chip through the board pin, and then the firmware is upgraded and maintained through the driver chip's unique tools. The board pin needs to rely on on-site operation, that is, the upgrade of the entire firmware depends on on-site operation, the upgrade efficiency is low, the operability is poor, the upgrade process takes a long time, and the firmware upgrade operation of batch machines cannot be completed in a short time. In addition, the upgrade process requires the machine to be taken off the shelf and restarted, the maintenance cost is high, and the user experience is poor. The upgrade requires the business end to take the business off the shelf, which has a greater impact on the business end.
[0004] In view of this, how to optimize the firmware upgrade operation of the PCIE driver card is a technical problem that technical personnel in the relevant field need to solve. Summary of the invention
[0005] The present application provides a method, device, system, electronic device and readable storage medium for upgrading the firmware of a PCIE driver card, which optimizes the firmware upgrading operation of the PCIE driver card, and does not require on-site operation and does not require business interruption during the firmware upgrading process.
[0006] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:
[0007] An embodiment of the present invention provides a method for upgrading the firmware of a PCIE driver card, which is applicable to a PCIE driver card having a signal switch. The method is applied to a baseboard management controller, and includes:
[0008] The firmware to be updated is refreshed into the storage space of the PCIE driver card by controlling the signal switch; so that the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch when there is a firmware update task; the driver chip also configures PCIE link parameters according to the firmware to be updated;
[0009] When it is detected that the firmware to be updated has been loaded, the driver chip is used to send a link retraining instruction to the central processor to retrain the PCIE link based on the PCIE link parameters to complete the firmware upgrade operation of the PCIE driver card.
[0010] Optionally, after using the driver chip to send a link retraining instruction to a central processor, the method further includes:
[0011] The central processor is connected to the PCIE resource pool through the driver chip based on the retrained PCIE link to expand the server PCIE resources.
[0012] Optionally, after using the driver chip to send a link retraining instruction to a central processor, the method further includes:
[0013] The target node is connected to the PCIE interface of the PCIE driver card through a cable to achieve decoupling and interconnection of PCIE resources and server nodes based on the retrained PCIE link; the target node is a GPU node and / or an NVME node and / or a network node.
[0014] Optionally, when there is a firmware update task, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch, including:
[0015] Determine whether there is a write operation in the storage space;
[0016] If the storage space does not perform a write operation, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch;
[0017] If the storage space is performing a write operation, a status monitoring process is started to monitor the write operation of the storage space; when the write operation is detected to be completed, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch.
[0018] Another aspect of the present invention provides a firmware upgrade device for a PCIE driver card, which is applicable to a PCIE driver card with a signal switch. The method is applied to a baseboard management controller, and includes:
[0019] A firmware refresh module, used to refresh the firmware to be updated into the storage space of the PCIE driver card by controlling the signal switch;
[0020] A firmware reading module, used to enable the driver chip of the PCIE driver card to read the firmware to be updated from the storage space by controlling the signal switch when there is a firmware update task; the driver chip also configures PCIE link parameters according to the firmware to be updated;
[0021] The link training module is used to send a link retraining instruction to the central processor by using the driver chip when it is detected that the loading of the firmware to be updated is completed, so as to retrain the PCIE link based on the PCIE link parameters and complete the firmware upgrade operation of the PCIE driver card.
[0022] An embodiment of the present invention further provides an electronic device, comprising a processor, wherein the processor is configured to implement the steps of the method for upgrading the firmware of the PCIE driver card as described in any of the preceding items when executing a computer program stored in a memory.
[0023] An embodiment of the present invention further provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the firmware upgrade method of the PCIE driver card as described in any of the preceding items are implemented.
[0024] Finally, the embodiment of the present invention further provides a firmware upgrade system for a PCIE driver card, including a baseboard management controller, a PCIE driver card and a central processing unit;
[0025] The driver chip of the PCIE driver card is connected to the baseboard management controller and the signal switch respectively, and the driver chip and the baseboard management controller perform read and write operations on the storage space of the PCIE driver card by controlling the signal switch;
[0026] The PCIE uplink port of the driver chip is connected to the central processor, and the downlink port is connected to the PCIE interface to form a PCIE link;
[0027] The baseboard management controller is used to implement the steps of the firmware upgrade method of the PCIE driver card as described in any of the preceding items when executing the computer program stored in the memory.
[0028] Optionally, the driver chip is connected to the baseboard management controller via I2C, so that the baseboard management controller operates the register of the driver chip via the I2C.
[0029] Optionally, the driver chip is connected to the signal switch via I2C; the signal switch is a 2-to-1 switching switch.
[0030] The advantage of the technical solution provided by the present application is that the BMC refreshes the firmware to be updated to the storage space of the PCIE driver card, and uses the BMC to read the firmware to be updated and train the PCIE link by operating the driver chip register, which optimizes the firmware upgrade operation of the PCIE driver card, without the need for on-site operation, and without the need to restart the server, thereby effectively improving the efficiency of firmware upgrades and improving the operability of firmware upgrades. The firmware upgrade of the driver chip of the PCIE driver card can be upgraded remotely. During the upgrade process, the machine does not need to be removed from the shelf and the business end does not need to remove the business. There is no need to restart the machine, which has almost no impact on the business end, and the maintenance cost is low, which is conducive to improving the user experience. The same material number board can be adapted to more machine environments. After the board is powered on, the BMC can uniformly upgrade the firmware, and then put it on the shelf and run the business. There is no need to modify the board PN for management and control according to different parameters, so that the firmware upgrade operation of batch machines can be completed in a short time.
[0031] In addition, the embodiment of the present invention also provides corresponding implementation devices, systems, electronic devices and readable storage media for the firmware upgrade method of the PCIE driver card, which further makes the method more practical, and the devices, systems, electronic devices and readable storage media have corresponding advantages.
[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. 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.
[0034] Figure 1 A schematic diagram of firmware upgrade in an exemplary application scenario of the related technology provided in an embodiment of the present invention;
[0035] Figure 2 A schematic diagram of a process flow of a firmware upgrade method for a PCIE driver card provided by an embodiment of the present invention;
[0036] Figure 3 A structural diagram of a specific implementation of a firmware upgrade device for a PCIE driver card provided in an embodiment of the present invention;
[0037] Figure 4 A structural diagram of a specific implementation of an electronic device provided by an embodiment of the present invention;
[0038] Figure 5 A structural diagram of a specific implementation of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0040] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0041] After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementation methods of the present application are described in detail below.
[0042] See first Figure 2 , Figure 2A flowchart of a method for upgrading the firmware of a PCIE driver card provided by an embodiment of the present invention may include the following contents:
[0043] S201: The BMC refreshes the firmware to be updated into the storage space of the PCIE driver card by controlling the signal switch.
[0044] The present application is to upgrade the firmware of the PCIE driver card, and compared with the existing PCIE driver card, the PCIE driver card needs to add an additional signal switch, that is, the present embodiment is to upgrade the firmware of the PCIE driver card with a signal switch. Specifically, the entire firmware upgrade process of the PCIE driver card is controlled by the baseboard management controller BMC. When the firmware of the PCIE driver card needs to be upgraded, the BMC refreshes the firmware to be updated to the storage space of the PCIE driver card by controlling the signal switch. The storage space can be, for example, an EEPROM, that is, the firmware to be updated is refreshed to the EEPROM, and the latest firmware file is stored in the EEPROM.
[0045] S202: When a firmware update task is detected, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch.
[0046] If a new firmware file appears in a storage space such as EEPROM, it indicates that the firmware update task can be executed. As for when to execute the firmware update task, the triggering conditions of the firmware update task can be set in advance. For example, whenever it is detected that the firmware file in the storage space is updated, the firmware update task is triggered. Or when a firmware update instruction is received from the user through the BMC, the firmware update task is triggered. The BMC reads the latest firmware of the storage space through the driver chip of the PCIE driver card by controlling the signal switch. Through this step, the driver chip obtains the current latest firmware, and the driver chip performs firmware upgrades through a unique tool. Since the firmware is updated, in order to ensure that the PCIE link is available, it is necessary to ensure that the PCIE link uses new configuration parameters. Therefore, the driver chip can also configure the PCIE link parameters according to the obtained firmware to be updated.
[0047] S203: When the BMC detects that the firmware to be updated has been loaded, it uses the driver chip to send a link retraining instruction to the central processor to retrain the PCIE link based on the PCIE link parameters to complete the firmware upgrade operation of the PCIE driver card.
[0048] After the driver chip has finished reading the firmware to be updated from the storage space, the driver chip has also been loaded with a new configuration file, and the PCIE link needs to be trained. The BMC can configure the PCIE unit register of the driver chip to notify the CPU unit that the link needs to be retrained. The PCIE link will enter the "Recovery" state and the link will be retrained, so that the trained PCIE link uses the new configuration parameters.
[0049] In the technical solution provided by the embodiment of the present invention, the BMC refreshes the firmware to be updated to the storage space of the PCIE driver card, and uses the BMC to read the firmware to be updated and train the PCIE link by operating the driver chip register, thereby optimizing the firmware upgrade operation of the PCIE driver card, without the need for on-site operation, and without the need to restart the server, thereby effectively improving the efficiency of the firmware upgrade and improving the operability of the firmware upgrade. The firmware upgrade of the driver chip of the PCIE driver card can be upgraded remotely. During the upgrade process, the machine does not need to be removed from the shelf and the business end does not need to remove the business. There is no need to restart the machine, which has almost no impact on the business end, and the maintenance cost is low, which is conducive to improving the user experience. The same material number board can be adapted to more machine environments. After the board is powered on, the BMC can uniformly upgrade the firmware, and then put it on the shelf and run the business. There is no need to modify the board PN for management and control according to different parameters, so that the firmware upgrade operation of batch machines can be completed in a short time.
[0050] It should be noted that there is no strict order of execution between the steps in this application. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 2 This is just a schematic and does not mean that this is the only execution order.
[0051] In the above embodiment, there is no limitation on how to execute step S202. In this embodiment, an optional implementation method of using a driver chip of a PCIE driver card to read the firmware to be updated from the storage space by controlling a signal switch may include the following steps:
[0052] Determine whether there is a write operation in the storage space;
[0053] If the storage space does not perform a write operation, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch;
[0054] If the storage space is performing a write operation, the status monitoring process is started to monitor the write operation of the storage space; when the write operation is detected to be completed, that is, the status monitoring process feedbacks that the write operation is completed, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space through the control signal switch.
[0055] In this embodiment, in order to ensure the accuracy of the firmware upgrade and ensure that the currently upgraded firmware version is the latest firmware version in the storage space, only one of the driver chip and the BMC of the PCIE driver card can perform read and write operations on the storage space at the same time, that is, when the BMC refreshes the firmware to be updated to the storage space, the driver chip cannot read data from the storage space.
[0056] It can be understood that the PCIE driver card is installed in the server to realize the expansion of the PCIE resources of the server. Accordingly, after the driver chip is used to send a link retraining instruction to the central processor, it may also include:
[0057] The central processing unit is connected to the PCIE resource pool through the driver chip based on the retrained PCIE link to expand the server PCIE resources.
[0058] The central processing unit CPU of this embodiment is a node of the server, and the PCIE link includes an uplink PCIE link between the CPU and the driver chip and a downlink PCIE link between the driver chip and the PCIE interface. After the PCIE link is trained, the PCIE link can be used normally, and the CPU can achieve peripheral connection connected to the PCIE interface through the PCIE link. Further, the target node can be connected to the PCIE interface of the PCIE driver card through a cable to achieve decoupling and interconnection of PCIE resources and server nodes based on the retrained PCIE link; the target node is a GPU node and / or an NVME node and / or a network node.
[0059] The embodiment of the present invention also provides a corresponding device for the firmware upgrade method of the PCIE driver card, which further makes the method more practical. Among them, the device can be described from the perspective of the functional module and the perspective of the hardware. The firmware upgrade device of the PCIE driver card provided by the embodiment of the present invention is introduced below. The firmware upgrade device of the PCIE driver card described below and the firmware upgrade method of the PCIE driver card described above can be referred to each other.
[0060] From the perspective of functional modules, see Figure 3 , Figure 3 A structural diagram of a firmware upgrade device for a PCIE driver card provided in an embodiment of the present invention in a specific implementation manner, the device may include:
[0061] Applicable to PCIE driver cards with signal switches, used in baseboard management controllers, including:
[0062] The firmware updating module 301 is used to update the firmware to be updated to the storage space of the PCIE driver card by controlling the signal switch;
[0063] The firmware reading module 302 is used for, when a firmware update task is detected, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch; the driver chip also configures the PCIE link parameters according to the firmware to be updated;
[0064] The link training module 303 is used to send a link retraining instruction to the central processor by using the driver chip when it is detected that the loading of the firmware to be updated is completed, so as to retrain the PCIE link based on the PCIE link parameters and complete the firmware upgrade operation of the PCIE driver card.
[0065] Optionally, in some implementations of this embodiment, the above-mentioned device may include a resource expansion module, which is used for, after sending a link retraining instruction to the central processor using a driver chip, the central processor connects to the PCIE resource pool through the driver chip based on the retrained PCIE link to expand the server PCIE resources.
[0066] As an optional implementation of the above embodiment, the above resource extension module can be further used to: connect the target node to the PCIE interface of the PCIE driver card through a cable to achieve decoupling and interconnection of PCIE resources and server nodes based on the retrained PCIE link; the target node is a GPU node and / or NVME node and / or a network node.
[0067] Optionally, in some other implementations of this embodiment, the above-mentioned firmware reading module 302 can be further used to: determine whether there is a write operation in the storage space; if the storage space does not perform a write operation, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space through the control signal switch; if the storage space is performing a write operation, start a status monitoring process to monitor the write operation of the storage space; when it is detected that the write operation is completed, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space through the control signal switch.
[0068] The functions of the functional modules of the firmware upgrade device of the PCIE driver card in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0069] As can be seen from the above, the embodiment of the present invention optimizes the firmware upgrade operation of the PCIE driver card, which does not require on-site operation and does not require business interruption during the firmware upgrade process.
[0070] The firmware upgrade device of the PCIE driver card mentioned above is described from the perspective of a functional module. Furthermore, the present application also provides an electronic device, which is described from the perspective of hardware. Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application in one implementation manner. Figure 4 As shown, the electronic device includes a memory 40 for storing a computer program; a processor 41 for implementing the steps of the firmware upgrade method of the PCIE driver card mentioned in any of the above embodiments when executing the computer program.
[0071] Among them, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 41 may also be a controller, a microcontroller, a microprocessor or other data processing chip. The processor 41 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0072] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. The memory 40 may be an internal storage unit of an electronic device in some embodiments, such as a hard disk of a server. The memory 40 may also be an external storage device of an electronic device in other embodiments, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. Further, the memory 40 may also include both an internal storage unit of an electronic device and an external storage device. The memory 40 may not only be used to store application software and various types of data installed in the electronic device, such as: the code of the program for executing the vulnerability processing method, etc., but may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 40 is at least used to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, the relevant steps of the firmware upgrade method of the PCIE driver card disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, and the storage method may be temporary storage or permanent storage. The operating system 402 may include Windows, Unix, Linux, etc. The data 403 may include, but is not limited to, data corresponding to the firmware upgrade result of the PCIE driver card, etc.
[0073] In some embodiments, the electronic device may further include a display screen 42, an input / output interface 43, a communication interface 44 or a network interface, a power supply 45 and a communication bus 46. Among them, the display screen 42 and the input / output interface 43 such as a keyboard belong to the user interface, and the optional user interface may also include a standard wired interface, a wireless interface, etc. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface. The communication interface 44 may optionally include a wired interface and / or a wireless interface, such as a WI-FI interface, a Bluetooth interface, etc., which is usually used to establish a communication connection between the electronic device and other electronic devices. The communication bus 46 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0074] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than those shown in the figure, for example, it may also include a sensor 47 for realizing various functions.
[0075] The functions of the functional modules of the electronic device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0076] As can be seen from the above, the embodiment of the present invention optimizes the firmware upgrade operation of the PCIE driver card, which does not require on-site operation and does not require business interruption during the firmware upgrade process.
[0077] It is understandable that if the firmware upgrade method of the PCIE driver card in the above embodiment is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrically erasable programmable ROM, register, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, removable disk, CD-ROM, disk or optical disk, etc. Various media that can store program codes.
[0078] Based on this, an embodiment of the present invention further provides a readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the firmware upgrade method of the PCIE driver card described in any of the above embodiments are performed.
[0079] The embodiment of the present invention also provides a firmware upgrade system for a PCIE driver card, see Figure 5 , which may include:
[0080] The firmware upgrade system of the PCIE driver card may include a baseboard management controller, a PCIE driver card and a central processing unit. The central processing unit is a computing node of a server. The driver chip of the PCIE driver card is connected to the baseboard management controller and the signal switch respectively, and the driver chip and the baseboard management controller read and write the storage space of the PCIE driver card by controlling the signal switch; the PCIE uplink port of the driver chip is connected to the central processing unit, and the downlink port is connected to the PCIE interface to form a PCIE link; the baseboard management controller is used to implement the steps of the firmware upgrade method of any of the above PCIE driver cards when executing the computer program stored in the memory.
[0081] Combination Figure 5It can be seen that the entire system can complete the firmware upgrade through the 4 identification paths shown in the figure. The identification path ① in the figure means that the driver chip can read the driver chip firmware by controlling the signal switch, so that the driver chip configures the driver chip PCIE link parameters based on the latest firmware read. The identification path ② in the figure is the driver chip firmware upgrade path implemented in this embodiment. The BMC refreshes the EEPROM by turning on the signal switch and writes the latest firmware of the driver chip to the EEPROM. The signal switch can be a 2-to-1 switching switch, so that only one of the BMC and the driver chip can read and write to the EEPROM. In the identification path ③ in the figure, the BMC configures the driver chip register, which is also the implementation method of this embodiment without the need to restart the server. The BMC first configures the driver chip firmware loading unit and reloads the EEPROM firmware to realize the reading of the new firmware. When the firmware loading is completed, the BMC notifies the CPU unit that the link needs to be retrained by configuring the driver chip PCIE unit register. The PCIE link will enter the "Recovery" state and the link will be retrained, so that the trained PCIE link uses the new configuration parameters. In addition, the driver chip has also been loaded as a new configuration file. Path ④ is marked in the figure, the PCIE link. The driver chip plays a role of "connecting the upper and lower parts" of the PCIE signal in the PCIE driver card. The CPU PCIE resources are connected to the PCIE resource pool through the PCIE driver card to expand the CPU's PCIE resources.
[0082] In this embodiment, the driver chip can be connected to the baseboard management controller via I2C, so that the baseboard management controller operates the register of the driver chip via I2C. The driver chip is connected to the signal switch via I2C; the signal switch is a 2-to-1 switching switch.
[0083] The functions of the functional modules of the firmware upgrade system of the PCIE driver card in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0084] As can be seen from the above, the embodiment of the present invention optimizes the firmware upgrade operation of the PCIE driver card, which does not require on-site operation and does not require business interruption during the firmware upgrade process.
[0085] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the hardware disclosed in the embodiments, including devices and electronic devices, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.
[0086] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0087] The above is a detailed introduction to the firmware upgrade method, device, system, electronic device and readable storage medium of a PCIE driver card provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A method for upgrading the firmware of a PCIE driver card, characterized in that: Applicable to a PCIE driver card with a signal switch, the method is applied to a baseboard management controller, including: The firmware to be updated is refreshed to the storage space of the PCIE driver card by controlling the signal switch, so that when there is a firmware update task, the driver chip of the PCIE driver card controls the signal switch to read the firmware to be updated from the storage space by operating the driver chip register of the PCIE driver card; the driver chip also configures the PCIE link parameters according to the firmware to be updated; When it is detected that the firmware to be updated has been loaded, the driver chip is used to send a link retraining instruction to the central processing unit, the BMC notifies the CPU unit to retrain the link by configuring the PCIE unit register of the driver chip, the PCIE link enters the Recovery state, and the link is retrained to retrain the PCIE link based on the PCIE link parameters. The trained PCIE link uses the new configuration parameters to complete the firmware upgrade operation of the PCIE driver card; The central processor is connected to the PCIE resource pool through the driver chip based on the retrained PCIE link to expand the server PCIE resources; The target node is connected to the PCIE interface of the PCIE driver card via a cable to achieve decoupling and interconnection of PCIE resources and server nodes based on the retrained PCIE link. During the upgrade process, the machine does not need to be removed from the shelf and the business end does not need to remove the business. No on-site operation is required, and there is no need to restart the server.
2. The method for upgrading the firmware of the PCIE driver card according to claim 1, characterized in that: The target node is a GPU node and / or an NVME node and / or a network node.
3. The method for upgrading the firmware of the PCIE driver card according to claim 1 or 2, characterized in that: When there is a firmware update task, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch, including: Determine whether there is a write operation in the storage space; If the storage space does not perform a write operation, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch; If the storage space is performing a write operation, a status monitoring process is started to monitor the write operation of the storage space; when the write operation is detected to be completed, the driver chip of the PCIE driver card reads the firmware to be updated from the storage space by controlling the signal switch.
4. A firmware upgrade device for a PCIE driver card, characterized in that: Applicable to PCIE driver cards with signal switches, used in baseboard management controllers, including: A firmware refresh module, used to refresh the firmware to be updated into the storage space of the PCIE driver card by controlling the signal switch; A firmware reading module, used for the driver chip of the PCIE driver card, when there is a firmware update task, controls the signal switch to read the firmware to be updated from the storage space by operating the driver chip register of the PCIE driver card; the driver chip also configures PCIE link parameters according to the firmware to be updated; The link training module is used to send a link retraining instruction to the central processing unit by using the driver chip when it is detected that the loading of the firmware to be updated is completed, and the BMC notifies the CPU unit to retrain the link by configuring the PCIE unit register of the driver chip, and the PCIE link enters the Recovery state, and the link is retrained to retrain the PCIE link based on the PCIE link parameters. The trained PCIE link uses the new configuration parameters to complete the firmware upgrade operation of the PCIE driver card; The resource extension module is used to, after using the driver chip to send a link retraining instruction to the central processor, the central processor connects to the PCIE resource pool through the driver chip based on the retrained PCIE link to expand the server PCIE resources; connects the target node to the PCIE interface of the PCIE driver card through a cable to achieve decoupling and interconnection of PCIE resources and server nodes based on the retrained PCIE link. During the upgrade process, the machine does not need to be removed from the shelf and the business end does not need to remove the business, no on-site operation is required, and there is no need to restart the server.
5. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the processor is used to implement the steps of the firmware upgrade method of the PCIE driver card as claimed in any one of claims 1 to 3 when executing the computer program stored in the memory.
6. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the firmware upgrade method of the PCIE driver card according to any one of claims 1 to 3 are implemented.
7. A firmware upgrade system for a PCIE driver card, characterized in that: Including baseboard management controller, PCIE driver card and central processing unit; The driver chip of the PCIE driver card is connected to the baseboard management controller and the signal switch respectively, and the driver chip and the baseboard management controller perform read and write operations on the storage space of the PCIE driver card by controlling the signal switch; The PCIE uplink port of the driver chip is connected to the central processor, and the downlink port is connected to the PCIE interface to form a PCIE link; The baseboard management controller is used to implement the steps of the firmware upgrade method of the PCIE driver card as described in any one of claims 1 to 3 when executing the computer program stored in the memory.
8. The firmware upgrade system for the PCIE driver card according to claim 7, characterized in that: The driving chip is connected to the baseboard management controller via I2C, so that the baseboard management controller operates the register of the driving chip via the I2C.
9. The firmware upgrade system for the PCIE driver card according to claim 7, characterized in that: The driver chip is connected to the signal switch via I2C; the signal switch is a 2-to-1 switching switch.
