Information display method, system, device and computer readable storage medium

By obtaining target instructions in the operating system and triggering system firmware interrupts, reading and displaying graphics processor information, the problem that users cannot view graphics processors under the operating system is solved, and the user experience is improved.

CN119739593APending Publication Date: 2025-04-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202412000533.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

Users cannot view the graphics processor installed on the server under the operating system, resulting in poor user experience.

Method used

By obtaining target instructions for reading graphics processor information in the operating system, the system firmware interrupt is triggered, so that the system firmware control management controller can read the target information of the graphics processor and receive the target information transmitted by the management controller, and finally display these information in the operating system according to the set display method.

Benefits of technology

It realizes the independent display of graphics processor information under the operating system, meets the needs of users to view graphics processors, and improves the user's application experience with the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119739593A_ABST
    Figure CN119739593A_ABST
Patent Text Reader

Abstract

The present application discloses an information display method, system, device and computer-readable storage medium, which relates to the field of server technology and is applied to an operating system to obtain a target instruction for reading information of a graphics processor; respond to the target instruction, trigger an interruption of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and then the system firmware receives the target information transmitted by the management controller; receives the target information transmitted by the system firmware; and displays the target information in a set display mode. The present application realizes the acquisition of the target information of the graphics processor for display by managing the system firmware and the management controller with the help of the operating system, so that the operating system can autonomously display the information of the graphics processor, which can meet the needs of users to view the graphics processor under the operating system, thereby improving the user's application experience of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and more specifically, to an information display method, system, device and computer-readable storage medium. Background Art

[0002] A graphics processing unit (GPU) is a coprocessor used to process images and graphics operations. As the types of GPUs increase, the ways to connect GPUs to servers also increase, which helps expand the functions of servers. However, different types of GPUs have different ways of viewing, which makes it impossible for users to view the GPUs installed on the server under the operating system, resulting in a poor user experience for server applications.

[0003] In summary, how to display information of a graphics processor under an operating system is a problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] The purpose of the present application is to provide an information reading method, which can solve the technical problem of how to display information of a graphics processor under an operating system to a certain extent. The present application also provides an information display system, an electronic device and a computer-readable storage medium.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] An information reading method, applied to an operating system, comprising:

[0007] Get target instructions for reading graphics processor information;

[0008] In response to the target instruction, triggering an interrupt of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and then the system firmware receives the target information transmitted by the management controller;

[0009] receiving the target information transmitted by the system firmware;

[0010] The target information is displayed according to the set display mode.

[0011] In an exemplary embodiment, it further includes:

[0012] How to obtain information about the graphics processor;

[0013] The information reading method is stored in a set non-volatile memory, so that the management controller reads the information reading method stored in the non-volatile memory and reads information from the graphics processor.

[0014] In an exemplary embodiment, the triggering of the interruption of the system firmware includes:

[0015] A write input / output operation is performed on the system firmware to cause the system firmware to enter an interrupt.

[0016] An information reading method, applied to system firmware, comprising:

[0017] In response to the operating system triggering an interrupt of the system firmware, controlling the management controller to read target information of the graphics processor;

[0018] receiving the target information transmitted by the management controller;

[0019] Transmitting the target information to the operating system so that the operating system displays the target information according to a set display mode;

[0020] The operating system triggers an interruption of the system firmware after responding to a target instruction for reading graphics processor information.

[0021] In an exemplary embodiment, in response to the operating system triggering the interruption of the system firmware, before the control management controller reads the target information of the graphics processor, the method further includes:

[0022] In the driver execution environment stage of the system firmware, determining whether to set an interrupt through the user interface of the system firmware;

[0023] In response to determining to set an interrupt through a user interface of the system firmware, registering an interrupt in the system firmware;

[0024] Collect the physical location information and model information of the graphics processor;

[0025] In response to the operating system triggering the interruption of the system firmware, controlling the management controller to read the target information of the graphics processor includes:

[0026] During the operation phase of the system firmware, detecting whether an interrupt is triggered;

[0027] In response to the triggering interrupt, sending the physical location information and model information of the graphics processor to the management controller;

[0028] Generate an intelligent platform management interface command representing information reading from a graphics processor;

[0029] Sending the intelligent platform management interface command to the management controller, so that the management controller determines the communication address of the graphics processor according to the physical location information and the model information, and then the management controller reads the target information of the graphics processor according to the communication address;

[0030] After transmitting the target information to the operating system, the method further includes:

[0031] Exit interrupt.

[0032] In an exemplary embodiment, before transmitting the target information to the operating system, the method further includes:

[0033] Detecting whether the target information contains garbled characters;

[0034] In response to the target information not having garbled characters, detecting whether the target information exceeds a preset information range;

[0035] In response to the target information not exceeding the information range, the step of transmitting the target information to the operating system is performed.

[0036] In an exemplary embodiment, the system firmware includes a basic input output system.

[0037] An information reading system, applied to an operating system, comprising:

[0038] A first acquisition module, used for acquiring a target instruction for reading graphics processor information;

[0039] A first trigger module, configured to respond to the target instruction and trigger an interrupt of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and further enables the system firmware to receive the target information transmitted by the management controller;

[0040] A first receiving module, configured to receive the target information transmitted by the system firmware;

[0041] The first display module is used to display the target information in a set display mode.

[0042] An electronic device, comprising:

[0043] Memory for storing computer programs;

[0044] A processor is used to implement the steps of any of the above-mentioned information reading methods when executing the computer program.

[0045] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned information reading methods are implemented.

[0046] The present application provides an information reading method, which is applied to an operating system, obtains a target instruction for reading information of a graphics processor; responds to the target instruction, triggers an interruption of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and then the system firmware receives the target information transmitted by the management controller; receives the target information transmitted by the system firmware; and displays the target information according to the set display mode. In the present application, after the operating system obtains the target instruction and responds, it triggers an interruption of the system firmware, so that after the system firmware enters the interruption, it can read the information of the graphics processor through the management controller to obtain the target information, and then the operating system can obtain the target information for display, so that the target information of the graphics processor can be obtained by managing the system firmware and the management controller with the help of the operating system, and the operating system can display the graphics processor information autonomously, which can meet the user's needs to view the graphics processor under the operating system, thereby improving the user's application experience of the server. The information reading system, electronic device and computer-readable storage medium provided by the present application also solve the corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0048] Figure 1 A flowchart of an information reading method provided in an embodiment of the present application;

[0049] Figure 2 Another flow chart of an information reading method provided in an embodiment of the present application;

[0050] Figure 3 A schematic diagram of the structure of an information reading system provided in an embodiment of the present application;

[0051] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0052] Figure 5 Another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0054] With the development of the Internet and the popularization of smart devices, computers and servers have become very important tools in work and study and are widely used in various fields. As a result, the demand for high computing power and high bandwidth has increased. PCIe (peripheral component interconnect express) devices serve as a bridge between high-performance computing hardware such as CPU (Central Processing Unit) and GPU and server systems, and their importance in servers has become increasingly prominent.

[0055] In terms of the consistency of graphics processor drivers, suppliers provide special drivers that support automatic updates and manual driver searches to ensure that different models of graphics processor products can obtain the best performance and compatibility. However, the graphics processors provided by different suppliers are different, and the viewing methods of different types of graphics processors are different, resulting in users being unable to view the graphics processors installed on the server under the operating system. The user's application experience on the server is poor, which poses a great challenge to servers with extremely high compatibility. How to be compatible with various graphics processor manufacturers and match graphics processor devices from different manufacturers to achieve adaptive adaptation. In the long run, the best way is to formulate unified standards, and each server manufacturer develops equipment, firmware and drivers in accordance with unified standards, which is difficult to achieve at this stage. To this end, this application proposes a solution for adaptively viewing information of different graphics processors. Without the help of the driver provided by the supplier, the information of the graphics processor can be directly viewed under the operating system.

[0056] See also Figure 1 , Figure 1 A flowchart of an information reading method provided in an embodiment of the present application.

[0057] An information reading method provided in an embodiment of the present application, applied to an operating system, may include the following steps:

