aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/lima/lima_bcast.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2024-04-24 15:16:43 +0800
committerJoerg Roedel <[email protected]>2024-04-26 11:57:48 +0200
commit65442507026a79e2de8014880e6ba376b8b44584 (patch)
treecade4f7942266fc669011d824dc8e3c37e30c2cf /drivers/gpu/drm/lima/lima_bcast.c
parentdeda9a7bf38fb9846ff3fb83179ca07437b1511c (diff)
iommu: Add ops->domain_alloc_sva()
Make a new op that receives the device and the mm_struct that the SVA domain should be created for. Unlike domain_alloc_paging() the dev argument is never NULL here. This allows drivers to fully initialize the SVA domain and allocate the mmu_notifier during allocation. It allows the notifier lifetime to follow the lifetime of the iommu_domain. Since we have only one call site, upgrade the new op to return ERR_PTR instead of NULL. Signed-off-by: Jason Gunthorpe <[email protected]> Signed-off-by: Vasant Hegde <[email protected]> Reviewed-by: Tina Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] 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]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_bcast.c')
0 files changed, 0 insertions, 0 deletions