From 72d4afa16963d658ab23c55ff6928de9e5e06b58 Mon Sep 17 00:00:00 2001 From: Johan Stridkvist Date: Fri, 18 Oct 2024 08:41:14 +0200 Subject: [PATCH] ipc: icbmsg: Fix issue in bsim integration Add call to Z_SPIN_DELAY() to avoid issue in bsim where time does not progress in loop causing other threads to starve. Upstream PR: https://github.com/zephyrproject-rtos/zephyr/pull/80043 --- subsys/ipc/ipc_service/backends/ipc_icbmsg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/ipc/ipc_service/backends/ipc_icbmsg.c b/subsys/ipc/ipc_service/backends/ipc_icbmsg.c index 70c4c4c362f..726c34382aa 100644 --- a/subsys/ipc/ipc_service/backends/ipc_icbmsg.c +++ b/subsys/ipc/ipc_service/backends/ipc_icbmsg.c @@ -1054,6 +1054,7 @@ static int send(const struct device *instance, void *token, const void *msg, siz alloc_size = len; r = alloc_tx_buffer(dev_data, &alloc_size, &buffer, K_NO_WAIT); if (r < 0) { + Z_SPIN_DELAY(1); return r; }