diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2020-07-24 04:49:22 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-07-24 11:51:21 +0300 |
commit | 19abcf70c2b16834a607db515b26a32b233c79eb (patch) | |
tree | daab008f6593eb0cc569e969193b8d65e538dc89 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | dd6692f1b883bac46036000a1e3a0b3785f89e87 (diff) | |
download | linux-19abcf70c2b16834a607db515b26a32b233c79eb.tar.xz |
iommu/vt-d: Add a helper to get svm and sdev for pasid
There are several places in the code that need to get the pointers of
svm and sdev according to a pasid and device. Add a helper to achieve
this for code consolidation and readability.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20200724014925.15523-10-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions