Skip to content

iommufd/selftest: Fix and cleanup for bus ops

Robin Murphy linux-iommu lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iommufd/selftest: Use a fwnode to distinguish devicesdrivers/iommu/iommufd/selftest.c+9 -05 replies
2/2iommufd/selftest: Use normal IOMMU registrationdrivers/iommu/iommu-priv.h drivers/iommu/iommu.c drivers/iommu/iommufd/iommufd_test.h +1 more+18 -733 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] iommufd/selftest: Fix and cleanup for bus ops

Hi all,

The bus ops removal relies on iommu_ops_from_fwnode(NULL) finding the "global" hardware driver ops on relevant platforms. Unfortunately I overlooked that this will also match the IOMMUFD mock driver, such that it can end up claiming to be the IOMMU for real platform etc. devices which don't have an IOMMU described by a fwspec. This mini-series addresses that.

I've split it so patch #1 is minimal fix that mitigates the issue and could be applied independently, then patch #2 then builds on it to take full advantage of the new machinery and coexist as a normal IOMMU driver. However they could be squashed if preferred.

Thanks,
Robin.

Robin Murphy (2):
iommufd/selftest: Use a fwnode to distinguish devices iommufd/selftest: Use normal IOMMU registration

 drivers/iommu/iommu-priv.h           |  7 -----
 drivers/iommu/iommu.c                | 46 +++-------------------------
 drivers/iommu/iommufd/iommufd_test.h |  2 ++
 drivers/iommu/iommufd/selftest.c     | 45 +++++++++++++--------------
 4 files changed, 27 insertions(+), 73 deletions(-)
Signature · 1 line
2.39.2.101.g768bb238c484.dirty