[0058] Step S101: Obtain a target instruction for reading graphics processor information.

[0059] In actual applications, the server's operating system can first obtain a target instruction for reading the graphics processor information, so as to obtain and display the graphics processor information under the triggering of the target instruction. The operating system can obtain the target instruction for reading the graphics processor information by user triggering. For example, the dmidecode tool can be integrated into the operating system, and a type dedicated to reading the graphics processor information is added to the tool to trigger the reading and display process of the graphics processor information under user operation.

[0060] Step S102: responding to the target instruction, triggering an interruption of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and further enables the system firmware to receive the target information transmitted by the management controller.

[0061] Step S103: receiving target information transmitted by the system firmware.

[0062] Step S104: Display the target information according to the set display mode.

[0063] In actual applications, after the operating system responds to the target instruction, it can trigger the interruption of the system firmware; in this way, the system firmware will enter the interruption, control the management controller to read the target information of the graphics processor, and receive the target information transmitted by the management controller and transmit it to the operating system. The corresponding operating system can receive the target information obtained by the system firmware and display the target information according to the display method set by the user, such as the operating system displays the target information at the set position on the screen according to the set color, font size, font type, etc. Among them, the target information of the graphics processor can be flexibly determined according to the application scenario, for example, the target information of the graphics processor may include the model, manufacturer, physical location, temperature, utilization rate, etc. of the graphics processor.

[0064] In specific application scenarios, considering that different graphics processors have different information reading methods, in order to enable the management controller to accurately and effectively read information from the graphics processor, the operating system can also obtain the information reading method of the graphics processor; store the information reading method in a set non-volatile memory, so that when the management controller needs to read information from the graphics processor, it can read the information reading method stored in the non-volatile memory, and read information from the graphics processor according to the corresponding information reading method.

[0065] In a specific application scenario, the operating system can perform input / output (I / O) operations on the system firmware during the process of triggering an interrupt of the system firmware, so that the system firmware enters an interrupt. That is, the operating system only needs to perform a simple write I / O operation to trigger an interrupt of the system firmware, thereby improving the interaction efficiency between the operating system and the system firmware.

[0066] It should be noted that the types of system firmware and management controller in the present application can be flexibly set according to actual needs, as long as they can implement the solution of the present application. For example, the system firmware can be a basic input and output system (BIOS), and the management controller can be a baseboard management controller (Baseboard Management Controller), iLO (Integrated Light-Out), iDRAC (Integrated Dell Remote Access Controller), etc.

[0067] The present application provides an information reading method, which is applied to an operating system, obtains a target instruction for reading information of a graphics processor; responds to the target instruction, triggers an interruption of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and then the system firmware receives the target information transmitted by the management controller; receives the target information transmitted by the system firmware; and displays the target information according to a set display mode. In the present application, after the operating system obtains the target instruction and responds, it triggers an interruption of the system firmware, so that after the system firmware enters the interruption, it can read the information of the graphics processor through the management controller to obtain the target information, and then the operating system can obtain the target information for display, so that the target information of the graphics processor can be obtained and displayed by managing the system firmware and the management controller with the help of the operating system, so that the operating system can autonomously display the information of the graphics processor, which can meet the needs of users to view the graphics processor under the operating system, thereby improving the user's application experience of the server.

[0068] See also Figure 2 , Figure 2 Another flow chart of an information reading method provided in an embodiment of the present application.

[0069] An information reading method provided in an embodiment of the present application, applied to system firmware, may include the following steps:

[0070] Step S201: in response to the operating system triggering an interrupt of the system firmware, the management controller is controlled to read target information of the graphics processor.

[0071] Step S202: receiving target information transmitted by the management controller.

[0072] Step S203: transmitting the target information to the operating system so that the operating system displays the target information according to the set display mode; wherein the operating system triggers an interrupt of the system firmware after responding to the target instruction for reading the graphics processor information.

