]> git.proxmox.com Git - mirror_qemu.git/commit
include/hw/pci/pcie_host: Correct PCIE_MMCFG_BUS_MASK
authorFrancisco Iglesias <frasse.iglesias@gmail.com>
Mon, 11 Apr 2022 22:18:35 +0000 (00:18 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 16 May 2022 20:15:40 +0000 (16:15 -0400)
commit8e58f6ec24f64b7d88f2b01d39049011f5097fae
tree01a75c118270b5944ed60f28927898f51f1bc025
parent76b1b64370007234279ea4cc8b09c98cbd2523de
include/hw/pci/pcie_host: Correct PCIE_MMCFG_BUS_MASK

According to [1] address bits 27 - 20 are mapped to the bus number (the
TLPs bus number field is 8 bits). Below is the formula taken from Table
7-1 in [1].

"
Memory Address | PCI Express Configuration Space
A[(20+n-1):20] | Bus Number, 1 ≤ n ≤ 8
"

[1] PCI Express® Base Specification Revision 5.0 Version 1.0

Signed-off-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Message-Id: <20220411221836.17699-2-frasse.iglesias@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/hw/pci/pcie_host.h