From: Yanmin Zhang <yanmin_zhang@linux.intel.com>
To: "Liu, Chuansheng" <chuansheng.liu@intel.com>,
linux-kernel@vger.kernel.org
Cc: "tglx@linutronix.de" <tglx@linutronix.de>,
"mingo@redhat.com" <mingo@redhat.com>,
"hpa@zytor.com" <hpa@zytor.com>
Subject: Re: [PATCH] x86/fixup_irq: using the cpu_online_mask instead of cpu_all_mask
Date: Mon, 20 Aug 2012 13:25:49 +0800 [thread overview]
Message-ID: <1345440349.30835.3.camel@ymzhang.sh.intel.com> (raw)
In-Reply-To: <27240C0AC20F114CBF8149A2696CBE4A137286@SHSMSX101.ccr.corp.intel.com>
On Tue, 2012-08-14 at 06:55 +0000, Liu, Chuansheng wrote:
> From: liu chuansheng <chuansheng.liu@intel.com>
> Subject: [PATCH] x86/fixup_irq: using the cpu_online_mask instead of cpu_all_mask
>
> When one CPU is going down, and this CPU is the last one in irq affinity,
> current code is setting cpu_all_mask as the new affinity for that irq.
>
> But for some system the firmware maybe send the interrupt to each CPU
> in irq affinity averagely, and cpu_all_mask include all CPUs.
>
> Here replacing cpu_all_mask with cpu_online_mask, it is more reasonable
> and fittable.
It's a good finding. The issue exists on Medfield Android mobile.
>
> Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
> ---
> arch/x86/kernel/irq.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c
> index 7ad683d..d44f782 100644
> --- a/arch/x86/kernel/irq.c
> +++ b/arch/x86/kernel/irq.c
> @@ -270,7 +270,7 @@ void fixup_irqs(void)
>
> if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) {
> break_affinity = 1;
> - affinity = cpu_all_mask;
> + affinity = cpu_online_mask;
> }
>
> chip = irq_data_get_irq_chip(data);
next prev parent reply other threads:[~2012-08-20 5:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 6:55 Liu, Chuansheng
2012-08-20 5:25 ` Yanmin Zhang [this message]
2012-08-22 9:03 ` [tip:x86/urgent] x86/fixup_irq: Use " tip-bot for Liu, Chuansheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1345440349.30835.3.camel@ymzhang.sh.intel.com \
--to=yanmin_zhang@linux.intel.com \
--cc=chuansheng.liu@intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome