Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-28 Thread Alex Shi
On 09/28/2012 01:49 PM, H. Peter Anvin wrote: > On 09/27/2012 12:02 AM, Alex Shi wrote: >> >> Peter: >> >> Maybe the patch doesn't looks perfect for this issue. >> So I am wondering if the following patch is better, if we don't care >> the irq_tlb >> was counted again in irq_call? >> > >

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-28 Thread Alex Shi
On 09/28/2012 01:49 PM, H. Peter Anvin wrote: On 09/27/2012 12:02 AM, Alex Shi wrote: Peter: Maybe the patch doesn't looks perfect for this issue. So I am wondering if the following patch is better, if we don't care the irq_tlb was counted again in irq_call? Tomoki-san's patch looked

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-27 Thread H. Peter Anvin
On 09/27/2012 12:02 AM, Alex Shi wrote: Peter: Maybe the patch doesn't looks perfect for this issue. So I am wondering if the following patch is better, if we don't care the irq_tlb was counted again in irq_call? Tomoki-san's patch looked sane to me, I should just apply it. -hpa

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-27 Thread Alex Shi
>> >> the 3.6 kernel will closed soon. it will be great to has this patch in. >> So, could you like to refresh your patch with popular comments format? :) > > Fixed patch is below. > Thank you for the review again. > Peter: Maybe the patch doesn't looks perfect for this issue. So I am

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-27 Thread Alex Shi
the 3.6 kernel will closed soon. it will be great to has this patch in. So, could you like to refresh your patch with popular comments format? :) Fixed patch is below. Thank you for the review again. Peter: Maybe the patch doesn't looks perfect for this issue. So I am wondering if

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-27 Thread H. Peter Anvin
On 09/27/2012 12:02 AM, Alex Shi wrote: Peter: Maybe the patch doesn't looks perfect for this issue. So I am wondering if the following patch is better, if we don't care the irq_tlb was counted again in irq_call? Tomoki-san's patch looked sane to me, I should just apply it. -hpa

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-25 Thread Alex Shi
On 09/26/2012 10:11 AM, Tomoki Sekiyama wrote: > Hi Alex, > > On 2012/09/25 11:57, Alex Shi wrote: >> On 09/24/2012 09:37 AM, Alex Shi wrote: >> >>> On 09/20/2012 04:50 PM, Tomoki Sekiyama wrote: >>> unsigned int irq_resched_count; unsigned int irq_call_count; + /*

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-25 Thread Tomoki Sekiyama
Hi Alex, On 2012/09/25 11:57, Alex Shi wrote: > On 09/24/2012 09:37 AM, Alex Shi wrote: > >> On 09/20/2012 04:50 PM, Tomoki Sekiyama wrote: >> >>> unsigned int irq_resched_count; >>> unsigned int irq_call_count; >>> + /* irq_tlb_count is double-counted in irq_call_count, so it must be

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-25 Thread Tomoki Sekiyama
Hi Alex, On 2012/09/25 11:57, Alex Shi wrote: On 09/24/2012 09:37 AM, Alex Shi wrote: On 09/20/2012 04:50 PM, Tomoki Sekiyama wrote: unsigned int irq_resched_count; unsigned int irq_call_count; + /* irq_tlb_count is double-counted in irq_call_count, so it must be +

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-25 Thread Alex Shi
On 09/26/2012 10:11 AM, Tomoki Sekiyama wrote: Hi Alex, On 2012/09/25 11:57, Alex Shi wrote: On 09/24/2012 09:37 AM, Alex Shi wrote: On 09/20/2012 04:50 PM, Tomoki Sekiyama wrote: unsigned int irq_resched_count; unsigned int irq_call_count; + /* irq_tlb_count is double-counted

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-23 Thread Alex Shi
On 09/20/2012 04:50 PM, Tomoki Sekiyama wrote: > unsigned int irq_resched_count; > unsigned int irq_call_count; > + /* irq_tlb_count is double-counted in irq_call_count, so it must be > +subtracted from irq_call_count when displaying irq_call_count */ > unsigned int

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-23 Thread Alex Shi
On 09/20/2012 04:50 PM, Tomoki Sekiyama wrote: unsigned int irq_resched_count; unsigned int irq_call_count; + /* irq_tlb_count is double-counted in irq_call_count, so it must be +subtracted from irq_call_count when displaying irq_call_count */ unsigned int

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-21 Thread Alex Shi
>> If is it better to move above explanation to irq_call_cnt definition place: harirq.h? > > Agreed. > > In the patch below, I reduced the redundant comments. Acked-by: Alex Shi > > -- > As TLB shootdown requests to other CPU cores are now using function call > interrupts, TLB shootdowns

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-21 Thread Alex Shi
If is it better to move above explanation to irq_call_cnt definition place: harirq.h? Agreed. In the patch below, I reduced the redundant comments. Acked-by: Alex Shi alex@intel.com -- As TLB shootdown requests to other CPU cores are now using function call interrupts, TLB

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-20 Thread Tomoki Sekiyama
Hi Alex, thank you for the review. >> sum += irq_stats(cpu)->irq_call_count; >> - sum += irq_stats(cpu)->irq_tlb_count; >> + /* irq_tlb_count is already added to irq_call_count */ > >redundant comments here? >> @@ -98,6 +98,9 @@ static void flush_tlb_func(void *info) >> { >>

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-20 Thread Tomoki Sekiyama
Hi Alex, thank you for the review. sum += irq_stats(cpu)-irq_call_count; - sum += irq_stats(cpu)-irq_tlb_count; + /* irq_tlb_count is already added to irq_call_count */ redundant comments here? @@ -98,6 +98,9 @@ static void flush_tlb_func(void *info) { struct flush_tlb_info

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-19 Thread Alex Shi
> @@ -147,7 +148,7 @@ u64 arch_irq_stat_cpu(unsigned int cpu) > #ifdef CONFIG_SMP > sum += irq_stats(cpu)->irq_resched_count; > sum += irq_stats(cpu)->irq_call_count; > - sum += irq_stats(cpu)->irq_tlb_count; > + /* irq_tlb_count is already added to irq_call_count */

[PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-19 Thread Tomoki Sekiyama
As TLB shootdown requests to other CPU cores are now done using function call interrupts, TLB shootdowns entry in /proc/interrupts is always shown as 0. This behavior change was introduced by commit 52aec3308db8 ("x86/tlb: replace INVALIDATE_TLB_VECTOR by CALL_FUNCTION_VECTOR"). This patch

[PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-19 Thread Tomoki Sekiyama
As TLB shootdown requests to other CPU cores are now done using function call interrupts, TLB shootdowns entry in /proc/interrupts is always shown as 0. This behavior change was introduced by commit 52aec3308db8 (x86/tlb: replace INVALIDATE_TLB_VECTOR by CALL_FUNCTION_VECTOR). This patch reverts

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-19 Thread Alex Shi
@@ -147,7 +148,7 @@ u64 arch_irq_stat_cpu(unsigned int cpu) #ifdef CONFIG_SMP sum += irq_stats(cpu)-irq_resched_count; sum += irq_stats(cpu)-irq_call_count; - sum += irq_stats(cpu)-irq_tlb_count; + /* irq_tlb_count is already added to irq_call_count */ redundant