diff options
| author | Lu Baolu <[email protected]> | 2020-07-24 01:49:21 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2020-07-24 08:51:21 +0000 |
| commit | dd6692f1b883bac46036000a1e3a0b3785f89e87 (patch) | |
| tree | c3942f412660c1581d5ae51995298b59854760ff /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | iommu/vt-d: Disable multiple GPASID-dev bind (diff) | |
| download | kernel-dd6692f1b883bac46036000a1e3a0b3785f89e87.tar.gz kernel-dd6692f1b883bac46036000a1e3a0b3785f89e87.zip | |
iommu/vt-d: Refactor device_to_iommu() helper
It is refactored in two ways:
- Make it global so that it could be used in other files.
- Make bus/devfn optional so that callers could ignore these two returned
values when they only want to get the coresponding iommu pointer.
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/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
