Skip to content

CMA-memory-to-offload-FNN-PLUS-module-to-eNPU - #1023

Open
ks5-dev wants to merge 2 commits into
qualcomm-linux:qcom-6.18.yfrom
ks5-dev:topic/audio_mem_allocate
Open

CMA-memory-to-offload-FNN-PLUS-module-to-eNPU#1023
ks5-dev wants to merge 2 commits into
qualcomm-linux:qcom-6.18.yfrom
ks5-dev:topic/audio_mem_allocate

Conversation

@ks5-dev

@ks5-dev ks5-dev commented Aug 27, 2026

Copy link
Copy Markdown

This series contains patches for allocating CMA memory to offload
FNN PLUS module to eNPU.

Link: https://lore.kernel.org/all/20260825133333.376591-1-karthik.s@oss.qualcomm.com/

shaspand added 2 commits August 27, 2026 10:22
…ion for AudioReach

Add a dynamic CMA pool for the AudioReach audio stack on qcs6490-rb3gen2.
Use alloc-ranges to let the kernel pick a free address rather than a fixed
reg, which avoided EFI-reserved memory at 0x9cc00000. Add 4 MiB alignment
to satisfy CMA_MIN_ALIGNMENT_BYTES. Wire memory-region into q6apmdai so
the q6apm-audio-mem-cma child driver can attach the pool.

Based on the equivalent implementation for lemans (SA8295P).

Link: https://lore.kernel.org/all/20260825133333.376591-1-karthik.s@oss.qualcomm.com/
…eNPU audio offload

Add the three LPASS AML stream IDs to remoteproc_adsp in the
kodiak EL2 overlay so that the q6apm-audio-mem-cma child driver
can obtain an IOMMU domain via iommu_get_domain_for_dev(dev).

Without these SIDs the CMA device has no IOMMU domain (has_iommu=0)
and IOCTL_MAP_HYP_ASSIGN falls through to the SCM path, which fails
on RB3Gen2 because Gunyah owns the SMMU.

SID assignments:
  0x1860 / mask 0x9 — ML Activation + Weights + Write streams
  0x1862 / mask 0x1 — ML Config + Bias streams
  0x1864 / mask 0x0 — ML Normalized Data stream

Link: https://lore.kernel.org/all/20260825133333.376591-1-karthik.s@oss.qualcomm.com/

Signed-off-by: shaspand <shaspand@qti.qualcomm.com>
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

3 similar comments
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

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.

1 participant