CN114153477A - Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card - Google Patents
Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card Download PDFInfo
- Publication number
- CN114153477A CN114153477A CN202111276788.5A CN202111276788A CN114153477A CN 114153477 A CN114153477 A CN 114153477A CN 202111276788 A CN202111276788 A CN 202111276788A CN 114153477 A CN114153477 A CN 114153477A
- Authority
- CN
- China
- Prior art keywords
- pcie
- firmware
- card
- chip
- updated
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000002093 peripheral effect Effects 0.000 title abstract description 6
- 238000012545 processing Methods 0.000 claims abstract description 34
- 238000004590 computer program Methods 0.000 claims description 14
- 239000000758 substrate Substances 0.000 claims description 13
- 238000012544 monitoring process Methods 0.000 claims description 9
- 238000012549 training Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 15
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a firmware upgrading method, device and system of a PCIE (peripheral component interface express) driver card, electronic equipment and a readable storage medium. The method is suitable for upgrading the firmware of the PCIE drive card with the signal switch, and the baseboard management controller refreshes the firmware to be updated to the storage space of the PCIE drive card through controlling the signal switch. When a firmware updating task exists, a driving chip of the PCIE driving card reads the firmware to be updated from the storage space through the control signal switch; the drive chip also configures PCIE link parameters according to the firmware to be updated. When the BMC detects that the firmware to be updated is loaded completely, the driving chip is used for sending a link retraining instruction to the central processing unit so as to retrain the PCIE link based on the PCIE link parameter and complete the firmware upgrading operation of the PCIE driving card. The method and the device optimize the firmware upgrading operation of the PCIE drive card, and do not need field operation or service interruption.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for upgrading a firmware of a PCIE driver card, an electronic device, and a readable storage medium.
Background
With the continuous development of computer technology, the application of servers in various technical fields, such as internet to financial industry, mobile communication industry to educational fund science research, etc., is more and more extensive. With the development of the application range and the application scene of the server, the demand of the client on the server is higher and higher, and the PCIE (Peripheral component interconnect express) resources are also decoupled from the server and independently updated iteratively, and instead of being attached to a server product, a GPU (Graphics Processing Unit) node, an NVME (Non-Volatile Memory express) full flash Memory node, a network resource pool, and the like are generated, which forces the PCIE driver board to be born. The board firmware of the early PCIE driver board is updated frequently, and although the firmware can be updated, the updating operation is cumbersome and needs to be performed on site, or the service needs to be stopped first, so that the user experience is poor.
In the related art, a method shown in fig. 1 is used to upgrade firmware of a PCIE driver card, a PCIE uplink port is connected to a CPU (Central Processing Unit), a downlink port is connected to a PCIE interface, a BMC performs data communication with a driver chip through an I2C (Inter-Integrated Circuit), and a current product can only read simple information such as temperature. The driver chip firmware is present in an EEPROM (Electrically Erasable Programmable read only memory). The upgrading of the firmware depends on the board card contact pin, the firmware is connected with the driving chip through the board card contact pin, and then the upgrading and the maintenance of the firmware are carried out through a special tool of the driving chip. The pin of the board card needs to depend on field operation, namely the upgrading of the whole firmware depends on the field operation, the upgrading efficiency is low, the operability is poor, the time consumption of the upgrading process is long, and the firmware upgrading operation of batch machines cannot be completed in a short time. In addition, the upgrading process needs to be finished by dismounting the machine and restarting, the maintenance cost is high, and the user experience is poor. The upgrading needs the off-shelf service of the service end, and has a large influence on the service end.
In view of this, how to optimize the firmware upgrade operation of the PCIE driver card is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application provides a firmware upgrading method, device, system, electronic equipment and readable storage medium for a PCIE drive card, which optimizes the firmware upgrading operation of the PCIE drive card, and does not need field operation and interrupt service in the firmware upgrading process.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a method for upgrading a firmware of a PCIE driver card, which is applicable to a PCIE driver card having a signal switch, and the method is applied to a substrate management controller, and includes:
refreshing the firmware to be updated into the storage space of the PCIE drive card by controlling the signal switch; when a firmware updating task exists in a drive chip of the PCIE drive card, the drive chip reads the firmware to be updated from the storage space by controlling the signal switch; the drive chip also configures PCIE link parameters according to the firmware to be updated;
and when the firmware to be updated is detected to be loaded completely, sending a link retraining instruction to a central processing unit by using the driving chip so as to retrain the PCIE link based on the PCIE link parameter and complete the firmware upgrading operation of the PCIE driving card.
Optionally, after the sending the link retraining instruction to the central processing unit by using the driver chip, the method further includes:
and the central processing unit is connected with the PCIE resource pool through the driving chip based on the retrained PCIE link so as to expand the PCIE resources of the server.
Optionally, after the sending the link retraining instruction to the central processing unit by using the driver chip, the method further includes:
connecting a target node to a PCIE interface of the PCIE drive card through a cable so as to realize the decoupling and interconnection of PCIE resources and a server node based on the PCIE link after retraining; the target node is a GPU node and/or an NVME node and/or a network node.
Optionally, when a firmware update task exists in a drive chip of the PCIE drive card, reading the firmware to be updated from the storage space by controlling the signal switch, including:
judging whether the storage space has write operation or not;
if the storage space does not execute the write operation, a drive chip of the PCIE drive card reads the firmware to be updated from the storage space by controlling the signal switch;
if the storage space is executing the write operation, starting a state monitoring process for monitoring the write operation of the storage space; and when the write operation is detected to be finished, the drive chip of the PCIE drive card reads the firmware to be updated from the storage space by controlling the signal switch.
Another aspect of the present invention provides a firmware upgrade apparatus for a PCIE driver card, which is applicable to a PCIE driver card having a signal switch, where the method is applied to a substrate management controller, and includes:
the firmware refreshing module is used for refreshing the firmware to be updated into the storage space of the PCIE drive card by controlling the signal switch;
the firmware reading module is used for reading the firmware to be updated from the storage space by controlling the signal switch when a firmware updating task exists in a drive chip of the PCIE drive card; the drive chip also configures PCIE link parameters according to the firmware to be updated;
and the link training module is used for sending a link retraining instruction to a central processing unit by using the driving chip when the firmware to be updated is detected to be loaded completely, so as to retrain the PCIE link based on the PCIE link parameter and complete the firmware upgrading operation of the PCIE driving card.
The embodiment of the present invention further provides an electronic device, which includes a processor, and the processor is configured to implement the steps of the firmware upgrading method for the PCIE driver card as described in any one of the foregoing embodiments when executing the computer program stored in the memory.
An embodiment of the present invention further provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the method for upgrading a firmware of a PCIE driver card is implemented as in any one of the foregoing.
The embodiment of the invention finally provides a firmware upgrading system of the PCIE driving card, which comprises a substrate management controller, the PCIE driving card and a central processing unit;
the drive chip of the PCIE drive card is respectively connected with the substrate management controller and the signal switch, and the drive chip and the substrate management controller perform read-write operation on the storage space of the PCIE drive card through controlling the signal switch;
a PCIE uplink port of the driving chip is connected to the central processing unit, and a downlink port is connected to the PCIE interface to form a PCIE link;
the baseboard management controller is configured to implement the steps of the firmware upgrading method for the PCIE driver card as described in any one of the foregoing embodiments when executing the computer program stored in the memory.
Optionally, the driver chip is connected to the bmc through I2C, so that the bmc operates the register of the driver chip through I2C.
Optionally, the driving chip is connected to the signal switch through I2C; the signal switch is a 2-to-1 change-over switch.
The technical scheme provided by the application has the advantages that the BMC refreshes the firmware to be updated to the storage space of the PCIE drive card, reads the firmware to be updated and trains the PCIE link by operating the drive chip register, the firmware upgrading operation of the PCIE drive card is optimized, the field operation is not needed, the server restarting operation is not needed, the firmware upgrading efficiency is effectively improved, and the operability of firmware upgrading is improved. The firmware of the driving chip of the PCIE driving card can be upgraded remotely, a machine does not need to be off-shelf in the upgrading process, a service end does not need to be off-shelf in the upgrading process, the machine does not need to be restarted, almost no influence is caused on the service end, the maintenance cost is low, and the use experience of a user is promoted. The machine environment that same material number integrated circuit board can the adaptation can be more, can be unified by BMC upgrade firmware after the integrated circuit board is electrified, then put on the shelf and the operation business, need not again according to the parameter difference and go to modify integrated circuit board PN and manage and control to can accomplish the firmware upgrade operation of machine in batches in the short time.
In addition, the embodiment of the invention also provides a corresponding implementation device, a system, electronic equipment and a readable storage medium for the firmware upgrading method of the PCIE drive card, so that the method has higher practicability, and the device, the system, the electronic equipment and the readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of firmware upgrade of an exemplary application scenario in the related art according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a firmware upgrading method for a PCIE driver card according to an embodiment of the present invention;
fig. 3 is a structural diagram of a specific embodiment of a firmware upgrading apparatus for a PCIE driver card according to an embodiment of the present invention;
fig. 4 is a block diagram of an embodiment of an electronic device according to the present invention;
fig. 5 is a block diagram of an embodiment of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 2, fig. 2 is a schematic flow chart of a firmware upgrading method for a PCIE driver card according to an embodiment of the present invention, where the embodiment of the present invention may include the following:
s201: and the BMC refreshes the firmware to be updated into the storage space of the PCIE driving card through the control signal switch.
The firmware of the PCIE drive card is upgraded, and compared with the existing PCIE drive card, the PCIE drive card needs to be additionally provided with the signal switch, namely the firmware of the PCIE drive card with the signal switch is upgraded. Specifically, the firmware upgrading process of the entire PCIE driver card is controlled by the BMC. When the firmware of the PCIE driver card needs to be updated, the BMC refreshes the firmware to be updated into a storage space of the PCIE driver card through the control signal switch, where the storage space may be, for example, an EEPROM, that is, the firmware to be updated is refreshed into the EEPROM, and the EEPROM stores the latest firmware file.
S202: when a firmware updating task is detected, a driving chip of the PCIE driving card reads the firmware to be updated from the storage space through the control signal switch.
If a new firmware file appears in the memory space, such as an EEPROM, it indicates that a firmware update task can be executed, and when the firmware update task is executed, a trigger condition for the firmware update task may be preset, for example, whenever it is detected that the firmware file in the memory space is updated, the firmware update task is triggered to be executed. Or when a firmware updating instruction issued by the user through the BMC is received, the firmware updating task is triggered to be executed. The BMC reads the latest firmware of the storage space through the drive chip of the PCIE drive card and the control signal switch, and through the step, the drive chip obtains the current latest firmware and carries out firmware upgrading through a special tool. Since the firmware is updated, it is necessary to ensure that the PCIE link uses new configuration parameters in order to ensure that the PCIE link is available. Therefore, the drive chip can also configure the PCIE link parameters according to the acquired firmware to be updated.
S203: when detecting that the firmware to be updated is loaded completely, the BMC sends a link retraining instruction to the central processing unit by using the driving chip so as to retrain the PCIE link based on the PCIE link parameter and complete the firmware upgrading operation of the PCIE driving card.
After the drive chip reads the firmware to be updated from the storage space, the drive chip is loaded as a new configuration file, the training of the PCIE link is required, the BMC may configure the PCIE unit register of the drive chip to notify the CPU unit that the link needs to be trained again, the PCIE link may enter a "Recovery" state, and the link is retrained again, so that the trained PCIE link uses new configuration parameters.
In the technical scheme provided by the embodiment of the invention, the BMC refreshes the firmware to be updated into the storage space of the PCIE drive card, and reads the firmware to be updated and trains the PCIE link by operating the drive chip register by using the BMC, so that the firmware upgrading operation of the PCIE drive card is optimized without field operation or server restarting operation, the firmware upgrading efficiency is effectively improved, and the operability of firmware upgrading is improved. The firmware of the driving chip of the PCIE driving card can be upgraded remotely, a machine does not need to be off-shelf in the upgrading process, a service end does not need to be off-shelf in the upgrading process, the machine does not need to be restarted, almost no influence is caused on the service end, the maintenance cost is low, and the use experience of a user is promoted. The machine environment that same material number integrated circuit board can the adaptation can be more, can be unified by BMC upgrade firmware after the integrated circuit board is electrified, then put on the shelf and the operation business, need not again according to the parameter difference and go to modify integrated circuit board PN and manage and control to can accomplish the firmware upgrade operation of machine in batches in the short time.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as the logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 2 is only an exemplary manner, and does not represent that only the execution order is the order.
In the foregoing embodiment, how to execute step S202 is not limited, and an optional implementation manner of reading the firmware to be updated from the storage space through the control signal switch for the driver chip using the PCIE driver card in this embodiment may include the following steps:
judging whether the storage space has write operation or not;
if the storage space does not execute the write operation, a drive chip of the PCIE drive card reads the firmware to be updated from the storage space through a control signal switch;
if the storage space is executing the write operation, starting a state monitoring process for monitoring the write operation of the storage space; when the write operation is detected to be finished, namely the status monitoring process feeds back the end of the write operation, the drive chip of the PCIE drive card reads the firmware to be updated from the storage space through the control signal switch.
In this embodiment, in order to ensure the accuracy of 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/write operation on the storage space at the same time, that is, when the BMC refreshes the firmware to be updated in the storage space, the driver chip cannot read data from the storage space.
It can be understood that, the PCIE driver card is installed in the server to implement expansion of PCIE resources by the server, and accordingly, after the driver chip sends the link retraining instruction to the central processing unit, the method may further include:
and the central processing unit is connected with the PCIE resource pool through the driving chip based on the retrained PCIE link so as to expand the PCIE resources of the server.
The central processing unit CPU in this embodiment is a node of the server, 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 implement peripheral connection connected to the PCIE interface through the PCIE link. Furthermore, the target node can be connected to a PCIE interface of the PCIE driver card through a cable, so as to implement decoupling and interconnection of PCIE resources and the server node based on the retrained PCIE link; the target node is a GPU node and/or an NVME node and/or a network node.
The embodiment of the invention also provides a corresponding device for the firmware upgrading method of the PCIE drive card, thereby further ensuring that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. In the following, the firmware upgrading apparatus of a PCIE driver card provided in the embodiment of the present invention is introduced, and the firmware upgrading apparatus of a PCIE driver card described below and the firmware upgrading method of a PCIE driver card described above may be referred to correspondingly.
Based on the angle of the functional module, referring to fig. 3, fig. 3 is a structural diagram of a firmware upgrading device of a PCIE driver card according to an embodiment of the present invention in a specific implementation manner, where the device may include:
the PCIE driver card with the signal switch is applied to a substrate management controller and comprises:
the firmware refreshing module 301 is configured to refresh the firmware to be updated into the storage space of the PCIE driver card through the control signal switch;
a firmware reading module 302, configured to, when a firmware update task is detected, read a firmware to be updated from a storage space through a control signal switch by a driver chip of the PCIE driver card; the drive chip also configures PCIE link parameters according to the firmware to be updated;
the link training module 303 is configured to send a link retraining instruction to the central processing unit by using the driver chip when it is detected that the firmware to be updated is loaded, so as to retrain the PCIE link based on the PCIE link parameter, and complete firmware upgrade operation of the PCIE driver card.
Optionally, in some embodiments of this embodiment, the apparatus may include a resource expansion module, where after a link retraining instruction is sent to the central processing unit by using the driver chip, the central processing unit connects, based on the retrained PCIE link, the PCIE resource pool through the driver chip, so as to expand the PCIE resources of the server.
As an optional implementation manner of the foregoing embodiment, the resource extension module may be further configured to: connecting the target node to a PCIE interface of the PCIE drive card through a cable so as to realize the decoupling and interconnection of the PCIE resource and the server node based on the PCIE link after retraining; the target node is a GPU node and/or an NVME node and/or a network node.
Optionally, in other embodiments of this embodiment, the firmware reading module 302 may be further configured to: judging whether the storage space has write operation or not; if the storage space does not execute the write operation, a drive chip of the PCIE drive card reads the firmware to be updated from the storage space through a control signal switch; if the storage space is executing the write operation, starting a state monitoring process for monitoring the write operation of the storage space; when the write operation is detected to be finished, the drive chip of the PCIE drive card reads the firmware to be updated from the storage space through the control signal switch.
The functions of each functional module of the firmware upgrading device of the PCIE driver card according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention optimizes the firmware upgrading operation of the PCIE drive card, and does not need field operation or service interruption in the firmware upgrading process.
The above mentioned firmware upgrading apparatus of PCIE driver card is described from the perspective of a functional module, and further, the present application also provides an electronic device, which is described from the perspective of hardware. Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 4, the electronic device includes a memory 40 for storing a computer program; the processor 41 is configured to implement the steps of the firmware upgrading method for the PCIE driver card as mentioned in any one of the above embodiments when executing the computer program.
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, and the like. The processor 41 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a 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 that the display screen needs to display. In some embodiments, processor 41 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high speed random access memory as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. The memory 40 may in some embodiments be an internal storage unit of the electronic device, for example a hard disk of a server. The memory 40 may also be an external storage device of the electronic device in other embodiments, such as a plug-in hard disk provided on a server, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 40 may also include both an internal storage unit and an external storage device of the electronic device. The memory 40 can be used for storing application software installed in the electronic device and various data, such as: the code of the program that executes the vulnerability handling method, etc. 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 for storing the following computer program 401, wherein after the computer program is loaded and executed by the processor 41, the relevant steps of the firmware upgrading method for a PCIE driver card disclosed in any one of the foregoing embodiments can be implemented. In addition, the resources stored in the memory 40 may also include an operating system 402, data 403, and the like, and the storage manner may be a transient storage or a permanent storage. Operating system 402 may include, among other things, Windows, Unix, Linux, and the like. The data 403 may include, but is not limited to, data corresponding to a firmware upgrade result of the PCIE driver card, and the like.
In some embodiments, the electronic device may further include a display 42, an input/output interface 43, a communication interface 44, alternatively referred to as a network interface, a power supply 45, and a communication bus 46. The display 42 and the input/output interface 43, such as a Keyboard (Keyboard), belong to a user interface, and the optional user interface may also include a standard wired interface, a wireless interface, and the like. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, as appropriate, is used for displaying information processed in the electronic device and for displaying a visualized 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., typically used to establish a communication connection between an electronic device and other electronic devices. The communication bus 46 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is not intended to be limiting of the electronic device and may include more or fewer components than those shown, such as sensors 47, for example, to perform various functions.
The functions of the functional modules of the electronic device according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
Therefore, the embodiment of the invention optimizes the firmware upgrading operation of the PCIE drive card, and does not need field operation or service interruption in the firmware upgrading process.
It is understood that, if the firmware upgrading method of the PCIE driver card in the foregoing embodiment is implemented in the form of a software functional unit and is sold or used as a stand-alone product, the firmware upgrading method may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a multimedia card, a card type Memory (e.g., SD or DX Memory, etc.), a magnetic Memory, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, an embodiment of the present invention further provides a readable storage medium, which stores a computer program, where the computer program is executed by a processor, and the steps of the firmware upgrading method for a PCIE driver card according to any one of the above embodiments are provided.
An embodiment of the present invention further provides a firmware upgrade system for a PCIE driver card, referring to fig. 5, which may include:
the firmware upgrading system of the PCIE drive card can comprise a substrate management controller, the PCIE drive card and a central processing unit. The central processor is a computing node of the server. The driving chip of the PCIE driving card is respectively connected with the substrate management controller and the signal switch, and the driving chip and the substrate management controller perform read-write operation on the storage space of the PCIE driving card through controlling the signal switch; a PCIE uplink port of the driving chip is connected to the central processing unit, and a downlink port is connected to the PCIE interface to form a PCIE link; the baseboard management controller is used for implementing the steps of the firmware upgrading method of any one of the PCIE driver cards when executing the computer program stored in the memory.
As can be seen from fig. 5, the whole system can complete firmware upgrade through 4 identification paths shown in the figure, where the identification path (i) in the figure indicates that the driver chip can read the firmware of the driver chip through the control signal switch, so that the driver chip configures PCIE link parameters of the driver chip based on the read latest firmware. The second labeled path in the figure is a drive chip firmware upgrade path realized in this embodiment, and the BMC refreshes the EEPROM by turning on the signal switch, and writes the latest firmware of the drive chip to the EEPROM. The signal switch can be a 2-to-1 switching switch, so that only one of the BMC and the driving chip can perform read-write operation on the EEPROM. The marked path in the figure indicates that the BMC configures a driver chip register, which is also an implementation manner of this embodiment that does not need to perform a server restart operation. The BMC firstly reloads the EEPROM firmware by configuring a drive chip firmware loading unit to read the new firmware. When the firmware loading is completed, the BMC notifies the CPU unit that the link needs to be newly trained through configuring a PCIE unit register of the driving chip, the PCIE link enters a Recovery state, and the link is retrained, so that the trained PCIE link uses new configuration parameters. In addition, the driver chip is already loaded with a new configuration file. In the figure, a path is identified, a PCIE link, a driver chip plays a role of "start-up and start-down" of a PCIE signal in a PCIE driver card, and a CPU PCIE resource is connected to a PCIE resource pool through the PCIE driver card to expand the PCIE resource of the CPU.
In this embodiment, the driver chip may be connected to the bmc through I2C, so that the bmc operates the registers of the driver chip through I2C. The driving chip is connected with the signal switch through I2C; the signal switch is a 2-to-1 change-over switch.
The functions of each functional module of the firmware upgrading system of the PCIE driver card according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention optimizes the firmware upgrading operation of the PCIE drive card, and does not need field operation or service interruption in the firmware upgrading process.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. For hardware including devices and electronic equipment disclosed by the embodiment, the description is relatively simple because the hardware includes the devices and the electronic equipment correspond to the method disclosed by the embodiment, and the relevant points can be obtained by referring to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The method, the apparatus, the system, the electronic device and the readable storage medium for upgrading the firmware of the PCIE driver card provided in the present application are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.
Claims (10)
1. A firmware upgrading method of a PCIE driver card is characterized in that the method is suitable for the PCIE driver card with a signal switch, is applied to a substrate management controller and comprises the following steps:
the firmware to be updated is refreshed into the storage space of the PCIE drive card by controlling the signal switch, so that the firmware to be updated is read from the storage space by controlling the signal switch when a firmware updating task exists in a drive chip of the PCIE drive card; the drive chip also configures PCIE link parameters according to the firmware to be updated;
and when the firmware to be updated is detected to be loaded completely, sending a link retraining instruction to a central processing unit by using the driving chip so as to retrain the PCIE link based on the PCIE link parameter and complete the firmware upgrading operation of the PCIE driving card.
2. The method of upgrading firmware of a PCIE driver card according to claim 1, further comprising, after sending a link retraining instruction to a central processing unit by using the driver chip:
and the central processing unit is connected with the PCIE resource pool through the driving chip based on the retrained PCIE link so as to expand the PCIE resources of the server.
3. The method of upgrading firmware of a PCIE driver card according to claim 2, further comprising, after sending a link retraining instruction to a central processing unit by using the driver chip:
connecting a target node to a PCIE interface of the PCIE drive card through a cable so as to realize the decoupling and interconnection of PCIE resources and a server node based on the PCIE link after retraining; the target node is a GPU node and/or an NVME node and/or a network node.
4. The method according to any one of claims 1 to 3, wherein when a firmware update task exists in a driver chip of the PCIE driver card, the method for reading the firmware to be updated from the storage space by controlling the signal switch includes:
judging whether the storage space has write operation or not;
if the storage space does not execute the write operation, a drive chip of the PCIE drive card reads the firmware to be updated from the storage space by controlling the signal switch;
if the storage space is executing the write operation, starting a state monitoring process for monitoring the write operation of the storage space; and when the write operation is detected to be finished, the drive chip of the PCIE drive card reads the firmware to be updated from the storage space by controlling the signal switch.
5. The utility model provides a firmware upgrading device of PCIE driver card which characterized in that is applicable to the PCIE driver card who has signal switch, is applied to the base plate management controller, includes:
the firmware refreshing module is used for refreshing the firmware to be updated into the storage space of the PCIE drive card by controlling the signal switch;
the firmware reading module is used for reading the firmware to be updated from the storage space by controlling the signal switch when a firmware updating task exists in a drive chip of the PCIE drive card; the drive chip also configures PCIE link parameters according to the firmware to be updated;
and the link training module is used for sending a link retraining instruction to a central processing unit by using the driving chip when the firmware to be updated is detected to be loaded completely, so as to retrain the PCIE link based on the PCIE link parameter and complete the firmware upgrading operation of the PCIE driving card.
6. An electronic device, comprising a processor and a memory, wherein the processor is configured to implement the steps of the firmware upgrade method for a PCIE driver card according to any one of claims 1 to 4 when executing a computer program stored in the memory.
7. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program, which when executed by a processor implements the steps of the firmware upgrade method for PCIE driver card according to any one of claims 1 to 4.
8. A firmware upgrading system of a PCIE driver card is characterized by comprising a substrate management controller, the PCIE driver card and a central processing unit;
the drive chip of the PCIE drive card is respectively connected with the substrate management controller and the signal switch, and the drive chip and the substrate management controller perform read-write operation on the storage space of the PCIE drive card through controlling the signal switch;
a PCIE uplink port of the driving chip is connected to the central processing unit, and a downlink port is connected to the PCIE interface to form a PCIE link;
the baseboard management controller is used for implementing the steps of the firmware upgrading method of the PCIE driver card according to any one of claims 1 to 4 when executing the computer program stored in the memory.
9. The firmware upgrade system of a PCIE driver card according to claim 8, wherein the driver chip is connected to the bmc through I2C, so that the bmc operates the register of the driver chip through I2C.
10. The firmware upgrade system of a PCIE driver card according to claim 8, wherein the driver chip is connected to the signal switch through I2C; the signal switch is a 2-to-1 change-over switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111276788.5A CN114153477A (en) | 2021-10-29 | 2021-10-29 | Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111276788.5A CN114153477A (en) | 2021-10-29 | 2021-10-29 | Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114153477A true CN114153477A (en) | 2022-03-08 |
Family
ID=80458937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111276788.5A Pending CN114153477A (en) | 2021-10-29 | 2021-10-29 | Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114153477A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115422110A (en) * | 2022-07-27 | 2022-12-02 | 超聚变数字技术有限公司 | Electronic equipment and port configuration method of PCIE Switch chip |
WO2023173718A1 (en) * | 2022-03-17 | 2023-09-21 | 苏州浪潮智能科技有限公司 | Communication link update method and apparatus, and related device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR19990025017A (en) * | 1997-09-09 | 1999-04-06 | 딩 얀 양 | Method and device for upgrading firmware code for optical disk drive through ATA / IDE interface |
CN101075218A (en) * | 2007-07-18 | 2007-11-21 | 中兴通讯股份有限公司 | System for controlling data storage |
US20170090948A1 (en) * | 2015-09-25 | 2017-03-30 | Ocz Storage Solutions, Inc. | Host-safe firmware upgrade of a pci express device |
CN107783920A (en) * | 2016-08-25 | 2018-03-09 | 联想企业解决方案(新加坡)有限公司 | System, method and computer program for communicating between a software driver and a baseboard management controller |
CN107832087A (en) * | 2016-09-14 | 2018-03-23 | 三星电子株式会社 | Self-configuring baseboard management controller(BMC) |
CN108363583A (en) * | 2018-02-05 | 2018-08-03 | 华勤通讯技术有限公司 | A kind of chip update method, equipment and storage medium based on BMC |
US20190108347A1 (en) * | 2018-12-07 | 2019-04-11 | Intel Corporation | Techniques for processor boot-up |
CN110298174A (en) * | 2019-07-03 | 2019-10-01 | 西安易朴通讯技术有限公司 | Firmware management method and firmware management system |
US20200218527A1 (en) * | 2019-01-08 | 2020-07-09 | Dell Products L.P. | Component firmware update from baseboard management controller |
CN112925569A (en) * | 2021-02-24 | 2021-06-08 | 深圳市信锐网科技术有限公司 | Firmware data processing method, device, equipment and storage medium |
-
2021
- 2021-10-29 CN CN202111276788.5A patent/CN114153477A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR19990025017A (en) * | 1997-09-09 | 1999-04-06 | 딩 얀 양 | Method and device for upgrading firmware code for optical disk drive through ATA / IDE interface |
CN101075218A (en) * | 2007-07-18 | 2007-11-21 | 中兴通讯股份有限公司 | System for controlling data storage |
US20170090948A1 (en) * | 2015-09-25 | 2017-03-30 | Ocz Storage Solutions, Inc. | Host-safe firmware upgrade of a pci express device |
CN107783920A (en) * | 2016-08-25 | 2018-03-09 | 联想企业解决方案(新加坡)有限公司 | System, method and computer program for communicating between a software driver and a baseboard management controller |
CN107832087A (en) * | 2016-09-14 | 2018-03-23 | 三星电子株式会社 | Self-configuring baseboard management controller(BMC) |
CN108363583A (en) * | 2018-02-05 | 2018-08-03 | 华勤通讯技术有限公司 | A kind of chip update method, equipment and storage medium based on BMC |
US20190108347A1 (en) * | 2018-12-07 | 2019-04-11 | Intel Corporation | Techniques for processor boot-up |
US20200218527A1 (en) * | 2019-01-08 | 2020-07-09 | Dell Products L.P. | Component firmware update from baseboard management controller |
CN110298174A (en) * | 2019-07-03 | 2019-10-01 | 西安易朴通讯技术有限公司 | Firmware management method and firmware management system |
CN112925569A (en) * | 2021-02-24 | 2021-06-08 | 深圳市信锐网科技术有限公司 | Firmware data processing method, device, equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023173718A1 (en) * | 2022-03-17 | 2023-09-21 | 苏州浪潮智能科技有限公司 | Communication link update method and apparatus, and related device |
CN115422110A (en) * | 2022-07-27 | 2022-12-02 | 超聚变数字技术有限公司 | Electronic equipment and port configuration method of PCIE Switch chip |
CN115422110B (en) * | 2022-07-27 | 2023-09-01 | 超聚变数字技术有限公司 | Port configuration method of electronic equipment and PCIE Switch chip |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107729083B (en) | Method for loading driver and embedded device | |
US9110843B2 (en) | Rack and method thereof for simultaneously updating basic input output systems | |
CN105718281B (en) | A kind of touch screen firmware upgrade method and device | |
CN114153477A (en) | Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card | |
CN112506745B (en) | Memory temperature reading method and device and computer readable storage medium | |
CN101714091A (en) | Methods and systems to display platform graphics during operating system initialization | |
CN114866424B (en) | Server management method, device, system, electronic equipment and readable storage medium | |
CN114201197A (en) | Firmware upgrading method and device, electronic equipment and readable storage medium | |
CN114138644A (en) | BMC (baseboard management controller) debugging method, monitoring method, system, device, equipment and medium | |
CN113760332A (en) | Software upgrading method and electronic equipment | |
CN108121560A (en) | Difference bag upgrade method, device, terminal and computer readable storage medium | |
CN113867743A (en) | Network operating system loading burning method and device, electronic equipment and storage medium | |
CN110515671A (en) | Initial method, apparatus for initializing, terminal device and readable storage medium storing program for executing | |
CN111475175A (en) | Method, device and medium for installing and guiding operation system based on ARM server | |
CN111694604A (en) | Method, device and equipment for installing drivers in batches and machine-readable storage medium | |
CN113434467B (en) | Network file transmission method, device and computer readable storage medium | |
CN103440146A (en) | BIOS updating method based on cloud storage | |
CN113849230A (en) | Server starting method and device, electronic equipment and readable storage medium | |
CN110908644B (en) | Configuration method and device of state node, computer equipment and storage medium | |
CN111752623B (en) | Display configuration method, device, electronic equipment and readable storage medium | |
CN106484442B (en) | Server system and method for updating startup mapping file | |
CN113849229A (en) | Server starting method and device, electronic equipment and readable storage medium | |
CN113805826B (en) | Domestic platform-based integrated display and single display switching localization method | |
CN110888689B (en) | Touch screen drive loading method, storage medium and terminal equipment | |
CN115145381A (en) | Method, system, storage medium and equipment for remotely resetting BMC chip |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |