All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] drivers: Improve memory management for large object allocations when i915/shmem is used with iommu
@ 2026-06-25 13:43 Krzysztof Karas
  2026-06-25 13:43 ` [PATCH 1/3] drivers/iommu: Unroll unsuccessful mapping Krzysztof Karas
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Krzysztof Karas @ 2026-06-25 13:43 UTC (permalink / raw)
  To: intel-gfx, dri-devel, iommu
  Cc: Andi Shyti, Robin Murphy, Joerg Roedel, Janusz Krzysztofik,
	Sebastian Brzezinka, Krzysztof Niemiec, Krzysztof Karas

It was observed that allocating large objects via i915 driver
(igt-gpu-tools/tests/gem_exec_big/single) the folios and their
pages were not handled properly leading to buffer corruptions
during relocations.
Furthermore, using iommu driver in this context would leave
residual mappings in memory that could not be released, hogging
available RAM even after the process ended.

Krzysztof Karas (3):
  drivers/iommu: Unroll unsuccessful mapping
  drm/i915/gem: split shared memory allocation table logic
  drm/i915/shmem: Count mapped pages in a folio

 drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 191 +++++++++++++---------
 drivers/iommu/dma-iommu.c                 |  10 +-
 2 files changed, 125 insertions(+), 76 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-06-25 23:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-25 13:43 [PATCH 0/3] drivers: Improve memory management for large object allocations when i915/shmem is used with iommu Krzysztof Karas
2026-06-25 13:43 ` [PATCH 1/3] drivers/iommu: Unroll unsuccessful mapping Krzysztof Karas
2026-06-25 13:57   ` sashiko-bot
2026-06-25 14:29   ` Robin Murphy
2026-06-25 15:48   ` Michał Grzelak
2026-06-25 13:43 ` [PATCH 2/3] drm/i915/gem: split shared memory allocation table logic Krzysztof Karas
2026-06-25 13:54   ` sashiko-bot
2026-06-25 13:43 ` [PATCH 3/3] drm/i915/shmem: Count mapped pages in a folio Krzysztof Karas
2026-06-25 16:43 ` ✓ i915.CI.BAT: success for drivers: Improve memory management for large object allocations when i915/shmem is used with iommu Patchwork
2026-06-25 23:16 ` ✗ i915.CI.Full: failure " Patchwork

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.