CN116302145A - AER function configuration method, AER function configuration device, AER function configuration equipment and AER function configuration medium - Google Patents

AER function configuration method, AER function configuration device, AER function configuration equipment and AER function configuration medium Download PDF

Info

Publication number
CN116302145A
CN116302145A CN202211034555.9A CN202211034555A CN116302145A CN 116302145 A CN116302145 A CN 116302145A CN 202211034555 A CN202211034555 A CN 202211034555A CN 116302145 A CN116302145 A CN 116302145A
Authority
CN
China
Prior art keywords
aer
equipment
information
driver
function configuration
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
Application number
CN202211034555.9A
Other languages
Chinese (zh)
Inventor
董世江
窦志冲
刘波
戴纯兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211034555.9A priority Critical patent/CN116302145A/en
Publication of CN116302145A publication Critical patent/CN116302145A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an AER function configuration method, an AER function configuration device, AER function configuration equipment and AER function configuration media, which relate to the technical field of computers and comprise the following steps: judging whether local system configuration information supports AER, if the system configuration information supports AER, acquiring an AER driver, and registering the AER driver to the local to obtain an AER driver; determining all equipment information in a local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result; and if the detection result is that the equipment is supported, determining equipment characteristic information, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources. Through the technical scheme, the starting-up speed and flexibility of the server can be effectively improved, the accuracy of AER function configuration is improved, and the efficiency of AER function configuration is improved.

Description

AER function configuration method, AER function configuration device, AER function configuration equipment and AER function configuration medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an AER function configuration method, apparatus, device, and medium.
Background
With the development of the era, technology advances, more and more Input/Output devices are required for high-speed transmission, performance of conventional PCI (Peripheral Component Interconnect, bus interface standard) is challenged, and requirements of peripheral devices cannot be met more and more, aiming at the challenge, in order to adapt to the requirements of new application development, a standard of a connector PCI express (PCIe for short, a third generation I/O bus standard after PCI bus) serving as a PCI bus is generated, and compared with the PCI bus, the PCIe bus has many advantages, namely, the main advantage is that the data transmission rate can be greatly improved, and in addition, the PCIe bus has the characteristics of strong anti-interference capability, long transmission distance, low power consumption and the like. However, as the amount of data transferred increases, the probability of data transfer errors increases greatly, and PCIe provides two error reporting mechanisms for better localization to the root cause of the problem: the first is basic (Base line Capability), which is the function that all PCIe devices need to support; the second, referred to as advanced error reporting AER (Advanced Error Reporting Capability, an advanced feature of PCIe devices), is optional and can provide more detailed error information, helping developers locate the source of the error information. Currently, in order to better support the AER characteristic, the AER characteristic is registered as PCIe port service (PCIe port service) in the system starting process. The prior art has the following defects: in the initialization process, whether system hardware (RC) supports AER characteristics is not checked in advance, so that service initialization is performed, and after the system is started, although an AER driver exists in the system, because virtual equipment (the virtual equipment is a piece of equipment which is virtualized out of a root port) is not bound, the AER driver is bound to the equipment, and error information cannot be reported through the AER service, so that the system starting time is increased, the sight of a developer is easily disturbed, the developer is allowed to give rise to the fact that the whole system supports the AER characteristics as long as PCIe equipment supports the AER characteristics, and the system is correspondingly and correctly configured, and extra burden is caused to analysis problems of the developer.
From the above, how to increase the starting-up speed and flexibility of the server, increase the accuracy of the AER function configuration, and increase the efficiency of the AER function configuration is a problem to be solved in the art.
Disclosure of Invention
Accordingly, the present invention aims to provide an AER function configuration method, apparatus, device and medium, which can effectively improve the starting-up speed and flexibility of a server, increase the accuracy of AER function configuration, and improve the efficiency of AER function configuration. The specific scheme is as follows:
in a first aspect, the present application discloses an AER function configuration method, including:
judging whether local system configuration information supports AER, if the system configuration information supports AER, acquiring an AER driver, and registering the AER driver to the local to obtain an AER driver;
determining all equipment information in a local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result;
and if the detection result is that the equipment is supported, determining equipment characteristic information, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources.
Optionally, the performing AER characteristic detection on the device information includes:
judging the equipment type of the equipment information in the equipment list by utilizing a local preset AER detection program; the device types include RC devices and bridge devices;
and if the equipment information type is RC equipment, AER characteristic detection is carried out on the equipment information.
Optionally, the performing AER characteristic detection on the device information includes:
judging whether the equipment information is detected or not;
and if the equipment information is not detected, acquiring the function information in the equipment information, and detecting AER characteristics of the equipment information based on the function information.
Optionally, the AER function configuration method further includes:
if the equipment information type is bridge equipment, acquiring parent equipment information of the equipment information, and determining the equipment type of the parent equipment information;
if the information type of the parent equipment information is RC equipment, judging whether the parent equipment information is detected, if the parent equipment information is not detected, acquiring the function information in the parent equipment information, and detecting AER characteristics of the parent equipment information based on the function information in the parent equipment information.
Optionally, the performing the configuration of the AER function according to the AER driver and the AER resource includes:
creating virtual equipment based on the AER resource, and registering the virtual equipment to a locally preset equipment driving model through a preset equipment driving model interface;
binding the AER driver with the registered device driver model to obtain a bound device driver model.
Optionally, after the binding device driver model is obtained, the method further includes:
after the registered device driver model detects that the AER driver is successfully bound, an initialization function in the AER driver is acquired;
and executing the initialization function to obtain the configured device driving model.
Optionally, after the step of obtaining the detection result, the method further includes:
if the detection result is that the equipment information is not supported, the equipment information is sent to a local preset AER log program, so that after the AER log program acquires the equipment information, equipment error information is determined, and the equipment information and the equipment error information are reported and printed.
In a second aspect, the present application discloses an AER function configuration device, including:
the judging module is used for judging whether the local system configuration information supports AER, if the system configuration information supports AER, acquiring an AER driver, and registering the AER driver to the local so as to obtain an AER driver program;
the detection module is used for determining all the equipment information in the local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result;
and the AER function configuration module is used for determining equipment characteristic information if the detection result is supporting, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources.
In a third aspect, the present application discloses an electronic device comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the AER function configuration method.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the AER function configuration method disclosed previously.
It can be seen that the application provides an AER function configuration method, which includes judging whether local system configuration information supports AER, if the system configuration information supports AER, acquiring an AER driver, and registering the AER driver to the local to obtain an AER driver; determining all equipment information in a local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result; and if the detection result is that the equipment is supported, determining equipment characteristic information, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources. According to the method and the device, whether the system supports the AER characteristic or not is checked in advance according to the AER driving characteristic, and when the RC does not support the AER characteristic, the error source can be positioned through the AER log module, so that convenience is brought to a developer in checking whether the system supports the AER characteristic or not. According to the method and the system, the AER log detection program can be flexibly configured according to requirements, flexible debugging is achieved, convenience is brought to developers, RC which does not support AER characteristics and traversal processes of all bridge devices connected with the RC can be filtered in advance through the AER detection program, initialization time is saved, and as long as AER driving is achieved in the system, the system can support the AER reporting function, and convenience is brought to the developers in checking whether the system supports the AER characteristics. According to the AER driving characteristic, the checking scheme of whether the AER characteristic is supported by the system or not is realized in advance, and when the AER characteristic is not supported by the RC, the error source can be positioned through the AER log detection program.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an AER function configuration method disclosed herein;
FIG. 2 is a flow chart of an AER function configuration method disclosed herein;
FIG. 3 is a flowchart of an AER function configuration method disclosed herein;
FIG. 4 is a flowchart of an AER function configuration method disclosed herein;
FIG. 5 is a schematic structural diagram of an AER function configuration device disclosed herein;
fig. 6 is a block diagram of an electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
With the development of the era, technology advances, more and more Input/Output devices are required for high-speed transmission, performance of conventional PCI (Peripheral Component Interconnect, bus interface standard) is challenged, and requirements of peripheral devices cannot be met more and more, aiming at the challenge, in order to adapt to the requirements of new application development, a standard of a connector PCI express (PCIe for short, a third generation I/O bus standard after PCI bus) serving as a PCI bus is generated, and compared with the PCI bus, the PCIe bus has many advantages, namely, the main advantage is that the data transmission rate can be greatly improved, and in addition, the PCIe bus has the characteristics of strong anti-interference capability, long transmission distance, low power consumption and the like. However, as the amount of data transferred increases, the probability of data transfer errors increases greatly, and PCIe provides two error reporting mechanisms for better localization to the root cause of the problem: the first is basic (Base line Capability), which is the function that all PCIe devices need to support; the second, referred to as advanced error reporting AER (Advanced Error Reporting Capability, an advanced feature of PCIe devices), is optional and can provide more detailed error information, helping developers locate the source of the error information. Currently, in order to better support the AER characteristic, the AER characteristic is registered as PCIe port service (PCIe port service) in the system starting process. The prior art has the following defects: in the initialization process, whether system hardware (RC) supports AER characteristics is not checked in advance, so that service initialization is performed, and after the system is started, although an AER driver exists in the system, because virtual equipment (the virtual equipment is a piece of equipment which is virtualized out of a root port) is not bound, the AER driver is bound to the equipment, and error information cannot be reported through the AER service, so that the system starting time is increased, the sight of a developer is easily disturbed, the developer is allowed to give rise to the fact that the whole system supports the AER characteristics as long as PCIe equipment supports the AER characteristics, and the system is correspondingly and correctly configured, and extra burden is caused to analysis problems of the developer. From the above, how to increase the starting-up speed and flexibility of the server, increase the accuracy of the AER function configuration, and increase the efficiency of the AER function configuration is a problem to be solved in the art. According to the method and the system, the AER log detection program can be flexibly configured according to requirements, flexible debugging is achieved, convenience is brought to developers, RC which does not support AER characteristics and traversal processes of all bridge devices connected with the RC can be filtered in advance through the AER detection program, initialization time is saved, and as long as AER driving is achieved in the system, the system can support the AER reporting function, and convenience is brought to the developers in checking whether the system supports the AER characteristics. According to the AER driving characteristic, the checking scheme of whether the AER characteristic is supported by the system or not is realized in advance, and when the AER characteristic is not supported by the RC, the error source can be positioned through the AER log detection program.
Referring to fig. 1, the embodiment of the invention discloses an AER function configuration method, which specifically may include:
step S11: judging whether the local system configuration information supports AER, if the system configuration information supports AER, acquiring an AER driver, and registering the AER driver to the local to obtain an AER driver program.
Step S12: and determining all the equipment information in the local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result.
In this embodiment, after determining all the device information in the local device list, the device type of the device information in the device list is determined by using a locally preset AER detection program; and if the equipment information type is RC equipment, AER characteristic detection is carried out on the equipment information, and finally a detection result is obtained.
In addition, if the equipment information type is bridge equipment, parent equipment information of the equipment information is obtained, and the equipment type of the parent equipment information is determined; if the information type of the parent equipment information is RC equipment, judging whether the parent equipment information is detected, if the parent equipment information is not detected, acquiring the function information in the parent equipment information, and detecting AER characteristics of the parent equipment information based on the function information in the parent equipment information.
In this embodiment, whether the device information is detected is determined, if the device information is not detected, function information in the device information is obtained, and AER characteristic detection is performed on the device information based on the function information.
Step S13: and if the detection result is that the equipment is supported, determining equipment characteristic information, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources.
In this embodiment, first, whether local system configuration information supports AER is determined, if the system configuration information supports AER, the AER service registration is performed, the registration process is divided into two parts, the first part is a flowchart on the left in the diagram, an AER driver is obtained, and the AER driver is registered locally to obtain an AER driver program, where no device is bound yet; the second part is to traverse all bridge devices in the device list in the system, judge whether the device supports the AER function through the AER detection program, if so, apply for AER related resources and create corresponding virtual devices, then register the virtual devices into the system through the device driving model interface, and finally bind the AER driver, and the AER driver completes the initialization of the service.
In this embodiment, whether local system configuration information supports AER is determined, if the system configuration information supports AER, an AER driver is obtained, and the AER driver is registered locally to obtain an AER driver program; determining all equipment information in a local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result; and if the detection result is that the equipment is supported, determining equipment characteristic information, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources. According to the method and the device, whether the system supports the AER characteristic or not is checked in advance according to the AER driving characteristic, and when the RC does not support the AER characteristic, the error source can be positioned through the AER log module, so that convenience is brought to a developer in checking whether the system supports the AER characteristic or not. According to the method and the system, the AER log detection program can be flexibly configured according to requirements, flexible debugging is achieved, convenience is brought to developers, RC which does not support AER characteristics and traversal processes of all bridge devices connected with the RC can be filtered in advance through the AER detection program, initialization time is saved, and as long as AER driving is achieved in the system, the system can support the AER reporting function, and convenience is brought to the developers in checking whether the system supports the AER characteristics. According to the AER driving characteristic, the checking scheme of whether the AER characteristic is supported by the system or not is realized in advance, and when the AER characteristic is not supported by the RC, the error source can be positioned through the AER log detection program.
Referring to fig. 2, the embodiment of the invention discloses an AER function configuration method, which specifically may include:
step S21: judging whether the local system configuration information supports AER, if the system configuration information supports AER, acquiring an AER driver, and registering the AER driver to the local to obtain an AER driver program.
Step S22: and determining all the equipment information in the local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result.
In this embodiment, after obtaining the detection result, the method further includes: if the detection result is that the equipment information is not supported, the equipment information is sent to a local preset AER log program, so that after the AER log program acquires the equipment information, equipment error information is determined, and the equipment information and the equipment error information are reported and printed.
Step S23: if the detection result is that the device is supported, determining device characteristic information, acquiring AER resources based on the device characteristic information, creating virtual devices based on the AER resources, registering the virtual devices to a locally preset device driving model through a preset device driving model interface, and binding the AER driving program with the registered device driving model to obtain a bound device driving model.
Step S24: and after the registered device driver model detects that the AER driver is successfully bound, acquiring an initialization function in the AER driver, and executing the initialization function to obtain the configured device driver model.
In this embodiment, as shown in fig. 3, the specific flow is to first determine whether local system configuration information supports AER (i.e., config_pcie portal in fig. 3), if the system configuration information supports AER, register AER service (i.e., register bus pci_express), where the registration process is divided into two parts, the first part is a left flow chart in the figure, obtain an AER driver, and register the AER driver locally to obtain an AER driver, where no device is bound yet; the second part is to traverse all bridge devices in a device list in the system, judge whether the device supports the AER function through the AER detection program, if so, apply for AER related resources and create corresponding virtual devices, then register the virtual devices into the system through a device driving model interface, finally bind the AER driving program, finish the initialization of the service through the AER driving program, and if not, use the AER log control program, and the specific steps are as follows: and sending the equipment information to a locally preset AER log program, so that the AER log program determines equipment error information after acquiring the equipment information, and reports and prints the equipment information and the equipment error information. According to the method and the system, the AER log detection program can be flexibly configured according to requirements, flexible debugging is achieved, convenience is brought to developers, RC which does not support AER characteristics and traversal processes of all bridge devices connected with the RC can be filtered in advance through the AER detection program, initialization time is saved, and as long as AER driving is achieved in the system, the system can support the AER reporting function, and convenience is brought to the developers in checking whether the system supports the AER characteristics. According to the AER driving characteristic, the checking scheme of whether the AER characteristic is supported by the system or not is realized in advance, and when the AER characteristic is not supported by the RC, the error source can be positioned through the AER log detection program.
In this embodiment, the AER detection program mainly functions to check whether the RC supports the AER feature, because due to the feature of the AER driver (bound to the RC), if the RC does not support the AER feature, the whole system does not need to go on traversing the devices subsequent to the RC, so as to achieve the purpose of reducing the system initialization time, and further ensure that the system can know that the AER feature is supported as long as there is a corresponding virtual device or AER driver in the system. The main function of the AER log detection program is to check the AER status register of the device, and if an error is detected, print the information of the relevant register; the module is independent of whether the system supports the AER reporting function, and error information can be positioned through the module as long as the equipment supports the AER; and secondly, by adding a log control switch, the configuration can be flexibly carried out according to actual requirements.
In this embodiment, as shown in fig. 4, the specific steps of the AER log detection program are added with a log control switch, (aaer_log_ctrl=0 represents a closed log module, aaer_log_ctrl=1 represents an open log module), so that we can conveniently open and close the aaer log module, and debug can be flexibly performed, that is, if we do not support the AER reporting function in the system, but PCIe devices support the AER characteristic, we can still obtain detailed error information through the AER related registers, so that the problem can be found conveniently. Firstly traversing all equipment information in an equipment list, reading function information in equipment, and judging equipment types of the equipment information in the equipment list; the equipment type comprises RC equipment and bridge equipment, AER characteristic detection is carried out on the equipment information if the equipment information type is RC equipment, parent equipment information of the equipment information is obtained and the equipment type of the parent equipment information is determined if the equipment information type is bridge equipment, whether the parent equipment information is detected or not is judged if the information type of the parent equipment information is RC equipment, functional information in the parent equipment information is obtained if the parent equipment information is not detected, and AER characteristic detection is carried out on the parent equipment information based on the functional information in the parent equipment information; then judging whether the equipment information is detected (namely judging whether the ae_check is equal to 1), if the equipment information is not detected, acquiring the function information in the equipment information, judging whether AER is supported, if so, continuing to read an equipment state register, if so, judging whether certain errors occur according to the state register, if so, printing the state register information and all the error related register information, if not, skipping the current traversal, and continuing to traverse the next equipment; if the device information is detected (i.e. the rightmost ae_cap=1 in the corresponding graph), then the device status register is read continuously, from which one can see if some errors have occurred.
According to the method and the system, the AER log detection program can be flexibly configured according to requirements, flexible debugging is achieved, convenience is brought to developers, RC which does not support AER characteristics and traversal processes of all bridge devices connected with the RC can be filtered in advance through the AER detection program, initialization time is saved, and as long as AER driving is achieved in the system, the system can support the AER reporting function, and convenience is brought to the developers in checking whether the system supports the AER characteristics. According to the AER driving characteristic, the checking scheme of whether the AER characteristic is supported by the system or not is realized in advance, and when the AER characteristic is not supported by the RC, the error source can be positioned through the AER log detection program.
In this embodiment, whether local system configuration information supports AER is determined, if the system configuration information supports AER, an AER driver is obtained, and the AER driver is registered locally to obtain an AER driver program; determining all equipment information in a local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result; and if the detection result is that the equipment is supported, determining equipment characteristic information, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources. According to the method and the device, whether the system supports the AER characteristic or not is checked in advance according to the AER driving characteristic, and when the RC does not support the AER characteristic, the error source can be positioned through the AER log module, so that convenience is brought to a developer in checking whether the system supports the AER characteristic or not. According to the method and the system, the AER log detection program can be flexibly configured according to requirements, flexible debugging is achieved, convenience is brought to developers, RC which does not support AER characteristics and traversal processes of all bridge devices connected with the RC can be filtered in advance through the AER detection program, initialization time is saved, and as long as AER driving is achieved in the system, the system can support the AER reporting function, and convenience is brought to the developers in checking whether the system supports the AER characteristics. According to the AER driving characteristic, the checking scheme of whether the AER characteristic is supported by the system or not is realized in advance, and when the AER characteristic is not supported by the RC, the error source can be positioned through the AER log detection program.
Referring to fig. 5, the embodiment of the invention discloses an AER function configuration device, which specifically may include:
the judging module 11 is configured to judge whether local system configuration information supports AER, and if the system configuration information supports AER, acquire an AER driver, and register the AER driver to local to obtain an AER driver;
the detection module 12 is configured to determine all device information in the local device list, and perform AER characteristic detection on the device information to obtain a detection result;
and the AER function configuration module 13 is configured to determine equipment characteristic information if the detection result is supporting, acquire AER resources based on the equipment characteristic information, and configure AER functions according to the AER driver and the AER resources.
In some specific embodiments, the detection module 12 may specifically include:
the device type judging module is used for judging the device type of the device information in the device list by utilizing a locally preset AER detection program; the device types include RC devices and bridge devices;
and the detection module is used for detecting AER characteristics of the equipment information if the equipment information type is RC equipment.
In some specific embodiments, the detection module 12 may specifically include:
the detection judging module is used for judging whether the equipment information is detected or not;
and the function information acquisition module is used for acquiring the function information in the equipment information if the equipment information is not detected, and detecting AER characteristics of the equipment information based on the function information.
In some specific embodiments, the detection module 12 may specifically include:
the parent equipment type determining module is used for acquiring parent equipment information of the equipment information if the equipment information type is bridge equipment and determining the equipment type of the parent equipment information;
the parent equipment detection module is used for judging whether the parent equipment information is detected if the information type of the parent equipment information is RC equipment, acquiring the function information in the parent equipment information if the parent equipment information is not detected, and detecting AER characteristics of the parent equipment information based on the function information in the parent equipment information.
In some specific embodiments, the AER function configuration module 13 may specifically include:
the registration module is used for creating virtual equipment based on the AER resource and registering the virtual equipment to a local preset equipment driving model through a preset equipment driving model interface;
and the model binding module is used for binding the AER driver with the registered device driver model to obtain a bound device driver model.
In some specific embodiments, the AER function configuration module 13 may specifically include:
the initialization function acquisition module is used for acquiring an initialization function in the AER driver after the registered device driver model detects that the AER driver is successfully bound;
and the function execution module is used for executing the initialization function to obtain the configured device driving model.
In some specific embodiments, the AER function configuration module 13 may specifically include:
and the equipment error information determining module is used for sending the equipment information to a local preset AER log program if the detection result is not supported, so that the AER log program determines the equipment error information after acquiring the equipment information, and reports the equipment information and the equipment error information to print.
In this embodiment, whether local system configuration information supports AER is determined, if the system configuration information supports AER, an AER driver is obtained, and the AER driver is registered locally to obtain an AER driver program; determining all equipment information in a local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result; and if the detection result is that the equipment is supported, determining equipment characteristic information, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources. According to the method and the device, whether the system supports the AER characteristic or not is checked in advance according to the AER driving characteristic, and when the RC does not support the AER characteristic, the error source can be positioned through the AER log module, so that convenience is brought to a developer in checking whether the system supports the AER characteristic or not.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement relevant steps in the AER function configuration method performed by the electronic device as disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the AER function configuration method performed by the electronic device 20 disclosed in any of the previous embodiments. The data 223 may include, in addition to data received by the AER function configuration device and transmitted from an external device, data collected by the self input/output interface 25, and the like.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the AER function configuration method steps disclosed in any embodiment are realized.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description of the AER function configuration method, device, equipment and storage medium provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the above description of the embodiments is only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. An AER function configuration method, comprising:
judging whether local system configuration information supports AER, if the system configuration information supports AER, acquiring an AER driver, and registering the AER driver to the local to obtain an AER driver;
determining all equipment information in a local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result;
and if the detection result is that the equipment is supported, determining equipment characteristic information, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources.
2. The AER function configuration method according to claim 1 wherein the performing AER characteristic detection on the device information comprises:
judging the equipment type of the equipment information in the equipment list by utilizing a local preset AER detection program; the device types include RC devices and bridge devices;
and if the equipment information type is RC equipment, AER characteristic detection is carried out on the equipment information.
3. The AER function configuration method according to claim 2, wherein the performing AER characteristic detection on the device information comprises:
judging whether the equipment information is detected or not;
and if the equipment information is not detected, acquiring the function information in the equipment information, and detecting AER characteristics of the equipment information based on the function information.
4. The AER function configuration method of claim 2 further comprising:
if the equipment information type is bridge equipment, acquiring parent equipment information of the equipment information, and determining the equipment type of the parent equipment information;
if the information type of the parent equipment information is RC equipment, judging whether the parent equipment information is detected, if the parent equipment information is not detected, acquiring the function information in the parent equipment information, and detecting AER characteristics of the parent equipment information based on the function information in the parent equipment information.
5. The AER function configuration method according to claim 1 wherein the configuring of AER functions according to the AER drivers and AER resources comprises:
creating virtual equipment based on the AER resource, and registering the virtual equipment to a locally preset equipment driving model through a preset equipment driving model interface;
binding the AER driver with the registered device driver model to obtain a bound device driver model.
6. The AER function configuration method of claim 5 wherein after the obtaining the bound device driver model, further comprising:
after the registered device driver model detects that the AER driver is successfully bound, an initialization function in the AER driver is acquired;
and executing the initialization function to obtain the configured device driving model.
7. The AER function configuration method according to any one of claims 1 to 6 wherein after the obtaining of the detection result, further comprising:
if the detection result is that the equipment information is not supported, the equipment information is sent to a local preset AER log program, so that after the AER log program acquires the equipment information, equipment error information is determined, and the equipment information and the equipment error information are reported and printed.
8. An AER function configuration apparatus, comprising:
the judging module is used for judging whether the local system configuration information supports AER, if the system configuration information supports AER, acquiring an AER driver, and registering the AER driver to the local so as to obtain an AER driver program;
the detection module is used for determining all the equipment information in the local equipment list, and performing AER characteristic detection on the equipment information to obtain a detection result;
and the AER function configuration module is used for determining equipment characteristic information if the detection result is supporting, acquiring AER resources based on the equipment characteristic information, and configuring AER functions according to the AER driver and the AER resources.
9. An electronic device, comprising:
a memory for storing a computer program;
processor for executing the computer program to implement the AER function configuration method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the AER function configuration method according to any one of claims 1 to 7.
CN202211034555.9A 2022-08-26 2022-08-26 AER function configuration method, AER function configuration device, AER function configuration equipment and AER function configuration medium Pending CN116302145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211034555.9A CN116302145A (en) 2022-08-26 2022-08-26 AER function configuration method, AER function configuration device, AER function configuration equipment and AER function configuration medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211034555.9A CN116302145A (en) 2022-08-26 2022-08-26 AER function configuration method, AER function configuration device, AER function configuration equipment and AER function configuration medium

