[PATCH 0/4] Fix checking of iommu_map_sgtable return value

From: Mikko Perttunen

Date: Tue Apr 21 2026 - 00:05:57 EST


The return value of iommu_map_sgtable changed from unsigned to signed
quite a while ago, but not all callers were updated. Do that.

Each patch is independent of each other. The drm/msm patch additionally
changes from WARNing in case of mapping error to returning the error
code now available.

Best regards
Mikko

Signed-off-by: Mikko Perttunen <mperttunen@xxxxxxxxxx>
---
Mikko Perttunen (4):
gpu: host1x: Fix iommu_map_sgtable() return value check
drm/tegra: Fix iommu_map_sgtable() return value check
drm/msm: Fix iommu_map_sgtable() return value check and avoid WARN
media: nvidia: tegra-vde: Fix iommu_map_sgtable() return value check

drivers/gpu/drm/msm/msm_iommu.c | 5 +++--
drivers/gpu/drm/tegra/gem.c | 9 ++++++---
drivers/gpu/host1x/job.c | 10 ++++++----
drivers/media/platform/nvidia/tegra-vde/iommu.c | 9 +++++----
4 files changed, 20 insertions(+), 13 deletions(-)
---
base-commit: 028ef9c96e96197026887c0f092424679298aae8
change-id: 20260417-iommu_map_sgtable-return-a8d3cd591fbc