Re: [PATCH v3 2/7] spapr_pci.c: simplify spapr_pci_unplug_request() function handling

2021-02-16 Thread David Gibson
On Tue, Feb 16, 2021 at 02:44:44PM -0300, Daniel Henrique Barboza wrote: > > > On 2/16/21 2:16 PM, Greg Kurz wrote: > > On Tue, 16 Feb 2021 13:09:43 -0300 > > Daniel Henrique Barboza wrote: > > > > > > > > > > > On 2/16/21 12:50 PM, Greg Kurz wrote: > > > > On Thu, 11 Feb 2021 19:52:41 -0300

Re: [PATCH v3 2/7] spapr_pci.c: simplify spapr_pci_unplug_request() function handling

2021-02-16 Thread Daniel Henrique Barboza
On 2/16/21 2:16 PM, Greg Kurz wrote: On Tue, 16 Feb 2021 13:09:43 -0300 Daniel Henrique Barboza wrote: On 2/16/21 12:50 PM, Greg Kurz wrote: On Thu, 11 Feb 2021 19:52:41 -0300 Daniel Henrique Barboza wrote: When hotunplugging a PCI function we'll branch out the logic in two cases, fun

Re: [PATCH v3 2/7] spapr_pci.c: simplify spapr_pci_unplug_request() function handling

2021-02-16 Thread Greg Kurz
On Tue, 16 Feb 2021 13:09:43 -0300 Daniel Henrique Barboza wrote: > > > On 2/16/21 12:50 PM, Greg Kurz wrote: > > On Thu, 11 Feb 2021 19:52:41 -0300 > > Daniel Henrique Barboza wrote: > > > >> When hotunplugging a PCI function we'll branch out the logic in two cases, > >> function zero and no

Re: [PATCH v3 2/7] spapr_pci.c: simplify spapr_pci_unplug_request() function handling

2021-02-16 Thread Daniel Henrique Barboza
On 2/16/21 12:50 PM, Greg Kurz wrote: On Thu, 11 Feb 2021 19:52:41 -0300 Daniel Henrique Barboza wrote: When hotunplugging a PCI function we'll branch out the logic in two cases, function zero and non-zero. If non-zero, we'll call spapr_drc_detach() and nothing else. If it's function zero,

Re: [PATCH v3 2/7] spapr_pci.c: simplify spapr_pci_unplug_request() function handling

2021-02-16 Thread Greg Kurz
On Thu, 11 Feb 2021 19:52:41 -0300 Daniel Henrique Barboza wrote: > When hotunplugging a PCI function we'll branch out the logic in two cases, > function zero and non-zero. If non-zero, we'll call spapr_drc_detach() and > nothing else. If it's function zero, we'll loop it once between all the > f

[PATCH v3 2/7] spapr_pci.c: simplify spapr_pci_unplug_request() function handling

2021-02-11 Thread Daniel Henrique Barboza
When hotunplugging a PCI function we'll branch out the logic in two cases, function zero and non-zero. If non-zero, we'll call spapr_drc_detach() and nothing else. If it's function zero, we'll loop it once between all the functions in the slot to call spapr_drc_detach() on them, and afterwards we'l