Commit 647c577
iommu: Add support for the map_pages() callback
Since iommu_pgsize can calculate how many pages of the
same size can be mapped/unmapped before the next largest
page size boundary, add support for invoking an IOMMU
driver's map_pages() callback, if it provides one.
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Suggested-by: Will Deacon <will@kernel.org>
Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/1623850736-389584-9-git-send-email-quic_c_gdjako@quicinc.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent b1d99dc commit 647c577
1 file changed
Lines changed: 35 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2429 | 2429 | | |
2430 | 2430 | | |
2431 | 2431 | | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
2432 | 2456 | | |
2433 | 2457 | | |
2434 | 2458 | | |
| |||
2439 | 2463 | | |
2440 | 2464 | | |
2441 | 2465 | | |
2442 | | - | |
| 2466 | + | |
2443 | 2467 | | |
2444 | 2468 | | |
2445 | 2469 | | |
| |||
2463 | 2487 | | |
2464 | 2488 | | |
2465 | 2489 | | |
2466 | | - | |
| 2490 | + | |
2467 | 2491 | | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
2471 | 2499 | | |
2472 | 2500 | | |
2473 | 2501 | | |
2474 | 2502 | | |
2475 | | - | |
2476 | | - | |
2477 | | - | |
| 2503 | + | |
| 2504 | + | |
2478 | 2505 | | |
2479 | 2506 | | |
2480 | 2507 | | |
| |||
0 commit comments