Re: [PATCH v2] powerpc/powernv: Platform dump interface

2014-03-26 Thread Vasant Hegde
On 03/25/2014 11:22 AM, Anton Blanchard wrote: Hi Vasant, On 02/09/2014 02:50 AM, Anton Blanchard wrote: Hi Vasant, +static void free_dump_sg_list(struct opal_sg_list *list) +{ + struct opal_sg_list *sg1; + while (list) { + sg1 = list-next; +

Re: [PATCH v2] powerpc/powernv: Platform dump interface

2014-03-24 Thread Anton Blanchard
Hi Vasant, On 02/09/2014 02:50 AM, Anton Blanchard wrote: Hi Vasant, +static void free_dump_sg_list(struct opal_sg_list *list) +{ + struct opal_sg_list *sg1; + while (list) { + sg1 = list-next; + kfree(list); + list = sg1; + } + list = NULL;

[PATCH v2] powerpc/powernv Platform dump interface

2014-02-25 Thread Stewart Smith
This enables support for userspace to fetch and initiate FSP and Platform dumps from the service processor (via firmware) through sysfs. Based on original patch from Vasant Hegde hegdevas...@linux.vnet.ibm.com Flow: - We register for OPAL notification events. - OPAL sends new dump available

Re: [PATCH v2] powerpc/powernv: Platform dump interface

2014-02-12 Thread Vasant Hegde
On 02/09/2014 02:50 AM, Anton Blanchard wrote: Hi Vasant, +static void free_dump_sg_list(struct opal_sg_list *list) +{ + struct opal_sg_list *sg1; + while (list) { + sg1 = list-next; + kfree(list); + list = sg1; + } + list =

Re: [PATCH v2] powerpc/powernv: Platform dump interface

2014-02-08 Thread Anton Blanchard
Hi Vasant, +static void free_dump_sg_list(struct opal_sg_list *list) +{ + struct opal_sg_list *sg1; + while (list) { + sg1 = list-next; + kfree(list); + list = sg1; + } + list = NULL; +} + +/* + * Build dump buffer scatter gather

[PATCH v2] powerpc/powernv: Platform dump interface

2014-01-16 Thread Vasant Hegde
This patch adds interface to retrieve FSP and Platform dump. Flow: - We register for OPAL notification events. - OPAL sends new dump available notification. - We retrieve the dump via OPAL interface and send it to debugfs. - User copies the dump data and end ACKs via debugfs. - We send