Four SMP tests fails after recent commit

Daniel Hellstrom daniel at gaisler.com
Wed Sep 19 09:32:44 UTC 2018


Hi,

When I rebased earlier this week four SMP test now fails (smp03, 
smppsxaffinity01, smpschedaffinity04, smpschedaffinity05). After some 
testing it turns out that after commit 
cfc4231d8fe1056fa501508a929c8ccaa1dd11be ("score: Add flexible per-CPU 
data") the tests fails when
creating tasks with rtems_task_create() due to Task stack allocation fails.

  0) 
_Heap_Allocate_aligned_with_boundary(alloc_size=4096,alignment=0,boundary=0)
  1) stack_addr = (*stack_allocate_hook)( the_stack_size );
  2) _Thread_Stack_Allocate( the_thread, stack_size );
  3) _Thread_Initialize()
  4) rtems_task_create()

---
  testsuites/smptests/smp03/system.h            | 2 ++
  testsuites/smptests/smppsxaffinity01/init.c   | 2 ++
  testsuites/smptests/smpschedaffinity04/init.c | 2 ++
  testsuites/smptests/smpschedaffinity05/init.c | 2 ++
  4 files changed, 8 insertions(+)

diff --git a/testsuites/smptests/smp03/system.h 
b/testsuites/smptests/smp03/system.h
index a5bcd06..43e02b3 100644
--- a/testsuites/smptests/smp03/system.h
+++ b/testsuites/smptests/smp03/system.h
@@ -30,6 +30,8 @@ rtems_task Test_task(
  #define CONFIGURE_MAXIMUM_TASKS            \
      (1 + CONFIGURE_MAXIMUM_PROCESSORS)

+#define CONFIGURE_EXTRA_TASK_STACKS CONFIGURE_MINIMUM_TASK_STACK_SIZE
+
  #define CONFIGURE_MAXIMUM_SEMAPHORES 1

  #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
diff --git a/testsuites/smptests/smppsxaffinity01/init.c 
b/testsuites/smptests/smppsxaffinity01/init.c
index 56a0078..fb1e347 100644
--- a/testsuites/smptests/smppsxaffinity01/init.c
+++ b/testsuites/smptests/smppsxaffinity01/init.c
@@ -160,6 +160,8 @@ void *POSIX_Init(

  #define CONFIGURE_MAXIMUM_POSIX_THREADS  1

+#define CONFIGURE_EXTRA_TASK_STACKS CONFIGURE_MINIMUM_TASK_STACK_SIZE
+
  #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION

  #define CONFIGURE_POSIX_INIT_THREAD_TABLE
diff --git a/testsuites/smptests/smpschedaffinity04/init.c 
b/testsuites/smptests/smpschedaffinity04/init.c
index e526746..50aadd8 100644
--- a/testsuites/smptests/smpschedaffinity04/init.c
+++ b/testsuites/smptests/smpschedaffinity04/init.c
@@ -172,6 +172,8 @@ static void Init(rtems_task_argument arg)

  #define CONFIGURE_MAXIMUM_TASKS          TASK_COUNT

+#define CONFIGURE_EXTRA_TASK_STACKS CONFIGURE_MINIMUM_TASK_STACK_SIZE
+
  #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION

  #define CONFIGURE_INIT_TASK_PRIORITY      8
diff --git a/testsuites/smptests/smpschedaffinity05/init.c 
b/testsuites/smptests/smpschedaffinity05/init.c
index 632cbef..58c565d 100644
--- a/testsuites/smptests/smpschedaffinity05/init.c
+++ b/testsuites/smptests/smpschedaffinity05/init.c
@@ -235,6 +235,8 @@ static void Init(rtems_task_argument arg)

  #define CONFIGURE_MAXIMUM_TASKS          TASK_COUNT

+#define CONFIGURE_EXTRA_TASK_STACKS CONFIGURE_MINIMUM_TASK_STACK_SIZE
+
  #define CONFIGURE_MAXIMUM_SEMAPHORES 1

  #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
-- 


Has anyone seen this also? I'm using the GR740 BSP in SMP configuration.

/Daniel



More information about the devel mailing list