The invention discloses a control method and device for loading an
Option ROM fault-tolerant mechanism of a PCIE card by a
server and a medium. The method comprises the following steps: entering an enumeration detection link of a PCIE card to be detected by a PCI
bus; if the currently enumerated
configuration space information of the PCIE card is different from the content of the PCIE card chain table, loading an
Option Rom program of the current PCIE card into a memory, generating EFIIMAGEHANDLE information, and recording the
configuration space information of the
Option ROM program of the current PCIE card in the memory through the EFIIMAGEHANDLE information; constructing a new node according to the currently enumerated
configuration space information of the PCIE card, inserting the new node into the PCIE card chain table, and executing PCIE card hardware initialization; the execution state of the
Option Rom program of the current PCIE card is checked, if the
Option Rom program of the PCIE card is normally executed, the
relevant information, stored in the nonvolatile
storage area, of the current PCIE card is deleted, detection of the current PCIE card is skipped, and the next to-be-detected PCIE card continues to be enumerated. According to the method, repeated loading is effectively avoided, the abnormal PCIE card can be quickly skipped, related log information is recorded, and the overall performance and reliability of the
server are improved.