ipipe 5.4.107 / 5.4.93 build issues on arm32
Hello,
I just tested the following ipipe patches on arm32:
https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.107-arm-1.patch
https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.93-arm-0.patch
applied of course on the appropriate 5.4.x code base, configured with the sama5_defconfig kernel configuration, and in both cases the build fails with:
In file included from include/xenomai/cobalt/kernel/thread.h:26:0,
from include/xenomai/cobalt/kernel/sched.h:24,
from kernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘inc_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \
^include/xenomai/cobalt/kernel/stat.h:147:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:123:2: note: in expansion of macro ‘xnstat_exectime_lazy_switch’
xnstat_exectime_lazy_switch(sched, &statp->account, start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/atomic.h:76:0,
from ./include/asm-generic/bitops/lock.h:5,
from ./arch/arm/include/asm/bitops.h:243,
from ./include/linux/bitops.h:26,
from ./include/linux/kernel.h:12,
from ./include/asm-generic/bug.h:19,
from ./arch/arm/include/asm/bug.h:60,
from ./include/linux/bug.h:5,
from ./include/linux/thread_info.h:12,
from ./include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from ./include/linux/mutex.h:14,
from kernel/xenomai/intr.c:21:./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka struct xnstat_exectime **}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
In file included from include/xenomai/cobalt/kernel/thread.h:26:0,
from include/xenomai/cobalt/kernel/sched.h:24,
from kernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘switch_to_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \
^include/xenomai/cobalt/kernel/stat.h:139:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:132:2: note: in expansion of macro ‘xnstat_exectime_switch’
xnstat_exectime_switch(sched, &statp->account);
^~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/atomic.h:76:0,
from ./include/asm-generic/bitops/lock.h:5,
from ./arch/arm/include/asm/bitops.h:243,
from ./include/linux/bitops.h:26,
from ./include/linux/kernel.h:12,
from ./include/asm-generic/bug.h:19,
from ./arch/arm/include/asm/bug.h:60,
from ./include/linux/bug.h:5,
from ./include/linux/thread_info.h:12,
from ./include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from ./include/linux/mutex.h:14,
from kernel/xenomai/intr.c:21:./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka struct xnstat_exectime **}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
In file included from include/xenomai/cobalt/kernel/thread.h:26:0,
from include/xenomai/cobalt/kernel/sched.h:24,
from kernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘switch_from_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \
^include/xenomai/cobalt/kernel/stat.h:139:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:138:2: note: in expansion of macro ‘xnstat_exectime_switch’
xnstat_exectime_switch(sched, prev);
^~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/atomic.h:76:0,
from ./include/asm-generic/bitops/lock.h:5,
from ./arch/arm/include/asm/bitops.h:243,
from ./include/linux/bitops.h:26,
from ./include/linux/kernel.h:12,
from ./include/asm-generic/bug.h:19,
from ./arch/arm/include/asm/bug.h:60,
from ./include/linux/bug.h:5,
from ./include/linux/thread_info.h:12,
from ./include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from ./include/linux/mutex.h:14,
from kernel/xenomai/intr.c:21:./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka struct xnstat_exectime **}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
In file included from include/xenomai/cobalt/kernel/thread.h:26:0,
from include/xenomai/cobalt/kernel/sched.h:24,
from kernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘switch_core_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \
^include/xenomai/cobalt/kernel/stat.h:139:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:147:9: note: in expansion of macro ‘xnstat_exectime_switch’
prev = xnstat_exectime_switch(sched, &statp->account);
^~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/atomic.h:76:0,
from ./include/asm-generic/bitops/lock.h:5,
from ./arch/arm/include/asm/bitops.h:243,
from ./include/linux/bitops.h:26,
from ./include/linux/kernel.h:12,
from ./include/asm-generic/bug.h:19,
from ./arch/arm/include/asm/bug.h:60,
from ./include/linux/bug.h:5,
from ./include/linux/thread_info.h:12,
from ./include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from ./include/linux/mutex.h:14,
from kernel/xenomai/intr.c:21:./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka struct xnstat_exectime **}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
CC kernel/xenomai/registry.o
cc1: some warnings being treated as errorsscripts/Makefile.build:261: recipe for target 'kernel/xenomai/intr.o' failed
make[2]: *** [kernel/xenomai/intr.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC fs/iomap/apply.o CC crypto/kpp.o CC fs/fat/inode.o CC fs/iomap/buffered-io.o
scripts/Makefile.build:496: recipe for target 'kernel/xenomai' failed make[1]: *** [kernel/xenomai] Error 2
Makefile:1732: recipe for target 'kernel' failed
Is this a known issue ?
Best regards,
Thomas Petazzoni
Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 173 lines · Thomas Petazzoni via Xenomai
Hello,
I just tested the following ipipe patches on arm32:
https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.107-arm-1.patch
https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.93-arm-0.patch
applied of course on the appropriate 5.4.x code base, configured with the
sama5_defconfigkernel configuration, and in both cases the build fails with:In file included from
include/xenomai/cobalt/kernel/thread.h:26:0,
frominclude/xenomai/cobalt/kernel/sched.h:24, fromkernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘inc_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
__prev= (xnstat_exectime_t*)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \ ^
include/xenomai/cobalt/kernel/stat.h:147:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:123:2: note: in expansion of macro ‘xnstat_exectime_lazy_switch’
xnstat_exectime_lazy_switch(sched, &statp->account, start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from./include/linux/atomic.h:76:0,from ./include/asm-generic/bitops/lock.h:5, from ./arch/arm/include/asm/bitops.h:243, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./include/asm-generic/bug.h:19, from ./arch/arm/include/asm/bug.h:60, from ./include/linux/bug.h:5, from ./include/linux/thread_info.h:12, from ./include/asm-generic/current.h:5, from ./arch/arm/include/generated/asm/current.h:1, from ./include/linux/mutex.h:14, from kernel/xenomai/intr.c:21:
./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka structxnstat_exectime**}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
In file included frominclude/xenomai/cobalt/kernel/thread.h:26:0,
frominclude/xenomai/cobalt/kernel/sched.h:24, fromkernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘switch_to_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
__prev= (xnstat_exectime_t*)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \ ^
include/xenomai/cobalt/kernel/stat.h:139:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:132:2: note: in expansion of macro ‘xnstat_exectime_switch’
xnstat_exectime_switch(sched, &statp->account); ^~~~~~~~~~~~~~~~~~~~~~
In file included from./include/linux/atomic.h:76:0,from ./include/asm-generic/bitops/lock.h:5, from ./arch/arm/include/asm/bitops.h:243, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./include/asm-generic/bug.h:19, from ./arch/arm/include/asm/bug.h:60, from ./include/linux/bug.h:5, from ./include/linux/thread_info.h:12, from ./include/asm-generic/current.h:5, from ./arch/arm/include/generated/asm/current.h:1, from ./include/linux/mutex.h:14, from kernel/xenomai/intr.c:21:
./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka structxnstat_exectime**}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
In file included frominclude/xenomai/cobalt/kernel/thread.h:26:0,
frominclude/xenomai/cobalt/kernel/sched.h:24, fromkernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘switch_from_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
__prev= (xnstat_exectime_t*)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \ ^
include/xenomai/cobalt/kernel/stat.h:139:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:138:2: note: in expansion of macro ‘xnstat_exectime_switch’
xnstat_exectime_switch(sched, prev); ^~~~~~~~~~~~~~~~~~~~~~
In file included from./include/linux/atomic.h:76:0,from ./include/asm-generic/bitops/lock.h:5, from ./arch/arm/include/asm/bitops.h:243, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./include/asm-generic/bug.h:19, from ./arch/arm/include/asm/bug.h:60, from ./include/linux/bug.h:5, from ./include/linux/thread_info.h:12, from ./include/asm-generic/current.h:5, from ./arch/arm/include/generated/asm/current.h:1, from ./include/linux/mutex.h:14, from kernel/xenomai/intr.c:21:
./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka structxnstat_exectime**}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
In file included frominclude/xenomai/cobalt/kernel/thread.h:26:0,
frominclude/xenomai/cobalt/kernel/sched.h:24, fromkernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘switch_core_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
__prev= (xnstat_exectime_t*)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \ ^
include/xenomai/cobalt/kernel/stat.h:139:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:147:9: note: in expansion of macro ‘xnstat_exectime_switch’prev = xnstat_exectime_switch(sched, &statp->account); ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/atomic.h:76:0, from ./include/asm-generic/bitops/lock.h:5, from ./arch/arm/include/asm/bitops.h:243, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./include/asm-generic/bug.h:19, from ./arch/arm/include/asm/bug.h:60, from ./include/linux/bug.h:5, from ./include/linux/thread_info.h:12, from ./include/asm-generic/current.h:5, from ./arch/arm/include/generated/asm/current.h:1, from ./include/linux/mutex.h:14, from kernel/xenomai/intr.c:21:
./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka structxnstat_exectime**}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
CCkernel/xenomai/registry.o
cc1: some warnings being treated as errorsscripts/Makefile.build:261: recipe for target 'kernel/xenomai/intr.o' failed
make[2]: *** [kernel/xenomai/intr.o] Error 1
make[2]: *** Waiting for unfinished jobs....CC fs/iomap/apply.o CC crypto/kpp.o CC fs/fat/inode.o CC fs/iomap/buffered-io.o
scripts/Makefile.build:496: recipe for target 'kernel/xenomai' failed make[1]: *** [kernel/xenomai] Error 2
Makefile:1732: recipe for target 'kernel' failedIs this a known issue ?
Quoted 8 lines
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Hi,
I haven’t tested that defconfig, I can look into the above issue.
There is a known issue with 5.4 at the moment where we see large latencies, it looks like an upstream changed is the cause of the issue. I should have a week by the weekend.
Thanks
Greg
Quoted 2 lines
Quoted 136 lines · Thomas Petazzoni via Xenomai
Hello,
I just tested the following ipipe patches on arm32:
https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.107-arm-1.patch
https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.93-arm-0.patchapplied of course on the appropriate 5.4.x code base, configured with the
sama5_defconfigkernel configuration, and in both cases the build fails with:In file included from
include/xenomai/cobalt/kernel/thread.h:26:0,
frominclude/xenomai/cobalt/kernel/sched.h:24,
fromkernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘inc_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \ ^
include/xenomai/cobalt/kernel/stat.h:147:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:123:2: note: in expansion of macro ‘xnstat_exectime_lazy_switch’
xnstat_exectime_lazy_switch(sched, &statp->account, start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from./include/linux/atomic.h:76:0,from ./include/asm-generic/bitops/lock.h:5, from ./arch/arm/include/asm/bitops.h:243, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./include/asm-generic/bug.h:19, from ./arch/arm/include/asm/bug.h:60, from ./include/linux/bug.h:5, from ./include/linux/thread_info.h:12, from ./include/asm-generic/current.h:5, from ./arch/arm/include/generated/asm/current.h:1, from ./include/linux/mutex.h:14, from kernel/xenomai/intr.c:21:
./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka structxnstat_exectime**}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
In file included frominclude/xenomai/cobalt/kernel/thread.h:26:0,
frominclude/xenomai/cobalt/kernel/sched.h:24,
fromkernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘switch_to_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \ ^
include/xenomai/cobalt/kernel/stat.h:139:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:132:2: note: in expansion of macro ‘xnstat_exectime_switch’
xnstat_exectime_switch(sched, &statp->account);
^~~~~~~~~~~~~~~~~~~~~~
In file included from./include/linux/atomic.h:76:0,from ./include/asm-generic/bitops/lock.h:5, from ./arch/arm/include/asm/bitops.h:243, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./include/asm-generic/bug.h:19, from ./arch/arm/include/asm/bug.h:60, from ./include/linux/bug.h:5, from ./include/linux/thread_info.h:12, from ./include/asm-generic/current.h:5, from ./arch/arm/include/generated/asm/current.h:1, from ./include/linux/mutex.h:14, from kernel/xenomai/intr.c:21:
./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka structxnstat_exectime**}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
In file included frominclude/xenomai/cobalt/kernel/thread.h:26:0,
frominclude/xenomai/cobalt/kernel/sched.h:24,
fromkernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘switch_from_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \ ^
include/xenomai/cobalt/kernel/stat.h:139:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:138:2: note: in expansion of macro ‘xnstat_exectime_switch’
xnstat_exectime_switch(sched, prev);
^~~~~~~~~~~~~~~~~~~~~~
In file included from./include/linux/atomic.h:76:0,from ./include/asm-generic/bitops/lock.h:5, from ./arch/arm/include/asm/bitops.h:243, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./include/asm-generic/bug.h:19, from ./arch/arm/include/asm/bug.h:60, from ./include/linux/bug.h:5, from ./include/linux/thread_info.h:12, from ./include/asm-generic/current.h:5, from ./arch/arm/include/generated/asm/current.h:1, from ./include/linux/mutex.h:14, from kernel/xenomai/intr.c:21:
./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka structxnstat_exectime**}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
In file included frominclude/xenomai/cobalt/kernel/thread.h:26:0,
frominclude/xenomai/cobalt/kernel/sched.h:24,
fromkernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘switch_core_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \ ^
include/xenomai/cobalt/kernel/stat.h:139:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:147:9: note: in expansion of macro ‘xnstat_exectime_switch’prev = xnstat_exectime_switch(sched, &statp->account); ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/atomic.h:76:0, from ./include/asm-generic/bitops/lock.h:5, from ./arch/arm/include/asm/bitops.h:243, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./include/asm-generic/bug.h:19, from ./arch/arm/include/asm/bug.h:60, from ./include/linux/bug.h:5, from ./include/linux/thread_info.h:12, from ./include/asm-generic/current.h:5, from ./arch/arm/include/generated/asm/current.h:1, from ./include/linux/mutex.h:14, from kernel/xenomai/intr.c:21:
./include/asm-generic/atomic-long.h:880:1: note: expected ‘atomic_long_t * {aka struct <anonymous> *}’ but argument is of type ‘xnstat_exectime_t ** {aka structxnstat_exectime**}’
atomic_long_xchg(atomic_long_t *v, long i)
^~~~~~~~~~~~~~~~
CCkernel/xenomai/registry.o
cc1: some warnings being treated as errorsscripts/Makefile.build:261: recipe for target 'kernel/xenomai/intr.o' failed
make[2]: *** [kernel/xenomai/intr.o] Error 1
make[2]: *** Waiting for unfinished jobs....CC fs/iomap/apply.o CC crypto/kpp.o CC fs/fat/inode.o CC fs/iomap/buffered-io.o
Quoted 6 lines
scripts/Makefile.build:496: recipe for target 'kernel/xenomai' failed make[1]: *** [kernel/xenomai] Error 2
Makefile:1732: recipe for target 'kernel' failedIs this a known issue ?
Does
https://source.denx.de/Xenomai/xenomai/-/commit/18ab00b7b0c2c2d0ed1f560cf4fb4161f6e9bde6
help? Or did you build a tree that included this?
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Hello,
Quoted 3 lines · On Wed, 14 Apr 2021 15:49:45 +0200 Jan Kiszka <[email protected]> wrote:
Does
https://source.denx.de/Xenomai/xenomai/-/commit/18ab00b7b0c2c2d0ed1f560cf4fb4161f6e9bde6
help? Or did you build a tree that included this?
This helps, but the build fails a bit later with:
In file included from kernel/cpu.c:23:0:./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’:./include/linux/stop_machine.h:150:2: error: implicit declaration of function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? [-Werror=implicit-function-declaration]
hard_irq_enable();
^~~~~~~~~~~~~~~
hard_irq_disable
But this makes me realize something: I am using Xenomai 3.1, together with the ipipe patch
https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.107-arm-1.patch.
Maybe this doesn't make any sense, and this very recent ipipe patch is only compatible with a more recent version of Xenomai ?
Thomas
Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 28 lines · Thomas Petazzoni via Xenomai
Hello,
Quoted 2 lines · On Wed, 14 Apr 2021 15:49:45 +0200 Jan Kiszka <[email protected]> wrote:
Does
https://source.denx.de/Xenomai/xenomai/-/commit/18ab00b7b0c2c2d0ed1f560cf4fb4161f6e9bde6
Quoted 1 line
help? Or did you build a tree that included this?
This helps, but the build fails a bit later with:
In file included from
kernel/cpu.c:23:0:./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’:./include/linux/stop_machine.h:150:2: error: implicit declaration of function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? [-Werror=implicit-function-declaration]
hard_irq_enable();
^~~~~~~~~~~~~~~
hard_irq_disableBut this makes me realize something: I am using Xenomai 3.1, together with the ipipe patch
https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.107-arm-1.patch
.
Maybe this doesn't make any sense, and this very recent ipipe patch is only compatible with a more recent version of Xenomai ?
Quoted 6 lines
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Ipipe 5.4 and xenomai 3.1 are compatible, this is my mistake, I’ll fix up and generate a new patch once the latency fix is done.
FWIW, building straight from the ipipe-arm repo on the ipipe/5.4.y branch has been working for me.
I’ll confirm the above issues and get a fix out.
Thanks
Greg
Quoted 1 line
Quoted 4 lines · On Wed, 14 Apr 2021 14:41:29 -0400 Greg Gallagher <[email protected]> wrote:
Ipipe 5.4 and xenomai 3.1 are compatible, this is my mistake, I’ll fix up and generate a new patch once the latency fix is done.
FWIW, building straight from the ipipe-arm repo on the ipipe/5.4.y branch has been working for me.
I'm afraid the HEAD of ipipe/5.4.y as of commit ffaf274ca4cc117c2dc3f9b2ee8ea6218b50995a doesn't build for me. I'm on this commit + I have prepared the kernel using Xenomai 3.1 ./scripts/prepare-kernel.sh --linux=/path/to/kernel + kernel configured with sama5_defconfig.
And same build failure:
In file included from kernel/cpu.c:23:0:./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’:./include/linux/stop_machine.h:150:2: error: implicit declaration of function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? [-Werror=implicit-function-declaration]
hard_irq_enable();
^~~~~~~~~~~~~~~
hard_irq_disable
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 25 lines · Thomas Petazzoni
Quoted 4 lines · On Wed, 14 Apr 2021 14:41:29 -0400 Greg Gallagher <[email protected]> wrote:
Ipipe 5.4 and xenomai 3.1 are compatible, this is my mistake, I’ll fix up and generate a new patch once the latency fix is done.
FWIW, building straight from the ipipe-arm repo on the ipipe/5.4.y branch has been working for me.I'm afraid the HEAD of ipipe/5.4.y as of commit
ffaf274ca4cc117c2dc3f9b2ee8ea6218b50995adoesn't build for me. I'm on this commit + I have prepared the kernel using Xenomai 3.1./scripts/prepare-kernel.sh--linux=/path/to/kernel + kernel configured withsama5_defconfig.And same build failure:
In file included from
kernel/cpu.c:23:0:./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’:./include/linux/stop_machine.h:150:2: error: implicit declaration of function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? [-Werror=implicit-function-declaration]
hard_irq_enable();
^~~~~~~~~~~~~~~
hard_irq_disable
Quoted 7 lines
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
I'll dig into this tonight, I usually test with multi_v7_defconfig and it seems to build fine with ipipe 5.4 and Xenomai 3.1. I'll test with sama5_defconfig.
Thanks
Greg
Quoted 35 lines · Greg Gallagher via Xenomai
Quoted 24 lines · Thomas Petazzoni
Quoted 4 lines · On Wed, 14 Apr 2021 14:41:29 -0400 Greg Gallagher <[email protected]> wrote:
Ipipe 5.4 and xenomai 3.1 are compatible, this is my mistake, I’ll fix up and generate a new patch once the latency fix is done.
FWIW, building straight from the ipipe-arm repo on the ipipe/5.4.y branch has been working for me.I'm afraid the HEAD of ipipe/5.4.y as of commit
ffaf274ca4cc117c2dc3f9b2ee8ea6218b50995adoesn't build for me. I'm on this commit + I have prepared the kernel using Xenomai 3.1./scripts/prepare-kernel.sh--linux=/path/to/kernel + kernel configured withsama5_defconfig.And same build failure:
In file included from
kernel/cpu.c:23:0:./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’:./include/linux/stop_machine.h:150:2: error: implicit declaration of function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? [-Werror=implicit-function-declaration]hard_irq_enable(); ^~~~~~~~~~~~~~~ hard_irq_disableQuoted 7 lines
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Quoted 7 lines
I'll dig into this tonight, I usually test with
multi_v7_defconfigand it seems to build fine with ipipe 5.4 and Xenomai 3.1. I'll test withsama5_defconfig.Thanks
Greg
Greg,
We are also having issues with ARM32 (armv7-a) with this build genre (5.4.107 + Xenomai 3.1 stable) and the e1000e driver. The build completes without compile/link errors, but when booting we're getting a kernel stack dump (upon an ifup of the e1000e interface) that's indicating a problem with enabling interrupts at a point where interrupts are not supposed to be enabled. We're not seeing a lot of changes to the e1000e tree since 4.14.85 (last release we know of where the driver was working properly), so we suspected it might be something in Linux or ipipe. We know that e1000e seems to work properly with kernel 5.4.107 (non-Xenomai/ipipe build).
I wonder, do you have access to an ARMV7 system that has an e1000e NIC? If so, I wonder could you add an e1000e driver to your modules build and see if you get the same stack trace we're getting? Below is the original post I did on this (on 03/15/2021). We suspect that e1000e doesn't fly on any armv7 5.4.107+Xenomai 3.1/stable build. Naturally we'll be happy to test any patches related to these issues.
Best regards,
Steve
------------------------------------------------------------------------
Greetings Xenomai list,
We are seeing the following stack trace when we 'ifup' the e1000e adapter. 4.19 exhibits same failure, 4.14.96 also fails but with a different stack trace. Last working version is 4.14.85.
Thanks in advance for any assist,
Steve
------------------------------------------------------------------------
[ 47.635779] ------------[ cut here ]------------
[ 47.637083] ip (658) used greatest stack depth: 3960 bytes left
[ 47.640416] WARNING: CPU: 0 PID: 0 at kernel/ipipe/core.c:1968 __ipipe_spin_unlock_debug+0x50/0x5c [ 47.655297] Modules linked in: xeno_gpio_mxc e1000e
[ 47.660198] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.93-00202-g1070d76ae3f5-dirty #7
[ 47.668386] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 47.674923] I-pipe domain: Linux
[ 47.678159] Backtrace:
[ 47.680620] [<80992f10>] (dump_backtrace) from [<8099328c>] (show_stack+0x20/0x24)
[ 47.688199] r7:81238180 r6:00000080 r5:00000000 r4:811a66f0
[ 47.693867] [<8099326c>] (show_stack) from [<8099cac0>] (dump_stack+0xf4/0x128)
[ 47.701184] [<8099c9cc>] (dump_stack) from [<8012ba1c>] (__warn+0xd0/0x108)
[ 47.708154] r9:00000000 r8:00000009 r7:000007b0 r6:801e1448 r5:00000009 r4:80c02be0
[ 47.715905] [<8012b94c>] (__warn) from [<809942b8>] (warn_slowpath_fmt+0x6c/0xc4)
[ 47.723396] r7:801e1448 r6:000007b0 r5:80c02be0 r4:00000000
[ 47.729065] [<80994250>] (warn_slowpath_fmt) from [<801e1448>] (__ipipe_spin_unlock_debug+0x50/0x5c) [ 47.738206] r8:ffffffff r7:00000000 r6:ffff9d6c r5:bf54b4c0 r4:bd354580
[ 47.744917] [<801e13f8>] (__ipipe_spin_unlock_debug) from [<801a2d90>] (mod_timer+0x190/0x400) [ 47.753537] [<801a2c00>] (mod_timer) from [<7f01a5b8>] (e1000_msix_other+0xac/0xb8 [e1000e]) [ 47.761984] r10:80e748d4 r9:00000001 r8:81101d78 r7:00000137 r6:bd3549e4 r5:81000004
[ 47.769822] r4:bd354000
[ 47.772365] [<7f01a50c>] (e1000_msix_other [e1000e]) from [<801859b8>] (__handle_irq_event_percpu+0x64/0x240) [ 47.782289] r7:00000137 r6:00000000 r5:bd23e870 r4:bc09aa80
[ 47.787957] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] (handle_irq_event_percpu+0x3c/0x98) [ 47.797618] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c r6:bd23e870 r5:bd23e870
[ 47.805456] r4:bd23e800
[ 47.807999] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] (handle_irq_event+0x48/0x6c) [ 47.816878] r5:bd23e870 r4:bd23e800
[ 47.820463] [<80185c2c>] (handle_irq_event) from [<8018ba84>] (handle_edge_irq+0xb4/0x1f8) [ 47.828735] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800
[ 47.834403] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] (generic_handle_irq+0x30/0x44) [ 47.842762] r9:00000001 r8:00000830 r7:00000000 r6:00000000 r5:be412e58 r4:00000003
[ 47.850513] [<801849a8>] (generic_handle_irq) from [<8057dca8>] (dw_handle_msi_irq+0x9c/0xf4) [ 47.859046] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] (dw_chained_msi_isr+0x34/0x80) [ 47.867579] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 r5:811119dc r4:bee36400
[ 47.875331] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] (__ipipe_dispatch_irq+0x154/0x228) [ 47.884297] r7:0000001a r6:00000001 r5:00000019 r4:00000000
[ 47.889965] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] (__ipipe_grab_irq+0x54/0xb4) [ 47.898585] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 r5:bf3b5ae0 r4:00000019
[ 47.906337] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0)
[ 47.914437] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8
[ 47.920105] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90)
[ 47.927595] Exception stack(0x81101eb8 to 0x81101f00)
[ 47.932657] 1ea0: 80000000 00000000
[ 47.940842] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68 81106ba8 811abf50 80bfbb3c
[ 47.949027] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc 60070013 ffffffff
[ 47.957214] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff r5:60070013 r4:801e26fc
[ 47.964966] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] (arch_cpu_idle+0x98/0xb0)
[ 47.973151] r5:00000000 r4:80e8fae0
[ 47.976735] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] (default_idle_call+0x44/0x50)
[ 47.984833] r5:00000000 r4:81100000
[ 47.988419] [<809a49dc>] (default_idle_call) from [<8016059c>] (do_idle+0xd8/0x1e4)
[ 47.996083] [<801604c4>] (do_idle) from [<8016097c>] (cpu_startup_entry+0x28/0x2c)
[ 48.003661] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 r5:811b1000 r4:000000ce
[ 48.011413] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] (rest_init+0x9c/0xbc)
[ 48.019165] [<8099cbd0>] (rest_init) from [<80e00b44>] (arch_call_rest_init+0x18/0x1c)
[ 48.027089] r5:811b1000 r4:80e748d4
[ 48.030675] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] (start_kernel+0x3e0/0x4a4) [ 48.039035] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0)
[ 48.044963] ---[ end trace cea0b6f9eb21f4eb ]---
[ 48.049596] ------------[ cut here ]------------
[ 48.054244] WARNING: CPU: 0 PID: 0 at kernel/irq/handle.c:152 __handle_irq_event_percpu+0x220/0x240 [ 48.063398] irq 311 handler e1000_msix_other+0x0/0xb8 [e1000e] enabled interrupts
[ 48.070894] Modules linked in: xeno_gpio_mxc e1000e
[ 48.075806] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.4.93-00202-g1070d76ae3f5-dirty #7 [ 48.085385] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 48.091925] I-pipe domain: Linux
[ 48.095164] Backtrace:
[ 48.097644] [<80992f10>] (dump_backtrace) from [<8099328c>] (show_stack+0x20/0x24)
[ 48.105232] r7:81238180 r6:00000000 r5:00000000 r4:811a66f0
[ 48.110915] [<8099326c>] (show_stack) from [<8099cac0>] (dump_stack+0xf4/0x128)
[ 48.118251] [<8099c9cc>] (dump_stack) from [<8012ba1c>] (__warn+0xd0/0x108)
[ 48.125229] r9:00000001 r8:00000009 r7:00000098 r6:80185b74 r5:00000009 r4:80bfd600
[ 48.132993] [<8012b94c>] (__warn) from [<809942e8>] (warn_slowpath_fmt+0x9c/0xc4)
[ 48.140490] r7:80185b74 r6:00000098 r5:80bfd600 r4:80bfd5d8
[ 48.146176] [<80994250>] (warn_slowpath_fmt) from [<80185b74>] (__handle_irq_event_percpu+0x220/0x240) [ 48.155496] r8:81101d78 r7:00000137 r6:00000000 r5:00000001 r4:bc09aa80
[ 48.162216] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] (handle_irq_event_percpu+0x3c/0x98) [ 48.171885] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c r6:bd23e870 r5:bd23e870
[ 48.179724] r4:bd23e800
[ 48.182277] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] (handle_irq_event+0x48/0x6c) [ 48.191161] r5:bd23e870 r4:bd23e800
[ 48.194759] [<80185c2c>] (handle_irq_event) from [<8018ba84>] (handle_edge_irq+0xb4/0x1f8) [ 48.203037] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800
[ 48.208714] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] (generic_handle_irq+0x30/0x44) [ 48.217080] r9:00000001 r8:00000830 r7:00000000 r6:00000000 r5:be412e58 r4:00000003
[ 48.224845] [<801849a8>] (generic_handle_irq) from [<8057dca8>] (dw_handle_msi_irq+0x9c/0xf4) [ 48.233388] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] (dw_chained_msi_isr+0x34/0x80) [ 48.241928] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 r5:811119dc r4:bee36400
[ 48.249698] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] (__ipipe_dispatch_irq+0x154/0x228) [ 48.258669] r7:0000001a r6:00000001 r5:00000019 r4:00000000
[ 48.264350] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] (__ipipe_grab_irq+0x54/0xb4) [ 48.272977] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 r5:bf3b5ae0 r4:00000019
[ 48.280738] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0)
[ 48.288843] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8
[ 48.294519] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90)
[ 48.302015] Exception stack(0x81101eb8 to 0x81101f00)
[ 48.307084] 1ea0: 80000000 00000000
[ 48.315279] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68 81106ba8 811abf50 80bfbb3c
[ 48.323473] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc 60070013 ffffffff
[ 48.331665] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff r5:60070013 r4:801e26fc
[ 48.339431] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] (arch_cpu_idle+0x98/0xb0)
[ 48.347619] r5:00000000 r4:80e8fae0
[ 48.351215] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] (default_idle_call+0x44/0x50)
[ 48.359317] r5:00000000 r4:81100000
[ 48.362914] [<809a49dc>] (default_idle_call) from [<8016059c>] (do_idle+0xd8/0x1e4)
[ 48.370588] [<801604c4>] (do_idle) from [<8016097c>] (cpu_startup_entry+0x28/0x2c)
[ 48.378172] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 r5:811b1000 r4:000000ce
[ 48.385936] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] (rest_init+0x9c/0xbc)
[ 48.393699] [<8099cbd0>] (rest_init) from [<80e00b44>] (arch_call_rest_init+0x18/0x1c)
[ 48.401627] r5:811b1000 r4:80e748d4
[ 48.405220] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] (start_kernel+0x3e0/0x4a4) [ 48.413585] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0)
[ 48.419518] ---[ end trace cea0b6f9eb21f4ec ]---
Quoted 275 lines · steve freyder
On 4/14/2021 4:50 PM, Greg Gallagher via Xenomai wrote:
On Wed, Apr 14, 2021 at 4:52 PM Thomas Petazzoni <[email protected]> wrote:
On Wed, 14 Apr 2021 14:41:29 -0400
Greg Gallagher <[email protected]> <[email protected]> wrote:Ipipe 5.4 and xenomai 3.1 are compatible, this is my mistake, I’ll fix up and generate a new patch once the latency fix is done.
FWIW, building straight from the ipipe-arm repo on the ipipe/5.4.y branch has been working for me.I'm afraid the HEAD of ipipe/5.4.y as of commit
ffaf274ca4cc117c2dc3f9b2ee8ea6218b50995adoesn't build for me. I'm on this commit + I have prepared the kernel using Xenomai 3.1./scripts/prepare-kernel.sh--linux=/path/to/kernel + kernel configured withsama5_defconfig.And same build failure:
In file included from
kernel/cpu.c:23:0:./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’:./include/linux/stop_machine.h:150:2: error: implicit declaration of function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? [-Werror=implicit-function-declaration]
hard_irq_enable();
^~~~~~~~~~~~~~~
hard_irq_disableBest regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineeringhttps://bootlin.comI'll dig into this tonight, I usually test with
multi_v7_defconfigand it seems to build fine with ipipe 5.4 and Xenomai 3.1. I'll test withsama5_defconfig.Thanks
Greg
Greg,
We are also having issues with ARM32 (armv7-a) with this build genre (5.4.107 + Xenomai 3.1 stable) and the e1000e driver. The build completes without compile/link errors, but when booting we're getting a kernel stack dump (upon an ifup of the e1000e interface) that's indicating a problem with enabling interrupts at a point where interrupts are not supposed to be enabled. We're not seeing a lot of changes to the e1000e tree since 4.14.85 (last release we know of where the driver was working properly), so we suspected it might be something in Linux or ipipe. We know that e1000e seems to work properly with kernel 5.4.107 (non-Xenomai/ipipe build).
I wonder, do you have access to an ARMV7 system that has an e1000e NIC? If so, I wonder could you add an e1000e driver to your modules build and see if you get the same stack trace we're getting? Below is the original post I did on this (on 03/15/2021). We suspect that e1000e doesn't fly on any armv7 5.4.107+Xenomai 3.1/stable build. Naturally we'll be happy to test any patches related to these issues.
Best regards,
Steve
------------------------------
Greetings Xenomai list,We are seeing the following stack trace when we 'ifup' the e1000e adapter. 4.19 exhibits same failure, 4.14.96 also fails but with a different stack trace. Last working version is 4.14.85.
Thanks in advance for any assist,
Steve
------------------------------------------------------------------------
[ 47.635779] ------------[ cut here ]------------ [ 47.637083] ip (658) used greatest stack depth: 3960 bytes left [ 47.640416] WARNING: CPU: 0 PID: 0 at kernel/ipipe/core.c:1968 __ipipe_spin_unlock_debug+0x50/0x5c [ 47.655297] Modules linked in: xeno_gpio_mxc e1000e [ 47.660198] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.93-00202-g1070d76ae3f5-dirty #7 [ 47.668386] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) [ 47.674923] I-pipe domain: Linux [ 47.678159] Backtrace: [ 47.680620] [<80992f10>] (dump_backtrace) from [<8099328c>] (show_stack+0x20/0x24) [ 47.688199] r7:81238180 r6:00000080 r5:00000000 r4:811a66f0 [ 47.693867] [<8099326c>] (show_stack) from [<8099cac0>] (dump_stack+0xf4/0x128) [ 47.701184] [<8099c9cc>] (dump_stack) from [<8012ba1c>] (__warn+0xd0/0x108) [ 47.708154] r9:00000000 r8:00000009 r7:000007b0 r6:801e1448 r5:00000009 r4:80c02be0 [ 47.715905] [<8012b94c>] (__warn) from [<809942b8>] (warn_slowpath_fmt+0x6c/0xc4) [ 47.723396] r7:801e1448 r6:000007b0 r5:80c02be0 r4:00000000 [ 47.729065] [<80994250>] (warn_slowpath_fmt) from [<801e1448>] (__ipipe_spin_unlock_debug+0x50/0x5c) [ 47.738206] r8:ffffffff r7:00000000 r6:ffff9d6c r5:bf54b4c0 r4:bd354580 [ 47.744917] [<801e13f8>] (__ipipe_spin_unlock_debug) from [<801a2d90>] (mod_timer+0x190/0x400) [ 47.753537] [<801a2c00>] (mod_timer) from [<7f01a5b8>] (e1000_msix_other+0xac/0xb8 [e1000e]) [ 47.761984] r10:80e748d4 r9:00000001 r8:81101d78 r7:00000137 r6:bd3549e4 r5:81000004 [ 47.769822] r4:bd354000 [ 47.772365] [<7f01a50c>] (e1000_msix_other [e1000e]) from [<801859b8>] (__handle_irq_event_percpu+0x64/0x240) [ 47.782289] r7:00000137 r6:00000000 r5:bd23e870 r4:bc09aa80 [ 47.787957] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] (handle_irq_event_percpu+0x3c/0x98) [ 47.797618] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c r6:bd23e870 r5:bd23e870 [ 47.805456] r4:bd23e800 [ 47.807999] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] (handle_irq_event+0x48/0x6c) [ 47.816878] r5:bd23e870 r4:bd23e800 [ 47.820463] [<80185c2c>] (handle_irq_event) from [<8018ba84>] (handle_edge_irq+0xb4/0x1f8) [ 47.828735] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 [ 47.834403] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] (generic_handle_irq+0x30/0x44) [ 47.842762] r9:00000001 r8:00000830 r7:00000000 r6:00000000 r5:be412e58 r4:00000003 [ 47.850513] [<801849a8>] (generic_handle_irq) from [<8057dca8>] (dw_handle_msi_irq+0x9c/0xf4) [ 47.859046] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] (dw_chained_msi_isr+0x34/0x80) [ 47.867579] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 r5:811119dc r4:bee36400 [ 47.875331] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] (__ipipe_dispatch_irq+0x154/0x228) [ 47.884297] r7:0000001a r6:00000001 r5:00000019 r4:00000000 [ 47.889965] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] (__ipipe_grab_irq+0x54/0xb4) [ 47.898585] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 r5:bf3b5ae0 r4:00000019 [ 47.906337] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0) [ 47.914437] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 [ 47.920105] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90) [ 47.927595] Exception stack(0x81101eb8 to 0x81101f00) [ 47.932657] 1ea0: 80000000 00000000 [ 47.940842] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68 81106ba8 811abf50 80bfbb3c [ 47.949027] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc 60070013 ffffffff [ 47.957214] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff r5:60070013 r4:801e26fc [ 47.964966] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] (arch_cpu_idle+0x98/0xb0) [ 47.973151] r5:00000000 r4:80e8fae0 [ 47.976735] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] (default_idle_call+0x44/0x50) [ 47.984833] r5:00000000 r4:81100000 [ 47.988419] [<809a49dc>] (default_idle_call) from [<8016059c>] (do_idle+0xd8/0x1e4) [ 47.996083] [<801604c4>] (do_idle) from [<8016097c>] (cpu_startup_entry+0x28/0x2c) [ 48.003661] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 r5:811b1000 r4:000000ce [ 48.011413] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] (rest_init+0x9c/0xbc) [ 48.019165] [<8099cbd0>] (rest_init) from [<80e00b44>] (arch_call_rest_init+0x18/0x1c) [ 48.027089] r5:811b1000 r4:80e748d4 [ 48.030675] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] (start_kernel+0x3e0/0x4a4) [ 48.039035] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) [ 48.044963] ---[ end trace cea0b6f9eb21f4eb ]--- [ 48.049596] ------------[ cut here ]------------ [ 48.054244] WARNING: CPU: 0 PID: 0 at kernel/irq/handle.c:152 __handle_irq_event_percpu+0x220/0x240 [ 48.063398] irq 311 handler e1000_msix_other+0x0/0xb8 [e1000e] enabled interrupts [ 48.070894] Modules linked in: xeno_gpio_mxc e1000e [ 48.075806] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.4.93-00202-g1070d76ae3f5-dirty #7 [ 48.085385] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) [ 48.091925] I-pipe domain: Linux [ 48.095164] Backtrace: [ 48.097644] [<80992f10>] (dump_backtrace) from [<8099328c>] (show_stack+0x20/0x24) [ 48.105232] r7:81238180 r6:00000000 r5:00000000 r4:811a66f0 [ 48.110915] [<8099326c>] (show_stack) from [<8099cac0>] (dump_stack+0xf4/0x128) [ 48.118251] [<8099c9cc>] (dump_stack) from [<8012ba1c>] (__warn+0xd0/0x108) [ 48.125229] r9:00000001 r8:00000009 r7:00000098 r6:80185b74 r5:00000009 r4:80bfd600 [ 48.132993] [<8012b94c>] (__warn) from [<809942e8>] (warn_slowpath_fmt+0x9c/0xc4) [ 48.140490] r7:80185b74 r6:00000098 r5:80bfd600 r4:80bfd5d8 [ 48.146176] [<80994250>] (warn_slowpath_fmt) from [<80185b74>] (__handle_irq_event_percpu+0x220/0x240) [ 48.155496] r8:81101d78 r7:00000137 r6:00000000 r5:00000001 r4:bc09aa80 [ 48.162216] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] (handle_irq_event_percpu+0x3c/0x98) [ 48.171885] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c r6:bd23e870 r5:bd23e870 [ 48.179724] r4:bd23e800 [ 48.182277] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] (handle_irq_event+0x48/0x6c) [ 48.191161] r5:bd23e870 r4:bd23e800 [ 48.194759] [<80185c2c>] (handle_irq_event) from [<8018ba84>] (handle_edge_irq+0xb4/0x1f8) [ 48.203037] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 [ 48.208714] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] (generic_handle_irq+0x30/0x44) [ 48.217080] r9:00000001 r8:00000830 r7:00000000 r6:00000000 r5:be412e58 r4:00000003 [ 48.224845] [<801849a8>] (generic_handle_irq) from [<8057dca8>] (dw_handle_msi_irq+0x9c/0xf4) [ 48.233388] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] (dw_chained_msi_isr+0x34/0x80) [ 48.241928] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 r5:811119dc r4:bee36400 [ 48.249698] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] (__ipipe_dispatch_irq+0x154/0x228) [ 48.258669] r7:0000001a r6:00000001 r5:00000019 r4:00000000 [ 48.264350] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] (__ipipe_grab_irq+0x54/0xb4) [ 48.272977] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 r5:bf3b5ae0 r4:00000019 [ 48.280738] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0) [ 48.288843] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 [ 48.294519] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90) [ 48.302015] Exception stack(0x81101eb8 to 0x81101f00) [ 48.307084] 1ea0: 80000000 00000000 [ 48.315279] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68 81106ba8 811abf50 80bfbb3c [ 48.323473] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc 60070013 ffffffff [ 48.331665] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff r5:60070013 r4:801e26fc [ 48.339431] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] (arch_cpu_idle+0x98/0xb0) [ 48.347619] r5:00000000 r4:80e8fae0 [ 48.351215] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] (default_idle_call+0x44/0x50) [ 48.359317] r5:00000000 r4:81100000 [ 48.362914] [<809a49dc>] (default_idle_call) from [<8016059c>] (do_idle+0xd8/0x1e4) [ 48.370588] [<801604c4>] (do_idle) from [<8016097c>] (cpu_startup_entry+0x28/0x2c) [ 48.378172] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 r5:811b1000 r4:000000ce [ 48.385936] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] (rest_init+0x9c/0xbc) [ 48.393699] [<8099cbd0>] (rest_init) from [<80e00b44>] (arch_call_rest_init+0x18/0x1c) [ 48.401627] r5:811b1000 r4:80e748d4 [ 48.405220] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] (start_kernel+0x3e0/0x4a4) [ 48.413585] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) [ 48.419518] ---[ end trace cea0b6f9eb21f4ec ]---
Quoted 1 line
Hi Steve,
After I get the jitter issue fixed up, I'd be happy to help. I think I
have a zynq board here with a pci slot that I can put a e1000e in. I'll start looking for the hardware after the weekend, pretty sure I have it here somewhere.
-Greg
Quoted 277 lines · Greg Gallagher via Xenomai
Quoted 275 lines · steve freyder
On 4/14/2021 4:50 PM, Greg Gallagher via Xenomai wrote:
On Wed, Apr 14, 2021 at 4:52 PM Thomas Petazzoni <[email protected]> wrote:
On Wed, 14 Apr 2021 14:41:29 -0400
Greg Gallagher <[email protected]> <[email protected]> wrote:Ipipe 5.4 and xenomai 3.1 are compatible, this is my mistake, I’ll fix up and generate a new patch once the latency fix is done.
FWIW, building straight from the ipipe-arm repo on the ipipe/5.4.y branch has been working for me.I'm afraid the HEAD of ipipe/5.4.y as of commit
ffaf274ca4cc117c2dc3f9b2ee8ea6218b50995adoesn't build for me. I'm on this commit + I have prepared the kernel using Xenomai 3.1./scripts/prepare-kernel.sh--linux=/path/to/kernel + kernel configured withsama5_defconfig.And same build failure:
In file included from
kernel/cpu.c:23:0:./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’:./include/linux/stop_machine.h:150:2: error: implicit declaration of function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? [-Werror=implicit-function-declaration]
hard_irq_enable();
^~~~~~~~~~~~~~~
hard_irq_disableBest regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineeringhttps://bootlin.comI'll dig into this tonight, I usually test with
multi_v7_defconfigand it seems to build fine with ipipe 5.4 and Xenomai 3.1. I'll test withsama5_defconfig.Thanks
Greg
Greg,
We are also having issues with ARM32 (armv7-a) with this build genre (5.4.107 + Xenomai 3.1 stable) and the e1000e driver. The build completes without compile/link errors, but when booting we're getting a kernel stack dump (upon an ifup of the e1000e interface) that's indicating a problem with enabling interrupts at a point where interrupts are not supposed to be enabled. We're not seeing a lot of changes to the e1000e tree since 4.14.85 (last release we know of where the driver was working properly), so we suspected it might be something in Linux or ipipe. We know that e1000e seems to work properly with kernel 5.4.107 (non-Xenomai/ipipe build).
I wonder, do you have access to an ARMV7 system that has an e1000e NIC? If so, I wonder could you add an e1000e driver to your modules build and see if you get the same stack trace we're getting? Below is the original post I did on this (on 03/15/2021). We suspect that e1000e doesn't fly on any armv7 5.4.107+Xenomai 3.1/stable build. Naturally we'll be happy to test any patches related to these issues.
Best regards,
Steve
------------------------------
Greetings Xenomai list,We are seeing the following stack trace when we 'ifup' the e1000e adapter. 4.19 exhibits same failure, 4.14.96 also fails but with a different stack trace. Last working version is 4.14.85.
Thanks in advance for any assist,
Steve
------------------------------------------------------------------------
[ 47.635779] ------------[ cut here ]------------ [ 47.637083] ip (658) used greatest stack depth: 3960 bytes left [ 47.640416] WARNING: CPU: 0 PID: 0 at kernel/ipipe/core.c:1968 __ipipe_spin_unlock_debug+0x50/0x5c [ 47.655297] Modules linked in: xeno_gpio_mxc e1000e [ 47.660198] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.93-00202-g1070d76ae3f5-dirty #7 [ 47.668386] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) [ 47.674923] I-pipe domain: Linux [ 47.678159] Backtrace: [ 47.680620] [<80992f10>] (dump_backtrace) from [<8099328c>] (show_stack+0x20/0x24) [ 47.688199] r7:81238180 r6:00000080 r5:00000000 r4:811a66f0 [ 47.693867] [<8099326c>] (show_stack) from [<8099cac0>] (dump_stack+0xf4/0x128) [ 47.701184] [<8099c9cc>] (dump_stack) from [<8012ba1c>] (__warn+0xd0/0x108) [ 47.708154] r9:00000000 r8:00000009 r7:000007b0 r6:801e1448 r5:00000009 r4:80c02be0 [ 47.715905] [<8012b94c>] (__warn) from [<809942b8>] (warn_slowpath_fmt+0x6c/0xc4) [ 47.723396] r7:801e1448 r6:000007b0 r5:80c02be0 r4:00000000 [ 47.729065] [<80994250>] (warn_slowpath_fmt) from [<801e1448>] (__ipipe_spin_unlock_debug+0x50/0x5c) [ 47.738206] r8:ffffffff r7:00000000 r6:ffff9d6c r5:bf54b4c0 r4:bd354580 [ 47.744917] [<801e13f8>] (__ipipe_spin_unlock_debug) from [<801a2d90>] (mod_timer+0x190/0x400) [ 47.753537] [<801a2c00>] (mod_timer) from [<7f01a5b8>] (e1000_msix_other+0xac/0xb8 [e1000e]) [ 47.761984] r10:80e748d4 r9:00000001 r8:81101d78 r7:00000137 r6:bd3549e4 r5:81000004 [ 47.769822] r4:bd354000 [ 47.772365] [<7f01a50c>] (e1000_msix_other [e1000e]) from [<801859b8>] (__handle_irq_event_percpu+0x64/0x240) [ 47.782289] r7:00000137 r6:00000000 r5:bd23e870 r4:bc09aa80 [ 47.787957] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] (handle_irq_event_percpu+0x3c/0x98) [ 47.797618] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c r6:bd23e870 r5:bd23e870 [ 47.805456] r4:bd23e800 [ 47.807999] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] (handle_irq_event+0x48/0x6c) [ 47.816878] r5:bd23e870 r4:bd23e800 [ 47.820463] [<80185c2c>] (handle_irq_event) from [<8018ba84>] (handle_edge_irq+0xb4/0x1f8) [ 47.828735] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 [ 47.834403] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] (generic_handle_irq+0x30/0x44) [ 47.842762] r9:00000001 r8:00000830 r7:00000000 r6:00000000 r5:be412e58 r4:00000003 [ 47.850513] [<801849a8>] (generic_handle_irq) from [<8057dca8>] (dw_handle_msi_irq+0x9c/0xf4) [ 47.859046] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] (dw_chained_msi_isr+0x34/0x80) [ 47.867579] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 r5:811119dc r4:bee36400 [ 47.875331] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] (__ipipe_dispatch_irq+0x154/0x228) [ 47.884297] r7:0000001a r6:00000001 r5:00000019 r4:00000000 [ 47.889965] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] (__ipipe_grab_irq+0x54/0xb4) [ 47.898585] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 r5:bf3b5ae0 r4:00000019 [ 47.906337] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0) [ 47.914437] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 [ 47.920105] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90) [ 47.927595] Exception stack(0x81101eb8 to 0x81101f00) [ 47.932657] 1ea0: 80000000 00000000 [ 47.940842] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68 81106ba8 811abf50 80bfbb3c [ 47.949027] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc 60070013 ffffffff [ 47.957214] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff r5:60070013 r4:801e26fc [ 47.964966] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] (arch_cpu_idle+0x98/0xb0) [ 47.973151] r5:00000000 r4:80e8fae0 [ 47.976735] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] (default_idle_call+0x44/0x50) [ 47.984833] r5:00000000 r4:81100000 [ 47.988419] [<809a49dc>] (default_idle_call) from [<8016059c>] (do_idle+0xd8/0x1e4) [ 47.996083] [<801604c4>] (do_idle) from [<8016097c>] (cpu_startup_entry+0x28/0x2c) [ 48.003661] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 r5:811b1000 r4:000000ce [ 48.011413] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] (rest_init+0x9c/0xbc) [ 48.019165] [<8099cbd0>] (rest_init) from [<80e00b44>] (arch_call_rest_init+0x18/0x1c) [ 48.027089] r5:811b1000 r4:80e748d4 [ 48.030675] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] (start_kernel+0x3e0/0x4a4) [ 48.039035] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) [ 48.044963] ---[ end trace cea0b6f9eb21f4eb ]--- [ 48.049596] ------------[ cut here ]------------ [ 48.054244] WARNING: CPU: 0 PID: 0 at kernel/irq/handle.c:152 __handle_irq_event_percpu+0x220/0x240 [ 48.063398] irq 311 handler e1000_msix_other+0x0/0xb8 [e1000e] enabled interrupts [ 48.070894] Modules linked in: xeno_gpio_mxc e1000e [ 48.075806] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.4.93-00202-g1070d76ae3f5-dirty #7 [ 48.085385] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) [ 48.091925] I-pipe domain: Linux [ 48.095164] Backtrace: [ 48.097644] [<80992f10>] (dump_backtrace) from [<8099328c>] (show_stack+0x20/0x24) [ 48.105232] r7:81238180 r6:00000000 r5:00000000 r4:811a66f0 [ 48.110915] [<8099326c>] (show_stack) from [<8099cac0>] (dump_stack+0xf4/0x128) [ 48.118251] [<8099c9cc>] (dump_stack) from [<8012ba1c>] (__warn+0xd0/0x108) [ 48.125229] r9:00000001 r8:00000009 r7:00000098 r6:80185b74 r5:00000009 r4:80bfd600 [ 48.132993] [<8012b94c>] (__warn) from [<809942e8>] (warn_slowpath_fmt+0x9c/0xc4) [ 48.140490] r7:80185b74 r6:00000098 r5:80bfd600 r4:80bfd5d8 [ 48.146176] [<80994250>] (warn_slowpath_fmt) from [<80185b74>] (__handle_irq_event_percpu+0x220/0x240) [ 48.155496] r8:81101d78 r7:00000137 r6:00000000 r5:00000001 r4:bc09aa80 [ 48.162216] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] (handle_irq_event_percpu+0x3c/0x98) [ 48.171885] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c r6:bd23e870 r5:bd23e870 [ 48.179724] r4:bd23e800 [ 48.182277] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] (handle_irq_event+0x48/0x6c) [ 48.191161] r5:bd23e870 r4:bd23e800 [ 48.194759] [<80185c2c>] (handle_irq_event) from [<8018ba84>] (handle_edge_irq+0xb4/0x1f8) [ 48.203037] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 [ 48.208714] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] (generic_handle_irq+0x30/0x44) [ 48.217080] r9:00000001 r8:00000830 r7:00000000 r6:00000000 r5:be412e58 r4:00000003 [ 48.224845] [<801849a8>] (generic_handle_irq) from [<8057dca8>] (dw_handle_msi_irq+0x9c/0xf4) [ 48.233388] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] (dw_chained_msi_isr+0x34/0x80) [ 48.241928] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 r5:811119dc r4:bee36400 [ 48.249698] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] (__ipipe_dispatch_irq+0x154/0x228) [ 48.258669] r7:0000001a r6:00000001 r5:00000019 r4:00000000 [ 48.264350] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] (__ipipe_grab_irq+0x54/0xb4) [ 48.272977] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 r5:bf3b5ae0 r4:00000019 [ 48.280738] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0) [ 48.288843] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 [ 48.294519] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90) [ 48.302015] Exception stack(0x81101eb8 to 0x81101f00) [ 48.307084] 1ea0: 80000000 00000000 [ 48.315279] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68 81106ba8 811abf50 80bfbb3c [ 48.323473] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc 60070013 ffffffff [ 48.331665] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff r5:60070013 r4:801e26fc [ 48.339431] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] (arch_cpu_idle+0x98/0xb0) [ 48.347619] r5:00000000 r4:80e8fae0 [ 48.351215] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] (default_idle_call+0x44/0x50) [ 48.359317] r5:00000000 r4:81100000 [ 48.362914] [<809a49dc>] (default_idle_call) from [<8016059c>] (do_idle+0xd8/0x1e4) [ 48.370588] [<801604c4>] (do_idle) from [<8016097c>] (cpu_startup_entry+0x28/0x2c) [ 48.378172] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 r5:811b1000 r4:000000ce [ 48.385936] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] (rest_init+0x9c/0xbc) [ 48.393699] [<8099cbd0>] (rest_init) from [<80e00b44>] (arch_call_rest_init+0x18/0x1c) [ 48.401627] r5:811b1000 r4:80e748d4 [ 48.405220] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] (start_kernel+0x3e0/0x4a4) [ 48.413585] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) [ 48.419518] ---[ end trace cea0b6f9eb21f4ec ]---
Quoted 8 lines
Quoted 1 line
Hi Steve,
After I get the jitter issue fixed up, I'd be happy to help. I think I
have a zynq board here with a pci slot that I can put a e1000e in. I'll start looking for the hardware after the weekend, pretty sure I have it here somewhere.-Greg
We can also always try to improve our test configuration in xenomai-images, may it be for QEMU or the BeagleBone Black that we currently have under CT [1]. But we will never be able to cover all configurable combinations, even all reasonable ones.
I think we currently have a quite fuzzy situation with the arm and arm64 branches, and I'm also trying to understand and tell apart some reasons. Maybe we could first of all focus on resolving build issues, then functional issues (BUGs or hanging tests) and finally on latency issue - unless anythings immediately looks related.
I will try to understand and possibly resolve the 5.4-qemu-armhf boot hang [2] today.
Jan
[1] https://source.denx.de/Xenomai/xenomai-images/-/pipelines/7134
[2] https://source.denx.de/Xenomai/xenomai-images/-/jobs/254475
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 324 lines · Jan Kiszka
Quoted 5 lines · Greg Gallagher via Xenomai
Quoted 3 lines · steve freyder
On 4/14/2021 4:50 PM, Greg Gallagher via Xenomai wrote:
On Wed, Apr 14, 2021 at 4:52 PM Thomas Petazzoni <
Quoted 7 lines · [email protected]> wrote:
Quoted 7 lines
On Wed, 14 Apr 2021 14:41:29 -0400
Greg Gallagher <[email protected]> <[email protected]> wrote:Ipipe 5.4 and xenomai 3.1 are compatible, this is my mistake, I’ll fix
up
Quoted 2 lines
Quoted 2 lines
and generate a new patch once the latency fix is done. FWIW, building straight from the ipipe-arm repo on the ipipe/5.4.y
branch
Quoted 19 lines
Quoted 19 lines
has been working for me.
I'm afraid the HEAD of ipipe/5.4.y as of commit
ffaf274ca4cc117c2dc3f9b2ee8ea6218b50995adoesn't build for me. I'm on this commit + I have prepared the kernel using Xenomai 3.1./scripts/prepare-kernel.sh--linux=/path/to/kernel + kernel configured withsama5_defconfig.And same build failure:
In file included from
kernel/cpu.c:23:0:./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’:./include/linux/stop_machine.h:150:2: error: implicit declaration of function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? [-Werror=implicit-function-declaration]
hard_irq_enable();
^~~~~~~~~~~~~~~
hard_irq_disableQuoted 8 lines
Quoted 8 lines
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineeringhttps://bootlin.comI'll dig into this tonight, I usually test with
multi_v7_defconfigandit
Quoted 5 lines
Quoted 5 lines
seems to build fine with ipipe 5.4 and Xenomai 3.1. I'll test with
sama5_defconfig.Thanks
Quoted 7 lines
Quoted 7 lines
Greg
Greg,
We are also having issues with ARM32 (armv7-a) with this build genre (5.4.107 + Xenomai 3.1 stable) and the e1000e driver. The build
completes
Quoted 1 line
Quoted 1 line
without compile/link errors, but when booting we're getting a kernel
stack
Quoted 2 lines
Quoted 2 lines
dump (upon an ifup of the e1000e interface) that's indicating a problem with enabling interrupts at a point where interrupts are not supposed
to be
Quoted 2 lines
Quoted 2 lines
enabled. We're not seeing a lot of changes to the e1000e tree since 4.14.85 (last release we know of where the driver was working
properly), so
Quoted 1 line
Quoted 1 line
we suspected it might be something in Linux or ipipe. We know that
e1000e
Quoted 6 lines
Quoted 6 lines
seems to work properly with kernel 5.4.107 (non-Xenomai/ipipe build).
I wonder, do you have access to an ARMV7 system that has an e1000e NIC? If so, I wonder could you add an e1000e driver to your modules build and see if you get the same stack trace we're getting? Below is the
original
Quoted 1 line
Quoted 1 line
post I did on this (on 03/15/2021). We suspect that e1000e doesn't fly
on
Quoted 22 lines
Quoted 22 lines
any armv7 5.4.107+Xenomai 3.1/stable build. Naturally we'll be happy to test any patches related to these issues.
Best regards,
Steve
------------------------------
Greetings Xenomai list,We are seeing the following stack trace when we 'ifup' the e1000e adapter. 4.19 exhibits same failure, 4.14.96 also fails but with a different stack trace. Last working version is 4.14.85.
Thanks in advance for any assist,
Steve
------------------------------------------------------------------------
Quoted 8 lines
Quoted 8 lines
[ 47.635779] ------------[ cut here ]------------ [ 47.637083] ip (658) used greatest stack depth: 3960 bytes left [ 47.640416] WARNING: CPU: 0 PID: 0 at kernel/ipipe/core.c:1968 __ipipe_spin_unlock_debug+0x50/0x5c [ 47.655297] Modules linked in: xeno_gpio_mxc e1000e [ 47.660198] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.93-00202-g1070d76ae3f5-dirty #7 [ 47.668386] Hardware name: Freescale i.MX6 Quad/DualLite (DeviceTree)
Quoted 11 lines
Quoted 11 lines
[ 47.674923] I-pipe domain: Linux [ 47.678159] Backtrace: [ 47.680620] [<80992f10>] (dump_backtrace) from [<8099328c>] (show_stack+0x20/0x24) [ 47.688199] r7:81238180 r6:00000080 r5:00000000 r4:811a66f0 [ 47.693867] [<8099326c>] (show_stack) from [<8099cac0>] (dump_stack+0xf4/0x128) [ 47.701184] [<8099c9cc>] (dump_stack) from [<8012ba1c>] (__warn+0xd0/0x108) [ 47.708154] r9:00000000 r8:00000009 r7:000007b0 r6:801e1448r5:00000009 r4:80c02be0
Quoted 8 lines
Quoted 8 lines
[ 47.715905] [<8012b94c>] (__warn) from [<809942b8>] (warn_slowpath_fmt+0x6c/0xc4) [ 47.723396] r7:801e1448 r6:000007b0 r5:80c02be0 r4:00000000 [ 47.729065] [<80994250>] (warn_slowpath_fmt) from [<801e1448>] (__ipipe_spin_unlock_debug+0x50/0x5c) [ 47.738206] r8:ffffffff r7:00000000 r6:ffff9d6c r5:bf54b4c0 r4:bd354580 [ 47.744917] [<801e13f8>] (__ipipe_spin_unlock_debug) from[<
801a2d90>]Quoted 7 lines
Quoted 7 lines
(
mod_timer+0x190/0x400)[ 47.753537] [<801a2c00>] (mod_timer) from [<7f01a5b8>] (e1000_msix_other+0xac/0xb8 [e1000e]) [ 47.761984] r10:80e748d4 r9:00000001 r8:81101d78 r7:00000137 r6:bd3549e4 r5:81000004 [ 47.769822] r4:bd354000 [ 47.772365] [<7f01a50c>] (e1000_msix_other [e1000e]) from[<
801859b8>]Quoted 3 lines
Quoted 3 lines
(
__handle_irq_event_percpu+0x64/0x240)[ 47.782289] r7:00000137 r6:00000000 r5:bd23e870 r4:bc09aa80 [ 47.787957] [<80185954>] (__handle_irq_event_percpu) from[<
80185bd0>]Quoted 27 lines
Quoted 27 lines
(
handle_irq_event_percpu+0x3c/0x98)[ 47.797618] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c r6:bd23e870 r5:bd23e870 [ 47.805456] r4:bd23e800 [ 47.807999] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] (handle_irq_event+0x48/0x6c) [ 47.816878] r5:bd23e870 r4:bd23e800 [ 47.820463] [<80185c2c>] (handle_irq_event) from [<8018ba84>] (handle_edge_irq+0xb4/0x1f8) [ 47.828735] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 [ 47.834403] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] (generic_handle_irq+0x30/0x44) [ 47.842762] r9:00000001 r8:00000830 r7:00000000 r6:00000000 r5:be412e58 r4:00000003 [ 47.850513] [<801849a8>] (generic_handle_irq) from [<8057dca8>] (dw_handle_msi_irq+0x9c/0xf4) [ 47.859046] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] (dw_chained_msi_isr+0x34/0x80) [ 47.867579] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 r5:811119dc r4:bee36400 [ 47.875331] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] (__ipipe_dispatch_irq+0x154/0x228) [ 47.884297] r7:0000001a r6:00000001 r5:00000019 r4:00000000 [ 47.889965] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] (__ipipe_grab_irq+0x54/0xb4) [ 47.898585] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8r5:bf3b5ae0 r4:00000019
Quoted 8 lines
Quoted 8 lines
[ 47.906337] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0) [ 47.914437] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 [ 47.920105] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90) [ 47.927595] Exception stack(0x81101eb8 to 0x81101f00) [ 47.932657] 1ea0: 80000000 00000000 [ 47.940842] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68
81106ba8Quoted 2 lines
Quoted 2 lines
811abf5080bfbb3c[ 47.949027] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8
801e26fcQuoted 20 lines
Quoted 20 lines
60070013 ffffffff
[ 47.957214] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff r5:60070013 r4:801e26fc [ 47.964966] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] (arch_cpu_idle+0x98/0xb0) [ 47.973151] r5:00000000 r4:80e8fae0 [ 47.976735] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] (default_idle_call+0x44/0x50) [ 47.984833] r5:00000000 r4:81100000 [ 47.988419] [<809a49dc>] (default_idle_call) from [<8016059c>] (do_idle+0xd8/0x1e4) [ 47.996083] [<801604c4>] (do_idle) from [<8016097c>] (cpu_startup_entry+0x28/0x2c) [ 48.003661] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 r5:811b1000 r4:000000ce [ 48.011413] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] (rest_init+0x9c/0xbc) [ 48.019165] [<8099cbd0>] (rest_init) from [<80e00b44>] (arch_call_rest_init+0x18/0x1c) [ 48.027089] r5:811b1000 r4:80e748d4Quoted 8 lines
Quoted 8 lines
[ 48.030675] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] (start_kernel+0x3e0/0x4a4) [ 48.039035] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) [ 48.044963] ---[ end trace cea0b6f9eb21f4eb ]--- [ 48.049596] ------------[ cut here ]------------ [ 48.054244] WARNING: CPU: 0 PID: 0 at kernel/irq/handle.c:152 __handle_irq_event_percpu+0x220/0x240 [ 48.063398] irq 311 handler e1000_msix_other+0x0/0xb8 [e1000e]enabled
Quoted 5 lines
Quoted 5 lines
interrupts
[ 48.070894] Modules linked in: xeno_gpio_mxc e1000e [ 48.075806] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.4.93-00202-g1070d76ae3f5-dirty #7 [ 48.085385] Hardware name: Freescale i.MX6 Quad/DualLite (DeviceTree)
Quoted 11 lines
Quoted 11 lines
[ 48.091925] I-pipe domain: Linux [ 48.095164] Backtrace: [ 48.097644] [<80992f10>] (dump_backtrace) from [<8099328c>] (show_stack+0x20/0x24) [ 48.105232] r7:81238180 r6:00000000 r5:00000000 r4:811a66f0 [ 48.110915] [<8099326c>] (show_stack) from [<8099cac0>] (dump_stack+0xf4/0x128) [ 48.118251] [<8099c9cc>] (dump_stack) from [<8012ba1c>] (__warn+0xd0/0x108) [ 48.125229] r9:00000001 r8:00000009 r7:00000098 r6:80185b74r5:00000009 r4:80bfd600
Quoted 8 lines
Quoted 8 lines
[ 48.132993] [<8012b94c>] (__warn) from [<809942e8>] (warn_slowpath_fmt+0x9c/0xc4) [ 48.140490] r7:80185b74 r6:00000098 r5:80bfd600 r4:80bfd5d8 [ 48.146176] [<80994250>] (warn_slowpath_fmt) from [<80185b74>] (__handle_irq_event_percpu+0x220/0x240) [ 48.155496] r8:81101d78 r7:00000137 r6:00000000 r5:00000001 r4:bc09aa80 [ 48.162216] [<80185954>] (__handle_irq_event_percpu) from[<
80185bd0>]Quoted 27 lines
Quoted 27 lines
(
handle_irq_event_percpu+0x3c/0x98)[ 48.171885] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c r6:bd23e870 r5:bd23e870 [ 48.179724] r4:bd23e800 [ 48.182277] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] (handle_irq_event+0x48/0x6c) [ 48.191161] r5:bd23e870 r4:bd23e800 [ 48.194759] [<80185c2c>] (handle_irq_event) from [<8018ba84>] (handle_edge_irq+0xb4/0x1f8) [ 48.203037] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 [ 48.208714] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] (generic_handle_irq+0x30/0x44) [ 48.217080] r9:00000001 r8:00000830 r7:00000000 r6:00000000 r5:be412e58 r4:00000003 [ 48.224845] [<801849a8>] (generic_handle_irq) from [<8057dca8>] (dw_handle_msi_irq+0x9c/0xf4) [ 48.233388] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] (dw_chained_msi_isr+0x34/0x80) [ 48.241928] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 r5:811119dc r4:bee36400 [ 48.249698] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] (__ipipe_dispatch_irq+0x154/0x228) [ 48.258669] r7:0000001a r6:00000001 r5:00000019 r4:00000000 [ 48.264350] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] (__ipipe_grab_irq+0x54/0xb4) [ 48.272977] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8r5:bf3b5ae0 r4:00000019
Quoted 8 lines
Quoted 8 lines
[ 48.280738] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0) [ 48.288843] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 [ 48.294519] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90) [ 48.302015] Exception stack(0x81101eb8 to 0x81101f00) [ 48.307084] 1ea0: 80000000 00000000 [ 48.315279] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68
81106ba8Quoted 2 lines
Quoted 2 lines
811abf5080bfbb3c[ 48.323473] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8
801e26fcQuoted 26 lines
Quoted 26 lines
60070013 ffffffff
[ 48.331665] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff r5:60070013 r4:801e26fc [ 48.339431] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] (arch_cpu_idle+0x98/0xb0) [ 48.347619] r5:00000000 r4:80e8fae0 [ 48.351215] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] (default_idle_call+0x44/0x50) [ 48.359317] r5:00000000 r4:81100000 [ 48.362914] [<809a49dc>] (default_idle_call) from [<8016059c>] (do_idle+0xd8/0x1e4) [ 48.370588] [<801604c4>] (do_idle) from [<8016097c>] (cpu_startup_entry+0x28/0x2c) [ 48.378172] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 r5:811b1000 r4:000000ce [ 48.385936] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] (rest_init+0x9c/0xbc) [ 48.393699] [<8099cbd0>] (rest_init) from [<80e00b44>] (arch_call_rest_init+0x18/0x1c) [ 48.401627] r5:811b1000 r4:80e748d4 [ 48.405220] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] (start_kernel+0x3e0/0x4a4) [ 48.413585] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) [ 48.419518] ---[ end trace cea0b6f9eb21f4ec ]---Quoted 2 lines
Quoted 1 line
Hi Steve,
After I get the jitter issue fixed up, I'd be happy to help. I
think I
Quoted 6 lines
have a zynq board here with a pci slot that I can put a e1000e in. I'll start looking for the hardware after the weekend, pretty sure I have it here somewhere.
-Greg
We can also always try to improve our test configuration in xenomai-images, may it be for QEMU or the BeagleBone Black that we currently have under CT [1]. But we will never be able to cover all configurable combinations, even all reasonable ones.
I think we currently have a quite fuzzy situation with the arm and arm64 branches, and I'm also trying to understand and tell apart some reasons. Maybe we could first of all focus on resolving build issues, then functional issues (BUGs or hanging tests) and finally on latency issue - unless anythings immediately looks related.
I will try to understand and possibly resolve the 5.4-qemu-armhf boot hang [2] today.
Quoted 8 lines
Jan
[1] https://source.denx.de/Xenomai/xenomai-images/-/pipelines/7134
[2] https://source.denx.de/Xenomai/xenomai-images/-/jobs/254475--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
Good point, I will fix 4.19.-cip with the cow fix today.
-Greg
Quoted 2 lines
Quoted 357 lines · Greg Gallagher
On Thu, Apr 15, 2021 at 2:59 AM Jan Kiszka <[email protected] <mailto:[email protected]>> wrote:
On 15.04.21 07:35, Greg Gallagher via Xenomai wrote: > On Wed, Apr 14, 2021 at 7:43 PM steve freyder <[email protected] <mailto:[email protected]>> wrote: > >> On 4/14/2021 4:50 PM, Greg Gallagher via Xenomai wrote: >> >> On Wed, Apr 14, 2021 at 4:52 PM Thomas Petazzoni <[email protected] <mailto:[email protected]>> wrote: >> >> >> On Wed, 14 Apr 2021 14:41:29 -0400 >> Greg Gallagher <[email protected] <mailto:[email protected]>> <[email protected] <mailto:[email protected]>> wrote: >> >> >> Ipipe 5.4 and xenomai 3.1 are compatible, this is my mistake, I’ll fix up >> and generate a new patch once the latency fix is done. >> FWIW, building straight from the ipipe-arm repo on the ipipe/5.4.y branch >> has been working for me. >> >> I'm afraid the HEAD of ipipe/5.4.y as of commit >> ffaf274ca4cc117c2dc3f9b2ee8ea6218b50995a doesn't build for me. I'm on >> this commit + I have prepared the kernel using Xenomai 3.1 >> ./scripts/prepare-kernel.sh --linux=/path/to/kernel + kernel configured >> with sama5_defconfig. >> >> And same build failure: >> >> In file included from kernel/cpu.c:23:0: >> ./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’: >> ./include/linux/stop_machine.h:150:2: error: implicit declaration of >> function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? >> [-Werror=implicit-function-declaration] >> hard_irq_enable(); >> ^~~~~~~~~~~~~~~ >> hard_irq_disable >> >> Best regards, >> >> Thomas >> -- >> Thomas Petazzoni, co-owner and CEO, Bootlin >> Embedded Linux and Kernel engineeringhttps://bootlin.com <http://bootlin.com> >> >> I'll dig into this tonight, I usually test with multi_v7_defconfig and it >> seems to build fine with ipipe 5.4 and Xenomai 3.1. I'll test with >> sama5_defconfig. >> >> Thanks >> >> Greg >> >> Greg, >> >> >> We are also having issues with ARM32 (armv7-a) with this build genre >> (5.4.107 + Xenomai 3.1 stable) and the e1000e driver. The build completes >> without compile/link errors, but when booting we're getting a kernel stack >> dump (upon an ifup of the e1000e interface) that's indicating a problem >> with enabling interrupts at a point where interrupts are not supposed to be >> enabled. We're not seeing a lot of changes to the e1000e tree since >> 4.14.85 (last release we know of where the driver was working properly), so >> we suspected it might be something in Linux or ipipe. We know that e1000e >> seems to work properly with kernel 5.4.107 (non-Xenomai/ipipe build). >> >> >> I wonder, do you have access to an ARMV7 system that has an e1000e NIC? >> If so, I wonder could you add an e1000e driver to your modules build and >> see if you get the same stack trace we're getting? Below is the original >> post I did on this (on 03/15/2021). We suspect that e1000e doesn't fly on >> any armv7 5.4.107+Xenomai 3.1/stable build. Naturally we'll be happy to >> test any patches related to these issues. >> >> Best regards, >> >> Steve >> >> >> ------------------------------ >> Greetings Xenomai list, >> >> >> We are seeing the following stack trace when we 'ifup' the e1000e >> adapter. 4.19 exhibits same failure, 4.14.96 also fails but with a >> different stack trace. Last working version is 4.14.85. >> >> Thanks in advance for any assist, >> >> Steve >> >> ------------------------------------------------------------------------ >> >> [ 47.635779] ------------[ cut here ]------------ >> [ 47.637083] ip (658) used greatest stack depth: 3960 bytes left >> [ 47.640416] WARNING: CPU: 0 PID: 0 at kernel/ipipe/core.c:1968 >> __ipipe_spin_unlock_debug+0x50/0x5c >> [ 47.655297] Modules linked in: xeno_gpio_mxc e1000e >> [ 47.660198] CPU: 0 PID: 0 Comm: swapper/0 Not tainted >> 5.4.93-00202-g1070d76ae3f5-dirty #7 >> [ 47.668386] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >> [ 47.674923] I-pipe domain: Linux >> [ 47.678159] Backtrace: >> [ 47.680620] [<80992f10>] (dump_backtrace) from [<8099328c>] >> (show_stack+0x20/0x24) >> [ 47.688199] r7:81238180 r6:00000080 r5:00000000 r4:811a66f0 >> [ 47.693867] [<8099326c>] (show_stack) from [<8099cac0>] >> (dump_stack+0xf4/0x128) >> [ 47.701184] [<8099c9cc>] (dump_stack) from [<8012ba1c>] >> (__warn+0xd0/0x108) >> [ 47.708154] r9:00000000 r8:00000009 r7:000007b0 r6:801e1448 >> r5:00000009 r4:80c02be0 >> [ 47.715905] [<8012b94c>] (__warn) from [<809942b8>] >> (warn_slowpath_fmt+0x6c/0xc4) >> [ 47.723396] r7:801e1448 r6:000007b0 r5:80c02be0 r4:00000000 >> [ 47.729065] [<80994250>] (warn_slowpath_fmt) from [<801e1448>] >> (__ipipe_spin_unlock_debug+0x50/0x5c) >> [ 47.738206] r8:ffffffff r7:00000000 r6:ffff9d6c r5:bf54b4c0 >> r4:bd354580 >> [ 47.744917] [<801e13f8>] (__ipipe_spin_unlock_debug) from [<801a2d90>] >> (mod_timer+0x190/0x400) >> [ 47.753537] [<801a2c00>] (mod_timer) from [<7f01a5b8>] >> (e1000_msix_other+0xac/0xb8 [e1000e]) >> [ 47.761984] r10:80e748d4 r9:00000001 r8:81101d78 r7:00000137 >> r6:bd3549e4 r5:81000004 >> [ 47.769822] r4:bd354000 >> [ 47.772365] [<7f01a50c>] (e1000_msix_other [e1000e]) from [<801859b8>] >> (__handle_irq_event_percpu+0x64/0x240) >> [ 47.782289] r7:00000137 r6:00000000 r5:bd23e870 r4:bc09aa80 >> [ 47.787957] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] >> (handle_irq_event_percpu+0x3c/0x98) >> [ 47.797618] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c >> r6:bd23e870 r5:bd23e870 >> [ 47.805456] r4:bd23e800 >> [ 47.807999] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] >> (handle_irq_event+0x48/0x6c) >> [ 47.816878] r5:bd23e870 r4:bd23e800 >> [ 47.820463] [<80185c2c>] (handle_irq_event) from [<8018ba84>] >> (handle_edge_irq+0xb4/0x1f8) >> [ 47.828735] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 >> [ 47.834403] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] >> (generic_handle_irq+0x30/0x44) >> [ 47.842762] r9:00000001 r8:00000830 r7:00000000 r6:00000000 >> r5:be412e58 r4:00000003 >> [ 47.850513] [<801849a8>] (generic_handle_irq) from [<8057dca8>] >> (dw_handle_msi_irq+0x9c/0xf4) >> [ 47.859046] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] >> (dw_chained_msi_isr+0x34/0x80) >> [ 47.867579] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 >> r5:811119dc r4:bee36400 >> [ 47.875331] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] >> (__ipipe_dispatch_irq+0x154/0x228) >> [ 47.884297] r7:0000001a r6:00000001 r5:00000019 r4:00000000 >> [ 47.889965] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] >> (__ipipe_grab_irq+0x54/0xb4) >> [ 47.898585] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 >> r5:bf3b5ae0 r4:00000019 >> [ 47.906337] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] >> (gic_handle_irq+0x58/0xb0) >> [ 47.914437] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 >> [ 47.920105] [<80102a34>] (gic_handle_irq) from [<80101c64>] >> (__irq_svc+0x84/0x90) >> [ 47.927595] Exception stack(0x81101eb8 to 0x81101f00) >> [ 47.932657] 1ea0: 80000000 00000000 >> [ 47.940842] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68 81106ba8 >> 811abf50 80bfbb3c >> [ 47.949027] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc >> 60070013 ffffffff >> [ 47.957214] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff >> r5:60070013 r4:801e26fc >> [ 47.964966] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] >> (arch_cpu_idle+0x98/0xb0) >> [ 47.973151] r5:00000000 r4:80e8fae0 >> [ 47.976735] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] >> (default_idle_call+0x44/0x50) >> [ 47.984833] r5:00000000 r4:81100000 >> [ 47.988419] [<809a49dc>] (default_idle_call) from [<8016059c>] >> (do_idle+0xd8/0x1e4) >> [ 47.996083] [<801604c4>] (do_idle) from [<8016097c>] >> (cpu_startup_entry+0x28/0x2c) >> [ 48.003661] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 >> r5:811b1000 r4:000000ce >> [ 48.011413] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] >> (rest_init+0x9c/0xbc) >> [ 48.019165] [<8099cbd0>] (rest_init) from [<80e00b44>] >> (arch_call_rest_init+0x18/0x1c) >> [ 48.027089] r5:811b1000 r4:80e748d4 >> [ 48.030675] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] >> (start_kernel+0x3e0/0x4a4) >> [ 48.039035] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) >> [ 48.044963] ---[ end trace cea0b6f9eb21f4eb ]--- >> [ 48.049596] ------------[ cut here ]------------ >> [ 48.054244] WARNING: CPU: 0 PID: 0 at kernel/irq/handle.c:152 >> __handle_irq_event_percpu+0x220/0x240 >> [ 48.063398] irq 311 handler e1000_msix_other+0x0/0xb8 [e1000e] enabled >> interrupts >> [ 48.070894] Modules linked in: xeno_gpio_mxc e1000e >> [ 48.075806] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W >> 5.4.93-00202-g1070d76ae3f5-dirty #7 >> [ 48.085385] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >> [ 48.091925] I-pipe domain: Linux >> [ 48.095164] Backtrace: >> [ 48.097644] [<80992f10>] (dump_backtrace) from [<8099328c>] >> (show_stack+0x20/0x24) >> [ 48.105232] r7:81238180 r6:00000000 r5:00000000 r4:811a66f0 >> [ 48.110915] [<8099326c>] (show_stack) from [<8099cac0>] >> (dump_stack+0xf4/0x128) >> [ 48.118251] [<8099c9cc>] (dump_stack) from [<8012ba1c>] >> (__warn+0xd0/0x108) >> [ 48.125229] r9:00000001 r8:00000009 r7:00000098 r6:80185b74 >> r5:00000009 r4:80bfd600 >> [ 48.132993] [<8012b94c>] (__warn) from [<809942e8>] >> (warn_slowpath_fmt+0x9c/0xc4) >> [ 48.140490] r7:80185b74 r6:00000098 r5:80bfd600 r4:80bfd5d8 >> [ 48.146176] [<80994250>] (warn_slowpath_fmt) from [<80185b74>] >> (__handle_irq_event_percpu+0x220/0x240) >> [ 48.155496] r8:81101d78 r7:00000137 r6:00000000 r5:00000001 >> r4:bc09aa80 >> [ 48.162216] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] >> (handle_irq_event_percpu+0x3c/0x98) >> [ 48.171885] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c >> r6:bd23e870 r5:bd23e870 >> [ 48.179724] r4:bd23e800 >> [ 48.182277] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] >> (handle_irq_event+0x48/0x6c) >> [ 48.191161] r5:bd23e870 r4:bd23e800 >> [ 48.194759] [<80185c2c>] (handle_irq_event) from [<8018ba84>] >> (handle_edge_irq+0xb4/0x1f8) >> [ 48.203037] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 >> [ 48.208714] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] >> (generic_handle_irq+0x30/0x44) >> [ 48.217080] r9:00000001 r8:00000830 r7:00000000 r6:00000000 >> r5:be412e58 r4:00000003 >> [ 48.224845] [<801849a8>] (generic_handle_irq) from [<8057dca8>] >> (dw_handle_msi_irq+0x9c/0xf4) >> [ 48.233388] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] >> (dw_chained_msi_isr+0x34/0x80) >> [ 48.241928] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 >> r5:811119dc r4:bee36400 >> [ 48.249698] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] >> (__ipipe_dispatch_irq+0x154/0x228) >> [ 48.258669] r7:0000001a r6:00000001 r5:00000019 r4:00000000 >> [ 48.264350] [<801e2c7c>] (__ipipe_dispatch_irq) from [<801028dc>] >> (__ipipe_grab_irq+0x54/0xb4) >> [ 48.272977] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 >> r5:bf3b5ae0 r4:00000019 >> [ 48.280738] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] >> (gic_handle_irq+0x58/0xb0) >> [ 48.288843] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 >> [ 48.294519] [<80102a34>] (gic_handle_irq) from [<80101c64>] >> (__irq_svc+0x84/0x90) >> [ 48.302015] Exception stack(0x81101eb8 to 0x81101f00) >> [ 48.307084] 1ea0: 80000000 00000000 >> [ 48.315279] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b68 81106ba8 >> 811abf50 80bfbb3c >> [ 48.323473] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc >> 60070013 ffffffff >> [ 48.331665] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff >> r5:60070013 r4:801e26fc >> [ 48.339431] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] >> (arch_cpu_idle+0x98/0xb0) >> [ 48.347619] r5:00000000 r4:80e8fae0 >> [ 48.351215] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] >> (default_idle_call+0x44/0x50) >> [ 48.359317] r5:00000000 r4:81100000 >> [ 48.362914] [<809a49dc>] (default_idle_call) from [<8016059c>] >> (do_idle+0xd8/0x1e4) >> [ 48.370588] [<801604c4>] (do_idle) from [<8016097c>] >> (cpu_startup_entry+0x28/0x2c) >> [ 48.378172] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 >> r5:811b1000 r4:000000ce >> [ 48.385936] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] >> (rest_init+0x9c/0xbc) >> [ 48.393699] [<8099cbd0>] (rest_init) from [<80e00b44>] >> (arch_call_rest_init+0x18/0x1c) >> [ 48.401627] r5:811b1000 r4:80e748d4 >> [ 48.405220] [<80e00b2c>] (arch_call_rest_init) from [<80e00fa0>] >> (start_kernel+0x3e0/0x4a4) >> [ 48.413585] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) >> [ 48.419518] ---[ end trace cea0b6f9eb21f4ec ]--- >> >> >> Hi Steve, > After I get the jitter issue fixed up, I'd be happy to help. I think I > have a zynq board here with a pci slot that I can put a e1000e in. I'll > start looking for the hardware after the weekend, pretty sure I have it > here somewhere. > > -Greg > We can also always try to improve our test configuration in xenomai-images, may it be for QEMU or the BeagleBone Black that we currently have under CT [1]. But we will never be able to cover all configurable combinations, even all reasonable ones. I think we currently have a quite fuzzy situation with the arm and arm64 branches, and I'm also trying to understand and tell apart some reasons. Maybe we could first of all focus on resolving build issues, then functional issues (BUGs or hanging tests) and finally on latency issue - unless anythings immediately looks related. I will try to understand and possibly resolve the 5.4-qemu-armhf boot hang [2] today. Jan [1] https://source.denx.de/Xenomai/xenomai-images/-/pipelines/7134 <https://source.denx.de/Xenomai/xenomai-images/-/pipelines/7134> [2] https://source.denx.de/Xenomai/xenomai-images/-/jobs/254475 <https://source.denx.de/Xenomai/xenomai-images/-/jobs/254475> -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 2 lines
Good point, I will fix 4.19.-cip with the cow fix today.
That may help unless you have the change locally already:
https://source.denx.de/Xenomai/xenomai-images/-/commit/8858fed7af734d2cde9e127baef879fd98c68524
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 379 lines · Jan Kiszka
Quoted 23 lines · Greg Gallagher
On Thu, Apr 15, 2021 at 2:59 AM Jan Kiszka <[email protected] <mailto:[email protected]>> wrote:
On 15.04.21 07:35, Greg Gallagher via Xenomai wrote: > On Wed, Apr 14, 2021 at 7:43 PM steve freyder <[email protected] <mailto:[email protected]>> wrote: > >> On 4/14/2021 4:50 PM, Greg Gallagher via Xenomai wrote: >> >> On Wed, Apr 14, 2021 at 4:52 PM Thomas Petazzoni <[email protected] <mailto:[email protected]>> wrote: >> >> >> On Wed, 14 Apr 2021 14:41:29 -0400 >> Greg Gallagher <[email protected] <mailto:[email protected]>> <[email protected] <mailto:[email protected]>> wrote: >> >> >> Ipipe 5.4 and xenomai 3.1 are compatible, this is my mistake,Quoted 8 lines
I’ll fix up >> and generate a new patch once the latency fix is done. >> FWIW, building straight from the ipipe-arm repo on the ipipe/5.4.y branch >> has been working for me. >> >> I'm afraid the HEAD of ipipe/5.4.y as of commit >> ffaf274ca4cc117c2dc3f9b2ee8ea6218b50995a doesn't build for me.I'm on
Quoted 11 lines
Quoted 2 lines
Quoted 2 lines
this commit + I have prepared the kernel using Xenomai 3.1
./scripts/prepare-kernel.sh--linux=/path/to/kernel + kernelconfigured
>> withsama5_defconfig.
>>
>> And same build failure:
>>
>> In file included fromkernel/cpu.c:23:0:
>>./include/linux/stop_machine.h: In function ‘stop_machine_cpuslocked’:
>>./include/linux/stop_machine.h:150:2: error: implicit declarationof
Quoted 12 lines
Quoted 6 lines
Quoted 6 lines
function ‘hard_irq_enable’; did you mean ‘hard_irq_disable’? [-Werror=implicit-function-declaration]
hard_irq_enable();
^~~~~~~~~~~~~~~
hard_irq_disableQuoted 6 lines
Quoted 6 lines
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineeringhttps://bootlin.comQuoted 5 lines
<http://bootlin.com>
>>
>> I'll dig into this tonight, I usually test withmulti_v7_defconfigand it
>> seems to build fine with ipipe 5.4 and Xenomai 3.1. I'll testwith
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
sama5_defconfig.Thanks
Greg
Greg,
We are also having issues with ARM32 (armv7-a) with this build
genre
Quoted 9 lines
Quoted 1 line
Quoted 1 line
(5.4.107 + Xenomai 3.1 stable) and the e1000e driver. The build
completes
>> without compile/link errors, but when booting we're getting a kernel stack
>> dump (upon an ifup of the e1000e interface) that's indicating a problem
>> with enabling interrupts at a point where interrupts are not supposed to be
>> enabled. We're not seeing a lot of changes to the e1000e treesince
Quoted 5 lines
Quoted 1 line
Quoted 1 line
4.14.85 (last release we know of where the driver was working
properly), so
>> we suspected it might be something in Linux or ipipe. We know that e1000e
>> seems to work properly with kernel 5.4.107 (non-Xenomai/ipipebuild).
Quoted 17 lines
Quoted 3 lines
Quoted 3 lines
I wonder, do you have access to an ARMV7 system that has an
e1000e NIC? >> If so, I wonder could you add an e1000e driver to your modules build and >> see if you get the same stack trace we're getting? Below is the original >> post I did on this (on 03/15/2021). We suspect that e1000e doesn't fly on >> any armv7 5.4.107+Xenomai 3.1/stable build. Naturally we'll be happy to >> test any patches related to these issues. >> >> Best regards, >> >> SteveQuoted 8 lines
>> >> >> ------------------------------ >> Greetings Xenomai list, >> >> >> We are seeing the following stack trace when we 'ifup' the e1000e >> adapter. 4.19 exhibits same failure, 4.14.96 also fails but witha
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
different stack trace. Last working version is 4.14.85.
Thanks in advance for any assist,
Steve
------------------------------------------------------------------------
Quoted 59 lines
Quoted 9 lines
Quoted 9 lines
[ 47.635779] ------------[ cut here ]------------ [ 47.637083] ip (658) used greatest stack depth: 3960 bytes left [ 47.640416] WARNING: CPU: 0 PID: 0 at kernel/ipipe/core.c:1968 __ipipe_spin_unlock_debug+0x50/0x5c [ 47.655297] Modules linked in: xeno_gpio_mxc e1000e [ 47.660198] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.93-00202-g1070d76ae3f5-dirty #7 [ 47.668386] Hardware name: Freescale i.MX6 Quad/DualLite(Device Tree) >> [ 47.674923] I-pipe domain: Linux >> [ 47.678159] Backtrace: >> [ 47.680620] [<80992f10>] (dump_backtrace) from [<8099328c>] >> (show_stack+0x20/0x24) >> [ 47.688199] r7:81238180 r6:00000080 r5:00000000 r4:811a66f0 >> [ 47.693867] [<8099326c>] (show_stack) from [<8099cac0>] >> (dump_stack+0xf4/0x128) >> [ 47.701184] [<8099c9cc>] (dump_stack) from [<8012ba1c>] >> (__warn+0xd0/0x108) >> [ 47.708154] r9:00000000 r8:00000009 r7:000007b0 r6:801e1448 >> r5:00000009 r4:80c02be0 >> [ 47.715905] [<8012b94c>] (__warn) from [<809942b8>] >> (warn_slowpath_fmt+0x6c/0xc4) >> [ 47.723396] r7:801e1448 r6:000007b0 r5:80c02be0 r4:00000000 >> [ 47.729065] [<80994250>] (warn_slowpath_fmt) from [<801e1448>] >> (__ipipe_spin_unlock_debug+0x50/0x5c) >> [ 47.738206] r8:ffffffff r7:00000000 r6:ffff9d6c r5:bf54b4c0 >> r4:bd354580 >> [ 47.744917] [<801e13f8>] (__ipipe_spin_unlock_debug) from [<801a2d90>] >> (mod_timer+0x190/0x400) >> [ 47.753537] [<801a2c00>] (mod_timer) from [<7f01a5b8>] >> (e1000_msix_other+0xac/0xb8 [e1000e]) >> [ 47.761984] r10:80e748d4 r9:00000001 r8:81101d78 r7:00000137 >> r6:bd3549e4 r5:81000004 >> [ 47.769822] r4:bd354000 >> [ 47.772365] [<7f01a50c>] (e1000_msix_other [e1000e]) from [<801859b8>] >> (__handle_irq_event_percpu+0x64/0x240) >> [ 47.782289] r7:00000137 r6:00000000 r5:bd23e870 r4:bc09aa80 >> [ 47.787957] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] >> (handle_irq_event_percpu+0x3c/0x98) >> [ 47.797618] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c >> r6:bd23e870 r5:bd23e870 >> [ 47.805456] r4:bd23e800 >> [ 47.807999] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] >> (handle_irq_event+0x48/0x6c) >> [ 47.816878] r5:bd23e870 r4:bd23e800 >> [ 47.820463] [<80185c2c>] (handle_irq_event) from [<8018ba84>] >> (handle_edge_irq+0xb4/0x1f8) >> [ 47.828735] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 >> [ 47.834403] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] >> (generic_handle_irq+0x30/0x44) >> [ 47.842762] r9:00000001 r8:00000830 r7:00000000 r6:00000000 >> r5:be412e58 r4:00000003 >> [ 47.850513] [<801849a8>] (generic_handle_irq) from [<8057dca8>] >> (dw_handle_msi_irq+0x9c/0xf4)Quoted 8 lines
>> [ 47.859046] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] >> (dw_chained_msi_isr+0x34/0x80) >> [ 47.867579] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 >> r5:811119dc r4:bee36400 >> [ 47.875331] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] >> (__ipipe_dispatch_irq+0x154/0x228) >> [ 47.884297] r7:0000001a r6:00000001 r5:00000019 r4:00000000 >> [ 47.889965] [<801e2c7c>] (__ipipe_dispatch_irq) from[<
801028dc>]Quoted 28 lines
Quoted 11 lines
Quoted 11 lines
(
__ipipe_grab_irq+0x54/0xb4)[ 47.898585] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 r5:bf3b5ae0 r4:00000019 [ 47.906337] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0) [ 47.914437] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 [ 47.920105] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90) [ 47.927595] Exception stack(0x81101eb8 to 0x81101f00) [ 47.932657] 1ea0: 80000000 00000000 [ 47.940842] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b6881106ba8 >> 811abf50 80bfbb3c >> [ 47.949027] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc >> 60070013 ffffffff >> [ 47.957214] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff >> r5:60070013 r4:801e26fc >> [ 47.964966] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] >> (arch_cpu_idle+0x98/0xb0) >> [ 47.973151] r5:00000000 r4:80e8fae0 >> [ 47.976735] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] >> (default_idle_call+0x44/0x50) >> [ 47.984833] r5:00000000 r4:81100000 >> [ 47.988419] [<809a49dc>] (default_idle_call) from [<8016059c>] >> (do_idle+0xd8/0x1e4) >> [ 47.996083] [<801604c4>] (do_idle) from [<8016097c>] >> (cpu_startup_entry+0x28/0x2c)Quoted 8 lines
>> [ 48.003661] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 >> r5:811b1000 r4:000000ce >> [ 48.011413] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] >> (rest_init+0x9c/0xbc) >> [ 48.019165] [<8099cbd0>] (rest_init) from [<80e00b44>] >> (arch_call_rest_init+0x18/0x1c) >> [ 48.027089] r5:811b1000 r4:80e748d4 >> [ 48.030675] [<80e00b2c>] (arch_call_rest_init) from[<
80e00fa0>]Quoted 51 lines
Quoted 7 lines
Quoted 7 lines
(
start_kernel+0x3e0/0x4a4)[ 48.039035] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) [ 48.044963] ---[ end trace cea0b6f9eb21f4eb ]--- [ 48.049596] ------------[ cut here ]------------ [ 48.054244] WARNING: CPU: 0 PID: 0 at kernel/irq/handle.c:152 __handle_irq_event_percpu+0x220/0x240 [ 48.063398] irq 311 handler e1000_msix_other+0x0/0xb8 [e1000e]enabled >> interrupts >> [ 48.070894] Modules linked in: xeno_gpio_mxc e1000e >> [ 48.075806] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W >> 5.4.93-00202-g1070d76ae3f5-dirty #7 >> [ 48.085385] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >> [ 48.091925] I-pipe domain: Linux >> [ 48.095164] Backtrace: >> [ 48.097644] [<80992f10>] (dump_backtrace) from [<8099328c>] >> (show_stack+0x20/0x24) >> [ 48.105232] r7:81238180 r6:00000000 r5:00000000 r4:811a66f0 >> [ 48.110915] [<8099326c>] (show_stack) from [<8099cac0>] >> (dump_stack+0xf4/0x128) >> [ 48.118251] [<8099c9cc>] (dump_stack) from [<8012ba1c>] >> (__warn+0xd0/0x108) >> [ 48.125229] r9:00000001 r8:00000009 r7:00000098 r6:80185b74 >> r5:00000009 r4:80bfd600 >> [ 48.132993] [<8012b94c>] (__warn) from [<809942e8>] >> (warn_slowpath_fmt+0x9c/0xc4) >> [ 48.140490] r7:80185b74 r6:00000098 r5:80bfd600 r4:80bfd5d8 >> [ 48.146176] [<80994250>] (warn_slowpath_fmt) from [<80185b74>] >> (__handle_irq_event_percpu+0x220/0x240) >> [ 48.155496] r8:81101d78 r7:00000137 r6:00000000 r5:00000001 >> r4:bc09aa80 >> [ 48.162216] [<80185954>] (__handle_irq_event_percpu) from [<80185bd0>] >> (handle_irq_event_percpu+0x3c/0x98) >> [ 48.171885] r10:80e748d4 r9:00000001 r8:81106fe8 r7:c0faf65c >> r6:bd23e870 r5:bd23e870 >> [ 48.179724] r4:bd23e800 >> [ 48.182277] [<80185b94>] (handle_irq_event_percpu) from [<80185c74>] >> (handle_irq_event+0x48/0x6c) >> [ 48.191161] r5:bd23e870 r4:bd23e800 >> [ 48.194759] [<80185c2c>] (handle_irq_event) from [<8018ba84>] >> (handle_edge_irq+0xb4/0x1f8) >> [ 48.203037] r7:c0faf65c r6:80e8a410 r5:bd23e870 r4:bd23e800 >> [ 48.208714] [<8018b9d0>] (handle_edge_irq) from [<801849d8>] >> (generic_handle_irq+0x30/0x44) >> [ 48.217080] r9:00000001 r8:00000830 r7:00000000 r6:00000000 >> r5:be412e58 r4:00000003 >> [ 48.224845] [<801849a8>] (generic_handle_irq) from [<8057dca8>] >> (dw_handle_msi_irq+0x9c/0xf4)Quoted 8 lines
>> [ 48.233388] [<8057dc0c>] (dw_handle_msi_irq) from [<8057dd34>] >> (dw_chained_msi_isr+0x34/0x80) >> [ 48.241928] r9:8116cad4 r8:8111e8a8 r7:0000001a r6:bee36414 >> r5:811119dc r4:bee36400 >> [ 48.249698] [<8057dd00>] (dw_chained_msi_isr) from [<801e2dd0>] >> (__ipipe_dispatch_irq+0x154/0x228) >> [ 48.258669] r7:0000001a r6:00000001 r5:00000019 r4:00000000 >> [ 48.264350] [<801e2c7c>] (__ipipe_dispatch_irq) from[<
801028dc>]Quoted 28 lines
Quoted 11 lines
Quoted 11 lines
(
__ipipe_grab_irq+0x54/0xb4)[ 48.272977] r9:8116cad4 r8:f4000100 r7:bf3b7ae0 r6:81101eb8 r5:bf3b5ae0 r4:00000019 [ 48.280738] [<80102888>] (__ipipe_grab_irq) from [<80102a8c>] (gic_handle_irq+0x58/0xb0) [ 48.288843] r7:811072f8 r6:000003ff r5:f400010c r4:81101eb8 [ 48.294519] [<80102a34>] (gic_handle_irq) from [<80101c64>] (__irq_svc+0x84/0x90) [ 48.302015] Exception stack(0x81101eb8 to 0x81101f00) [ 48.307084] 1ea0: 80000000 00000000 [ 48.315279] 1ec0: bf3b5ae0 00000000 80e8fae0 00000000 81106b6881106ba8 >> 811abf50 80bfbb3c >> [ 48.323473] 1ee0: 80e748d4 81101f1c 81101f08 81101f08 801e26f8 801e26fc >> 60070013 ffffffff >> [ 48.331665] r9:81100000 r8:811abf50 r7:81101eec r6:ffffffff >> r5:60070013 r4:801e26fc >> [ 48.339431] [<801e269c>] (ipipe_unstall_root) from [<8010a2d8>] >> (arch_cpu_idle+0x98/0xb0) >> [ 48.347619] r5:00000000 r4:80e8fae0 >> [ 48.351215] [<8010a240>] (arch_cpu_idle) from [<809a4a20>] >> (default_idle_call+0x44/0x50) >> [ 48.359317] r5:00000000 r4:81100000 >> [ 48.362914] [<809a49dc>] (default_idle_call) from [<8016059c>] >> (do_idle+0xd8/0x1e4) >> [ 48.370588] [<801604c4>] (do_idle) from [<8016097c>] >> (cpu_startup_entry+0x28/0x2c)Quoted 8 lines
>> [ 48.378172] r9:00000001 r8:811b1000 r7:00000000 r6:81106b40 >> r5:811b1000 r4:000000ce >> [ 48.385936] [<80160954>] (cpu_startup_entry) from [<8099cc6c>] >> (rest_init+0x9c/0xbc) >> [ 48.393699] [<8099cbd0>] (rest_init) from [<80e00b44>] >> (arch_call_rest_init+0x18/0x1c) >> [ 48.401627] r5:811b1000 r4:80e748d4 >> [ 48.405220] [<80e00b2c>] (arch_call_rest_init) from[<
80e00fa0>]Quoted 17 lines
Quoted 7 lines
Quoted 6 lines
(
start_kernel+0x3e0/0x4a4)[ 48.413585] [<80e00bc0>] (start_kernel) from [<00000000>] (0x0) [ 48.419518] ---[ end trace cea0b6f9eb21f4ec ]---Hi Steve,
After I get the jitter issue fixed up, I'd be happy to help.
I think I
> have a zynq board here with a pci slot that I can put a e1000e in. I'll
> start looking for the hardware after the weekend, pretty sure I have it
> here somewhere.
>
> -Greg
>Quoted 6 lines
We can also always try to improve our test configuration in xenomai-images, may it be for QEMU or the BeagleBone Black that we currently have under CT [1]. But we will never be able to cover all configurable combinations, even all reasonable ones.
I think we currently have a quite fuzzy situation with the arm and
arm64
Quoted 1 line
branches, and I'm also trying to understand and tell apart some
reasons.
Quoted 2 lines
Maybe we could first of all focus on resolving build issues, then functional issues (BUGs or hanging tests) and finally on latency
issue -
Quoted 17 lines
unless anythings immediately looks related. I will try to understand and possibly resolve the 5.4-qemu-armhf boot hang [2] today. Jan [1] https://source.denx.de/Xenomai/xenomai-images/-/pipelines/7134 <https://source.denx.de/Xenomai/xenomai-images/-/pipelines/7134> [2] https://source.denx.de/Xenomai/xenomai-images/-/jobs/254475 <https://source.denx.de/Xenomai/xenomai-images/-/jobs/254475> -- Siemens AG, T RDA IOT Corporate Competence Center Embedded LinuxQuoted 2 lines
Good point, I will fix 4.19.-cip with the cow fix today.
That may help unless you have the change locally already:
Quoted 7 lines
https://source.denx.de/Xenomai/xenomai-images/-/commit/8858fed7af734d2cde9e127baef879fd98c68524
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
I’ll dig into this today.