diff options
| author | Mostafa Saleh <smostafa@google.com> | 2026-08-27 20:30:55 +0000 |
|---|---|---|
| committer | Bjorn Andersson <andersson@kernel.org> | 2026-08-31 11:33:12 -0500 |
| commit | 0d8e2195bce6f08c1c53c5ef4d7347fe46418101 (patch) | |
| tree | 88e9d663b3db63ed07408934a0e3897e64375296 /scripts/Makefile.thinlto | |
| parent | b853857293584dd1f52183f70a2bdeca692a1e71 (diff) | |
| download | linux-next-0d8e2195bce6f08c1c53c5ef4d7347fe46418101.tar.gz linux-next-0d8e2195bce6f08c1c53c5ef4d7347fe46418101.zip | |
remoteproc: qcom_q6v5_adsp: Fix iommu_unmap() usage
During adsp_map_carveout, the IOVA is computed by combining the
physical address and the SID:
iova = adsp->mem_phys | (sid << 32);
However, adsp_unmap_carveout() uses the physical address and not
the IOVA in iommu_unmap(), causing the unmap to fail or leak
mappings because the address doesn't match the original IOVA.
Cache the constructed IOVA within the qcom_adsp device struct
during mapping and use it during unmapping.
Fixes: f22eedff28af ("remoteproc: qcom: Add support for memory sandbox")
Signed-off-by: Mostafa Saleh <smostafa@google.com>
Link: https://lore.kernel.org/r/20260827203055.640116-1-smostafa@google.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
