From: ebiederm@xmission.com (Eric W. Biederman)
To: "Yinghai Lu" <yinghai.lu@amd.com>
Cc: "Andi Kleen" <ak@muc.de>,
"linux kernel mailing list" <linux-kernel@vger.kernel.org>,
yhlu.kernel@gmail.com
Subject: Re: [PATCH] x86_64: using irq_domain in ioapic_retrigger_irq
Date: Tue, 17 Oct 2006 11:03:02 -0600 [thread overview]
Message-ID: <m1d58qan95.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <86802c440610140201h5edd9ceay454cc192583a69c1@mail.gmail.com> (Yinghai Lu's message of "Sat, 14 Oct 2006 02:01:57 -0700")
"Yinghai Lu" <yinghai.lu@amd.com> writes:
> using irq_domain[irq] to get cpu_mask for send_IPI_mask
>
> Signed-off-by: Yinghai Lu <yinghai.lu@amd.com>
YH I have to grumble at you, your patch suffers from white space damage
and does not apply.
In addition while looking this version is actually broken because
for retrigger irq we only ever want to send the irq once and your
version has the potential to be broadcast to several cpus. Not
what we want.
I will send a fixed version in a minute.
Eric
>
> diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c
> index 44b55f8..6a07bce 100644
> --- a/arch/x86_64/kernel/io_apic.c
> +++ b/arch/x86_64/kernel/io_apic.c
> @@ -1254,13 +1254,12 @@ static unsigned int startup_ioapic_irq(u
> static int ioapic_retrigger_irq(unsigned int irq)
> {
> cpumask_t mask;
> - unsigned vector;
> + int vector;
>
> vector = irq_vector[irq];
> - cpus_clear(mask);
> - cpu_set(vector >> 8, mask);
> + mask = irq_domain[irq];
>
> - send_IPI_mask(mask, vector & 0xff);
> + send_IPI_mask(mask, vector);
>
> return 1;
> }
next prev parent reply other threads:[~2006-10-17 17:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-14 9:01 [PATCH] x86_64: using irq_domain in ioapic_retrigger_irq Yinghai Lu
2006-10-14 10:06 ` Eric W. Biederman
2006-10-17 17:03 ` Eric W. Biederman [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-10-17 17:28 Lu, Yinghai
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=m1d58qan95.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=ak@muc.de \
--cc=linux-kernel@vger.kernel.org \
--cc=yhlu.kernel@gmail.com \
--cc=yinghai.lu@amd.com \
/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