1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/iommu/amd
Jason Gunthorpe eda1a94caf iommu: Mark dev_iommu_priv_set() with a lockdep
A perfect driver would only call dev_iommu_priv_set() from its probe
callback. We've made it functionally correct to call it from the of_xlate
by adding a lock around that call.

lockdep assert that iommu_probe_device_lock is held to discourage misuse.

Exclude PPC kernels with CONFIG_FSL_PAMU turned on because FSL_PAMU uses a
global static for its priv and abuses priv for its domain.

Remove the pointless stores of NULL, all these are on paths where the core
code will free dev->iommu after the op returns.

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Tested-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/5-v2-16e4def25ebb+820-iommu_fwspec_p1_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2023-12-12 10:18:49 +01:00
..
amd_iommu.h iommu/amd: Remove PPR support 2023-10-06 16:01:54 +02:00
amd_iommu_types.h IOMMU Updates for Linux v6.7 2023-11-09 13:37:28 -08:00
debugfs.c iommu/amd: Move AMD IOMMU driver into subdirectory 2020-06-10 17:46:42 +02:00
init.c iommu/amd: Remove unused EXPORT_SYMBOLS 2023-10-06 16:01:55 +02:00
io_pgtable.c iommu/amd: Access/Dirty bit support in IOPTEs 2023-10-24 11:58:43 -03:00
io_pgtable_v2.c iommu/amd: Miscellaneous clean up when free domain 2023-09-25 12:39:02 +02:00
iommu.c iommu: Mark dev_iommu_priv_set() with a lockdep 2023-12-12 10:18:49 +01:00
Kconfig IOMMU Updates for Linux v6.7 2023-11-09 13:37:28 -08:00
Makefile iommu/amd: Remove iommu_v2 module 2023-10-06 16:01:52 +02:00
quirks.c iommu/amd: Include PCI segment ID when initialize IOMMU 2022-07-07 09:37:51 +02:00