Publications (1)

Publication Number Publication Date
CN116302145A true CN116302145A (en) 2023-06-23

Family

ID=86776688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211034555.9A Pending CN116302145A (en) 2022-08-26 2022-08-26 AER function configuration method, AER function configuration device, AER function configuration equipment and AER function configuration medium

Country Status (1)

Country Link
CN (1) CN116302145A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331723A (en) * 2023-11-30 2024-01-02 苏州元脑智能科技有限公司 ARM safety firmware configuration method and device applied to ARM server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331723A (en) * 2023-11-30 2024-01-02 苏州元脑智能科技有限公司 ARM safety firmware configuration method and device applied to ARM server
CN117331723B (en) * 2023-11-30 2024-02-27 苏州元脑智能科技有限公司 ARM safety firmware configuration method and device applied to ARM server

Similar Documents

Publication Publication Date Title
KR101021394B1 (en) Programmatic computer problem diagnosis and resolution and automated reporting and updating of the same
CN113285822B (en) Method and system for troubleshooting hardware devices of a network switching fabric
KR101949115B1 (en) Self-diagnosis and automatic diagnostic data collection of device driver detection errors
WO2020019490A1 (en) Interface testing method, electronic device and storage medium
US8806277B1 (en) Systems and methods for fetching troubleshooting data
CN105183575A (en) Processor fault diagnosis method, device and system
CN106708748B (en) Method and system for improving mounting performance of OpenStack block storage volume
CN116681013B (en) Simulation verification method, platform, device, equipment and medium of network chip
CN116302145A (en) AER function configuration method, AER function configuration device, AER function configuration equipment and AER function configuration medium
US10157005B2 (en) Utilization of non-volatile random access memory for information storage in response to error conditions
CN114546676A (en) Cloud desktop file copying method, device and equipment
CN113609051A (en) Hot plug method, system, device and computer storage medium for expansion board
WO2024113778A1 (en) Holder determination method, apparatus and device for field replace unit device
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
US11861214B2 (en) Memory device forensics and preparation
CN110737509B (en) Thermal migration processing method and device, storage medium and electronic equipment
CN112783683B (en) Data processing method, device, equipment and storage medium
CN112765021A (en) Debugging and checking method, device, equipment and storage medium of boot program
CN114444423B (en) Data processing method and system based on verification platform and electronic equipment
CN116389357B (en) Hole address processing method, device, equipment and medium based on network on chip
CN112181742B (en) Board state changing method and device, IPMC and storage medium
CN113064749B (en) Method for controlling debugging information output at runtime stage through BIOS
CN111858325A (en) Task-level real-time debugging device and method based on hawk wing brightness operating system
CN116846761A (en) OpenBMC batch upgrading method, device, equipment and storage medium
CN115658578A (en) Method for realizing protection switching, computer storage medium and terminal

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