diff options
author | Joerg Roedel <[email protected]> | 2020-04-29 15:36:49 +0200 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2020-05-05 14:36:12 +0200 |
commit | deac0b3bed26bb5d04486696b1071d8ec3851100 (patch) | |
tree | 0463da9d8dc4b60a147046e0e43dd21789e07c80 /lib/mpi/mpi-mul.c | |
parent | cf193888bfbd3d57e03a511e49d26f7d9c6f76df (diff) |
iommu: Split off default domain allocation from group assignment
When a bus is initialized with iommu-ops, all devices on the bus are
scanned and iommu-groups are allocated for them, and each groups will
also get a default domain allocated.
Until now this happened as soon as the group was created and the first
device added to it. When other devices with different default domain
requirements were added to the group later on, the default domain was
re-allocated, if possible.
This resulted in some back and forth and unnecessary allocations, so
change the flow to defer default domain allocation until all devices
have been added to their respective IOMMU groups.
The default domains are allocated for newly allocated groups after
each device on the bus is handled and was probed by the IOMMU driver.
Signed-off-by: Joerg Roedel <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Acked-by: Marek Szyprowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions