Commit ec62b44
iommu/vt-d: Allocate pasid table in device probe path
Whether or not a domain is attached to the device, the pasid table should
always be valid as long as it has been probed. This moves the pasid table
allocation from the domain attaching device path to device probe path and
frees it in the device release path.
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>1 parent eb70814 commit ec62b44
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2475 | 2475 | | |
2476 | 2476 | | |
2477 | 2477 | | |
2478 | | - | |
2479 | | - | |
2480 | | - | |
2481 | | - | |
2482 | | - | |
2483 | | - | |
2484 | | - | |
2485 | 2478 | | |
2486 | 2479 | | |
2487 | 2480 | | |
| |||
4106 | 4099 | | |
4107 | 4100 | | |
4108 | 4101 | | |
4109 | | - | |
4110 | 4102 | | |
4111 | 4103 | | |
4112 | 4104 | | |
| |||
4466 | 4458 | | |
4467 | 4459 | | |
4468 | 4460 | | |
| 4461 | + | |
4469 | 4462 | | |
4470 | 4463 | | |
4471 | 4464 | | |
| |||
4509 | 4502 | | |
4510 | 4503 | | |
4511 | 4504 | | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
| 4513 | + | |
| 4514 | + | |
4512 | 4515 | | |
4513 | 4516 | | |
4514 | 4517 | | |
| |||
4517 | 4520 | | |
4518 | 4521 | | |
4519 | 4522 | | |
| 4523 | + | |
4520 | 4524 | | |
4521 | 4525 | | |
4522 | 4526 | | |
| |||
0 commit comments