[PATCH v4 11/14] hw/pci-host/aspeed: Disable Root Device and place Root Port at 00:00.0 to AST2700

Jamin Lin via posted 14 patches 1 month, 1 week ago
There is a newer version of this series
[PATCH v4 11/14] hw/pci-host/aspeed: Disable Root Device and place Root Port at 00:00.0 to AST2700
Posted by Jamin Lin via 1 month, 1 week ago
AST2700 does not implement a PCIe Root Device; each RC exposes a single
PCIe Root Port at devfn 0:0.0.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
---
 hw/pci-host/aspeed_pcie.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/pci-host/aspeed_pcie.c b/hw/pci-host/aspeed_pcie.c
index a757fd7ec8..f7593444fc 100644
--- a/hw/pci-host/aspeed_pcie.c
+++ b/hw/pci-host/aspeed_pcie.c
@@ -829,6 +829,8 @@ static void aspeed_2700_pcie_cfg_class_init(ObjectClass *klass,
     apc->nr_regs = 0x100 >> 2;
     apc->rc_msi_addr = 0x000000F0;
     apc->rc_bus_nr = 0;
+    apc->rc_has_rd = false;
+    apc->rc_rp_addr = PCI_DEVFN(0, 0);
 }
 
 static const TypeInfo aspeed_2700_pcie_cfg_info = {
-- 
2.43.0
Re: [SPAM] [PATCH v4 11/14] hw/pci-host/aspeed: Disable Root Device and place Root Port at 00:00.0 to AST2700
Posted by Cédric Le Goater 1 month, 1 week ago
On 9/19/25 05:24, Jamin Lin wrote:
> AST2700 does not implement a PCIe Root Device; each RC exposes a single
> PCIe Root Port at devfn 0:0.0.
> 
> Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
> ---
>   hw/pci-host/aspeed_pcie.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/hw/pci-host/aspeed_pcie.c b/hw/pci-host/aspeed_pcie.c
> index a757fd7ec8..f7593444fc 100644
> --- a/hw/pci-host/aspeed_pcie.c
> +++ b/hw/pci-host/aspeed_pcie.c
> @@ -829,6 +829,8 @@ static void aspeed_2700_pcie_cfg_class_init(ObjectClass *klass,
>       apc->nr_regs = 0x100 >> 2;
>       apc->rc_msi_addr = 0x000000F0;
>       apc->rc_bus_nr = 0;
> +    apc->rc_has_rd = false;
> +    apc->rc_rp_addr = PCI_DEVFN(0, 0);
>   }
>   
>   static const TypeInfo aspeed_2700_pcie_cfg_info = {



Reviewed-by: Cédric Le Goater <clg@redhat.com>

Thanks,

C.