Re: [PATCH 13/13] powerpc/eeh: Refactor report functions

2018-05-09 Thread Michael Ellerman
Sam Bobroff writes: > On Thu, May 03, 2018 at 11:27:12PM +1000, Michael Ellerman wrote: >> Sam Bobroff writes: >> > diff --git a/arch/powerpc/kernel/eeh_driver.c >> > b/arch/powerpc/kernel/eeh_driver.c >> > index eb4feee81ff4..1c4336dcf9f5 100644 >> > --- a/arch/powerpc/kernel/eeh_driver.c >> >

Re: [PATCH 13/13] powerpc/eeh: Refactor report functions

2018-05-06 Thread Sam Bobroff
On Thu, May 03, 2018 at 11:27:12PM +1000, Michael Ellerman wrote: > Sam Bobroff writes: > > diff --git a/arch/powerpc/kernel/eeh_driver.c > > b/arch/powerpc/kernel/eeh_driver.c > > index eb4feee81ff4..1c4336dcf9f5 100644 > > --- a/arch/powerpc/kernel/eeh_driver.c > > +++ b/arch/powerpc/kernel/eeh

Re: [PATCH 13/13] powerpc/eeh: Refactor report functions

2018-05-03 Thread Michael Ellerman
Sam Bobroff writes: > diff --git a/arch/powerpc/kernel/eeh_driver.c > b/arch/powerpc/kernel/eeh_driver.c > index eb4feee81ff4..1c4336dcf9f5 100644 > --- a/arch/powerpc/kernel/eeh_driver.c > +++ b/arch/powerpc/kernel/eeh_driver.c > @@ -54,6 +54,25 @@ static int eeh_result_priority(enum pci_ers_res

[PATCH 13/13] powerpc/eeh: Refactor report functions

2018-05-02 Thread Sam Bobroff
The EEH report functions now share a fair bit of code around the start and end of each function. So factor out as much as possible, and move the traversal into a custom function. This also allows accurate debug to be generated more easily. Signed-off-by: Sam Bobroff --- arch/powerpc/kernel/eeh_