PCIE switch configuration management method and device
The UEFI firmware enumerates and loads Option ROM firmware in PCIE system, and solves the problem that traditional PCIe switch configuration management relies on separate hardware and operating systems, realizing easy maintenance, low cost and high scalability configuration management.
Patent Information
- Application Number
- CN202410935927.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-12
AI Technical Summary
The configuration management software of traditional PCIe switches relies on separate computer hardware and operating systems, resulting in maintenance difficulties and high system costs.
Enumerate the switches on the PCIe bus in the PCIE system through UEFI firmware, obtain the startup parameters of the Option ROM firmware, and load and execute the Option ROM firmware to realize the configuration management of the PCIe switch, avoiding dependence on separate PCs and operating systems .
It realizes easy maintenance and low-cost configuration management of PCIe switches, has good scalability and portability, and complies with UEFI protocol specifications.
Smart Images

Figure CN118939335A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of embedded software design, and in particular to a PCIE switch configuration management method and device. Background Art
[0002] In the current computing architecture, PCIE switch configuration management is a key link to ensure efficient data transmission and system resource optimization. Traditional PCIe switch configuration management software is usually deployed on a standalone personal computer (PC) platform, through such as I 2 C (Inter-Integrated Circuit, integrated circuit bus) or directly communicate with the switch through the PCIe interface to implement switch configuration and monitoring operations. Although this configuration method is technically feasible, the operation of the PCIe switch configuration management software depends on a separate set of computer hardware and operating system version, which has the disadvantages of difficult maintenance and high system cost.
[0003] Therefore, it is necessary to propose a PCIE switch configuration management method to solve at least one of the above technical problems. Summary of the invention
[0004] The embodiments of the present disclosure provide a PCIE switch configuration management method and device.
[0005] In a first aspect, the present disclosure provides a PCIE switch configuration management method, which is applied to a PCIE system, wherein the PCIE system includes at least one PCIE switch and a first memory, UEFI firmware is deployed in the first memory, at least one of the PCIE switches includes a second memory, and Option ROM firmware is deployed in the second memory, the method comprising:
[0006] The UEFI firmware enumerates each PCIE switch on the PCIE bus to obtain the PCIE switch including the Option ROM firmware;
[0007] The UEFI firmware obtains startup parameters of the Option ROM firmware in the PCIE switch including the Option ROM firmware;
[0008] The UEFI firmware loads and executes the Option ROM firmware according to the startup parameters of the Option ROM firmware;
[0009] The UEFI firmware performs configuration management on the PCIE switch according to the execution result of the Option ROM firmware.
[0010] In some optional implementations, the startup parameters of the Option ROM firmware include: whether the Option ROM firmware is located on the virtual side or the link side, the content size of the Option ROM firmware, the starting offset address of the Option ROM firmware, and the SPI interface clock frequency for loading the Option ROM firmware.
[0011] In some optional implementations, the UEFI firmware enumerates each PCIE switch on the PCIE bus to obtain the PCIE switch including the Option ROM firmware, including:
[0012] The UEFI firmware enumerates the configuration space of each of the PCIE switches on the PCIE bus, where the configuration space indicates whether the PCIE switch includes the Option ROM firmware;
[0013] The UEFI firmware obtains the PCIE switch including the Option ROM firmware according to the configuration space of each of the PCIE switches.
[0014] In some optional implementations, the UEFI firmware loads and executes the Option ROM firmware according to the startup parameters of the Option ROM firmware, including:
[0015] The UEFI firmware determines that the Option ROM firmware is located on a virtual side or a link side;
[0016] The UEFI firmware allocates memory according to the content size of the Option ROM firmware; the UEFI firmware loads the Option ROM firmware into the memory and executes the Option ROM firmware according to the starting offset address of the Option ROM firmware and the SPI interface clock frequency.
[0017] In a second aspect, the present disclosure provides a PCIE system, the PCIE system includes at least one PCIE switch and a first memory, UEFI firmware is deployed in the first memory, at least one of the PCIE switches includes a second memory, Option ROM firmware is deployed in the second memory, wherein,
[0018] The UEFI firmware is configured to enumerate each PCIE switch on the PCIE bus to obtain the PCIE switch including the OptionROM firmware;
[0019] The UEFI firmware is further configured to obtain a startup parameter of the Option ROM firmware in the PCIE switch including the Option ROM firmware;
[0020] The UEFI firmware is further configured to load and execute the Option ROM firmware according to the startup parameters of the Option ROM firmware;
[0021] The UEFI firmware is further configured to perform configuration management on the PCIE switch according to the execution result of the Option ROM firmware.
[0022] The PCIE switch configuration management method and device provided by the embodiment of the present disclosure are applied to a PCIE system, wherein the PCIE system includes at least one PCIE switch and a first memory, UEFI (Unified Extensible Firmware Interface) firmware is deployed in the first memory, at least one of the PCIE switches includes a second memory, and Option ROM (Optional Read-Only Memory) firmware is deployed in the second memory, first, the UEFI firmware enumerates each PCIE switch on the PCIE bus to obtain a PCIE switch including Option ROM firmware, then, the UEFI firmware obtains the startup parameters of the Option ROM firmware in the PCIE switch including the Option ROM firmware, further, the UEFI firmware loads and executes the Option ROM firmware according to the startup parameters of the Option ROM firmware, and finally, the UEFI firmware performs configuration management on the PCIE switch according to the execution result of the Option ROM firmware. The PCIE switch configuration management method and device provided by the present disclosure do not rely on a separate PC and operating system, can load and execute the Option ROM firmware through the UEFI firmware, have the advantages of easy maintenance and low cost, and configure and manage the PCIE switch through the Option ROM firmware, comply with the UEFI protocol specification, and have good extensibility and portability. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Other features, objects and advantages of the present disclosure will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the drawings:
[0024] Figure 1 is a system architecture diagram of an embodiment to which the PCIE switch configuration management method disclosed in the present invention can be applied;
[0025] Figure 2is a flow chart of an embodiment of a PCIE switch configuration management method according to the present disclosure;
[0026] Figure 3 It is a structural diagram of an embodiment of a PCIE system device according to the present disclosure. DETAILED DESCRIPTION
[0027] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0029] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the PCIE switch configuration management method and apparatus of the present disclosure can be applied.
[0030] like Figure 1 As shown, the system architecture 100 may include PCIE switches 101, 102, a first memory 103, PCIE terminal devices 104, 105, and a network 106. The PCIE switches 101, 102 are connected to the PCIE terminal devices 104, 105 by wired or wireless means to achieve data interaction. The network 106 is used to provide a medium for a communication link between the terminal devices 104, 105 and the PCIE switches 101, 102. The network 106 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0031] PCIE terminal devices 104 and 105 can be hardware or software. When terminal devices 102 and 103 are hardware, they can be various electronic devices with microphones and speakers, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Dynamic Image Experts Compression Standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, Dynamic Image Experts Compression Standard Audio Layer 4), portable computers and desktop computers, etc. When PCIE terminal devices 104 and 105 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, obtaining resource application behavior information of the target user in each first historical sub-period in the first historical period), or it can be implemented as a single software or software module. No specific limitation is made here.
[0032] The first memory 103 may be a non-volatile memory, and the UEFI firmware is deployed in the first memory. When the PCIE system is powered on, the UEFI firmware will enumerate and identify all PCIE devices connected to the PCIE system, including PCIE switches and PCIE terminal devices.
[0033] In some cases, the PCIE switch configuration management method provided by the present disclosure may be executed by UEFI firmware deployed on the first memory 103. For example, the step of "enumerating each PCIE switch on the PCIE bus to obtain the PCIE switch including the Option ROM firmware" may be executed by the UEFI firmware 103.
[0034] It should be understood that Figure 1 The number of PCIE switches, first memories and PCIE terminal devices in the embodiment is only for illustration. According to the implementation requirements, any number of PCIE switches, first memories and PCIE terminal devices may be provided.
[0035] Continue to refer Figure 2 , Figure 2 A flowchart 200 of an embodiment of a PCIE switch configuration management method according to the present disclosure is shown. Figure 2 The PCIE switch configuration management method shown can be applied to Figure 1 The PCIE system shown in . The process 200 includes the following steps:
[0036] Step 201: UEFI firmware enumerates each PCIE switch on the PCIE bus to obtain a PCIE switch including Option ROM firmware.
[0037] In this embodiment, the PCIE system includes at least one PCIE switch and a first memory, the UEFI firmware is deployed in the first memory, at least one of the PCIE switches includes a second memory, and the Option ROM firmware is deployed in the second memory.
[0038] Here, the first memory may refer to a non-volatile memory located on the computer motherboard, usually a flash memory, which is specifically used to deploy UEFI firmware and other system-related startup information. The second memory may refer to the external expansion memory of some PCIe switches, for example, it may be an SPI EEPROM (Serial Peripheral Interface Electrically Erasable Programmable Read-Only Memory), and the Option ROM firmware is deployed in the second memory. The Option ROM firmware may include the initialization code and driver of the PCIE switch, which is used to configure and manage the PCIE switch.
[0039] Here, Option ROM firmware follows the UEFI firmware protocol, that is, Option ROM firmware can use UEFI to provide more functions and services, Option ROM firmware can be written in C language, which is easier to write and debug, and OptionRom firmware can be compiled and converted using the standard tools provided by UEFI, which makes development more convenient.
[0040] Specifically, the Option Rom firmware can be burned into the external SPI (Serial Peripheral Interface) memory of the PCIE switch through a memory burner, wherein:
[0041] For example, an EEPROM (Electrically Erasable Programmable Read-Only Memory) writer may be used to write the Option Rom firmware into an external SPI EEPROM of a PCIE switch.
[0042] The process of making Option Rom firmware includes: first, writing Option Rom firmware source code, then compiling the Option Rom firmware source code of the PCIE switch chip through the Build tool provided by the EDK II open source software, and calling the corresponding tool chain to convert the compiled source code into Option Rom firmware. Then, the Option Rom firmware can be burned into the external SPI EEPROM of the PCIE switch through the memory burner, so that the UEFI firmware can load and execute the Option Rom firmware in the subsequent process.
[0043] The PCIE bus includes at least one switch, but not every PCIE switch necessarily includes the second memory, that is, not every PCIE switch necessarily includes Option Rom firmware.
[0044] Therefore, the UEFI firmware can find the PCIE switch including the Option Rom firmware by enumerating each PCIE switch on the PCIE bus.
[0045] In some optional implementations, when the PCIE system is powered on and started, first, the UEFI firmware enumerates the configuration space of each PCIE switch on the PCIE bus. The configuration space of the PCIE switch indicates whether the PCIE switch includes Option Rom firmware. Then, the UEFI firmware obtains the PCIE switch including the Option Rom firmware according to the configuration space of each PCIE switch.
[0046] Here, the UEFI firmware will traverse all PCIE switches on the PCIE bus and read the configuration space of each PCIE switch. There is a register in the configuration space of each PCIE switch, wherein the register stores configuration information for describing the Option Rom firmware, and the configuration information indicates whether there is Option Rom firmware in the PCIE switch. Here, the register is usually an extended ROM base address register, which is used to determine whether the PCIE switch has an additional Option ROM firmware. When there is a valid extended ROM address in the register, it indicates that the PCIE switch contains Option ROM firmware. Therefore, the UEFI firmware can obtain the PCIE switch with Option Rom firmware based on the configuration information in the configuration space of each PCIE switch.
[0047] Step 202: The UEFI firmware obtains startup parameters of the Option Rom firmware in the PCIE switch including the Option Rom firmware.
[0048] For a PCIE switch with Option Rom firmware, the UEFI firmware obtains startup parameters of the Option Rom firmware in the corresponding PCIE switch.
[0049] Here, the startup parameters of the Option Rom firmware may be manually preset and stored in the second memory of the PCIE switch.
[0050] The second memory includes startup parameters of the Option ROM firmware and the Option ROM firmware, and the startup parameters of the Option ROM firmware and the Option ROM firmware are respectively located in different address spaces of the second memory. For example, the startup parameters can be located in the address space of 0 to 4KB of the second memory, and the Option ROM firmware is located in the address space of 5 to 32KB.
[0051] In some optional implementations, the startup parameters of the Option Rom firmware may include whether the optional Option Rom firmware is located on the virtual side or the link side, the content size of the Option ROM firmware, the starting offset address of the Option ROM firmware, and the SPI interface clock frequency for loading the Option ROM firmware.
[0052] The Option ROM firmware being located on the virtual side or the link side means that the Option ROM firmware can be located on the virtual side or the link side. The virtual side uses the device in the virtual environment created by the virtual machine manager. In the virtualized environment, the Option ROM firmware can be integrated into the simulation of the virtual device, so that the virtual machine can access these virtualized PCIe switches like accessing physical devices. The link side usually refers to the context of physical hardware, that is, the PCIe switch actually connected to the motherboard. In physical hardware, the Option ROM firmware is part of the PCIE switch and is stored in the secondary memory of the device itself.
[0053] The content size of the Option ROM firmware may refer to the total number of bytes of Option ROM firmware data.
[0054] The starting offset address of the Option ROM firmware may refer to the starting offset address of the Option ROM firmware in the memory of the PCIe switch.
[0055] The SPI interface is usually used for communication between the PCIE switch and the UEFI firmware. A higher SPI interface clock frequency can speed up the loading of the Option ROM firmware by the UEFI firmware.
[0056] Step 203: The UEFI firmware loads and executes the Option ROM firmware according to the startup parameters of the Option ROM firmware.
[0057] In some optional implementations, first, the UEFI firmware determines that the Option ROM firmware is located on the virtual side or the link side. After determining that the Option ROM firmware is located on the virtual side or the link side, the UEFI firmware allocates memory according to the content size of the Option ROM firmware. Then, the UEFI firmware loads the Option ROM firmware into the memory and executes the Option ROM firmware according to the starting offset address of the Option ROM firmware and the SPI interface clock frequency.
[0058] After the Option ROM firmware is loaded into memory, the UEFI firmware creates a secure execution environment and calls the entry point function of the Option ROM firmware to start executing the code in the Option ROM firmware.
[0059] Step 204: The UEFI firmware performs configuration management on the PCIE switch according to the execution result of the Option ROM firmware.
[0060] The UEFI firmware correctly configures and manages the PCIE switch according to the execution results of the Option ROM firmware to ensure that the PCIE switch can work normally.
[0061] The PCIE switch configuration management method provided by the embodiment of the present disclosure is applied to a PCIE system, wherein the PCIE system includes at least one PCIE switch and a first memory, wherein UEFI (Unified Extensible Firmware Interface) firmware is deployed in the first memory, wherein at least one of the PCIE switches includes a second memory, wherein Option ROM (Optional Read-Only Memory) firmware is deployed in the second memory, wherein first, the UEFI firmware enumerates each PCIE switch on the PCIE bus to obtain a PCIE switch including Option ROM firmware, and then, the UEFI firmware obtains the startup parameters of the Option ROM firmware in the PCIE switch including the Option ROM firmware, and further, the UEFI firmware loads and executes the Option ROM firmware according to the startup parameters of the Option ROM firmware, and finally, the UEFI firmware performs configuration management on the PCIE switch according to the execution result of the Option ROM firmware. The PCIE switch configuration management method and device provided by the present disclosure do not rely on a separate PC and an operating system, and can load and execute the Option ROM firmware through the UEFI firmware, and has the advantages of easy maintenance and low cost, and performs configuration management on the PCIE switch through the Option ROM firmware, which complies with the UEFI protocol specification and has good extensibility and portability.
[0062] Further references Figure 3 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a PCIE switch configuration management device. Figure 2 Corresponding to the method embodiment shown, the apparatus can be specifically applied to various terminal devices.
[0063] like Figure 3 As shown, the network resource allocation device of this embodiment is applied to a PCIE system, the PCIE system includes at least one PCIE switch and a first memory, the UEFI firmware is deployed in the first memory, the at least one PCIE switch includes a second memory, and the Option ROM firmware is deployed in the second memory, wherein,
[0064] The UEFI firmware is configured to enumerate each PCIE switch on the PCIE bus to obtain a PCIE switch including an Option ROM firmware;
[0065] The UEFI firmware is further configured to obtain a startup parameter of the Option ROM firmware in the PCIE switch including the Option ROM firmware;
[0066] The UEFI firmware is further configured to load and execute the OptionROM firmware according to the boot parameters of the OptionROM firmware;
[0067] The UEFI firmware is further configured to perform configuration management on the PCIE switch according to the execution result of the Option ROM firmware.
[0068] like Figure 3 As shown, a network resource allocation device of this embodiment is applied to UEFI firmware, and the device includes a PCIE switch acquisition unit 301, a startup parameter acquisition unit 302, an execution unit 303 and a configuration management unit 304.
[0069] The PCIE switch acquisition unit 301 enumerates each PCIE switch on the PCIE bus to obtain a PCIE switch including OptionROM firmware;
[0070] A startup parameter acquisition unit 302 acquires startup parameters of Option ROM firmware in a PCIE switch including Option ROM firmware;
[0071] An execution unit 303, configured to load and execute the Option ROM firmware according to the startup parameters of the Option ROM firmware;
[0072] The configuration management unit 304 is used to perform configuration management on the PCIE switch according to the execution result of the Option ROM firmware.
[0073] In some optional implementations, the startup parameters of the Option ROM firmware include: whether the Option ROM firmware is located on the virtual side or the link side, the content size of the Option ROM firmware, the starting offset address of the Option ROM firmware, and the SPI interface clock frequency for loading the optional read-only memory firmware.
[0074] In some optional implementations, the PCIE switch acquisition unit 301 is further configured to:
[0075] The UEFI firmware enumerates the configuration space of each PCIE switch on the PCIE bus, and the configuration space indicates whether the PCIE switch includes Option ROM firmware;
[0076] The UEFI firmware obtains the PCIE switch including the Option ROM firmware according to the configuration space of each PCIE switch.
[0077] In some optional implementations, the execution unit 303 is further configured to:
[0078] The UEFI firmware determines whether the Option ROM firmware is located on the virtual side or the link side;
[0079] UEFI firmware allocates memory based on the size of Option ROM firmware content;
[0080] The UEFI firmware loads the Option ROM firmware into the memory and executes the Option ROM firmware according to the starting offset address of the Option ROM firmware and the SPI interface clock frequency.
[0081] It should be noted that the implementation details and technical effects of each unit in the network resource allocation device provided in the embodiments of the present disclosure can be referred to the description of other embodiments in the present disclosure, and will not be repeated here.
[0082] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a program code for executing the method shown in the flowchart.
[0083] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0084] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0085] The computer readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device implements the following Figure 3 The illustrated embodiment and its optional implementation manners illustrate a method for sharing a cache in a multi-port switching device.
[0086] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0087] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0088] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, an acquisition unit may also be described as a "unit for acquiring configuration information".
[0089] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
Claims
1. A PCIE switch configuration management method, characterized in that: Applied to a PCIE system, the PCIE system includes at least one PCIE switch and a first memory, UEFI firmware is deployed in the first memory, at least one of the PCIE switches includes a second memory, Option ROM firmware is deployed in the second memory, and the method includes: The UEFI firmware enumerates each PCIE switch on the PCIE bus to obtain the PCIE switch including the Option ROM firmware; The UEFI firmware obtains startup parameters of the Option ROM firmware in the PCIE switch including the Option ROM firmware; The UEFI firmware loads and executes the Option ROM firmware according to the startup parameters of the Option ROM firmware; The UEFI firmware performs configuration management on the PCIE switch according to the execution result of the Option ROM firmware.
2. The method according to claim 1, characterized in that The startup parameters of the Option ROM firmware include: whether the Option ROM firmware is located on the virtual side or the link side, the content size of the Option ROM firmware, the starting offset address of the Option ROM firmware, and the SPI interface clock frequency for loading the Option ROM firmware.
3. The method according to claim 1, characterized in that The UEFI firmware enumerates each PCIE switch on the PCIE bus to obtain the PCIE switch including the Option ROM firmware, including: The UEFI firmware enumerates the configuration space of each of the PCIE switches on the PCIE bus, where the configuration space indicates whether the PCIE switch includes the Option ROM firmware; The UEFI firmware obtains the PCIE switch including the Option ROM firmware according to the configuration space of each of the PCIE switches.
4. The method according to claim 2, characterized in that: The UEFI firmware loads and executes the Option ROM firmware according to the startup parameters of the Option ROM firmware, including: The UEFI firmware determines that the Option ROM firmware is located on a virtual side or a link side; The UEFI firmware allocates memory according to the content size of the Option ROM firmware; The UEFI firmware loads the Option ROM firmware into a memory and executes the Option ROM firmware according to the starting offset address of the Option ROM firmware and the SPI interface clock frequency.
5. A PCIE system, characterized in that: The PCIE system includes at least one PCIE switch and a first memory, UEFI firmware is deployed in the first memory, at least one of the PCIE switches includes a second memory, Option ROM firmware is deployed in the second memory, wherein, The UEFI firmware is configured to enumerate each PCIE switch on the PCIE bus to obtain the PCIE switch including the Option ROM firmware; The UEFI firmware is further configured to obtain a startup parameter of the Option ROM firmware in the PCIE switch including the Option ROM firmware; The UEFI firmware is further configured to load and execute the Option ROM firmware according to the startup parameters of the Option ROM firmware; The UEFI firmware is further configured to perform configuration management on the PCIE switch according to the execution result of the Option ROM firmware.
Citation Information
Cited By
Control method and device for server to load Option ROM fault-tolerant mechanism of PCIE card and medium
CN120892236A
Control methods, devices, and media for server loading PCIe card Option ROM fault tolerance mechanism
CN120892236B
