Commit ccb02b2
iommu/vt-d: Move PCI PASID enablement to probe path
Currently, PCI PASID is enabled alongside PCI ATS when an iommu domain is
attached to the device and disabled when the device transitions to block
translation mode. This approach is inappropriate as PCI PASID is a device
feature independent of the type of the attached domain.
Enable PCI PASID during the IOMMU device probe and disables it during the
release path.
Suggested-by: Yi Liu <[email protected]>
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Yi Liu <[email protected]>
Tested-by: Yi Liu <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>1 parent 3cf7423 commit ccb02b2
1 file changed
+15
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | 1284 | | |
1294 | 1285 | | |
1295 | 1286 | | |
| |||
1308 | 1299 | | |
1309 | 1300 | | |
1310 | 1301 | | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | 1302 | | |
1317 | 1303 | | |
1318 | 1304 | | |
| |||
3940 | 3926 | | |
3941 | 3927 | | |
3942 | 3928 | | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
3943 | 3939 | | |
3944 | 3940 | | |
3945 | 3941 | | |
| |||
3956 | 3952 | | |
3957 | 3953 | | |
3958 | 3954 | | |
| 3955 | + | |
| 3956 | + | |
| 3957 | + | |
| 3958 | + | |
| 3959 | + | |
3959 | 3960 | | |
3960 | 3961 | | |
3961 | 3962 | | |
| |||
0 commit comments