Commit 5a081f7
iommu/amd: Move the nid to pdom_setup_pgtable()
The only thing that uses the nid is the io_pgtable code, and it should be
set before calling alloc_io_pgtable_ops() to ensure that the top levels
are allocated on the correct nid.
Since dev is never NULL now we can just do this trivially and remove the
other uses of nid. SVA and identity code paths never use it since they
don't use io_pgtable.
Reviewed-by: Vasant Hegde <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>1 parent 13b4ec7 commit 5a081f7
3 files changed
+11
-15
lines changed| 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 | |
|---|---|---|---|
| |||
2177 | 2177 | | |
2178 | 2178 | | |
2179 | 2179 | | |
2180 | | - | |
2181 | 2180 | | |
2182 | 2181 | | |
2183 | 2182 | | |
| |||
2206 | 2205 | | |
2207 | 2206 | | |
2208 | 2207 | | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | | - | |
2213 | 2208 | | |
2214 | 2209 | | |
2215 | 2210 | | |
| |||
2446 | 2441 | | |
2447 | 2442 | | |
2448 | 2443 | | |
2449 | | - | |
| 2444 | + | |
2450 | 2445 | | |
2451 | 2446 | | |
2452 | 2447 | | |
2453 | 2448 | | |
2454 | 2449 | | |
2455 | | - | |
2456 | 2450 | | |
2457 | 2451 | | |
2458 | | - | |
| 2452 | + | |
2459 | 2453 | | |
2460 | 2454 | | |
2461 | 2455 | | |
| |||
2471 | 2465 | | |
2472 | 2466 | | |
2473 | 2467 | | |
2474 | | - | |
| 2468 | + | |
2475 | 2469 | | |
2476 | 2470 | | |
2477 | 2471 | | |
2478 | 2472 | | |
2479 | | - | |
| 2473 | + | |
| 2474 | + | |
2480 | 2475 | | |
2481 | 2476 | | |
2482 | 2477 | | |
| |||
2490 | 2485 | | |
2491 | 2486 | | |
2492 | 2487 | | |
| 2488 | + | |
2493 | 2489 | | |
2494 | 2490 | | |
2495 | 2491 | | |
| |||
2520 | 2516 | | |
2521 | 2517 | | |
2522 | 2518 | | |
2523 | | - | |
| 2519 | + | |
2524 | 2520 | | |
2525 | 2521 | | |
2526 | 2522 | | |
2527 | 2523 | | |
2528 | | - | |
| 2524 | + | |
2529 | 2525 | | |
2530 | 2526 | | |
2531 | 2527 | | |
| |||
2624 | 2620 | | |
2625 | 2621 | | |
2626 | 2622 | | |
2627 | | - | |
| 2623 | + | |
2628 | 2624 | | |
2629 | 2625 | | |
2630 | 2626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
0 commit comments