[0073] In a specific application scenario, the system firmware, in response to the operating system triggering the interrupt of the system firmware, controls the management controller to read the target information of the graphics processor, and can also determine whether to set the interrupt through the user interface of the system firmware in the driver execution environment (DXE) stage of the system firmware, that is, the user can decide whether to set the interrupt through the user interface of the system firmware. In response to the determination to set the interrupt through the user interface of the system firmware, the interrupt is registered in the system firmware to collect the physical location information and model information of the graphics processor; in this way, in response to the operating system triggering the interrupt of the system firmware, the system firmware controls the management controller to read the target information of the graphics processor. In the process, it can detect whether the interrupt is triggered in the runtime stage of the system firmware. In response to the triggering of the interrupt, the physical location information and model information of the graphics processor are sent to the management controller, and an intelligent platform management interface command representing the information reading of the graphics processor is generated, and the intelligent platform management interface command is sent to the management controller, so that the management controller determines the communication address of the graphics processor according to the physical location information and the model information, and then the management controller reads the target information of the graphics processor according to the communication address. This communication address can be I2C (Inter-Integrated Circuit, bidirectional two-wire synchronous serial bus) address, etc.; in addition, after transmitting the target information to the operating system, the system firmware can also exit the interrupt to end the information reading operation on the graphics processor, so that other functions other than obtaining the graphics processor information can be executed.

[0074] It can be seen from the implementation process that the user can decide whether to set an interrupt through the user interface of the system firmware, and the system firmware registers the interrupt in the system firmware in response to the determination of setting the interrupt through the user interface in the driver execution environment stage, which satisfies the user's decision whether to set the interrupt in the system firmware to read the information of the graphics processor, and improves the user's application experience of the system firmware. In addition, the system firmware can collect the physical location information and model information of the graphics processor in the driver execution environment stage, and after detecting the triggering interrupt in the running stage, send the physical location information and model information of the graphics processor to the management controller, generate an intelligent platform management interface command representing the information reading of the graphics processor, and send the intelligent platform management interface command to the management controller, so that the management controller can quickly determine the communication address of the graphics processor according to the physical location information and model information, and then enable the management controller to read the target information of the graphics processor according to the communication address, so that the management controller can quickly and accurately read the information of the graphics processor, thereby improving the information display efficiency; in addition, after transmitting the target information to the operating system, the system firmware can also exit the interrupt to end the information reading operation of the graphics processor, so that other functions other than obtaining the graphics processor information can be executed.

[0075] In a specific application scenario, after receiving the target information transmitted by the management firmware, the system firmware can also detect whether the target information contains garbled characters before transmitting the target information to the operating system; in response to the target information not containing garbled characters, it detects whether the target information exceeds a preset information range; in response to the target information not exceeding the information range, it executes the step of transmitting the target information to the operating system. In this way, the system firmware transmits the target information to the operating system only after the target information contains no garbled characters and the target information does not exceed the information range, which can ensure that the operating system obtains correct and valid target information for display, thereby improving the accuracy of the graphics processor information display.

[0076] In a specific application scenario, when there is garbled code in the target information or the target information exceeds the information range, it can be determined that the target information is wrong and the number of errors in the target information can be accumulated; it is detected whether the number of errors in the target information exceeds the set number, if not, it returns to sending the intelligent platform management interface command to the management controller and the subsequent steps, if it exceeds, the server is controlled to restart. In this way, even if there is garbled code in the target information or the target information exceeds the information range, the present application can re-read the information of the graphics processor by re-sending the intelligent platform management interface command to the management controller, so as to ensure that the correct information of the graphics processor is read by re-reading the operation for the set number of times, and when the correct information of the graphics processor cannot be read by re-reading the operation for the set number of times, the information of the graphics processor can be re-read by restarting the server, which can improve the success rate of information reading of the graphics processor and improve the success rate of the present application scheme.

[0077] For the relevant description of the information reading method applied to the system firmware provided in the present application, please refer to the above embodiments, which will not be repeated here.

[0078] In order to facilitate understanding of the information reading solution provided by the present application, it is now assumed that the system firmware is a basic input and output system and the management controller is a baseboard management controller. The whole process may include the following steps:

