Skip to content

Commit f556027

Browse files
MarekPietacarlescufi
authored andcommitted
bluetooth: host: Increase long workqueue stack size
Change increases long workqueue stack size to prevent stack overflows while processing GATT database hash. CONFIG_BT_HCI_ECC_STACK_SIZE is removed, because the configured stack was removed. Signed-off-by: Marek Pieta <[email protected]>
1 parent d79971e commit f556027

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

doc/releases/release-notes-3.2.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ Bluetooth
104104
* Host
105105

106106
* Added :c:func:`bt_conn_auth_cb_overlay` to overlay authentication callbacks for a Bluetooth LE connection.
107+
* Removed ``CONFIG_BT_HCI_ECC_STACK_SIZE``.
108+
The Bluetooth long workqueue (:kconfig:option:`CONFIG_BT_LONG_WQ`) is used for processing ECC commands instead of the dedicated thread.
107109

108110
* Mesh
109111

subsys/bluetooth/host/Kconfig

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ config BT_LONG_WQ_STACK_SIZE
1515
# Hidden: Long workqueue stack size. Should be derived from system
1616
# requirements.
1717
int
18-
default BT_HCI_ECC_STACK_SIZE if BT_TINYCRYPT_ECC
18+
default 1300 if BT_GATT_CACHING
19+
default 1140 if BT_TINYCRYPT_ECC
1920
default 1024
2021

2122
config BT_LONG_WQ_PRIO
@@ -59,16 +60,6 @@ config BT_HCI_TX_STACK_SIZE
5960
config BT_HCI_TX_STACK_SIZE_WITH_PROMPT
6061
bool "Override HCI Tx thread stack size"
6162

62-
config BT_HCI_ECC_STACK_SIZE
63-
# NOTE: This value is derived from other symbols and should only be
64-
# changed if required by architecture
65-
int "HCI ECC thread stack size"
66-
depends on BT_TINYCRYPT_ECC
67-
default 1140
68-
help
69-
NOTE: This is an advanced setting and should not be changed unless
70-
absolutely necessary
71-
7263
config BT_HCI_TX_PRIO
7364
# Hidden option for Co-Operative Tx thread priority
7465
int

0 commit comments

Comments
 (0)