aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorXu Yilun <[email protected]>2025-07-16 07:03:46 +0000
committerJason Gunthorpe <[email protected]>2025-07-18 20:33:08 +0000
commit651f733675c4a26e59dd34522917eace20c557c0 (patch)
tree1d5f5fbf461e6df98a78e54ceb390465918c979f /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentiommufd: Destroy vdevice on idevice destroy (diff)
downloadkernel-651f733675c4a26e59dd34522917eace20c557c0.tar.gz
kernel-651f733675c4a26e59dd34522917eace20c557c0.zip
iommufd/vdevice: Remove struct device reference from struct vdevice
Remove struct device *dev from struct vdevice. The dev pointer is the Plan B for vdevice to reference the physical device. As now vdev->idev is added without refcounting concern, just use vdev->idev->dev when needed. To avoid exposing struct iommufd_device in the public header, export a iommufd_vdevice_to_device() helper. Link: https://patch.msgid.link/r/[email protected] Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Nicolin Chen <[email protected]> Co-developed-by: Nicolin Chen <[email protected]> Signed-off-by: Nicolin Chen <[email protected]> Tested-by: Nicolin Chen <[email protected]> Signed-off-by: Xu Yilun <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions