All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/6] drivers: Improve memory management for large object allocations when i915/shmem is used with iommu
@ 2026-11-09 11:37 Krzysztof Karas
  2026-11-09 11:37 ` [PATCH v8 1/6] drm/i915/shmem: Validate max_segment Krzysztof Karas
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Krzysztof Karas @ 2026-11-09 11:37 UTC (permalink / raw)
  To: intel-gfx, dri-devel
  Cc: Andi Shyti, Michał Grzelak, 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.

v8:
 * Removed Assisted-by: LLM tags.

Krzysztof Karas (6):
  drm/i915/shmem: Validate max_segment
  drm/i915/gem: Count mapped pages in a folio
  drm/i915/gem: Free sg table on failure to acquire second folio
  drm/i915/gem: Pull out size validation into a separate function
  drm/i915/gem: Read and shrink memory in a separate function
  drm/i915/gem: Remove iterator and use while loop

 drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 163 ++++++++++++++--------
 1 file changed, 101 insertions(+), 62 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-11-12 12:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 11:37 [PATCH v8 0/6] drivers: Improve memory management for large object allocations when i915/shmem is used with iommu Krzysztof Karas
2026-11-09 11:37 ` [PATCH v8 1/6] drm/i915/shmem: Validate max_segment Krzysztof Karas
2026-11-09 11:37 ` [PATCH v8 2/6] drm/i915/gem: Count mapped pages in a folio Krzysztof Karas
2026-11-12 12:29   ` Janusz Krzysztofik
2026-11-09 11:37 ` [PATCH v8 3/6] drm/i915/gem: Free sg table on failure to acquire second folio Krzysztof Karas
2026-11-09 11:37 ` [PATCH v8 4/6] drm/i915/gem: Pull out size validation into a separate function Krzysztof Karas
2026-11-09 11:37 ` [PATCH v8 5/6] drm/i915/gem: Read and shrink memory in " Krzysztof Karas
2026-11-09 11:37 ` [PATCH v8 6/6] drm/i915/gem: Remove iterator and use while loop Krzysztof Karas
2026-11-09 17:23 ` ✓ i915.CI.BAT: success for drivers: Improve memory management for large object allocations when i915/shmem is used with iommu 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.