diff options
author | Jason Gunthorpe <[email protected]> | 2023-05-11 01:42:11 -0300 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-05-23 08:15:56 +0200 |
commit | fcbb0a4d738ce3ccc06d2c73ba227cce5094d885 (patch) | |
tree | 52e67d0f4c116c0771fab2b57175c8761c7cc848 /drivers/gpu/drm/omapdrm/omap_gem.h | |
parent | 8b4eb75ee50e6f4606f88debf44aeb47937057d4 (diff) |
iommu: Revise iommu_group_alloc_default_domain()
Robin points out that the fallback to guessing what domains the driver
supports should only happen if the driver doesn't return a preference from
its ops->def_domain_type().
Re-organize iommu_group_alloc_default_domain() so it internally uses
iommu_def_domain_type only during the fallback and makes it clearer how
the fallback sequence works.
Make iommu_group_alloc_default_domain() return the domain so the return
based logic is cleaner and to prepare for the next patch.
Remove the iommu_alloc_default_domain() function as it is now trivially
just calling iommu_group_alloc_default_domain().
Reviewed-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Tested-by: Heiko Stuebner <[email protected]>
Tested-by: Niklas Schnelle <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.h')
0 files changed, 0 insertions, 0 deletions