# US 2014/0372657 A1 · Hidden Base Address Register Programming in Peripheral Component Interconnect Express Buses

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

- Number: US 2014/0372657 A1
- Document ID: US20140372657A1
- Status: Published application
- Kind: A1
- Application number: 13/918,308
- Filed: 2013-06-14
- Published: 2014-12-18
- Earliest claimed: 2013-06-14
- Assignees: National Instruments Corporation
- Applicants: National Instruments Corporation
- Inventors: Craig S. Jones; Jonathan W. Hearn; Jason D. Tongen
- Web page: https://patentgrep.com/patent/US20140372657A1

## CPC

- G06F 13/4027: {using bus bridges (G06F13/4022 takes precedence)}
- G06F 2213/0026: PCI express
- G06F 2213/0058: Bus-related hardware virtualisation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A mapping and correspondence may be established between a virtual topology and a physical topology of a PCIe subsystem, and a host may be presented with the virtual topology but not the actual physical topology. A semi transparent bridge may couple an upstream host to the PCIe subsystem that includes intermediary bridges and respective PCIe endpoints coupled downstream from the intermediary bridges. The intermediary bridges may be hidden from the host, while the respective PCIe endpoints may be visible to the host. A configuration block may provide to the upstream host, during a setup mode, first memory allocation information corresponding to the intermediary switches, responsive to the upstream host expecting second memory allocation information corresponding to the respective PCIe endpoints. The configuration block may then provide to the upstream host, during a runtime mode, the second memory allocation information, responsive to the upstream host expecting the second memory allocation information.

## Claims

### Claim 1

A system comprising:
a semi transparent bridge configured to couple an upstream host to a downstream PCIe (Peripheral Component Interconnect Express) switch fabric, which comprises intermediary bridges and respective PCIe endpoints coupled downstream from the intermediary bridges, wherein the intermediary bridges are hidden from the upstream host and the respective PCIe endpoints are visible to the host; and
a configuration block configured to:
during a setup phase, provide, to the upstream host, first resource requirement information corresponding to the intermediary bridges as resource requirement information corresponding to the respective PCIe endpoints; and
during a runtime phase, provide, to the upstream host, second resource requirement information corresponding to the respective PCIe endpoints as the resource requirement information corresponding to the respective PCIe endpoints.

### Claim 2 (depends on 1)

The system of claim 1, wherein the first resource requirement information corresponds to memory allocation information to be stored in respective base address registers (BARs) and forwarding registers comprised in the intermediary bridges, and wherein the second resource requirement information corresponds to memory allocation information to be stored in respective BARs comprised in the respective PCIe endpoints.

### Claim 3 (depends on 1)

The system of claim 1, wherein the configuration block is configured to determine the first resource requirement information and the second resource requirement information during the setup phase by scanning the PCIe switch fabric.

### Claim 4 (depends on 1)

The system of claim 1, wherein the configuration block is configured to provide the first resource requirement information and the second requirement information through a configuration space register.

### Claim 5

A configuration block for configuring a PCIe (Peripheral Component Interconnect Express) subsystem that comprises PCIe devices to be coupled to a host system, the configuration block comprising:
an interface for communicating with the PCIe subsystem and the host system; and
a processing element configured to:
scan the PCIe subsystem during a setup phase;
identify the PCIe devices, responsive to scanning the PCIe subsystem;
identify one or more devices of the PCIe devices that are to be hidden from the host system, responsive, at least, to identifying the PCIe devices;
determine resource requirements for each device of the PCIe devices, responsive, at least, to identifying the PCIe devices and the one or more devices; and
during the setup phase, present, to the host system, resource requirements for a first virtual topology corresponding to a physical topology of the PCIe subsystem;
wherein the first virtual topology does not include the one or more hidden devices; and
wherein the resource requirements for the first virtual topology account for resource requirements of the one or more devices.

### Claim 6 (depends on 5)

The configuration block of claim 5, wherein the processing element is further configured to:
during a runtime phase subsequent to the setup phase, present, to the host system, resource requirements for a second virtual topology corresponding to the physical topology of the PCIe subsystem;
wherein the resource requirements for the second virtual topology represent actual respective hardware requirements of at least those devices of the PCIe devices that are visible to the host system.

### Claim 7 (depends on 6)

The configuration block of claim 6, wherein the processing element is further configured to switch from the setup phase to the runtime phase responsive to one or more of:
one or more actions performed by the host system; or
a trigger generated responsive to the PCIe subsystem having been configured.

### Claim 8 (depends on 7)

The configuration block of claim 7, wherein the one or more actions performed by the host system comprise the host system writing a top level bridge comprised in the PCIe subsystem.

### Claim 9 (depends on 6)

The configuration block of claim 6, wherein the second virtual topology is one of:
identical to the physical topology; or
not identical to the physical topology.

### Claim 10 (depends on 5)

The configuration block of claim 5, wherein the one or more devices comprise intermediary bridges.

### Claim 11 (depends on 5)

The configuration block of claim 5, wherein PCIe devices not hidden from the host are PCIe endpoints.

### Claim 12 (depends on 5)

The configuration block of claim 5, wherein the resource requirements for the first virtual topology comprise one or more of:
a single base address register (BAR) request for multiple endpoint BARs of a given type among the PCIe devices;
a single BAR request for a multifunction endpoint among the PCIe devices.

### Claim 13

A method for configuring and operating PCIe (Peripheral Component Interconnect Express) devices comprised in a PCIe subsystem coupled to a host system, the method comprising:
during a setup phase:
scanning the PCIe subsystem and identifying the PCIe devices;
determining respective resource requirements for each device of the PCIe devices;
identifying and hiding a set of devices of the PCIe devices from the host system; and
presenting to the host system modified respective resource requirements for each device of at least a subset of the PCIe devices, wherein the modified respective resource requirements differ from the determined respective resource requirements for each device of the at least a subset of the PCIe devices; and
wherein the modified resource requirements account for the determined respective resource requirements for each device of the set of devices.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
creating a virtual topology corresponding to a physical topology of the PCIe subsystem, wherein the virtual topology does not include the set of devices, and includes the at least a subset of the PCIe devices.

### Claim 15 (depends on 13)

The method of claim 13, further comprising:
requesting resource preallocation by the host system for the PCIe subsystem by representing the PCIe subsystem by a single configuration mode to the host system prior to said presenting.

### Claim 16 (depends on 13)

The method of claim 13, wherein the set of devices comprise one or more of:
one or more intermediary bridges; or
one or more endpoint devices.

### Claim 17 (depends on 13)

The method of claim 13, further comprising:
during a runtime phase subsequent to the setup phase:
presenting to the host system the determined respective resource requirements for each device of the at least a subset of the PCIe devices.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
transitioning from the setup phase to the runtime phase responsive to one or more of:
a trigger signal indicative of configuration of the PCIe subsystem having been completed; or
one or more actions performed by the host system.

### Claim 19 (depends on 18)

The method of claim 18, wherein the one or more actions by the host system comprise:
writing by the host system to a top level bridge of the PCIe devices.

### Claim 20 (depends on 18)

The method of claim 18, further comprising:
examining registers comprised in one or more devices of the PCIe devices;
generating the trigger signal responsive to said examining indicating that endpoint devices of the PCIe devices have been programmed.
