From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Zwane Mwaikambo <zwane@linuxpower.ca>,
Linux Kernel <linux-kernel@vger.kernel.org>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
Linus Torvalds <torvalds@transmeta.com>
Subject: Re: [PATCH][RFT] noirqbalance still doesn't do anything
Date: Fri, 07 Mar 2003 00:02:22 -0800 [thread overview]
Message-ID: <323650000.1047024141@[10.10.2.4]> (raw)
In-Reply-To: <Pine.LNX.4.50.0303070224190.18716-100000@montezuma.mastecende.com>
> I didn't get a response to my other patch to do this so i'm guessing that
> people want a simpler patch(??) This one simply sets TARGET_CPUS to
> cpu_callout_map instead of cpu_online_map so that when we finally do boot
> we actually use the other cpus for servicing interrupts.
Actually, I think your first patch is correct. TARGET_CPUS seems like the
wrong thing to be changing (for example, if we take a CPU offline later)
However, doesn't this:
> +/*
> + * This function currently is only a helper for the i386 smp boot process where
> + * we need to reprogram the ioredtbls to cater for the cpus which have come online
> + * so mask in all cases should simply be TARGET_CPUS
> + */
> +void __devinit set_ioapic_logical_dest (unsigned long mask)
> +{
> + struct IO_APIC_route_entry entry;
> + unsigned long flags;
> + int apic, pin;
> +
> + spin_lock_irqsave(&ioapic_lock, flags);
> + for (apic = 0; apic < nr_ioapics; apic++) {
> + for (pin = 0; pin < nr_ioapic_registers[apic]; pin++) {
> + *(((int *)&entry)+0) = io_apic_read(apic, 0x10+pin*2);
> + *(((int *)&entry)+1) = io_apic_read(apic, 0x11+pin*2);
> + entry.dest.logical.logical_dest = mask;
> + io_apic_write(apic, 0x10 + 2 * pin, *(((int *)&entry) + 0));
> + io_apic_write(apic, 0x11 + 2 * pin, *(((int *)&entry) + 1));
> + }
> +
> + }
> + spin_unlock_irqrestore(&ioapic_lock, flags);
> +}
do more or less the same as set_ioapic_affinity? And even if not, don't
you have to do "mask << 24" instead of "mask" ... or am I just confused?
M.
next prev parent reply other threads:[~2003-03-07 7:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-07 7:29 Zwane Mwaikambo
2003-03-07 8:02 ` Martin J. Bligh [this message]
2003-03-07 8:14 ` Zwane Mwaikambo
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='323650000.1047024141@[10.10.2.4]' \
--to=mbligh@aracnet.com \
--cc=James.Bottomley@SteelEye.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
--cc=zwane@linuxpower.ca \
/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
all inboxes | Powered by JetHome®