Skip to content

iommu/vt-d: Introduce rbtree for probed devices

Lu Baolu linux-iommu lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 16 repliesSuperseded

Changes in v2 from the cover letter

- Drop get/put_device() in device_rbtree_find();
- Add a mutex to synchronize iopf report and device release paths.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iommu/vt-d: Use rbtree to track iommu probed devicesdrivers/iommu/intel/dmar.c drivers/iommu/intel/iommu.c drivers/iommu/intel/iommu.h+96 -30 replies
2/2iommu/vt-d: Use device rbtree in iopf reporting pathdrivers/iommu/intel/dmar.c drivers/iommu/intel/iommu.c drivers/iommu/intel/iommu.h +1 more+15 -84 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJason GunthorpeLu Baolu
1/2R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] iommu/vt-d: Introduce rbtree for probed devices

This is a follow-up to the discussion thread here:

https://lore.kernel.org/linux-iommu/[email protected]/

This proposes a per-IOMMU red-black tree for iommu probed devices. It benefits fault handling paths, where the VT-d hardware reports the Source ID of the related device, and software needs to retrieve the corresponding device pointer based on this ID.

This is also available at github:

https://github.com/LuBaolu/intel-iommu/commits/rbtree-for-device-info-v2

Change log:

v2:
- Drop get/put_device() in device_rbtree_find();
- Add a mutex to synchronize iopf report and device release paths.

v1: https://lore.kernel.org/linux-iommu/[email protected]/

Lu Baolu (2):
iommu/vt-d: Use rbtree to track iommu probed devices iommu/vt-d: Use device rbtree in iopf reporting path

 drivers/iommu/intel/iommu.h | 10 ++++
 drivers/iommu/intel/dmar.c  |  4 +-
 drivers/iommu/intel/iommu.c | 91 ++++++++++++++++++++++++++++++++++++-
 drivers/iommu/intel/svm.c   | 17 +++----
 4 files changed, 111 insertions(+), 11 deletions(-)
Signature · 1 line
2.34.1