[PATCH]Add kmsg_dump() to kexec path

2013-05-08 Thread Seiji Aguchi
y_printk_mrst/nvram driver for powerpc I don't see any bugs which may causes kdump failure because deadlocking/dynamic memory allocation don't happen in their write callbacks. Signed-off-by: Seiji Aguchi --- fs/pstore/platform.c |4 include/linux/kmsg_dump.h |1 +

RE: [tip:x86/efi2] efivars: efivar_entry API

2013-04-30 Thread Seiji Aguchi
I confirmed that efi_pstore_read() and efi_pstore_erase() work correctly. Please feel free to add Tested-by: Seiji Aguchi > -Original Message- > From: Matt Fleming [mailto:matt.flem...@intel.com] > Sent: Tuesday, April 30, 2013 7:28 AM > To: Seiji Aguchi > C

RE: [tip:x86/efi2] efivars: efivar_entry API

2013-04-26 Thread Seiji Aguchi
It worked with this fix. Thanks! Seiji > -Original Message- > From: Matt Fleming [mailto:matt.flem...@intel.com] > Sent: Friday, April 26, 2013 10:55 AM > To: Seiji Aguchi > Cc: linux-kernel@vger.kernel.org; mi...@kernel.org; h...@zytor.com; > mj...@srcf.ucam.org; tony

RE: [tip:x86/efi2] efivars: efivar_entry API

2013-04-26 Thread Seiji Aguchi
>Did you mount the efivarfs file system there? Ah... It worked by mounting efivarfs. Thanks. > -Original Message- > From: Fleming, Matt [mailto:matt.flem...@intel.com] > Sent: Friday, April 26, 2013 10:35 AM > To: Seiji Aguchi > Cc: linux-kernel@vger.kernel.org; m

RE: [tip:x86/efi2] efivars: efivar_entry API

2013-04-26 Thread Seiji Aguchi
: Friday, April 26, 2013 5:56 AM > To: Seiji Aguchi > Cc: linux-kernel@vger.kernel.org; mi...@kernel.org; h...@zytor.com; > mj...@srcf.ucam.org; tony.l...@intel.com; j...@ozlabs.org; > t...@jklm.no; t...@linutronix.de; mi...@google.com; > linux-tip-comm...@vger.kernel.org > Su

RE: [PATCH 097/102] efivars: explicitly calculate length of VariableName

2013-04-10 Thread Seiji Aguchi
> -Original Message- > From: Luis Henriques [mailto:luis.henriq...@canonical.com] > Sent: Wednesday, April 10, 2013 8:18 AM > To: Lingzhu Xiang > Cc: Ben Hutchings; Seiji Aguchi; linux-kernel@vger.kernel.org; > sta...@vger.kernel.org; kernel-t...@lists.ubuntu.com;

RE: [PATCH 3/6] efivars: efivar_entry API

2013-04-10 Thread Seiji Aguchi
> -static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type, > -int *count, struct timespec *timespec, > -char **buf, struct pstore_info *psi) > +struct pstore_read_data { > + u64 *id; > + enum pstore_type_id *type; > + in

RE: [PATCH v12 3/3] trace,x86: code-sharing between non-trace and trace irq handlers

2013-04-05 Thread Seiji Aguchi
lugin function_graph Seiji > -Original Message----- > From: Seiji Aguchi > Sent: Friday, April 05, 2013 3:22 PM > To: linux-kernel@vger.kernel.org; x...@kernel.org; rost...@goodmis.org; > h...@zytor.com > Cc: Thomas Gleixner (t...@linutronix.de); 'mi...@elte.hu' (mi

[PATCH v12 3/3] trace,x86: code-sharing between non-trace and trace irq handlers

2013-04-05 Thread Seiji Aguchi
_exit(); irq_exit(); } But it doesn't work, either. If irq_enter() is nested, it may have a time penalty because it has to check if it \ was already called or not. The time penalty is not desired in performance sensitive \ paths even if it is tiny. Signed-off-by: Seiji Aguchi --- arch/x86/i

[PATCH v12 2/3] trace,x86: add x86 irq vector tracepoints

2013-04-05 Thread Seiji Aguchi
ng 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 --- arch/x86/include/asm/desc.h

[PATCH v12 1/3] tracing: Add DEFINE_EVENT_FN() macro

2013-04-05 Thread Seiji Aguchi
This unfortunately causes a lot of wasted duplicate code created. By adding a DEFINE_EVENT_FN(), these events can still use a DECLARE_EVENT_CLASS() and then define their own triggers. Signed-off-by: Steven Rostedt Signed-off-by: Seiji Aguchi --- include/linux/tracepoint.h |2 ++ include/

[PATCH v12 0/3] trace,x86: irq vector tracepoint support

2013-04-05 Thread Seiji Aguchi
ependently. - local_timer_vector - reschedule_vector - call_function_vector - call_function_single_vector - irq_work_entry_vector - error_apic_vector - thermal_apic_vector - threshold_apic_vector - spurious_apic_vector - x86_platform_ipi_vector Please see descriptions in each

RE: [PATCH v11 1/3] tracing: Add DEFINE_EVENT_FN() macro

2013-03-15 Thread Seiji Aguchi
ch 15, 2013 5:10 PM > To: Seiji Aguchi > Cc: H. Peter Anvin (h...@zytor.com); x...@kernel.org; > linux-kernel@vger.kernel.org; Thomas Gleixner (t...@linutronix.de); > 'mi...@elte.hu' (mi...@elte.hu); Borislav Petkov (b...@alien8.de); Satoru > Moriya (smor...@redhat.co

[Resend][PATCH v11 1/3] tracing: Add DEFINE_EVENT_FN() macro

2013-03-15 Thread Seiji Aguchi
This unfortunately causes a lot of wasted duplicate code created. By adding a DEFINE_EVENT_FN(), these events can still use a DECLARE_EVENT_CLASS() and then define their own triggers. Signed-off-by: Steven Rostedt Signed-off-by: Seiji Aguchi --- include/linux/tracepoint.h |2 ++ include/

[PATCH v11 1/3] tracing: Add DEFINE_EVENT_FN() macro

2013-03-15 Thread Seiji Aguchi
ot of wasted duplicate code created. By adding a DEFINE_EVENT_FN(), these events can still use a DECLARE_EVENT_CLASS() and then define their own triggers. Signed-off-by: Steven Rostedt Signed-off-by: Seiji Aguchi --- include/linux/tracepoint.h |2 ++ include/trace/define_trace.h |

[PATCH v11 0/3]trace,x86: irq vector tracepoint support

2013-03-15 Thread Seiji Aguchi
vector - reschedule_vector - call_function_vector - call_function_single_vector - irq_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): trac

[PATCH v11 2/3] trace,x86: add x86 irq vector tracepoints

2013-03-15 Thread Seiji Aguchi
ng 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 --- arch/x86/include/asm/desc.h

[PATCH v11 3/3] trace,x86: code-sharing between non-trace and trace irq handlers

2013-03-15 Thread Seiji Aguchi
_exit(); irq_exit(); } But it doesn't work, either. If irq_enter() is nested, it may have a time penalty because it has to check if it \ was already called or not. The time penalty is not desired in performance sensitive \ paths even if it is tiny. Signed-off-by: Seiji Aguchi --- arch/x86/i

RE: [PATCH]Skip unnecessary WARN_ON in panic case

2013-03-15 Thread Seiji Aguchi
Thank you for giving me the feedback. > > So it appears the problem occurs because the other CPUs are not offlined > correctly, and still have pending work which may generate > wakeup IPIs to them? Right. > > The fix would be to either offline them properly - or, if we don't want to do > tha

[PATCH]Skip unnecessary WARN_ON in panic case

2013-03-06 Thread Seiji Aguchi
[] system_call_fastpath+0x16/0x1b ---[ end trace b3d5243c59d80624 ]--- [Solution] Skip WARN_ON() when a panicked cpu which is set to stopping_cpu in smp_send_stop() calls native_smp_send_reschedule(). Signed-off-by: Seiji Aguchi --- arch/x86/kernel/smp.c |6 +- 1 files changed, 5

RE: [PATCH v9 2/3] trace,x86: add x86 irq vector tracepoints

2013-02-19 Thread Seiji Aguchi
OK. I will update my patch. Seiji > -Original Message- > From: Steven Rostedt [mailto:rost...@goodmis.org] > Sent: Tuesday, February 19, 2013 1:41 PM > To: H. Peter Anvin > Cc: Seiji Aguchi; x...@kernel.org; linux-kernel@vger.kernel.org; Thomas > Gleixner (t...@l

RE: [PATCH v9 2/3] trace,x86: add x86 irq vector tracepoints

2013-02-18 Thread Seiji Aguchi
> > Not-yet-signed-off-by: Steven Rostedt > > > > ... so I was holding off on doing anything with it. > > Heh, and I was waiting for comments from you before doing anything further > with it ;-) > > Email review deadlock! So, how do you plan to push ahead with this patch? https://lkml.org/lkm

[PATCH v10 2/3] trace,x86: add x86 irq vector tracepoints

2013-02-15 Thread Seiji Aguchi
ng 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 --- arch/x86/include/asm/desc.h

[PATCH v10 3/3] trace,x86: code-sharing between non-trace and trace irq handlers

2013-02-15 Thread Seiji Aguchi
_exit(); irq_exit(); } But it doesn't work, either. If irq_enter() is nested, it may have a time penalty because it has to check if it was already called or not. The time penalty is not desired in performance sensitive paths even if it is tiny. Signed-off-by: Seiji Aguchi --- arch/x86/include/

[PATCH v10 1/3] tracing: Add DEFINE_EVENT_FN() macro

2013-02-15 Thread Seiji Aguchi
This unfortunately causes a lot of wasted duplicate code created. By adding a DEFINE_EVENT_FN(), these events can still use a DECLARE_EVENT_CLASS() and then define their own triggers. Signed-off-by: Steven Rostedt Signed-off-by: Seiji Aguchi --- include/linux/tracepoint.h |2 ++ include/

[PATCH v10 0/3]trace,x86: irq vector tracepoint support

2013-02-15 Thread Seiji Aguchi
tor - reschedule_vector - call_function_vector - call_function_single_vector - irq_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): t

RE: [PATCH v9 3/3] trace,x86: code-sharing between non-trace and trace irq handlers

2013-02-15 Thread Seiji Aguchi
> > How important is it that the tracepoint is *inside* the enter/exit > > handling? If not, it would be simpler to just do: > > > > smp_trace_irq_handler() > > { > > trace_irq_entry(); > > smp_irq_handler(); > > trace_irq_exit(); > > } > > > > ... which seems a bit cleaner. If this i

RE: extra free kbytes tunable

2013-02-15 Thread Seiji Aguchi
riya; linux-kernel@vger.kernel.org; > linux...@kvack.org; lwood...@redhat.com; Seiji Aguchi; > a...@linux-foundation.org; hu...@google.com > Subject: extra free kbytes tunable > > Hi, > > As discussed in this thread: > http://marc.info/?l=linux-mm&m=131490523222031&

RE: [PATCH v9 0/3]trace,x86: irq vector tracepoint support

2013-02-12 Thread Seiji Aguchi
Peter, Could you please review this patchset? I have updated it in accordance with Steven's comment. Seiji > -Original Message- > From: Seiji Aguchi > Sent: Monday, February 04, 2013 5:49 PM > To: 'Steven Rostedt'; x...@kernel.org; H. Peter Anvin (h...@

[PATCH v6 -next 2/2]efi_pstore: Introducing workqueue updating sysfs entries

2013-02-11 Thread Seiji Aguchi
need to create sysfs entries because there is no chance for users to access to them. efi_pstore will be robust against a kernel panic in an interrupt context with this patch. Signed-off-by: Seiji Aguchi Acked-by: Matt Fleming --- drivers/firmware/efivars.c |

[PATCH v6 -next 1/2] efivars: Disable external interrupt while holding efivars->lock

2013-02-11 Thread Seiji Aguchi
ite() via kmsg_dump(KSMG_DUMP_PANIC) And it can hold the lock successfully. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison Acked-by: Matt Fleming --- drivers/firmware/efivars.c | 86 ++- 1 files changed, 44 insertions(+), 42 deletions(-) diff --git

[PATCH v6 -next 0/2] make efivars/efi_pstore interrupt-safe

