<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 21, 2023 at 9:56 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Kinsey,<br>
<br>
I added a test case for<br>
<br>
<a href="https://devel.rtems.org/ticket/4955" rel="noreferrer" target="_blank">https://devel.rtems.org/ticket/4955</a><br>
<br>
which started as a sparc-specific bug. The test case should also work on <br>
aarch64. In uniprocessor configurations, it is fine:<br>
<br>
qemu-system-aarch64 -no-reboot -nographic -serial mon:stdio -machine <br>
xlnx-zcu102 -m 4096 -kernel <br>
build/aarch64/xilinx_zynqmp_lp64_qemu/testsuites/validation/ts-validation-intr.exe <br>
<br>
<br>
*** BEGIN OF TEST TestsuitesValidationIntr ***<br>
*** TEST VERSION: 6.0.0.34e16f56b64a9a0a696775f4ac699780fc518306<br>
*** TEST STATE: EXPECTED_PASS<br>
*** TEST BUILD:<br>
*** TEST TOOLS: 13.2.0 20230727 (RTEMS 6, RSB <br>
02252b96835f1edc7a582e2309ee2f5b46764d64, Newlib a021448)<br>
A:TestsuitesValidationIntr<br>
S:Platform:RTEMS<br>
S:Compiler:13.2.0 20230727 (RTEMS 6, RSB <br>
02252b96835f1edc7a582e2309ee2f5b46764d64, Newlib a021448)<br>
S:Version:6.0.0.34e16f56b64a9a0a696775f4ac699780fc518306<br>
S:BSP:xilinx_zynqmp_lp64_qemu<br>
S:BuildLabel:DEFAULT<br>
S:TargetHash:SHA256:huGRj7kHeBWgSJolmeboNSyCgeX2U62J9RiNQ18YPFc=<br>
S:RTEMS_DEBUG:0<br>
S:RTEMS_MULTIPROCESSING:0<br>
S:RTEMS_POSIX_API:0<br>
S:RTEMS_PROFILING:0<br>
S:RTEMS_SMP:0<br>
B:ScoreIsrValIsr<br>
E:ScoreIsrValIsr:N:1:F:0:D:0.000397<br>
B:RtemsIntrReqVectorIsEnabled<br>
E:RtemsIntrReqVectorIsEnabled:N:958:F:0:D:0.001529<br>
B:RtemsIntrReqVectorEnable<br>
E:RtemsIntrReqVectorEnable:N:12834:F:0:D:0.014386<br>
B:RtemsIntrReqVectorDisable<br>
E:RtemsIntrReqVectorDisable:N:12858:F:0:D:0.013536<br>
B:RtemsIntrReqSetAffinity<br>
E:RtemsIntrReqSetAffinity:N:4060:F:0:D:0.002265<br>
B:RtemsIntrReqRaiseOn<br>
E:RtemsIntrReqRaiseOn:N:6754:F:0:D:0.009210<br>
B:RtemsIntrReqRaise<br>
E:RtemsIntrReqRaise:N:6750:F:0:D:0.009304<br>
B:RtemsIntrReqIsPending<br>
E:RtemsIntrReqIsPending:N:5358:F:0:D:0.008721<br>
B:RtemsIntrReqHandlerIterate<br>
E:RtemsIntrReqHandlerIterate:N:31:F:0:D:0.000753<br>
B:RtemsIntrReqGetAttributes<br>
E:RtemsIntrReqGetAttributes:N:552:F:0:D:0.000547<br>
B:RtemsIntrReqGetAffinity<br>
E:RtemsIntrReqGetAffinity:N:1195:F:0:D:0.000923<br>
B:RtemsIntrReqEntryRemove<br>
E:RtemsIntrReqEntryRemove:N:4486:F:0:D:0.006436<br>
B:RtemsIntrReqEntryInstall<br>
E:RtemsIntrReqEntryInstall:N:13528:F:0:D:0.018137<br>
B:RtemsIntrReqClear<br>
E:RtemsIntrReqClear:N:12834:F:0:D:0.011950<br>
B:BspReqInterruptHandlerDispatchUnchecked<br>
E:BspReqInterruptHandlerDispatchUnchecked:N:13:F:0:D:0.000520<br>
Z:TestsuitesValidationIntr:C:15:N:82212:F:0:D:0.103215<br>
Y:ReportHash:SHA256:9MhLl5LJSiL-O5P8y5BXelnhD38UNTvwHZ5QX_X-kTU=<br>
<br>
*** END OF TEST TestsuitesValidationIntr ***<br>
<br>
<br>
[ RTEMS shutdown ]<br>
RTEMS version: 6.0.0.34e16f56b64a9a0a696775f4ac699780fc518306<br>
RTEMS tools: 13.2.0 20230727 (RTEMS 6, RSB <br>
02252b96835f1edc7a582e2309ee2f5b46764d64, Newlib a021448)<br>
executing thread ID: 0x0a010001<br>
executing thread name: RUN<br>
<br>
In SMP configurations, there is a crash:<br>
<br>
qemu-system-aarch64 -no-reboot -nographic -serial mon:stdio -machine <br>
xlnx-zcu102 -m 4096 -kernel <br>
build/aarch64/xilinx_zynqmp_lp64_qemu_smp/testsuites/validation/ts-validation-intr.exe<br>
<br>
Thread 1 hit Breakpoint 1, _Terminate <br>
(the_source=the_source@entry=INTERNAL_ERROR_CORE, <br>
the_error=the_error@entry=31) at <br>
/home/EB/sebastian_h/src/rtems/cpukit/score/src/interr.c:55<br>
55        _User_extensions_Fatal( the_source, the_error );<br>
(gdb) bt<br>
#0  _Terminate (the_source=the_source@entry=INTERNAL_ERROR_CORE, <br>
the_error=the_error@entry=31) at <br>
/home/EB/sebastian_h/src/rtems/cpukit/score/src/interr.c:55<br>
#1  0x0000000040027ab4 in _Internal_error <br>
(core_error=core_error@entry=INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT) <br>
at /home/EB/sebastian_h/src/rtems/cpukit/score/src/interr.c:63<br>
#2  0x00000000400285d8 in _Thread_Do_dispatch (cpu_self=0x40101980 <br>
<_Per_CPU_Information>, level=960) at <br>
/home/EB/sebastian_h/src/rtems/cpukit/score/src/threaddispatch.c:290<br>
#3  0x000000004002878c in _Thread_Handler () at <br>
/home/EB/sebastian_h/src/rtems/cpukit/score/src/threadhandler.c:147<br>
#4  0x00000000400286d0 in ?? ()<br>
<br>
I don't know the architecture good enough to debug this test case. It <br>
would be good if you could have a look at it since this crash could <br>
indicate a generic bug in the SMP startup.<br></blockquote><div><br></div><div>Ok, thanks! I'll take a look and see what I can find.</div><div><br></div><div>Kinsey <br></div></div></div>