Interrupt shield
Hello,
can anybody confirm this behaviour? If I configure the I-shield into the kernel and start the latency test the RT tasks have not activated T_SHIELD although the documentation states it (and btw in rt_task_create this bit is set). If I try to set T_SHIELD inside the display task, the system hangs, a soft lockup appears and sometimes a few correct lines of the display task are printed, followed by the next lockup.
Explainable?
I'm testing on ARM with my S3C24xx I-pipe patch.
--
Sebastian
Quoted 9 lines · Sebastian Smolorz
Hello,
can anybody confirm this behaviour? If I configure the I-shield into the kernel and start the latency test the RT tasks have not activated
T_SHIELDalthough the documentation states it (and btw inrt_task_createthis bit is set). If I try to setT_SHIELDinside the display task, the system hangs, a soft lockup appears and sometimes a few correct lines of the display task are printed, followed by the next lockup.
Quoted 3 lines
Explainable?
I'm testing on ARM with my S3C24xx I-pipe patch.
Have you tried over x86, too? The shield used to be off by default for quite some time, and it's a fairly special feature. I wouldn't be surprised if there is some regression sleeping. But it might also be an ARM-specific issue.
Soft lockup sounds like the shield is not released appropriately again. The tracer would visualise this nicely in verbose mode...
Jan
Quoted 10 lines · Jan Kiszka
Quoted 9 lines · Sebastian Smolorz
Hello,
can anybody confirm this behaviour? If I configure the I-shield into the kernel and start the latency test the RT tasks have not activated
T_SHIELDalthough the documentation states it (and btw inrt_task_createthis bit is set). If I try to setT_SHIELDinside the display task, the system hangs, a soft lockup appears and sometimes a few correct lines of the display task are printed, followed by the next lockup.
Quoted 5 lines
Quoted 3 lines
Explainable?
I'm testing on ARM with my S3C24xx I-pipe patch.
Have you tried over x86, too?
No, but I'm considering it.
Quoted 7 lines
The shield used to be off by default for
quite some time, and it's a fairly special feature. I wouldn't be surprised if there is some regression sleeping. But it might also be an ARM-specific issue.Soft lockup sounds like the shield is not released appropriately again. The tracer would visualise this nicely in verbose mode...
Yes, I was thinking the same. So now there are two good arguments to learn some assembler for ARM ... ;-)
--
Sebastian
Quoted 6 lines · Sebastian Smolorz
Hello,
can anybody confirm this behaviour? If I configure the I-shield into the kernel and start the latency test the RT tasks have not activated
T_SHIELDalthough the documentation states it (and btw inrt_task_createthis bit is set).
The documentation of rt_task_create() is wrong. The default behaviour should be to create tasks with disabled I-shield support.
Quoted 3 lines
If I try to set
T_SHIELDinside the display task, the system hangs, a
soft lockup appears and sometimes a few correct lines of the display task are printed, followed by the next lockup.
Confirmed here (on x86).
Quoted 3 lines
Explainable?
Yes. I must have screwed up something somewhere, many moons ago.
Quoted 2 lines
I'm testing on ARM with my S3C24xx I-pipe patch.
The I-shield does not depend on any arch-specific code; it's purely based on a few generic Adeos services making use of the pipeline abstraction. Will fix.
Quoted 7 lines
--
Sebastian_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Quoted 15 lines · Philippe Gerum
Quoted 6 lines · Sebastian Smolorz
Hello,
can anybody confirm this behaviour? If I configure the I-shield into the kernel and start the latency test the RT tasks have not activated
T_SHIELDalthough the documentation states it (and btw inrt_task_createthis bit is set).The documentation of
rt_task_create()is wrong. The default behaviour should be to create tasks with disabled I-shield support.Quoted 3 lines
If I try to set
T_SHIELDinside the display task, the system hangs, a
soft lockup appears and sometimes a few correct lines of the display task are printed, followed by the next lockup.
Quoted 8 lines
Confirmed here (on x86).
Quoted 3 lines
Explainable?
Yes. I must have screwed up something somewhere, many moons ago.
Yes I did. This patch should fix the issue on your setup too.
nucleus/shadow.c +3 -0
@@ -554,6 +554,9 @@#ifndef CONFIG_XENO_OPT_RPIDISABLE xnpod_renice_root (XNPOD_ROOT_PRIO_BASE );#endif /* CONFIG_XENO_OPT_RPIDISABLE */ +#ifdef CONFIG_XENO_OPT_ISHIELD +disengage_irq_shield (); +#endif /* CONFIG_XENO_OPT_ISHIELD */ xnpod_schedule (); }
Signature · 1 line
Philippe.
Quoted 16 lines · Philippe Gerum
Quoted 15 lines · Philippe Gerum
Quoted 6 lines · Sebastian Smolorz
Hello,
can anybody confirm this behaviour? If I configure the I-shield into the kernel and start the latency test the RT tasks have not activated
T_SHIELDalthough the documentation states it (and btw inrt_task_createthis bit is set).The documentation of
rt_task_create()is wrong. The default behaviour should be to create tasks with disabled I-shield support.Quoted 3 lines
If I try to set
T_SHIELDinside the display task, the system hangs, a
soft lockup appears and sometimes a few correct lines of the display task are printed, followed by the next lockup.
Quoted 7 lines
Quoted 5 lines
Confirmed here (on x86).
Quoted 1 line
Explainable?
Yes. I must have screwed up something somewhere, many moons ago.
Yes I did. This patch should fix the issue on your setup too.
Yes, it is working now. Thank you!
--
Sebastian