Commit d257344
iommu: Replace __iommu_group_dma_first_attach() with set_domain
Reorganize the attach_deferred logic to set dev->iommu->attach_deferred
immediately during probe and then have __iommu_device_set_domain() check
it and not attach the default_domain.
This is to prepare for removing the group->domain set from
iommu_group_alloc_default_domain() by calling __iommu_group_set_domain()
to set the group->domain.
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/6-v5-1b99ae392328+44574-iommu_err_unwind_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 4c8ad9d commit d257344
1 file changed
Lines changed: 11 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
| |||
399 | 401 | | |
400 | 402 | | |
401 | 403 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 404 | | |
413 | 405 | | |
414 | 406 | | |
415 | 407 | | |
416 | 408 | | |
417 | 409 | | |
418 | | - | |
419 | | - | |
| 410 | + | |
420 | 411 | | |
421 | | - | |
422 | | - | |
423 | 412 | | |
424 | 413 | | |
425 | 414 | | |
| |||
1831 | 1820 | | |
1832 | 1821 | | |
1833 | 1822 | | |
1834 | | - | |
1835 | | - | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
1840 | 1823 | | |
1841 | 1824 | | |
1842 | 1825 | | |
| |||
1899 | 1882 | | |
1900 | 1883 | | |
1901 | 1884 | | |
1902 | | - | |
| 1885 | + | |
| 1886 | + | |
1903 | 1887 | | |
1904 | 1888 | | |
1905 | 1889 | | |
| |||
2200 | 2184 | | |
2201 | 2185 | | |
2202 | 2186 | | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
2203 | 2193 | | |
2204 | 2194 | | |
2205 | 2195 | | |
| |||
0 commit comments