Daniel Henrique Barboza 6e7b967503 ppc/pnv: fix default PHB4 QOM hierarchy
Commit 3f4c369ea63e ("ppc/pnv: make PECs create and realize PHB4s")
changed phb4_pec code to create the default PHB4 objects in
pnv_pec_default_phb_realize(). In this process the stacks[] PEC array was
removed and each PHB4 object is tied together with its PEC via the
phb->pec pointer.

This change also broke the previous QOM hierarchy - the PHB4 objects are
being created and not being parented to their respective chips. This can
be verified by 'info pic' in a powernv9 domain with default settings.
pnv_chip_power9_pic_print_info() will fail to find the PHBs because
object_child_foreach_recursive() won't find any.

The solution is to set the parent chip and the parent bus, in the same
way done for user created PHB4 devices, for all PHB4 devices.

Fixes: 3f4c369ea63e ("ppc/pnv: make PECs create and realize PHB4s")
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220218202804.413157-1-danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
2022-03-02 06:51:36 +01:00
..
2022-02-22 13:07:32 +00:00
2022-02-28 16:46:45 +00:00
2022-02-15 19:30:33 +00:00
2022-02-22 13:07:32 +00:00
2022-02-21 13:30:20 +00:00
2022-02-28 16:46:45 +00:00
2022-02-21 18:21:54 +01:00
2022-02-21 10:18:06 +01:00
2022-02-21 13:30:21 +00:00
2022-02-21 10:18:06 +01:00
2022-02-22 20:17:09 +00:00