linux-snps-arc.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] IOMMU related FW parsing cleanup
@ 2023-12-07 18:03 Jason Gunthorpe
  2023-12-07 18:03 ` [PATCH v2 1/7] iommu: Remove struct iommu_ops *iommu from arch_setup_dma_ops() Jason Gunthorpe
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Jason Gunthorpe @ 2023-12-07 18:03 UTC (permalink / raw)
  To: David Airlie, Alyssa Rosenzweig, Albert Ou, asahi,
	Catalin Marinas, Danilo Krummrich, Daniel Vetter, Dexuan Cui,
	devicetree, dmaengine, dri-devel, David Woodhouse, Frank Rowand,
	Haiyang Zhang, iommu, Jon Hunter, Joerg Roedel, Karol Herbst,
	Krzysztof Kozlowski, K. Y. Srinivasan, Laxman Dewangan,
	Len Brown, linux-acpi, linux-arm-kernel, linux-hyperv,
	linux-mips, linux-riscv, linux-snps-arc, linux-tegra,
	Russell King, Lyude Paul, Marek Szyprowski, nouveau,
	Palmer Dabbelt, Paul Walmsley, Rafael J. Wysocki, Rob Herring,
	Robin Murphy, Suravee Suthikulpanit, Sven Peter,
	Thomas Bogendoerfer, Vineet Gupta, Vinod Koul, Wei Liu,
	Will Deacon
  Cc: Lu Baolu, Christoph Hellwig, Jerry Snitselaar, Hector Martin,
	Moritz Fischer, Moritz Fischer, patches, Rafael J. Wysocki,
	Rob Herring, Thierry Reding, Thierry Reding

These are the patches from the from the prior series without the "fwspec
polishing":
 https://lore.kernel.org/r/0-v2-36a0088ecaa7+22c6e-iommu_fwspec_jgg@nvidia.com

Does a few things to prepare for the next:

- Clean up the call chains around dma_configure so the iommu_ops isn't being
  exposed.

- Add additional lockdep annotations now that we can.

- Fix some missed places that need to call tegra_dev_iommu_get_stream_id()

Based on Joerg's for-next with Robin's bus changes.

Robin's dma_base/size cleanup squashes the first patch, but we can't do
the ops removal in the other parts without it, so let's keep it
unsquashed.

v2:
 - Remove comments and bracket around tegra_dev_iommu_get_stream_id()
   in gp10b.c
 - Remove WARN_ON() in tegra186_mc_client_sid_override(), just return 0
 - Push the locking change to a later series
 - Drop the COMPILE_TEST improvement, not important enough to argue.
v1: https://lore.kernel.org/r/0-v1-720585788a7d+811b-iommu_fwspec_p1_jgg@nvidia.com

Jason Gunthorpe (7):
  iommu: Remove struct iommu_ops *iommu from arch_setup_dma_ops()
  iommmu/of: Do not return struct iommu_ops from of_iommu_configure()
  iommu/of: Use -ENODEV consistently in of_iommu_configure()
  iommu: Mark dev_iommu_get() with lockdep
  iommu: Mark dev_iommu_priv_set() with a lockdep
  acpi: Do not return struct iommu_ops from acpi_iommu_configure_id()
  iommu/tegra: Use tegra_dev_iommu_get_stream_id() in the remaining
    places

 arch/arc/mm/dma.c                             |  2 +-
 arch/arm/mm/dma-mapping-nommu.c               |  2 +-
 arch/arm/mm/dma-mapping.c                     | 10 +--
 arch/arm64/mm/dma-mapping.c                   |  4 +-
 arch/mips/mm/dma-noncoherent.c                |  2 +-
 arch/riscv/mm/dma-noncoherent.c               |  2 +-
 drivers/acpi/scan.c                           | 32 ++++++----
 drivers/dma/tegra186-gpc-dma.c                |  8 +--
 .../gpu/drm/nouveau/nvkm/subdev/ltc/gp10b.c   |  9 +--
 drivers/hv/hv_common.c                        |  2 +-
 drivers/iommu/amd/iommu.c                     |  2 -
 drivers/iommu/apple-dart.c                    |  1 -
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   |  1 -
 drivers/iommu/arm/arm-smmu/arm-smmu.c         |  1 -
 drivers/iommu/intel/iommu.c                   |  2 -
 drivers/iommu/iommu.c                         | 11 ++++
 drivers/iommu/of_iommu.c                      | 64 ++++++++-----------
 drivers/iommu/omap-iommu.c                    |  1 -
 drivers/memory/tegra/tegra186.c               | 14 ++--
 drivers/of/device.c                           | 24 ++++---
 include/linux/dma-map-ops.h                   |  4 +-
 include/linux/iommu.h                         |  5 +-
 include/linux/of_iommu.h                      | 13 ++--
 23 files changed, 105 insertions(+), 111 deletions(-)


base-commit: 173ff345925a394284250bfa6e47d231e62031c7
-- 
2.43.0


_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-12-12  9:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-07 18:03 [PATCH v2 0/7] IOMMU related FW parsing cleanup Jason Gunthorpe
2023-12-07 18:03 ` [PATCH v2 1/7] iommu: Remove struct iommu_ops *iommu from arch_setup_dma_ops() Jason Gunthorpe
2023-12-07 18:03 ` [PATCH v2 2/7] iommmu/of: Do not return struct iommu_ops from of_iommu_configure() Jason Gunthorpe
2023-12-07 18:03 ` [PATCH v2 3/7] iommu/of: Use -ENODEV consistently in of_iommu_configure() Jason Gunthorpe
2023-12-07 18:03 ` [PATCH v2 4/7] iommu: Mark dev_iommu_get() with lockdep Jason Gunthorpe
2023-12-07 18:03 ` [PATCH v2 5/7] iommu: Mark dev_iommu_priv_set() with a lockdep Jason Gunthorpe
2023-12-07 18:03 ` [PATCH v2 6/7] acpi: Do not return struct iommu_ops from acpi_iommu_configure_id() Jason Gunthorpe
2023-12-07 18:03 ` [PATCH v2 7/7] iommu/tegra: Use tegra_dev_iommu_get_stream_id() in the remaining places Jason Gunthorpe
2023-12-12  9:19 ` [PATCH v2 0/7] IOMMU related FW parsing cleanup Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).