[0079] In the driver execution environment stage, the basic input and output system determines whether to set an interrupt through its own user interface. In response to the determination of setting an interrupt through the user interface of the system firmware, the basic input and output system registers an interrupt to collect the physical location information and model information of the graphics processor; that is, an option of whether to set an interrupt can be provided in the user interface of the basic input and output system, and the option can be a virtual button or an instruction with a selection box, etc. In this way, the user only needs to operate the option to inform the basic input and output system whether to set an interrupt to enable the process of reading the graphics processor information. For example, after the user clicks the virtual button, the basic input and output system can determine that an interrupt needs to be set to enable the subsequent process of reading the graphics processor information, etc.;

[0080] The user triggers the preset information in the dmidecode tool integrated into the operating system;

[0081] After the operating system detects that the preset information in the integrated dmidecode tool is triggered, it performs a write input / output operation on the basic input / output system;

[0082] After the basic input / output system enters the operation phase, if the write input / output operation is detected, an interrupt is entered, the physical location information and model information of the graphics processor collected in the driver execution environment phase are sent to the baseboard management controller, an intelligent platform management interface command representing information reading of the graphics processor is generated, and the intelligent platform management interface command is sent to the baseboard management controller;

[0083] The baseboard management controller responds to the intelligent platform management interface command, determines the bidirectional two-wire synchronous serial bus address of the graphics processor according to the physical location information and the model information, reads the target information of the graphics processor according to the bidirectional two-wire synchronous serial bus address, and transmits the read target information to the basic input and output system;

[0084] The basic input / output system receives the target information transmitted by the baseboard management controller, and detects whether the target information contains garbled characters; in response to the target information not containing garbled characters, detects whether the target information exceeds a preset information range; in response to the target information not exceeding the information range, transmits the target information to the operating system;

[0085] The operating system displays the target information at the set position on the screen according to the set color, font size, and font type.

[0086] See also Figure 3 , Figure 3 A schematic diagram of the structure of an information reading system provided in an embodiment of the present application.

[0087] An information reading system provided in an embodiment of the present application is applied to an operating system and may include:

[0088] A first acquisition module 101 is used to acquire a target instruction for reading graphics processor information;

[0089] A first trigger module 102, for responding to a target instruction and triggering an interruption of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and then the system firmware receives the target information transmitted by the management controller;

[0090] The first receiving module 103 is used to receive target information transmitted by the system firmware;

[0091] The first display module 104 is used to display the target information in a set display mode.

[0092] An information reading system provided in an embodiment of the present application is applied to an operating system and may further include:

[0093] A second acquisition module is used to acquire the information reading method of the graphics processor;

[0094] The first storage module is used to store the information reading method in a set non-volatile memory, so that the management controller reads the information reading method stored in the non-volatile memory and reads information from the graphics processor.

[0095] An information reading system provided in an embodiment of the present application is applied to an operating system, and a first trigger module may include:

[0096] The first trigger unit is used to perform a write input / output operation on the system firmware to cause the system firmware to enter an interrupt.

[0097] An information reading system provided in an embodiment of the present application, applied to system firmware, may include:

[0098] A first control module, configured to control the management controller to read target information of the graphics processor in response to an interrupt of the system firmware triggered by the operating system;

[0099] A second receiving module, used for receiving target information transmitted by the management controller;

[0100] A first transmission module, used for transmitting target information to the operating system, so that the operating system displays the target information according to a set display mode;

[0101] The operating system triggers an interrupt of the system firmware after responding to a target instruction for reading the graphics processor information.

[0102] An information reading system provided in an embodiment of the present application is applied to system firmware and may further include:

[0103] A first judgment module is used for the first control module to respond to the operating system triggering the interrupt of the system firmware, and then control the management controller to read the target information of the graphics processor, and determine whether to set the interrupt through the user interface of the system firmware in the driver execution environment stage of the system firmware; in response to the determination of setting the interrupt through the user interface of the system firmware, register the interrupt in the system firmware; and collect the physical location information and model information of the graphics processor;

[0104] The first control module may include:

