linux/drivers/gpu/host1x
Mikko Perttunen 18f7476201 gpu: host1x: Fix iommu_map_sgtable() return value check
Commit "iommu: return full error code from iommu_map_sg[_atomic]()"
changed iommu_map_sgtable() to return an ssize_t and negative values
in error cases, rather than a size_t and a zero.

pin_job() also was incorrectly assigning to 'int', which could cause
overflows into negative values.

Update pin_job() to correctly check for errors from iommu_map_sgtable.

Fixes: ad8f36e4b6 ("iommu: return full error code from iommu_map_sg[_atomic]()")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20260421-iommu_map_sgtable-return-v1-1-fb484c07d2a1@nvidia.com
2026-05-28 17:19:30 +02:00
..
hw gpu: host1x: Syncpoint interrupt performance optimization 2025-11-14 18:27:19 +01:00
bus.c gpu: host1x: Fix device reference leak in host1x_device_parse_dt() error path 2026-05-28 17:19:29 +02:00
bus.h gpu: host1x: bus: make host1x_bus_type const 2024-02-13 19:10:57 +01:00
cdma.c gpu: host1x: Remove mid-job CDMA flushes 2025-05-07 17:49:59 +02:00
cdma.h gpu: host1x: Implement job tracking using DMA fences 2023-01-26 15:55:38 +01:00
channel.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
channel.h gpu: host1x: Stop CDMA before suspending 2023-10-11 22:52:44 +02:00
context_bus.c gpu: host1x: Fix missing 'host1x_context_device_bus_type' 2026-05-28 17:19:30 +02:00
context.c gpu: host1x: Fix missing 'host1x_context_device_bus_type' 2026-05-28 17:19:30 +02:00
context.h gpu: host1x: Fix missing 'host1x_context_device_bus_type' 2026-05-28 17:19:30 +02:00
debug.c gpu: host1x: Remove unused host1x_debug_dump_syncpts 2025-02-28 17:44:13 +01:00
debug.h gpu: host1x: Remove unused host1x_debug_dump_syncpts 2025-02-28 17:44:13 +01:00
dev.c gpu: host1x: Syncpoint interrupt performance optimization 2025-11-14 18:27:19 +01:00
dev.h gpu: host1x: Syncpoint interrupt performance optimization 2025-11-14 18:27:19 +01:00
fence.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fence.h gpu: host1x: External timeout/cancellation for fences 2023-01-26 15:55:38 +01:00
intr.c gpu: host1x: Skip redundant HW state update 2026-05-28 17:19:28 +02:00
intr.h gpu: host1x: Request syncpoint IRQs only during probe 2024-08-28 17:28:48 +02:00
job.c gpu: host1x: Fix iommu_map_sgtable() return value check 2026-05-28 17:19:30 +02:00
job.h drm/tegra: Implement correct DMA-BUF semantics 2021-12-16 14:07:06 +01:00
Kconfig drm/tegra: Allow compile test on !ARM v2 2023-04-04 18:04:43 +02:00
Makefile gpu: host1x: convert MIPI to use operation function pointers 2026-03-19 08:18:36 +01:00
mipi.c gpu: host1x: mipi: Fix device_node reference leak in tegra_mipi_request() 2026-05-28 17:19:29 +02:00
syncpt.c gpu: host1x: Skip redundant syncpoint loads in host1x_syncpt_wait() 2026-05-28 17:19:28 +02:00
syncpt.h gpu: host1x: Rewrite syncpoint interrupt handling 2023-01-26 15:55:38 +01:00
tegra114-mipi.c gpu: host1x: convert MIPI to use operation function pointers 2026-03-19 08:18:36 +01:00