Skip to content

Commit b6f91ab

Browse files
committed
schedule: user-space ll: grant access to DAIs and DMAs
If the low-latency domain tasks are run in user-space, grant the LL threads access to all DAI and DMA devices. In future, there may be need to filter access permissions more, and/or have variation between different build targets, but for now the user LL thread will have access to the same devices as it does in kernel space. Note that access to memory is separately controlled and in addition to having access to a DMA device, user-space thread also needs access to the memory before it can do DMA transactions. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 94ac8e0 commit b6f91ab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/schedule/zephyr_domain.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ static int zephyr_domain_register_user(struct ll_schedule_domain *domain,
336336

337337
k_mem_domain_add_thread(zephyr_ll_mem_domain(), thread);
338338
k_thread_access_grant(thread, dt->sem, domain->lock, zephyr_domain->timer);
339+
user_grant_dai_access_all(thread);
340+
user_grant_dma_access_all(thread);
339341
tr_dbg(&ll_tr, "granted LL access to thread %p (core %d)", thread, core);
340342

341343
k_thread_start(thread);

0 commit comments

Comments
 (0)