[0105] A first detection unit is used to detect whether an interrupt is triggered during the operation phase of the system firmware; in response to the interrupt being triggered, the physical location information and model information of the graphics processor are sent to the management controller;

[0106] A first generating unit, configured to generate an intelligent platform management interface command representing information reading from a graphics processor;

[0107] A first sending unit is used to send an intelligent platform management interface command to the management controller, so that the management controller determines the communication address of the graphics processor according to the physical location information and the model information, and then the management controller reads the target information of the graphics processor according to the communication address;

[0108] It may also include:

[0109] The first setting module is used for exiting the interruption after the first transmission module transmits the target information to the operating system.

[0110] An information reading system provided in an embodiment of the present application is applied to system firmware and may further include:

[0111] The first detection module is used to detect whether there is garbled code in the target information before the first transmission module transmits the target information to the operating system; in response to the target information not having garbled code, it detects whether the target information exceeds a preset information range; in response to the target information not exceeding the information range, it executes the step of transmitting the target information to the operating system.

[0112] An information reading system provided by an embodiment of the present application is applied to system firmware, and the system firmware may include a basic input and output system.

[0113] The present application also provides an electronic device and a computer-readable storage medium, both of which have the corresponding effects of the information reading method provided in the embodiments of the present application. Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0114] An electronic device provided in an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program, the steps of the information reading method described in any of the above embodiments are implemented.

[0115] See also Figure 5 , another electronic device provided in the embodiment of the present application may also include: an input port 203 connected to the processor 202, for transmitting commands input from the outside to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing results of the processor 202 to the outside; a communication module 205 connected to the processor 202, for realizing communication between the electronic device and the outside. The display unit 204 can be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (Mobile High-Definition Link, MHL), Universal Serial Bus (Universal Serial Bus, USB), High-Definition Multimedia Interface (High-DefinitionMultimedia Interface, HDMI), wireless connection: wireless fidelity technology (WIreless Fidelity, WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.

[0116] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the information reading method described in any of the above embodiments are implemented.

[0117] The computer-readable storage medium involved in this application includes random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs (Compact Disc Read-Only Memory), or any other form of storage medium known in the technical field.

[0118] A computer program product provided in an embodiment of the present application includes a computer program / instruction. When the computer program / instruction is executed by a processor, the following steps are implemented:

[0119] Get target instructions for reading graphics processor information;

[0120] Responding to the target instruction, triggering an interruption of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and then the system firmware receives the target information transmitted by the management controller;

[0121] Receive target information transmitted by system firmware;

[0122] Displays target information according to the set display method.

[0123] A computer program product provided in an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: obtaining an information reading method of a graphics processor; storing the information reading method in a set non-volatile memory, so that a management controller reads the information reading method stored in the non-volatile memory and reads information from the graphics processor.

[0124] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: performing a write input / output operation on system firmware to cause the system firmware to enter an interrupt.

[0125] A computer program product provided in an embodiment of the present application includes a computer program / instruction. When the computer program / instruction is executed by a processor, the following steps are implemented:

[0126] In response to the operating system triggering an interrupt of the system firmware, the management controller is controlled to read the target information of the graphics processor;

[0127] receiving target information transmitted by the management controller;

[0128] Transmitting the target information to the operating system so that the operating system displays the target information according to a set display mode;

[0129] The operating system triggers an interrupt of the system firmware after responding to a target instruction for reading the graphics processor information.

[0130] A computer program product provided by an embodiment of the present application includes a computer program / instruction. When the computer program / instruction is executed by a processor, the following steps are implemented: in response to an operating system triggering an interrupt of a system firmware, before a control management controller reads target information of a graphics processor, in a driver execution environment stage of the system firmware, determining whether to set an interrupt through a user interface of the system firmware; in response to determining to set an interrupt through the user interface of the system firmware, registering the interrupt in the system firmware; and collecting physical location information and model information of the graphics processor;

[0131] In response to the operating system triggering an interrupt of the system firmware, the management controller is controlled to read target information of the graphics processor, including:

[0132] During the operation phase of the system firmware, detect whether the interrupt is triggered;

[0133] In response to the triggering interrupt, sending the physical location information and model information of the graphics processor to the management controller;

[0134] Generate an intelligent platform management interface command representing information reading from a graphics processor;

[0135] Sending an intelligent platform management interface command to the management controller, so that the management controller determines the communication address of the graphics processor according to the physical location information and the model information, and then the management controller reads the target information of the graphics processor according to the communication address;

[0136] After transferring the target information to the operating system, exit the interrupt.

[0137] A computer program product provided in an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: before transmitting the target information to the operating system, detecting whether the target information contains garbled characters; in response to the target information not containing garbled characters, detecting whether the target information exceeds a preset information range; in response to the target information not exceeding the information range, executing the step of transmitting the target information to the operating system.

[0138] A computer program product provided by an embodiment of the present application includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the following steps are implemented: the system firmware includes a basic input and output system.

[0139] For the description of the relevant parts of an information display system, an electronic device, and a computer-readable storage medium provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in the information display method provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above-mentioned technical solutions provided in the embodiments of the present application that are consistent with the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.

[0140] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0141] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for reading information, characterized in that: Applies to operating systems, including: Get target instructions for reading graphics processor information; In response to the target instruction, triggering an interrupt of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and then the system firmware receives the target information transmitted by the management controller; receiving the target information transmitted by the system firmware; The target information is displayed according to the set display mode.

