# US 2023/0273893 A1 · Method for dynamically modifying pch pcie root port where onboard vga is located

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0273893 A1
- Document ID: US20230273893A1
- Status: Published application
- Kind: A1
- Application number: 18/028,475
- Filed: 2021-04-26
- Published: 2023-08-31
- Earliest claimed: 2020-10-29
- Assignees: Inspur Suzhou Intelligent Technology Co., Ltd.
- Applicants: Inspur Suzhou Intelligent Technology Co., Ltd.
- Inventors: Huijuan QIAN; Bing WANG; Fanyi YAO
- Web page: https://patentgrep.com/patent/US20230273893A1

## CPC

- G06F 13/4221: {being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus}
- G06F 13/102: {where the program performs an interfacing function, e.g. device driver (G06F13/105 takes precedence; contention policies within device drivers G06F9/4881; scheduling within device drivers G06F9/52)}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method, apparatus, and device for dynamically modifying a PCH PCIE root port where an onboard VGA is located, and a readable storage medium. The current item may be determined at a PEI phase by reading a GPIO interface, and a target PCH PCIE root port used by the item is further determined; then configuration information is acquired, and a target onboard VGA is found and initialized; because a video bridge configuration file defined in an SDL file is saved in a structure of a temporary file when code is compiled, in the method, the value of a target member of the structure is modified as the port number of the target PCH PCIE root port at a DXE phase, so that a video bridge is switched to the target PCH PCIE root port.

## Claims

### Claim 1

A method for dynamically modifying a PCH PCIE root port where an onboard VGA is located, comprising:
in a PEI phase, reading a preset GPIO interface, and determining a current item according to a reading result; and determining a target PCH PCIE root port corresponding to the current item;
acquiring input information to obtain configuration information corresponding to the target PCH PCIE root port; and according to the configuration information, determining a target onboard VGA and initializing the target onboard VGA; and
in a DXE phase, modifying a value of a target member of a target structural body to a port number of the target PCH PCIE root port according to a modification instruction to switch a video bridge to the target PCH PCIE root port, wherein the target structural body is a structural body stored in a temporary file generated according to a video bridge configuration file when a code is compiled.

### Claim 2 (depends on 1)

The method according to claim 1, wherein in the PEI phase, reading the preset GPIO interface, and determining the current item according to the reading result comprises:
setting an item ID for each item of a current platform; and
in the PEI phase, reading the preset GPIO interface to obtain the reading result; and determining the item ID as an item of the reading result and regarding the item of the reading result as the current item.

### Claim 3 (depends on 1)

The method according to claim 1, wherein acquiring the input information to obtain the configuration information corresponding to the target PCH PCIE root port comprises:
acquiring the input information to obtain the configuration information corresponding to the target PCH PCIE root port, and the configuration information comprises: a bus number, a device number and a function number.

### Claim 4 (depends on 1)

The method according to claim 1, wherein before in the PEI phase, reading the preset GPIO interface, and determining the current item according to the reading result, the method further comprises:
setting a value of a target parameter in the video bridge configuration file to be a port number of a default PCH PCIE root port, wherein the default PCH PCIE root port is the PCH PCIE root port that is compatible with most items in all PCH PCIE root ports of the current platform, and the target parameter generates the target member when the code is compiled.

### Claim at position 5

5-8. (canceled)

### Claim 9 (depends on 1)

A device for dynamically modifying a PCH PCIE root port where an onboard VGA is located, comprising:
a memory configured for storing computer programs; and
a processor configured for executing the computer programs to implement the method for dynamically modifying the PCH PCIE root port where the onboard VGA is located according to claim 1.

### Claim 10

A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, when the computer program is executed by a processor, the computer program is configured to implement the method for dynamically modifying the PCH PCIE root port where the onboard VGA is located according to claim .

### Claim 11 (depends on 1)

The method according to claim 1, wherein after determining the target PCH PCIE root port corresponding to the current item, the onboard VGA is initialized by using the target PCH PCIE root port.

### Claim 12 (depends on 1)

The method according to claim 1, wherein in the DXE phase, the PCH PCIE root port where the onboard VGA is located is modified by code.

### Claim 13 (depends on 2)

The method according to claim 2, wherein on the current platform, different items find the onboard VGA through different PCH PCIE root ports and initialize the onboard VGA.

### Claim 14 (depends on 9)

The device according to claim 9, wherein in the PEI phase, reading the preset GPIO interface, and determining the current item according to the reading result comprises:
setting an item ID for each item of a current platform; and
in the PEI phase, reading the preset GPIO interface to obtain the reading result; and determining the item ID as an item of the reading result and regarding the item of the reading result as the current item.

### Claim 15 (depends on 9)

The device according to claim 9, wherein acquiring the input information to obtain the configuration information corresponding to the target PCH PCIE root port comprises:
acquiring the input information to obtain the configuration information corresponding to the target PCH PCIE root port, and the configuration information comprises: a bus number, a device number and a function number.

### Claim 16 (depends on 9)

The device according to claim 9, wherein before in the PEI phase, reading the preset GPIO interface, and determining the current item according to the reading result, the method further comprises:
setting a value of a target parameter in the video bridge configuration file to be a port number of a default PCH PCIE root port, wherein the default PCH PCIE root port is the PCH PCIE root port that is compatible with most items in all PCH PCIE root ports of the current platform, and the target parameter generates the target member when the code is compiled.

### Claim 17 (depends on 9)

The device according to claim 9, wherein after determining the target PCH PCIE root port corresponding to the current item, the onboard VGA is initialized by using the target PCH PCIE root port.

### Claim 18 (depends on 9)

The device according to claim 9, wherein in the DXE phase, the PCH PCIE root port where the onboard VGA is located is modified by code.

### Claim 19 (depends on 14)

The device according to claim 14, wherein on the current platform, different items find the onboard VGA through different PCH PCIE root ports and initialize the onboard VGA.

### Claim 20 (depends on 10)

The computer-readable storage medium according to claim 10, wherein in the PEI phase, reading the preset GPIO interface, and determining the current item according to the reading result comprises:
setting an item ID for each item of a current platform; and
in the PEI phase, reading the preset GPIO interface to obtain the reading result; and determining the item ID as an item of the reading result and regarding the item of the reading result as the current item.

### Claim 21 (depends on 10)

The computer-readable storage medium according to claim 10, wherein acquiring the input information to obtain the configuration information corresponding to the target PCH PCIE root port comprises:
acquiring the input information to obtain the configuration information corresponding to the target PCH PCIE root port, and the configuration information comprises: a bus number, a device number and a function number.

### Claim 22 (depends on 10)

The computer-readable storage medium according to claim 10, wherein before in the PEI phase, reading the preset GPIO interface, and determining the current item according to the reading result, the method further comprises:
setting a value of a target parameter in the video bridge configuration file to be a port number of a default PCH PCIE root port, wherein the default PCH PCIE root port is the PCH PCIE root port that is compatible with most items in all PCH PCIE root ports of the current platform, and the target parameter generates the target member when the code is compiled.

### Claim 23 (depends on 10)

The computer-readable storage medium according to claim 10, wherein after determining the target PCH PCIE root port corresponding to the current item, the onboard VGA is initialized by using the target PCH PCIE root port.

### Claim 24 (depends on 10)

The computer-readable storage medium according to claim 10, wherein in the DXE phase, the PCH PCIE root port where the onboard VGA is located is modified by code.
