On Sat, 23 Nov 2024 22:44:03 +0100, Janne Grunau wrote: > 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. > > [...]
Applied to u-boot/master, thanks! -- Tom

