RE: [PATCH v2] efi-pstore: Make efi-pstore return a unique id

2013-11-27 Thread Seiji Aguchi
> -Original Message- > From: Matt Fleming [mailto:m...@console-pimps.org] > Sent: Wednesday, November 27, 2013 6:45 AM > To: Madper Xie > Cc: 'linux-kernel@vger.kernel.org'; linux-...@vger.kernel.org; > matt.flem...@intel.com; Seiji Aguchi; rich...@nod.at; Tony

RE: [PATCH v2] efi-pstore: Make efi-pstore return a unique id

2013-11-27 Thread Seiji Aguchi
-Original Message- From: Matt Fleming [mailto:m...@console-pimps.org] Sent: Wednesday, November 27, 2013 6:45 AM To: Madper Xie Cc: 'linux-kernel@vger.kernel.org'; linux-...@vger.kernel.org; matt.flem...@intel.com; Seiji Aguchi; rich...@nod.at; Tony Luck Subject: Re: [PATCH v2

RE: [tip:x86/trace] x86, trace: Add page fault tracepoints

2013-11-11 Thread Seiji Aguchi
> Seiji - are you okay with this? If so I'll just make a quick patch now. > I'm OK with it. 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/majordomo-info.html

RE: [tip:x86/trace] x86, trace: Add page fault tracepoints

2013-11-11 Thread Seiji Aguchi
Seiji - are you okay with this? If so I'll just make a quick patch now. I'm OK with it. 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/majordomo-info.html

[tip:x86/trace] x86, trace: Add page fault tracepoints

2013-11-08 Thread tip-bot for Seiji Aguchi
Commit-ID: d34603b07c4255b2b00a546d34f297ccd50ae4c6 Gitweb: http://git.kernel.org/tip/d34603b07c4255b2b00a546d34f297ccd50ae4c6 Author: Seiji Aguchi AuthorDate: Wed, 30 Oct 2013 16:39:03 -0400 Committer: H. Peter Anvin CommitDate: Fri, 8 Nov 2013 14:15:49 -0800 x86, trace: Add page

[tip:x86/trace] x86, trace: Register exception handler to trace IDT

2013-11-08 Thread tip-bot for Seiji Aguchi
Commit-ID: 25c74b10bacead867478480170083f69cfc0db48 Gitweb: http://git.kernel.org/tip/25c74b10bacead867478480170083f69cfc0db48 Author: Seiji Aguchi AuthorDate: Wed, 30 Oct 2013 16:37:00 -0400 Committer: H. Peter Anvin CommitDate: Fri, 8 Nov 2013 14:15:45 -0800 x86, trace: Register

[tip:x86/trace] x86, trace: Delete __trace_alloc_intr_gate()

2013-11-08 Thread tip-bot for Seiji Aguchi
Commit-ID: ac7956e2699380b8b10146ec2ba8cbe43a03ff7a Gitweb: http://git.kernel.org/tip/ac7956e2699380b8b10146ec2ba8cbe43a03ff7a Author: Seiji Aguchi AuthorDate: Wed, 30 Oct 2013 16:37:47 -0400 Committer: H. Peter Anvin CommitDate: Fri, 8 Nov 2013 14:15:47 -0800 x86, trace: Delete

[tip:x86/trace] x86, trace: Remove __alloc_intr_gate()

2013-11-08 Thread tip-bot for Seiji Aguchi
Commit-ID: 959c071f0974cda7702d7574647de7ad9259eb57 Gitweb: http://git.kernel.org/tip/959c071f0974cda7702d7574647de7ad9259eb57 Author: Seiji Aguchi AuthorDate: Wed, 30 Oct 2013 16:36:08 -0400 Committer: H. Peter Anvin CommitDate: Fri, 8 Nov 2013 14:15:44 -0800 x86, trace: Remove

[tip:x86/trace] x86, trace: Delete __trace_alloc_intr_gate()

2013-11-08 Thread tip-bot for Seiji Aguchi
Commit-ID: ac7956e2699380b8b10146ec2ba8cbe43a03ff7a Gitweb: http://git.kernel.org/tip/ac7956e2699380b8b10146ec2ba8cbe43a03ff7a Author: Seiji Aguchi seiji.agu...@hds.com AuthorDate: Wed, 30 Oct 2013 16:37:47 -0400 Committer: H. Peter Anvin h...@linux.intel.com CommitDate: Fri, 8 Nov 2013

[tip:x86/trace] x86, trace: Add page fault tracepoints

2013-11-08 Thread tip-bot for Seiji Aguchi
Commit-ID: d34603b07c4255b2b00a546d34f297ccd50ae4c6 Gitweb: http://git.kernel.org/tip/d34603b07c4255b2b00a546d34f297ccd50ae4c6 Author: Seiji Aguchi seiji.agu...@hds.com AuthorDate: Wed, 30 Oct 2013 16:39:03 -0400 Committer: H. Peter Anvin h...@linux.intel.com CommitDate: Fri, 8 Nov 2013

[tip:x86/trace] x86, trace: Register exception handler to trace IDT

2013-11-08 Thread tip-bot for Seiji Aguchi
Commit-ID: 25c74b10bacead867478480170083f69cfc0db48 Gitweb: http://git.kernel.org/tip/25c74b10bacead867478480170083f69cfc0db48 Author: Seiji Aguchi seiji.agu...@hds.com AuthorDate: Wed, 30 Oct 2013 16:37:00 -0400 Committer: H. Peter Anvin h...@linux.intel.com CommitDate: Fri, 8 Nov 2013

[tip:x86/trace] x86, trace: Remove __alloc_intr_gate()

2013-11-08 Thread tip-bot for Seiji Aguchi
Commit-ID: 959c071f0974cda7702d7574647de7ad9259eb57 Gitweb: http://git.kernel.org/tip/959c071f0974cda7702d7574647de7ad9259eb57 Author: Seiji Aguchi seiji.agu...@hds.com AuthorDate: Wed, 30 Oct 2013 16:36:08 -0400 Committer: H. Peter Anvin h...@linux.intel.com CommitDate: Fri, 8 Nov 2013

RE: [PATCH] Make efi-pstore return a unique id

2013-11-02 Thread Seiji Aguchi
> How does efivars backend handle "unlink(2)" in the pstore file system. > pstore will call the backend->erase function passing the "id". The > backend should then erase the right record from persistent storage. > > With the ((timestamp * 100 + part) * 100 + count function - you can > easily

RE: [PATCH] Make efi-pstore return a unique id

2013-11-02 Thread Seiji Aguchi
How does efivars backend handle unlink(2) in the pstore file system. pstore will call the backend-erase function passing the id. The backend should then erase the right record from persistent storage. With the ((timestamp * 100 + part) * 100 + count function - you can easily reverse it to

RE: [PATCH] Make efi-pstore return a unique id

2013-11-01 Thread Seiji Aguchi
> What about feeding the bytes of all three integers into a non-cryptographic > hash function? > Using this way you get a cheap unique id. It is reasonable to me. Seiji

RE: [PATCH] Make efi-pstore return a unique id

2013-11-01 Thread Seiji Aguchi
> >> +{ > >> + char id_str[64]; > >> + u64 id = 0; > >> + > >> + sprintf(id_str, "%lu%u%d", timestamp, part, count); > >> + if (kstrtoull(id_str, 10, )) > >> + pr_warn("efi-pstore: failed to generate id\n"); > >> + return id; > >> +} > > > > This is just

RE: [PATCH] Make efi-pstore return a unique id

2013-11-01 Thread Seiji Aguchi
+{ + char id_str[64]; + u64 id = 0; + + sprintf(id_str, %lu%u%d, timestamp, part, count); + if (kstrtoull(id_str, 10, id)) + pr_warn(efi-pstore: failed to generate id\n); + return id; +} This is just odd. You make a string from

RE: [PATCH] Make efi-pstore return a unique id

2013-11-01 Thread Seiji Aguchi
What about feeding the bytes of all three integers into a non-cryptographic hash function? Using this way you get a cheap unique id. It is reasonable to me. Seiji

RE: [PATCH 0/2] make all stored entries accessible.

2013-10-31 Thread Seiji Aguchi
> I also like option 1 ... but I think the "id" should be a persistent value for > a given saved record. So some func(timestamp, part, count) would be a > good idea. If we try using "sequential" numbers - and don't manage to > clear out /sys/fs/pstore each time - then we may have the same

RE: [PATCH 0/2] make all stored entries accessible.

2013-10-31 Thread Seiji Aguchi
.kernel.org > [mailto:linux-efi-ow...@vger.kernel.org] On Behalf Of Madper Xie > Sent: Wednesday, October 30, 2013 11:01 PM > To: Luck, Tony > Cc: Seiji Aguchi; Madper Xie; keesc...@chromium.org; ccr...@android.com; > an...@enomsg.org; linux-...@vger.kernel.org; linux- > ker...@vg

RE: [PATCH 0/2] make all stored entries accessible.

2013-10-31 Thread Seiji Aguchi
: Wednesday, October 30, 2013 11:01 PM To: Luck, Tony Cc: Seiji Aguchi; Madper Xie; keesc...@chromium.org; ccr...@android.com; an...@enomsg.org; linux-...@vger.kernel.org; linux- ker...@vger.kernel.org; bbbo...@gmail.com Subject: Re: [PATCH 0/2] make all stored entries accessible. tony.l

RE: [PATCH 0/2] make all stored entries accessible.

2013-10-31 Thread Seiji Aguchi
I also like option 1 ... but I think the id should be a persistent value for a given saved record. So some func(timestamp, part, count) would be a good idea. If we try using sequential numbers - and don't manage to clear out /sys/fs/pstore each time - then we may have the same dmesg file

RE: [PATCH 0/2] make all stored entries accessible.

2013-10-30 Thread Seiji Aguchi
> Ah - I was expecting that the backend driver would have a unique "id" for > each record stored ... but is seems that this isn't true for efivars. > So, do you mean efivars should fix to use the "id" in a proper way? I acked Madper's patch 2/2 earlier today, but when I look at your test

[PATCH v4 3/4] Delete __trace_alloc_intr_gate()

2013-10-30 Thread Seiji Aguchi
Currently irq vector handlers for tracing are registered in both set_intr_gate() and __trace_alloc_intr_gate() in alloc_intr_gate(). But, we don't need to do that twice. So, let's delete __trace_alloc_intr_gate(). Signed-off-by: Seiji Aguchi --- arch/x86/include/asm/desc.h | 22

[PATCH v4 4/4] Add page fault tracepoints

2013-10-30 Thread Seiji Aguchi
if it comes from the page fault events. Signed-off-by: Seiji Aguchi --- arch/x86/include/asm/trace/exceptions.h | 52 + arch/x86/mm/Makefile| 2 ++ arch/x86/mm/fault.c | 13 + 3 files changed, 67 insertions(+) create mode

[PATCH v4 2/4] Register exception handler to trace IDT

2013-10-30 Thread Seiji Aguchi
t() to add tracepoints in a subsequent patch. Signed-off-by: Seiji Aguchi --- arch/x86/include/asm/desc.h| 28 +++- arch/x86/include/asm/hw_irq.h | 3 +++ arch/x86/include/asm/segment.h | 3 +++ arch/x86/include/asm/traps.h | 20 arch/x86/kernel/

[PATCH v4 0/4] Introduce page fault tracepoints

2013-10-30 Thread Seiji Aguchi
Change from v3: - Separate modifications to make review easy. - Refactor implementations registering exception/irq_vector handers. (Patch 1, 2, 3) This series introduce page fault tracepoints. Detailed descriptions are explained in each patch. Any comments are welcome. Seiji Aguchi (4

[PATCH v4 1/4] Move set_intr_gate() into macro

2013-10-30 Thread Seiji Aguchi
Move set_intr_gate() into a macro by removing __alloc_intr_gate(). The purpose is to avoid failing a kernel build after applying a subsequent patch which changes set_intr_gate() to macro. Signed-off-by: Seiji Aguchi --- arch/x86/include/asm/desc.h | 7 +-- 1 file changed, 1 insertion(+), 6

[PATCH v4] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-10-30 Thread Seiji Aguchi
[] SyS_mount+0x83/0xc0 [1.158207] [] system_call_fastpath+0x16/0x1b [1.158207] ---[ end trace 61981bc62de9f6f4 ]--- Signed-off-by: Seiji Aguchi --- drivers/firmware/efi/efi-pstore.c | 143 +++--- drivers/firmware/efi/efivars.c| 12 ++-- drivers/firmwar

RE: [PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-30 Thread Seiji Aguchi
> On Fri, 18 Oct, at 10:30:58PM, Seiji Aguchi wrote: > > The scanning and deleting logic is still needed. In case an entry(A) > > is found, the pointer is saved to psi->data. And efi_pstore_read() > > passes the entry(A) to a pstore filesystem by relea

RE: [PATCH 2/2] pstore: Differentiating names by adding count and timestamp

2013-10-30 Thread Seiji Aguchi
> -Original Message- > From: Madper Xie [mailto:c...@redhat.com] > Sent: Wednesday, October 30, 2013 5:45 AM > To: tony.l...@intel.com; keesc...@chromium.org; ccr...@android.com; > an...@enomsg.org; Seiji Aguchi > Cc: linux-...@vger.kernel.org; linux-kernel@vger.k

RE: [PATCH 1/2] pstore: avoid incorrectly mark entry as duplicate

2013-10-30 Thread Seiji Aguchi
> -Original Message- > From: Madper Xie [mailto:c...@redhat.com] > Sent: Wednesday, October 30, 2013 5:45 AM > To: tony.l...@intel.com; keesc...@chromium.org; ccr...@android.com; > an...@enomsg.org; Seiji Aguchi > Cc: linux-...@vger.kernel.org; linux-kernel@vger.k

RE: [PATCH 1/2] pstore: avoid incorrectly mark entry as duplicate

2013-10-30 Thread Seiji Aguchi
-Original Message- From: Madper Xie [mailto:c...@redhat.com] Sent: Wednesday, October 30, 2013 5:45 AM To: tony.l...@intel.com; keesc...@chromium.org; ccr...@android.com; an...@enomsg.org; Seiji Aguchi Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; bbbo

RE: [PATCH 2/2] pstore: Differentiating names by adding count and timestamp

2013-10-30 Thread Seiji Aguchi
-Original Message- From: Madper Xie [mailto:c...@redhat.com] Sent: Wednesday, October 30, 2013 5:45 AM To: tony.l...@intel.com; keesc...@chromium.org; ccr...@android.com; an...@enomsg.org; Seiji Aguchi Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; bbbo

RE: [PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-30 Thread Seiji Aguchi
On Fri, 18 Oct, at 10:30:58PM, Seiji Aguchi wrote: The scanning and deleting logic is still needed. In case an entry(A) is found, the pointer is saved to psi-data. And efi_pstore_read() passes the entry(A) to a pstore filesystem by releasing __efivars-lock. And then, the pstore

[PATCH v4] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-10-30 Thread Seiji Aguchi
[1.158207] [8115b51b] ? strndup_user+0x4b/0xf0 [1.158207] [811cc373] SyS_mount+0x83/0xc0 [1.158207] [81673cc2] system_call_fastpath+0x16/0x1b [1.158207] ---[ end trace 61981bc62de9f6f4 ]--- Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- drivers/firmware/efi

[PATCH v4 0/4] Introduce page fault tracepoints

2013-10-30 Thread Seiji Aguchi
Change from v3: - Separate modifications to make review easy. - Refactor implementations registering exception/irq_vector handers. (Patch 1, 2, 3) This series introduce page fault tracepoints. Detailed descriptions are explained in each patch. Any comments are welcome. Seiji Aguchi (4

[PATCH v4 2/4] Register exception handler to trace IDT

2013-10-30 Thread Seiji Aguchi
in a subsequent patch. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/include/asm/desc.h| 28 +++- arch/x86/include/asm/hw_irq.h | 3 +++ arch/x86/include/asm/segment.h | 3 +++ arch/x86/include/asm/traps.h | 20 arch/x86

[PATCH v4 1/4] Move set_intr_gate() into macro

2013-10-30 Thread Seiji Aguchi
Move set_intr_gate() into a macro by removing __alloc_intr_gate(). The purpose is to avoid failing a kernel build after applying a subsequent patch which changes set_intr_gate() to macro. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/include/asm/desc.h | 7 +-- 1 file

[PATCH v4 3/4] Delete __trace_alloc_intr_gate()

2013-10-30 Thread Seiji Aguchi
Currently irq vector handlers for tracing are registered in both set_intr_gate() and __trace_alloc_intr_gate() in alloc_intr_gate(). But, we don't need to do that twice. So, let's delete __trace_alloc_intr_gate(). Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/include/asm/desc.h

[PATCH v4 4/4] Add page fault tracepoints

2013-10-30 Thread Seiji Aguchi
if it comes from the page fault events. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/include/asm/trace/exceptions.h | 52 + arch/x86/mm/Makefile| 2 ++ arch/x86/mm/fault.c | 13 + 3 files changed, 67

RE: [PATCH 0/2] make all stored entries accessible.

2013-10-30 Thread Seiji Aguchi
Ah - I was expecting that the backend driver would have a unique id for each record stored ... but is seems that this isn't true for efivars. So, do you mean efivars should fix to use the id in a proper way? I acked Madper's patch 2/2 earlier today, but when I look at your test result, I'm

RE: [PATCH] Differentiating names by adding a timestamp.

2013-10-28 Thread Seiji Aguchi
To distinguish all events more precisely, "count" is needed to add to the name. Please see the commit below. 755d4fe46529018ae45bc7c86df682de45ace764 Seiji > -Original Message- > From: Madper Xie [mailto:c...@redhat.com] > Sent: Monday, October 28, 2013 9:22 AM >

RE: [PATCH] Differentiating names by adding a timestamp.

2013-10-28 Thread Seiji Aguchi
To distinguish all events more precisely, count is needed to add to the name. Please see the commit below. 755d4fe46529018ae45bc7c86df682de45ace764 Seiji -Original Message- From: Madper Xie [mailto:c...@redhat.com] Sent: Monday, October 28, 2013 9:22 AM To: Tony Luck; Seiji Aguchi

RE: [PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-18 Thread Seiji Aguchi
Matt, > It seems to me that because you're no longer dropping __efivars->lock > when reading from the EFI variable store, you actually don't need all > the ->scanning and ->deleting logic because anything that sets those > flags runs to completion while holding the lock. The scanning and

RE: [PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-18 Thread Seiji Aguchi
Matt, It seems to me that because you're no longer dropping __efivars-lock when reading from the EFI variable store, you actually don't need all the -scanning and -deleting logic because anything that sets those flags runs to completion while holding the lock. The scanning and deleting logic

RE: [PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-17 Thread Seiji Aguchi
ctober 17, 2013 11:07 AM > To: Madper Xie > Cc: Seiji Aguchi; linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > matt.flem...@intel.com; tony.l...@intel.com; Tomoki > Sekiyama; dle-deve...@lists.sourceforge.net > Subject: Re: [PATCH v3] efivars,efi-pstore: Hold off deletion

RE: [PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-17 Thread Seiji Aguchi
Hi Madper, I tested this patch on 3.12-rc4. Could you please send me the log when you failed to apply? Seiji > -Original Message- > From: Madper Xie [mailto:c...@redhat.com] > Sent: Thursday, October 17, 2013 1:54 AM > To: Seiji Aguchi > Cc: linux-kernel@vger.ke

RE: [PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-17 Thread Seiji Aguchi
Hi Madper, I tested this patch on 3.12-rc4. Could you please send me the log when you failed to apply? Seiji -Original Message- From: Madper Xie [mailto:c...@redhat.com] Sent: Thursday, October 17, 2013 1:54 AM To: Seiji Aguchi Cc: linux-kernel@vger.kernel.org; linux

RE: [PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-17 Thread Seiji Aguchi
11:07 AM To: Madper Xie Cc: Seiji Aguchi; linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; matt.flem...@intel.com; tony.l...@intel.com; Tomoki Sekiyama; dle-deve...@lists.sourceforge.net Subject: Re: [PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan

RE: [PATCH 5/5] efi: Capsule update support and pstore backend

2013-10-16 Thread Seiji Aguchi
> There's also an "either/or" choice between using efi-capsule with pstore, and > the > traditional kexec/kdump method for getting a memory dump from a crash. We > have to go through a reset to save the capsule - but we don't want a reset for > kexec. Perhaps we can pass the reset parameters

RE: [PATCH 2/5] efi: Introduce a Runtime Services lock

2013-10-16 Thread Seiji Aguchi
> +#define efi_call_reset_virt(f, args...) > \ > +({ \ > + unsigned long __flags; \ > + bool __nmi = in_nmi();

RE: [PATCH v3] Introduce page fault tracepoint

2013-10-16 Thread Seiji Aguchi
Thank you for reviewing. > > http://marc.info/?l=linux-mm=136807959830182=2 > > http://marc.info/?l=linux-mm=136807959130175=2 > > > > For permanence, please use links of the form: > > http://lkml.kernel.org/r/message-id > > (Yes, they currently point to marc.info, but can be

RE: [PATCH v3] Introduce page fault tracepoint

2013-10-16 Thread Seiji Aguchi
Thank you for reviewing. http://marc.info/?l=linux-mmm=136807959830182w=2 http://marc.info/?l=linux-mmm=136807959130175w=2 For permanence, please use links of the form: http://lkml.kernel.org/r/message-id (Yes, they currently point to marc.info, but can be redirected

RE: [PATCH 2/5] efi: Introduce a Runtime Services lock

2013-10-16 Thread Seiji Aguchi
+#define efi_call_reset_virt(f, args...) \ +({ \ + unsigned long __flags; \ + bool __nmi = in_nmi();

RE: [PATCH 5/5] efi: Capsule update support and pstore backend

2013-10-16 Thread Seiji Aguchi
There's also an either/or choice between using efi-capsule with pstore, and the traditional kexec/kdump method for getting a memory dump from a crash. We have to go through a reset to save the capsule - but we don't want a reset for kexec. Perhaps we can pass the reset parameters through

RE: [PATCH v3] Introduce page fault tracepoint

2013-10-11 Thread Seiji Aguchi
Peter, Any comment? Seiji > -Original Message- > From: linux-kernel-ow...@vger.kernel.org > [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Seiji Aguchi > Sent: Monday, September 09, 2013 5:56 PM > To: linux-kernel@vger.kernel.org; x...@kernel.org > Cc: h.

RE: [RFC][PATCH v2] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-10-11 Thread Seiji Aguchi
Matt, I submitted a v3 patch based on my comment below.. Seiji > -Original Message- > From: linux-efi-ow...@vger.kernel.org > [mailto:linux-efi-ow...@vger.kernel.org] On Behalf Of Seiji Aguchi > Sent: Wednesday, October 09, 2013 12:37 PM > To: Matt Fleming >

[PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-11 Thread Seiji Aguchi
__alloc_percpu+0x10/0x20 [1.158207] [] vfs_kern_mount+0x63/0xf0 [1.158207] [] do_mount+0x23e/0xa20 [1.158207] [] ? strndup_user+0x4b/0xf0 [1.158207] [] SyS_mount+0x83/0xc0 [1.158207] [] system_call_fastpath+0x16/0x1b [1.158207] ---[ end trace 61981bc62de9f6f4 ]--- Si

[PATCH v3] efivars,efi-pstore: Hold off deletion of sysfs entry until, the scan is completed

2013-10-11 Thread Seiji Aguchi
] system_call_fastpath+0x16/0x1b [1.158207] ---[ end trace 61981bc62de9f6f4 ]--- Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- drivers/firmware/efi/efi-pstore.c | 143 +++--- drivers/firmware/efi/efivars.c| 12 ++-- drivers/firmware/efi/vars.c | 12

RE: [RFC][PATCH v2] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-10-11 Thread Seiji Aguchi
Matt, I submitted a v3 patch based on my comment below.. Seiji -Original Message- From: linux-efi-ow...@vger.kernel.org [mailto:linux-efi-ow...@vger.kernel.org] On Behalf Of Seiji Aguchi Sent: Wednesday, October 09, 2013 12:37 PM To: Matt Fleming Cc: linux-kernel@vger.kernel.org

RE: [PATCH v3] Introduce page fault tracepoint

2013-10-11 Thread Seiji Aguchi
Peter, Any comment? Seiji -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Seiji Aguchi Sent: Monday, September 09, 2013 5:56 PM To: linux-kernel@vger.kernel.org; x...@kernel.org Cc: h...@zytor.com; rost

RE: [RFC][PATCH v2] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-10-09 Thread Seiji Aguchi
Thank you for reviewing. In my understanding, your point is that all accesses to efivar_entry should be done while holding __efivars->lock. > > @@ -88,8 +103,9 @@ static int efi_pstore_read_func(struct efivar_entry > > *entry, void *data) > > return 0; > > > >

RE: [RFC][PATCH v2] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-10-09 Thread Seiji Aguchi
Thank you for reviewing. In my understanding, your point is that all accesses to efivar_entry should be done while holding __efivars-lock. @@ -88,8 +103,9 @@ static int efi_pstore_read_func(struct efivar_entry *entry, void *data) return 0; entry-var.DataSize = 1024;

RE: [RFC][PATCH v2] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-10-04 Thread Seiji Aguchi
Are there anyone who can review this bugfix? Seiji > -Original Message- > From: linux-kernel-ow...@vger.kernel.org > [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Seiji Aguchi > Sent: Friday, September 27, 2013 4:24 PM > To: linux-kernel@vger.ke

RE: [RFC][PATCH v2] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-10-04 Thread Seiji Aguchi
Are there anyone who can review this bugfix? Seiji -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Seiji Aguchi Sent: Friday, September 27, 2013 4:24 PM To: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org

[RFC][PATCH v2] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-09-27 Thread Seiji Aguchi
] ---[ end trace 61981bc62de9f6f4 ]--- Signed-off-by: Seiji Aguchi --- drivers/firmware/efi/efi-pstore.c | 145 +++--- drivers/firmware/efi/efivars.c| 3 +- drivers/firmware/efi/vars.c | 39 +++--- include/linux/efi.h | 4 +- 4 files

[RFC][PATCH v2] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-09-27 Thread Seiji Aguchi
] [811cc373] SyS_mount+0x83/0xc0 [1.158207] [81673cc2] system_call_fastpath+0x16/0x1b [1.158207] ---[ end trace 61981bc62de9f6f4 ]--- Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- drivers/firmware/efi/efi-pstore.c | 145 +++--- drivers

RE: [PATCH v2] pstore: Adjust buffer size for compression for smaller registered buffers

2013-09-12 Thread Seiji Aguchi
efivars works fine with this v2 patch. Tested-by: Seiji Aguchi > -Original Message- > From: Aruna Balakrishnaiah [mailto:ar...@linux.vnet.ibm.com] > Sent: Thursday, September 12, 2013 2:51 AM > To: linuxppc-...@ozlabs.org; tony.l...@intel.com; Seiji Aguchi; &g

RE: [PATCH v2] pstore: Adjust buffer size for compression for smaller registered buffers

2013-09-12 Thread Seiji Aguchi
efivars works fine with this v2 patch. Tested-by: Seiji Aguchi seiji.agu...@hds.com -Original Message- From: Aruna Balakrishnaiah [mailto:ar...@linux.vnet.ibm.com] Sent: Thursday, September 12, 2013 2:51 AM To: linuxppc-...@ozlabs.org; tony.l...@intel.com; Seiji Aguchi; linux

RE: [PATCH 1/3] pstore: Adjust buffer size for compression for smaller registered buffers

2013-09-11 Thread Seiji Aguchi
add my "Tested-by" to all three patches. Tested-by: Seiji Aguchi N�r��yb�X��ǧv�^�)޺{.n�+{zX����ܨ}���Ơz�:+v���zZ+��+zf���h���~i���z��w���?�&�)ߢf��^jǫy�m��@A�a��� 0��h���i

RE: [PATCH 1/3] pstore: Adjust buffer size for compression for smaller registered buffers

2013-09-11 Thread Seiji Aguchi
three patches. Tested-by: Seiji Aguchi seiji.agu...@hds.com N�r��yb�X��ǧv�^�)޺{.n�+{zX����ܨ}���Ơz�j:+v���zZ+��+zf���h���~i���z��w���?��)ߢf��^jǫy�m��@A�a��� 0��h���i

[PATCH v3] Introduce page fault tracepoint

2013-09-09 Thread Seiji Aguchi
trace IDT and non-trace handler to normal IDT. Signed-off-by: Seiji Aguchi --- arch/x86/include/asm/desc.h | 33 + arch/x86/include/asm/hw_irq.h | 14 - arch/x86/include/asm/trace/exceptions.h | 52 + arch/x86/in

[PATCH v3] Introduce page fault tracepoint

2013-09-09 Thread Seiji Aguchi
IDT and non-trace handler to normal IDT. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/include/asm/desc.h | 33 + arch/x86/include/asm/hw_irq.h | 14 - arch/x86/include/asm/trace/exceptions.h | 52

RE: [PATCH v2] Introduce page fault tracepoint

2013-09-06 Thread Seiji Aguchi
> -Original Message- > From: Steven Rostedt [mailto:rost...@goodmis.org] > Sent: Friday, September 06, 2013 12:50 PM > To: Seiji Aguchi > Cc: linux-kernel@vger.kernel.org; x...@kernel.org; h...@zytor.com; > mi...@elte.hu; b...@alien8.de; t...@linutronix.de; &g

RE: [PATCH v2] Introduce page fault tracepoint

2013-09-06 Thread Seiji Aguchi
Any comment? > -Original Message- > From: linux-kernel-ow...@vger.kernel.org > [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Seiji Aguchi > Sent: Friday, August 23, 2013 11:38 AM > To: linux-kernel@vger.kernel.org; x...@kernel.org > Cc: h...@zytor.com; rost.

RE: [PATCH v2] Introduce page fault tracepoint

2013-09-06 Thread Seiji Aguchi
Any comment? -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Seiji Aguchi Sent: Friday, August 23, 2013 11:38 AM To: linux-kernel@vger.kernel.org; x...@kernel.org Cc: h...@zytor.com; rost...@goodmis.org; mi

RE: [PATCH v2] Introduce page fault tracepoint

2013-09-06 Thread Seiji Aguchi
-Original Message- From: Steven Rostedt [mailto:rost...@goodmis.org] Sent: Friday, September 06, 2013 12:50 PM To: Seiji Aguchi Cc: linux-kernel@vger.kernel.org; x...@kernel.org; h...@zytor.com; mi...@elte.hu; b...@alien8.de; t...@linutronix.de; fdesl...@gmail.com; raphael.beamo

RE: [RFC PATCH v2 04/11] pstore: Add compression support to pstore

2013-09-04 Thread Seiji Aguchi
tel.com] > Sent: Wednesday, September 04, 2013 12:11 PM > To: Aruna Balakrishnaiah; Seiji Aguchi > Cc: jkeni...@linux.vnet.ibm.com; keesc...@chromium.org; > mah...@linux.vnet.ibm.com; ccr...@android.com; linux- > ker...@vger.kernel.org; linuxppc-...@ozlabs.org; cbouatmai...@gmail.com >

RE: [RFC PATCH v2 04/11] pstore: Add compression support to pstore

2013-09-04 Thread Seiji Aguchi
, September 04, 2013 12:11 PM To: Aruna Balakrishnaiah; Seiji Aguchi Cc: jkeni...@linux.vnet.ibm.com; keesc...@chromium.org; mah...@linux.vnet.ibm.com; ccr...@android.com; linux- ker...@vger.kernel.org; linuxppc-...@ozlabs.org; cbouatmai...@gmail.com Subject: RE: [RFC PATCH v2 04/11] pstore: Add

RE: [RFC PATCH v2 04/11] pstore: Add compression support to pstore

2013-09-03 Thread Seiji Aguchi
Aruna, Sorry for the late response. > Seiji, > > Could you let us know the efivars buffer size with which the pstore is > registered when > the failure occurred. I looked into the issue today. I added some debug message just before pstore_compress(). As you can see below, the buffer size is a

RE: [RFC PATCH v2 04/11] pstore: Add compression support to pstore

2013-09-03 Thread Seiji Aguchi
Aruna, Sorry for the late response. Seiji, Could you let us know the efivars buffer size with which the pstore is registered when the failure occurred. I looked into the issue today. I added some debug message just before pstore_compress(). As you can see below, the buffer size is a

[PATCH v2] Introduce page fault tracepoint

2013-08-23 Thread Seiji Aguchi
non-trace handler to normal IDT. Signed-off-by: Seiji Aguchi --- arch/x86/include/asm/desc.h | 33 + arch/x86/include/asm/hw_irq.h | 14 - arch/x86/include/asm/trace/exceptions.h | 51 + arch/x86/include/asm/trap

[PATCH v2] Introduce page fault tracepoint

2013-08-23 Thread Seiji Aguchi
and non-trace handler to normal IDT. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/include/asm/desc.h | 33 + arch/x86/include/asm/hw_irq.h | 14 - arch/x86/include/asm/trace/exceptions.h | 51 + arch/x86

RE: [RFC PATCH v2 04/11] pstore: Add compression support to pstore

2013-08-22 Thread Seiji Aguchi
> -Original Message- > From: Luck, Tony [mailto:tony.l...@intel.com] > Sent: Thursday, August 22, 2013 7:17 PM > To: Seiji Aguchi; Aruna Balakrishnaiah; linuxppc-...@ozlabs.org; > linux-kernel@vger.kernel.org; keesc...@chromium.org > Cc: jkeni...@linux.vnet.ibm.com; an

RE: [RFC PATCH v2 04/11] pstore: Add compression support to pstore

2013-08-22 Thread Seiji Aguchi
> * callback from kmsg_dump. (s2,l2) has the most recently > * written bytes, older bytes are in (s1,l1). Save as much > @@ -148,23 +243,56 @@ static void pstore_dump(struct kmsg_dumper *dumper, > char *dst; > unsigned long size; > int hsize; > +

RE: [RFC PATCH v2 06/11] pstore: Add decompression support to pstore

2013-08-22 Thread Seiji Aguchi
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org > [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Aruna Balakrishnaiah > Sent: Friday, August 16, 2013 9:18 AM > To: linuxppc-...@ozlabs.org; tony.l...@intel.com; > linux-kernel@vger.kernel.org;

RE: [RFC][PATCH] Introduce page fault tracepoint

2013-08-22 Thread Seiji Aguchi
> Printing the regs pointer is rather useless. This is specific for x86, > why not print the ip of where it happened and the faulting address > itself? Thank you for reviewing. I will change the regs pointer to ip. > Note, you only need to change the TP_printk() to do that. For > efficiency

RE: [RFC][PATCH] Introduce page fault tracepoint

2013-08-22 Thread Seiji Aguchi
Printing the regs pointer is rather useless. This is specific for x86, why not print the ip of where it happened and the faulting address itself? Thank you for reviewing. I will change the regs pointer to ip. Note, you only need to change the TP_printk() to do that. For efficiency reasons,

RE: [RFC PATCH v2 06/11] pstore: Add decompression support to pstore

2013-08-22 Thread Seiji Aguchi
-Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Aruna Balakrishnaiah Sent: Friday, August 16, 2013 9:18 AM To: linuxppc-...@ozlabs.org; tony.l...@intel.com; linux-kernel@vger.kernel.org; keesc...@chromium.org

RE: [RFC PATCH v2 04/11] pstore: Add compression support to pstore

2013-08-22 Thread Seiji Aguchi
* callback from kmsg_dump. (s2,l2) has the most recently * written bytes, older bytes are in (s1,l1). Save as much @@ -148,23 +243,56 @@ static void pstore_dump(struct kmsg_dumper *dumper, char *dst; unsigned long size; int hsize; +

RE: [RFC PATCH v2 04/11] pstore: Add compression support to pstore

2013-08-22 Thread Seiji Aguchi
-Original Message- From: Luck, Tony [mailto:tony.l...@intel.com] Sent: Thursday, August 22, 2013 7:17 PM To: Seiji Aguchi; Aruna Balakrishnaiah; linuxppc-...@ozlabs.org; linux-kernel@vger.kernel.org; keesc...@chromium.org Cc: jkeni...@linux.vnet.ibm.com; ana...@in.ibm.com; b

[RFC][PATCH] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-08-20 Thread Seiji Aguchi
]--- Signed-off-by: Seiji Aguchi --- drivers/firmware/efi/efi-pstore.c | 145 +++--- drivers/firmware/efi/efivars.c| 3 +- drivers/firmware/efi/vars.c | 39 +++--- include/linux/efi.h | 4 +- 4 files changed, 151 insertions(+), 40

[RFC][PATCH] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-08-20 Thread Seiji Aguchi
[1.158207] [81673cc2] system_call_fastpath+0x16/0x1b [1.158207] ---[ end trace 61981bc62de9f6f4 ]--- Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- drivers/firmware/efi/efi-pstore.c | 145 +++--- drivers/firmware/efi/efivars.c| 3

RE: [RFC][PATCH] Introduce page fault tracepoint

2013-08-09 Thread Seiji Aguchi
Any comment? > -Original Message- > From: Seiji Aguchi [mailto:seiji.agu...@hds.com] > Sent: Tuesday, July 30, 2013 6:53 PM > To: linux-kernel@vger.kernel.org; x...@kernel.org > Cc: h...@zytor.com; rost...@goodmis.org; mi...@elte.hu; b...@alien8.de; > t...@li

RE: [RFC][PATCH] Introduce page fault tracepoint

2013-08-09 Thread Seiji Aguchi
Any comment? -Original Message- From: Seiji Aguchi [mailto:seiji.agu...@hds.com] Sent: Tuesday, July 30, 2013 6:53 PM To: linux-kernel@vger.kernel.org; x...@kernel.org Cc: h...@zytor.com; rost...@goodmis.org; mi...@elte.hu; b...@alien8.de; t...@linutronix.de; fdesl...@gmail.com

[RFC][PATCH] Introduce page fault tracepoint

2013-07-30 Thread Seiji Aguchi
-trace handler to IDT. This is used at boot time which tracing is disabled. - Make set_intr_gate() macro so that it can register trace handler to trace IDT and non-trace handler to normal IDT. Signed-off-by: Seiji Aguchi --- arch/x86/include/asm/desc.h | 33

[RFC][PATCH] Introduce page fault tracepoint

2013-07-30 Thread Seiji Aguchi
non-trace handler to IDT. This is used at boot time which tracing is disabled. - Make set_intr_gate() macro so that it can register trace handler to trace IDT and non-trace handler to normal IDT. Signed-off-by: Seiji Aguchi seiji.agu...@hds.com --- arch/x86/include/asm/desc.h

RE: Yet more softlockups.

2013-07-05 Thread Seiji Aguchi
> -Original Message- > From: H. Peter Anvin [mailto:h...@zytor.com] > Sent: Friday, July 05, 2013 12:41 PM > To: Thomas Gleixner > Cc: Dave Jones; Linus Torvalds; Linux Kernel; Ingo Molnar; Peter Zijlstra; > Seiji Aguchi > Subject: Re: Yet more softlockups. >

[tip:x86/urgent] x86/tracing: Add irq_enter/exit() in smp_trace_reschedule_interrupt()

2013-07-05 Thread tip-bot for Seiji Aguchi
Commit-ID: 4787c368a9bca39e173d702389ee2eaf0520abc1 Gitweb: http://git.kernel.org/tip/4787c368a9bca39e173d702389ee2eaf0520abc1 Author: Seiji Aguchi AuthorDate: Fri, 28 Jun 2013 14:02:11 -0400 Committer: Ingo Molnar CommitDate: Tue, 2 Jul 2013 09:52:31 +0200 x86/tracing: Add irq_enter

  1   2   3   4   5   6   >