summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2020-04-29 15:36:50 +0200
committerJoerg Roedel <jroedel@suse.de>2020-05-05 14:36:13 +0200
commitce574c27ae275bc51b6437883fc9cd1c46b498e5 (patch)
treea51e2a432938bb3565ec4f75a2348002a818221f /ipc
parentdeac0b3bed26bb5d04486696b1071d8ec3851100 (diff)
downloadlwn-ce574c27ae275bc51b6437883fc9cd1c46b498e5.tar.gz
lwn-ce574c27ae275bc51b6437883fc9cd1c46b498e5.zip
iommu: Move iommu_group_create_direct_mappings() out of iommu_group_add_device()
After the previous changes the iommu group may not have a default domain when iommu_group_add_device() is called. With no default domain iommu_group_create_direct_mappings() will do nothing and no direct mappings will be created. Rename iommu_group_create_direct_mappings() to iommu_create_device_direct_mappings() to better reflect that the function creates direct mappings only for one device and not for all devices in the group. Then move the call to the places where a default domain actually exists. Signed-off-by: Joerg Roedel <jroedel@suse.de> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20200429133712.31431-13-joro@8bytes.org Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions