Re: [PATCH 4/8] pseries: phyp dump: use sysfs to release reserved mem

2008-01-08 Thread Linas Vepstas
On 07/01/2008, Stephen Rothwell [EMAIL PROTECTED] wrote: On Mon, 07 Jan 2008 18:21:57 -0600 Manish Ahuja [EMAIL PROTECTED] wrote: +static int __init phyp_dump_setup(void) +{ + /* Is there dump data waiting for us? */ + rtas = of_find_node_by_path(/rtas); + dump_header =

[PATCH 4/8] pseries: phyp dump: use sysfs to release reserved mem

2008-01-07 Thread Manish Ahuja
Check to see if there actually is data from a previously crashed kernel waiting. If so, Allow user-sapce tools to grab the data (by reading /proc/kcore). When user-space finishes dumping a section, it must release that memory by writing to sysfs. For example, echo 0x4000 0x1000