Commit 55b237d
iommu/amd: Remove type argument from do_iommu_domain_alloc() and related
do_iommu_domain_alloc() is only called from
amd_iommu_domain_alloc_paging_flags() so type is always
IOMMU_DOMAIN_UNMANAGED. Remove type and all the dead conditionals checking
it.
IOMMU_DOMAIN_IDENTITY checks are similarly obsolete as the conversion to
the global static identity domain removed those call paths.
The caller of protection_domain_alloc() should set the type, fix the miss
in the SVA code.
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/4-v2-9776c53c2966+1c7-amd_paging_flags_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 02bcd1a commit 55b237d
3 files changed
Lines changed: 13 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2455 | 2455 | | |
2456 | 2456 | | |
2457 | 2457 | | |
2458 | | - | |
| 2458 | + | |
2459 | 2459 | | |
2460 | 2460 | | |
2461 | 2461 | | |
| |||
2476 | 2476 | | |
2477 | 2477 | | |
2478 | 2478 | | |
2479 | | - | |
2480 | | - | |
| 2479 | + | |
2481 | 2480 | | |
2482 | 2481 | | |
2483 | 2482 | | |
2484 | | - | |
2485 | | - | |
2486 | | - | |
2487 | | - | |
2488 | 2483 | | |
2489 | 2484 | | |
2490 | 2485 | | |
| |||
2518 | 2513 | | |
2519 | 2514 | | |
2520 | 2515 | | |
2521 | | - | |
2522 | | - | |
2523 | | - | |
| 2516 | + | |
| 2517 | + | |
2524 | 2518 | | |
2525 | 2519 | | |
2526 | 2520 | | |
2527 | 2521 | | |
2528 | 2522 | | |
2529 | 2523 | | |
2530 | | - | |
2531 | | - | |
2532 | | - | |
2533 | | - | |
2534 | | - | |
2535 | | - | |
2536 | | - | |
2537 | | - | |
| 2524 | + | |
2538 | 2525 | | |
2539 | 2526 | | |
2540 | 2527 | | |
2541 | | - | |
| 2528 | + | |
2542 | 2529 | | |
2543 | 2530 | | |
2544 | 2531 | | |
| |||
2550 | 2537 | | |
2551 | 2538 | | |
2552 | 2539 | | |
2553 | | - | |
| 2540 | + | |
2554 | 2541 | | |
2555 | 2542 | | |
2556 | 2543 | | |
| |||
2564 | 2551 | | |
2565 | 2552 | | |
2566 | 2553 | | |
2567 | | - | |
2568 | 2554 | | |
2569 | 2555 | | |
2570 | 2556 | | |
| |||
2577 | 2563 | | |
2578 | 2564 | | |
2579 | 2565 | | |
2580 | | - | |
| 2566 | + | |
2581 | 2567 | | |
2582 | 2568 | | |
2583 | 2569 | | |
2584 | 2570 | | |
2585 | 2571 | | |
2586 | | - | |
2587 | | - | |
| 2572 | + | |
2588 | 2573 | | |
2589 | 2574 | | |
2590 | 2575 | | |
2591 | 2576 | | |
2592 | 2577 | | |
2593 | | - | |
| 2578 | + | |
2594 | 2579 | | |
2595 | 2580 | | |
2596 | 2581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
0 commit comments