All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] sysfs: Add crash_notes_size to export percpu note size
@ 2013-03-28  8:15 ` Zhang Yanfei
  0 siblings, 0 replies; 10+ messages in thread
From: Zhang Yanfei @ 2013-03-28  8:15 UTC (permalink / raw)
  To: Greg KH, Eric W. Biederman, vgoyal; +Cc: kexec, linux-kernel

For percpu notes, we are exporting only address and not size. So
the userspace tool kexec-tools is putting an upper limit of 1024
and putting the value in p_memsz and p_filesz fields. So the patch
add the new sysfile crash_notes_size to export the exact percpu
note size and let the kexec-tools parse it intead of using 1024.

The idea came from Vivek Goyal. And a later patch will be sent to
kexec-tools to let it parse the size.

Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
---
 drivers/base/cpu.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index fb10728..a55b590 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -132,6 +132,17 @@ static ssize_t show_crash_notes(struct device *dev, struct device_attribute *att
 	return rc;
 }
 static DEVICE_ATTR(crash_notes, 0400, show_crash_notes, NULL);
+
+static ssize_t show_crash_notes_size(struct device *dev,
+				     struct device_attribute *attr,
+				     char *buf)
+{
+	ssize_t rc;
+
+	rc = sprintf(buf, "%lu\n", sizeof(note_buf_t));
+	return rc;
+}
+static DEVICE_ATTR(crash_notes_size, 0400, show_crash_notes_size, NULL);
 #endif
 
 /*
@@ -259,6 +270,9 @@ int __cpuinit register_cpu(struct cpu *cpu, int num)
 #ifdef CONFIG_KEXEC
 	if (!error)
 		error = device_create_file(&cpu->dev, &dev_attr_crash_notes);
+	if (!error)
+		error = device_create_file(&cpu->dev,
+					   &dev_attr_crash_notes_size);
 #endif
 	return error;
 }
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 1/2] sysfs: Add crash_notes_size to export percpu note size
@ 2013-03-28  8:15 ` Zhang Yanfei
  0 siblings, 0 replies; 10+ messages in thread
From: Zhang Yanfei @ 2013-03-28  8:15 UTC (permalink / raw)
  To: Greg KH, Eric W. Biederman, vgoyal; +Cc: kexec, linux-kernel

For percpu notes, we are exporting only address and not size. So
the userspace tool kexec-tools is putting an upper limit of 1024
and putting the value in p_memsz and p_filesz fields. So the patch
add the new sysfile crash_notes_size to export the exact percpu
note size and let the kexec-tools parse it intead of using 1024.

The idea came from Vivek Goyal. And a later patch will be sent to
kexec-tools to let it parse the size.

Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
---
 drivers/base/cpu.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index fb10728..a55b590 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -132,6 +132,17 @@ static ssize_t show_crash_notes(struct device *dev, struct device_attribute *att
 	return rc;
 }
 static DEVICE_ATTR(crash_notes, 0400, show_crash_notes, NULL);
