u-boot/drivers/iommu
Tom Rini 880fcc49eb Merge patch series "Fix device removal order for Apple dart iommu"
Janne Grunau <j@jannau.net> says:

Starting with v2024.10 dev_iommu_dma_unmap calls during device removal
trigger a NULL pointer dereference in the Apple dart iommu driver. The
iommu device is removed before its user. The sparsely used DM_FLAG_VITAL
flag is intended to describe this dependency. Add it to the driver.

Adding this flag is unfortunately not enough since the boot routines
except the arm one simply remove all drivers. Add and use a new function
which calls
    dm_remove_devioce_flags(DM_REMOVE_ACTIVE_ALL | DM_REMOVE_NON_VITAL);
    dm_remove_devices_flags(DM_REMOVE_ACTIVE_ALL);
to ensure this order dependency is head consistently.

Link: https://lore.kernel.org/r/20241123-iommu_apple_dart_ordering-v2-0-cc2ade6dde97@jannau.net
2024-11-24 15:41:32 -06:00
..
apple_dart.c iommu: apple: Mark device with DM_FLAG_VITAL 2024-11-24 15:41:28 -06:00
iommu-uclass.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Kconfig iommu: add qcom-hyp-smmu 2023-12-21 11:59:49 -05:00
Makefile iommu: add qcom-hyp-smmu 2023-12-21 11:59:49 -05:00
qcom-hyp-smmu.c iommu: qcom-smmu: handle running in el2 2024-11-20 17:57:58 +01:00
sandbox_iommu.c sandbox: iommu: remove lmb allocation in the driver 2024-09-03 14:08:50 -06:00