Method and device for automatically recovering graphics card firmware based on UEFI (Unified Extensible Firmware Interface) specification

By storing the graphics card firmware, recovery program and factory firmware in the graphics card firmware storage chip, and using the UEFI specification to automatically detect and restore the factory settings, the display problem caused by the failure of the graphics card firmware upgrade is solved, automatic recovery is achieved, and device failure is avoided.

CN120704952APending Publication Date: 2025-09-26WUHAN LINGJIU MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510869967.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

Failure to upgrade the graphics card firmware can cause the device to be unable to display or even the system to freeze. The existing technology lacks an effective automatic recovery mechanism, especially the problem that the independent graphics card has no dedicated button.

Method used

The graphics card firmware program, recovery program and factory original firmware program are stored in the graphics card firmware storage chip at the same time. The module program verification mechanism of the UEFI specification is used to automatically detect and jump to the factory settings function to restore the factory firmware program when the firmware loading is abnormal.

Benefits of technology

It realizes the automatic recovery of graphics card firmware program, avoids the device from failing due to display function, and provides an automatic recovery mechanism without additional hardware support, ensuring that the graphics card can be restored to factory settings under abnormal circumstances to avoid device failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704952A_ABST
    Figure CN120704952A_ABST
Patent Text Reader

Abstract

The invention provides a UEFI (Unified Extensible Firmware Interface) specification-based graphics card firmware automatic recovery method and device. A graphics card firmware storage chip stores a graphics card firmware program, a graphics card firmware recovery program and a graphics card factory original firmware program at the same time; when a graphics card firmware program loaded by the mainboard UEFI firmware is normal, running the graphics card firmware program, and skipping running of a graphics card firmware recovery program, otherwise, loading and running the graphics card firmware recovery program; when a serious error occurs in the running of the graphics card firmware program, jumping to a graphics card firmware factory setting restoring related performance function, and restoring the graphics card firmware program into a graphics card factory original firmware program; and when the graphics card firmware recovery program runs, automatically recovering the graphics card firmware program to the graphics card factory original firmware program, and resetting the system. According to the method, an additional control switch or a bypass firmware storage chip is not needed, the abnormal graphics card firmware program can be automatically detected and recovered to be the factory original firmware program, and the non-inductive recovery function of the graphics card firmware program is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and more particularly to a method and device for automatically recovering graphics card firmware based on the UEFI specification. Background Art

[0002] With the rapid development of graphics and software technologies, graphics card firmware upgrades are in demand for bug fixes, feature improvements, and performance enhancements. Graphics card firmware is stored in the graphics card's built-in non-volatile memory chip, which has a slow erasing and programming speed. The upgrade process takes time, and there are risks of firmware upgrade failures due to improper operation or sudden power outages. Failure to upgrade can result in a black screen or even system freeze, leading to serious issues such as a computer or device freezing.

[0003] To address the serious risks associated with firmware upgrades, some devices offer a factory reset function with a dedicated button. This resets the factory firmware to the firmware program area, restoring the device's display functionality. However, discrete graphics cards typically lack a dedicated button for factory reset. Designing a dedicated reset button would be aesthetically pleasing, costly, and inconvenient. Summary of the Invention

[0004] The present invention aims to solve the technical problems existing in the prior art and provides a method and device for automatically recovering graphics card firmware based on the UEFI specification, which is used to solve the technical problem that the graphics card firmware cannot be displayed after the update fails, causing the device to fail due to loss of display function.

[0005] According to a first aspect of the present invention, a method for automatically recovering graphics card firmware based on the UEFI specification is provided, comprising:

[0006] Step S1, storing the graphics card firmware program, the graphics card firmware recovery program and the graphics card factory original firmware program in the graphics card firmware storage chip at the same time. When the graphics card device is powered on, proceed to step S2;

[0007] Step S2, the motherboard UEFI firmware loads the graphics card firmware program. When the graphics card firmware program is loaded normally, the graphics card firmware program is run and step S3 is executed. When the graphics card firmware program is loaded abnormally, step S4 is executed.

