Shikra mdsp shmem sync - #97
Open
mpratyus wants to merge 3 commits into
Open
Conversation
mpratyus
force-pushed
the
shikra-mdsp-shmem-sync
branch
from
August 2, 2026 14:01
ee44f46 to
ef49809
Compare
sauravk-git
approved these changes
Aug 5, 2026
mpratyus
force-pushed
the
shikra-mdsp-shmem-sync
branch
from
August 7, 2026 12:37
7e8575c to
9fc37f4
Compare
quic-plai
reviewed
Aug 7, 2026
quic-plai
left a comment
Contributor
There was a problem hiding this comment.
Regarding the commit text, transfer DMA-BUF ownership between CPU and DSP device. Why do we need to keep transfer ownership?
added 3 commits
August 11, 2026 09:48
Add shared-memory sync APIs that use DMA_BUF_IOCTL_SYNC START/END for DMA-BUF-backed DSP allocations. The helpers bracket CPU access to out-of-band payload buffers so the dma-buf exporter can perform the required CPU cache maintenance before CPU reads or writes and before device access. Track the current CPU access state to avoid duplicate sync calls. Keep apps-side allocations as no-ops because they do not use this DSP DMA-BUF synchronization path. Signed-off-by: Pratyush Meduri <pratyush.meduri@oss.qualcomm.com>
Use the shared-memory sync helpers when GSL builds and sends out-of-band graph command payloads to the DSP. The sync calls bracket CPU access around graph command payloads: after allocation before CPU writes, before command dispatch after CPU writes, and before consuming GET_CFG responses. This lets the dma-buf exporter perform CPU cache maintenance so MDSP observes updated payloads and the CPU sees DSP-written response data. Signed-off-by: Pratyush Meduri <pratyush.meduri@oss.qualcomm.com>
Add a --with-mdsp-proc configure option and use it to define MDSP_PROC for the ar_osal and gsl libraries. This keeps the MDSP-specific build flag controlled by graphservices configure logic instead of requiring external recipes to inject CFLAGS. Signed-off-by: Pratyush Meduri <pratyush.meduri@oss.qualcomm.com>
mpratyus
force-pushed
the
shikra-mdsp-shmem-sync
branch
from
August 11, 2026 04:19
9fc37f4 to
5c07df7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.