diff options
| author | Alexandre Courbot <acourbot@nvidia.com> | 2026-08-05 14:01:47 +0900 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-08-06 22:55:58 +0200 |
| commit | 4c9ba407018e8deb06dbc643112bac8f40404f95 (patch) | |
| tree | ac6ede3e78a88258beb582b3dc1d5743b54c33fd /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 91645a52ebf2e22f0bd37c142b79238617d38758 (diff) | |
gpu: nova-core: falcon: use I/O projection to check transfer bounds
The DMA transfer routine was computing the start of the DMA area by
taking the address of the coherent allocation, and then adding the
transfer's start offset. It then checked manually that the upper bound
was valid.
Convert this to an I/O projection of the same region, which returns
`ERANGE` if the passed range does not fit within the coherent
allocation. This removes the need to perform arithmetic on DMA addresses
and to explicitly check for the bounds' validity.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260805-falcon-dma-projections-v2-3-4cc9f3f13ee9@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
