From 6c76d4d76a6ef2b361c5e6529a17d9f9e0f718bb Mon Sep 17 00:00:00 2001 From: Jyri Sarha Date: Thu, 19 Mar 2026 22:56:04 +0200 Subject: [PATCH] zephyr: idc: Name IDC p4wq threads Name IDC p4wq threads. Unfortunately the idc threads only get their names after they are needed for the first time. Until that time they appear as unnamed (a hex number) threads on core 0. There is also one funny thing. There is static thread reserved for core 0, but that is never activated, and it remains there as a hex number forever. However, in this simple and risk free convenience fix, I do not dare to touch that. Maybe later. Signed-off-by: Jyri Sarha --- src/idc/zephyr_idc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/idc/zephyr_idc.c b/src/idc/zephyr_idc.c index f1af9d53a85b..655730722ccd 100644 --- a/src/idc/zephyr_idc.c +++ b/src/idc/zephyr_idc.c @@ -181,10 +181,14 @@ int idc_send_msg(struct idc_msg *msg, uint32_t mode) void idc_init_thread(void) { + char thread_name[] = "idc_p4wq0"; int cpu = cpu_get_id(); k_p4wq_enable_static_thread(q_zephyr_idc + cpu, _p4threads_q_zephyr_idc + cpu, BIT(cpu)); + + thread_name[sizeof(thread_name) - 2] = '0' + cpu; + k_thread_name_set(_p4threads_q_zephyr_idc + cpu, thread_name); /* * Assign SOF system heap to the IDC thread. Otherwise by default it * uses the Zephyr heap for DP stack allocation