From 1bc4b8d7b21d6ed88cc13897f890bc59c5bc779b Mon Sep 17 00:00:00 2001 From: Tiago Medicci Serrano Date: Fri, 19 May 2023 17:24:40 -0300 Subject: [PATCH] esp32s3/wifi: enable SMP by default on Wi-Fi-related defconfigs In order to enhance the Wi-Fi performance, enable SMP by default to make use of the dual-core functionality of the ESP32-S3. --- Documentation/platforms/xtensa/esp32s3/index.rst | 7 ++++--- .../esp32s3/esp32s3-devkit/configs/sta_softap/defconfig | 2 ++ .../xtensa/esp32s3/esp32s3-devkit/configs/wifi/defconfig | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/platforms/xtensa/esp32s3/index.rst b/Documentation/platforms/xtensa/esp32s3/index.rst index d1db3e79f0..4c6c22629e 100644 --- a/Documentation/platforms/xtensa/esp32s3/index.rst +++ b/Documentation/platforms/xtensa/esp32s3/index.rst @@ -127,7 +127,8 @@ Wi-Fi Yes WPA3-SAE supported Wi-Fi ----- -.. tip:: Boards usually expose a ``wifi`` defconfig which enables Wi-Fi +.. tip:: Boards usually expose a ``wifi`` defconfig which enables Wi-Fi. On ESP32-S3, + SMP is enabled to enhance Wi-Fi performance. A standard network interface will be configured and can be initialized such as:: @@ -146,10 +147,10 @@ the result by running ``ifconfig`` afterwards. Wi-Fi SoftAP ------------ -It is possible to use ESP32 as an Access Point (SoftAP). +It is possible to use ESP32-S3 as an Access Point (SoftAP). .. tip:: Boards usually expose a ``sta_softap`` defconfig which enables Wi-Fi - (STA + SoftAP) + (STA + SoftAP). On ESP32-S3, SMP is enabled to enhance Wi-Fi performance. If you are using this board config profile you can run these commands to be able to connect your smartphone or laptop to your board:: diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/configs/sta_softap/defconfig b/boards/xtensa/esp32s3/esp32s3-devkit/configs/sta_softap/defconfig index afa55597b1..7384698aca 100644 --- a/boards/xtensa/esp32s3/esp32s3-devkit/configs/sta_softap/defconfig +++ b/boards/xtensa/esp32s3/esp32s3-devkit/configs/sta_softap/defconfig @@ -72,6 +72,8 @@ CONFIG_RR_INTERVAL=200 CONFIG_SCHED_LPWORK=y CONFIG_SCHED_WAITPID=y CONFIG_SIG_DEFAULT=y +CONFIG_SMP=y +CONFIG_SMP_NCPUS=2 CONFIG_SPIFFS_NAME_MAX=128 CONFIG_START_DAY=6 CONFIG_START_MONTH=12 diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/configs/wifi/defconfig b/boards/xtensa/esp32s3/esp32s3-devkit/configs/wifi/defconfig index f767ded5e3..53d9338914 100644 --- a/boards/xtensa/esp32s3/esp32s3-devkit/configs/wifi/defconfig +++ b/boards/xtensa/esp32s3/esp32s3-devkit/configs/wifi/defconfig @@ -68,6 +68,8 @@ CONFIG_RR_INTERVAL=200 CONFIG_SCHED_LPWORK=y CONFIG_SCHED_WAITPID=y CONFIG_SIG_DEFAULT=y +CONFIG_SMP=y +CONFIG_SMP_NCPUS=2 CONFIG_SPIFFS_NAME_MAX=128 CONFIG_START_DAY=6 CONFIG_START_MONTH=12