audio: copier: avoid IRQ lock/unlock in chmap code by kv2019i · Pull Request #10972 · thesofproject/sof · GitHub
Skip to content

audio: copier: avoid IRQ lock/unlock in chmap code#10972

Open
kv2019i wants to merge 1 commit into
thesofproject:mainfrom
kv2019i:202607-use-ll-lock-in-copier-chmap
Open

audio: copier: avoid IRQ lock/unlock in chmap code#10972
kv2019i wants to merge 1 commit into
thesofproject:mainfrom
kv2019i:202607-use-ll-lock-in-copier-chmap

Conversation

@kv2019i

@kv2019i kv2019i commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Copier set_chmap() blocks IRQs to atomically update the converters. This code is not safe to be moved to user-space, so replace the locks with calls to block LL scheduler execution.

Copier set_chmap() blocks IRQs to atomically update the converters.
This code is not safe to be moved to user-space, so replace the locks
with calls to block LL scheduler execution.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Copilot AI review requested due to automatic review settings July 3, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the copier channel-map update path to avoid disabling/enabling IRQs when building with user-space LL scheduling, switching to the LL scheduler’s per-core lock for atomic updates of converter function pointers and channel maps.

Changes:

  • Add LL scheduler domain header to access user_ll_lock_sched() / user_ll_unlock_sched().
  • Use LL scheduler locking in set_chmap() under CONFIG_SOF_USERSPACE_LL, otherwise keep the IRQ disable/enable path.

Comment thread src/audio/copier/copier.c
Comment on lines 13 to 17

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not part of this PR.

@kv2019i

kv2019i commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants