From 54c6851bf13341b8a42d0e98595dbabb3e1f296d Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Wed, 8 Apr 2026 14:46:25 +0800 Subject: [PATCH] test: align esp32s31 freertos perf limits ESP32-S31 scheduling and spinlock benchmarks match the relaxed P4 thresholds better than the generic limits, so use those limits to keep the FreeRTOS perf cases stable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../test_apps/freertos/include/freertos_performance.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/freertos/test_apps/freertos/include/freertos_performance.h b/components/freertos/test_apps/freertos/include/freertos_performance.h index 80f48febfa..561cf920dc 100644 --- a/components/freertos/test_apps/freertos/include/freertos_performance.h +++ b/components/freertos/test_apps/freertos/include/freertos_performance.h @@ -1,4 +1,4 @@ -/* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD +/* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -26,14 +26,14 @@ #endif // Chip-Specific Data -#if CONFIG_IDF_TARGET_ESP32P4 -/* Spinlock performance on esp32p4 is slower. */ +#if CONFIG_IDF_TARGET_ESP32P4 || CONFIG_IDF_TARGET_ESP32S31 +/* Spinlock performance on esp32p4/esp32s31 is slower. */ #undef IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP #define IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP 400 #undef IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP_UNICORE #define IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP_UNICORE 150 -/* Solicited yields (portYIELD() or taskYIELD()) take longer on esp32p4. TODO: IDF-2809 */ +/* Solicited yields (portYIELD() or taskYIELD()) take longer on esp32p4/esp32s31. TODO: IDF-2809 */ #undef IDF_PERFORMANCE_MAX_SCHEDULING_TIME #define IDF_PERFORMANCE_MAX_SCHEDULING_TIME 3200 #endif