All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86_64: typo in __assign_irq_vector when update pos for vector and offset
@ 2006-10-15  7:29 yhlu
  2006-10-15 19:21 ` yhlu
  0 siblings, 1 reply; 12+ messages in thread
From: yhlu @ 2006-10-15  7:29 UTC (permalink / raw)
  To: Eric W. Biederman, Andi Kleen; +Cc: linux kernel mailing list, yhlu.kernel

typo with cpu instead of new_cpu when update the pos struct.

Signed-off-by: Yinghai Lu <yinghai.lu@amd.com>

diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c
index 44b55f8..3857440 100644
--- a/arch/x86_64/kernel/io_apic.c
+++ b/arch/x86_64/kernel/io_apic.c
@@ -655,8 +655,8 @@ next:
                                goto next;
                /* Found one! */
                for_each_cpu_mask(new_cpu, domain) {
-                       pos[cpu].vector = vector;
-                       pos[cpu].offset = offset;
+                       pos[new_cpu].vector = vector;
+                       pos[new_cpu].offset = offset;
                }
                if (old_vector >= 0) {
                        int old_cpu;

^ permalink raw reply related	[flat|nested] 12+ messages in thread
* RE: Fwd: [PATCH] x86_64: typo in __assign_irq_vector when update pos for vector and offset
@ 2006-10-16 18:27 Lu, Yinghai
  2006-10-16 19:03 ` Eric W. Biederman
  0 siblings, 1 reply; 12+ messages in thread
From: Lu, Yinghai @ 2006-10-16 18:27 UTC (permalink / raw)
  To: ebiederm; +Cc: Andi Kleen, linux kernel mailing list, yhlu.kernel

With phys_flat mode, the apic will be delivered in phys mode, we only
can use cpu real apic id as target instead of apicid mask. Because that
only has 8 bits. 

For io apic controllers, it seems the kernel didn't have pci_dev
corresponding, and we can use address stored in mpc_config.

YH



^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Fwd: [PATCH] x86_64: typo in __assign_irq_vector when update pos for vector and offset
@ 2006-10-16 19:02 Lu, Yinghai
  0 siblings, 0 replies; 12+ messages in thread
From: Lu, Yinghai @ 2006-10-16 19:02 UTC (permalink / raw)
  To: Andi Kleen, Eric W. Biederman; +Cc: linux kernel mailing list, yhlu.kernel

[PATCH] x86_64: using irq_domain in ioapic_retrigger_irq

http://lkml.org/lkml/2006/10/14/37

YH



^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Fwd: [PATCH] x86_64: typo in __assign_irq_vector when update pos for vector and offset
@ 2006-10-16 19:52 Lu, Yinghai
  2006-10-17 17:55 ` Eric W. Biederman
  0 siblings, 1 reply; 12+ messages in thread
From: Lu, Yinghai @ 2006-10-16 19:52 UTC (permalink / raw)
  To: ebiederm; +Cc: Andi Kleen, linux kernel mailing list, yhlu.kernel

>So to get things going making TARGET_CPUS cpu_online_map looks like
>the right thing to do.

Yes. but need to other reference to TARGET_CPUS to verify...it doesn't
break sth.

>My question is are your io_apics pci devices?  Not does the kernel
>have them.

Yes, I'm testing with 32 amd8132 in the simulator. Or forget about about
ioapic, and use MSI, and HT-irq directly...?

>There are a lot of ways we can approach assigning irqs to cpus and
there
>is a lot of work there.  I think Adrian Bunk has been doing some work
>with the user space irq balancer, and should probably be involved.

Right. We need only do needed in kernel space, and leave most to irq
balancer.

YH






^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Fwd: [PATCH] x86_64: typo in __assign_irq_vector when update pos for vector and offset
@ 2006-10-17 18:05 Lu, Yinghai
  0 siblings, 0 replies; 12+ messages in thread
From: Lu, Yinghai @ 2006-10-17 18:05 UTC (permalink / raw)
  To: ebiederm; +Cc: Andi Kleen, linux kernel mailing list, yhlu.kernel

From: ebiederm@xmission.com [mailto:ebiederm@xmission.com] 
>I just looked and tested and we are fine.

Yes. my test is ok, We can change cpumask_of_cpu(0) in
physflat_target_cpus to cpu_online_map. Or just use flat_target_cpus
instead of physflat_target_cpus.

YH



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

end of thread, other threads:[~2006-10-17 18:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-15  7:29 [PATCH] x86_64: typo in __assign_irq_vector when update pos for vector and offset yhlu
2006-10-15 19:21 ` yhlu
2006-10-16 15:26   ` Fwd: " Yinghai Lu
2006-10-16 18:05     ` Eric W. Biederman
2006-10-16 18:35       ` Andi Kleen
2006-10-16 18:54         ` Eric W. Biederman
  -- strict thread matches above, loose matches on Subject: below --
2006-10-16 18:27 Lu, Yinghai
2006-10-16 19:03 ` Eric W. Biederman
2006-10-16 19:02 Lu, Yinghai
2006-10-16 19:52 Lu, Yinghai
2006-10-17 17:55 ` Eric W. Biederman
2006-10-17 18:05 Lu, Yinghai

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.