Commit 5a3e510
committed
iommu: generalize the batched sync after map interface
JIRA: https://issues.redhat.com/browse/RHEL-113839
Upstream-Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
commit 5c87cff
Author: Christoph Hellwig <hch@lst.de>
Date: Mon May 5 10:01:40 2025 +0300
iommu: generalize the batched sync after map interface
The IOMMU-DMA layer needs a batched sync-after-map interface that it can
call after all the allocations and individual map operations are done to
add a single sync point. Currently this is only exported by the IOMMU
layer, but the same need will arise for DMA implementations that are not
based on the IOMMU.
Add a simple map of the existing is_sync_after_unmap field for this and
add a helper to probe it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Tested-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
(cherry picked from commit 5c87cff)
Co-developed-by: Claude claude-sonnet-4
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>1 parent bf31a47 commit 5a3e510
2 files changed
+33
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2409 | 2409 | | |
2410 | 2410 | | |
2411 | 2411 | | |
2412 | | - | |
2413 | | - | |
| 2412 | + | |
| 2413 | + | |
2414 | 2414 | | |
2415 | 2415 | | |
2416 | 2416 | | |
| |||
2419 | 2419 | | |
2420 | 2420 | | |
2421 | 2421 | | |
| 2422 | + | |
| 2423 | + | |
2422 | 2424 | | |
2423 | 2425 | | |
2424 | 2426 | | |
2425 | 2427 | | |
2426 | 2428 | | |
2427 | 2429 | | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
2428 | 2435 | | |
2429 | 2436 | | |
2430 | 2437 | | |
| |||
2472 | 2479 | | |
2473 | 2480 | | |
2474 | 2481 | | |
2475 | | - | |
2476 | | - | |
| 2482 | + | |
2477 | 2483 | | |
2478 | 2484 | | |
2479 | | - | |
2480 | | - | |
2481 | | - | |
2482 | 2485 | | |
2483 | | - | |
2484 | | - | |
2485 | | - | |
2486 | | - | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
2487 | 2490 | | |
2488 | | - | |
2489 | | - | |
2490 | | - | |
2491 | | - | |
2492 | | - | |
2493 | | - | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
2494 | 2495 | | |
2495 | | - | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
2496 | 2499 | | |
2497 | | - | |
2498 | | - | |
2499 | | - | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
2500 | 2503 | | |
2501 | 2504 | | |
2502 | 2505 | | |
| |||
2596 | 2599 | | |
2597 | 2600 | | |
2598 | 2601 | | |
2599 | | - | |
2600 | 2602 | | |
2601 | 2603 | | |
2602 | 2604 | | |
2603 | 2605 | | |
2604 | 2606 | | |
2605 | | - | |
2606 | | - | |
2607 | | - | |
2608 | | - | |
2609 | | - | |
2610 | | - | |
2611 | | - | |
2612 | 2607 | | |
2613 | 2608 | | |
2614 | 2609 | | |
2615 | 2610 | | |
2616 | | - | |
| 2611 | + | |
2617 | 2612 | | |
2618 | | - | |
2619 | 2613 | | |
2620 | 2614 | | |
2621 | 2615 | | |
| |||
2638 | 2632 | | |
2639 | 2633 | | |
2640 | 2634 | | |
2641 | | - | |
2642 | | - | |
2643 | | - | |
2644 | | - | |
2645 | | - | |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
2646 | 2639 | | |
2647 | 2640 | | |
2648 | 2641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
860 | 864 | | |
861 | 865 | | |
862 | 866 | | |
| |||
0 commit comments