[0008] Step S3, running the graphics card firmware program and automatically skipping the running of the graphics card firmware recovery program. When the graphics card firmware program detects a serious error, it jumps to the factory reset function, restores the graphics card factory original firmware program in the graphics card firmware storage chip to the graphics card firmware program area, and resets the system.

[0009] Step S4, loading and running the graphics card firmware recovery program, automatically restoring the graphics card's factory original firmware program to the graphics card firmware program area, and resetting the system.

[0010] According to a second aspect of the present invention, there is provided a graphics card firmware automatic recovery device based on the UEFI specification, comprising a graphics card firmware storage chip and a motherboard UEFI firmware;

[0011] The graphics card firmware storage chip is used to store the graphics card firmware program, the graphics card firmware recovery program and the graphics card factory original firmware program at the same time;

[0012] The motherboard UEFI firmware is used to load the graphics card firmware program after the graphics card device is powered on; when the graphics card firmware program loads normally, run the graphics card firmware program and automatically skip the running of the graphics card firmware recovery program; when the graphics card firmware program detects a serious error, jump to the factory settings restoration function, restore the graphics card factory original firmware program in the graphics card firmware storage chip to the graphics card firmware program area, and reset the system; and when the graphics card firmware program loads abnormally, load and run the graphics card firmware recovery program, automatically restore the graphics card factory original firmware program to the graphics card firmware program area, and reset the system.

[0013] The present invention provides a method and device for automatically restoring graphics card firmware based on the UEFI specification. The method stores a graphics card firmware program, a graphics card firmware recovery program, and the graphics card's factory-original firmware program in a graphics card firmware storage chip. When the graphics card firmware program loads normally, the graphics card firmware program runs; otherwise, the graphics card firmware recovery program is loaded and run. When the graphics card firmware program runs normally, the graphics card firmware program skips running the graphics card's factory-original firmware program; otherwise, it jumps to functions related to the graphics card firmware's factory-reset function to restore the graphics card firmware program to factory settings. When the graphics card firmware recovery program runs, the graphics card firmware program is automatically restored to factory settings, resetting the system. The present invention does not require an additional control switch or bypass firmware storage chip, can automatically detect abnormal graphics card firmware programs, and automatically restore the graphics card's factory-original firmware program to the graphics card firmware program area, thus achieving a seamless graphics card firmware program recovery function. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A flowchart of a method for automatically restoring graphics card firmware based on the UEFI specification provided by one embodiment of the present invention;

[0015] Figure 2 A flowchart of a method for automatically restoring graphics card firmware based on the UEFI specification is provided as another embodiment of the present invention;

[0016] Figure 3A schematic diagram of storing programs and configuration data in a graphics card firmware storage chip according to one embodiment of the present invention;

[0017] Figure 4 An overall flow chart of a method for automatically restoring graphics card firmware based on the UEFI specification provided by one embodiment of the present invention;

[0018] Figure 5 A structural block diagram of a graphics card firmware automatic recovery device based on the UEFI specification provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not restricted by the sequence of steps and / or structural composition mode, but must be based on the ability of ordinary technicians in this field to implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0020] Figure 1 A flowchart of a method for automatically restoring graphics card firmware based on the UEFI specification is provided for one embodiment of the present invention. Figure 1 and Figure 2 , the method comprises the following steps:

[0021] Step S1, storing the graphics card firmware program, the graphics card firmware recovery program and the graphics card factory original firmware program in the graphics card firmware storage chip at the same time. When the graphics card device is powered on, enter step S2.

[0022] It's understandable that when a display device leaves the factory, the graphics card firmware storage chip is simultaneously written with the "graphics card firmware program," the "graphics card firmware recovery program," and the "original graphics card firmware program." Corresponding to the "graphics card firmware program" and "original graphics card firmware program," the graphics card firmware storage chip also needs to store firmware configuration data and original firmware configuration data.

