Backport Xenomai-26 to Linux 2.6.29.1
Hi,
We decided to try to backport the adeos-ipipe-2.6.36.4-powerpc-2.12-05.patch against the Linux 2.6.29.1 kernel but we encountered problems with spinlock handling:
In the 2.6.29 kernel, we found some differences about spinlock structures hierarchy. In detail at kernel side we have only raw_spinlock_t and spinlock_t but xenomai (ipipe_lock.h) uses arch_spinlock_t, raw_spinlock_t and spinlock_t. Those differences will force us to heavily modify the spinlock handling in the xenomai patch, deleting a layer and replacing arch_spinlock_t with raw_spinlock_t and raw_spinlock_t with spinlock_t.
Is there an old patch file that contains spinlock handling compliant with 2.6.29.1 kernel and xenomai 2.6?
Regards,
Matteo Facchinetti
Sirius Electronic Systems
Quoted 14 lines · Matteo Facchinetti
Hi,
We decided to try to backport the adeos-ipipe-2.6.36.4-powerpc-2.12-05.patch against the Linux 2.6.29.1 kernel but we encountered problems with spinlock handling:
In the 2.6.29 kernel, we found some differences about spinlock structures hierarchy. In detail at kernel side we have only
raw_spinlock_tandspinlock_tbut xenomai (ipipe_lock.h) usesarch_spinlock_t,raw_spinlock_tandspinlock_t.
Those differences will force us to heavily modify the spinlock handling in the xenomai patch, deleting a layer and replacingarch_spinlock_twithraw_spinlock_tandraw_spinlock_twithspinlock_t.
Quoted 3 lines
Is there an old patch file that contains spinlock handling compliant with 2.6.29.1 kernel and xenomai 2.6?
This is clearly an area of the I-pipe code you should NOT backport, at all. You should keep the one avail with 2.6.29.1, and fix up the generic/arch-dep portions of the pipeline code accordingly.
Signature · 1 line
Philippe.
Quoted 15 lines · Philippe Gerum
Quoted 14 lines · Matteo Facchinetti
Hi,
We decided to try to backport the adeos-ipipe-2.6.36.4-powerpc-2.12-05.patch against the Linux 2.6.29.1 kernel but we encountered problems with spinlock handling:
In the 2.6.29 kernel, we found some differences about spinlock structures hierarchy. In detail at kernel side we have only
raw_spinlock_tandspinlock_tbut xenomai (ipipe_lock.h) usesarch_spinlock_t,raw_spinlock_tandspinlock_t.
Those differences will force us to heavily modify the spinlock handling in the xenomai patch, deleting a layer and replacingarch_spinlock_twithraw_spinlock_tandraw_spinlock_twithspinlock_t.
Quoted 9 lines
Quoted 3 lines
Is there an old patch file that contains spinlock handling compliant with 2.6.29.1 kernel and xenomai 2.6?
This is clearly an area of the I-pipe code you should NOT backport, at all. You should keep the one avail with 2.6.29.1, and fix up the generic/arch-dep portions of the pipeline code accordingly.
In short, do not backport include/ipipe_lock.h.
Signature · 1 line
Philippe.