2013-02-11 Thread Seiji Aguchi
406 To resolve problems above, this patchset makes efivars/efi_pstore interrupt-safe. [Patch Description] Please see detailed explanations in each patch. Seiji Aguchi (2): efivars: Disable external interrupt while holding efivars->lock efi_pstore: Introducing workqu

RE: [PATCH v5 -next 1/2]efivars: Disable external interrupt while holding efivars->lock

2013-02-11 Thread Seiji Aguchi
Matt, > Acked-by: Matt Fleming > > Tony, are you picking this up? Thank you for reviewing and acking my patchset. Tony, This patchset can't be applied to a latest next tree due to following commits. I will post v6 shortly to fit the latest next tree. Then, please apply it. efi: Make 'efi_ena

RE: [PATCH v5 -next 0/2] make efivars/efi_pstore interrupt-safe

2013-02-08 Thread Seiji Aguchi
e to dynamic memory allocations during creating >sysfs entries. >An actual failure due to the create_sysfs_entry() has been reported. >http://comments.gmane.org/gmane.linux.kernel.efi/406 > > To resolve problems above, this patchset makes efivars/efi_pstore > interrupt

[PATCH v9 3/3] trace,x86: code-sharing between non-trace and trace irq handlers

2013-02-04 Thread Seiji Aguchi
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/include/asm/apic.h | 27

[PATCH v9 2/3] trace,x86: add x86 irq vector tracepoints

2013-02-04 Thread Seiji Aguchi
ng 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 --- arch/x86/include/asm/desc.h

[PATCH v9 1/3] tracing: Add DEFINE_EVENT_FN() macro

2013-02-04 Thread Seiji Aguchi
This unfortunately causes a lot of wasted duplicate code created. By adding a DEFINE_EVENT_FN(), these events can still use a DECLARE_EVENT_CLASS() and then define their own triggers. Signed-off-by: Steven Rostedt Signed-off-by: Seiji Aguchi --- include/linux/tracepoint.h |2 ++ include/

[PATCH v9 0/3]trace,x86: irq vector tracepoint support

2013-02-04 Thread Seiji Aguchi
r - 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): trace,x86: add x86 irq vector tracepoints trace,x86: code-sharing between non-trace and trace irq handlers Steven Ro

RE: [RFC][PATCH v8 2/3] trace,x86: add x86 irq vector tracepoints

2013-02-01 Thread Seiji Aguchi
> > Also, don't forget to add the mutex protection that I suggested in another > email. Will do. Thanks, Seiji -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordo

RE: [RFC][PATCH v8 2/3] trace,x86: add x86 irq vector tracepoints

2013-02-01 Thread Seiji Aguchi
> > +#include > > +#include > > + > > +static struct desc_ptr trace_idt_descr = { NR_VECTORS * 16 - 1, > > + (unsigned long) trace_idt_table }; > > + > > +#ifndef CONFIG_X86_64 > > +gate_desc trace_idt_table[NR_VECTORS] __page_aligned_data > > +

RE: [RFC][PATCH v8 1/3] tracing: Add DEFINE_EVENT_FN() macro

2013-01-31 Thread Seiji Aguchi
gt; From: Steven Rostedt [mailto:rost...@goodmis.org] > Sent: Thursday, January 31, 2013 6:22 PM > To: Seiji Aguchi > Cc: x...@kernel.org; H. Peter Anvin (h...@zytor.com); > linux-kernel@vger.kernel.org; Thomas Gleixner (t...@linutronix.de); > 'mi...@elte.hu' (mi...@elte.hu); B

[PATCH v5 -next 2/2]efi_pstore: Introducing workqueue updating sysfs entries

2013-01-23 Thread Seiji Aguchi
x27;t need to create sysfs entries because there is no chance for users to access to them. efi_pstore will be robust against a kernel panic in an interrupt context with this patch. Signed-off-by: Seiji Aguchi --- drivers/firmware/efivars.c | 85 +--- in

[PATCH v5 -next 1/2]efivars: Disable external interrupt while holding efivars->lock

2013-01-23 Thread Seiji Aguchi
ite() via kmsg_dump(KSMG_DUMP_PANIC) And it can hold the lock successfully. Signed-off-by: Seiji Aguchi Acked-by: Mike Waychison --- drivers/firmware/efivars.c | 86 ++- 1 files changed, 44 insertions(+), 42 deletions(-) diff --git a/drivers/firmware/ef

