Re: [PATCH] powerpc/powernv/dump: Fix race while processing OPAL dump

2020-10-17 Thread Vasant Hegde
On 10/9/20 10:36 AM, Michael Ellerman wrote: Vasant Hegde writes: diff --git a/arch/powerpc/platforms/powernv/opal-dump.c b/arch/powerpc/platforms/powernv/opal-dump.c index 543c816fa99e..7e6eeedec32b 100644 --- a/arch/powerpc/platforms/powernv/opal-dump.c +++ b/arch/powerpc/platforms/powernv/o

Re: [PATCH] powerpc/powernv/dump: Fix race while processing OPAL dump

2020-10-08 Thread Michael Ellerman
Vasant Hegde writes: > diff --git a/arch/powerpc/platforms/powernv/opal-dump.c > b/arch/powerpc/platforms/powernv/opal-dump.c > index 543c816fa99e..7e6eeedec32b 100644 > --- a/arch/powerpc/platforms/powernv/opal-dump.c > +++ b/arch/powerpc/platforms/powernv/opal-dump.c > @@ -346,21 +345,39 @@ sta

[PATCH] powerpc/powernv/dump: Fix race while processing OPAL dump

2020-10-07 Thread Vasant Hegde
Every dump reported by OPAL is exported to userspace through a sysfs interface and notified using kobject_uevent(). The userspace daemon (opal_errd) then reads the dump and acknowledges that the dump is saved safely to disk. Once acknowledged the kernel removes the respective sysfs file entry causi