public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix device removal order for Apple dart iommu
@ 2024-10-31 22:48 Janne Grunau
  2024-10-31 22:48 ` [PATCH 1/2] iommu: apple: Mark device with DM_FLAG_VITAL Janne Grunau
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Janne Grunau @ 2024-10-31 22:48 UTC (permalink / raw)
  To: Mark Kettenis, Tom Rini, Heinrich Schuchardt, Ilias Apalodimas
  Cc: u-boot, Janne Grunau

Starting with v2024.10 dev_iommu_dma_unmap calls during device removal
trigger a NULL pointer dereference since the the iommu device is removed
before its user. The sparsely used DM_FLAG_VITAL flag is intended for
this dependency.
This series adds it to the Apple dart iommu driver and implements the
two phased device removal to the EFI loader.

Signed-off-by: Janne Grunau <j@jannau.net>
---
Janne Grunau (2):
      iommu: apple: Mark device with DM_FLAG_VITAL
      efi_loader: remove non vital devices first

 drivers/iommu/apple_dart.c    | 2 +-
 lib/efi_loader/efi_boottime.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
---
base-commit: 1d147b74f437fb0e85821e8271fe52bc5fd30194
change-id: 20241031-iommu_apple_dart_ordering-558e62671512

Best regards,
-- 
Janne Grunau <j@jannau.net>


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

end of thread, other threads:[~2024-11-22  1:30 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 22:48 [PATCH 0/2] Fix device removal order for Apple dart iommu Janne Grunau
2024-10-31 22:48 ` [PATCH 1/2] iommu: apple: Mark device with DM_FLAG_VITAL Janne Grunau
2024-11-01  7:12   ` Heinrich Schuchardt
2024-11-01  7:12   ` Heinrich Schuchardt
2024-11-01 20:28   ` Mark Kettenis
2024-10-31 22:48 ` [PATCH 2/2] efi_loader: remove non vital devices first Janne Grunau
2024-11-01 20:29   ` Mark Kettenis
2024-11-13 12:47     ` Heinrich Schuchardt
2024-11-13 14:39       ` Simon Glass
2024-11-13 15:17         ` Heinrich Schuchardt
2024-11-13 16:03           ` Simon Glass
2024-11-13 18:45             ` Heinrich Schuchardt
2024-11-14  3:53               ` Simon Glass
2024-11-14 14:26                 ` Tom Rini
2024-11-14 17:52                   ` Simon Glass
2024-11-13 15:57         ` Mark Kettenis
2024-11-01  6:22 ` [PATCH 0/2] Fix device removal order for Apple dart iommu Sughosh Ganu
2024-11-01  8:09   ` Janne Grunau
2024-11-21  7:39 ` Janne Grunau
2024-11-22  1:30   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox