You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/04/23 08:25:22 UTC
[incubator-nuttx] branch master updated (5c562c1 -> 05f743a)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.
from 5c562c1 risc-v/esp32-c3: Reorganize the timer logic for wireless use
new 0ec5563 sched: group: Fix group_signal() for SMP
new b17ee3f boards: maix-bit: Add smp2 configuration
new 05f743a Revert "boards: lc823450-xgevk: Workaround to avoid an ostest crash with rndis"
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../lc823450/lc823450-xgevk/configs/rndis/defconfig | 3 ---
.../k210/maix-bit/configs/{smp => smp2}/defconfig | 21 +++++++++++++--------
sched/group/group_signal.c | 8 ++++++++
3 files changed, 21 insertions(+), 11 deletions(-)
copy boards/risc-v/k210/maix-bit/configs/{smp => smp2}/defconfig (81%)
[incubator-nuttx] 03/03: Revert "boards: lc823450-xgevk: Workaround
to avoid an ostest crash with rndis"
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 05f743aa3a3c27b05ae6d0c566bb289a2be0e251
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Thu Apr 22 15:36:17 2021 +0900
Revert "boards: lc823450-xgevk: Workaround to avoid an ostest crash with rndis"
This reverts commit 65274d5fdf81f00db428d0aac19976e23c2bc5cf.
---
boards/arm/lc823450/lc823450-xgevk/configs/rndis/defconfig | 3 ---
1 file changed, 3 deletions(-)
diff --git a/boards/arm/lc823450/lc823450-xgevk/configs/rndis/defconfig b/boards/arm/lc823450/lc823450-xgevk/configs/rndis/defconfig
index 258acd1..8735ddd 100644
--- a/boards/arm/lc823450/lc823450-xgevk/configs/rndis/defconfig
+++ b/boards/arm/lc823450/lc823450-xgevk/configs/rndis/defconfig
@@ -31,9 +31,6 @@ CONFIG_BOARD_LOOPSPERMSEC=12061
CONFIG_BUILTIN=y
CONFIG_C99_BOOL8=y
CONFIG_CODECS_HASH_MD5=y
-CONFIG_DEBUG_ASSERTIONS=y
-CONFIG_DEBUG_ERROR=y
-CONFIG_DEBUG_FEATURES=y
CONFIG_DEBUG_FULLOPT=y
CONFIG_DEBUG_HARDFAULT_ALERT=y
CONFIG_DEBUG_SYMBOLS=y
[incubator-nuttx] 01/03: sched: group: Fix group_signal() for SMP
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 0ec5563a60f7925ae547c67faa5f3f1c43b73616
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Fri Apr 23 09:19:05 2021 +0900
sched: group: Fix group_signal() for SMP
Summary:
- This commit fixes the signest_test issue with lc823450-xgevk
Impact:
- SMP with CONFIG_SCHED_CHILD_STATUS=y
Testing:
- Tested with ostest with lc82345-xgevk:rndis
- NOTE: need to revert the commit 65274d5fdf
Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
sched/group/group_signal.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sched/group/group_signal.c b/sched/group/group_signal.c
index 5329be9..85796f6 100644
--- a/sched/group/group_signal.c
+++ b/sched/group/group_signal.c
@@ -214,7 +214,11 @@ int group_signal(FAR struct task_group_s *group, FAR siginfo_t *siginfo)
* nothing if were were called from an interrupt handler).
*/
+#ifdef CONFIG_SMP
+ irqstate_t flags = enter_critical_section();
+#else
sched_lock();
+#endif
/* Now visit each member of the group and perform signal handling checks. */
@@ -253,7 +257,11 @@ int group_signal(FAR struct task_group_s *group, FAR siginfo_t *siginfo)
}
errout:
+#ifdef CONFIG_SMP
+ leave_critical_section(flags);
+#else
sched_unlock();
+#endif
return ret;
#else
[incubator-nuttx] 02/03: boards: maix-bit: Add smp2 configuration
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit b17ee3fe2982abd6052d9f394603b0f7c7840b03
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Thu Apr 22 15:33:51 2021 +0900
boards: maix-bit: Add smp2 configuration
Summary:
- This commit adds maix-bit:smp2 configuration to test different
sched parameters such as CONFIG_SCHED_CHILD_STATUS=y
Impact:
- None
Testing:
- Tested with ostest
Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
boards/risc-v/k210/maix-bit/configs/smp2/defconfig | 67 ++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/boards/risc-v/k210/maix-bit/configs/smp2/defconfig b/boards/risc-v/k210/maix-bit/configs/smp2/defconfig
new file mode 100644
index 0000000..74897d1
--- /dev/null
+++ b/boards/risc-v/k210/maix-bit/configs/smp2/defconfig
@@ -0,0 +1,67 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed .config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that includes your
+# modifications.
+#
+# CONFIG_NSH_DISABLE_LOSMART is not set
+# CONFIG_STANDARD_SERIAL is not set
+CONFIG_ARCH="risc-v"
+CONFIG_ARCH_BOARD="maix-bit"
+CONFIG_ARCH_BOARD_MAIX_BIT=y
+CONFIG_ARCH_CHIP="k210"
+CONFIG_ARCH_CHIP_K210=y
+CONFIG_ARCH_INTERRUPTSTACK=2048
+CONFIG_ARCH_RISCV=y
+CONFIG_ARCH_STACKDUMP=y
+CONFIG_BINFMT_DISABLE=y
+CONFIG_BOARD_LOOPSPERMSEC=46000
+CONFIG_BUILTIN=y
+CONFIG_DEBUG_FULLOPT=y
+CONFIG_DEBUG_SYMBOLS=y
+CONFIG_DEV_ZERO=y
+CONFIG_DRIVER_NOTE=y
+CONFIG_EXAMPLES_HELLO=y
+CONFIG_FS_PROCFS=y
+CONFIG_FS_PROCFS_REGISTER=y
+CONFIG_IDLETHREAD_STACKSIZE=2048
+CONFIG_INTELHEX_BINARY=y
+CONFIG_LIBC_PERROR_STDOUT=y
+CONFIG_LIBC_STRERROR=y
+CONFIG_MAX_TASKS=64
+CONFIG_NSH_ARCHINIT=y
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_READLINE=y
+CONFIG_NSH_STRERROR=y
+CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=2048
+CONFIG_PREALLOC_TIMERS=4
+CONFIG_PTHREAD_MUTEX_TYPES=y
+CONFIG_PTHREAD_STACK_DEFAULT=3072
+CONFIG_RAM_SIZE=2097152
+CONFIG_RAM_START=0x80400000
+CONFIG_RAW_BINARY=y
+CONFIG_READLINE_CMD_HISTORY=y
+CONFIG_SCHED_ATEXIT=y
+CONFIG_SCHED_CHILD_STATUS=y
+CONFIG_SCHED_HAVE_PARENT=y
+CONFIG_SCHED_INSTRUMENTATION=y
+CONFIG_SCHED_ONEXIT=y
+CONFIG_SCHED_ONEXIT_MAX=32
+CONFIG_SCHED_STARTHOOK=y
+CONFIG_SMP=y
+CONFIG_SMP_NCPUS=2
+CONFIG_STACK_COLORATION=y
+CONFIG_START_DAY=22
+CONFIG_START_MONTH=4
+CONFIG_START_YEAR=2021
+CONFIG_SYSTEM_NSH=y
+CONFIG_SYSTEM_SYSTEM=y
+CONFIG_SYSTEM_TASKSET=y
+CONFIG_TASK_NAME_SIZE=20
+CONFIG_TESTING_GETPRIME=y
+CONFIG_TESTING_OSTEST=y
+CONFIG_TESTING_SMP=y
+CONFIG_UART0_SERIAL_CONSOLE=y
+CONFIG_USERMAIN_STACKSIZE=3072
+CONFIG_USER_ENTRYPOINT="nsh_main"