[0023] Among them, the graphics card firmware program is the graphics card UEFI firmware module, which is stored in the graphics card non-volatile storage chip and can be automatically loaded by the motherboard UEFI firmware. Its main function is to initialize the graphics card chip and provide graphics display services in the UEFI firmware stage. It is the main object of graphics card firmware upgrade.

[0024] The graphics card firmware recovery program is a graphics card UEFI firmware module, stored in the graphics card's non-volatile memory chip, and can be automatically loaded by the motherboard UEFI firmware. Its functions are simple and fixed, the program capacity is small, and it does not require upgrades. It is only used to erase the data in the graphics card firmware program area, read the graphics card's original factory firmware program and write it to the graphics card firmware program area, and then reset the system.

[0025] The graphics card's original factory firmware is a verified graphics card firmware program. This program code will not be erased or called by the motherboard UEFI firmware. It will only be read by the graphics card firmware recovery program.

[0026] Among them, the graphics card firmware program and the graphics card firmware recovery program are both encapsulated as PCI expansion ROM modules. The graphics card firmware program is encapsulated as a non-last loaded module. The motherboard UEFI firmware will continue to look for other loadable UEFI firmware modules, and the graphics card firmware recovery program is encapsulated as the last loaded module. The motherboard UEFI firmware will no longer look for other loadable UEFI firmware modules for this graphics card.

[0027] Among them, see Figure 3 , the graphics card firmware program, graphics card firmware recovery program and graphics card factory original firmware program are stored at different addresses in the graphics card firmware storage chip, as well as the firmware configuration data and the firmware factory original configuration data, specifically:

[0028] The graphics card firmware program is stored at the 0x0 offset address of the graphics card firmware storage chip, the graphics card firmware program is encapsulated as a PCI expansion ROM data packet, and the graphics card firmware program is set as a non-last loaded module so that it is loaded first by the motherboard UEFI firmware as the graphics card firmware module;

[0029] The graphics card firmware recovery program is stored at a designated offset address after the graphics card firmware program data packet is stored in the graphics card firmware storage chip. In one embodiment of the present invention, the graphics card firmware recovery program is stored at the offset address 0x30000 of the graphics card firmware storage chip, the graphics card firmware recovery program is encapsulated as a PCI expansion ROM data packet, and the graphics card firmware recovery program is set as the last loaded module, and is loaded second as the graphics card firmware module by the mainboard UEFI firmware. That is, after loading the graphics card firmware recovery program, the mainboard UEFI firmware will no longer search for other firmware modules in the graphics card firmware storage chip.

[0030] The graphics card's factory original firmware program is stored at a designated offset address after the graphics card's firmware storage chip stores the graphics card's firmware recovery program data packet. In one embodiment of the present invention, the graphics card's factory original firmware program is stored at an offset address of 0x80000 of the graphics card's firmware storage chip.

[0031] Similarly, the firmware configuration data is stored at a specified offset address of the graphics card firmware storage chip. In one embodiment of the present invention, the firmware configuration data is stored at an offset address of 0x40000 of the graphics card firmware storage chip. The firmware configuration data includes video memory interface configuration data, display interface configuration data, and fan configuration data.

[0032] Furthermore, the firmware factory original configuration data is also stored at the designated offset address of the graphics card firmware storage chip. In one embodiment of the present invention, the firmware factory original configuration data is stored at the 0xC0000 offset address of the graphics card firmware storage chip.

[0033] Step S2, the motherboard UEFI firmware loads the graphics card firmware program. When the graphics card firmware program is loaded normally, the graphics card firmware program is run and step S3 is executed. When the graphics card firmware program is loaded abnormally, step S4 is executed.

[0034] Can be combined Figure 4 , Figure 4 This is the overall flow chart of the graphics card firmware automatic recovery method, step S2 specifically includes:

[0035] Step S2.1: The motherboard UEFI firmware reads the graphics card firmware program data packet from the graphics card PCI expansion ROM and verifies the type information of the graphics card firmware program data packet and the CRC check code of the program data. If the verification passes, the graphics card firmware program is loaded and executed, and the process proceeds to step S2.2. If the verification fails, the process proceeds to step S4.

