Problem with ipipe-core-3.2.21-x86-1.patch?
I am trying to build xenomai from the xenomai-2.6.git repo under ubuntu 12.04 on a x86_64 desktop machine. When I try to build a xenomai-enabled kernel from the 3.2.21 sources, the build fails with a compile error. (Sorry, I didn't save the error message, but I can repeat the process if necessary.) In order to get things to compile, I made the following change to ipipe-core-3.2.21-x86-1.patch. Is this a bug? If so, I'm wondering why no one else has run into this one yet. I think I built a kernel without any compiler errors under ubuntu 10.04 using this patch, but I'm not 100% certain about that.
-Jeff
ksrc/arch/x86/patches/ipipe-core-3.2.21-x86-1.patch +3 -3
@@ -1751,12 +1751,12 @@ index 6d939d7..9bbe781 100644 #ifdef CONFIG_SMP chip->irq_set_affinity = ir_ioapic_set_affinity; +#ifdef CONFIG_IPIPE -+ chip->irq_move = move_xxapic_irq, ++ chip->irq_move = move_xxapic_irq; +#endif +#endif +#ifdef CONFIG_IPIPE -+ chip->irq_hold = hold_ioapic_irq, -+ chip->irq_release = release_ioapic_irq, ++ chip->irq_hold = hold_ioapic_irq; ++ chip->irq_release = release_ioapic_irq; #endif } #endif /* CONFIG_IRQ_REMAP */
Quoted 9 lines · Jeff Webb
I am trying to build xenomai from the xenomai-2.6.git repo under ubuntu 12.04 on a
x86_64desktop machine. When I try to build a xenomai-enabled kernel from the 3.2.21 sources, the build fails with a compile error. (Sorry, I didn't save the error message, but I can repeat the process if necessary.) In order to get things to compile, I made the following change to ipipe-core-3.2.21-x86-1.patch. Is this a bug? If so, I'm wondering why no one else has run into this one yet. I think I built a kernel without any compiler errors under ubuntu 10.04 using this patch, but I'm not 100% certain about that.
Yep, it has been reported already, and is fixed in the 3.4 branch, not backported in 3.2 yet.
Signature · 1 line
Gilles.
Quoted 13 lines · Gilles Chanteperdrix
Quoted 9 lines · Jeff Webb
I am trying to build xenomai from the xenomai-2.6.git repo under ubuntu 12.04 on a
x86_64desktop machine. When I try to build a xenomai-enabled kernel from the 3.2.21 sources, the build fails with a compile error. (Sorry, I didn't save the error message, but I can repeat the process if necessary.) In order to get things to compile, I made the following change to ipipe-core-3.2.21-x86-1.patch. Is this a bug? If so, I'm wondering why no one else has run into this one yet. I think I built a kernel without any compiler errors under ubuntu 10.04 using this patch, but I'm not 100% certain about that.
Quoted 3 lines
Yep, it has been reported already, and is fixed in the 3.4 branch, not backported in 3.2 yet.
Thanks, Gilles. Sorry, I missed that report.
A Dimarts 16 Octubre 2012, Gilles Chanteperdrix va escriure:
Quoted 13 lines · Jeff Webb
Quoted 10 lines
I am trying to build xenomai from the xenomai-2.6.git repo under ubuntu 12.04 on a
x86_64desktop machine. When I try to build a xenomai-enabled kernel from the 3.2.21 sources, the build fails with a compile error. (Sorry, I didn't save the error message, but I can repeat the process if necessary.) In order to get things to compile, I made the following change to ipipe-core-3.2.21-x86-1.patch. Is this a bug? If so, I'm wondering why no one else has run into this one yet. I think I built a kernel without any compiler errors under ubuntu 10.04 using this patch, but I'm not 100% certain about that.
Quoted 2 lines
Yep, it has been reported already, and is fixed in the 3.4 branch, not backported in 3.2 yet.
hi,
1) does it means that this patch could be considered a backport to 3.2?
2) we use orocos and their xenomai part. We have found that when we run an application in xenomai, although the framework could do it, there's no migration between cpus, and all is executed in cpu0. The main developer have commented that a some test isolating xenomai should be done.
I have seen that the patch touch something of affinity. Some one you have experienced some trouble when you run a multithread application and all the threads are executed in cpu0 and no migration is done?
Regards,
Leo
Signature · 3 lines
-- Linux User 152692 Catalonia
Quoted 21 lines · Leopold Palomo-Avellaneda
A Dimarts 16 Octubre 2012, Gilles Chanteperdrix va escriure:
Quoted 13 lines · Jeff Webb
Quoted 10 lines
I am trying to build xenomai from the xenomai-2.6.git repo under ubuntu 12.04 on a
x86_64desktop machine. When I try to build a xenomai-enabled kernel from the 3.2.21 sources, the build fails with a compile error. (Sorry, I didn't save the error message, but I can repeat the process if necessary.) In order to get things to compile, I made the following change to ipipe-core-3.2.21-x86-1.patch. Is this a bug? If so, I'm wondering why no one else has run into this one yet. I think I built a kernel without any compiler errors under ubuntu 10.04 using this patch, but I'm not 100% certain about that.Quoted 2 lines
Yep, it has been reported already, and is fixed in the 3.4 branch, not backported in 3.2 yet.
hi,
1) does it means that this patch could be considered a backport to 3.2?
Quoted 8 lines
2) we use orocos and their xenomai part. We have found that when we run an application in xenomai, although the framework could do it, there's no migration between cpus, and all is executed in cpu0. The main developer have commented that a some test isolating xenomai should be done.
I have seen that the patch touch something of affinity. Some one you have experienced some trouble when you run a multithread application and all the threads are executed in cpu0 and no migration is done?
A migration is detrimental to determinism, so Xenomai takes the easy way out of this dilemna: absolutely no migration is done automatically. So, if you want to run a thread on a different cpu, you have to set the affinity yourself. It has always been that way.
What this patch touches is automatic migration of IRQs, which is necessary, when as far as I understood, the IOAPIC does not do load balancing correctly.
Signature · 1 line
Gilles.
A Dimarts 16 Octubre 2012, Gilles Chanteperdrix va escriure:
Quoted 18 lines · Leopold Palomo-Avellaneda
Quoted 17 lines
A Dimarts 16 Octubre 2012, Gilles Chanteperdrix va escriure:
Quoted 15 lines · Jeff Webb
Quoted 10 lines
I am trying to build xenomai from the xenomai-2.6.git repo under ubuntu 12.04 on a
x86_64desktop machine. When I try to build a xenomai-enabled kernel from the 3.2.21 sources, the build fails with a compile error. (Sorry, I didn't save the error message, but I can repeat the process if necessary.) In order to get things to compile, I made the following change to ipipe-core-3.2.21-x86-1.patch. Is this a bug? If so, I'm wondering why no one else has run into this one yet. I think I built a kernel without any compiler errors under ubuntu 10.04 using this patch, but I'm not 100% certain about that.Yep, it has been reported already, and is fixed in the 3.4 branch, not backported in 3.2 yet.
Quoted 7 lines
Quoted 7 lines
hi,
1) does it means that this patch could be considered a backport to 3.2?
2) we use orocos and their xenomai part. We have found that when we run an application in xenomai, although the framework could do it, there's no migration between cpus, and all is executed in cpu0. The main developer
have
Quoted 4 lines
Quoted 4 lines
commented that a some test isolating xenomai should be done.
I have seen that the patch touch something of affinity. Some one you have experienced some trouble when you run a multithread application and all
the
Quoted 6 lines
Quoted 1 line
threads are executed in cpu0 and no migration is done?
A migration is detrimental to determinism, so Xenomai takes the easy way out of this dilemna: absolutely no migration is done automatically. So, if you want to run a thread on a different cpu, you have to set the affinity yourself. It has always been that way.
We do it using the Orocos api, but it doesn't work, so we don't know if it's a Orocos problem or Xenomai problem.
Quoted 4 lines
What this patch touches is automatic migration of IRQs, which is necessary, when as far as I understood, the IOAPIC does not do load balancing correctly.
I will test it.
Regards,
Leo
Signature · 3 lines
-- Linux User 152692 Catalonia
Quoted 34 lines · Leopold Palomo-Avellaneda
A Dimarts 16 Octubre 2012, Gilles Chanteperdrix va escriure:
Quoted 18 lines · Leopold Palomo-Avellaneda
Quoted 17 lines
A Dimarts 16 Octubre 2012, Gilles Chanteperdrix va escriure:
Quoted 15 lines · Jeff Webb
Quoted 10 lines
I am trying to build xenomai from the xenomai-2.6.git repo under ubuntu 12.04 on a
x86_64desktop machine. When I try to build a xenomai-enabled kernel from the 3.2.21 sources, the build fails with a compile error. (Sorry, I didn't save the error message, but I can repeat the process if necessary.) In order to get things to compile, I made the following change to ipipe-core-3.2.21-x86-1.patch. Is this a bug? If so, I'm wondering why no one else has run into this one yet. I think I built a kernel without any compiler errors under ubuntu 10.04 using this patch, but I'm not 100% certain about that.Yep, it has been reported already, and is fixed in the 3.4 branch, not backported in 3.2 yet.
Quoted 7 lines
Quoted 7 lines
hi,
1) does it means that this patch could be considered a backport to 3.2?
2) we use orocos and their xenomai part. We have found that when we run an application in xenomai, although the framework could do it, there's no migration between cpus, and all is executed in cpu0. The main developer
have
Quoted 4 lines
Quoted 4 lines
commented that a some test isolating xenomai should be done.
I have seen that the patch touch something of affinity. Some one you have experienced some trouble when you run a multithread application and all
the
Quoted 2 lines
Quoted 1 line
threads are executed in cpu0 and no migration is done?
Quoted 7 lines
Quoted 4 lines
A migration is detrimental to determinism, so Xenomai takes the easy way out of this dilemna: absolutely no migration is done automatically. So, if you want to run a thread on a different cpu, you have to set the affinity yourself. It has always been that way.
We do it using the Orocos api, but it doesn't work, so we don't know if it's a Orocos problem or Xenomai problem.
What is the return value of sched_setaffinity?
Signature · 1 line
Gilles.