Skip to content
Snippets Groups Projects
user avatar
Jason Chien authored
In pcie_bus_realize(), a root bus is realized as a PCIe bus and a non-root
bus is realized as a PCIe bus if its parent bus is a PCIe bus. However,
the child bus "dw-pcie" is realized before the parent bus "pcie" which is
the root PCIe bus. Thus, the extended configuration space is not accessible
on "dw-pcie". The issue can be resolved by adding the
PCI_BUS_EXTENDED_CONFIG_SPACE flag to "pcie" before "dw-pcie" is realized.

Signed-off-by: default avatarJason Chien <jason.chien@sifive.com>
Message-Id: <20230809102257.25121-1-jason.chien@sifive.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarFrank Chang <frank.chang@sifive.com>
Signed-off-by: default avatarJason Chien &amp;lt;&lt;a href="mailto:jason.chien@sifive.com" <target="_blank"&gt;jason.chien@sifive.com&lt;/a&gt;&amp;gt;&lt;br>
3d449bc6
History