Skip to content

Commit 3063433

Browse files
cvinayaknashif
authored andcommitted
Bluetooth: controller: Fix ULL_HIGH priority to be lower than LLL
Fix the default ULL_HIGH execution priority to be lower than LLL execution priority to reduce Radio ISR service latency. Also, default to Zero Latency IRQ for Radio ISR if enabled in the kernel. Fixes #29994. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 929dae8 commit 3063433

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

subsys/bluetooth/controller/Kconfig.ll_sw_split

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ config BT_CTLR_SCAN_ENABLE_STRICT
211211
config BT_CTLR_ZLI
212212
bool "Use Zero Latency IRQs"
213213
depends on ZERO_LATENCY_IRQS
214+
default y
214215
help
215216
Enable support for use of Zero Latency IRQ feature. Note, applications
216217
shall not use Zero Latency IRQ themselves when this option is selected,
@@ -273,7 +274,7 @@ config BT_CTLR_SCHED_ADVANCED
273274
leading to skipped events amongst active roles.
274275

275276
config BT_CTLR_LLL_PRIO
276-
int "Lower Link Layer (Radio) IRQ priority"
277+
int "Lower Link Layer (Radio) IRQ priority" if !BT_CTLR_ZLI
277278
range 0 3 if SOC_SERIES_NRF51X
278279
range 0 6 if (SOC_SERIES_NRF52X || SOC_SERIES_NRF53X)
279280
default 0
@@ -284,7 +285,8 @@ config BT_CTLR_ULL_HIGH_PRIO
284285
int "Upper Link Layer High IRQ priority"
285286
range BT_CTLR_LLL_PRIO 3 if SOC_SERIES_NRF51X
286287
range BT_CTLR_LLL_PRIO 6 if (SOC_SERIES_NRF52X || SOC_SERIES_NRF53X)
287-
default BT_CTLR_LLL_PRIO
288+
default BT_CTLR_LLL_PRIO if (BT_CTLR_ZLI || BT_CTLR_LOW_LAT_ULL)
289+
default 1
288290
help
289291
The interrupt priority for Ticker's Worker IRQ and Upper Link Layer
290292
higher priority functions.

0 commit comments

Comments
 (0)