Re: [PATCH 4/6] spapr: Use spapr_drc_reset_all() at machine reset

2020-12-27 Thread David Gibson
On Fri, Dec 18, 2020 at 11:33:58AM +0100, Greg Kurz wrote: > Documentation of object_child_foreach_recursive() clearly stipulates > that "it is forbidden to add or remove children from @obj from the @fn > callback". But this is exactly what we do during machine reset. The call > to spapr_drc_reset(

Re: [PATCH 4/6] spapr: Use spapr_drc_reset_all() at machine reset

2020-12-21 Thread Daniel Henrique Barboza
On 12/18/20 7:33 AM, Greg Kurz wrote: Documentation of object_child_foreach_recursive() clearly stipulates that "it is forbidden to add or remove children from @obj from the @fn callback". But this is exactly what we do during machine reset. The call to spapr_drc_reset() can finalize the hot-u

[PATCH 4/6] spapr: Use spapr_drc_reset_all() at machine reset

2020-12-18 Thread Greg Kurz
Documentation of object_child_foreach_recursive() clearly stipulates that "it is forbidden to add or remove children from @obj from the @fn callback". But this is exactly what we do during machine reset. The call to spapr_drc_reset() can finalize the hot-unplug sequence of a PHB or a PCI bridge, bo