[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 10/16] ppc/pnv: user creatable pnv-phb for powernv10
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH v2 10/16] ppc/pnv: user creatable pnv-phb for powernv10 |
Date: |
Tue, 31 May 2022 18:49:11 -0300 |
Given that powernv9 and powernv10 uses the same pnv-phb backend, the
logic to allow user created pnv-phbs for powernv10 is already in place.
This patch just flips the switch.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
hw/pci-host/pnv_phb4.c | 2 +-
hw/ppc/pnv.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/pci-host/pnv_phb4.c b/hw/pci-host/pnv_phb4.c
index e953aabcbe..8a907a77a7 100644
--- a/hw/pci-host/pnv_phb4.c
+++ b/hw/pci-host/pnv_phb4.c
@@ -1902,7 +1902,7 @@ static void pnv_phb5_root_port_class_init(ObjectClass
*klass, void *data)
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
dc->desc = "IBM PHB5 PCIE Root Port";
- dc->user_creatable = false;
+ dc->user_creatable = true;
k->vendor_id = PCI_VENDOR_ID_IBM;
k->device_id = PNV_PHB5_DEVICE_ID;
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index 697a2b5302..4d2ea405db 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -2210,6 +2210,8 @@ static void pnv_machine_power10_class_init(ObjectClass
*oc, void *data)
pmc->dt_power_mgt = pnv_dt_power_mgt;
xfc->match_nvt = pnv10_xive_match_nvt;
+
+ machine_class_allow_dynamic_sysbus_dev(mc, TYPE_PNV_PHB);
}
static bool pnv_machine_get_hb(Object *obj, Error **errp)
--
2.36.1
- [PATCH v2 00/16] powernv: introduce pnv-phb base/proxy devices, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 01/16] ppc/pnv: add PHB3 bus init helper, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 02/16] ppc/pnv: add pnv_get_phb3_child(), Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 03/16] ppc/pnv: add PnvPHB base/proxy device, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 04/16] ppc/pnv: change PnvPHB3 to be a PnvPHB backend, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 05/16] ppc/pnv: user created pnv-phb for powernv8, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 06/16] ppc/pnv: add PHB4 bus init helper, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 07/16] ppc/pnv: change PnvPHB4 to be a PnvPHB backend, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 08/16] ppc/pnv: user created pnv-phb for powernv9, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 09/16] ppc/pnv: change pnv_phb4_get_pec() to also retrieve chip10->pecs, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 10/16] ppc/pnv: user creatable pnv-phb for powernv10,
Daniel Henrique Barboza <=
- [PATCH v2 11/16] ppc/pnv: add pnv-phb-root-port device, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 12/16] ppc/pnv: remove pnv-phb3-root-port, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 13/16] ppc/pnv: remove pnv-phb4-root-port, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 14/16] ppc/pnv: remove 'phb_rootport_typename' in pnv_phb_realize(), Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 15/16] ppc/pnv: remove pecc->rp_model, Daniel Henrique Barboza, 2022/05/31
- [PATCH v2 16/16] ppc/pnv: remove PnvPHB4.version, Daniel Henrique Barboza, 2022/05/31