[0036] Step S2.2, the graphics card firmware program reads the firmware configuration data packet and verifies the integrity of the firmware configuration data using the identification code and CRC check code. If the verification passes, the process proceeds to step S2.3; if the verification fails, the process proceeds to step S2.4.

[0037] Step S2.3, configuring the graphics card according to the firmware configuration data and running the various functions of the graphics card firmware program. If the graphics card firmware program runs normally, proceed to step S3. If the graphics card firmware program detects a serious error during operation, proceed to step S2.4.

[0038] Step S2.4, restore the original factory configuration data of the firmware to the firmware configuration data area (starting from 0x40000), and reload the firmware configuration data, and enter step S2.3.

[0039] Step S3, running the graphics card firmware program and automatically skipping the running of the graphics card firmware recovery program. When the graphics card firmware program detects a serious error, it jumps to the factory reset function, restores the graphics card factory original firmware program in the graphics card firmware storage chip to the graphics card firmware program area, and resets the system.

[0040] Step S4, loading and running the graphics card firmware recovery program, automatically restoring the graphics card's factory original firmware program to the graphics card firmware program area, and resetting the system.

[0041] The basic principle of the graphics card firmware automatic recovery method provided by the present invention is:

[0042] When the graphics card firmware is upgraded, only the "graphics card firmware program" and its associated configuration data storage area will be updated, while the "graphics card firmware recovery program" and "graphics card factory original firmware program" are stored in a protected specific area and will not be modified.

[0043] The graphics card firmware is stored at the beginning of the graphics card's memory chip and is first called by the motherboard's UEFI firmware. If the graphics card firmware loads properly, the graphics card device will be occupied by the graphics card firmware module and will not be searchable by other graphics card firmware modules. Otherwise, the motherboard's UEFI firmware will continue searching for and loading other firmware modules within the graphics card's memory chip. If a serious error is detected during the execution of the graphics card firmware, the program will jump to the factory reset function, restoring the "original graphics card firmware" to the graphics card firmware area. The system will then be reset, and the device will then load the factory-set graphics card firmware.

[0044] After loading the "Graphics Card Firmware Program", the motherboard UEFI firmware will continue to load the "Graphics Card Firmware Recovery Program". If the previous "Graphics Card Firmware Program" is loaded normally, the graphics card device will be occupied solely by the "Graphics Card Firmware Program". At this time, when the "Graphics Card Firmware Recovery Program" is loaded again, it will not be run because it cannot detect the uninstalled matching device. However, if the previous "Graphics Card Firmware Program" fails to load, the "Graphics Card Firmware Recovery Program" will be able to detect the matching device and will be installed and run, and will perform the function of restoring the factory firmware, restoring the "Graphics Card Factory Original Firmware Program" to the graphics card firmware program area, and then reset the system. Since the "Graphics Card Firmware Recovery Program" module is marked as the last module loaded, that is, after the motherboard UEFI firmware loads the "Graphics Card Firmware Recovery Program" module, it will no longer search for other firmware module programs for this graphics card, and the search and loading of the firmware program module for this graphics card will be completed.

[0045] The "Factory Original Graphics Card Firmware" is the fully verified graphics card firmware program at the factory. Similar to the "Graphics Card Firmware Recovery Program" storage area, this storage area will not be erased or modified, ensuring normal operation and display functionality after restoration. Graphics cards with normal firmware functionality will also have their firmware update functionality and user interface restored.

[0046] See also Figure 5 The present invention also provides a graphics card firmware automatic recovery device based on the UEFI specification, which includes a graphics card firmware storage chip 501 and a motherboard UEFI firmware 502.

[0047] The graphics card firmware storage chip 501 is used to store the graphics card firmware program, the graphics card firmware recovery program and the graphics card factory original firmware program at the same time;

