All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iommu/amd-vi: remove zeroing of MMIO region
@ 2026-05-06 13:55 Roger Pau Monne
  2026-05-06 13:55 ` [PATCH v2 1/2] iommu/amd-vi: allow disable_iommu() against non-initialized IOMMUs Roger Pau Monne
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Roger Pau Monne @ 2026-05-06 13:55 UTC (permalink / raw)
  To: xen-devel
  Cc: Roger Pau Monne, Jan Beulich, Andrew Cooper, Jason Andryuk,
	Teddy Astie

Hello,

Unconditionally zeroing the whole IOMMU MMIO region is dangerous, at
least on an upcoming platform this does put the IOMMU in a broken state
that's not recoverable by the init procedure in Xen.

Get rid of the zeroing, and instead attempt to disable the IOMMU ahead
of enabling it.

Thanks, Roger.

Roger Pau Monne (2):
  iommu/amd-vi: allow disable_iommu() against non-initialized IOMMUs
  iommu/amd-vi: do not zero IOMMU MMIO region

 xen/drivers/passthrough/amd/iommu_init.c | 41 +++++++++++++-----------
 1 file changed, 22 insertions(+), 19 deletions(-)

-- 
2.53.0



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

end of thread, other threads:[~2026-05-07  7:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 13:55 [PATCH v2 0/2] iommu/amd-vi: remove zeroing of MMIO region Roger Pau Monne
2026-05-06 13:55 ` [PATCH v2 1/2] iommu/amd-vi: allow disable_iommu() against non-initialized IOMMUs Roger Pau Monne
2026-05-06 13:55 ` [PATCH v2 2/2] iommu/amd-vi: do not zero IOMMU MMIO region Roger Pau Monne
2026-05-06 16:18   ` Andrew Cooper
2026-05-06 16:31     ` Roger Pau Monné
2026-05-07  7:57     ` Jan Beulich
2026-05-06 16:49 ` [PATCH v2 0/2] iommu/amd-vi: remove zeroing of " Marek Marczykowski-Górecki
2026-05-06 16:55   ` Roger Pau Monné

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.