[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 19/20] ppc/pnv: Always create the PHB5 PEC devices
From: |
Cédric Le Goater |
Subject: |
[PULL 19/20] ppc/pnv: Always create the PHB5 PEC devices |
Date: |
Tue, 15 Mar 2022 07:37:35 +0100 |
From: Frederic Barrat <fbarrat@linux.ibm.com>
Always create the PECs (PCI Express Controller) for the system. The
PECs host the PHBs and we try to find the matching PEC when creating a
PHB, so it must exist. It also matches what we do on POWER9
Fixes: 623575e16cd5 ("ppc/pnv: Add model for POWER10 PHB5 PCIe Host bridge")
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
[ clg: - Rewored commit log
- Removed dynamic PHB5 ]
Message-Id: <20220310155101.294568-3-fbarrat@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
hw/ppc/pnv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index 0ac86e104fa0..e7cd8b62ca43 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -1600,9 +1600,7 @@ static void pnv_chip_power10_instance_init(Object *obj)
object_initialize_child(obj, "occ", &chip10->occ, TYPE_PNV10_OCC);
object_initialize_child(obj, "homer", &chip10->homer, TYPE_PNV10_HOMER);
- if (defaults_enabled()) {
- chip->num_pecs = pcc->num_pecs;
- }
+ chip->num_pecs = pcc->num_pecs;
for (i = 0; i < chip->num_pecs; i++) {
object_initialize_child(obj, "pec[*]", &chip10->pecs[i],
--
2.34.1
- [PULL 00/20] ppc fixes for 7.0, Cédric Le Goater, 2022/03/15
- [PULL 01/20] qtest/meson.build: check CONFIG_TCG for prom-env-test in qtests_ppc, Cédric Le Goater, 2022/03/15
- [PULL 09/20] avocado/ppc_405.py: check TCG accel in test_ppc_ref405ep(), Cédric Le Goater, 2022/03/15
- [PULL 06/20] avocado/boot_linux_console.py: check TCG accel in test_ppc_g3beige(), Cédric Le Goater, 2022/03/15
- [PULL 03/20] avocado/boot_linux_console.py: check for tcg in test_ppc_powernv8/9, Cédric Le Goater, 2022/03/15
- [PULL 14/20] avocado/ppc_virtex_ml507.py: check TCG accel in test_ppc_virtex_ml507(), Cédric Le Goater, 2022/03/15
- [PULL 12/20] avocado/ppc_mpc8544ds.py: check TCG accel in test_ppc_mpc8544ds(), Cédric Le Goater, 2022/03/15
- [PULL 08/20] avocado/ppc_405.py: remove test_ppc_taihu(), Cédric Le Goater, 2022/03/15
- [PULL 19/20] ppc/pnv: Always create the PHB5 PEC devices,
Cédric Le Goater <=
- [PULL 17/20] ppc/xive2: Make type Xive2EndSource not user creatable, Cédric Le Goater, 2022/03/15
- [PULL 13/20] avocado/ppc_prep_40p.py: check TCG accel in all tests, Cédric Le Goater, 2022/03/15
- [PULL 05/20] avocado/replay_kernel.py: make tcg-icount check in run_vm(), Cédric Le Goater, 2022/03/15
- [PULL 02/20] qtest/meson.build: check CONFIG_TCG for boot-serial-test in qtests_ppc, Cédric Le Goater, 2022/03/15
- [PULL 11/20] avocado/ppc_bamboo.py: check TCG accel in test_ppc_bamboo(), Cédric Le Goater, 2022/03/15
- [PULL 20/20] ppc/pnv: Remove user-created PHB{3,4,5} devices, Cédric Le Goater, 2022/03/15
- [PULL 15/20] target/ppc: fix ISI fault cause for Radix MMU, Cédric Le Goater, 2022/03/15
- [PULL 10/20] avocado/ppc_74xx.py: check TCG accel for all tests, Cédric Le Goater, 2022/03/15
- [PULL 18/20] ppc/pnv: Introduce a pnv-phb5 device to match root port, Cédric Le Goater, 2022/03/15
- [PULL 07/20] avocado/boot_linux_console.py: check TCG accel in test_ppc_mac99(), Cédric Le Goater, 2022/03/15