GPIO (General Purpose Input/Output) configuration detection method and device and server

A detection method and a technology of a detection device, which are applied in the direction of using configuration testing to detect faulty hardware, program control devices, and faulty computer hardware, etc., and can solve problems such as tests that cannot fully cover functional tests, error-prone, GPIO configuration errors, etc.

Active Publication Date: 2021-07-06
SHANDONG YINGXIN COMP TECH CO LTD
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, some functions of GPIO settings can be tested, but most of the functions may not have corresponding functional test cases. When verifying the configuration, it is generally read through tools, and manually check the GPIO configuration one by one.
However, there are many GPIOs in the PCH. Manual inspection is time-consuming and error-prone, and can only be inspected by developers. The test cannot fully cover the functional test, and it is prone to functional abnormalities caused by GPIO configuration errors.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • GPIO (General Purpose Input/Output) configuration detection method and device and server
  • GPIO (General Purpose Input/Output) configuration detection method and device and server
  • GPIO (General Purpose Input/Output) configuration detection method and device and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Such as figure 1 As shown, the present embodiment provides a GPIO configuration detection method, comprising the following steps:

[0043] S1, initialize each GPIO and hardware;

[0044] S2, read the pin logic of each GPIO in turn;

[0045] S3, comparing the read pin logic with the standard logic in the pre-stored logic detection table, and judging whether the two are consistent;

[0046] S4, outputting the comparison result, if the two are consistent, the GPIO configuration is normal, otherwise the GPIO configuration is abnormal.

[0047] This method first pre-stores the logic detection table, which stores the pin standard logic of each GPIO. After reading the pin logic of each GPIO, the configuration of the GPIO is automatically detected by matching and comparing with the standard logic in the table. No need for manual inspection, improve detection efficiency.

[0048] The method of this embodiment is executed during the booting process of the BIOS, automatically ...

Embodiment 2

[0071] Such as image 3 As shown, on the basis of Embodiment 1, this embodiment provides a GPIO configuration detection device, which executes the method of Embodiment 1 after operation, including the following functional modules.

[0072] Initialization module 101: initialize each GPIO and hardware;

[0073] Pin logic reading module 102: read the pin logic of each GPIO in turn;

[0074] Pin logic comparison module 103: compare the read pin logic with the standard logic in the pre-stored logic detection table, and judge whether the two are consistent;

[0075] Result output module 104: output the comparison result, if the two are consistent, then the GPIO configuration is normal; otherwise, the GPIO configuration is abnormal.

[0076] The device runs during the BIOS boot process, wherein the pin logic reading module, pin logic comparison module, and result output module run in the DXE stage of the BIOS boot process, that is, the initialization of GPIO and hardware is complet...

Embodiment 3

[0081] This embodiment provides a server. When the server is started, the method in Embodiment 1 is executed, and GPIO configuration detection is implemented during the server BIOS startup process.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a GPIO (General Purpose Input / Output) configuration detection method and device and a server. Firstly, each GPIO and hardware are initialized; after initialization, pin logics of all GPIOs are read in sequence; the read pin logic is compared with standard logic in a pre-stored logic detection table, and whether the read pin logic and the standard logic are consistent or not is judged; and a comparison result is output, if the read pin logic and the standard logic are consistent consistent, determining that the GPIO configuration is normal, otherwise, determining that the GPIO configuration is abnormal. According to the method and device, a logic detection table is pre-stored, pin standard logic of GPIO is stored in the table, a machine is started to automatically collect pin information of GPIO, the collected information is matched with the pre-stored standard logic, automatic detection is carried out, and a detection result is obtained and output. According to the method, and device, the correctness of the GPIO configuration in the current PCH can be obtained, the testability of the GPIO function is enhanced, the test integrity is perfected, and the detection efficiency is effectively improved.

Description

technical field [0001] The invention relates to the field of GPIO configuration detection, in particular to a GPIO configuration detection method, device and server. Background technique [0002] With the upgrade of server PCH chips, more and more GPIOs of PCH are added. The setting of GPIO is determined by the hardware. In the startup phase, a single GPIO is configured according to the hardware design, and the Native function or GPIO function is selected. Taking the GPIO function as an example, the GPIO function is configured as input and output signals, and the number of configured input and output signals depends on the hardware configuration. When configured as an output signal, it can be configured as a high level or a low level, and the path bit of the GPIO allows input of an SMI (system control interrupt), SCI (system management interrupt) or NMI (non-maskable interrupt) interrupt, each bit Can be used as the path of SMI or SCI, some registers of GPIO can be changed...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/4401G06F11/22
CPCG06F9/4401G06F11/2289
Inventor 罗鹏芳杨少俊王兵
Owner SHANDONG YINGXIN COMP TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products