From: Matthew Brost <matthew.brost@intel.com>
To: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Cc: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
"Carlos Santa" <carlos.santa@intel.com>,
"Ryan Neph" <ryanneph@google.com>,
"Christian Koenig" <christian.koenig@amd.com>,
"Huang Rui" <ray.huang@amd.com>,
"Matthew Auld" <matthew.auld@intel.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
linux-kernel@vger.kernel.org,
"Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Subject: Re: [PATCH v3 19/33] drm/xe: Skip self-copies for borrowed pages on defrag moves
Date: Tue, 24 Nov 2026 08:21:10 -0800 [thread overview]
Message-ID: <awW5dgh6xO71QupN@gsse-cloud1.jf.intel.com> (raw)
In-Reply-To: <awW2mDswIkDpHO6F@gsse-cloud1.jf.intel.com>
On Tue, Nov 24, 2026 at 08:08:56AM -0800, Matthew Brost wrote:
> On Mon, Nov 09, 2026 at 08:25:00PM -0800, Niranjana Vishwanathapura wrote:
> > On Fri, Jul 10, 2026 at 07:56:05PM -0700, Matthew Brost wrote:
> > > A defrag move may harvest already beneficial-order chunks from the old
> > > tt, so the freshly reallocated backing borrows (references) some of the
> > > same physical pages. For those pages the source and destination GPU
> > > mappings alias the same memory, making the data blit a pointless
> > > self-copy.
> > >
> > > Pass the source (old) tt into __xe_migrate_copy() instead of just its sg
> > > table, so the data pass can compare the src and dst tt page arrays at the
> > > matching offset and only blit runs of pages that actually differ. A new
> > > emit_copy_chunks() helper walks each L0 chunk, skips borrowed-page runs,
> > > and coalesces contiguous to-copy pages into a single emit_copy(). It runs
> > > twice per chunk: once with a NULL batch buffer to count the blits for
> > > batch sizing, then again to emit them.
> > >
> > > When an entire L0 chunk turns out to be borrowed, skip it outright: no
> > > batch buffer is allocated and no GPU commands are issued, the cursors are
> > > just advanced past the chunk. If every chunk of the move is borrowed the
> > > copy is a complete no-op, so hand back a signaled stub fence.
> > >
> > > The comparison is a cheap per-page pointer test (src page != dst page)
> > > that coalesces contiguous to-copy pages into a single blit. PTEs are
> > > still emitted for partially borrowed chunks, since that setup is cheap and
> > > only the data copies are worth skipping. Only the defrag data pass is
> > > affected; the separate CCS pass still migrates all aux state.
> > >
> > > Since the Xe tt sg lives in the xe_ttm_tt subclass rather than the base
> > > ttm_tt, add an xe_tt_sg() helper to fetch it from a struct ttm_tt.
> > >
> > > Cc: Carlos Santa <carlos.santa@intel.com>
> > > Cc: Ryan Neph <ryanneph@google.com>
> > > Cc: Christian Koenig <christian.koenig@amd.com>
> > > Cc: Huang Rui <ray.huang@amd.com>
> > > Cc: Matthew Auld <matthew.auld@intel.com>
> > > Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> > > Cc: Maxime Ripard <mripard@kernel.org>
> > > Cc: Thomas Zimmermann <tzimmermann@suse.de>
> > > Cc: David Airlie <airlied@gmail.com>
> > > Cc: Simona Vetter <simona@ffwll.ch>
> > > Cc: dri-devel@lists.freedesktop.org
> > > Cc: linux-kernel@vger.kernel.org
> > > Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> > > Assisted-by: GitHub_Copilot:claude-opus-4.8
> > > Signed-off-by: Matthew Brost <matthew.brost@intel.com>
> > >
> > > ----
> > >
> > > v3:
> > > - Fix start_page page-shift and blit pitch for src-natural to
> > > dst-packed copies (Sashiko)
> > > ---
> > > drivers/gpu/drm/xe/xe_bo.c | 22 +++++-
> > > drivers/gpu/drm/xe/xe_bo.h | 2 +
> > > drivers/gpu/drm/xe/xe_migrate.c | 136 ++++++++++++++++++++++++++++----
> > > drivers/gpu/drm/xe/xe_migrate.h | 3 +-
> > > 4 files changed, 142 insertions(+), 21 deletions(-)
> > >
> > > diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> > > index bdcc9bed5d36..7f6ee9b8d12e 100644
> > > --- a/drivers/gpu/drm/xe/xe_bo.c
> > > +++ b/drivers/gpu/drm/xe/xe_bo.c
> > > @@ -473,6 +473,22 @@ struct sg_table *xe_bo_sg(struct xe_bo *bo)
> > > return xe_tt->sg;
> > > }
> > >
> > > +/**
> > > + * xe_tt_sg() - Return the DMA scatter-gather table backing a ttm_tt.
> > > + * @tt: The ttm_tt to query.
> > > + *
> > > + * Like xe_bo_sg(), but takes the ttm_tt directly. Used by the defrag copy
> > > + * path which needs the old (source) tt's sg table without a backing xe_bo.
> > > + *
> > > + * Return: The sg table, or NULL if the tt is not currently mapped.
> > > + */
> > > +struct sg_table *xe_tt_sg(struct ttm_tt *tt)
> > > +{
> > > + struct xe_ttm_tt *xe_tt = container_of(tt, struct xe_ttm_tt, ttm);
> > > +
> > > + return xe_tt->sg;
> > > +}
> >
> > Assisted-by: LLM
> >
>
> Yes.
>
> > xe_tt->sg can be potentially NULL (though probably not in current usecase).
> > Probably an explicit assert better?
> >
>
> Sashiko consisently tells asserts like that are useless and an assert
> pops and then you immediately NULL ptr deref. I tend to agree with that
> line of thinking.
>
> > > +
> > > /*
> > > * Account ttm pages against the device shrinker's shrinkable and
> > > * purgeable counts.
> > > @@ -1290,11 +1306,9 @@ static int xe_bo_move(struct ttm_buffer_object *ttm_bo, bool evict,
> > >
> > > fence = xe_migrate_clear(migrate, bo, new_mem, flags);
> > > } else if (ttm_bo->defrag_old_tt) {
> > > - struct xe_ttm_tt *old_xe_tt =
> > > - container_of(ttm_bo->defrag_old_tt, struct xe_ttm_tt, ttm);
> > > -
> > > fence = xe_migrate_copy_defrag(migrate, bo, old_mem, new_mem,
> > > - old_xe_tt->sg, handle_system_ccs);
> > > + ttm_bo->defrag_old_tt,
> > > + handle_system_ccs);
> > > } else {
> > > fence = xe_migrate_copy(migrate, bo, bo, old_mem, new_mem,
> > > handle_system_ccs);
> > > diff --git a/drivers/gpu/drm/xe/xe_bo.h b/drivers/gpu/drm/xe/xe_bo.h
> > > index 4186cb51af87..32211016a722 100644
> > > --- a/drivers/gpu/drm/xe/xe_bo.h
> > > +++ b/drivers/gpu/drm/xe/xe_bo.h
> > > @@ -110,6 +110,7 @@ enum xe_madv_purgeable_state {
> > > };
> > >
> > > struct sg_table;
> > > +struct ttm_tt;
> > >
> > > struct xe_bo *xe_bo_alloc(void);
> > > void xe_bo_free(struct xe_bo *bo);
> > > @@ -547,6 +548,7 @@ void xe_bo_dev_init(struct xe_bo_dev *bo_device);
> > > void xe_bo_dev_fini(struct xe_bo_dev *bo_device);
> > >
> > > struct sg_table *xe_bo_sg(struct xe_bo *bo);
> > > +struct sg_table *xe_tt_sg(struct ttm_tt *tt);
> > >
> > > /*
> > > * xe_sg_segment_size() - Provides upper limit for sg segment size.
> > > diff --git a/drivers/gpu/drm/xe/xe_migrate.c b/drivers/gpu/drm/xe/xe_migrate.c
> > > index 305c6e1942fb..9990a7144a9f 100644
> > > --- a/drivers/gpu/drm/xe/xe_migrate.c
> > > +++ b/drivers/gpu/drm/xe/xe_migrate.c
> > > @@ -811,6 +811,63 @@ static void emit_copy(struct xe_gt *gt, struct xe_bb *bb,
> > > emit_xy_fast_copy(gt, bb, src_ofs, dst_ofs, size, pitch);
> > > }
> > >
> > > +/*
> > > + * emit_copy_chunks() - Emit the data blits for one defrag L0 chunk, skipping
> > > + * borrowed pages.
> > > + * @gt: The GT.
> > > + * @bb: The batch buffer to emit into, or NULL to only count the blits needed.
> > > + * @src_L0_ofs: GPU offset of the source pages mapped for this L0 chunk.
> > > + * @dst_L0_ofs: GPU offset of the destination pages mapped for this L0 chunk.
> > > + * @src_L0: Byte size of the L0 chunk (page aligned).
> > > + * @src_tt: Source (old) tt providing the page pointers.
> > > + * @dst_tt: Destination (new) tt providing the page pointers.
> > > + * @start_page: Page offset of this L0 chunk within the tt page arrays.
> > > + *
> > > + * A defragmentation move may harvest already beneficial-order chunks from the
> > > + * old tt, so the new tt references (borrows) some of the same physical pages.
> > > + * For those pages the source and destination GPU mappings alias the same
> > > + * memory and the data blit is a pointless self-copy. Walk the L0 chunk and
> > > + * only blit runs of pages that actually differ (src page != dst page),
> > > + * coalescing contiguous to-copy pages into a single blit.
> > > + *
> > > + * Return: The number of blits emitted (or that would be emitted when @bb is
> > > + * NULL).
> > > + */
> > > +static u32 emit_copy_chunks(struct xe_gt *gt, struct xe_bb *bb,
> > > + u64 src_L0_ofs, u64 dst_L0_ofs, u32 src_L0,
> > > + struct ttm_tt *src_tt, struct ttm_tt *dst_tt,
> > > + pgoff_t start_page)
> > > +{
> >
> > emit_copy() doesn't have L0 in parameter names. Probably it is worth keeping
> > it consistent here also?
> >
>
> Sure.
>
> > > + u32 npages = src_L0 >> PAGE_SHIFT;
> > > + u32 i = 0, nblits = 0;
> > > +
> > > + while (i < npages) {
> > > + u32 run = 0;
> > > +
> > > + /* Skip a run of borrowed pages (src and dst alias). */
> > > + if (src_tt->pages[start_page + i] ==
> > > + dst_tt->pages[start_page + i]) {
> > > + i++;
> > > + continue;
> > > + }
> > > +
> > > + /* Coalesce a run of pages that actually need copying. */
> > > + while (i + run < npages &&
> > > + src_tt->pages[start_page + i + run] !=
> > > + dst_tt->pages[start_page + i + run])
> > > + run++;
> > > +
> > > + if (bb)
> > > + emit_copy(gt, bb, src_L0_ofs + (u64)i * PAGE_SIZE,
> > > + dst_L0_ofs + (u64)i * PAGE_SIZE,
> > > + run * PAGE_SIZE, XE_PAGE_SIZE);
> > > + nblits++;
> > > + i += run;
> > > + }
> > > +
> > > + return nblits;
> > > +}
> >
> > Would it be good or possible to have similar counterpart for emit_copy_ccs()?
> >
>
> I didn't do that as CCS ratio is 1/512 (iirc) of BO size thus not time
> critical. e.g., 1G buffer with a 32M defrag is 32M + 2M CCS copy.
>
Actuaully I forgot a CCS version is required when the IOVA mapping is partial.
So this patch actually add this functionality but only flipped on when
the IOVA mappin is partial:
https://patchwork.freedesktop.org/patch/739373/?series=170216&rev=2
Matt
> > > +
> > > static u64 xe_migrate_batch_base(struct xe_migrate *m, bool usm)
> > > {
> > > return usm ? m->usm_batch_base_ofs : m->batch_base_ofs;
> > > @@ -865,13 +922,15 @@ static u32 xe_migrate_ccs_copy(struct xe_migrate *m,
> > > * @is_vram_resolve: Decompression (VRAM -> system) resolve; always uses the
> > > * compression PAT index for the data copy.
> > > * @defrag_ccs: Defrag move pass that migrates only the CCS aux state between
> > > - * two distinct page sets (old @src_sg pages -> new pages). The data blit is
> > > + * two distinct page sets (old @src_tt pages -> new pages). The data blit is
> > > * skipped (the data was copied by the @defrag_copy pass) and both the source
> > > * and destination data pages are mapped with the compression PAT so the aux
> > > * state is copied indirect -> indirect.
> > > * @defrag_copy: Defrag move pass that copies the data pages between two
> > > - * distinct page sets (old @src_sg pages -> new pages) without touching the CCS
> > > - * aux state. The data pages are mapped without the compression PAT so the
> > > + * distinct page sets (old @src_tt pages -> new pages) without touching the CCS
> > > + * aux state. Pages the new tt borrowed from @src_tt (harvested already
> > > + * beneficial-order chunks) alias the same memory on both sides and are skipped.
> > > + * The data pages are mapped without the compression PAT so the
> > > * (possibly compressed) bytes are copied verbatim rather than being
> > > * decompressed and recompressed, and no CCS aux copy is appended; the aux
> > > * state is migrated separately by the @defrag_ccs pass. The two passes need
> > > @@ -889,7 +948,7 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m,
> > > struct xe_bo *dst_bo,
> > > struct ttm_resource *src,
> > > struct ttm_resource *dst,
> > > - struct sg_table *src_sg,
> > > + struct ttm_tt *src_tt,
> > > struct xe_migrate_copy_flags flags)
> > > {
> > > struct xe_gt *gt = m->tile->primary_gt;
> > > @@ -914,6 +973,14 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m,
> > > !flags.defrag_copy;
> > > bool copy_system_ccs = copy_ccs && (!src_is_vram || !dst_is_vram) &&
> > > !flags.defrag_ccs && !flags.defrag_copy;
> > > + /*
> > > + * On the defrag data pass the new (destination) tt may have borrowed
> > > + * already beneficial-order pages from the old (source) tt, so skip the
> > > + * self-copy for any page they share. Compare the tt page arrays at the
> > > + * matching offset.
> > > + */
> > > + struct ttm_tt *dst_tt = dst_bo->ttm.ttm;
> > > + bool skip_borrowed = flags.defrag_copy && src_tt && dst_tt;
> >
> > I think for our case src_tt and and dst_tt check is redundant here as they will
> > always be set for defrag_copy. May be add an assert instead of checking?
> >
>
> I think that right but will have to double check this true on HW.
>
> Matt
>
> > Niranjana
> >
> > >
> > > /*
> > > * For decompression operation, always use the compression PAT index.
> > > @@ -926,7 +993,7 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m,
> > >
> > > /*
> > > * The defrag CCS pass migrates the aux state from the old pages
> > > - * (@src_sg) to the new pages with both sides accessed indirectly, so
> > > + * (@src_tt) to the new pages with both sides accessed indirectly, so
> > > * keep both src_is_pltt and dst_is_pltt set (no direct staging side).
> > > */
> > >
> > > @@ -938,7 +1005,7 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m,
> > > return ERR_PTR(-EINVAL);
> > >
> > > if (!src_is_vram)
> > > - xe_res_first_sg(src_sg ? src_sg : xe_bo_sg(src_bo), 0, size, &src_it);
> > > + xe_res_first_sg(src_tt ? xe_tt_sg(src_tt) : xe_bo_sg(src_bo), 0, size, &src_it);
> > > else
> > > xe_res_first(src, 0, size, &src_it);
> > > if (!dst_is_vram)
> > > @@ -947,7 +1014,7 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m,
> > > xe_res_first(dst, 0, size, &dst_it);
> > >
> > > if (copy_system_ccs)
> > > - xe_res_first_sg(src_sg ? src_sg : xe_bo_sg(src_bo),
> > > + xe_res_first_sg(src_tt ? xe_tt_sg(src_tt) : xe_bo_sg(src_bo),
> > > xe_bo_ccs_pages_start(src_bo),
> > > PAGE_ALIGN(xe_device_ccs_bytes(xe, size)),
> > > &ccs_it);
> > > @@ -961,6 +1028,8 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m,
> > > u64 ccs_ofs, ccs_size;
> > > u32 ccs_pt;
> > > u32 pte_flags;
> > > + pgoff_t start_page = (xe_bo_size(src_bo) - size) >> PAGE_SHIFT;
> > > + u32 ndata_blits = 1;
> > >
> > > bool usm = xe->info.has_usm;
> > > u32 avail_pts = max_mem_transfer_per_pass(xe) / LEVEL0_PAGE_TABLE_ENCODE_SIZE;
> > > @@ -998,9 +1067,30 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m,
> > > xe_assert(xe, IS_ALIGNED(ccs_it.start, PAGE_SIZE));
> > > }
> > >
> > > - /* Add copy commands size here */
> > > + /*
> > > + * Add copy commands size here. On the defrag data pass the blit
> > > + * is split into one command per run of non-borrowed pages, so
> > > + * size for the number of runs actually needed.
> > > + */
> > > + if (skip_borrowed)
> > > + ndata_blits = emit_copy_chunks(gt, NULL, 0, 0, src_L0,
> > > + src_tt, dst_tt, start_page);
> > > +
> > > + /*
> > > + * If every page in this chunk was borrowed there is nothing to
> > > + * copy: don't build a batch or issue any GPU commands, just
> > > + * advance the cursors past the chunk. The non-vram tt cursors
> > > + * would otherwise be advanced by emit_pte().
> > > + */
> > > + if (skip_borrowed && !ndata_blits) {
> > > + xe_res_next(&src_it, src_L0);
> > > + xe_res_next(&dst_it, src_L0);
> > > + size -= src_L0;
> > > + continue;
> > > + }
> > > +
> > > batch_size += ((flags.copy_only_ccs || flags.defrag_ccs) ? 0 :
> > > - emit_copy_cmd_len(xe)) +
> > > + ndata_blits * emit_copy_cmd_len(xe)) +
> > > ((needs_ccs_emit ? EMIT_COPY_CCS_DW : 0));
> > >
> > > bb = xe_bb_new(gt, batch_size, usm);
> > > @@ -1029,7 +1119,10 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m,
> > > bb->cs[bb->len++] = MI_BATCH_BUFFER_END;
> > > update_idx = bb->len;
> > >
> > > - if (!flags.copy_only_ccs && !flags.defrag_ccs)
> > > + if (skip_borrowed)
> > > + emit_copy_chunks(gt, bb, src_L0_ofs, dst_L0_ofs, src_L0,
> > > + src_tt, dst_tt, start_page);
> > > + else if (!flags.copy_only_ccs && !flags.defrag_ccs)
> > > emit_copy(gt, bb, src_L0_ofs, dst_L0_ofs, src_L0, XE_PAGE_SIZE);
> > >
> > > if (needs_ccs_emit)
> > > @@ -1088,6 +1181,14 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m,
> > > return ERR_PTR(err);
> > > }
> > >
> > > + /*
> > > + * Every chunk of a defrag data pass may have been borrowed (nothing
> > > + * copied), leaving no job and a NULL fence. Hand back a signaled stub
> > > + * so callers always get a valid fence to wait on.
> > > + */
> > > + if (!fence)
> > > + return dma_fence_get_stub();
> > > +
> > > return fence;
> > > }
> > >
> > > @@ -1129,18 +1230,21 @@ struct dma_fence *xe_migrate_copy(struct xe_migrate *m,
> > > * @bo: The buffer object being defragmented. Both @src and @dst belong to @bo.
> > > * @src: The source TTM resource (the old backing).
> > > * @dst: The dst TTM resource (the freshly reallocated backing).
> > > - * @src_sg: Scatter-gather table of the source (old) backing pages.
> > > + * @src_tt: The source (old) backing tt, providing both the scatter-gather
> > > + * table and page pointers of the old pages.
> > > * @need_ccs: Whether the BO has CCS aux state that must be migrated too.
> > > *
> > > * Used by the defrag path where a single BO has its backing reallocated at a
> > > * more beneficial page order. The contents are relocated from the old pages
> > > - * (@src_sg) to the new pages (the BO's current backing) entirely on the GPU,
> > > + * (@src_tt) to the new pages (the BO's current backing) entirely on the GPU,
> > > * in up to two passes:
> > > *
> > > * - Data pass (always): copy the data pages verbatim. The pages are mapped
> > > * without the compression PAT, so the (possibly compressed) bytes are copied
> > > * as-is rather than being decompressed and recompressed, and no CCS aux copy
> > > - * is appended.
> > > + * is appended. Pages the new backing borrowed from @src_tt (harvested
> > > + * already beneficial-order chunks) alias the same memory on both sides and
> > > + * are skipped.
> > > *
> > > * - CCS pass (@need_ccs): copy the CCS aux (compression) state. Both the old
> > > * and new data pages are mapped with the compression PAT so the copy engine
> > > @@ -1159,11 +1263,11 @@ struct dma_fence *xe_migrate_copy_defrag(struct xe_migrate *m,
> > > struct xe_bo *bo,
> > > struct ttm_resource *src,
> > > struct ttm_resource *dst,
> > > - struct sg_table *src_sg,
> > > + struct ttm_tt *src_tt,
> > > bool need_ccs)
> > > {
> > > struct dma_fence *fence2, *fence =
> > > - __xe_migrate_copy(m, bo, bo, src, dst, src_sg,
> > > + __xe_migrate_copy(m, bo, bo, src, dst, src_tt,
> > > (struct xe_migrate_copy_flags) {
> > > .defrag_copy = true,
> > > });
> > > @@ -1171,7 +1275,7 @@ struct dma_fence *xe_migrate_copy_defrag(struct xe_migrate *m,
> > > if (IS_ERR(fence) || !need_ccs)
> > > return fence;
> > >
> > > - fence2 = __xe_migrate_copy(m, bo, bo, src, dst, src_sg,
> > > + fence2 = __xe_migrate_copy(m, bo, bo, src, dst, src_tt,
> > > (struct xe_migrate_copy_flags) {
> > > .defrag_ccs = true,
> > > });
> > > diff --git a/drivers/gpu/drm/xe/xe_migrate.h b/drivers/gpu/drm/xe/xe_migrate.h
> > > index e4f996942a6d..4094ea1c19c1 100644
> > > --- a/drivers/gpu/drm/xe/xe_migrate.h
> > > +++ b/drivers/gpu/drm/xe/xe_migrate.h
> > > @@ -13,6 +13,7 @@ struct drm_pagemap_addr;
> > > struct iosys_map;
> > > struct sg_table;
> > > struct ttm_resource;
> > > +struct ttm_tt;
> > >
> > > struct xe_bo;
> > > struct xe_gt;
> > > @@ -137,7 +138,7 @@ struct dma_fence *xe_migrate_copy_defrag(struct xe_migrate *m,
> > > struct xe_bo *bo,
> > > struct ttm_resource *src,
> > > struct ttm_resource *dst,
> > > - struct sg_table *src_sg,
> > > + struct ttm_tt *src_tt,
> > > bool need_ccs);
> > >
> > > struct dma_fence *xe_migrate_resolve(struct xe_migrate *m,
> > > --
> > > 2.34.1
> > >
next prev parent reply other threads:[~2026-11-24 16:24 UTC|newest]
Thread overview: 117+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-11 2:55 [PATCH v3 00/33] drm/ttm, drm/xe: Minimize dma-resv hold times and defragment sub-optimally backed BOs Matthew Brost
2026-07-11 2:55 ` [PATCH v3 01/33] drm/ttm/pool: Allow backing off reclaim at the beneficial order Matthew Brost
2026-11-06 2:55 ` Niranjana Vishwanathapura
2026-11-19 18:47 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 02/33] drm/ttm/pool: Add ttm_pool_page_order_nodma() helper Matthew Brost
2026-11-05 11:27 ` Matthew Auld
2026-11-06 2:30 ` Niranjana Vishwanathapura
2026-07-11 2:55 ` [PATCH v3 03/33] drm/ttm: Record sub-optimal page order allocations in ttm_tt Matthew Brost
2026-11-06 2:34 ` Niranjana Vishwanathapura
2026-11-06 20:06 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 04/33] drm/ttm: Introduce ttm_pool_alloc_iter for __ttm_pool_alloc() Matthew Brost
2026-11-06 2:39 ` Niranjana Vishwanathapura
2026-11-19 19:14 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 05/33] drm/ttm: Support defragmentation moves Matthew Brost
2026-11-06 2:51 ` Niranjana Vishwanathapura
2026-11-19 20:15 ` Matthew Brost
2026-11-21 6:30 ` Niranjana Vishwanathapura
2026-11-23 17:53 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 06/33] drm/ttm: Add fault injection for beneficial-order allocation failures Matthew Brost
2026-11-06 2:54 ` Niranjana Vishwanathapura
2026-11-19 20:49 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 07/33] drm/ttm: Harvest beneficial-order pages on defragmentation moves Matthew Brost
2026-11-10 2:37 ` Niranjana Vishwanathapura
2026-11-19 21:39 ` Matthew Brost
2026-11-20 23:09 ` Niranjana Vishwanathapura
2026-11-23 18:08 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 08/33] drm/ttm: Bound page (re)allocation per defragmentation move Matthew Brost
2026-11-10 2:44 ` Niranjana Vishwanathapura
2026-11-20 2:14 ` Matthew Brost
2026-11-20 20:37 ` Niranjana Vishwanathapura
2026-11-23 21:24 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 09/33] drm/ttm: Preallocate beneficial-order defrag pages outside the lock Matthew Brost
2026-11-11 0:29 ` Niranjana Vishwanathapura
2026-11-23 21:36 ` Matthew Brost
2026-11-11 7:49 ` Niranjana Vishwanathapura
2026-11-20 2:29 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 10/33] drm/ttm: Add full out-of-lock preallocation for ttm_pool_alloc() Matthew Brost
2026-11-11 7:31 ` Niranjana Vishwanathapura
2026-11-20 5:48 ` Matthew Brost
2026-11-21 5:03 ` Niranjana Vishwanathapura
2026-07-11 2:55 ` [PATCH v3 11/33] drm/gpusvm: Add a DMA-mapping accounting callback Matthew Brost
2026-11-04 3:41 ` Niranjana Vishwanathapura
2026-11-04 4:10 ` Niranjana Vishwanathapura
2026-11-04 21:35 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 12/33] drm/xe: Add debugfs stats for DMA-mapped pages per order Matthew Brost
2026-11-04 4:06 ` Niranjana Vishwanathapura
2026-11-04 21:45 ` Matthew Brost
2026-07-11 2:55 ` [PATCH v3 13/33] drm/xe: Flush L2 asynchronously in xe_bo_trigger_rebind() Matthew Brost
2026-11-03 12:02 ` Matthew Auld
2026-11-03 20:10 ` Matthew Brost
2026-07-11 2:56 ` [PATCH v3 14/33] drm/xe: Destroy page tables after unlinking all VMAs on VM close Matthew Brost
2026-11-04 1:44 ` Niranjana Vishwanathapura
2026-11-04 1:46 ` Matthew Brost
2026-07-11 2:56 ` [PATCH v3 15/33] drm/xe: Track BOs backed at a sub-optimal page order Matthew Brost
2026-11-07 4:49 ` Niranjana Vishwanathapura
2026-11-20 6:02 ` Matthew Brost
2026-07-11 2:56 ` [PATCH v3 16/33] drm/xe: Back off beneficial-order reclaim under defrag pressure Matthew Brost
2026-11-07 5:02 ` Niranjana Vishwanathapura
2026-11-20 6:08 ` Matthew Brost
2026-07-11 2:56 ` [PATCH v3 17/33] drm/xe: Add xe_migrate_copy_defrag() for on-GPU defrag copies Matthew Brost
2026-11-03 12:58 ` Matthew Auld
2026-11-03 20:08 ` Matthew Brost
2026-11-04 12:37 ` Matthew Auld
2026-11-20 6:11 ` Matthew Brost
2026-11-07 5:07 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 18/33] drm/xe: Handle defrag moves in xe_bo_move() Matthew Brost
2026-11-07 5:12 ` Niranjana Vishwanathapura
2026-11-24 15:37 ` Matthew Brost
2026-07-11 2:56 ` [PATCH v3 19/33] drm/xe: Skip self-copies for borrowed pages on defrag moves Matthew Brost
2026-11-10 4:25 ` Niranjana Vishwanathapura
2026-11-24 16:08 ` Matthew Brost
2026-11-24 16:21 ` Matthew Brost [this message]
2026-07-11 2:56 ` [PATCH v3 20/33] drm/xe: Add a page defragmentation worker Matthew Brost
2026-11-07 5:27 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 21/33] drm/xe: Add defrag GT stats Matthew Brost
2026-11-09 1:10 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 22/33] drm/xe: Add Kconfig.profile options for BO defrag configuration Matthew Brost
2026-11-09 1:31 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 23/33] drm/xe: Defrag using out-of-lock page preallocation Matthew Brost
2026-11-11 0:39 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 24/33] drm/xe: Add defrag profiling tracepoints Matthew Brost
2026-11-09 4:34 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 25/33] drm/xe: Preallocate system BO backing outside the dma-resv lock Matthew Brost
2026-11-11 7:36 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 26/33] drm/xe: Add tracepoint for xe_gem_create_ioctl Matthew Brost
2026-11-11 7:37 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 27/33] drm/xe: Add IOVA-based xe_res_cursor variant Matthew Brost
2026-11-04 12:23 ` Matthew Auld
2026-11-13 6:14 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 28/33] drm/xe: Use IOVA-based DMA mapping for eligible tt BOs Matthew Brost
2026-11-03 19:00 ` Matthew Auld
2026-11-03 20:21 ` Matthew Brost
2026-11-04 11:39 ` Matthew Auld
2026-11-05 3:04 ` Matthew Brost
2026-11-13 6:28 ` Niranjana Vishwanathapura
2026-11-13 20:09 ` Matthew Brost
2026-11-16 4:10 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 29/33] drm/xe: Add per-device dependency scheduler for IOVA defrag finalize Matthew Brost
2026-11-14 1:47 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 30/33] drm/xe: Add packed copy-step IOVA mapping for defrag Matthew Brost
2026-11-14 1:52 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 31/33] drm/xe: Blit src-natural to dst-packed for defrag-IOVA copies Matthew Brost
2026-11-14 1:57 ` Niranjana Vishwanathapura
2026-11-16 0:41 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 32/33] drm/xe: Finalize defrag-IOVA moves with post-copy job Matthew Brost
2026-11-14 2:02 ` Niranjana Vishwanathapura
2026-07-11 2:56 ` [PATCH v3 33/33] drm/amdgpu: Preallocate system BO pages outside the reservation lock Matthew Brost
2026-07-11 10:46 ` Christian König
2026-07-13 20:24 ` Matthew Brost
2026-07-14 9:17 ` Christian König
2026-07-14 15:15 ` Matthew Brost
2026-07-11 3:05 ` ✗ CI.checkpatch: warning for drm/ttm, drm/xe: Minimize dma-resv hold times and defragment sub-optimally backed BOs (rev2) Patchwork
2026-07-11 3:07 ` ✓ CI.KUnit: success " Patchwork
2026-07-11 3:22 ` ✗ CI.checksparse: warning " Patchwork
2026-07-11 3:42 ` ✓ Xe.CI.BAT: success " Patchwork
2026-07-11 10:20 ` ✓ Xe.CI.FULL: " Patchwork
2026-11-16 1:01 ` [PATCH v3 00/33] drm/ttm, drm/xe: Minimize dma-resv hold times and defragment sub-optimally backed BOs Niranjana Vishwanathapura
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awW5dgh6xO71QupN@gsse-cloud1.jf.intel.com \
--to=matthew.brost@intel.com \
--cc=airlied@gmail.com \
--cc=carlos.santa@intel.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=matthew.auld@intel.com \
--cc=mripard@kernel.org \
--cc=niranjana.vishwanathapura@intel.com \
--cc=ray.huang@amd.com \
--cc=ryanneph@google.com \
--cc=simona@ffwll.ch \
--cc=thomas.hellstrom@linux.intel.com \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox