HomeFreeBSD

x86: Adjust base addr for PCI MCFG regions

Description

x86: Adjust base addr for PCI MCFG regions

Each bus gets 1 MB of address space; the actual base address for an
MCFG bus range is the address from the table plus the starting bus
number times 1 MB.

The PCI spec is unclear on this point, but this change matches what
Linux does, which is likely enough of a de facto standard regardless
of what any de jure standard might attempt to say.

Fixes: f54a3890b1f4 ("x86: Support multiple PCI MCFG regions")
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D43206

Details

Provenance
cpercivaAuthored on Dec 27 2023, 8:09 AM
Reviewer
jhb
Differential Revision
D43206: x86: Adjust base addr for PCI MCFG regions
Parents
rGb46c7b1ed4e5: nvme: Add some bits from NVMe 2.0c spec.
Branches
Unknown
Tags
Unknown