[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/17] ppc/pnv: user creatable pnv-phb for powernv10
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH 12/17] ppc/pnv: user creatable pnv-phb for powernv10 |
Date: |
Sat, 7 May 2022 16:06:19 -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 f911957f10..fb3222d458 100644
--- a/hw/pci-host/pnv_phb4.c
+++ b/hw/pci-host/pnv_phb4.c
@@ -1861,7 +1861,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 1a3cafcb7a..bb193b1ed3 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -2174,6 +2174,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.32.0
- [PATCH 03/17] ppc/pnv: rename PnvPHB3.dma_spaces to PnvPHB3.v3_dma_spaces, (continued)
- [PATCH 03/17] ppc/pnv: rename PnvPHB3.dma_spaces to PnvPHB3.v3_dma_spaces, Daniel Henrique Barboza, 2022/05/07
- [PATCH 04/17] ppc/pnv: add unified pnv-phb header, Daniel Henrique Barboza, 2022/05/07
- [PATCH 05/17] ppc/pnv: add pnv-phb device, Daniel Henrique Barboza, 2022/05/07
- [PATCH 06/17] ppc/pnv: remove PnvPHB3, Daniel Henrique Barboza, 2022/05/07
- [PATCH 07/17] ppc/pnv: user created pnv-phb for powernv8, Daniel Henrique Barboza, 2022/05/07
- [PATCH 08/17] ppc/pnv: remove PnvPHB4, Daniel Henrique Barboza, 2022/05/07
- [PATCH 09/17] ppc/pnv: user creatable pnv-phb for powernv9, Daniel Henrique Barboza, 2022/05/07
- [PATCH 10/17] ppc/pnv: use PnvPHB.version, Daniel Henrique Barboza, 2022/05/07
- [PATCH 11/17] ppc/pnv: change pnv_phb4_get_pec() to also retrieve chip10->pecs, Daniel Henrique Barboza, 2022/05/07
- [PATCH 14/17] ppc/pnv: add pnv-phb-root-port device, Daniel Henrique Barboza, 2022/05/07
- [PATCH 12/17] ppc/pnv: user creatable pnv-phb for powernv10,
Daniel Henrique Barboza <=
- [PATCH 16/17] ppc/pnv: remove pnv-phb4-root-port, Daniel Henrique Barboza, 2022/05/07
- [PATCH 13/17] ppc/pnv: add pnv_phb_get_current_machine(), Daniel Henrique Barboza, 2022/05/07
- [PATCH 15/17] ppc/pnv: remove pnv-phb3-root-port, Daniel Henrique Barboza, 2022/05/07
- [PATCH 17/17] ppc/pnv: remove pecc->rp_model, Daniel Henrique Barboza, 2022/05/07
- Re: [PATCH 00/17] powernv: introduce pnv-phb unified devices, Mark Cave-Ayland, 2022/05/09
- Re: [PATCH 00/17] powernv: introduce pnv-phb unified devices, Frederic Barrat, 2022/05/10