+
+static ssize_t show_crash_notes_size(struct device *dev,
+				     struct device_attribute *attr,
+				     char *buf)
+{
+	ssize_t rc;
+
+	rc = sprintf(buf, "%lu\n", sizeof(note_buf_t));
+	return rc;
+}
+static DEVICE_ATTR(crash_notes_size, 0400, show_crash_notes_size, NULL);
 #endif
 
 /*
@@ -259,6 +270,9 @@ int __cpuinit register_cpu(struct cpu *cpu, int num)
 #ifdef CONFIG_KEXEC
 	if (!error)
 		error = device_create_file(&cpu->dev, &dev_attr_crash_notes);
+	if (!error)
+		error = device_create_file(&cpu->dev,
+					   &dev_attr_crash_notes_size);
 #endif
 	return error;
 }
-- 
1.7.1

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] Documentation: Add ABI entry for crash_notes and crash_notes_size
  2013-03-28  8:15 ` Zhang Yanfei
@ 2013-03-28  8:16   ` Zhang Yanfei
  -1 siblings, 0 replies; 10+ messages in thread
From: Zhang Yanfei @ 2013-03-28  8:16 UTC (permalink / raw)
  To: Greg KH, Eric W. Biederman, vgoyal; +Cc: kexec, linux-kernel

Add an Documentation/ABI entry for /sys/devices/system/cpu/cpu0/crash_notes
and /sys/devices/system/cpu/cpu0/crash_notes_size.

Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
---
 Documentation/ABI/testing/sysfs-devices-system-cpu |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu
index 9c978dc..2447698 100644
--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
+++ b/Documentation/ABI/testing/sysfs-devices-system-cpu
@@ -173,3 +173,15 @@ Description:	Processor frequency boosting control
 		Boosting allows the CPU and the firmware to run at a frequency
 		beyound it's nominal limit.
 		More details can be found in Documentation/cpu-freq/boost.txt
+
+
+What:		/sys/devices/system/cpu/cpu#/crash_notes
+		/sys/devices/system/cpu/cpu#/crash_notes_size
+Date:		April 2013
+Contact:	kexec@lists.infradead.org
+Description:	address and size of the percpu note.
+
+		crash_notes: the physical address of the memory that holds the
+		note of cpu#.
+
+		crash_notes_size: size of the note of cpu#.
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] Documentation: Add ABI entry for crash_notes and crash_notes_size
@ 2013-03-28  8:16   ` Zhang Yanfei
  0 siblings, 0 replies; 10+ messages in thread
From: Zhang Yanfei @ 2013-03-28  8:16 UTC (permalink / raw)
  To: Greg KH, Eric W. Biederman, vgoyal; +Cc: kexec, linux-kernel

Add an Documentation/ABI entry for /sys/devices/system/cpu/cpu0/crash_notes
and /sys/devices/system/cpu/cpu0/crash_notes_size.

Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
---
 Documentation/ABI/testing/sysfs-devices-system-cpu |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu
index 9c978dc..2447698 100644
--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
+++ b/Documentation/ABI/testing/sysfs-devices-system-cpu
@@ -173,3 +173,15 @@ Description:	Processor frequency boosting control
 		Boosting allows the CPU and the firmware to run at a frequency
 		beyound it's nominal limit.
 		More details can be found in Documentation/cpu-freq/boost.txt
+
+
+What:		/sys/devices/system/cpu/cpu#/crash_notes
+		/sys/devices/system/cpu/cpu#/crash_notes_size
+Date:		April 2013
+Contact:	kexec@lists.infradead.org
+Description:	address and size of the percpu note.
+
+		crash_notes: the physical address of the memory that holds the
+		note of cpu#.
+
+		crash_notes_size: size of the note of cpu#.
-- 
1.7.1


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] sysfs: Add crash_notes_size to export percpu note size
  2013-03-28  8:15 ` Zhang Yanfei
@ 2013-03-29  3:50   ` Zhang Yanfei
  -1 siblings, 0 replies; 10+ messages in thread
From: Zhang Yanfei @ 2013-03-29  3:50 UTC (permalink / raw)
  To: Simon Horman; +Cc: Greg KH, Eric W. Biederman, vgoyal, kexec, linux-kernel

Hi, simon

I forgot to add your email in the CC, could you please help
reviewing this patch since I will send the kexec-tools patch
if this patch is accepted.

Thanks
Zhang

于 2013年03月28日 16:15, Zhang Yanfei 写道:
> For percpu notes, we are exporting only address and not size. So
> the userspace tool kexec-tools is putting an upper limit of 1024
> and putting the value in p_memsz and p_filesz fields. So the patch
> add the new sysfile crash_notes_size to export the exact percpu
> note size and let the kexec-tools parse it intead of using 1024.
> 
> The idea came from Vivek Goyal. And a later patch will be sent to
> kexec-tools to let it parse the size.
> 
> Cc: Greg KH <gregkh@linuxfoundation.org>
> Cc: "Eric W. Biederman" <ebiederm@xmission.com>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
> ---
>  drivers/base/cpu.c |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
> index fb10728..a55b590 100644
> --- a/drivers/base/cpu.c
> +++ b/drivers/base/cpu.c
> @@ -132,6 +132,17 @@ static ssize_t show_crash_notes(struct device *dev, struct device_attribute *att
>  	return rc;
>  }
>  static DEVICE_ATTR(crash_notes, 0400, show_crash_notes, NULL);
> +
> +static ssize_t show_crash_notes_size(struct device *dev,
> +				     struct device_attribute *attr,
> +				     char *buf)
> +{
> +	ssize_t rc;
> +
> +	rc = sprintf(buf, "%lu\n", sizeof(note_buf_t));
> +	return rc;
> +}
> +static DEVICE_ATTR(crash_notes_size, 0400, show_crash_notes_size, NULL);
>  #endif
>  
>  /*
> @@ -259,6 +270,9 @@ int __cpuinit register_cpu(struct cpu *cpu, int num)
>  #ifdef CONFIG_KEXEC
>  	if (!error)
>  		error = device_create_file(&cpu->dev, &dev_attr_crash_notes);
> +	if (!error)
> +		error = device_create_file(&cpu->dev,
> +					   &dev_attr_crash_notes_size);
>  #endif
>  	return error;
>  }


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] sysfs: Add crash_notes_size to export percpu note size
@ 2013-03-29  3:50   ` Zhang Yanfei
  0 siblings, 0 replies; 10+ messages in thread
From: Zhang Yanfei @ 2013-03-29  3:50 UTC (permalink / raw)
  To: Simon Horman; +Cc: Greg KH, kexec, Eric W. Biederman, vgoyal, linux-kernel

Hi, simon

I forgot to add your email in the CC, could you please help
reviewing this patch since I will send the kexec-tools patch
if this patch is accepted.

Thanks
Zhang

于 2013年03月28日 16:15, Zhang Yanfei 写道:
> For percpu notes, we are exporting only address and not size. So
> the userspace tool kexec-tools is putting an upper limit of 1024
> and putting the value in p_memsz and p_filesz fields. So the patch
> add the new sysfile crash_notes_size to export the exact percpu
> note size and let the kexec-tools parse it intead of using 1024.
> 
> The idea came from Vivek Goyal. And a later patch will be sent to
> kexec-tools to let it parse the size.
> 
> Cc: Greg KH <gregkh@linuxfoundation.org>
> Cc: "Eric W. Biederman" <ebiederm@xmission.com>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
> ---
>  drivers/base/cpu.c |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
> index fb10728..a55b590 100644
> --- a/drivers/base/cpu.c
> +++ b/drivers/base/cpu.c
> @@ -132,6 +132,17 @@ static ssize_t show_crash_notes(struct device *dev, struct device_attribute *att
>  	return rc;
>  }
>  static DEVICE_ATTR(crash_notes, 0400, show_crash_notes, NULL);
> +
> +static ssize_t show_crash_notes_size(struct device *dev,
> +				     struct device_attribute *attr,
> +				     char *buf)
> +{
> +	ssize_t rc;
> +
> +	rc = sprintf(buf, "%lu\n", sizeof(note_buf_t));
> +	return rc;
> +}
> +static DEVICE_ATTR(crash_notes_size, 0400, show_crash_notes_size, NULL);
>  #endif
>  
>  /*
> @@ -259,6 +270,9 @@ int __cpuinit register_cpu(struct cpu *cpu, int num)
>  #ifdef CONFIG_KEXEC
>  	if (!error)
>  		error = device_create_file(&cpu->dev, &dev_attr_crash_notes);
> +	if (!error)
> +		error = device_create_file(&cpu->dev,
> +					   &dev_attr_crash_notes_size);
>  #endif
>  	return error;
>  }


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] sysfs: Add crash_notes_size to export percpu note size
  2013-03-29  3:50   ` Zhang Yanfei
@ 2013-03-29  4:04     ` Simon Horman
  -1 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2013-03-29  4:04 UTC (permalink / raw)
  To: Zhang Yanfei; +Cc: Greg KH, Eric W. Biederman, vgoyal, kexec, linux-kernel

On Fri, Mar 29, 2013 at 11:50:35AM +0800, Zhang Yanfei wrote:
> Hi, simon
> 
> I forgot to add your email in the CC, could you please help
> reviewing this patch since I will send the kexec-tools patch
> if this patch is accepted.
> 
> Thanks
> Zhang
> 
> 于 2013年03月28日 16:15, Zhang Yanfei 写道:
> > For percpu notes, we are exporting only address and not size. So
> > the userspace tool kexec-tools is putting an upper limit of 1024
> > and putting the value in p_memsz and p_filesz fields. So the patch
> > add the new sysfile crash_notes_size to export the exact percpu
> > note size and let the kexec-tools parse it intead of using 1024.
> > 
> > The idea came from Vivek Goyal. And a later patch will be sent to
> > kexec-tools to let it parse the size.

Acked-by: Simon Horman <horms@verge.net.au>

> > 
> > Cc: Greg KH <gregkh@linuxfoundation.org>
> > Cc: "Eric W. Biederman" <ebiederm@xmission.com>
> > Cc: Vivek Goyal <vgoyal@redhat.com>
> > Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
> > ---
> >  drivers/base/cpu.c |   14 ++++++++++++++
> >  1 files changed, 14 insertions(+), 0 deletions(-)
> > 
> > diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
> > index fb10728..a55b590 100644
> > --- a/drivers/base/cpu.c
> > +++ b/drivers/base/cpu.c
> > @@ -132,6 +132,17 @@ static ssize_t show_crash_notes(struct device *dev, struct device_attribute *att
> >  	return rc;
> >  }
> >  static DEVICE_ATTR(crash_notes, 0400, show_crash_notes, NULL);
> > +
> > +static ssize_t show_crash_notes_size(struct device *dev,
> > +				     struct device_attribute *attr,
> > +				     char *buf)
> > +{
> > +	ssize_t rc;
> > +
> > +	rc = sprintf(buf, "%lu\n", sizeof(note_buf_t));
> > +	return rc;
> > +}
> > +static DEVICE_ATTR(crash_notes_size, 0400, show_crash_notes_size, NULL);
> >  #endif
> >  
> >  /*
> > @@ -259,6 +270,9 @@ int __cpuinit register_cpu(struct cpu *cpu, int num)
> >  #ifdef CONFIG_KEXEC
> >  	if (!error)
> >  		error = device_create_file(&cpu->dev, &dev_attr_crash_notes);
> > +	if (!error)
> > +		error = device_create_file(&cpu->dev,
> > +					   &dev_attr_crash_notes_size);
> >  #endif
> >  	return error;
> >  }
> 
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] sysfs: Add crash_notes_size to export percpu note size
@ 2013-03-29  4:04     ` Simon Horman
  0 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2013-03-29  4:04 UTC (permalink / raw)
  To: Zhang Yanfei; +Cc: Greg KH, kexec, Eric W. Biederman, vgoyal, linux-kernel

On Fri, Mar 29, 2013 at 11:50:35AM +0800, Zhang Yanfei wrote:
> Hi, simon
> 
> I forgot to add your email in the CC, could you please help
> reviewing this patch since I will send the kexec-tools patch
> if this patch is accepted.
> 
> Thanks
> Zhang
> 
> 于 2013年03月28日 16:15, Zhang Yanfei 写道:
> > For percpu notes, we are exporting only address and not size. So
> > the userspace tool kexec-tools is putting an upper limit of 1024
> > and putting the value in p_memsz and p_filesz fields. So the patch
> > add the new sysfile crash_notes_size to export the exact percpu
> > note size and let the kexec-tools parse it intead of using 1024.
> > 
> > The idea came from Vivek Goyal. And a later patch will be sent to
> > kexec-tools to let it parse the size.

Acked-by: Simon Horman <horms@verge.net.au>

> > 
> > Cc: Greg KH <gregkh@linuxfoundation.org>
> > Cc: "Eric W. Biederman" <ebiederm@xmission.com>
> > Cc: Vivek Goyal <vgoyal@redhat.com>
> > Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
> > ---
> >  drivers/base/cpu.c |   14 ++++++++++++++
> >  1 files changed, 14 insertions(+), 0 deletions(-)
> > 
> > diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
> > index fb10728..a55b590 100644
> > --- a/drivers/base/cpu.c
> > +++ b/drivers/base/cpu.c
> > @@ -132,6 +132,17 @@ static ssize_t show_crash_notes(struct device *dev, struct device_attribute *att
> >  	return rc;
> >  }
> >  static DEVICE_ATTR(crash_notes, 0400, show_crash_notes, NULL);
> > +
> > +static ssize_t show_crash_notes_size(struct device *dev,
> > +				     struct device_attribute *attr,
> > +				     char *buf)
> > +{
> > +	ssize_t rc;
> > +
> > +	rc = sprintf(buf, "%lu\n", sizeof(note_buf_t));
> > +	return rc;
> > +}
> > +static DEVICE_ATTR(crash_notes_size, 0400, show_crash_notes_size, NULL);
> >  #endif
> >  
> >  /*
> > @@ -259,6 +270,9 @@ int __cpuinit register_cpu(struct cpu *cpu, int num)
> >  #ifdef CONFIG_KEXEC
> >  	if (!error)
> >  		error = device_create_file(&cpu->dev, &dev_attr_crash_notes);
> > +	if (!error)
> > +		error = device_create_file(&cpu->dev,
> > +					   &dev_attr_crash_notes_size);
> >  #endif
> >  	return error;
> >  }
> 
> 

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] Documentation: Add ABI entry for crash_notes and crash_notes_size
  2013-03-28  8:16   ` Zhang Yanfei
@ 2013-03-29  4:05     ` Simon Horman
  -1 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2013-03-29  4:05 UTC (permalink / raw)
  To: Zhang Yanfei; +Cc: Greg KH, Eric W. Biederman, vgoyal, kexec, linux-kernel

On Thu, Mar 28, 2013 at 04:16:45PM +0800, Zhang Yanfei wrote:
> Add an Documentation/ABI entry for /sys/devices/system/cpu/cpu0/crash_notes
> and /sys/devices/system/cpu/cpu0/crash_notes_size.
> 
> Cc: Greg KH <gregkh@linuxfoundation.org>
> Cc: "Eric W. Biederman" <ebiederm@xmission.com>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>

Assuming that patch 1 of this series is accepted:

Acked-by: Simon Horman <horms@verge.net.au>

> ---
>  Documentation/ABI/testing/sysfs-devices-system-cpu |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu
> index 9c978dc..2447698 100644
> --- a/Documentation/ABI/testing/sysfs-devices-system-cpu
> +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu
> @@ -173,3 +173,15 @@ Description:	Processor frequency boosting control
>  		Boosting allows the CPU and the firmware to run at a frequency
>  		beyound it's nominal limit.
>  		More details can be found in Documentation/cpu-freq/boost.txt
> +
> +
> +What:		/sys/devices/system/cpu/cpu#/crash_notes
> +		/sys/devices/system/cpu/cpu#/crash_notes_size
> +Date:		April 2013
> +Contact:	kexec@lists.infradead.org
> +Description:	address and size of the percpu note.
> +
> +		crash_notes: the physical address of the memory that holds the
> +		note of cpu#.
> +
> +		crash_notes_size: size of the note of cpu#.
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/2] Documentation: Add ABI entry for crash_notes and crash_notes_size
@ 2013-03-29  4:05     ` Simon Horman
  0 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2013-03-29  4:05 UTC (permalink / raw)
  To: Zhang Yanfei; +Cc: Greg KH, kexec, Eric W. Biederman, vgoyal, linux-kernel

On Thu, Mar 28, 2013 at 04:16:45PM +0800, Zhang Yanfei wrote:
> Add an Documentation/ABI entry for /sys/devices/system/cpu/cpu0/crash_notes
> and /sys/devices/system/cpu/cpu0/crash_notes_size.
> 
> Cc: Greg KH <gregkh@linuxfoundation.org>
> Cc: "Eric W. Biederman" <ebiederm@xmission.com>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>

Assuming that patch 1 of this series is accepted:

Acked-by: Simon Horman <horms@verge.net.au>

> ---
>  Documentation/ABI/testing/sysfs-devices-system-cpu |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu
> index 9c978dc..2447698 100644
> --- a/Documentation/ABI/testing/sysfs-devices-system-cpu
> +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu
> @@ -173,3 +173,15 @@ Description:	Processor frequency boosting control
>  		Boosting allows the CPU and the firmware to run at a frequency
>  		beyound it's nominal limit.
>  		More details can be found in Documentation/cpu-freq/boost.txt
> +
> +
> +What:		/sys/devices/system/cpu/cpu#/crash_notes
> +		/sys/devices/system/cpu/cpu#/crash_notes_size
> +Date:		April 2013
> +Contact:	kexec@lists.infradead.org
> +Description:	address and size of the percpu note.
> +
> +		crash_notes: the physical address of the memory that holds the
> +		note of cpu#.
> +
> +		crash_notes_size: size of the note of cpu#.
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
> 

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-03-29  4:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-28  8:15 [PATCH 1/2] sysfs: Add crash_notes_size to export percpu note size Zhang Yanfei
2013-03-28  8:15 ` Zhang Yanfei
2013-03-28  8:16 ` [PATCH 2/2] Documentation: Add ABI entry for crash_notes and crash_notes_size Zhang Yanfei
2013-03-28  8:16   ` Zhang Yanfei
2013-03-29  4:05   ` Simon Horman
2013-03-29  4:05     ` Simon Horman
2013-03-29  3:50 ` [PATCH 1/2] sysfs: Add crash_notes_size to export percpu note size Zhang Yanfei
2013-03-29  3:50   ` Zhang Yanfei
2013-03-29  4:04   ` Simon Horman
2013-03-29  4:04     ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.