All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: eliminate irq_mis_count counted in arch_irq_stat
@ 2013-04-26  7:56 Li Fei
  2013-04-26  8:19 ` Ingo Molnar
  2013-04-26 12:50 ` [PATCH V2] " Li Fei
  0 siblings, 2 replies; 6+ messages in thread
From: Li Fei @ 2013-04-26  7:56 UTC (permalink / raw)
  To: tglx, mingo, hpa, x86
  Cc: chuansheng.liu, tomoki.sekiyama.qu, suresh.b.siddha, joe,
	linux-kernel, fei.li


With current implementation, kstat_cpu(cpu).irqs_sum is also
increased in case of irq_mis_count increment.
So there is no need to count irq_mis_count in arch_irq_stat,
otherwise irq_mis_count will be counted twice in the sum of
/proc/stat.

Signed-off-by: Liu Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Li Fei <fei.li@intel.com>
---
 arch/x86/kernel/irq.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c
index e4595f1..84b7789 100644
--- a/arch/x86/kernel/irq.c
+++ b/arch/x86/kernel/irq.c
@@ -165,10 +165,6 @@ u64 arch_irq_stat_cpu(unsigned int cpu)
 u64 arch_irq_stat(void)
 {
 	u64 sum = atomic_read(&irq_err_count);
-
-#ifdef CONFIG_X86_IO_APIC
-	sum += atomic_read(&irq_mis_count);
-#endif
 	return sum;
 }
 
-- 
1.7.4.1




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

* Re: [PATCH] x86: eliminate irq_mis_count counted in arch_irq_stat
  2013-04-26  7:56 [PATCH] x86: eliminate irq_mis_count counted in arch_irq_stat Li Fei
@ 2013-04-26  8:19 ` Ingo Molnar
  2013-04-26  8:44   ` Li, Fei
  2013-04-26 12:50 ` [PATCH V2] " Li Fei
  1 sibling, 1 reply; 6+ messages in thread
From: Ingo Molnar @ 2013-04-26  8:19 UTC (permalink / raw)
  To: Li Fei
  Cc: tglx, mingo, hpa, x86, chuansheng.liu, tomoki.sekiyama.qu,
	suresh.b.siddha, joe, linux-kernel


* Li Fei <fei.li@intel.com> wrote:

> 
> With current implementation, kstat_cpu(cpu).irqs_sum is also
> increased in case of irq_mis_count increment.
> So there is no need to count irq_mis_count in arch_irq_stat,
> otherwise irq_mis_count will be counted twice in the sum of
> /proc/stat.
> 
> Signed-off-by: Liu Chuansheng <chuansheng.liu@intel.com>
> Signed-off-by: Li Fei <fei.li@intel.com>

The patch looks good, but this is not a valid signoff sequence. If Liu 
Chuansheng wrote this patch then his From: line should be included. If he 
acked it, then it should be added as Acked-by.

Thanks,

	Ingo

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

* RE: [PATCH] x86: eliminate irq_mis_count counted in arch_irq_stat
  2013-04-26  8:19 ` Ingo Molnar
@ 2013-04-26  8:44   ` Li, Fei
  2013-04-26  9:33     ` Ingo Molnar
  0 siblings, 1 reply; 6+ messages in thread
From: Li, Fei @ 2013-04-26  8:44 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com,
	x86@kernel.org, Liu, Chuansheng, tomoki.sekiyama.qu@hitachi.com,
	suresh.b.siddha@intel.com, joe@perches.com,
	linux-kernel@vger.kernel.org

> > Signed-off-by: Liu Chuansheng <chuansheng.liu@intel.com>
> > Signed-off-by: Li Fei <fei.li@intel.com>
> 
> The patch looks good, but this is not a valid signoff sequence. If Liu
> Chuansheng wrote this patch then his From: line should be included. If he
> acked it, then it should be added as Acked-by.
> 
Hello Ingo,
   Thanks for your quick feedback. 

   I add Chuansheng's signature basing on:
   1> Chuansheng found such hole in code;
   2> After discussion with Chuansheng, I wrote the patch;
   3> Chuansheng also acked it.
   
   Do you think it's OK to add Chuansheng's signature in such case?
   Or better suggestion?

Thanks in advance!
Fei

> Thanks,
> 
> 	Ingo

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

* Re: [PATCH] x86: eliminate irq_mis_count counted in arch_irq_stat
  2013-04-26  8:44   ` Li, Fei
@ 2013-04-26  9:33     ` Ingo Molnar
  0 siblings, 0 replies; 6+ messages in thread
From: Ingo Molnar @ 2013-04-26  9:33 UTC (permalink / raw)
  To: Li, Fei
  Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com,
	x86@kernel.org, Liu, Chuansheng, tomoki.sekiyama.qu@hitachi.com,
	suresh.b.siddha@intel.com, joe@perches.com,
	linux-kernel@vger.kernel.org


* Li, Fei <fei.li@intel.com> wrote:

