CN115470062A - Method, system, storage medium and equipment for checking configuration of BMC display chip - Google Patents

Method, system, storage medium and equipment for checking configuration of BMC display chip Download PDF

Info

Publication number
CN115470062A
CN115470062A CN202211270334.1A CN202211270334A CN115470062A CN 115470062 A CN115470062 A CN 115470062A CN 202211270334 A CN202211270334 A CN 202211270334A CN 115470062 A CN115470062 A CN 115470062A
Authority
CN
China
Prior art keywords
register
bmc
display chip
self
json file
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
CN202211270334.1A
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.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center 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 Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202211270334.1A priority Critical patent/CN115470062A/en
Publication of CN115470062A publication Critical patent/CN115470062A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express

Abstract

The invention provides a method, a system, a storage medium and equipment for checking BMC display chip configuration, wherein the method comprises the following steps: initializing a register of a display chip by a BIOS (basic input output System), obtaining first register information to be self-checked, storing the first register information into a JSON (Java Server object notation) file, and transmitting the JSON file to a BMC (baseboard management controller), wherein the JSON file contains related information for register classification according to a preset strategy; initializing a default configured register by the BMC to obtain second register information, and classifying the registers according to a preset strategy; reading the self-checking mark by the BMC to confirm whether the JSON file is completely transmitted; responding to the completion of transmission, analyzing the JSON file by the BMC, and storing the analyzed data into a list; and traversing the list, comparing the data in the list with the second register information, and correspondingly processing the register values of the registers of different types of the display chip according to the comparison result. The invention can find the display fault in the starting stage of the server, thereby avoiding influencing the user experience.

Description

