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

(cherry picked from commit 61e2161367bb4e68e603f53b1107f9427f988861)

Details

Provenance
cpercivaAuthored on Dec 27 2023, 8:09 AM
jhbCommitted on Jan 18 2024, 11:27 PM
Reviewer
jhb
Differential Revision
D43206: x86: Adjust base addr for PCI MCFG regions
Parents
rG0fb0306a89ad: x86: Support multiple PCI MCFG regions
Branches
Unknown
Tags
Unknown