RE: [RFC][PATCH v7 1/2] trace,x86: add x86 irq vector tracepoints

2013-01-15 Thread Seiji Aguchi
Steven, Thank you for reviewing my patchset. I will update both patch 1/2 and 2/2 in accordance with your comment. Seiji > -Original Message- > From: Steven Rostedt [mailto:rost...@goodmis.org] > Sent: Tuesday, January 15, 2013 8:25 PM > To: Seiji Aguchi > Cc: x...@ke

RE: [RFC][PATCH v7 1/2] trace,x86: add x86 irq vector tracepoints

2013-01-15 Thread Seiji Aguchi
Steven, Thank you for reviewing my patchset. I will update both patch 1/2 and 2/2 in accordance with your comment. Seiji -Original Message- From: Steven Rostedt [mailto:rost...@goodmis.org] Sent: Tuesday, January 15, 2013 8:25 PM To: Seiji Aguchi Cc: x...@kernel.org; linux-kernel

RE: [PATCH v4 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2013-01-11 Thread Seiji Aguchi
, January 10, 2013 6:55 PM To: Luck, Tony Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org; Seiji Aguchi Subject: linux-next: build failure after merge of the ia64 tree Hi all, After merging the ia64 tree, today's linux-next build (x86_64_allmodconfig) failed like this: ERROR

[PATCH v4 2/2] efi_pstore: Avoid deadlock in non-blocking paths

2013-01-11 Thread Seiji Aguchi
avoid the deadlock. Signed-off-by: Seiji Aguchi Acked-by: Don Zickus Acked-by: Tony Luck --- drivers/firmware/efivars.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index 7b1c374..ef5070d 100644 --- a/d

[PATCH v4 1/2] pstore: Avoid deadlock in panic and emergency-restart path

2013-01-11 Thread Seiji Aguchi
reboot the system. This is called when we know we are in * trouble so this is our best effort to reboot. This is * safe to call in interrupt context. */ void emergency_restart(void) Signed-off-by: Seiji Aguchi Acked-by: Don Zickus Acked-by: Tony Luck --- fs/pstore/platform.c

[PATCH v4 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2013-01-11 Thread Seiji Aguchi
Please see each patch for detailed explanations. Seiji Aguchi (2): [PATCH v4 1/2] pstore: Avoid deadlock in panic and emergency-restart path [PATCH v4 2/2] efi_pstore: Avoid deadlock in non-blocking paths drivers/firmware/efivars.c | 11 ++- fs/pstore/platform

[PATCH v4 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2013-01-11 Thread Seiji Aguchi
for detailed explanations. Seiji Aguchi (2): [PATCH v4 1/2] pstore: Avoid deadlock in panic and emergency-restart path [PATCH v4 2/2] efi_pstore: Avoid deadlock in non-blocking paths drivers/firmware/efivars.c | 11 ++- fs/pstore/platform.c | 35

[PATCH v4 1/2] pstore: Avoid deadlock in panic and emergency-restart path

2013-01-11 Thread Seiji Aguchi
* reboot the system. This is called when we know we are in * trouble so this is our best effort to reboot. This is * safe to call in interrupt context. */ void emergency_restart(void) snip Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Don Zickus dzic...@redhat.com Acked

[PATCH v4 2/2] efi_pstore: Avoid deadlock in non-blocking paths

2013-01-11 Thread Seiji Aguchi
the deadlock. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Don Zickus dzic...@redhat.com Acked-by: Tony Luck tony.l...@intel.com --- drivers/firmware/efivars.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware

RE: [PATCH v4 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2013-01-11 Thread Seiji Aguchi
: Thursday, January 10, 2013 6:55 PM To: Luck, Tony Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org; Seiji Aguchi Subject: linux-next: build failure after merge of the ia64 tree Hi all, After merging the ia64 tree, today's linux-next build (x86_64_allmodconfig) failed like this: ERROR

RE: linux-next: build failure after merge of the ia64 tree

2013-01-10 Thread Seiji Aguchi
Stephen, Tony, I will take a look at it. Seiji > -Original Message- > From: Stephen Rothwell [mailto:s...@canb.auug.org.au] > Sent: Thursday, January 10, 2013 6:55 PM > To: Luck, Tony > Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org; Seiji Aguchi > S

RE: [PATCH v3 1/2] pstore: Avoid deadlock in panic and emergency-restart path

2013-01-10 Thread Seiji Aguchi
tony.l...@gmail.com] > Sent: Thursday, January 10, 2013 1:21 PM > To: Seiji Aguchi > Cc: linux-kernel@vger.kernel.org; dzic...@redhat.com; ccr...@android.com; > keesc...@chromium.org; cbouatmai...@gmail.com; > Satoru Moriya; dle-deve...@lists.sourceforge.net > Subject: Re: [

[RFC][PATCH v7 2/2]trace,x86: code-sharing between non-trace and trace irq handlers

2013-01-10 Thread Seiji Aguchi
and trace handlers * in a vector. */ trace_irq_exit(); /* tracepoint for irq exit */ exiting_irq(); /* post-processing of this handler */ } Signed-off-by: Seiji Aguchi --- arch/x86/kernel/apic/apic.c | 103

[RFC][PATCH v7 1/2] trace,x86: add x86 irq vector tracepoints

2013-01-10 Thread Seiji Aguchi
of irq_vector handlers. - Switch IDT to new one at enabling TP time. - Restore to an original IDT at disabling TP time. The new IDT is created only when CONFIG_TRACING is enabled to avoid being used for other purposes. Signed-off-by: Seiji Aguchi --- arch/x86/include/asm/desc.h | 31

[RFC][PATCH v7 0/2]trace,x86: irq vector tracepoint support

2013-01-10 Thread Seiji Aguchi
_work_entry_vector - error_apic_vector - thermal_apic_vector - threshold_apic_vector - spurious_apic_vector - x86_platform_ipi_vector Please see descriptions in each patch. Seiji Aguchi (2): [RFC][PATCH v7 1/2] trace,x86: add x86 irq vector tracepoints [RFC][PATCH v7 2/2] trace,x86: code-sharing

[RFC][PATCH v7 0/2]trace,x86: irq vector tracepoint support

2013-01-10 Thread Seiji Aguchi
- error_apic_vector - thermal_apic_vector - threshold_apic_vector - spurious_apic_vector - x86_platform_ipi_vector Please see descriptions in each patch. Seiji Aguchi (2): [RFC][PATCH v7 1/2] trace,x86: add x86 irq vector tracepoints [RFC][PATCH v7 2/2] trace,x86: code-sharing between non

[RFC][PATCH v7 1/2] trace,x86: add x86 irq vector tracepoints

2013-01-10 Thread Seiji Aguchi
time of irq_vector handlers. - Switch IDT to new one at enabling TP time. - Restore to an original IDT at disabling TP time. The new IDT is created only when CONFIG_TRACING is enabled to avoid being used for other purposes. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/include/asm

[RFC][PATCH v7 2/2]trace,x86: code-sharing between non-trace and trace irq handlers

2013-01-10 Thread Seiji Aguchi
and trace handlers * in a vector. */ trace_irq_exit(); /* tracepoint for irq exit */ exiting_irq(); /* post-processing of this handler */ } Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/kernel/apic/apic.c

RE: [PATCH v3 1/2] pstore: Avoid deadlock in panic and emergency-restart path

2013-01-10 Thread Seiji Aguchi
: Thursday, January 10, 2013 1:21 PM To: Seiji Aguchi Cc: linux-kernel@vger.kernel.org; dzic...@redhat.com; ccr...@android.com; keesc...@chromium.org; cbouatmai...@gmail.com; Satoru Moriya; dle-deve...@lists.sourceforge.net Subject: Re: [PATCH v3 1/2] pstore: Avoid deadlock in panic

RE: linux-next: build failure after merge of the ia64 tree

2013-01-10 Thread Seiji Aguchi
Stephen, Tony, I will take a look at it. Seiji -Original Message- From: Stephen Rothwell [mailto:s...@canb.auug.org.au] Sent: Thursday, January 10, 2013 6:55 PM To: Luck, Tony Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org; Seiji Aguchi Subject: linux-next: build

RE: [PATCH v3 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2013-01-04 Thread Seiji Aguchi
Tony, Can you review this patchset? Seiji > -Original Message- > From: Anton Vorontsov [mailto:cbouatmai...@gmail.com] > Sent: Friday, December 21, 2012 6:37 PM > To: Seiji Aguchi > Cc: Luck, Tony (tony.l...@intel.com); linux-kernel@vger.kernel.org; > ccr...@

RE: [PATCH v3 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2013-01-04 Thread Seiji Aguchi
Tony, Can you review this patchset? Seiji -Original Message- From: Anton Vorontsov [mailto:cbouatmai...@gmail.com] Sent: Friday, December 21, 2012 6:37 PM To: Seiji Aguchi Cc: Luck, Tony (tony.l...@intel.com); linux-kernel@vger.kernel.org; ccr...@android.com; keesc

RE: [PATCH v3 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2012-12-21 Thread Seiji Aguchi
Tony, Could you please apply this patchset to your tree? Seiji > -Original Message- > From: Don Zickus [mailto:dzic...@redhat.com] > Sent: Thursday, December 20, 2012 2:09 PM > To: Seiji Aguchi > Cc: linux-kernel@vger.kernel.org; Luck, Tony (tony.l...@intel.com); >

RE: [PATCH v3 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2012-12-21 Thread Seiji Aguchi
Tony, Could you please apply this patchset to your tree? Seiji -Original Message- From: Don Zickus [mailto:dzic...@redhat.com] Sent: Thursday, December 20, 2012 2:09 PM To: Seiji Aguchi Cc: linux-kernel@vger.kernel.org; Luck, Tony (tony.l...@intel.com); ccr...@android.com; keesc

[PATCH v3 2/2] efi_pstore: Avoid deadlock in non-blocking paths

2012-12-20 Thread Seiji Aguchi
avoid the deadlock. Signed-off-by: Seiji Aguchi --- drivers/firmware/efivars.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index 7b1c374..ef5070d 100644 --- a/drivers/firmware/efivars.c +++ b/drivers/fi

[PATCH v3 1/2] pstore: Avoid deadlock in panic and emergency-restart path

2012-12-20 Thread Seiji Aguchi
any locks * reboot the system. This is called when we know we are in * trouble so this is our best effort to reboot. This is * safe to call in interrupt context. */ void emergency_restart(void) Signed-off-by: Seiji Aguchi --- fs/pstore/platform.c

[PATCH v3 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2012-12-20 Thread Seiji Aguchi
that pstore and efi_pstore driver are blocked in the non-blocking paths like NMI, panic, and emrgency-restart by introducing a function checking if they are in those paths. Please see each patch for detailed explanations. Seiji Aguchi (2): [PATCH v3 1/2] pstore: Avoid deadlock in panic and emerg

RE: [PATCH v2 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2012-12-20 Thread Seiji Aguchi
>Though it seems most of patch2 should have been in patch1 (except for the efi >part). OK. I will merge pstore part in patch2 to patch1. > > The only nitpick I have is the name 'is_non_blocking_path'. I don't know > why, but the name doesn't seem exactly right to me. I was > thinking

RE: [PATCH v2 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2012-12-20 Thread Seiji Aguchi
Though it seems most of patch2 should have been in patch1 (except for the efi part). OK. I will merge pstore part in patch2 to patch1. The only nitpick I have is the name 'is_non_blocking_path'. I don't know why, but the name doesn't seem exactly right to me. I was thinking something

[PATCH v3 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2012-12-20 Thread Seiji Aguchi
and efi_pstore driver are blocked in the non-blocking paths like NMI, panic, and emrgency-restart by introducing a function checking if they are in those paths. Please see each patch for detailed explanations. Seiji Aguchi (2): [PATCH v3 1/2] pstore: Avoid deadlock in panic and emergency-restart path

[PATCH v3 1/2] pstore: Avoid deadlock in panic and emergency-restart path

2012-12-20 Thread Seiji Aguchi
* reboot the system. This is called when we know we are in * trouble so this is our best effort to reboot. This is * safe to call in interrupt context. */ void emergency_restart(void) snip Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- fs/pstore/platform.c | 34

[PATCH v3 2/2] efi_pstore: Avoid deadlock in non-blocking paths

2012-12-20 Thread Seiji Aguchi
the deadlock. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- drivers/firmware/efivars.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index 7b1c374..ef5070d 100644 --- a/drivers/firmware/efivars.c +++ b

RE: [RFC][PATCH v6]trace,x86: add x86 irq vector tracepoints

2012-12-17 Thread Seiji Aguchi
Thank you for reviewing my patch. I will update it in accordance with your comment. Seiji > -Original Message- > From: Steven Rostedt [mailto:rost...@goodmis.org] > Sent: Monday, December 17, 2012 10:02 PM > To: Seiji Aguchi > Cc: x...@kernel.org; linux-kernel@vger.kerne

[RFC][PATCH v6]trace,x86: add x86 irq vector tracepoints

2012-12-17 Thread Seiji Aguchi
by duplicating original IDT, idt table, and registering the new handers for tracpoints. - Switch IDT to new one at enabling TP time. - Restore to an original IDT at disabling TP time. The new IDT is created only when CONFIG_TRACEPOINTS is enabled to avoid being used for other purposes. Signe

[PATCH v2 2/2] efi_pstore: Avoid deadlock in non-blocking paths

2012-12-17 Thread Seiji Aguchi
avoid the deadlock. Signed-off-by: Seiji Aguchi --- drivers/firmware/efivars.c | 11 ++- fs/pstore/platform.c |6 +++--- include/linux/pstore.h |6 ++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c

[PATCH v2 1/2] pstore: Avoid deadlock in panic and emergency-restart path

2012-12-17 Thread Seiji Aguchi
reboot the system. This is called when we know we are in * trouble so this is our best effort to reboot. This is * safe to call in interrupt context. */ void emergency_restart(void) Signed-off-by: Seiji Aguchi --- fs/pstore/platform.c | 34 --

[PATCH v2 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2012-12-17 Thread Seiji Aguchi
checking if they are in those paths. Please see each patch for detailed explanations. Seiji Aguchi (2): [PATCH v2 1/2] pstore: Avoid deadlock in panic and emergency-restart path [PATCH v2 2/2] efi_pstore: Avoid deadlock in non-blocking paths drivers/firmware/efivars.c | 11 ++-

[PATCH v2 0/2] pstore,efi_pstore: Avoid deadlock in non-blocking paths

2012-12-17 Thread Seiji Aguchi
if they are in those paths. Please see each patch for detailed explanations. Seiji Aguchi (2): [PATCH v2 1/2] pstore: Avoid deadlock in panic and emergency-restart path [PATCH v2 2/2] efi_pstore: Avoid deadlock in non-blocking paths drivers/firmware/efivars.c | 11 ++- fs/pstore

[PATCH v2 1/2] pstore: Avoid deadlock in panic and emergency-restart path

2012-12-17 Thread Seiji Aguchi
* reboot the system. This is called when we know we are in * trouble so this is our best effort to reboot. This is * safe to call in interrupt context. */ void emergency_restart(void) snip Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- fs/pstore/platform.c | 34

[PATCH v2 2/2] efi_pstore: Avoid deadlock in non-blocking paths

2012-12-17 Thread Seiji Aguchi
the deadlock. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- drivers/firmware/efivars.c | 11 ++- fs/pstore/platform.c |6 +++--- include/linux/pstore.h |6 ++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware

[RFC][PATCH v6]trace,x86: add x86 irq vector tracepoints

2012-12-17 Thread Seiji Aguchi
-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/include/asm/desc.h | 27 + arch/x86/include/asm/entry_arch.h| 32 + arch/x86/include/asm/hw_irq.h| 14 +++ arch/x86/kernel/Makefile |1 + arch/x86/kernel/apic/apic.c | 186

RE: [RFC][PATCH v6]trace,x86: add x86 irq vector tracepoints

2012-12-17 Thread Seiji Aguchi
Thank you for reviewing my patch. I will update it in accordance with your comment. Seiji -Original Message- From: Steven Rostedt [mailto:rost...@goodmis.org] Sent: Monday, December 17, 2012 10:02 PM To: Seiji Aguchi Cc: x...@kernel.org; linux-kernel@vger.kernel.org; H. Peter Anvin

RE: [RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-10 Thread Seiji Aguchi
> A boot argument might help - so we can force use of pstore in cases where > kdump is failing (or prevent use of pstore in cases where it > seem to be preventing us getting to kdump ... I don't have a preference). > BUT this would only be useful if we had a repeatable > problem so that we

RE: [RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-10 Thread Seiji Aguchi
> > If we can fix it with a small patch in adance, it is really helpful for us. > > As I said in my email I just sent, it may not help you without testing it. > As there are probably other problems in that un-tested theoretical scenario. OK. I understood. > > > > 2) > > In the long term, I

RE: [RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-10 Thread Seiji Aguchi
> Now my first reaction would be, if that is the scenario, why couldn't cpuA > release the lock within one second. Because if cpuA is stuck > talking with firmware, then your patch to force the unlock is probably going > to trip over the same problems. > (those problems include dealing with

RE: [RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-10 Thread Seiji Aguchi
Now my first reaction would be, if that is the scenario, why couldn't cpuA release the lock within one second. Because if cpuA is stuck talking with firmware, then your patch to force the unlock is probably going to trip over the same problems. (those problems include dealing with

RE: [RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-10 Thread Seiji Aguchi
If we can fix it with a small patch in adance, it is really helpful for us. As I said in my email I just sent, it may not help you without testing it. As there are probably other problems in that un-tested theoretical scenario. OK. I understood. 2) In the long term, I plan to add a

RE: [RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-10 Thread Seiji Aguchi
A boot argument might help - so we can force use of pstore in cases where kdump is failing (or prevent use of pstore in cases where it seem to be preventing us getting to kdump ... I don't have a preference). BUT this would only be useful if we had a repeatable problem so that we could

RE: [RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-07 Thread Seiji Aguchi
> Can all these things really happen (did you run into this problem on a real > system?). Or is this just a theoretical problem. Ugly (but > practical) hacks might be OK to solve real problems. It is a theoretical problem right now. But it is a timing issue and there is a possibility to happen

[RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-07 Thread Seiji Aguchi
ng in x86 architecture. Signed-off-by: Seiji Aguchi --- fs/pstore/platform.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 947fbe0..ca4d2ab 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -107

[RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-07 Thread Seiji Aguchi
architecture. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- fs/pstore/platform.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 947fbe0..ca4d2ab 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c

RE: [RFC][PATCH] pstore: Skip spinlock when just one cpu is online

2012-12-07 Thread Seiji Aguchi
Can all these things really happen (did you run into this problem on a real system?). Or is this just a theoretical problem. Ugly (but practical) hacks might be OK to solve real problems. It is a theoretical problem right now. But it is a timing issue and there is a possibility to happen

RE: [PATCH] Avoid dead lock of console related locks in panic case

2012-11-30 Thread Seiji Aguchi
> What I actually meant was: can "this" CPU avoid stopping other CPUs so early? > If we stop the other CPUs when this CPU is ready to > stop itself then there will never be such deadlocks. Let me explain my opinion. When we focus on the deadlock only, the code will be simple by moving

RE: [PATCH] Avoid dead lock of console related locks in panic case

2012-11-30 Thread Seiji Aguchi
Thank you for giving me the comment. > - Makes the logic in this area even more twisty and complex, when > what we need to do is to simplify it > > - Reinitialises in-use locks > > - Gives the boolean variable "yes" three states, but didn't rename > that variable to something appropriate.

[PATCH] Avoid dead lock of console related locks in panic case

2012-11-30 Thread Seiji Aguchi
can't see panic messages. [Solution] this patch introduces a logic initializing logbuf_lock and console_sem just after smp_send_stop() to avoid dead locks above. Signed-off-by: Seiji Aguchi --- include/linux/printk.h |5 + kernel/panic.c |1 + kernel/printk.c| 17

[PATCH] Avoid dead lock of console related locks in panic case

2012-11-30 Thread Seiji Aguchi
can't see panic messages. [Solution] this patch introduces a logic initializing logbuf_lock and console_sem just after smp_send_stop() to avoid dead locks above. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- include/linux/printk.h |5 + kernel/panic.c |1 + kernel/printk.c

RE: [PATCH] Avoid dead lock of console related locks in panic case

2012-11-30 Thread Seiji Aguchi
Thank you for giving me the comment. - Makes the logic in this area even more twisty and complex, when what we need to do is to simplify it - Reinitialises in-use locks - Gives the boolean variable yes three states, but didn't rename that variable to something appropriate. I

RE: [PATCH] Avoid dead lock of console related locks in panic case

2012-11-30 Thread Seiji Aguchi
What I actually meant was: can this CPU avoid stopping other CPUs so early? If we stop the other CPUs when this CPU is ready to stop itself then there will never be such deadlocks. Let me explain my opinion. When we focus on the deadlock only, the code will be simple by moving

RE: linux-next: manual merge of the ia64 tree with Linus' tree

2012-11-25 Thread Seiji Aguchi
t; Anton Vorontsov; Seiji Aguchi > Subject: linux-next: manual merge of the ia64 tree with Linus' tree > > Hi all, > > Today's linux-next merge of the ia64 tree got a conflict in > fs/pstore/platform.c between commit 70a6f46d7b0e ("pstore: Fix NULL > pointer dereference in

RE: linux-next: manual merge of the ia64 tree with Linus' tree

2012-11-25 Thread Seiji Aguchi
Hi, This fix is reasonable to me. Thanks, Seiji -Original Message- From: Stephen Rothwell [mailto:s...@canb.auug.org.au] Sent: Sunday, November 25, 2012 7:32 PM To: Luck, Tony Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org; Colin Ian King; Anton Vorontsov; Seiji

[PATCH v6 7/7] efi_pstore: Add a format check for an existing variable name at erasing time

2012-11-14 Thread Seiji Aguchi
can't erase it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a erase callback to make it erasable. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers

[PATCH v6 6/7] efi_pstore: Add a format check for an existing variable name at reading time

2012-11-14 Thread Seiji Aguchi
can't read it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a read callback to make it readable. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers

[PATCH v6 5/7] efi_pstore: Add a sequence counter to a variable name

2012-11-14 Thread Seiji Aguchi
of a write callback executed in pstore_console_write(), "0" is added to an argument of the write callback because it just logs all kernel messages and doesn't need to care about multiple events. Signed-off-by: Seiji Aguchi Acked-by: Rafael J. Wysocki Acked-by: Mike Waychison --- driv

[PATCH v6 4/7] efi_pstore: Add ctime to argument of erase callback

2012-11-14 Thread Seiji Aguchi
. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers/acpi/apei/erst.c |4 ++-- drivers/firmware/efivars.c | 17 - fs/pstore/inode.c |3 ++- fs/pstore/ram.c|2 +- include/linux/pstore.h |2 +- 5 files changed, 14 insertions

[PATCH v6 3/7] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-11-14 Thread Seiji Aguchi
multiple logs. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers/firmware/efivars.c | 39 ++- 1 files changed, 2 insertions(+), 37 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index bee14cc..fbe9202 100644

[PATCH v6 2/7] efi_pstore: Add a logic erasing entries to an erase callback

2012-11-14 Thread Seiji Aguchi
logs, the write callback doesn't need to erase any entries and it will be removed in a subsequent patch. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers/firmware/efivars.c | 46 +++- 1 files changed, 45 insertions(+), 1 deletions(-) diff

[PATCH v6 1/7] efi_pstore: Check remaining space with QueryVariableInfo() before writing data

2012-11-14 Thread Seiji Aguchi
at writing time. Therefore, efi_pstore may not work if it tries to write a large amount of data. [Patch Description] To avoid handling the situation above, this patch checks if there is a space enough to log with QueryVariableInfo() before writing data. Signed-off-by: Seiji Aguchi Acked-by: Mike

[PATCH v6 0/7] efi_pstore: multiple event logging support

2012-11-14 Thread Seiji Aguchi
the possibility of introducing overwriting policy, especially getting critical messages in multiple oops case. But I would like to begin with a simple and reasonable way to everyone. So, this patch takes an approach just holding multiple logs. Seiji Aguchi (7): efi_pstore: Check

[PATCH v6 0/7] efi_pstore: multiple event logging support

2012-11-14 Thread Seiji Aguchi
of introducing overwriting policy, especially getting critical messages in multiple oops case. But I would like to begin with a simple and reasonable way to everyone. So, this patch takes an approach just holding multiple logs. Seiji Aguchi (7): efi_pstore: Check remaining space

[PATCH v6 1/7] efi_pstore: Check remaining space with QueryVariableInfo() before writing data

2012-11-14 Thread Seiji Aguchi
at writing time. Therefore, efi_pstore may not work if it tries to write a large amount of data. [Patch Description] To avoid handling the situation above, this patch checks if there is a space enough to log with QueryVariableInfo() before writing data. Signed-off-by: Seiji Aguchi seiji.agu

[PATCH v6 2/7] efi_pstore: Add a logic erasing entries to an erase callback

2012-11-14 Thread Seiji Aguchi
logs, the write callback doesn't need to erase any entries and it will be removed in a subsequent patch. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike Waychison mi...@google.com --- drivers/firmware/efivars.c | 46 +++- 1 files changed, 45

[PATCH v6 3/7] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-11-14 Thread Seiji Aguchi
multiple logs. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike Waychison mi...@google.com --- drivers/firmware/efivars.c | 39 ++- 1 files changed, 2 insertions(+), 37 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c

[PATCH v6 4/7] efi_pstore: Add ctime to argument of erase callback

2012-11-14 Thread Seiji Aguchi
at reading time. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike Waychison mi...@google.com --- drivers/acpi/apei/erst.c |4 ++-- drivers/firmware/efivars.c | 17 - fs/pstore/inode.c |3 ++- fs/pstore/ram.c|2 +- include/linux/pstore.h

[PATCH v6 5/7] efi_pstore: Add a sequence counter to a variable name

2012-11-14 Thread Seiji Aguchi
(second event) ctime:12345678 In case of a write callback executed in pstore_console_write(), 0 is added to an argument of the write callback because it just logs all kernel messages and doesn't need to care about multiple events. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Rafael J

[PATCH v6 6/7] efi_pstore: Add a format check for an existing variable name at reading time

2012-11-14 Thread Seiji Aguchi
can't read it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a read callback to make it readable. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike

[PATCH v6 7/7] efi_pstore: Add a format check for an existing variable name at erasing time

2012-11-14 Thread Seiji Aguchi
can't erase it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a erase callback to make it erasable. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike

[PATCH v5 7/7] efi_pstore: Add a format check for an existing variable name at erasing time

2012-11-13 Thread Seiji Aguchi
can't erase it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a erase callback to make it erasable. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers

[PATCH v5 6/7] efi_pstore: Add a format check for an existing variable name at reading time

2012-11-13 Thread Seiji Aguchi
can't read it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a read callback to make it readable. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers

[PATCH v5 5/7] efi_pstore: Add a sequence counter to a variable name

2012-11-13 Thread Seiji Aguchi
of a write callback executed in pstore_console_write(), "0" is added to an argument of the write callback because it just logs all kernel messages and doesn't need to care about multiple events. Signed-off-by: Seiji Aguchi Acked-by: Rafael J. Wysocki Acked-by: Mike Waychison --- driv

[PATCH v5 4/7] efi_pstore: Add ctime to argument of erase callback

2012-11-13 Thread Seiji Aguchi
. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers/acpi/apei/erst.c |4 ++-- drivers/firmware/efivars.c | 15 +++ fs/pstore/inode.c |3 ++- fs/pstore/ram.c|2 +- include/linux/pstore.h |2 +- 5 files changed, 13 insertions

[PATCH v5 3/7] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-11-13 Thread Seiji Aguchi
multiple logs. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers/firmware/efivars.c | 39 ++- 1 files changed, 2 insertions(+), 37 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index bee14cc..fbe9202 100644

[PATCH v5 1/7] efi_pstore: Check remaining space with QueryVariableInfo() before writing data

2012-11-13 Thread Seiji Aguchi
at writing time. Therefore, efi_pstore may not work if it tries to write a large amount of data. [Patch Description] To avoid handling the situation above, this patch checks if there is a space enough to log with QueryVariableInfo() before writing data. Signed-off-by: Seiji Aguchi Acked-by: Mike

[PATCH v5 2/7] efi_pstore: Add a logic erasing entries to an erase callback

2012-11-13 Thread Seiji Aguchi
logs, the write callback doesn't need to erase any entries and it will be removed in a subsequent patch. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers/firmware/efivars.c | 46 +++- 1 files changed, 45 insertions(+), 1 deletions(-) diff

[PATCH v5 0/7] efi_pstore: multiple event logging support

2012-11-13 Thread Seiji Aguchi
ions to find the possibility of introducing overwriting policy, especially getting critical messages in multiple oops case. But I would like to begin with a simple and reasonable way to everyone. So, this patch takes an approach just holding multiple logs. Seiji Aguchi (7): efi_pstore: Check rem

[PATCH v5 0/7] efi_pstore: multiple event logging support

2012-11-13 Thread Seiji Aguchi
the possibility of introducing overwriting policy, especially getting critical messages in multiple oops case. But I would like to begin with a simple and reasonable way to everyone. So, this patch takes an approach just holding multiple logs. Seiji Aguchi (7): efi_pstore: Check remaining space

[PATCH v5 2/7] efi_pstore: Add a logic erasing entries to an erase callback

2012-11-13 Thread Seiji Aguchi
logs, the write callback doesn't need to erase any entries and it will be removed in a subsequent patch. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike Waychison mi...@google.com --- drivers/firmware/efivars.c | 46 +++- 1 files changed, 45

[PATCH v5 1/7] efi_pstore: Check remaining space with QueryVariableInfo() before writing data

2012-11-13 Thread Seiji Aguchi
at writing time. Therefore, efi_pstore may not work if it tries to write a large amount of data. [Patch Description] To avoid handling the situation above, this patch checks if there is a space enough to log with QueryVariableInfo() before writing data. Signed-off-by: Seiji Aguchi seiji.agu

[PATCH v5 3/7] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-11-13 Thread Seiji Aguchi
multiple logs. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike Waychison mi...@google.com --- drivers/firmware/efivars.c | 39 ++- 1 files changed, 2 insertions(+), 37 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c

[PATCH v5 4/7] efi_pstore: Add ctime to argument of erase callback

2012-11-13 Thread Seiji Aguchi
at reading time. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike Waychison mi...@google.com --- drivers/acpi/apei/erst.c |4 ++-- drivers/firmware/efivars.c | 15 +++ fs/pstore/inode.c |3 ++- fs/pstore/ram.c|2 +- include/linux/pstore.h

[PATCH v5 5/7] efi_pstore: Add a sequence counter to a variable name

2012-11-13 Thread Seiji Aguchi
(second event) ctime:12345678 In case of a write callback executed in pstore_console_write(), 0 is added to an argument of the write callback because it just logs all kernel messages and doesn't need to care about multiple events. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Rafael J

[PATCH v5 6/7] efi_pstore: Add a format check for an existing variable name at reading time

2012-11-13 Thread Seiji Aguchi
can't read it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a read callback to make it readable. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike

[PATCH v5 7/7] efi_pstore: Add a format check for an existing variable name at erasing time

2012-11-13 Thread Seiji Aguchi
can't erase it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a erase callback to make it erasable. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com Acked-by: Mike

[RESEND][PATCH v4 7/7] Add a format check for an existing variable name at erasing time

2012-11-01 Thread Seiji Aguchi
can't erase it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a erase callback to make it erasable. Signed-off-by: Seiji Aguchi --- drivers/firmware/efivars.c | 20

[RESEND][PATCH v4 6/7] efi_pstore: Add a format check for an existing variable name at reading time

2012-11-01 Thread Seiji Aguchi
can't read it via /dev/pstore. Format of old variable name dump-type0-1-12345678 type:0 id:1 ctime:12345678 [Solution] This patch add a format check for the old variable name in a read callback to make it readable. Signed-off-by: Seiji Aguchi --- drivers/firmware/efivars.c | 38

[RESEND][PATCH v4 5/7] efi_pstore: Add a sequence counter to a variable name

2012-11-01 Thread Seiji Aguchi
among them. it can be distinguishable by adding a sequence counter as follows. a variable name of first event: dump-type0-1-1-12345678 a variable name of Second event: dump-type0-1-2-12345678 type:0 id:1 sequence counter: 1(first event), 2(second event) ctime:12345678 Signed-off

[RESEND][PATCH v4 4/7] efi_pstore: Add ctime to argument of erase callback

2012-11-01 Thread Seiji Aguchi
. Signed-off-by: Seiji Aguchi --- drivers/acpi/apei/erst.c |4 ++-- drivers/firmware/efivars.c | 17 - fs/pstore/inode.c |3 ++- fs/pstore/ram.c|2 +- include/linux/pstore.h |2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff

[RESEND][PATCH v4 3/7] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-11-01 Thread Seiji Aguchi
multiple logs. Signed-off-by: Seiji Aguchi --- drivers/firmware/efivars.c | 39 ++- 1 files changed, 2 insertions(+), 37 deletions(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index bee14cc..fbe9202 100644 --- a/drivers/firmware

[RESEND][PATCH v4 2/7] efi_pstore: Add a logic erasing entries to an erase callback

2012-11-01 Thread Seiji Aguchi
logs, the write callback doesn't need to erase any entries and it will be removed in a subsequent patch. Signed-off-by: Seiji Aguchi --- drivers/firmware/efivars.c | 46 +++- 1 files changed, 45 insertions(+), 1 deletions(-) diff --git a/drivers/firmware

[RESEND][PATCH v4 1/7] efi_pstore: Check remaining space with QueryVariableInfo() before writing data

2012-11-01 Thread Seiji Aguchi
at writing time. Therefore, efi_pstore may not work if it tries to write a large amount of data. [Patch Description] To avoid handling the situation above, this patch checks if there is a space enough to log with QueryVariableInfo() before writing data. Signed-off-by: Seiji Aguchi Acked-by: Mike

[RESEND][PATCH v4 0/7] efi_pstore: multiple event logging support

2012-11-01 Thread Seiji Aguchi
his patch takes an approach just holding multiple logs. [Patch Description] Seiji Aguchi (7): efi_pstore: Check remaining space with QueryVariableInfo() before writing data efi_pstore: Add a logic erasing entries to an erase callback efi_pstore: Remove a logic erasing entries from a write

<    1   2   3   4   5   6   >