public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
* Xe performance regression with recent IOMMU changes
@ 2026-01-21 13:02 Francois Dugast
  2026-01-21 13:11 ` Jason Gunthorpe
  0 siblings, 1 reply; 10+ messages in thread
From: Francois Dugast @ 2026-01-21 13:02 UTC (permalink / raw)
  To: iommu
  Cc: intel-xe, Francois Dugast, Jason Gunthorpe, Joerg Roedel,
	Calvin Owens, David Woodhouse, Will Deacon, Robin Murphy,
	Samiullah Khawaja, Matthew Brost, Thomas Hellström,
	Tina Zhang, Lu Baolu, Kevin Tian

I am reporting a slowdown in Xe caused by a couple of IOMMU changes. It
can be observed during DMA mappings/unmappings required to issue copies
between system memory and the device, when handling GPU faults. Not sure
how other use cases or vendors are affected but below is the impact on
execution times for BMG:

Before changes:
  4KB
    drm_pagemap_migrate_map_pages: 0.4 us
    drm_pagemap_migrate_unmap_pages: 0.4 us
  64KB
    drm_pagemap_migrate_map_pages: 2.5 us
    drm_pagemap_migrate_unmap_pages: 3.5 us
  2MB
    drm_pagemap_migrate_map_pages: 88 us
    drm_pagemap_migrate_unmap_pages: 108 us

After changes:
  4KB
    drm_pagemap_migrate_map_pages: 0.7 us
    drm_pagemap_migrate_unmap_pages: 0.7 us
  64KB
    drm_pagemap_migrate_map_pages: 3.5 us
    drm_pagemap_migrate_unmap_pages: 10.5 us
  2MB
    drm_pagemap_migrate_map_pages: 102 us
    drm_pagemap_migrate_unmap_pages: 330 us

Bisecting points to these commits:
  d373449d8e97 iommu/vt-d: Use the generic iommu page table
  d856f9d27885 iommupt/vtd: Allow VT-d to have a larger table top than the vasz requires

Simply reverting them brings back performance.

Any idea about why and how to fix it?

Thanks,
Francois

Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>
Cc: Calvin Owens <calvin@wbinvd.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Will Deacon <will@kernel.org>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Samiullah Khawaja <skhawaja@google.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Tina Zhang <tina.zhang@intel.com>
Cc: Lu Baolu <baolu.lu@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>

-- 
2.43.0


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

end of thread, other threads:[~2026-01-23 19:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-21 13:02 Xe performance regression with recent IOMMU changes Francois Dugast
2026-01-21 13:11 ` Jason Gunthorpe
2026-01-21 18:04   ` Jason Gunthorpe
2026-01-22  6:15     ` Matthew Brost
2026-01-22  7:29       ` Leon Romanovsky
2026-01-22  7:36         ` Matthew Brost
2026-01-22 10:26           ` Leon Romanovsky
2026-01-22 13:31       ` Jason Gunthorpe
2026-01-23 16:27         ` Francois Dugast
2026-01-23 19:07           ` Jason Gunthorpe

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