[PATCH v5 -next 0/2] make efivars/efi_pstore interrupt-safe

2013-01-23 Thread Seiji Aguchi
to the create_sysfs_entry() has been reported. http://comments.gmane.org/gmane.linux.kernel.efi/406 To resolve problems above, this patchset makes efivars/efi_pstore interrupt-safe. [Patch Description] Please see detailed explanations in each patch. Seiji Aguchi (2): efivars: Disable external i

RE: ERST: how to avoid a dynamic memory allocation in panic case

2013-01-22 Thread Seiji Aguchi
> > > > @@ -918,10 +918,7 @@ acpi_os_read_memory(acpi_physical_address phys_addr, > > u64 *value, u32 width) > > virt_addr = acpi_map_vaddr_lookup(phys_addr, size); > > if (!virt_addr) { > > rcu_read_unlock(); > > - virt_addr = acpi_os_ioremap(phys_addr, size); > >

ERST: how to avoid a dynamic memory allocation in panic case

2013-01-22 Thread Seiji Aguchi
[Issue] Current erst driver is kicked in panic case. On the other hand, a dynamic memory allocation seems to run in it with a following code path. erst_writer -> erst_write -> __erst_write_to_storage -> many of apei_exec_run -> ctx->ins_table[entry->instruction].run() which are functions defin

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

2013-01-21 Thread Seiji Aguchi
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/include/asm/apic.h | 27

[RFC][PATCH v8 2/3] trace,x86: add x86 irq vector tracepoints

2013-01-21 Thread Seiji Aguchi
ng 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 --- arch/x86/include/asm/desc.h

[RFC][PATCH v8 1/3] tracing: Add DEFINE_EVENT_FN() macro

2013-01-21 Thread Seiji Aguchi
ot of wasted duplicate code created. By adding a DEFINE_EVENT_FN(), these events can still use a DECLARE_EVENT_CLASS() and then define their own triggers. Signed-off-by: Seiji Aguchi Signed-off-by: Steven Rostedt --- include/linux/tracepoint.h |2 ++ include/trace/define_trace.h |

[RFC][PATCH v8 0/3]trace,x86: irq vector tracepoint support

2013-01-21 Thread Seiji Aguchi
_timer_vector - reschedule_vector - call_function_vector - call_function_single_vector - irq_work_entry_vector - error_apic_vector - thermal_apic_vector - threshold_apic_vector - spurious_apic_vector - x86_platform_ipi_vector Please see descriptions in each patc

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: [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 li

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

2013-01-11 Thread Seiji Aguchi
id 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/platf

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

2013-01-11 Thread Seiji Aguchi
ths. 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/pla

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: [PATC

[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
ng 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 --- arch/x86/include/asm/desc.h

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

2013-01-10 Thread Seiji Aguchi
ector - irq_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,x8

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

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); >

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

2012-12-20 Thread Seiji Aguchi
id 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
king 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/platf

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

2012-12-20 Thread Seiji Aguchi
s 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

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 some

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
e, at boot time 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 p

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

2012-12-17 Thread Seiji Aguchi
id 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
ction 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

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-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 pla

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 rese

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
locking 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 @@

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 smp_sen

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|

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 deref

[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 --- dr

[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 --- dr

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

2012-11-14 Thread Seiji Aguchi
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 Acked-by: Rafael J. Wysocki Acked-by: Mike Waych

[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 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

[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 --- a

[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(-)

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

2012-11-14 Thread Seiji Aguchi
ining space of storage 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:

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

2012-11-14 Thread Seiji Aguchi
ssions 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_p

[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 --- dr

[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 --- dr

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

2012-11-13 Thread Seiji Aguchi
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 Acked-by: Rafael J. Wysocki Acked-by: Mike Waych

[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 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

[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 --- a

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

2012-11-13 Thread Seiji Aguchi
ining space of storage 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:

[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(-)

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

2012-11-13 Thread Seiji Aguchi
urther discussions 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):

[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 |

[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 |

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

2012-11-01 Thread Seiji Aguchi
are same 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

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

2012-11-01 Thread Seiji Aguchi
at reading time. 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 del

<    1   2   3   >