[Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-11-28 Thread Chris Wilson
If we pipeline the PTE updates and then do the copy of those pages within a single unpreemptible command packet, we can submit the copies and leave them to be scheduled without having to synchronously wait under a global lock. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/Makefile

[Intel-gfx] [RFC 1/4] drm/i915/gt: Add an insert_entry for gen8_ppgtt

2020-11-28 Thread Chris Wilson
In the next patch, we will want to write a PTE for an explicit dma address, outside of the usual vma. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c b/drivers/gpu

[Intel-gfx] [RFC 3/4] drm/i915/gt: Export the pinned context constructor

2020-11-28 Thread Chris Wilson
Allow internal clients to create a pinned context. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gt/intel_engine.h| 8 drivers/gpu/drm/i915/gt/intel_engine_cs.c | 17 ++--- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/in

[Intel-gfx] [RFC 2/4] drm/i915/gt: Add a routine to iterate over the pagetables of a GTT

2020-11-28 Thread Chris Wilson
In the next patch, we will want to look at the dma addresses of individual page tables, so add a routine to iterate over them. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 49 drivers/gpu/drm/i915/gt/intel_gtt.h | 7 2 files changed,