Skip to content

arm64: tegra: Enable audio IOMMU support on Tegra194

Thierry Reding alsa-devel linux-devicetree linux-tegra 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- add backwards-compatibility fallback

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ASoC: tegra: Use ADMAIF component for DMA allocationssound/soc/tegra/tegra_pcm.c+18 -120 replies
2/2arm64: tegra: Enable audio IOMMU support on Tegra194arch/arm64/boot/dts/nvidia/tegra194.dtsi+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] arm64: tegra: Enable audio IOMMU support on Tegra194

From: Thierry Reding <[email protected]>

This small series addresses a minor issue with how IOMMU support is wired up on various Tegra generations. Currently the virtual "card" device is used to allocate DMA memory for, but since that device does not actually exist, the path to memory cannot be correctly described.

To address this, this series moves to using the ADMAIF as the DMA device for audio. This is a real device that can have a proper DMA mask set and with which a stream ID can be associated with in the SMMU. The memory accesses technically originate from the ADMA controller (that the ADMAIF uses), but DMA channel are dynamically allocated at runtime while DMA memory is allocated at driver load time, drivers won't have access to the ADMA device yet.

Further patches will be required to correct this issue on Tegra186 and Tegra210, but I wanted to get feedback on this approach first.

Changes in v2:
- add backwards-compatibility fallback

Thierry

Thierry Reding (2):
ASoC: tegra: Use ADMAIF component for DMA allocations
arm64: tegra: Enable audio IOMMU support on Tegra194

 arch/arm64/boot/dts/nvidia/tegra194.dtsi |  4 ++++
 sound/soc/tegra/tegra_pcm.c              | 30 ++++++++++++++----------
 2 files changed, 22 insertions(+), 12 deletions(-)
Signature · 1 line
2.32.0