[0048] The motherboard UEFI firmware 502 is used to load the graphics card firmware program after the graphics card device is powered on; when the graphics card firmware program is loaded normally, run the graphics card firmware program and automatically skip the running of the graphics card firmware recovery program; when the graphics card firmware program detects a serious error, jump to the factory settings restoration function, restore the graphics card factory original firmware program in the graphics card firmware storage chip to the graphics card firmware program area, and reset the system; and when the graphics card firmware program is loaded abnormally, load the graphics card firmware recovery program and run it, automatically restore the graphics card factory original firmware program to the graphics card firmware program area, and reset the system.

[0049] It can be understood that the automatic recovery device for graphics card firmware based on UEFI specifications provided by the present invention corresponds to the automatic recovery method for graphics card firmware based on UEFI specifications provided in the aforementioned embodiments. The relevant technical features of the automatic recovery device for graphics card firmware based on UEFI specifications can refer to the relevant technical features of the automatic recovery method for graphics card firmware based on UEFI specifications, and will not be repeated here.

[0050] The present invention provides a method and device for automatically recovering graphics card firmware based on the UEFI specification, which has the following advantages:

[0051] (1) An additional copy of the graphics card factory firmware is stored in the graphics card firmware storage chip for recovery when the graphics card firmware program is abnormal; with the help of the module program verification mechanism of the UEFI specification, the graphics card firmware module program is automatically verified to be complete, and an incomplete graphics card firmware program will not be loaded; with the help of the UEFI specification's ability to load multiple graphics card firmware modules, a firmware module with a factory reset function is added behind the normal graphics card firmware. After the graphics card firmware fails to load, the graphics card firmware can be automatically restored to the factory settings, solving the problem that the graphics card cannot work normally when the graphics card firmware program is damaged; and the graphics card firmware program can identify firmware operation errors, such as serious errors in the graphics card configuration data, and can also automatically restore the graphics card firmware to the factory settings to avoid failure of the graphics card function.

[0052] (2) Solve the problem that improper operation or other unexpected situations occur during the graphics card firmware upgrade process, causing the graphics card firmware to work abnormally and cannot be restored; automatically adapt to firmware loading abnormalities and operation abnormalities, and restore the graphics card firmware to factory settings without additional hardware support and manual operation.

[0053] It should be noted that, in the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0054] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0055] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0056] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0057] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0058] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0059] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.

Claims

1. A graphics card firmware automatic recovery method based on UEFI specification, characterized in that: include: Step S1, storing the graphics card firmware program, the graphics card firmware recovery program and the graphics card factory original firmware program in the graphics card firmware storage chip at the same time. When the graphics card device is powered on, proceed to step S2; Step S2, the motherboard UEFI firmware loads the graphics card firmware program. When the graphics card firmware program is loaded normally, the graphics card firmware program is run and step S3 is executed. When the graphics card firmware program is loaded abnormally, step S4 is executed. Step S3, running the graphics card firmware program and automatically skipping the running of the graphics card firmware recovery program. When the graphics card firmware program detects a serious error, it jumps to the factory reset function, restores the graphics card factory original firmware program in the graphics card firmware storage chip to the graphics card firmware program area, and resets the system. Step S4, loading and running the graphics card firmware recovery program, automatically restoring the graphics card's factory original firmware program to the graphics card firmware program area, and resetting the system.

2. The method for automatically restoring graphics card firmware according to claim 1, wherein: The step S1, storing the graphics card firmware program, the graphics card firmware recovery program and the graphics card factory original firmware program in the graphics card firmware storage chip at the same time, further includes: The graphics card firmware storage chip also stores firmware configuration data and firmware factory original configuration data; The step S2 specifically includes: The motherboard UEFI firmware loads the graphics card firmware program. When the graphics card firmware program is loaded normally, the firmware configuration data is read to configure the graphics card function and the graphics card firmware program is run, and step S3 is executed. When the graphics card firmware program is loaded abnormally, step S4 is executed. The step S3 specifically includes: Running the graphics card firmware program and automatically skipping the running of the graphics card firmware recovery program, when the graphics card firmware program detects a serious error, jumping to the factory reset function, restoring the graphics card factory original firmware program and the firmware factory original configuration data in the graphics card firmware storage chip to the factory settings, and resetting the system; The step S4 specifically includes: The graphics card firmware recovery program is loaded and executed, and the graphics card factory original firmware program and the firmware factory configuration data are automatically restored to the factory settings, the graphics card factory original firmware program is restored to the graphics card firmware program area, and the system is reset.

3. The method for automatically recovering graphics card firmware according to claim 1, wherein: The step S1, storing the graphics card firmware program, the graphics card firmware recovery program and the graphics card factory original firmware program in the graphics card firmware storage chip at the same time, includes: The graphics card firmware program is stored at the 0x0 offset address of the graphics card firmware storage chip, the graphics card firmware program is encapsulated as a PCI expansion ROM data packet, and the graphics card firmware program is set as a non-last loaded module so that it is loaded first by the motherboard UEFI firmware as the graphics card firmware module; The graphics card firmware recovery program is stored at a designated offset address after the graphics card firmware program data packet is stored in the graphics card firmware storage chip, the graphics card firmware recovery program is encapsulated as a PCI expansion ROM data packet, and the graphics card firmware recovery program is set as the last loaded module, and is loaded second by the mainboard UEFI firmware as the graphics card firmware module. That is, after loading the graphics card firmware recovery program, the mainboard UEFI firmware will no longer search for other firmware modules in the graphics card firmware storage chip; The graphics card firmware storage chip stores the graphics card firmware recovery program data packet at a designated offset address and stores the graphics card factory original firmware program.

4. The method for automatically recovering graphics card firmware according to claim 2, wherein: The graphics card firmware storage chip also stores firmware configuration data and firmware factory original configuration data, including: Storing the firmware configuration data at a designated offset address of the graphics card firmware storage chip, the firmware configuration data includes graphics memory interface configuration data, display interface configuration data and fan configuration data; The factory original configuration data of the firmware is also stored at the designated offset address of the graphics card firmware storage chip.

5. The method for automatically recovering graphics card firmware according to claim 2, wherein: In step S2, the motherboard UEFI firmware loads the graphics card firmware program. When the graphics card firmware program is loaded normally, the firmware configuration data is read to configure the graphics card function, and the graphics card firmware program is run, and step S3 is executed; When the graphics card firmware program is loaded abnormally, step S4 is executed, including: Step S2.1: The motherboard UEFI firmware reads the graphics card firmware program data packet from the graphics card PCI expansion ROM and verifies the type information of the graphics card firmware program data packet and the CRC check code of the program data. If the verification passes, the graphics card firmware program is loaded and run, and the process proceeds to step S2.

2. If the verification fails, the process proceeds to step S4. Step S2.2, the graphics card firmware program reads the firmware configuration data packet and verifies the integrity of the firmware configuration data using the identification code and CRC check code. If the verification passes, the process proceeds to step S2.3; if the verification fails, the process proceeds to step S2.

4. Step S2.3, configuring the graphics card according to the firmware configuration data and running the various functions of the graphics card firmware program. If the graphics card firmware program runs normally, proceed to step S3. If the graphics card firmware program detects a serious error during operation, proceed to step S2.

4. Step S2.4, restore the original factory configuration data of the firmware to the firmware configuration data area, and reload the firmware configuration data, and enter step S2.

3.

6. A graphics card firmware automatic recovery device based on UEFI specification, characterized in that: Including graphics card firmware storage chip and motherboard UEFI firmware; The graphics card firmware storage chip is used to store the graphics card firmware program, the graphics card firmware recovery program and the graphics card factory original firmware program at the same time; The motherboard UEFI firmware is used to load the graphics card firmware program after the graphics card device is powered on; when the graphics card firmware program loads normally, run the graphics card firmware program and automatically skip the running of the graphics card firmware recovery program; when the graphics card firmware program detects a serious error, jump to the factory settings restoration function, restore the graphics card factory original firmware program in the graphics card firmware storage chip to the graphics card firmware program area, and reset the system; and when the graphics card firmware program loads abnormally, load and run the graphics card firmware recovery program, automatically restore the graphics card factory original firmware program to the graphics card firmware program area, and reset the system.