# US 2021/0081349 A1 · Hot-plugged pcie device configuration system

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

- Number: US 2021/0081349 A1
- Document ID: US20210081349A1
- Status: Published application
- Kind: A1
- Application number: 17/102,591
- Filed: 2020-11-24
- Published: 2021-03-18
- Earliest claimed: 2017-09-15
- Assignees: Dell Products L.P.
- Applicants: Dell Products L.P.
- Inventors: Austin Patrick Bolen; Vijay Bharat Nijhawan
- Web page: https://patentgrep.com/patent/US20210081349A1

## CPC

- G06F 13/4081: {Live connection to bus, e.g. hot-plugging (current or voltage limitation during live insertion H02H9/004)}
- G06F 9/4411: {Configuring for operating with peripheral devices; Loading of device drivers}
- G06F 9/4413: {Plug-and-play [PnP]}
- G06F 2213/0026: PCI express
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A hot-plugged PCIe device configuration system includes a PCIe device with a PCIe configuration space having PCIe configuration space registers. A computing system includes a PCIe connector and a PCIe setting record database storing a first PCIe setting record having a first register write location value and first register value information. The computing system detects that the PCIe device has been hot-plugged into the PCIe connector, and uses the first register write location value in the first PCIe setting record to determine a location in the PCIe configuration space that provides a first PCIe configuration space register. The computing system then uses the first register value information in the first PCIe setting record to determine at least one register value change for the first PCIe configuration register, and writes the at least one register value change to the first PCIe configuration space register using the location.

## Claims

### Claim 1

A hot-plugged Peripheral Component Interconnect express (PCIe) device configuration system, comprising:
a PCIe device including a PCIe configuration space; and
a computing system that includes:
a PCIe connector;
a PCIe setting record database including a first PCIe setting record having a first register write location value and first register value information; and
an operating system coupled via a processing system to the PCIe connector, wherein the operating system is configured to:
receive, during initialization operations for the computing system, the first PCIe setting record;
detect, during runtime operations for the computing system, that the PCIe device has been hot-plugged to the PCIe connector;
determine, using the first register write location value in the first PCIe setting record, a location in the PCIe configuration space that provides a first PCIe configuration space register;
determine, using the first register value information in the first PCIe setting record, at least one register value change for the first PCIe configuration space register; and
write, using the location in the PCIe configuration space that provides the first PCIe configuration space register, the at least one register value change to the first PCIe configuration space register.

### Claim 2 (depends on 1)

The system of claim 1, wherein the determining the at least one register value change for the first PCIe configuration register includes determining a plurality of register value changes for the first PCIe configuration space register using an AND mask and an OR mask included in the first register value information, and wherein the plurality of value changes are written to the first PCIe configuration space register using the location in the PCIe configuration space that provides the first PCIe configuration space register.

### Claim 3 (depends on 1)

The system of claim 1, wherein the operating system is configured to:
read, prior to determining the at least one register value change for the first PCIe configuration register, the first PCIe configuration space register to identify a plurality of default values included in the first PCIe configuration space register, wherein at least one of the plurality of default values is overwritten with the at least one register value change.

### Claim 4 (depends on 1)

The system of claim 1, wherein the first PCIe setting record includes capability structure information for the first PCIe configuration space register, and wherein the operating system is configured to:
determine, using the capability structure information and the first register write location value in the first PCIe setting record, the location in the PCIe configuration space that provides the first PCIe configuration space register.

### Claim 5 (depends on 4)

The system of claim 4, wherein the capability structure information identifies whether the first PCIe configuration space register is located in a capability structure included in the PCIe configuration space, or located in an extended capability structure included in the PCIe configuration space.

### Claim 6 (depends on 4)

The system of claim 4, wherein the first PCIe setting record includes a PCIe capability identifier for the first PCIe configuration space register, and wherein the operating system is configured to:
determine, using the capability structure information, a structure in the PCIe configuration space that includes the first PCIe configuration space register;
determine, using the PCIe capability identifier for the first PCIe configuration space register, a start point of the first PCIe configuration space register in the structure in the PCIe configuration space; and
determine, using the first register write location value in the first PCIe setting record, an offset from the start point that provides the location in the PCIe configuration space that provides the first PCIe configuration space register.

### Claim 7

An Information Handling System (IHS), comprising:
a processing system; and
a memory system that is coupled to the processing system and that includes instructions that, when executed by the processing system, cause the processing system to provide an operating system engine that is configured to:
receive, during computing system initialization operations, a first PCIe setting record included in a PCI setting record database that is coupled to the processing system;
detect, during computing system runtime operations, that a PCIe device has been hot-plugged to a PCIe connector that is coupled to the processing system;
determine, using a first register write location value in the first PCIe setting record, a location in a PCIe configuration space that is included in the PCIe device and that provides a first PCIe configuration space register;
determine, using first register value information in the first PCIe setting record, at least one register value change for the first PCIe configuration space register; and
write, using the location in the PCIe configuration space that provides the first PCIe configuration space register, the at least one register value change to the first PCIe configuration space register.

### Claim 8 (depends on 7)

The IHS of claim 7, wherein the determining the at least one register value change for the first PCIe configuration register includes determining a plurality of register value changes for the first PCIe configuration space register using an AND mask and an OR mask included in the first register value information, and wherein the plurality of value changes are written to the first PCIe configuration space register using the location in the PCIe configuration space that provides the first PCIe configuration space register.

### Claim 9 (depends on 7)

The IHS of claim 7, wherein the operating system engine is configured to:
read, prior to determining the at least one register value change for the first PCIe configuration register, the first PCIe configuration space register to identify a plurality of default values included in the first PCIe configuration space register, wherein at least one of the plurality of default values is overwritten with the at least one register value change.

### Claim 10 (depends on 7)

The IHS of claim 7, wherein the first PCIe setting record includes capability structure information for the first PCIe configuration space register, and wherein the operating system engine is configured to:
determine, using the capability structure information and the first register write location value in the first PCIe setting record, the location in the PCIe configuration space that provides the first PCIe configuration space register.

### Claim 11 (depends on 10)

The IHS of claim 10, wherein the capability structure information identifies whether the first PCIe configuration space register is located in a capability structure included in the PCIe configuration space, or located in an extended capability structure included in the PCIe configuration space.

### Claim 12 (depends on 10)

The IHS of claim 10, wherein the first PCIe setting record includes a PCIe capability identifier for the first PCIe configuration space register, and wherein the operating system engine is configured to:
determine, using the capability structure information, a structure in the PCIe configuration space that includes the first PCIe configuration space register;
determine, using the PCIe capability identifier for the first PCIe configuration space register, a start point of the first PCIe configuration space register in the structure in the PCIe configuration space; and
determine, using the first register write location value in the first PCIe setting record, an offset from the start point that provides the location in the PCIe configuration space that provides the first PCIe configuration space register.

### Claim 13 (depends on 7)

The IHS of claim 7, wherein operating system engine is configured to:
advertise operating system support for the first PCIe setting record.

### Claim 14

A method for configuring a hot-plugged Peripheral Component Interconnect express (PCIe) device, comprising:
receiving, by an operating system in a computing system during computing system initialization operations, a first PCIe setting record included in a PCI setting record database;
detecting, by the operating system during computing system runtime operations, that a PCIe device has been hot-plugged to a PCIe connector;
determining, by the operating system using a first register write location value in the first PCIe setting record, a location in a PCIe configuration space that is included in the PCIe device and that provides a first PCIe configuration space register;
determining, by the operating system using first register value information in the first PCIe setting record, at least one register value change for the first PCIe configuration space register; and
writing, by the operating system using the location in the PCIe configuration space that provides the first PCIe configuration space register, the at least one register value change to the first PCIe configuration space register.

### Claim 15 (depends on 14)

The method of claim 14, wherein the determining the at least one register value change for the first PCIe configuration register includes determining a plurality of register value changes for the first PCIe configuration space register using an AND mask and an OR mask included in the first register value information, and wherein the plurality of value changes are written to the first PCIe configuration space register using the location in the PCIe configuration space that provides the first PCIe configuration space register.

### Claim 16 (depends on 14)

The method of claim 14, further comprising:
reading, by the operating system prior to determining the at least one register value change for the first PCIe configuration register, the first PCIe configuration space register to identify a plurality of default values included in the first PCIe configuration space register, wherein at least one of the plurality of default values is overwritten with the at least one register value change.

### Claim 17 (depends on 14)

The method of claim 14, wherein the first PCIe setting record includes capability structure information for the first PCIe configuration space register, and wherein the method further comprises:
determining, by the operating system using the capability structure information and the first register write location value in the first PCIe setting record, the location in the PCIe configuration space that provides the first PCIe configuration space register.

### Claim 18 (depends on 17)

The method of claim 17, wherein the capability structure information identifies whether the first PCIe configuration space register is located in a capability structure included in the PCIe configuration space, or located in an extended capability structure included in the PCIe configuration space.

### Claim 19 (depends on 17)

The method of claim 17, wherein the first PCIe setting record includes a PCIe capability identifier for the first PCIe configuration space register, and wherein the method further comprises:
determining, by the operating system using the capability structure information, a structure in the PCIe configuration space that includes the first PCIe configuration space register;
determining, by the operating system using the PCIe capability identifier for the first PCIe configuration space register, a start point of the first PCIe configuration space register in the structure in the PCIe configuration space; and
determining, by the operating system using the first register write location value in the first PCIe setting record, an offset from the start point that provides the location in the PCIe configuration space that provides the first PCIe configuration space register.

### Claim 20 (depends on 14)

The method of claim 14, further comprising:
advertising, by the operating system, support for the first PCIe setting record.