Method, system, storage medium and equipment for checking configuration of BMC display chip
Technical Field
The invention relates to the technical field of servers, in particular to a method, a system, a storage medium and equipment for checking configuration of a BMC display chip.
Background
In the current server room, a separate display device is not generally configured like a personal computer due to space and heat dissipation limitations. Generally, the display chip is placed in a BMC (Baseboard Management Controller), and then the BMC provides the function of the display chip for the server, and then the server display screen is viewed by using a remote VNC (Virtual Network Console) or a KVM (Keyboard, video, or Mouse). The display chip performs initialization configuration during the startup of a BIOS (Basic Input Output System), and it is impossible to confirm whether the configuration of the display chip by the BIOS is correct because there is no display device. After the HOST is started after the BIOS is initialized, a display error of a server screen in the KVM or the VNC may occur, and a problem may not be found until a user or a server administrator uses the device, so that the user experience is not good.
In the prior art, the problem that display abnormality caused by configuration errors of a display chip cannot be corrected during system startup due to lack of checking of the configuration of a register of the display chip in the BMC is solved.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, a system, a storage medium and a device for checking a BMC display chip configuration, so as to solve the problem that a display abnormality caused by a configuration error of a display chip cannot be corrected during a system start period due to lack of checking the display chip register configuration in a BMC in the prior art.
Based on the above purpose, the present invention provides a method for checking configuration of a BMC display chip, comprising the following steps:
initializing a register of a display chip by a BIOS (basic input output System), obtaining first register information to be self-checked, storing the first register information into a JSON (Java Server object notation) file, and transmitting the JSON file to a BMC (baseboard management controller), wherein the JSON file contains related information for register classification according to a preset strategy;
initializing a default configured register by the BMC to obtain second register information, and classifying the registers according to a preset strategy;
reading the self-checking mark by the BMC to confirm whether the JSON file is completely transmitted;
responding to the completion of transmission, analyzing the JSON file by the BMC, and storing the analyzed data into a list;
traversing the list, comparing the data in the list with the second register information, and carrying out corresponding register value processing on different types of registers of the display chip according to the comparison result.
In some embodiments, reading, by the BMC, the self-check flag to confirm whether the transfer of the JSON file is completed comprises:
reading the self-checking mark by the BMC, and confirming whether the self-checking mark is set to a first preset value by the BIOS within preset time;
and responding to the fact that the self-checking mark is set to be a first preset numerical value within preset time, and confirming that the JSON file is transmitted completely.
In some embodiments, the method further comprises:
and determining that the self-checking fails in response to the self-checking flag not being set to the first predetermined value within the preset time.
In some embodiments, classifying the registers according to a predetermined policy includes:
the method comprises the steps of dividing the register into a fixed register class, a floating register class and a variable register class according to values of registers, wherein register values in the fixed register class are in a fixed invariable state, register values in the floating register class are in a variable state in a preset value range, and register values in the variable register class are in a variable state.
In some embodiments, the performing the corresponding register value processing on the different types of registers of the display chip according to the comparison result comprises:
in response to that the first register of the display chip belongs to the fixed register class and the corresponding comparison results are inconsistent, setting the value of the first register as the corresponding register value in the second register information;
in response to that the second register of the display chip belongs to the floating register class and the corresponding comparison results are inconsistent, resetting the value of the second register according to the actual scene, wherein the value of the second register is within a preset value range;
and resetting the value of the third register according to the actual scene in response to that the third register of the display chip belongs to the variable register class and the corresponding comparison results are inconsistent.
In some embodiments, the first register information includes register information of the PCIE configuration section and the display-related configuration section.
In some embodiments, the method further comprises:
and setting the self-checking mark to a second preset value by the BMC in response to the completion of the register value processing.
In another aspect of the present invention, a system for checking a configuration of a BMC display chip is further provided, including:
the JSON file module is configured and used for initializing a register of the display chip by the BIOS to obtain first register information to be self-checked, storing the first register information to a JSON file and transmitting the JSON file to the BMC, wherein the JSON file comprises related information for register classification according to a preset strategy;
the classification module is configured to initialize a default register by the BMC to obtain second register information and classify the second register information according to a preset strategy;
the confirming module is configured for reading the self-checking mark by the BMC to confirm whether the JSON file is completely transmitted;
the analysis module is configured to respond to the completion of the transmission, analyze the JSON file by the BMC and store the analyzed data into a list; and
and the processing module is configured for traversing the list, comparing the data in the list with the second register information, and correspondingly processing the register values of the registers of different types of the display chip according to the comparison result.
In yet another aspect of the present invention, a computer-readable storage medium is also provided, storing computer program instructions, which when executed by a processor, implement the above-described method.
In yet another aspect of the present invention, a computer device is further provided, which includes a memory and a processor, the memory storing a computer program, which when executed by the processor performs the above method.
The invention has at least the following beneficial technical effects:
the configuration of the BIOS on the display chip is checked to ensure that the necessary register configuration of the display chip is normal and the picture is displayed normally; the default configuration of the register of the display chip is saved through the BMC, and the register of the display chip can be recovered to be normal when the register of the display chip is detected to be abnormal, so that the system stability is improved by correcting the configuration error of the display chip in time; by implementing the embodiment in the server starting stage, the display related faults can be found as early as possible, the probability of display errors is reduced, and the influence on user experience caused by abnormal operation of the display chip due to configuration problems is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a method for checking a configuration of a BMC display chip according to an embodiment of the invention;
fig. 2 is a schematic diagram of a self-test flow of a configuration of a BMC display chip according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a system for checking configuration of a BMC display chip according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a computer-readable storage medium for implementing a method for checking a configuration of a BMC display chip according to an embodiment of the invention;
fig. 5 is a schematic hardware configuration diagram of a computer device for performing a method of checking a configuration of a BMC display chip according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two non-identical entities with the same name or different parameters, and it is understood that "first" and "second" are only used for convenience of expression and should not be construed as limiting the embodiments of the present invention. Moreover, the terms "comprises" and "comprising," as well as any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements does not include other steps or elements inherent in the present invention.
In view of the above objects, a first aspect of an embodiment of the present invention provides an embodiment of a method for checking a configuration of a BMC display chip. Fig. 1 is a schematic diagram illustrating an embodiment of a method for checking a configuration of a BMC display chip according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
step S10, initializing a register of a display chip by a BIOS (basic input output System) to obtain first register information to be self-checked, storing the first register information to a JSON (Java Server object notation) file, and transmitting the JSON file to a BMC (baseboard management controller), wherein the JSON file contains related information for register classification according to a preset strategy;
step S20, initializing a default configured register by the BMC to obtain second register information, and classifying the second register information according to a preset strategy;
step S30, reading the self-checking mark by the BMC to confirm whether the JSON file is completely transmitted;
s40, responding to the completion of transmission, analyzing the JSON file by the BMC, and storing the analyzed data into a list;
and S50, traversing the list, comparing the data in the list with the second register information, and correspondingly processing the register values of the registers of different types of the display chip according to the comparison result.
The embodiment of the invention ensures that the necessary register configuration of the display chip is normal and the picture is displayed normally by checking the configuration of the BIOS on the display chip; the default configuration of the register of the display chip is stored by the BMC, and the register of the display chip can be recovered to be normal when the register of the display chip is detected to be abnormal, so that the system stability is improved by correcting the configuration error of the display chip in time; by implementing the embodiment in the server starting stage, the display related faults can be found as early as possible, the probability of display errors is reduced, and the influence on user experience caused by abnormal operation of the display chip due to configuration problems is avoided.
The embodiment of the invention can configure the data of the relevant register through the default configuration file to adapt to different products and chips.
In some embodiments, the first register information includes register information of the PCIE configuration section and the display-related configuration section.
In some embodiments, classifying the registers according to a predetermined policy includes: the method comprises the steps of dividing the register into a fixed register class, a floating register class and a variable register class according to values of registers, wherein register values in the fixed register class are in a fixed invariable state, register values in the floating register class are in a variable state in a preset value range, and register values in the variable register class are in a variable state.
In the above embodiment, register information that needs to be self-checked may be transmitted between the BMC (Baseboard Management Controller) and the BIOS (Basic Input Output System) through a JSON (JavaScript Object notification, javaScript Object Notation, a lightweight data exchange format) file. These registers can be divided into two categories by function:
1) A PCIE configuration section. The part mainly comprises the first 64 bytes of information of a PCIE configuration space and the configuration of a base address register. After the information of the configuration space is initialized by the BIOS, the information is stored in the JSON file. The PCIE configuration space is a series of regularly arranged registers defined by a PCIE (peripheral component interconnect express, a high speed serial computer extended bus standard), and usually includes 256 bytes of data, which includes vendor id, device id, and base address register and other information related to the PCIE device.
2) The relevant configuration section is displayed. This section contains the necessary register settings for the display chip including PLL, MODE, FB ADDRESS, FB WIDTH, display WIDTH, height, bit depth, refresh rate, horizontal scan time, vertical scan time, refresh time, etc. Wherein the horizontal scan time, vertical scan time, and refresh time comprise a series of registers needed to calculate these times.
The BMC obtains the default register address and register data and the register address and data configured by the BIOS by parsing the JSON file, which is defined as follows by way of example:
Figure BDA0003894898360000071
Figure BDA0003894898360000081
Figure BDA0003894898360000091
the JSON file is simple in structure and easy to understand. The time of file generation, namely pci _ config and video _ config, is contained in the file system. In a JSON file, each set of data contains three parts: reg, data and description. Where reg indicates the register address and data is the register value.
In pci _ config, the data contains 64 bytes of value, and the BMC parses these binary data according to the pci configuration space format.
The video _ config comprises a plurality of register data consisting of reg and data, and the registers are divided into three types according to the value strategies: fixed register class, floating register class, and variable register class. The register value in the fixed register class is fixed, for example, the address of FB (frame buffer, which can be regarded as a memory area containing data to be displayed on a display) does not change in a system, and is a fixed value. In the floating register class, the data of the register is variable in a certain value range, for example, the screen resolution may have a value range of [1920x1080], [1024x768], [800x600], and the like, and the screen refresh rate may have a value range of [60hz ], [90hz ], but the value range is definite and can only take these values. In the variable register class, the value of the register is changed, and different values can be obtained according to different scenes and different parameters, for example, a position register of a hardware mouse can change along with different positions of the mouse.
All the register data can use big endian or little endian, and only the consistency of the BIOS and the BMC is required to be ensured. After the BIOS initializes the VIDEO (display module), the data is written into a predetermined JSON file according to the above format, and is read by the BMC in a self-test program.
In some embodiments, reading, by the BMC, the self-check flag to confirm whether the transfer of the JSON file is completed comprises: reading the self-checking mark by the BMC, and confirming whether the self-checking mark is set to a first preset value by the BIOS within preset time; and responding to the fact that the self-checking mark is set to be a first preset numerical value within preset time, and confirming that the JSON file is transmitted completely.
In some embodiments, the method further comprises: and determining that the self-checking fails in response to the self-checking flag not being set to the first predetermined value within the preset time.
In some embodiments, the method further comprises: in response to completion of the register value processing, the BMC sets the self-test flag to a second predetermined value.
In some embodiments, the performing the corresponding register value processing on the different types of registers of the display chip according to the comparison result comprises: in response to that the first register of the display chip belongs to the fixed register class and the corresponding comparison results are inconsistent, setting the value of the first register as the corresponding register value in the second register information; responding to the fact that a second register of the display chip belongs to the floating register class and corresponding comparison results are inconsistent, resetting the value of the second register according to an actual scene, wherein the value of the second register is within a preset value range; and resetting the value of the third register according to the actual scene in response to that the third register of the display chip belongs to the variable register class and the corresponding comparison results are inconsistent.
Fig. 2 is a schematic diagram of a self-test flow of the configuration of the BMC display chip according to an embodiment of the present invention. As shown in fig. 2, the BMC self-test procedure first reads a default configuration file (the configuration file format is similar to the JSON file format and includes a comprehensive register list), and initializes default configurations of local registers, which may be derived from the following points: 1. a chip data manual; 2. product characteristics; 3. generating a fixed algorithm; 4. and obtaining by other methods. During the initialization process of the register value, the registers are grouped according to the above strategy.
After initialization is complete, the BMC self-test routine waits until self _ flag (i.e., the self-test flag) is set to 1 (i.e., the first predetermined value) by the BIOS. If the value is not set to 1 within the specified time, the self-test fails and the process ends.
After self _ flag is set to 1, the BMC starts parsing the JSON file and stores the JSON file in the list according to a fixed format, and then traverses the list using a traversal algorithm, compares the initialized default value with the register value in the list, and performs corresponding processing according to different register grouping policies. The specific idea of the treatment is as follows: for the registers in the fixed register class, if the value set by the BIOS is inconsistent with the value of the default configuration, the value of the default configuration needs to be set; for the registers in the floating register class, if the value set by the BIOS is inconsistent with the default configuration range, resetting the register value according to the corresponding scene and parameters; for the registers in the variable register class, if the values set by the BIOS do not match the default values, the following aspects need to be combined for processing: 1. the meaning of the specific register; 2. a scenario of register association; 3. other parameters associated with the register; 4. other register values associated with the register, such as a hardware mouse position register, are considered valid if the position is within the screen display range.
After all register variables in the list are checked according to the process, the BMC sets self _ flag to 2 (namely, a second preset value), namely, the self-checking is successfully completed; if the self-test fails, self _ flag is set to-1. The value of self flag may provide a reference for developers to locate display problems.
The embodiment solves the problem that the abnormal display picture can not be corrected due to the configuration error of the display chip in the server starting stage, intercepts the configuration problem of the display chip possibly occurring in the server using stage of developers or server managers, improves the user experience and enhances the robustness of the display system. The default configuration file of the display chip can also provide reference for developers and server managers.
In a second aspect of the embodiments of the present invention, a system for checking a configuration of a BMC display chip is further provided. Fig. 3 is a schematic diagram illustrating an embodiment of a system for checking a configuration of a BMC display chip according to the present invention. As shown in fig. 3, a system for checking the configuration of a BMC display chip includes: a JSON file module 10 configured to initialize a register of the display chip by the BIOS to obtain first register information to be self-checked, store the first register information into a JSON file, and transmit the JSON file to the BMC, where the JSON file includes related information for performing register classification according to a preset policy; the classification module 20 is configured to initialize a default register by the BMC to obtain second register information, and classify the register according to a preset policy; a confirmation module 30 configured to read the self-check flag by the BMC to confirm whether the JSON file is completely transmitted; the analysis module 40 is configured to respond to the completion of the transmission, analyze the JSON file by the BMC, and store the analyzed data into a list; and a processing module 50 configured to traverse the list, compare the data in the list with the second register information, and perform corresponding register value processing on the registers of different types of the display chip according to the comparison result.
According to the system for checking the configuration of the BMC display chip, the configuration of the BIOS to the display chip is checked, so that the configuration of a necessary register of the display chip is normal, and a picture is normally displayed; the default configuration of the register of the display chip is stored by the BMC, and the register of the display chip can be recovered to be normal when the register of the display chip is detected to be abnormal, so that the system stability is improved by correcting the configuration error of the display chip in time; by implementing the embodiment in the server starting stage, the display related fault can be found as early as possible, the probability of display errors is reduced, and the influence on user experience caused by abnormal operation of the display chip due to configuration problems is avoided.
In a third aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, and fig. 4 is a schematic diagram of a computer-readable storage medium implementing a method for checking a configuration of a BMC display chip according to an embodiment of the present invention. As shown in fig. 4, the computer-readable storage medium 3 stores computer program instructions 31. The computer program instructions 31, when executed by a processor, implement the method of any of the embodiments described above.
It should be understood that all of the embodiments, features and advantages set forth above with respect to the method of checking a BMC display chip configuration according to the present invention are equally applicable to the system and the storage medium of checking a BMC display chip configuration according to the present invention, without conflicting therewith.
In a fourth aspect of the embodiment of the present invention, a computer device is further provided, which includes a memory 402 and a processor 401 as shown in fig. 5, where the memory 402 stores therein a computer program, and when the processor 401 executes the computer program, the computer program implements the method of any one of the above embodiments.
Fig. 5 is a schematic hardware diagram of an embodiment of a computer device for executing the method for checking the configuration of the BMC display chip according to the present invention. Taking the computer device shown in fig. 5 as an example, the computer device includes a processor 401 and a memory 402, and may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 5 illustrates an example of a connection by a bus. The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the system checking the configuration of the BMC display chip. The output device 404 may include a display device such as a display screen.
The memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for checking the configuration of the BMC display chip in the embodiment of the present application. The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by checking the use of the method of the BMC display chip configuration, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 401 executes various functional applications of the server and data processing by running the nonvolatile software program, instructions and modules stored in the memory 402, that is, implements the method of checking the configuration of the BMC display chip of the above-described method embodiment.
Finally, it is noted that the computer-readable storage medium (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also combinations between technical features in the above embodiments or in different embodiments are possible, and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit or scope of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for checking the configuration of a BMC display chip is characterized by comprising the following steps:
initializing a register of a display chip by a BIOS (basic input output System), obtaining first register information to be self-checked, storing the first register information into a JSON (Java Server object notation) file, and transmitting the JSON file to a BMC (baseboard management controller), wherein the JSON file contains related information for register classification according to a preset strategy;
initializing a default configured register by the BMC to obtain second register information, and classifying the registers according to the preset strategy;
reading a self-checking mark by the BMC to confirm whether the JSON file is transmitted completely;
responding to the completion of transmission, analyzing the JSON file by the BMC, and storing the analyzed data into a list;
and traversing the list, comparing the data in the list with the second register information, and carrying out corresponding register value processing on different types of registers of the display chip according to a comparison result.
2. The method of claim 1, wherein reading a self-check flag by the BMC to confirm whether the transmission of the JSON file is complete comprises:
reading a self-checking mark by the BMC, and confirming whether the self-checking mark is set to a first preset value by the BIOS within preset time;
and responding to the fact that the self-checking mark is built in the first preset value in the preset time, and confirming that the JSON file is transmitted completely.
3. The method of claim 2, further comprising:
and determining that the self-checking fails in response to the self-checking flag not being set to the first predetermined value within the preset time.
4. The method of claim 1, wherein the classifying the registers according to the predetermined policy comprises:
the method comprises the steps of dividing the register into a fixed register class, a floating register class and a variable register class according to values of registers, wherein register values in the fixed register class are in a fixed invariable state, register values in the floating register class are in a variable state in a preset value range, and register values in the variable register class are in a variable state.
5. The method of claim 4, wherein performing corresponding register value processing on different types of registers of the display chip according to the comparison result comprises:
responding to that a first register of the display chip belongs to the fixed register class and the corresponding comparison result is inconsistent, and setting the value of the first register as the corresponding register value in the second register information;
responding to the fact that a second register of the display chip belongs to the floating register class and corresponding comparison results are inconsistent, resetting the value of the second register according to an actual scene, wherein the value of the second register is within the preset value range;
and resetting the value of the third register according to the actual scene in response to that the third register of the display chip belongs to the variable register class and the corresponding comparison results are inconsistent.
6. The method of claim 1, wherein the first register information comprises register information of a PCIE configuration section and a display related configuration section.
7. The method of claim 1, further comprising:
and in response to the register value processing being completed, setting the self-test flag to a second predetermined value by the BMC.
8. A system for checking configuration of a BMC display chip, comprising:
the system comprises a JSON file module, a memory access module and a BMC (baseboard management controller), wherein the JSON file module is configured and used for initializing a register of a display chip by a BIOS (basic input output System) to obtain first register information to be self-checked, storing the first register information to be self-checked into a JSON file and transmitting the JSON file to the BMC, and the JSON file comprises related information for register classification according to a preset strategy;
the classification module is configured to initialize a default register by the BMC to obtain second register information and classify the register according to the preset strategy;
the confirming module is configured to read a self-checking mark by the BMC to confirm whether the JSON file is transmitted completely;
the analysis module is configured to respond to the completion of transmission, analyze the JSON file by the BMC and store the analyzed data in a list; and
and the processing module is configured to traverse the list, compare the data in the list with the second register information, and perform corresponding register value processing on different types of registers of the display chip according to a comparison result.
9. A computer-readable storage medium, characterized in that computer program instructions are stored which, when executed by a processor, implement the method according to any one of claims 1-7.
10. A computer device comprising a memory and a processor, characterized in that the memory has stored therein a computer program which, when executed by the processor, performs the method according to any one of claims 1-7.
CN202211270334.1A 2022-10-18 2022-10-18 Method, system, storage medium and equipment for checking configuration of BMC display chip Pending CN115470062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211270334.1A CN115470062A (en) 2022-10-18 2022-10-18 Method, system, storage medium and equipment for checking configuration of BMC display chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211270334.1A CN115470062A (en) 2022-10-18 2022-10-18 Method, system, storage medium and equipment for checking configuration of BMC display chip

Publications (1)

Publication Number Publication Date
CN115470062A true CN115470062A (en) 2022-12-13

Family

ID=84336212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211270334.1A Pending CN115470062A (en) 2022-10-18 2022-10-18 Method, system, storage medium and equipment for checking configuration of BMC display chip

Country Status (1)

Country Link
CN (1) CN115470062A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117056897A (en) * 2023-10-13 2023-11-14 沐曦集成电路(上海)有限公司 Configuration information processing method for chip verification, electronic device and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117056897A (en) * 2023-10-13 2023-11-14 沐曦集成电路(上海)有限公司 Configuration information processing method for chip verification, electronic device and medium
CN117056897B (en) * 2023-10-13 2023-12-26 沐曦集成电路(上海)有限公司 Configuration information processing method for chip verification, electronic device and medium

Similar Documents

Publication Publication Date Title
US20240007347A1 (en) Method and system for configuring bmc ip addresses of bare metal servers, medium and device
US10783066B2 (en) Application content display at target screen resolutions
CN111737137B (en) Interface test data generation method and device, host and storage medium
CN115470062A (en) Method, system, storage medium and equipment for checking configuration of BMC display chip
CN107817987B (en) Hardware configuration method, system, terminal and server
CN112817935A (en) Data processing method, device and equipment based on field type and storage medium
CN112434278A (en) Bare computer authentication method, apparatus, device and medium
CN112653693A (en) Industrial control protocol analysis method and device, terminal equipment and readable storage medium
US20200334358A1 (en) Method for detecting computer virus, computing device, and storage medium
CN113821301A (en) Virtual machine starting method, system, storage medium and equipment
CN108717357B (en) Page display code conversion method, device, equipment and computer storage medium
US11656601B2 (en) Method and electronic generation device for generating at least one configuration file for an automation tool, related computer program
CN112732427A (en) Data processing method, system and related device based on Redis cluster
CN112363935A (en) Data joint debugging method and device, electronic equipment and storage medium
CN108958823B (en) Method for modifying set value of basic input and output system
US11698849B2 (en) Automated application testing of mutable interfaces
WO2022134582A1 (en) Browser page test method and apparatus, computer device, and storage medium
CN112612568B (en) Workflow task item display method and device and electronic equipment
US11360713B2 (en) Semiconductor device and debug system
CN113535578A (en) CTS (clear to send) testing method, device and testing equipment
CN111427785A (en) Formalized task verification method and device, electronic equipment and computer readable medium
CN112559362A (en) Automatic testing method and testing device for dynamic user interface
US20200159646A1 (en) Information processing apparatus
CN112215593A (en) Payment method, payment device, server and storage medium
CN111475400A (en) Verification method of service platform and related equipment

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