> > > Signed-off-by: Liu Chuansheng <chuansheng.liu@intel.com>
> > > Signed-off-by: Li Fei <fei.li@intel.com>
> > 
> > The patch looks good, but this is not a valid signoff sequence. If Liu
> > Chuansheng wrote this patch then his From: line should be included. If he
> > acked it, then it should be added as Acked-by.
> > 
> Hello Ingo,
>    Thanks for your quick feedback. 
> 
>    I add Chuansheng's signature basing on:
>    1> Chuansheng found such hole in code;
>    2> After discussion with Chuansheng, I wrote the patch;
>    3> Chuansheng also acked it.
>    
>    Do you think it's OK to add Chuansheng's signature in such case?
>    Or better suggestion?

Signed-off-by has a specific meaning, it typically means someone authored 
or as a maintainer forwarded the code (which did not happen here) - see 
the details in Documentation/SubmittingPatches, under this section:

  12) Sign your work

If Chuansheng found the bug, there's a Reported-by tag. If Chuansheng 
approves of the fix patch then there's Acked-by for that. If he tested it, 
then for that there's the Tested-by tag. You can also add several of those 
tags.

Thanks,

	Ingo

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

* [PATCH V2] x86: eliminate irq_mis_count counted in arch_irq_stat
  2013-04-26  7:56 [PATCH] x86: eliminate irq_mis_count counted in arch_irq_stat Li Fei
  2013-04-26  8:19 ` Ingo Molnar
@ 2013-04-26 12:50 ` Li Fei
  2013-04-30 16:45   ` [tip:perf/urgent] x86: Eliminate " tip-bot for Li Fei
  1 sibling, 1 reply; 6+ messages in thread
From: Li Fei @ 2013-04-26 12:50 UTC (permalink / raw)
  To: mingo
  Cc: tglx, hpa, x86, chuansheng.liu, tomoki.sekiyama.qu, joe,
	linux-kernel, fei.li


With current implementation, kstat_cpu(cpu).irqs_sum is also
increased in case of irq_mis_count increment.
So there is no need to count irq_mis_count in arch_irq_stat,
otherwise irq_mis_count will be counted twice in the sum of
/proc/stat.

Reported-by: Liu Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Li Fei <fei.li@intel.com>
Acked-by: Liu Chuansheng <chuansheng.liu@intel.com>
---
 arch/x86/kernel/irq.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c
index e4595f1..84b7789 100644
--- a/arch/x86/kernel/irq.c
+++ b/arch/x86/kernel/irq.c
@@ -165,10 +165,6 @@ u64 arch_irq_stat_cpu(unsigned int cpu)
 u64 arch_irq_stat(void)
 {
 	u64 sum = atomic_read(&irq_err_count);
-
-#ifdef CONFIG_X86_IO_APIC
-	sum += atomic_read(&irq_mis_count);
-#endif
 	return sum;
 }
 
-- 
1.7.4.1




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

* [tip:perf/urgent] x86: Eliminate irq_mis_count counted in arch_irq_stat
  2013-04-26 12:50 ` [PATCH V2] " Li Fei
@ 2013-04-30 16:45   ` tip-bot for Li Fei
  0 siblings, 0 replies; 6+ messages in thread
From: tip-bot for Li Fei @ 2013-04-30 16:45 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, stable, tglx, chuansheng.liu, fei.li

Commit-ID:  f7b0e1055574ce06ab53391263b4e205bf38daf3
Gitweb:     http://git.kernel.org/tip/f7b0e1055574ce06ab53391263b4e205bf38daf3
Author:     Li Fei <fei.li@intel.com>
AuthorDate: Fri, 26 Apr 2013 20:50:11 +0800
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 30 Apr 2013 10:56:37 +0200

x86: Eliminate irq_mis_count counted in arch_irq_stat

With the current implementation, kstat_cpu(cpu).irqs_sum is also
increased in case of irq_mis_count increment.

So there is no need to count irq_mis_count in arch_irq_stat,
otherwise irq_mis_count will be counted twice in the sum of
/proc/stat.

Reported-by: Liu Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Li Fei <fei.li@intel.com>
Acked-by: Liu Chuansheng <chuansheng.liu@intel.com>
Cc: tomoki.sekiyama.qu@hitachi.com
Cc: joe@perches.com
Link: http://lkml.kernel.org/r/1366980611.32469.7.camel@fli24-HP-Compaq-8100-Elite-CMT-PC
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/kernel/irq.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c
index e4595f1..84b7789 100644
--- a/arch/x86/kernel/irq.c
+++ b/arch/x86/kernel/irq.c
@@ -165,10 +165,6 @@ u64 arch_irq_stat_cpu(unsigned int cpu)
 u64 arch_irq_stat(void)
 {
 	u64 sum = atomic_read(&irq_err_count);
-
-#ifdef CONFIG_X86_IO_APIC
-	sum += atomic_read(&irq_mis_count);
-#endif
 	return sum;
 }
 

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

end of thread, other threads:[~2013-04-30 16:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26  7:56 [PATCH] x86: eliminate irq_mis_count counted in arch_irq_stat Li Fei
2013-04-26  8:19 ` Ingo Molnar
2013-04-26  8:44   ` Li, Fei
2013-04-26  9:33     ` Ingo Molnar
2013-04-26 12:50 ` [PATCH V2] " Li Fei
2013-04-30 16:45   ` [tip:perf/urgent] x86: Eliminate " tip-bot for Li Fei

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