2. The method according to claim 1, characterized in that Also includes: How to obtain information about the graphics processor; The information reading method is stored in a set non-volatile memory, so that the management controller reads the information reading method stored in the non-volatile memory and reads information from the graphics processor.

3. The method according to claim 1, characterized in that The triggering system firmware interruption includes: A write input / output operation is performed on the system firmware to cause the system firmware to enter an interrupt.

4. An information reading method, characterized in that: Applied to system firmware, including: In response to the operating system triggering an interrupt of the system firmware, controlling the management controller to read target information of the graphics processor; receiving the target information transmitted by the management controller; Transmitting the target information to the operating system so that the operating system displays the target information according to a set display mode; The operating system triggers an interruption of the system firmware after responding to a target instruction for reading graphics processor information.

5. The method according to claim 4, characterized in that In response to the operating system triggering the interruption of the system firmware, before controlling the management controller to read the target information of the graphics processor, the method further includes: In the driver execution environment stage of the system firmware, determining whether to set an interrupt through the user interface of the system firmware; In response to determining to set an interrupt through a user interface of the system firmware, registering an interrupt in the system firmware; Collect the physical location information and model information of the graphics processor; In response to the operating system triggering the interruption of the system firmware, controlling the management controller to read the target information of the graphics processor includes: During the operation phase of the system firmware, detecting whether an interrupt is triggered; In response to the triggering interrupt, sending the physical location information and model information of the graphics processor to the management controller; Generate an intelligent platform management interface command representing information reading from a graphics processor; Sending the intelligent platform management interface command to the management controller, so that the management controller determines the communication address of the graphics processor according to the physical location information and the model information, and then the management controller reads the target information of the graphics processor according to the communication address; After transmitting the target information to the operating system, the method further includes: Exit interrupt.

6. The method according to claim 5, characterized in that Before transmitting the target information to the operating system, the method further includes: Detecting whether the target information contains garbled characters; In response to the target information not having garbled characters, detecting whether the target information exceeds a preset information range; In response to the target information not exceeding the information range, the step of transmitting the target information to the operating system is performed.

7. The method according to claim 4, characterized in that The system firmware includes a basic input and output system.

8. An information reading system, characterized in that: Applies to operating systems, including: A first acquisition module, used for acquiring a target instruction for reading graphics processor information; A first trigger module, configured to respond to the target instruction and trigger an interrupt of the system firmware, so that the system firmware controls the management controller to read the target information of the graphics processor, and further enables the system firmware to receive the target information transmitted by the management controller; A first receiving module, configured to receive the target information transmitted by the system firmware; The first display module is used to display the target information in a set display mode.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the information reading method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the information reading method according to any one of claims 1 to 7 are implemented.