mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
Upstream kernel does not export IOMMU APIs, so use dynamic memory allocation for shared memory in non-secure boot mode. Move stale code that uses IOMMU APIs under macro CONFIG_IOMMU_API_EXPORTED. As remapping allocated IOVA to a fixed address is no longer possible, IOVA cannot be used for OS memory; reserved physical memory may be used in its place. Dynamic memory allocation for shared memory will be selected if ACSR_ADDR in "nvidia,adsp_mem" DT property is set to 0. Bug 4416828 Bug 4164138 Bug 3682950 Change-Id: I9ea5626a14457818f2adff69610562e824f7fdda Signed-off-by: Viswanath L <viswanathl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3067154 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>