drm/i915/dg1: Fix mapping type for default state object
Subsystems (3)
PATCH 1/7 drm/i915/dg1: Fix mapping type for default state object
From: Venkata Ramana Nayana <[email protected]>
Use I915_MAP_WC when default state object is allocated in LMEM.
--- drivers/gpu/drm/i915/gt/shmem_utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/shmem_utils.c +3 -1
@@ -8,6 +8,7 @@#include <linux/shmem_fs.h> #include "gem/i915_gem_object.h" +#include "gem/i915_gem_lmem.h" #include "shmem_utils.h" struct file *shmem_create_from_data (const char *name,void *data,size_t len)
@@ -39,7 +40,8 @@ struct file *shmem_create_from_object(struct drm_i915_gem_object *obj)return file; } - ptr =i915_gem_object_pin_map_unlocked (obj,I915_MAP_WB ); + ptr =i915_gem_object_pin_map_unlocked (obj,i915_gem_object_is_lmem (obj) ? +I915_MAP_WC :I915_MAP_WB );if (IS_ERR (ptr))return ERR_CAST (ptr);
Signature · 6 lines
2.26.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/7 drm/i915: Update the helper to set correct mapping
From: Venkata Sandeep Dhanalakota <[email protected]>
Determine the possible coherent map type based on object location, and if target has llc or if user requires an always coherent mapping.
--- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 2 +- drivers/gpu/drm/i915/gt/intel_lrc.c | 4 +++- drivers/gpu/drm/i915/gt/intel_ring.c | 9 ++++++--- drivers/gpu/drm/i915/gt/selftest_context.c | 3 ++- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_lrc.c | 4 +++- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 4 +++- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 4 +++- drivers/gpu/drm/i915/i915_drv.h | 11 +++++++++-- drivers/gpu/drm/i915/selftests/igt_spinner.c | 4 ++-- 10 files changed, 34 insertions(+), 15 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_pm.c +1 -1
@@ -23,7 +23,7 @@ static void dbg_poison_ce(struct intel_context *ce)if (ce->state) {struct drm_i915_gem_object *obj = ce->state->obj; -int type =i915_coherent_map_type (ce->engine->i915); +int type =i915_coherent_map_type (ce->engine->i915, obj, true);void *map;if (!i915_gem_object_trylock (obj))
drivers/gpu/drm/i915/gt/intel_lrc.c +3 -1
@@ -903,7 +903,9 @@ lrc_pre_pin(struct intel_context *ce,GEM_BUG_ON (!i915_vma_is_pinned (ce->state)); *vaddr =i915_gem_object_pin_map (ce->state->obj, -i915_coherent_map_type (ce->engine->i915) | +i915_coherent_map_type (ce->engine->i915, + ce->state->obj, + false) |I915_MAP_OVERRIDE );return PTR_ERR_OR_ZERO (*vaddr);
drivers/gpu/drm/i915/gt/intel_ring.c +6 -3
@@ -53,9 +53,12 @@ int intel_ring_pin(struct intel_ring *ring, struct i915_gem_ww_ctx *ww)if (i915_vma_is_map_and_fenceable (vma)) addr = (void __force *)i915_vma_pin_iomap (vma); -else - addr =i915_gem_object_pin_map (vma->obj, -i915_coherent_map_type (vma->vm->i915)); +else { +int type =i915_coherent_map_type (vma->vm->i915, vma->obj, false); + + addr =i915_gem_object_pin_map (vma->obj, type); + } +if (IS_ERR (addr)) { ret =PTR_ERR (addr); goto err_ring;
drivers/gpu/drm/i915/gt/selftest_context.c +2 -1
@@ -88,7 +88,8 @@ static int __live_context_size(struct intel_engine_cs *engine) goto err; vaddr =i915_gem_object_pin_map_unlocked (ce->state->obj, -i915_coherent_map_type (engine->i915)); +i915_coherent_map_type (engine->i915, + ce->state->obj, false));if (IS_ERR (vaddr)) { err =PTR_ERR (vaddr);intel_context_unpin (ce);
drivers/gpu/drm/i915/gt/selftest_hangcheck.c +2 -2
@@ -69,7 +69,7 @@ static int hang_init(struct hang *h, struct intel_gt *gt) h->seqno =memset (vaddr,0xff ,PAGE_SIZE ); vaddr =i915_gem_object_pin_map_unlocked (h->obj, -i915_coherent_map_type (gt->i915)); +i915_coherent_map_type (gt->i915, h->obj, false));if (IS_ERR (vaddr)) { err =PTR_ERR (vaddr); goto err_unpin_hws;
@@ -130,7 +130,7 @@ hang_create_request(struct hang *h, struct intel_engine_cs *engine)return ERR_CAST (obj); } - vaddr =i915_gem_object_pin_map_unlocked (obj,i915_coherent_map_type (gt->i915)); + vaddr =i915_gem_object_pin_map_unlocked (obj,i915_coherent_map_type (gt->i915, obj, false));if (IS_ERR (vaddr)) {i915_gem_object_put (obj);i915_vm_put (vm);
drivers/gpu/drm/i915/gt/selftest_lrc.c +3 -1
@@ -1221,7 +1221,9 @@ static int compare_isolation(struct intel_engine_cs *engine, } lrc =i915_gem_object_pin_map_unlocked (ce->state->obj, -i915_coherent_map_type (engine->i915)); +i915_coherent_map_type (engine->i915, + ce->state->obj, + false));if (IS_ERR (lrc)) { err =PTR_ERR (lrc); goto err_B1;
drivers/gpu/drm/i915/gt/uc/intel_guc.c +3 -1
@@ -682,7 +682,9 @@ int intel_guc_allocate_and_map_vma(struct intel_guc *guc, u32 size,if (IS_ERR (vma))return PTR_ERR (vma); - vaddr =i915_gem_object_pin_map_unlocked (vma->obj,I915_MAP_WB ); + vaddr =i915_gem_object_pin_map_unlocked (vma->obj, +i915_coherent_map_type (guc_to_gt (guc)->i915, + vma->obj, true));if (IS_ERR (vaddr)) {i915_vma_unpin_and_release (&vma,0 );return PTR_ERR (vaddr);
drivers/gpu/drm/i915/gt/uc/intel_huc.c +3 -1
@@ -82,7 +82,9 @@ static int intel_huc_rsa_data_create(struct intel_huc *huc)if (IS_ERR (vma))return PTR_ERR (vma); - vaddr =i915_gem_object_pin_map_unlocked (vma->obj,I915_MAP_WB ); + vaddr =i915_gem_object_pin_map_unlocked (vma->obj, +i915_coherent_map_type (gt->i915, + vma->obj, true));if (IS_ERR (vaddr)) {i915_vma_unpin_and_release (&vma,0 );return PTR_ERR (vaddr);
drivers/gpu/drm/i915/i915_drv.h +9 -2
@@ -78,6 +78,7 @@#include "gem/i915_gem_context_types.h" #include "gem/i915_gem_shrinker.h" #include "gem/i915_gem_stolen.h" +#include "gem/i915_gem_lmem.h" #include "gt/intel_engine.h" #include "gt/intel_gt_types.h"
@@ -1936,9 +1937,15 @@ static inline int intel_hws_csb_write_index(struct drm_i915_private *i915) }static inline enum i915_map_type -i915_coherent_map_type (struct drm_i915_private *i915) +i915_coherent_map_type (struct drm_i915_private *i915, +struct drm_i915_gem_object *obj,bool always_coherent) { -return HAS_LLC (i915) ?I915_MAP_WB :I915_MAP_WC ; +if (i915_gem_object_is_lmem (obj)) +return I915_MAP_WC ; +if (HAS_LLC (i915) || always_coherent) +return I915_MAP_WB ; +else +return I915_MAP_WC ; }#endif
drivers/gpu/drm/i915/selftests/igt_spinner.c +2 -2
@@ -94,9 +94,9 @@ int igt_spinner_pin(struct igt_spinner *spin, }if (!spin->batch) { -unsigned int mode = -i915_coherent_map_type (spin->gt->i915); +unsigned int mode; + mode =i915_coherent_map_type (spin->gt->i915, spin->obj, false); vaddr =igt_spinner_pin_obj (ce, ww, spin->obj, mode, &spin->batch_vma);if (IS_ERR (vaddr))return PTR_ERR (vaddr);
Signature · 6 lines
2.26.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/7 drm/i915/gtt: map the PD up front
In reply to Matthew AuldWe need to general our accessor for the page directories and tables from using the simple kmap_atomic to support local memory, and this setup must be done on acquisition of the backing storage prior to entering fence execution contexts. Here we replace the kmap with the object maping code that for simple single page shmemfs object will return a plain kmap, that is then kept for the lifetime of the page directory.
v2: (Thomas) Rebase on dma_resv and obj->mm.lock removal.
--- .../drm/i915/gem/selftests/i915_gem_context.c | 11 +---- drivers/gpu/drm/i915/gt/gen6_ppgtt.c | 11 ++--- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 26 ++++------ drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/gt/intel_gtt.c | 48 +++++++++---------- drivers/gpu/drm/i915/gt/intel_gtt.h | 11 +++-- drivers/gpu/drm/i915/gt/intel_ppgtt.c | 7 ++- drivers/gpu/drm/i915/i915_vma.c | 3 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 10 ++-- drivers/gpu/drm/i915/selftests/i915_perf.c | 3 +- 10 files changed, 54 insertions(+), 78 deletions(-)
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +2 -9
@@ -1740,7 +1740,6 @@ static int read_from_scratch(struct i915_gem_context *ctx,static int check_scratch_page (struct i915_gem_context *ctx,u32 *out) {struct i915_address_space *vm; -struct page *page;u32 *vaddr;int err =0 ;
@@ -1748,24 +1747,18 @@ static int check_scratch_page(struct i915_gem_context *ctx, u32 *out)if (!vm)return -ENODEV ; - page =__px_page (vm->scratch[0 ]); -if (!page) { +if (!vm->scratch[0 ]) {pr_err ("No scratch page!\n" );return -EINVAL ; } - vaddr =kmap (page); -if (!vaddr) { -pr_err ("No (mappable) scratch page!\n" ); -return -EINVAL ; - } + vaddr =__px_vaddr (vm->scratch[0 ]);memcpy (out, vaddr,sizeof (*out));if (memchr_inv (vaddr, *out,PAGE_SIZE )) {pr_err ("Inconsistent initial state of scratch page!\n" ); err = -EINVAL ; } -kunmap (page);return err; }
drivers/gpu/drm/i915/gt/gen6_ppgtt.c +4 -7
@@ -96,9 +96,8 @@ static void gen6_ppgtt_clear_range(struct i915_address_space *vm,* entries back to scratch. */ - vaddr =kmap_atomic_px (pt); + vaddr =px_vaddr (pt);memset32 (vaddr + pte, scratch_pte, count); -kunmap_atomic (vaddr); pte =0 ; }
@@ -120,7 +119,7 @@ static void gen6_ppgtt_insert_entries(struct i915_address_space *vm,GEM_BUG_ON (!pd->entry[act_pt]); - vaddr =kmap_atomic_px (i915_pt_entry (pd, act_pt)); + vaddr =px_vaddr (i915_pt_entry (pd, act_pt)); do { GEM_BUG_ON(sg_dma_len(iter.sg) < I915_GTT_PAGE_SIZE); vaddr[act_pte] = pte_encode | GEN6_PTE_ADDR_ENCODE(iter.dma);
@@ -136,12 +135,10 @@ static void gen6_ppgtt_insert_entries(struct i915_address_space *vm, }if (++act_pte ==GEN6_PTES ) { -kunmap_atomic (vaddr); - vaddr =kmap_atomic_px (i915_pt_entry (pd, ++act_pt)); + vaddr =px_vaddr (i915_pt_entry (pd, ++act_pt)); act_pte =0 ; } }while (1 ); -kunmap_atomic (vaddr); vma->page_sizes.gtt =I915_GTT_PAGE_SIZE ; }
@@ -235,7 +232,7 @@ static int gen6_ppgtt_init_scratch(struct gen6_ppgtt *ppgtt) goto err_scratch0; } - ret =pin_pt_dma (vm, vm->scratch[1 ]); + ret =map_pt_dma (vm, vm->scratch[1 ]);if (ret) goto err_scratch1;
drivers/gpu/drm/i915/gt/gen8_ppgtt.c +10 -16
@@ -242,11 +242,10 @@ static u64 __gen8_ppgtt_clear(struct i915_address_space * const vm, atomic_read(&pt->used));GEM_BUG_ON (!count || count >=atomic_read (&pt->used)); - vaddr =kmap_atomic_px (pt); + vaddr =px_vaddr (pt);memset64 (vaddr +gen8_pd_index (start,0 ), vm->scratch[0 ]->encode, count); -kunmap_atomic (vaddr);atomic_sub (count, &pt->used); start += count;
@@ -375,7 +374,7 @@ gen8_ppgtt_insert_pte(struct i915_ppgtt *ppgtt,gen8_pte_t *vaddr; pd =i915_pd_entry (pdp,gen8_pd_index (idx,2 )); - vaddr =kmap_atomic_px (i915_pt_entry (pd,gen8_pd_index (idx,1 ))); + vaddr =px_vaddr (i915_pt_entry (pd,gen8_pd_index (idx,1 ))); do { GEM_BUG_ON(sg_dma_len(iter->sg) < I915_GTT_PAGE_SIZE); vaddr[gen8_pd_index(idx, 0)] = pte_encode | iter->dma;
@@ -402,12 +401,10 @@ gen8_ppgtt_insert_pte(struct i915_ppgtt *ppgtt, }clflush_cache_range (vaddr,PAGE_SIZE ); -kunmap_atomic (vaddr); - vaddr =kmap_atomic_px (i915_pt_entry (pd,gen8_pd_index (idx,1 ))); + vaddr =px_vaddr (i915_pt_entry (pd,gen8_pd_index (idx,1 ))); } }while (1 );clflush_cache_range (vaddr,PAGE_SIZE ); -kunmap_atomic (vaddr);return idx; }
@@ -442,7 +439,7 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, encode |=GEN8_PDE_PS_2M ; page_size =I915_GTT_PAGE_SIZE_2M ; - vaddr =kmap_atomic_px (pd); + vaddr =px_vaddr (pd); }else {struct i915_page_table *pt =i915_pt_entry (pd,__gen8_pte_index (start,1 ));
@@ -457,7 +454,7 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE)) maybe_64K =__gen8_pte_index (start,1 ); - vaddr =kmap_atomic_px (pt); + vaddr =px_vaddr (pt); } do {
@@ -491,7 +488,6 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, }while (rem >= page_size && index <I915_PDES );clflush_cache_range (vaddr,PAGE_SIZE ); -kunmap_atomic (vaddr);/* * Is it safe to mark the 2M block as 64K? -- Either we have
@@ -505,9 +501,8 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, !iter->sg && IS_ALIGNED(vma->node.start + vma->node.size, I915_GTT_PAGE_SIZE_2M)))) { - vaddr =kmap_atomic_px (pd); + vaddr =px_vaddr (pd); vaddr[maybe_64K] |=GEN8_PDE_IPS_64K ; -kunmap_atomic (vaddr); page_size =I915_GTT_PAGE_SIZE_64K ;/*
@@ -523,12 +518,11 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma,u16 i; encode = vma->vm->scratch[0 ]->encode; - vaddr =kmap_atomic_px (i915_pt_entry (pd, maybe_64K)); + vaddr =px_vaddr (i915_pt_entry (pd, maybe_64K));for (i =1 ; i < index; i +=16 )memset64 (vaddr + i, encode,15 ); -kunmap_atomic (vaddr); } }
@@ -602,7 +596,7 @@ static int gen8_init_scratch(struct i915_address_space *vm)if (IS_ERR (obj)) goto free_scratch; - ret =pin_pt_dma (vm, obj); + ret =map_pt_dma (vm, obj);if (ret) {i915_gem_object_put (obj); goto free_scratch;
@@ -639,7 +633,7 @@ static int gen8_preallocate_top_level_pdp(struct i915_ppgtt *ppgtt)if (IS_ERR (pde))return PTR_ERR (pde); - err =pin_pt_dma (vm, pde->pt.base); + err =map_pt_dma (vm, pde->pt.base);if (err) {i915_gem_object_put (pde->pt.base);free_pd (vm, pde);
@@ -675,7 +669,7 @@ gen8_alloc_top_pd(struct i915_address_space *vm) goto err_pd; } - err =pin_pt_dma (vm, pd->pt.base); + err =map_pt_dma (vm, pd->pt.base);if (err) goto err_pd;
drivers/gpu/drm/i915/gt/intel_ggtt.c +1 -1
@@ -657,7 +657,7 @@ static int init_aliasing_ppgtt(struct i915_ggtt *ggtt) goto err_ppgtt;i915_gem_object_lock (ppgtt->vm.scratch[0 ],NULL ); - err =i915_vm_pin_pt_stash (&ppgtt->vm, &stash); + err =i915_vm_map_pt_stash (&ppgtt->vm, &stash);i915_gem_object_unlock (ppgtt->vm.scratch[0 ]);if (err) goto err_stash;
drivers/gpu/drm/i915/gt/intel_gtt.c +22 -26
94 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_gtt.h +6 -5
@@ -180,6 +180,9 @@ struct page *__px_page(struct drm_i915_gem_object *p);dma_addr_t __px_dma (struct drm_i915_gem_object *p);#define px_dma (px) (__px_dma(px_base(px))) +void *__px_vaddr (struct drm_i915_gem_object *p); +#define px_vaddr (px) (__px_vaddr(px_base(px))) +#define px_pt (px) \ __px_choose_expr(px, struct i915_page_table *, __x, \ __px_choose_expr(px, struct i915_page_directory *, &__x->pt, \
@@ -511,8 +514,6 @@ struct i915_ppgtt *i915_ppgtt_create(struct intel_gt *gt);void i915_ggtt_suspend (struct i915_ggtt *gtt);void i915_ggtt_resume (struct i915_ggtt *ggtt); -#define kmap_atomic_px (px) kmap_atomic(__px_page(px_base(px))) -void fill_page_dma (struct drm_i915_gem_object *p,const u64 val,unsigned int count);
@@ -530,8 +531,8 @@ struct i915_page_table *alloc_pt(struct i915_address_space *vm);struct i915_page_directory *alloc_pd (struct i915_address_space *vm);struct i915_page_directory *__alloc_pd (int npde); -int pin_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj); -int pin_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj); +int map_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj); +int map_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj);void free_px (struct i915_address_space *vm,struct i915_page_table *pt,int lvl);
@@ -578,7 +579,7 @@ void setup_private_pat(struct intel_uncore *uncore);int i915_vm_alloc_pt_stash (struct i915_address_space *vm,struct i915_vm_pt_stash *stash,u64 size); -int i915_vm_pin_pt_stash (struct i915_address_space *vm, +int i915_vm_map_pt_stash (struct i915_address_space *vm,struct i915_vm_pt_stash *stash);void i915_vm_free_pt_stash (struct i915_address_space *vm,struct i915_vm_pt_stash *stash);
drivers/gpu/drm/i915/gt/intel_ppgtt.c +3 -4
@@ -87,11 +87,10 @@ write_dma_entry(struct drm_i915_gem_object * const pdma,const unsigned short idx, const u64 encoded_entry) { - u64 * const vaddr = kmap_atomic(__px_page(pdma)); + u64 * const vaddr = __px_vaddr(pdma); vaddr[idx] = encoded_entry;clflush_cache_range (&vaddr[idx],sizeof (u64)); -kunmap_atomic (vaddr); }void
@@ -258,7 +257,7 @@ int i915_vm_alloc_pt_stash(struct i915_address_space *vm,return 0 ; } -int i915_vm_pin_pt_stash (struct i915_address_space *vm, +int i915_vm_map_pt_stash (struct i915_address_space *vm,struct i915_vm_pt_stash *stash) {struct i915_page_table *pt;
@@ -266,7 +265,7 @@ int i915_vm_pin_pt_stash(struct i915_address_space *vm,for (n =0 ; n <ARRAY_SIZE (stash->pt); n++) {for (pt = stash->pt[n]; pt; pt = pt->stash) { - err =pin_pt_dma_locked (vm, pt->base); + err =map_pt_dma_locked (vm, pt->base);if (err)return err; }
drivers/gpu/drm/i915/i915_vma.c +1 -2
@@ -905,8 +905,7 @@ int i915_vma_pin_ww(struct i915_vma *vma, struct i915_gem_ww_ctx *ww,if (err) goto err_fence; - err =i915_vm_pin_pt_stash (vma->vm, - &work->stash); + err =i915_vm_map_pt_stash (vma->vm, &work->stash);if (err) goto err_fence; }
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +4 -6
@@ -186,7 +186,7 @@ static int igt_ppgtt_alloc(void *arg)if (err) goto err_ppgtt_cleanup; - err =i915_vm_pin_pt_stash (&ppgtt->vm, &stash); + err =i915_vm_map_pt_stash (&ppgtt->vm, &stash);if (err) {i915_vm_free_pt_stash (&ppgtt->vm, &stash); goto err_ppgtt_cleanup;
@@ -208,7 +208,7 @@ static int igt_ppgtt_alloc(void *arg)if (err) goto err_ppgtt_cleanup; - err =i915_vm_pin_pt_stash (&ppgtt->vm, &stash); + err =i915_vm_map_pt_stash (&ppgtt->vm, &stash);if (err) {i915_vm_free_pt_stash (&ppgtt->vm, &stash); goto err_ppgtt_cleanup;
@@ -325,11 +325,10 @@ static int lowlevel_hole(struct i915_address_space *vm, BIT_ULL(size))) goto alloc_vm_end; - err =i915_vm_pin_pt_stash (vm, &stash); + err =i915_vm_map_pt_stash (vm, &stash);if (!err) vm->allocate_va_range (vm, &stash, addr,BIT_ULL (size)); -i915_vm_free_pt_stash (vm, &stash); alloc_vm_end:if (err == -EDEADLK ) {
@@ -1967,10 +1966,9 @@ static int igt_cs_tlb(void *arg)if (err) goto end_ww; - err =i915_vm_pin_pt_stash (vm, &stash); + err =i915_vm_map_pt_stash (vm, &stash);if (!err) vm->allocate_va_range (vm, &stash, offset, chunk_size); -i915_vm_free_pt_stash (vm, &stash); end_ww:if (err == -EDEADLK ) {
drivers/gpu/drm/i915/selftests/i915_perf.c +1 -2
@@ -307,7 +307,7 @@ static int live_noa_gpr(void *arg) }/* Poison the ce->vm so we detect writes not to the GGTT gt->scratch */ - scratch =kmap (__px_page (ce->vm->scratch[0 ])); + scratch =__px_vaddr (ce->vm->scratch[0 ]);memset (scratch,POISON_FREE ,PAGE_SIZE ); rq =intel_context_create_request (ce);
@@ -405,7 +405,6 @@ static int live_noa_gpr(void *arg) out_rq:i915_request_put (rq); out_ce: -kunmap (__px_page (ce->vm->scratch[0 ]));intel_context_put (ce); out:stream_destroy (stream);
Signature · 6 lines
2.26.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/7] drm/i915/gtt: map the PD up front
Quoted 1 line · Matthew Auld
We need to general our accessor for the page directories and tables from
Generalise?
Quoted 5 lines
using the simple
kmap_atomicto support local memory, and this setup must be done on acquisition of the backing storage prior to entering fence execution contexts. Here we replace the kmap with the object maping code that for simple single page shmemfs object will return a plain kmap, that is then kept for the lifetime of the page directory.
How big are the address spaces used for mapping types? On 32-bit?
Do we have a mechanism to free something up if there is address space pressure in there and is that a concern if we do not?
Regards,
Tvrtko
Quoted 491 lines
v2: (Thomas) Rebase on
dma_resvandobj->mm.lockremoval.Signed-off-by Matthew Auld <[email protected]>Signed-off-by Chris Wilson <[email protected]>Cc Tvrtko Ursulin <[email protected]>--- .../drm/i915/gem/selftests/i915_gem_context.c | 11 +---- drivers/gpu/drm/i915/gt/gen6_ppgtt.c | 11 ++--- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 26 ++++------ drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +- drivers/gpu/drm/i915/gt/intel_gtt.c | 48 +++++++++---------- drivers/gpu/drm/i915/gt/intel_gtt.h | 11 +++-- drivers/gpu/drm/i915/gt/intel_ppgtt.c | 7 ++- drivers/gpu/drm/i915/i915_vma.c | 3 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 10 ++-- drivers/gpu/drm/i915/selftests/i915_perf.c | 3 +- 10 files changed, 54 insertions(+), 78 deletions(-)drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +2
-9@@ -1740,7 +1740,6 @@ static int read_from_scratch(struct i915_gem_context *ctx,static int check_scratch_page (struct i915_gem_context *ctx,u32 *out) {struct i915_address_space *vm; -struct page *page;u32 *vaddr;int err =0 ;@@ -1748,24 +1747,18 @@ static int check_scratch_page(struct i915_gem_context *ctx, u32 *out)if (!vm)return -ENODEV ; - page =__px_page (vm->scratch[0 ]); -if (!page) { +if (!vm->scratch[0 ]) {pr_err ("No scratch page!\n" );return -EINVAL ; } - vaddr =kmap (page); -if (!vaddr) { -pr_err ("No (mappable) scratch page!\n" ); -return -EINVAL ; - } + vaddr =__px_vaddr (vm->scratch[0 ]);memcpy (out, vaddr,sizeof (*out));if (memchr_inv (vaddr, *out,PAGE_SIZE )) {pr_err ("Inconsistent initial state of scratch page!\n" ); err = -EINVAL ; } -kunmap (page);return err; }drivers/gpu/drm/i915/gt/gen6_ppgtt.c +4
-7@@ -96,9 +96,8 @@ static void gen6_ppgtt_clear_range(struct i915_address_space *vm,* entries back to scratch. */ - vaddr =kmap_atomic_px (pt); + vaddr =px_vaddr (pt);memset32 (vaddr + pte, scratch_pte, count); -kunmap_atomic (vaddr); pte =0 ; }@@ -120,7 +119,7 @@ static void gen6_ppgtt_insert_entries(struct i915_address_space *vm,GEM_BUG_ON (!pd->entry[act_pt]); - vaddr =kmap_atomic_px (i915_pt_entry (pd, act_pt)); + vaddr =px_vaddr (i915_pt_entry (pd, act_pt)); do { GEM_BUG_ON(sg_dma_len(iter.sg) < I915_GTT_PAGE_SIZE); vaddr[act_pte] = pte_encode | GEN6_PTE_ADDR_ENCODE(iter.dma);@@ -136,12 +135,10 @@ static void gen6_ppgtt_insert_entries(struct i915_address_space *vm, }if (++act_pte ==GEN6_PTES ) { -kunmap_atomic (vaddr); - vaddr =kmap_atomic_px (i915_pt_entry (pd, ++act_pt)); + vaddr =px_vaddr (i915_pt_entry (pd, ++act_pt)); act_pte =0 ; } }while (1 ); -kunmap_atomic (vaddr); vma->page_sizes.gtt =I915_GTT_PAGE_SIZE ; }@@ -235,7 +232,7 @@ static int gen6_ppgtt_init_scratch(struct gen6_ppgtt *ppgtt) goto err_scratch0; } - ret =pin_pt_dma (vm, vm->scratch[1 ]); + ret =map_pt_dma (vm, vm->scratch[1 ]);if (ret) goto err_scratch1;drivers/gpu/drm/i915/gt/gen8_ppgtt.c +10
-16@@ -242,11 +242,10 @@ static u64 __gen8_ppgtt_clear(struct i915_address_space * const vm, atomic_read(&pt->used));GEM_BUG_ON (!count || count >=atomic_read (&pt->used)); - vaddr =kmap_atomic_px (pt); + vaddr =px_vaddr (pt);memset64 (vaddr +gen8_pd_index (start,0 ), vm->scratch[0 ]->encode, count); -kunmap_atomic (vaddr);atomic_sub (count, &pt->used); start += count;@@ -375,7 +374,7 @@ gen8_ppgtt_insert_pte(struct i915_ppgtt *ppgtt,gen8_pte_t *vaddr; pd =i915_pd_entry (pdp,gen8_pd_index (idx,2 )); - vaddr =kmap_atomic_px (i915_pt_entry (pd,gen8_pd_index (idx,1 ))); + vaddr =px_vaddr (i915_pt_entry (pd,gen8_pd_index (idx,1 ))); do { GEM_BUG_ON(sg_dma_len(iter->sg) < I915_GTT_PAGE_SIZE); vaddr[gen8_pd_index(idx, 0)] = pte_encode | iter->dma;@@ -402,12 +401,10 @@ gen8_ppgtt_insert_pte(struct i915_ppgtt *ppgtt, }clflush_cache_range (vaddr,PAGE_SIZE ); -kunmap_atomic (vaddr); - vaddr =kmap_atomic_px (i915_pt_entry (pd,gen8_pd_index (idx,1 ))); + vaddr =px_vaddr (i915_pt_entry (pd,gen8_pd_index (idx,1 ))); } }while (1 );clflush_cache_range (vaddr,PAGE_SIZE ); -kunmap_atomic (vaddr);return idx; }@@ -442,7 +439,7 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, encode |=GEN8_PDE_PS_2M ; page_size =I915_GTT_PAGE_SIZE_2M ; - vaddr =kmap_atomic_px (pd); + vaddr =px_vaddr (pd); }else {struct i915_page_table *pt =i915_pt_entry (pd,__gen8_pte_index (start,1 ));@@ -457,7 +454,7 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE)) maybe_64K =__gen8_pte_index (start,1 ); - vaddr =kmap_atomic_px (pt); + vaddr =px_vaddr (pt); } do {@@ -491,7 +488,6 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, }while (rem >= page_size && index <I915_PDES );clflush_cache_range (vaddr,PAGE_SIZE ); -kunmap_atomic (vaddr);/* * Is it safe to mark the 2M block as 64K? -- Either we have @@ -505,9 +501,8 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, !iter->sg && IS_ALIGNED(vma->node.start + vma->node.size, I915_GTT_PAGE_SIZE_2M)))) { - vaddr =kmap_atomic_px (pd); + vaddr =px_vaddr (pd); vaddr[maybe_64K] |=GEN8_PDE_IPS_64K ; -kunmap_atomic (vaddr); page_size =I915_GTT_PAGE_SIZE_64K ;/* @@ -523,12 +518,11 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma,u16 i; encode = vma->vm->scratch[0 ]->encode; - vaddr =kmap_atomic_px (i915_pt_entry (pd, maybe_64K)); + vaddr =px_vaddr (i915_pt_entry (pd, maybe_64K));for (i =1 ; i < index; i +=16 )memset64 (vaddr + i, encode,15 ); -kunmap_atomic (vaddr); } }@@ -602,7 +596,7 @@ static int gen8_init_scratch(struct i915_address_space *vm)if (IS_ERR (obj)) goto free_scratch; - ret =pin_pt_dma (vm, obj); + ret =map_pt_dma (vm, obj);if (ret) {i915_gem_object_put (obj); goto free_scratch;@@ -639,7 +633,7 @@ static int gen8_preallocate_top_level_pdp(struct i915_ppgtt *ppgtt)if (IS_ERR (pde))return PTR_ERR (pde); - err =pin_pt_dma (vm, pde->pt.base); + err =map_pt_dma (vm, pde->pt.base);if (err) {i915_gem_object_put (pde->pt.base);free_pd (vm, pde);@@ -675,7 +669,7 @@ gen8_alloc_top_pd(struct i915_address_space *vm) goto err_pd; } - err =pin_pt_dma (vm, pd->pt.base); + err =map_pt_dma (vm, pd->pt.base);if (err) goto err_pd;drivers/gpu/drm/i915/gt/intel_ggtt.c +1
-1@@ -657,7 +657,7 @@ static int init_aliasing_ppgtt(struct i915_ggtt *ggtt) goto err_ppgtt;i915_gem_object_lock (ppgtt->vm.scratch[0 ],NULL ); - err =i915_vm_pin_pt_stash (&ppgtt->vm, &stash); + err =i915_vm_map_pt_stash (&ppgtt->vm, &stash);i915_gem_object_unlock (ppgtt->vm.scratch[0 ]);if (err) goto err_stash;drivers/gpu/drm/i915/gt/intel_gtt.c +22
-26@@ -25,27 +25,25 @@ struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz)return obj; } -int pin_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj) +int map_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { -int err; +void *vaddr; -i915_gem_object_lock (obj,NULL ); - err =i915_gem_object_pin_pages (obj); -i915_gem_object_unlock (obj); -if (err) -return err; + vaddr =i915_gem_object_pin_map_unlocked (obj,I915_MAP_WB ); +if (IS_ERR (vaddr)) +return PTR_ERR (vaddr);i915_gem_object_make_unshrinkable (obj);return 0 ; } -int pin_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj) +int map_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { -int err; +void *vaddr; - err =i915_gem_object_pin_pages (obj); -if (err) -return err; + vaddr =i915_gem_object_pin_map (obj,I915_MAP_WB ); +if (IS_ERR (vaddr)) +return PTR_ERR (vaddr);i915_gem_object_make_unshrinkable (obj);return 0 ;@@ -155,6 +153,14 @@ void clear_pages(struct i915_vma *vma)memset (&vma->page_sizes,0 ,sizeof (vma->page_sizes)); } +void *__px_vaddr (struct drm_i915_gem_object *p) +{ +enum i915_map_type type; + +GEM_BUG_ON (!i915_gem_object_has_pages (p)); +return page_unpack_bits (p->mm.mapping, &type); +} +dma_addr_t __px_dma (struct drm_i915_gem_object *p) {GEM_BUG_ON (!i915_gem_object_has_pages (p));@@ -170,32 +176,22 @@ struct page *__px_page(struct drm_i915_gem_object *p)void fill_page_dma (struct drm_i915_gem_object *p,const u64 val,unsigned int count) { -struct page *page =__px_page (p); -void *vaddr; +void *vaddr =__px_vaddr (p); - vaddr =kmap (page);memset64 (vaddr, val, count);clflush_cache_range (vaddr,PAGE_SIZE ); -kunmap (page); }static void poison_scratch_page (struct drm_i915_gem_object *scratch) { -struct sgt_iter sgt; -struct page *page; +void *vaddr =__px_vaddr (scratch);u8 val; val =0 ;if (IS_ENABLED (CONFIG_DRM_I915_DEBUG_GEM )) val =POISON_FREE ; -for_each_sgt_page (page, sgt, scratch->mm.pages) { -void *vaddr; - - vaddr =kmap (page); -memset (vaddr, val,PAGE_SIZE ); -kunmap (page); - } +memset (vaddr, val, scratch->base.size); }int setup_scratch_page (struct i915_address_space *vm)@@ -225,7 +221,7 @@ int setup_scratch_page(struct i915_address_space *vm)if (IS_ERR (obj)) goto skip; -if (pin_pt_dma (vm, obj)) +if (map_pt_dma (vm, obj)) goto skip_obj;/* We need a single contiguous page for our scratch */ drivers/gpu/drm/i915/gt/intel_gtt.h +6
-5@@ -180,6 +180,9 @@ struct page *__px_page(struct drm_i915_gem_object *p);dma_addr_t __px_dma (struct drm_i915_gem_object *p);#define px_dma (px) (__px_dma(px_base(px))) +void *__px_vaddr (struct drm_i915_gem_object *p); +#define px_vaddr (px) (__px_vaddr(px_base(px))) +#define px_pt (px) \ __px_choose_expr(px, struct i915_page_table *, __x, \ __px_choose_expr(px, struct i915_page_directory *, &__x->pt, \@@ -511,8 +514,6 @@ struct i915_ppgtt *i915_ppgtt_create(struct intel_gt *gt);void i915_ggtt_suspend (struct i915_ggtt *gtt);void i915_ggtt_resume (struct i915_ggtt *ggtt); -#define kmap_atomic_px (px) kmap_atomic(__px_page(px_base(px))) -void fill_page_dma (struct drm_i915_gem_object *p,const u64 val,unsigned int count);@@ -530,8 +531,8 @@ struct i915_page_table *alloc_pt(struct i915_address_space *vm);struct i915_page_directory *alloc_pd (struct i915_address_space *vm);struct i915_page_directory *__alloc_pd (int npde); -int pin_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj); -int pin_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj); +int map_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj); +int map_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj);void free_px (struct i915_address_space *vm,struct i915_page_table *pt,int lvl);@@ -578,7 +579,7 @@ void setup_private_pat(struct intel_uncore *uncore);int i915_vm_alloc_pt_stash (struct i915_address_space *vm,struct i915_vm_pt_stash *stash,u64 size); -int i915_vm_pin_pt_stash (struct i915_address_space *vm, +int i915_vm_map_pt_stash (struct i915_address_space *vm,struct i915_vm_pt_stash *stash);void i915_vm_free_pt_stash (struct i915_address_space *vm,struct i915_vm_pt_stash *stash);drivers/gpu/drm/i915/gt/intel_ppgtt.c +3
-4@@ -87,11 +87,10 @@ write_dma_entry(struct drm_i915_gem_object * const pdma,const unsigned short idx, const u64 encoded_entry) { - u64 * const vaddr = kmap_atomic(__px_page(pdma)); + u64 * const vaddr = __px_vaddr(pdma); vaddr[idx] = encoded_entry;clflush_cache_range (&vaddr[idx],sizeof (u64)); -kunmap_atomic (vaddr); }void @@ -258,7 +257,7 @@ int i915_vm_alloc_pt_stash(struct i915_address_space *vm,return 0 ; } -int i915_vm_pin_pt_stash (struct i915_address_space *vm, +int i915_vm_map_pt_stash (struct i915_address_space *vm,struct i915_vm_pt_stash *stash) {struct i915_page_table *pt;@@ -266,7 +265,7 @@ int i915_vm_pin_pt_stash(struct i915_address_space *vm,for (n =0 ; n <ARRAY_SIZE (stash->pt); n++) {for (pt = stash->pt[n]; pt; pt = pt->stash) { - err =pin_pt_dma_locked (vm, pt->base); + err =map_pt_dma_locked (vm, pt->base);if (err)return err; }drivers/gpu/drm/i915/i915_vma.c +1
-2@@ -905,8 +905,7 @@ int i915_vma_pin_ww(struct i915_vma *vma, struct i915_gem_ww_ctx *ww,if (err) goto err_fence; - err =i915_vm_pin_pt_stash (vma->vm, - &work->stash); + err =i915_vm_map_pt_stash (vma->vm, &work->stash);if (err) goto err_fence; }drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +4
-6@@ -186,7 +186,7 @@ static int igt_ppgtt_alloc(void *arg)if (err) goto err_ppgtt_cleanup; - err =i915_vm_pin_pt_stash (&ppgtt->vm, &stash); + err =i915_vm_map_pt_stash (&ppgtt->vm, &stash);if (err) {i915_vm_free_pt_stash (&ppgtt->vm, &stash); goto err_ppgtt_cleanup;@@ -208,7 +208,7 @@ static int igt_ppgtt_alloc(void *arg)if (err) goto err_ppgtt_cleanup; - err =i915_vm_pin_pt_stash (&ppgtt->vm, &stash); + err =i915_vm_map_pt_stash (&ppgtt->vm, &stash);if (err) {i915_vm_free_pt_stash (&ppgtt->vm, &stash); goto err_ppgtt_cleanup;@@ -325,11 +325,10 @@ static int lowlevel_hole(struct i915_address_space *vm, BIT_ULL(size))) goto alloc_vm_end; - err =i915_vm_pin_pt_stash (vm, &stash); + err =i915_vm_map_pt_stash (vm, &stash);if (!err) vm->allocate_va_range (vm, &stash, addr,BIT_ULL (size)); -i915_vm_free_pt_stash (vm, &stash); alloc_vm_end:if (err == -EDEADLK ) {@@ -1967,10 +1966,9 @@ static int igt_cs_tlb(void *arg)if (err) goto end_ww; - err =i915_vm_pin_pt_stash (vm, &stash); + err =i915_vm_map_pt_stash (vm, &stash);if (!err) vm->allocate_va_range (vm, &stash, offset, chunk_size); -i915_vm_free_pt_stash (vm, &stash); end_ww:if (err == -EDEADLK ) {drivers/gpu/drm/i915/selftests/i915_perf.c +1
-1@@ -307,7 +307,7 @@ static int live_noa_gpr(void *arg) }/* Poison the ce->vm so we detect writes not to the GGTT gt->scratch */ - scratch =kmap (__px_page (ce->vm->scratch[0 ])); + scratch =__px_vaddr (ce->vm->scratch[0 ]);memset (scratch,POISON_FREE ,PAGE_SIZE ); rq =intel_context_create_request (ce);
drivers/gpu/drm/i915/selftests/i915_perf.c static int live_noa_gpr(void *arg) · line 410
Quoted 7 lines
drivers/gpu/drm/i915/selftests/i915_perf.c +0
-1@@ -405,7 +405,6 @@ static int live_noa_gpr(void *arg) out_rq:i915_request_put (rq); out_ce: -kunmap (__px_page (ce->vm->scratch[0 ]));intel_context_put (ce); out:stream_destroy (stream);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 3/7] drm/i915/gtt: map the PD up front
Quoted 12 lines · Tvrtko Ursulin
Quoted 1 line · Matthew Auld
We need to general our accessor for the page directories and tables from
Generalise?
Quoted 5 lines
using the simple
kmap_atomicto support local memory, and this setup must be done on acquisition of the backing storage prior to entering fence execution contexts. Here we replace the kmap with the object maping code that for simple single page shmemfs object will return a plain kmap, that is then kept for the lifetime of the page directory.
Quoted 3 lines
How big are the address spaces used for mapping types? On 32-bit?
Do we have a mechanism to free something up if there is address space pressure in there and is that a concern if we do not?
It's a concern yes, since while the vma is pinned the mapping remains there for the PDs underneath, or at least until the used_count reaches zero, at which point we can safely destroy the mapping.
For the 32bit concern, this was brought up in some earlier review[1] also. AFAIK the conclusion was just to not care about 32b for modern platforms, so platforms with full ppGTT support where this patch actually matters the most.
[1] https://patchwork.freedesktop.org/patch/404460/?series=84344&rev=1
Quoted 466 lines
Regards,
Tvrtko
Quoted 461 lines
v2: (Thomas) Rebase on
dma_resvandobj->mm.lockremoval.Signed-off-by Matthew Auld <[email protected]>Signed-off-by Chris Wilson <[email protected]>Cc Tvrtko Ursulin <[email protected]>---
.../drm/i915/gem/selftests/i915_gem_context.c| 11 +----drivers/gpu/drm/i915/gt/gen6_ppgtt.c | 11 ++--- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 26 ++++------ drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +-drivers/gpu/drm/i915/gt/intel_gtt.c | 48 +++++++++---------- drivers/gpu/drm/i915/gt/intel_gtt.h | 11 +++-- drivers/gpu/drm/i915/gt/intel_ppgtt.c | 7 ++- drivers/gpu/drm/i915/i915_vma.c | 3 +-
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c| 10 ++-- drivers/gpu/drm/i915/selftests/i915_perf.c | 3 +-10 files changed, 54 insertions(+), 78 deletions(-)drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +2
-9@@ -1740,7 +1740,6 @@ static int read_from_scratch(structi915_gem_context *ctx, static int check_scratch_page(struct i915_gem_context *ctx, u32 *out) { struct i915_address_space *vm; - struct page *page; u32 *vaddr; int err = 0;@@ -1748,24 +1747,18 @@ static int check_scratch_page(struct i915_gem_context *ctx, u32 *out) if (!vm) return -ENODEV; - page = __px_page(vm->scratch[0]); - if (!page) { + if (!vm->scratch[0]) { pr_err("No scratch page!\n"); return -EINVAL; } - vaddr = kmap(page); - if (!vaddr) { - pr_err("No (mappable) scratch page!\n"); - return -EINVAL; - } + vaddr = __px_vaddr(vm->scratch[0]); memcpy(out, vaddr, sizeof(*out)); if (memchr_inv(vaddr, *out, PAGE_SIZE)) { pr_err("Inconsistent initial state of scratch page!\n"); err = -EINVAL; } - kunmap(page); return err; }drivers/gpu/drm/i915/gt/gen6_ppgtt.c +4
-7@@ -96,9 +96,8 @@ static void gen6_ppgtt_clear_range(structi915_address_space *vm, * entries back to scratch. */ - vaddr = kmap_atomic_px(pt); + vaddr = px_vaddr(pt); memset32(vaddr + pte, scratch_pte, count); - kunmap_atomic(vaddr); pte = 0; }@@ -120,7 +119,7 @@ static void gen6_ppgtt_insert_entries(structi915_address_space *vm, GEM_BUG_ON(!pd->entry[act_pt]); - vaddr = kmap_atomic_px(i915_pt_entry(pd, act_pt)); + vaddr = px_vaddr(i915_pt_entry(pd, act_pt)); do { GEM_BUG_ON(sg_dma_len(iter.sg) < I915_GTT_PAGE_SIZE); vaddr[act_pte] = pte_encode | GEN6_PTE_ADDR_ENCODE(iter.dma);@@ -136,12 +135,10 @@ static void gen6_ppgtt_insert_entries(struct i915_address_space *vm, } if (++act_pte == GEN6_PTES) { - kunmap_atomic(vaddr); - vaddr = kmap_atomic_px(i915_pt_entry(pd, ++act_pt)); + vaddr = px_vaddr(i915_pt_entry(pd, ++act_pt)); act_pte = 0; } } while (1); - kunmap_atomic(vaddr); vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; }@@ -235,7 +232,7 @@ static int gen6_ppgtt_init_scratch(struct gen6_ppgtt *ppgtt) goto err_scratch0; } - ret = pin_pt_dma(vm, vm->scratch[1]); + ret = map_pt_dma(vm, vm->scratch[1]); if (ret) goto err_scratch1;drivers/gpu/drm/i915/gt/gen8_ppgtt.c +4
-7@@ -242,11 +242,10 @@ static u64 __gen8_ppgtt_clear(structi915_address_space *const vm, atomic_read(&pt->used)); GEM_BUG_ON(!count || count >= atomic_read(&pt->used)); - vaddr = kmap_atomic_px(pt); + vaddr = px_vaddr(pt); memset64(vaddr + gen8_pd_index(start, 0), vm->scratch[0]->encode, count); - kunmap_atomic(vaddr); atomic_sub(count, &pt->used); start += count;@@ -375,7 +374,7 @@ gen8_ppgtt_insert_pte(struct i915_ppgtt *ppgtt, gen8_pte_t *vaddr; pd = i915_pd_entry(pdp, gen8_pd_index(idx, 2)); - vaddr = kmap_atomic_px(i915_pt_entry(pd, gen8_pd_index(idx, 1))); + vaddr = px_vaddr(i915_pt_entry(pd, gen8_pd_index(idx, 1))); do { GEM_BUG_ON(sg_dma_len(iter->sg) < I915_GTT_PAGE_SIZE); vaddr[gen8_pd_index(idx, 0)] = pte_encode | iter->dma;@@ -402,12 +401,10 @@ gen8_ppgtt_insert_pte(struct i915_ppgtt *ppgtt, } clflush_cache_range(vaddr, PAGE_SIZE); - kunmap_atomic(vaddr); - vaddr = kmap_atomic_px(i915_pt_entry(pd, gen8_pd_index(idx, 1))); + vaddr = px_vaddr(i915_pt_entry(pd, gen8_pd_index(idx, 1))); } } while (1); clflush_cache_range(vaddr, PAGE_SIZE); - kunmap_atomic(vaddr); return idx; }@@ -442,7 +439,7 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, encode |= GEN8_PDE_PS_2M; page_size = I915_GTT_PAGE_SIZE_2M; - vaddr = kmap_atomic_px(pd); + vaddr = px_vaddr(pd); } else {struct
i915_page_table*pt =i915_pt_entry(pd, __gen8_pte_index(start, 1));drivers/gpu/drm/i915/gt/gen8_ppgtt.c +1
-2@@ -457,7 +454,7 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE)) maybe_64K = __gen8_pte_index(start, 1); - vaddr = kmap_atomic_px(pt); + vaddr = px_vaddr(pt); } do {@@ -491,7 +488,6 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, } while (rem >= page_size && index < I915_PDES); clflush_cache_range(vaddr, PAGE_SIZE); - kunmap_atomic(vaddr); /** Is it safe to mark the 2M block as 64K? -- Either we have @@ -505,9 +501,8 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma,!iter->sg &&
IS_ALIGNED(vma->node.start + vma->node.size, I915_GTT_PAGE_SIZE_2M)))) { - vaddr =kmap_atomic_px(pd);
+ vaddr =px_vaddr(pd); vaddr[maybe_64K] |=GEN8_PDE_IPS_64K; -kunmap_atomic(vaddr);
page_size=I915_GTT_PAGE_SIZE_64K; /*drivers/gpu/drm/i915/gt/gen8_ppgtt.c +4
-5@@ -523,12 +518,11 @@ static void gen8_ppgtt_insert_huge(structi915_vma *vma, u16 i; encode = vma->vm->scratch[0]->encode; - vaddr = kmap_atomic_px(i915_pt_entry(pd, maybe_64K)); + vaddr = px_vaddr(i915_pt_entry(pd, maybe_64K)); for (i = 1; i < index; i += 16) memset64(vaddr + i, encode, 15); - kunmap_atomic(vaddr); } }@@ -602,7 +596,7 @@ static int gen8_init_scratch(struct i915_address_space *vm) if (IS_ERR(obj)) goto free_scratch; - ret = pin_pt_dma(vm, obj); + ret = map_pt_dma(vm, obj); if (ret) { i915_gem_object_put(obj); goto free_scratch;@@ -639,7 +633,7 @@ static int gen8_preallocate_top_level_pdp(struct i915_ppgtt *ppgtt) if (IS_ERR(pde)) return PTR_ERR(pde); - err = pin_pt_dma(vm, pde->pt.base); + err = map_pt_dma(vm, pde->pt.base); if (err) { i915_gem_object_put(pde->pt.base); free_pd(vm, pde);@@ -675,7 +669,7 @@ gen8_alloc_top_pd(struct i915_address_space *vm) goto err_pd; } - err = pin_pt_dma(vm, pd->pt.base); + err = map_pt_dma(vm, pd->pt.base); if (err) goto err_pd;drivers/gpu/drm/i915/gt/intel_ggtt.c +1
-1@@ -657,7 +657,7 @@ static int init_aliasing_ppgtt(struct i915_ggtt *ggtt) goto err_ppgtt; i915_gem_object_lock(ppgtt->vm.scratch[0], NULL); - err = i915_vm_pin_pt_stash(&ppgtt->vm, &stash); + err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); i915_gem_object_unlock(ppgtt->vm.scratch[0]); if (err) goto err_stash;drivers/gpu/drm/i915/gt/intel_gtt.c +18
-12@@ -25,27 +25,25 @@ struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz) return obj; } -int pin_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj) +int map_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { - int err; + void *vaddr; - i915_gem_object_lock(obj, NULL); - err = i915_gem_object_pin_pages(obj); - i915_gem_object_unlock(obj); - if (err) - return err; + vaddr = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WB); + if (IS_ERR(vaddr)) + return PTR_ERR(vaddr); i915_gem_object_make_unshrinkable(obj); return 0; } -int pin_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj) +int map_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { - int err; + void *vaddr; - err = i915_gem_object_pin_pages(obj); - if (err) - return err; + vaddr = i915_gem_object_pin_map(obj, I915_MAP_WB); + if (IS_ERR(vaddr)) + return PTR_ERR(vaddr); i915_gem_object_make_unshrinkable(obj); return 0;@@ -155,6 +153,14 @@ void clear_pages(struct i915_vma *vma) memset(&vma->page_sizes, 0, sizeof(vma->page_sizes)); } +void *__px_vaddr (struct drm_i915_gem_object *p) +{ + enum i915_map_type type; + + GEM_BUG_ON(!i915_gem_object_has_pages(p)); + return page_unpack_bits(p->mm.mapping, &type); +} + dma_addr_t __px_dma(struct drm_i915_gem_object *p) { GEM_BUG_ON(!i915_gem_object_has_pages(p));@@ -170,32 +176,22 @@ struct page *__px_page(struct drm_i915_gem_object *p)void
fill_page_dma(struct drm_i915_gem_object *p, const u64 val, unsigned int count){
- struct page *page =__px_page(p);
- void *vaddr;
+ void *vaddr =__px_vaddr(p);
- vaddr = kmap(page);
memset64(vaddr, val, count);
clflush_cache_range(vaddr, PAGE_SIZE);
- kunmap(page);
}
static voidpoison_scratch_page(struct drm_i915_gem_object *scratch){
- structsgt_itersgt;
- struct page *page;
+ void *vaddr =__px_vaddr(scratch);
u8 val;
val = 0;
if (IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM))
val =POISON_FREE;
-for_each_sgt_page(page, sgt, scratch->mm.pages){
- void *vaddr;
-
- vaddr = kmap(page);
-memset(vaddr, val, PAGE_SIZE);
- kunmap(page);
- }
+memset(vaddr, val, scratch->base.size);
}
intsetup_scratch_page(struct i915_address_space *vm)drivers/gpu/drm/i915/gt/intel_gtt.c +1
-1@@ -225,7 +221,7 @@ int setup_scratch_page(struct i915_address_space *vm) if (IS_ERR(obj)) goto skip; - if (pin_pt_dma(vm, obj)) + if (map_pt_dma(vm, obj)) goto skip_obj; /* We need a single contiguous page for our scratch */drivers/gpu/drm/i915/gt/intel_gtt.h +3
-2@@ -180,6 +180,9 @@ struct page *__px_page(struct drm_i915_gem_object *p); dma_addr_t __px_dma(struct drm_i915_gem_object *p); #define px_dma(px) (__px_dma(px_base(px))) +void *__px_vaddr (struct drm_i915_gem_object *p); +#define px_vaddr (px) (__px_vaddr(px_base(px))) + #define px_pt(px) \ __px_choose_expr(px, struct i915_page_table *, __x, \ __px_choose_expr(px, struct i915_page_directory *, &__x->pt, \@@ -511,8 +514,6 @@ struct i915_ppgtt *i915_ppgtt_create(struct intel_gt *gt); void i915_ggtt_suspend(struct i915_ggtt *gtt); void i915_ggtt_resume(struct i915_ggtt *ggtt); -#define kmap_atomic_px (px) kmap_atomic(__px_page(px_base(px))) -void
fill_page_dma(struct drm_i915_gem_object *p, const u64 val, unsigned int count);drivers/gpu/drm/i915/gt/intel_gtt.h +2
-2@@ -530,8 +531,8 @@ struct i915_page_table *alloc_pt(struct i915_address_space *vm); struct i915_page_directory *alloc_pd(struct i915_address_space *vm); struct i915_page_directory *__alloc_pd(int npde); -int pin_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj); -int pin_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj); +int map_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj); +int map_pt_dma_locked(struct i915_address_space *vm, struct
drm_i915_gem_object*obj);
void free_px(structi915_address_space*vm,
structi915_page_table*pt, int lvl);drivers/gpu/drm/i915/gt/intel_gtt.h +1
-1@@ -578,7 +579,7 @@ void setup_private_pat(struct intel_uncore *uncore); int i915_vm_alloc_pt_stash(struct i915_address_space *vm, struct i915_vm_pt_stash *stash, u64 size); -int i915_vm_pin_pt_stash (struct i915_address_space *vm, +int i915_vm_map_pt_stash (struct i915_address_space *vm, struct i915_vm_pt_stash *stash); void i915_vm_free_pt_stash(struct i915_address_space *vm, struct i915_vm_pt_stash *stash);drivers/gpu/drm/i915/gt/intel_ppgtt.c +1
-2@@ -87,11 +87,10 @@ write_dma_entry(struct drm_i915_gem_object * const pdma, const unsigned short idx, const u64 encoded_entry) { - u64 * const vaddr = kmap_atomic(__px_page(pdma)); + u64 * const vaddr = __px_vaddr(pdma); vaddr[idx] = encoded_entry; clflush_cache_range(&vaddr[idx], sizeof(u64)); - kunmap_atomic(vaddr); }void
drivers/gpu/drm/i915/gt/intel_ppgtt.c +2
-2@@ -258,7 +257,7 @@ int i915_vm_alloc_pt_stash(structi915_address_space *vm, return 0; } -int i915_vm_pin_pt_stash(struct i915_address_space *vm, +int i915_vm_map_pt_stash(struct i915_address_space *vm, struct i915_vm_pt_stash *stash) { struct i915_page_table *pt;@@ -266,7 +265,7 @@ int i915_vm_pin_pt_stash(struct i915_address_space *vm, for (n = 0; n < ARRAY_SIZE(stash->pt); n++) { for (pt = stash->pt[n]; pt; pt = pt->stash) { - err = pin_pt_dma_locked(vm, pt->base); + err = map_pt_dma_locked(vm, pt->base); if (err) return err; }drivers/gpu/drm/i915/i915_vma.c +1
-2@@ -905,8 +905,7 @@ int i915_vma_pin_ww(struct i915_vma *vma, structi915_gem_ww_ctx *ww, if (err) goto err_fence; - err = i915_vm_pin_pt_stash(vma->vm, - &work->stash); + err = i915_vm_map_pt_stash(vma->vm, &work->stash); if (err) goto err_fence; }drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +3
-4@@ -186,7 +186,7 @@ static int igt_ppgtt_alloc(void *arg) if (err) goto err_ppgtt_cleanup; - err = i915_vm_pin_pt_stash(&ppgtt->vm, &stash); + err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); if (err) { i915_vm_free_pt_stash(&ppgtt->vm, &stash); goto err_ppgtt_cleanup;@@ -208,7 +208,7 @@ static int igt_ppgtt_alloc(void *arg) if (err) goto err_ppgtt_cleanup; - err = i915_vm_pin_pt_stash(&ppgtt->vm, &stash); + err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); if (err) { i915_vm_free_pt_stash(&ppgtt->vm, &stash); goto err_ppgtt_cleanup;@@ -325,11 +325,10 @@ static int lowlevel_hole(structi915_address_space *vm, BIT_ULL(size))) goto alloc_vm_end; - err = i915_vm_pin_pt_stash(vm, &stash); + err = i915_vm_map_pt_stash(vm, &stash); if (!err) vm->allocate_va_range(vm, &stash, addr, BIT_ULL(size)); - i915_vm_free_pt_stash(vm, &stash);
alloc_vm_end:
if (err ==-EDEADLK) {drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +1
-2@@ -1967,10 +1966,9 @@ static int igt_cs_tlb(void *arg) if (err) goto end_ww; - err = i915_vm_pin_pt_stash(vm, &stash); + err = i915_vm_map_pt_stash(vm, &stash); if (!err) vm->allocate_va_range(vm, &stash, offset, chunk_size); - i915_vm_free_pt_stash(vm, &stash);
end_ww:
if (err ==-EDEADLK) {drivers/gpu/drm/i915/selftests/i915_perf.c +1
-1@@ -307,7 +307,7 @@ static int live_noa_gpr(void *arg) } /* Poison the ce->vm so we detect writes not to the GGTT gt->scratch */ - scratch = kmap(__px_page(ce->vm->scratch[0])); + scratch = __px_vaddr(ce->vm->scratch[0]); memset(scratch, POISON_FREE, PAGE_SIZE); rq = intel_context_create_request(ce);@@ -405,7 +405,6 @@ static int live_noa_gpr(void *arg)
Quoted 8 lines
Quoted 8 lines
out_rq:
i915_request_put(rq);
out_ce:
- kunmap(__px_page(ce->vm->scratch[0]));
intel_context_put(ce);
out:
stream_destroy(stream);
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/7] drm/i915/gtt: map the PD up front
Quoted 15 lines · Matthew Auld
Quoted 14 lines · Tvrtko Ursulin
Quoted 1 line · Matthew Auld
We need to general our accessor for the page directories and tables from
Generalise?
Quoted 5 lines
using the simple
kmap_atomicto support local memory, and this setup must be done on acquisition of the backing storage prior to entering fence execution contexts. Here we replace the kmap with the object maping code that for simple single page shmemfs object will return a plain kmap, that is then kept for the lifetime of the page directory.How big are the address spaces used for mapping types? On 32-bit?
Quoted 7 lines
Quoted 1 line
Do we have a mechanism to free something up if there is address space pressure in there and is that a concern if we do not?
It's a concern yes, since while the vma is pinned the mapping remains there for the PDs underneath, or at least until the
used_countreaches zero, at which point we can safely destroy the mapping.For the 32bit concern, this was brought up in some earlier review[1] also. AFAIK the conclusion was just to not care about 32b for modern platforms, so platforms with full ppGTT support where this patch actually matters the most.
[1] https://patchwork.freedesktop.org/patch/404460/?series=84344&rev=1
Okay thanks.
Can I suggest to capture at least the gist of this discussion in the commit message?
Regards,
Tvrtko
Quoted 467 lines
Quoted 467 lines
Regards,
Tvrtko
Quoted 462 lines
v2: (Thomas) Rebase on
dma_resvandobj->mm.lockremoval.Signed-off-by Matthew Auld <[email protected]>Signed-off-by Chris Wilson <[email protected]>Cc Tvrtko Ursulin <[email protected]>---
.../drm/i915/gem/selftests/i915_gem_context.c| 11 +----drivers/gpu/drm/i915/gt/gen6_ppgtt.c | 11 ++--- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 26 ++++------ drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 +-drivers/gpu/drm/i915/gt/intel_gtt.c | 48 +++++++++---------- drivers/gpu/drm/i915/gt/intel_gtt.h | 11 +++-- drivers/gpu/drm/i915/gt/intel_ppgtt.c | 7 ++- drivers/gpu/drm/i915/i915_vma.c | 3 +-
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c| 10 ++-- drivers/gpu/drm/i915/selftests/i915_perf.c | 3 +-10 files changed, 54 insertions(+), 78 deletions(-)drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +2
-9@@ -1740,7 +1740,6 @@ static int read_from_scratch(structi915_gem_context *ctx, static int check_scratch_page(struct i915_gem_context *ctx, u32 *out) { struct i915_address_space *vm; - struct page *page; u32 *vaddr; int err = 0;@@ -1748,24 +1747,18 @@ static int check_scratch_page(struct i915_gem_context *ctx, u32 *out) if (!vm) return -ENODEV; - page = __px_page(vm->scratch[0]); - if (!page) { + if (!vm->scratch[0]) { pr_err("No scratch page!\n"); return -EINVAL; } - vaddr = kmap(page); - if (!vaddr) { - pr_err("No (mappable) scratch page!\n"); - return -EINVAL; - } + vaddr = __px_vaddr(vm->scratch[0]); memcpy(out, vaddr, sizeof(*out)); if (memchr_inv(vaddr, *out, PAGE_SIZE)) { pr_err("Inconsistent initial state of scratch page!\n"); err = -EINVAL; } - kunmap(page); return err; }drivers/gpu/drm/i915/gt/gen6_ppgtt.c +4
-7@@ -96,9 +96,8 @@ static void gen6_ppgtt_clear_range(structi915_address_space *vm, * entries back to scratch. */ - vaddr = kmap_atomic_px(pt); + vaddr = px_vaddr(pt); memset32(vaddr + pte, scratch_pte, count); - kunmap_atomic(vaddr); pte = 0; }@@ -120,7 +119,7 @@ static void gen6_ppgtt_insert_entries(structi915_address_space *vm, GEM_BUG_ON(!pd->entry[act_pt]); - vaddr = kmap_atomic_px(i915_pt_entry(pd, act_pt)); + vaddr = px_vaddr(i915_pt_entry(pd, act_pt)); do { GEM_BUG_ON(sg_dma_len(iter.sg) < I915_GTT_PAGE_SIZE); vaddr[act_pte] = pte_encode | GEN6_PTE_ADDR_ENCODE(iter.dma);@@ -136,12 +135,10 @@ static void gen6_ppgtt_insert_entries(struct i915_address_space *vm, } if (++act_pte == GEN6_PTES) { - kunmap_atomic(vaddr); - vaddr = kmap_atomic_px(i915_pt_entry(pd, ++act_pt)); + vaddr = px_vaddr(i915_pt_entry(pd, ++act_pt)); act_pte = 0; } } while (1); - kunmap_atomic(vaddr); vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; }@@ -235,7 +232,7 @@ static int gen6_ppgtt_init_scratch(struct gen6_ppgtt *ppgtt) goto err_scratch0; } - ret = pin_pt_dma(vm, vm->scratch[1]); + ret = map_pt_dma(vm, vm->scratch[1]); if (ret) goto err_scratch1;drivers/gpu/drm/i915/gt/gen8_ppgtt.c +4
-7@@ -242,11 +242,10 @@ static u64 __gen8_ppgtt_clear(structi915_address_space *const vm, atomic_read(&pt->used)); GEM_BUG_ON(!count || count >= atomic_read(&pt->used)); - vaddr = kmap_atomic_px(pt); + vaddr = px_vaddr(pt); memset64(vaddr + gen8_pd_index(start, 0), vm->scratch[0]->encode, count); - kunmap_atomic(vaddr); atomic_sub(count, &pt->used); start += count;@@ -375,7 +374,7 @@ gen8_ppgtt_insert_pte(struct i915_ppgtt *ppgtt, gen8_pte_t *vaddr; pd = i915_pd_entry(pdp, gen8_pd_index(idx, 2)); - vaddr = kmap_atomic_px(i915_pt_entry(pd, gen8_pd_index(idx, 1))); + vaddr = px_vaddr(i915_pt_entry(pd, gen8_pd_index(idx, 1))); do { GEM_BUG_ON(sg_dma_len(iter->sg) < I915_GTT_PAGE_SIZE); vaddr[gen8_pd_index(idx, 0)] = pte_encode | iter->dma;@@ -402,12 +401,10 @@ gen8_ppgtt_insert_pte(struct i915_ppgtt *ppgtt, } clflush_cache_range(vaddr, PAGE_SIZE); - kunmap_atomic(vaddr); - vaddr = kmap_atomic_px(i915_pt_entry(pd, gen8_pd_index(idx, 1))); + vaddr = px_vaddr(i915_pt_entry(pd, gen8_pd_index(idx, 1))); } } while (1); clflush_cache_range(vaddr, PAGE_SIZE); - kunmap_atomic(vaddr); return idx; }@@ -442,7 +439,7 @@ static void gen8_ppgtt_insert_huge(structi915_vma *vma, encode |= GEN8_PDE_PS_2M; page_size = I915_GTT_PAGE_SIZE_2M; - vaddr = kmap_atomic_px(pd); + vaddr = px_vaddr(pd); } else {struct
i915_page_table*pt =i915_pt_entry(pd, __gen8_pte_index(start, 1));drivers/gpu/drm/i915/gt/gen8_ppgtt.c +1
-2@@ -457,7 +454,7 @@ static void gen8_ppgtt_insert_huge(structi915_vma *vma, rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE)) maybe_64K = __gen8_pte_index(start, 1); - vaddr = kmap_atomic_px(pt); + vaddr = px_vaddr(pt); } do {@@ -491,7 +488,6 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma, } while (rem >= page_size && index < I915_PDES); clflush_cache_range(vaddr, PAGE_SIZE); - kunmap_atomic(vaddr); /** Is it safe to mark the 2M block as 64K? -- Either we have @@ -505,9 +501,8 @@ static void gen8_ppgtt_insert_huge(struct i915_vma *vma,!iter->sg &&
IS_ALIGNED(vma->node.start + vma->node.size, I915_GTT_PAGE_SIZE_2M)))) { - vaddr =kmap_atomic_px(pd);
+ vaddr =px_vaddr(pd); vaddr[maybe_64K] |=GEN8_PDE_IPS_64K; -kunmap_atomic(vaddr);
page_size=I915_GTT_PAGE_SIZE_64K; /*drivers/gpu/drm/i915/gt/gen8_ppgtt.c +4
-5@@ -523,12 +518,11 @@ static void gen8_ppgtt_insert_huge(structi915_vma *vma, u16 i; encode = vma->vm->scratch[0]->encode; - vaddr = kmap_atomic_px(i915_pt_entry(pd, maybe_64K)); + vaddr = px_vaddr(i915_pt_entry(pd, maybe_64K)); for (i = 1; i < index; i += 16) memset64(vaddr + i, encode, 15); - kunmap_atomic(vaddr); } }@@ -602,7 +596,7 @@ static int gen8_init_scratch(struct i915_address_space *vm) if (IS_ERR(obj)) goto free_scratch; - ret = pin_pt_dma(vm, obj); + ret = map_pt_dma(vm, obj); if (ret) { i915_gem_object_put(obj); goto free_scratch;@@ -639,7 +633,7 @@ static int gen8_preallocate_top_level_pdp(struct i915_ppgtt *ppgtt) if (IS_ERR(pde)) return PTR_ERR(pde); - err = pin_pt_dma(vm, pde->pt.base); + err = map_pt_dma(vm, pde->pt.base); if (err) { i915_gem_object_put(pde->pt.base); free_pd(vm, pde);@@ -675,7 +669,7 @@ gen8_alloc_top_pd(struct i915_address_space *vm) goto err_pd; } - err = pin_pt_dma(vm, pd->pt.base); + err = map_pt_dma(vm, pd->pt.base); if (err) goto err_pd;drivers/gpu/drm/i915/gt/intel_ggtt.c +1
-1@@ -657,7 +657,7 @@ static int init_aliasing_ppgtt(struct i915_ggtt *ggtt) goto err_ppgtt; i915_gem_object_lock(ppgtt->vm.scratch[0], NULL); - err = i915_vm_pin_pt_stash(&ppgtt->vm, &stash); + err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); i915_gem_object_unlock(ppgtt->vm.scratch[0]); if (err) goto err_stash;drivers/gpu/drm/i915/gt/intel_gtt.c +18
-12@@ -25,27 +25,25 @@ struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz) return obj; } -int pin_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj) +int map_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { - int err; + void *vaddr; - i915_gem_object_lock(obj, NULL); - err = i915_gem_object_pin_pages(obj); - i915_gem_object_unlock(obj); - if (err) - return err; + vaddr = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WB); + if (IS_ERR(vaddr)) + return PTR_ERR(vaddr); i915_gem_object_make_unshrinkable(obj); return 0; } -int pin_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj) +int map_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { - int err; + void *vaddr; - err = i915_gem_object_pin_pages(obj); - if (err) - return err; + vaddr = i915_gem_object_pin_map(obj, I915_MAP_WB); + if (IS_ERR(vaddr)) + return PTR_ERR(vaddr); i915_gem_object_make_unshrinkable(obj); return 0;@@ -155,6 +153,14 @@ void clear_pages(struct i915_vma *vma) memset(&vma->page_sizes, 0, sizeof(vma->page_sizes)); } +void *__px_vaddr (struct drm_i915_gem_object *p) +{ + enum i915_map_type type; + + GEM_BUG_ON(!i915_gem_object_has_pages(p)); + return page_unpack_bits(p->mm.mapping, &type); +} + dma_addr_t __px_dma(struct drm_i915_gem_object *p) { GEM_BUG_ON(!i915_gem_object_has_pages(p));@@ -170,32 +176,22 @@ struct page *__px_page(struct drm_i915_gem_object *p)void
fill_page_dma(struct drm_i915_gem_object *p, const u64 val, unsigned int count){
- struct page *page =__px_page(p);
- void *vaddr;
+ void *vaddr =__px_vaddr(p);
- vaddr = kmap(page);
memset64(vaddr, val, count);
clflush_cache_range(vaddr, PAGE_SIZE);
- kunmap(page);
}
static voidpoison_scratch_page(struct drm_i915_gem_object *scratch){
- structsgt_itersgt;
- struct page *page;
+ void *vaddr =__px_vaddr(scratch);
u8 val;
val = 0;
if (IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM))
val =POISON_FREE;
-for_each_sgt_page(page, sgt, scratch->mm.pages){
- void *vaddr;
-
- vaddr = kmap(page);
-memset(vaddr, val, PAGE_SIZE);
- kunmap(page);
- }
+memset(vaddr, val, scratch->base.size);
}
intsetup_scratch_page(struct i915_address_space *vm)drivers/gpu/drm/i915/gt/intel_gtt.c +1
-1@@ -225,7 +221,7 @@ int setup_scratch_page(struct i915_address_space *vm) if (IS_ERR(obj)) goto skip; - if (pin_pt_dma(vm, obj)) + if (map_pt_dma(vm, obj)) goto skip_obj; /* We need a single contiguous page for our scratch */drivers/gpu/drm/i915/gt/intel_gtt.h +3
-2@@ -180,6 +180,9 @@ struct page *__px_page(struct drm_i915_gem_object *p); dma_addr_t __px_dma(struct drm_i915_gem_object *p); #define px_dma(px) (__px_dma(px_base(px))) +void *__px_vaddr (struct drm_i915_gem_object *p); +#define px_vaddr (px) (__px_vaddr(px_base(px))) + #define px_pt(px) \ __px_choose_expr(px, struct i915_page_table *, __x, \ __px_choose_expr(px, struct i915_page_directory *, &__x->pt, \@@ -511,8 +514,6 @@ struct i915_ppgtt *i915_ppgtt_create(struct intel_gt *gt); void i915_ggtt_suspend(struct i915_ggtt *gtt); void i915_ggtt_resume(struct i915_ggtt *ggtt); -#define kmap_atomic_px (px) kmap_atomic(__px_page(px_base(px))) -void
fill_page_dma(struct drm_i915_gem_object *p, const u64 val, unsigned int count);drivers/gpu/drm/i915/gt/intel_gtt.h +2
-2@@ -530,8 +531,8 @@ struct i915_page_table *alloc_pt(struct i915_address_space *vm); struct i915_page_directory *alloc_pd(struct i915_address_space *vm); struct i915_page_directory *__alloc_pd(int npde); -int pin_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj); -int pin_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj); +int map_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj); +int map_pt_dma_locked(struct i915_address_space *vm, struct
drm_i915_gem_object*obj);
void free_px(structi915_address_space*vm,
structi915_page_table*pt, int lvl);drivers/gpu/drm/i915/gt/intel_gtt.h +1
-1@@ -578,7 +579,7 @@ void setup_private_pat(struct intel_uncore *uncore); int i915_vm_alloc_pt_stash(struct i915_address_space *vm, struct i915_vm_pt_stash *stash, u64 size); -int i915_vm_pin_pt_stash (struct i915_address_space *vm, +int i915_vm_map_pt_stash (struct i915_address_space *vm, struct i915_vm_pt_stash *stash); void i915_vm_free_pt_stash(struct i915_address_space *vm, struct i915_vm_pt_stash *stash);drivers/gpu/drm/i915/gt/intel_ppgtt.c +1
-2@@ -87,11 +87,10 @@ write_dma_entry(struct drm_i915_gem_object * const pdma, const unsigned short idx, const u64 encoded_entry) { - u64 * const vaddr = kmap_atomic(__px_page(pdma)); + u64 * const vaddr = __px_vaddr(pdma); vaddr[idx] = encoded_entry; clflush_cache_range(&vaddr[idx], sizeof(u64)); - kunmap_atomic(vaddr); }void
drivers/gpu/drm/i915/gt/intel_ppgtt.c +2
-2@@ -258,7 +257,7 @@ int i915_vm_alloc_pt_stash(structi915_address_space *vm, return 0; } -int i915_vm_pin_pt_stash(struct i915_address_space *vm, +int i915_vm_map_pt_stash(struct i915_address_space *vm, struct i915_vm_pt_stash *stash) { struct i915_page_table *pt;@@ -266,7 +265,7 @@ int i915_vm_pin_pt_stash(struct i915_address_space *vm, for (n = 0; n < ARRAY_SIZE(stash->pt); n++) { for (pt = stash->pt[n]; pt; pt = pt->stash) { - err = pin_pt_dma_locked(vm, pt->base); + err = map_pt_dma_locked(vm, pt->base); if (err) return err; }drivers/gpu/drm/i915/i915_vma.c +1
-2@@ -905,8 +905,7 @@ int i915_vma_pin_ww(struct i915_vma *vma, structi915_gem_ww_ctx *ww, if (err) goto err_fence; - err = i915_vm_pin_pt_stash(vma->vm, - &work->stash); + err = i915_vm_map_pt_stash(vma->vm, &work->stash); if (err) goto err_fence; }drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +3
-4@@ -186,7 +186,7 @@ static int igt_ppgtt_alloc(void *arg) if (err) goto err_ppgtt_cleanup; - err = i915_vm_pin_pt_stash(&ppgtt->vm, &stash); + err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); if (err) { i915_vm_free_pt_stash(&ppgtt->vm, &stash); goto err_ppgtt_cleanup;@@ -208,7 +208,7 @@ static int igt_ppgtt_alloc(void *arg) if (err) goto err_ppgtt_cleanup; - err = i915_vm_pin_pt_stash(&ppgtt->vm, &stash); + err = i915_vm_map_pt_stash(&ppgtt->vm, &stash); if (err) { i915_vm_free_pt_stash(&ppgtt->vm, &stash); goto err_ppgtt_cleanup;@@ -325,11 +325,10 @@ static int lowlevel_hole(structi915_address_space *vm, BIT_ULL(size))) goto alloc_vm_end; - err = i915_vm_pin_pt_stash(vm, &stash); + err = i915_vm_map_pt_stash(vm, &stash); if (!err) vm->allocate_va_range(vm, &stash, addr, BIT_ULL(size)); - i915_vm_free_pt_stash(vm, &stash);
alloc_vm_end:
if (err ==-EDEADLK) {drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +1
-2@@ -1967,10 +1966,9 @@ static int igt_cs_tlb(void *arg) if (err) goto end_ww; - err = i915_vm_pin_pt_stash(vm, &stash); + err = i915_vm_map_pt_stash(vm, &stash); if (!err) vm->allocate_va_range(vm, &stash, offset, chunk_size); - i915_vm_free_pt_stash(vm, &stash);
end_ww:
if (err ==-EDEADLK) {drivers/gpu/drm/i915/selftests/i915_perf.c +1
-1@@ -307,7 +307,7 @@ static int live_noa_gpr(void *arg) } /* Poison the ce->vm so we detect writes not to the GGTT gt->scratch */ - scratch = kmap(__px_page(ce->vm->scratch[0])); + scratch = __px_vaddr(ce->vm->scratch[0]); memset(scratch, POISON_FREE, PAGE_SIZE); rq = intel_context_create_request(ce);@@ -405,7 +405,6 @@ static int live_noa_gpr(void *arg)
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
out_rq:
i915_request_put(rq);
out_ce:
- kunmap(__px_page(ce->vm->scratch[0]));
intel_context_put(ce);
out:
stream_destroy(stream);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/7 drm/i915/gtt/dgfx: place the PD in LMEM
In reply to Matthew AuldIt's a requirement that for dgfx we place all the paging structures in device local-memory.
v2: use i915_coherent_map_type()
--- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 5 ++++- drivers/gpu/drm/i915/gt/intel_gtt.c | 21 +++++++++++++++++++-- drivers/gpu/drm/i915/gt/intel_gtt.h | 1 + 3 files changed, 24 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/gen8_ppgtt.c +4 -1
@@ -712,7 +712,10 @@ struct i915_ppgtt *gen8_ppgtt_create(struct intel_gt *gt)*/ ppgtt->vm.has_read_only = !IS_GEN_RANGE (gt->i915,11 ,12 ); - ppgtt->vm.alloc_pt_dma = alloc_pt_dma; +if (HAS_LMEM (gt->i915)) + ppgtt->vm.alloc_pt_dma = alloc_pt_lmem; +else + ppgtt->vm.alloc_pt_dma = alloc_pt_dma; err =gen8_init_scratch (&ppgtt->vm);if (err)
drivers/gpu/drm/i915/gt/intel_gtt.c +19 -2
@@ -7,10 +7,23 @@#include <linux/fault-inject.h> +#include "gem/i915_gem_lmem.h" #include "i915_trace.h" #include "intel_gt.h" #include "intel_gtt.h" +struct drm_i915_gem_object *alloc_pt_lmem (struct i915_address_space *vm,int sz) +{ +struct drm_i915_gem_object *obj; + + obj =i915_gem_object_create_lmem (vm->i915, sz,0 ); + +/* ensure all dma objects have the same reservation class */ +if (!IS_ERR (obj)) + obj->base.resv = &vm->resv; +return obj; +} +struct drm_i915_gem_object *alloc_pt_dma (struct i915_address_space *vm,int sz) {struct drm_i915_gem_object *obj;
@@ -27,9 +40,11 @@ struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz)int map_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { +enum i915_map_type type;void *vaddr; - vaddr =i915_gem_object_pin_map_unlocked (obj,I915_MAP_WB ); + type =i915_coherent_map_type (vm->i915, obj, true); + vaddr =i915_gem_object_pin_map_unlocked (obj, type);if (IS_ERR (vaddr))return PTR_ERR (vaddr);
@@ -39,9 +54,11 @@ int map_pt_dma(struct i915_address_space *vm, struct drm_i915_gem_object *obj)int map_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { +enum i915_map_type type;void *vaddr; - vaddr =i915_gem_object_pin_map (obj,I915_MAP_WB ); + type =i915_coherent_map_type (vm->i915, obj, true); + vaddr =i915_gem_object_pin_map (obj, type);if (IS_ERR (vaddr))return PTR_ERR (vaddr);
drivers/gpu/drm/i915/gt/intel_gtt.h +1 -0
@@ -527,6 +527,7 @@ int setup_scratch_page(struct i915_address_space *vm);void free_scratch (struct i915_address_space *vm);struct drm_i915_gem_object *alloc_pt_dma (struct i915_address_space *vm,int sz); +struct drm_i915_gem_object *alloc_pt_lmem (struct i915_address_space *vm,int sz);struct i915_page_table *alloc_pt (struct i915_address_space *vm);struct i915_page_directory *alloc_pd (struct i915_address_space *vm);struct i915_page_directory *__alloc_pd (int npde);
Signature · 6 lines
2.26.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 4/7] drm/i915/gtt/dgfx: place the PD in LMEM
Quoted 39 lines · Matthew Auld
It's a requirement that for dgfx we place all the paging structures in device local-memory.
v2: use
i915_coherent_map_type()Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>--- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 5 ++++- drivers/gpu/drm/i915/gt/intel_gtt.c | 21 +++++++++++++++++++-- drivers/gpu/drm/i915/gt/intel_gtt.h | 1 + 3 files changed, 24 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/gt/gen8_ppgtt.c +4
-1@@ -712,7 +712,10 @@ struct i915_ppgtt *gen8_ppgtt_create(struct intel_gt *gt)*/ ppgtt->vm.has_read_only = !IS_GEN_RANGE (gt->i915,11 ,12 ); - ppgtt->vm.alloc_pt_dma = alloc_pt_dma; +if (HAS_LMEM (gt->i915)) + ppgtt->vm.alloc_pt_dma = alloc_pt_lmem; +else + ppgtt->vm.alloc_pt_dma = alloc_pt_dma; err =gen8_init_scratch (&ppgtt->vm);if (err)drivers/gpu/drm/i915/gt/intel_gtt.c +1
-0@@ -7,10 +7,23 @@#include <linux/fault-inject.h> +#include "gem/i915_gem_lmem.h" #include "i915_trace.h"
drivers/gpu/drm/i915/gt/intel_gtt.c line 21
Quoted 10 lines
drivers/gpu/drm/i915/gt/intel_gtt.c +7
-0#include "intel_gt.h" #include "intel_gtt.h" +struct drm_i915_gem_object *alloc_pt_lmem (struct i915_address_space *vm,int sz) +{ +struct drm_i915_gem_object *obj; + + obj =i915_gem_object_create_lmem (vm->i915, sz,0 ); + +/* ensure all dma objects have the same reservation class */
Class or actual object? And could the comment say why this is important?
Regards,
Tvrtko
Quoted 40 lines
drivers/gpu/drm/i915/gt/intel_gtt.c +11
-2+if (!IS_ERR (obj)) + obj->base.resv = &vm->resv; +return obj; +} +struct drm_i915_gem_object *alloc_pt_dma (struct i915_address_space *vm,int sz) {struct drm_i915_gem_object *obj;@@ -27,9 +40,11 @@ struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz)int map_pt_dma (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { +enum i915_map_type type;void *vaddr; - vaddr =i915_gem_object_pin_map_unlocked (obj,I915_MAP_WB ); + type =i915_coherent_map_type (vm->i915, obj, true); + vaddr =i915_gem_object_pin_map_unlocked (obj, type);if (IS_ERR (vaddr))return PTR_ERR (vaddr);@@ -39,9 +54,11 @@ int map_pt_dma(struct i915_address_space *vm, struct drm_i915_gem_object *obj)int map_pt_dma_locked (struct i915_address_space *vm,struct drm_i915_gem_object *obj) { +enum i915_map_type type;void *vaddr; - vaddr =i915_gem_object_pin_map (obj,I915_MAP_WB ); + type =i915_coherent_map_type (vm->i915, obj, true); + vaddr =i915_gem_object_pin_map (obj, type);if (IS_ERR (vaddr))return PTR_ERR (vaddr);drivers/gpu/drm/i915/gt/intel_gtt.h +0
-0
drivers/gpu/drm/i915/gt/intel_gtt.h int setup_scratch_page(struct i915_address_space *vm); · line 533
Quoted 7 lines
drivers/gpu/drm/i915/gt/intel_gtt.h +1
-0@@ -527,6 +527,7 @@ int setup_scratch_page(struct i915_address_space *vm);void free_scratch (struct i915_address_space *vm);struct drm_i915_gem_object *alloc_pt_dma (struct i915_address_space *vm,int sz); +struct drm_i915_gem_object *alloc_pt_lmem (struct i915_address_space *vm,int sz);struct i915_page_table *alloc_pt (struct i915_address_space *vm);struct i915_page_directory *alloc_pd (struct i915_address_space *vm);struct i915_page_directory *__alloc_pd (int npde);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 4/7] drm/i915/gtt/dgfx: place the PD in LMEM
Quoted 42 lines · Tvrtko Ursulin
Quoted 40 lines · Matthew Auld
It's a requirement that for dgfx we place all the paging structures in device local-memory.
v2: use
i915_coherent_map_type()Signed-off-by Matthew Auld <[email protected]>Cc Tvrtko Ursulin <[email protected]>---
drivers/gpu/drm/i915/gt/gen8_ppgtt.c| 5 ++++- drivers/gpu/drm/i915/gt/intel_gtt.c | 21 +++++++++++++++++++-- drivers/gpu/drm/i915/gt/intel_gtt.h | 1 +3 files changed, 24 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/gt/gen8_ppgtt.c +4
-1@@ -712,7 +712,10 @@ struct i915_ppgtt *gen8_ppgtt_create(structintel_gt *gt) */ ppgtt->vm.has_read_only = !IS_GEN_RANGE(gt->i915, 11, 12); - ppgtt->vm.alloc_pt_dma = alloc_pt_dma; + if (HAS_LMEM(gt->i915)) + ppgtt->vm.alloc_pt_dma = alloc_pt_lmem; + else + ppgtt->vm.alloc_pt_dma = alloc_pt_dma; err = gen8_init_scratch(&ppgtt->vm); if (err)drivers/gpu/drm/i915/gt/intel_gtt.c +2
-0@@ -7,10 +7,23 @@ #include <linux/fault-inject.h> +#include "gem/i915_gem_lmem.h" #include "i915_trace.h" #include "intel_gt.h" #include "intel_gtt.h" +struct drm_i915_gem_object *alloc_pt_lmem (struct i915_address_space *vm,int sz)
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gtt.c line 21
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gtt.c +6
-0+{ + struct drm_i915_gem_object *obj; + + obj = i915_gem_object_create_lmem(vm->i915, sz, 0); + + /* ensure all dma objects have the same reservation class */Class or actual object? And could the comment say why this is important?
It's the dma-resv object. The paging structures for this vm share the same dma-resv object underneath, with the idea that one object_lock() will lock them all at once. I can try to improve the comment.
Quoted 41 lines
Regards,
Tvrtko
Quoted 36 lines
drivers/gpu/drm/i915/gt/intel_gtt.c +11
-2+ if (!IS_ERR(obj)) + obj->base.resv = &vm->resv; + return obj; +} + struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz) { struct drm_i915_gem_object *obj;@@ -27,9 +40,11 @@ struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz) int map_pt_dma(struct i915_address_space *vm, struct drm_i915_gem_object *obj) { + enum i915_map_type type; void *vaddr; - vaddr = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WB); + type = i915_coherent_map_type(vm->i915, obj, true); + vaddr = i915_gem_object_pin_map_unlocked(obj, type); if (IS_ERR(vaddr)) return PTR_ERR(vaddr);@@ -39,9 +54,11 @@ int map_pt_dma(struct i915_address_space *vm, struct drm_i915_gem_object *obj) int map_pt_dma_locked(struct i915_address_space *vm, struct drm_i915_gem_object *obj) { + enum i915_map_type type; void *vaddr; - vaddr = i915_gem_object_pin_map(obj, I915_MAP_WB); + type = i915_coherent_map_type(vm->i915, obj, true); + vaddr = i915_gem_object_pin_map(obj, type); if (IS_ERR(vaddr)) return PTR_ERR(vaddr);drivers/gpu/drm/i915/gt/intel_gtt.h +0
-0@@ -527,6 +527,7 @@ int setup_scratch_page(struct i915_address_space *vm);
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_gtt.h +1
-0void free_scratch(struct i915_address_space *vm); struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz); +struct drm_i915_gem_object *alloc_pt_lmem (struct i915_address_space *vm,int sz); struct i915_page_table *alloc_pt(struct i915_address_space *vm); struct i915_page_directory *alloc_pd(struct i915_address_space *vm);struct
i915_page_directory*__alloc_pd(int npde);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 5/7 drm/i915/fbdev: Use lmem physical addresses for fb_mmap() on discrete
In reply to Matthew AuldFrom: Mohammed Khajapasha <[email protected]>
Use local memory io BAR address for fbdev's fb_mmap() operation on discrete, fbdev uses the physical address of our framebuffer for its fb_mmap() fn.
--- drivers/gpu/drm/i915/display/intel_fbdev.c | 29 +++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_fbdev.c +23 -6
@@ -41,6 +41,8 @@#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> +#include "gem/i915_gem_lmem.h" +#include "i915_drv.h" #include "intel_display_types.h" #include "intel_fbdev.h"
@@ -178,6 +180,7 @@ static int intelfb_create(struct drm_fb_helper *helper,unsigned long flags =0 ;bool prealloc = false;void __iomem *vaddr; +struct drm_i915_gem_object *obj;int ret; if (intel_fb &&
@@ -232,13 +235,27 @@ static int intelfb_create(struct drm_fb_helper *helper, info->fbops = &intelfb_ops;/* setup aperture base/size for vesafb takeover */ - info->apertures->ranges[0 ].base = ggtt->gmadr.start; - info->apertures->ranges[0 ].size = ggtt->mappable_end; + obj =intel_fb_obj (&intel_fb->base); +if (i915_gem_object_is_lmem (obj)) { +struct intel_memory_region *mem = obj->mm.region; + + info->apertures->ranges[0 ].base = mem->io_start; + info->apertures->ranges[0 ].size = mem->total; + +/* Use fbdev's framebuffer from lmem for discrete */ + info->fix.smem_start = + (unsigned long )(mem->io_start + +i915_gem_object_get_dma_address (obj,0 )); + info->fix.smem_len = obj->base.size; + }else { + info->apertures->ranges[0 ].base = ggtt->gmadr.start; + info->apertures->ranges[0 ].size = ggtt->mappable_end; -/* Our framebuffer is the entirety of fbdev's system memory */ - info->fix.smem_start = - (unsigned long )(ggtt->gmadr.start + vma->node.start); - info->fix.smem_len = vma->node.size; +/* Our framebuffer is the entirety of fbdev's system memory */ + info->fix.smem_start = + (unsigned long )(ggtt->gmadr.start + vma->node.start); + info->fix.smem_len = vma->node.size; + } vaddr =i915_vma_pin_iomap (vma);if (IS_ERR (vaddr)) {
Signature · 6 lines
2.26.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/7 drm/i915/lmem: Bypass aperture when lmem is available
In reply to Matthew AuldFrom: Anusha Srivatsa <[email protected]>
In the scenario where local memory is available, we have rely on CPU access via lmem directly instead of aperture.
v2:
gmch is only relevant for much older hw, therefore we can drop the has_aperture check since it should always be present on such platforms. (Chris)
--- drivers/gpu/drm/i915/display/intel_fbdev.c | 22 +++++++++++++------ drivers/gpu/drm/i915/gem/i915_gem_lmem.c | 15 +++++++++++++ drivers/gpu/drm/i915/gem/i915_gem_lmem.h | 5 +++++ drivers/gpu/drm/i915/i915_vma.c | 25 ++++++++++++++++------ 4 files changed, 54 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/display/intel_fbdev.c +15 -7
@@ -139,14 +139,22 @@ static int intelfb_alloc(struct drm_fb_helper *helper, size = mode_cmd.pitches[0 ] * mode_cmd.height; size =PAGE_ALIGN (size); -/* If the FB is too big, just don't use it since fbdev is not very -* important and we should probably use that space with FBC or other -* features. */ obj =ERR_PTR (-ENODEV ); -if (size *2 < dev_priv->stolen_usable_size) - obj =i915_gem_object_create_stolen (dev_priv, size); -if (IS_ERR (obj)) - obj =i915_gem_object_create_shmem (dev_priv, size); +if (HAS_LMEM (dev_priv)) { + obj =i915_gem_object_create_lmem (dev_priv, size, +I915_BO_ALLOC_CONTIGUOUS ); + }else { +/* +* If the FB is too big, just don't use it since fbdev is not very +* important and we should probably use that space with FBC or other +* features. +*/ +if (size *2 < dev_priv->stolen_usable_size) + obj =i915_gem_object_create_stolen (dev_priv, size); +if (IS_ERR (obj)) + obj =i915_gem_object_create_shmem (dev_priv, size); + } +if (IS_ERR (obj)) {drm_err (&dev_priv->drm,"failed to allocate framebuffer\n" );return PTR_ERR (obj);
drivers/gpu/drm/i915/gem/i915_gem_lmem.c +15 -0
@@ -17,6 +17,21 @@ const struct drm_i915_gem_object_ops i915_gem_lmem_obj_ops = { .release = i915_gem_object_release_memory_region, }; +void __iomem * +i915_gem_object_lmem_io_map (struct drm_i915_gem_object *obj, +unsigned long n, +unsigned long size) +{ +resource_size_t offset; + +GEM_BUG_ON (!i915_gem_object_is_contiguous (obj)); + + offset =i915_gem_object_get_dma_address (obj, n); + offset -= obj->mm.region->region.start; + +return io_mapping_map_wc (&obj->mm.region->iomap, offset, size); +} +bool i915_gem_object_is_lmem (struct drm_i915_gem_object *obj) {struct intel_memory_region *mr = obj->mm.region;
drivers/gpu/drm/i915/gem/i915_gem_lmem.h +5 -0
@@ -14,6 +14,11 @@ struct intel_memory_region;extern const struct drm_i915_gem_object_ops i915_gem_lmem_obj_ops; +void __iomem * +i915_gem_object_lmem_io_map (struct drm_i915_gem_object *obj, +unsigned long n, +unsigned long size); +bool i915_gem_object_is_lmem (struct drm_i915_gem_object *obj); struct drm_i915_gem_object *
drivers/gpu/drm/i915/i915_vma.c +19 -6
@@ -27,6 +27,7 @@#include "display/intel_frontbuffer.h" +#include "gem/i915_gem_lmem.h" #include "gt/intel_engine.h" #include "gt/intel_engine_heartbeat.h" #include "gt/intel_gt.h"
@@ -448,9 +449,11 @@ void __iomem *i915_vma_pin_iomap(struct i915_vma *vma)void __iomem *ptr;int err; -if (GEM_WARN_ON (!i915_vma_is_map_and_fenceable (vma))) { - err = -ENODEV ; - goto err; +if (!i915_gem_object_is_lmem (vma->obj)) { +if (GEM_WARN_ON (!i915_vma_is_map_and_fenceable (vma))) { + err = -ENODEV ; + goto err; + } }GEM_BUG_ON (!i915_vma_is_ggtt (vma));
@@ -458,9 +461,19 @@ void __iomem *i915_vma_pin_iomap(struct i915_vma *vma) ptr =READ_ONCE (vma->iomap);if (ptr ==NULL ) { - ptr =io_mapping_map_wc (&i915_vm_to_ggtt (vma->vm)->iomap, - vma->node.start, - vma->node.size); +/* +* TODO: consider just using i915_gem_object_pin_map() for lmem +* instead, which already supports mapping non-contiguous chunks +* of pages, that way we can also drop the +* I915_BO_ALLOC_CONTIGUOUS when allocating the object. +*/ +if (i915_gem_object_is_lmem (vma->obj)) + ptr =i915_gem_object_lmem_io_map (vma->obj,0 , + vma->obj->base.size); +else + ptr =io_mapping_map_wc (&i915_vm_to_ggtt (vma->vm)->iomap, + vma->node.start, + vma->node.size);if (ptr ==NULL ) { err = -ENOMEM ; goto err;
Signature · 6 lines
2.26.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 7/7 drm/i915: Return error value when bo not in LMEM for discrete
In reply to Matthew AuldFrom: Mohammed Khajapasha <[email protected]>
Return EREMOTE value when frame buffer object is not backed by LMEM for discrete. If Local memory is supported by hardware the framebuffer backing gem objects should be from local memory.
--- drivers/gpu/drm/i915/display/intel_display.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/gpu/drm/i915/display/intel_display.c +10 -0
@@ -63,6 +63,7 @@#include "display/intel_vdsc.h" #include "display/intel_vrr.h" +#include "gem/i915_gem_lmem.h" #include "gem/i915_gem_object.h" #include "gt/intel_rps.h"
@@ -11269,11 +11270,20 @@ intel_user_framebuffer_create(struct drm_device *dev,struct drm_framebuffer *fb;struct drm_i915_gem_object *obj;struct drm_mode_fb_cmd2 mode_cmd = *user_mode_cmd; +struct drm_i915_private *i915; obj =i915_gem_object_lookup (filp, mode_cmd.handles[0 ]);if (!obj)return ERR_PTR (-ENOENT ); +/* object is backed with LMEM for discrete */ + i915 =to_i915 (obj->base.dev); +if (HAS_LMEM (i915) && !i915_gem_object_is_lmem (obj)) { +/* object is "remote", not in local memory */ +i915_gem_object_put (obj); +return ERR_PTR (-EREMOTE ); + } + fb =intel_framebuffer_create (obj, &mode_cmd);i915_gem_object_put (obj);
Signature · 6 lines
2.26.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/7] drm/i915/dg1: Fix mapping type for default state object
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: series starting with [1/7] drm/i915/dg1: Fix mapping type for default state object
URL : https://patchwork.freedesktop.org/series/89484/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
5964f7549f43 drm/i915/dg1: Fix mapping type for default state object
7eac22c6a6bc drm/i915: Update the helper to set correct mapping
-:56: CHECK:BRACES: Unbalanced braces around else statement
#56: FILE: drivers/gpu/drm/i915/gt/intel_ring.c:56:
+ else {total: 0 errors, 0 warnings, 1 checks, 123 lines checked c7217fe20683 drm/i915/gtt: map the PD up front
-:10: WARNING:TYPO_SPELLING: 'maping' may be misspelled - perhaps 'mapping'? #10:
maping code that for simple single page shmemfs object will return a ^^^^^^
total: 0 errors, 1 warnings, 0 checks, 403 lines checked118ad8d86487 drm/i915/gtt/dgfx: place the PD in LMEM5a13d9428dfd drm/i915/fbdev: Use lmem physical addresses for fb_mmap() on discrete d5ceb645e58f drm/i915/lmem: Bypass aperture when lmem is available 3c391da47483 drm/i915: Return error value when bo not in LMEM for discrete
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/7] drm/i915/dg1: Fix mapping type for default state object
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: series starting with [1/7] drm/i915/dg1: Fix mapping type for default state object
URL : https://patchwork.freedesktop.org/series/89484/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. - +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:27:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:32:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:49:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_engine_stats.h:56:9: warning: trying to copy expression type 31 +drivers/gpu/drm/i915/gt/intel_reset.c:1329:5: warning: context imbalance in 'intel_gt_reset_trylock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/intel_ring_submission.c:1203:24: warning: Using plain integer as NULL pointer +drivers/gpu/drm/i915/gvt/mmio.c:295:23: warning: memcpy with byte count of 279040 +drivers/gpu/drm/i915/i915_perf.c:1434:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/i915_perf.c:1488:15: warning: memset with byte count of 16777216 +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write8' - different lock contexts for basic block
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/7] drm/i915/dg1: Fix mapping type for default state object
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: series starting with [1/7] drm/i915/dg1: Fix mapping type for default state object
URL : https://patchwork.freedesktop.org/series/89484/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10008 -> Patchwork_19988
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/index.html
Known issues
------------
Here are the changes found in Patchwork_19988 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [PASS][1] -> [INCOMPLETE][2] ([i915#2782])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/fi-snb-2600/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/fi-snb-2600/igt@i915_selftest@[email protected]
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
Participating hosts (39 -> 37)
------------------------------
Missing (2): fi-bsw-cyan fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_10008 -> Patchwork_19988
CI-20190529: 20190529
CI_DRM_10008: c6443550caede08a08740ae6b02c78ef4b53e7d1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6074: 3f43ae9fd22dc5a517786b984dc3aa717997664f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19988: 3c391da4748325fef609f8bb61a1bfeef3c5a79a @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
3c391da47483 drm/i915: Return error value when bo not in LMEM for discrete d5ceb645e58f drm/i915/lmem: Bypass aperture when lmem is available 5a13d9428dfd drm/i915/fbdev: Use lmem physical addresses for fb_mmap() on discrete 118ad8d86487 drm/i915/gtt/dgfx: place the PD in LMEMc7217fe20683 drm/i915/gtt: map the PD up front7eac22c6a6bc drm/i915: Update the helper to set correct mapping 5964f7549f43 drm/i915/dg1: Fix mapping type for default state object
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/7] drm/i915/dg1: Fix mapping type for default state object
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: series starting with [1/7] drm/i915/dg1: Fix mapping type for default state object
URL : https://patchwork.freedesktop.org/series/89484/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10008_full -> Patchwork_19988_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_19988_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_persistence@engines-queued:
- shard-snb: NOTRUN -> [SKIP][1] ([fdo#109271] / [i915#1099]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-snb5/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][2] -> [TIMEOUT][3] ([i915#2369] / [i915#3063])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-tglb3/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-tglb2/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-apl: NOTRUN -> [FAIL][4] ([i915#2846])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl1/igt@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-kbl: [PASS][5] -> [FAIL][6] ([i915#2842]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl2/igt@gem_exec_fair@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-glk: [PASS][7] -> [FAIL][8] ([i915#2842])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-glk7/igt@gem_exec_fair@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-glk8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs1:
- shard-iclb: NOTRUN -> [FAIL][9] ([i915#2842])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][10] -> [FAIL][11] ([i915#2849])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb4/igt@gem_exec_fair@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_reloc@basic-wide-active@vcs1:
- shard-iclb: NOTRUN -> [FAIL][12] ([i915#2389])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb1/igt@gem_exec_reloc@[email protected]
* igt@gem_exec_whisper@basic-queues-forked-all:
- shard-iclb: [PASS][13] -> [INCOMPLETE][14] ([i915#1895])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb7/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-kbl: NOTRUN -> [SKIP][15] ([fdo#109271] / [i915#2190])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl2/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-big-copy-odd:
- shard-iclb: [PASS][16] -> [FAIL][17] ([i915#307])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb1/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb2/igt@[email protected]
* igt@gem_pwrite@basic-exhaustion:
- shard-kbl: NOTRUN -> [WARN][18] ([i915#2658])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl2/igt@[email protected]
* igt@gem_userptr_blits@set-cache-level:
- shard-snb: NOTRUN -> [FAIL][19] ([i915#3324])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-snb2/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-apl: NOTRUN -> [FAIL][20] ([i915#3318])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl7/igt@[email protected]
* igt@gen7_exec_parse@basic-offset:
- shard-apl: NOTRUN -> [SKIP][21] ([fdo#109271]) +187 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl1/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [PASS][22] -> [FAIL][23] ([i915#454])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb7/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb6/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][24] ([i915#454])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl4/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-dp:
- shard-apl: NOTRUN -> [SKIP][25] ([fdo#109271] / [i915#1937])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl8/igt@i915_pm_lpsp@[email protected]
* igt@kms_big_joiner@basic:
- shard-skl: NOTRUN -> [SKIP][26] ([fdo#109271] / [i915#2705])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl4/igt@[email protected]
* igt@kms_chamelium@hdmi-cmp-planar-formats:
- shard-iclb: NOTRUN -> [SKIP][27] ([fdo#109284] / [fdo#111827]) +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb4/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-change-during-suspend:
- shard-apl: NOTRUN -> [SKIP][28] ([fdo#109271] / [fdo#111827]) +16 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl8/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-blue-to-red:
- shard-kbl: NOTRUN -> [SKIP][29] ([fdo#109271] / [fdo#111827]) +12 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl3/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-green-to-red:
- shard-skl: NOTRUN -> [SKIP][30] ([fdo#109271] / [fdo#111827]) +4 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl1/igt@[email protected]
* igt@kms_color_chamelium@pipe-c-ctm-green-to-red:
- shard-snb: NOTRUN -> [SKIP][31] ([fdo#109271] / [fdo#111827]) +15 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-snb6/igt@[email protected]
* igt@kms_content_protection@atomic-dpms:
- shard-apl: NOTRUN -> [TIMEOUT][32] ([i915#1319]) +2 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-32x10-offscreen:
- shard-iclb: NOTRUN -> [SKIP][33] ([fdo#109278]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb4/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-512x512-offscreen:
- shard-iclb: NOTRUN -> [SKIP][34] ([fdo#109278] / [fdo#109279])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb4/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-suspend:
- shard-kbl: NOTRUN -> [SKIP][35] ([fdo#109271]) +98 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl3/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-d-128x128-right-edge:
- shard-snb: NOTRUN -> [SKIP][36] ([fdo#109271]) +257 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-snb2/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: NOTRUN -> [FAIL][37] ([i915#2346] / [i915#533])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_flip@flip-vs-expired-vblank@c-hdmi-a1:
- shard-glk: [PASS][38] -> [FAIL][39] ([i915#79])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-glk9/igt@kms_flip@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-glk7/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-kbl: [PASS][40] -> [DMESG-WARN][41] ([i915#180]) +6 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl3/igt@kms_flip@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl4/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile:
- shard-skl: NOTRUN -> [SKIP][42] ([fdo#109271] / [i915#2642])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl6/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-apl: NOTRUN -> [SKIP][43] ([fdo#109271] / [i915#2642])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl7/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs:
- shard-apl: NOTRUN -> [SKIP][44] ([fdo#109271] / [i915#2672])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-wc:
- shard-kbl: [PASS][45] -> [FAIL][46] ([i915#2546] / [i915#49])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl2/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-wc.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-mmap-gtt:
- shard-iclb: NOTRUN -> [SKIP][47] ([fdo#109280]) +1 similar issue
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb4/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-mmap-gtt.html
* igt@kms_invalid_dotclock:
- shard-iclb: NOTRUN -> [SKIP][48] ([fdo#109310])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb4/igt@kms_invalid_dotclock.html
* igt@kms_pipe_crc_basic@disable-crc-after-crtc-pipe-d:
- shard-apl: NOTRUN -> [SKIP][49] ([fdo#109271] / [i915#533]) +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][50] ([fdo#108145] / [i915#265]) +5 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][51] ([i915#265])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-7efc:
- shard-kbl: NOTRUN -> [FAIL][52] ([fdo#108145] / [i915#265]) +3 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: NOTRUN -> [FAIL][53] ([fdo#108145] / [i915#265])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl4/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-5:
- shard-apl: NOTRUN -> [SKIP][54] ([fdo#109271] / [i915#658]) +4 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl1/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-3:
- shard-kbl: NOTRUN -> [SKIP][55] ([fdo#109271] / [i915#658]) +2 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl3/igt@[email protected]
* igt@kms_psr2_su@frontbuffer:
- shard-skl: NOTRUN -> [SKIP][56] ([fdo#109271] / [i915#658])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl4/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][57] -> [SKIP][58] ([fdo#109441]) +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb7/igt@kms_psr@psr2_sprite_plane_move.html
* igt@kms_vblank@pipe-d-query-forked-hang:
- shard-skl: NOTRUN -> [SKIP][59] ([fdo#109271]) +47 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl1/igt@[email protected]
* igt@kms_writeback@writeback-check-output:
- shard-apl: NOTRUN -> [SKIP][60] ([fdo#109271] / [i915#2437]) +1 similar issue
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl1/igt@[email protected]
* igt@kms_writeback@writeback-invalid-parameters:
- shard-kbl: NOTRUN -> [SKIP][61] ([fdo#109271] / [i915#2437])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl3/igt@[email protected]
* igt@perf@polling-parameterized:
- shard-skl: [PASS][62] -> [FAIL][63] ([i915#1542])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl9/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl10/igt@[email protected]
* igt@prime_nv_test@i915_import_pread_pwrite:
- shard-iclb: NOTRUN -> [SKIP][64] ([fdo#109291])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb4/igt@prime_nv_test@i915_import_pread_pwrite.html
* igt@sysfs_clients@pidname:
- shard-apl: NOTRUN -> [SKIP][65] ([fdo#109271] / [i915#2994]) +3 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl1/igt@[email protected]
* igt@sysfs_clients@sema-50:
- shard-kbl: NOTRUN -> [SKIP][66] ([fdo#109271] / [i915#2994]) +1 similar issue
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl3/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_ringsize@active@bcs0:
- shard-skl: [INCOMPLETE][67] ([i915#3316]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl1/igt@gem_ctx_ringsize@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl1/igt@gem_ctx_ringsize@[email protected]
* igt@gem_exec_fair@basic-none@vecs0:
- shard-apl: [FAIL][69] ([i915#2842]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-apl8/igt@gem_exec_fair@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-apl6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-kbl: [FAIL][71] ([i915#2842]) -> [PASS][72]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl4/igt@gem_exec_fair@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_whisper@basic-forked:
- shard-glk: [DMESG-WARN][73] ([i915#118] / [i915#95]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-glk3/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-glk1/igt@[email protected]
* igt@gem_exec_whisper@basic-queues-priority-all:
- shard-iclb: [INCOMPLETE][75] ([i915#1895]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb2/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb4/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-big-copy:
- shard-glk: [FAIL][77] ([i915#307]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-glk9/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-glk7/igt@[email protected]
- shard-iclb: [FAIL][79] ([i915#307]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb6/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb8/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-medium-copy-xy:
- shard-iclb: [FAIL][81] ([i915#2428]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb6/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb2/igt@[email protected]
* igt@gem_vm_create@destroy-race:
- shard-tglb: [FAIL][83] ([i915#2822]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-tglb8/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-tglb6/igt@[email protected]
* igt@kms_color@pipe-b-ctm-0-75:
- shard-skl: [DMESG-WARN][85] ([i915#1982]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl4/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-256x85-offscreen:
- shard-skl: [FAIL][87] ([i915#54]) -> [PASS][88]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl9/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl10/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [DMESG-WARN][89] ([i915#180]) -> [PASS][90] +3 similar issues
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl4/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl2/igt@[email protected]
* igt@kms_cursor_legacy@2x-flip-vs-cursor-atomic:
- shard-glk: [FAIL][91] ([i915#72]) -> [PASS][92]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-glk1/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-glk3/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb8888-mmap-cpu-xtiled:
- shard-skl: [FAIL][93] ([i915#52] / [i915#54]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl9/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl10/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-suspend:
- shard-skl: [INCOMPLETE][95] ([i915#123]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl7/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl1/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: [FAIL][97] ([i915#1188]) -> [PASS][98]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl10/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl2/igt@[email protected]
* igt@kms_pipe_crc_basic@disable-crc-after-crtc-pipe-c:
- shard-skl: [FAIL][99] ([i915#1036]) -> [PASS][100]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl6/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: [FAIL][101] ([fdo#108145] / [i915#265]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl9/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl10/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [SKIP][103] ([fdo#109642] / [fdo#111068] / [i915#658]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb1/igt@kms_psr2_su@page_flip.html
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb2/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [SKIP][105] ([fdo#109441]) -> [PASS][106] +2 similar issues
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb1/igt@kms_psr@psr2_no_drrs.html
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
#### Warnings ####
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-glk: [FAIL][107] ([i915#2851]) -> [FAIL][108] ([i915#2842])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-glk9/igt@gem_exec_fair@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-glk7/igt@gem_exec_fair@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][109] ([i915#2684]) -> [WARN][110] ([i915#2681] / [i915#2684])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb5/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb1/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [SKIP][111] ([fdo#109349]) -> [DMESG-WARN][112] ([i915#1226])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb6/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb2/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-2:
- shard-iclb: [SKIP][113] ([i915#2920]) -> [SKIP][114] ([i915#658]) +2 similar issues
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb2/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb4/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-3:
- shard-iclb: [SKIP][115] ([i915#658]) -> [SKIP][116] ([i915#2920]) +2 similar issues
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-iclb6/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][117], [FAIL][118], [FAIL][119], [FAIL][120], [FAIL][121], [FAIL][122], [FAIL][123]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#3002]) -> ([FAIL][124], [FAIL][125], [FAIL][126], [FAIL][127], [FAIL][128], [FAIL][129]) ([i915#1436] / [i915#180] / [i915#3002])
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl7/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl4/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl3/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl4/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl2/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl4/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-kbl7/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl4/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl7/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl1/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl7/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl7/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-kbl4/igt@[email protected]
- shard-skl: ([FAIL][130], [FAIL][131]) ([i915#2029] / [i915#3002]) -> ([FAIL][132], [FAIL][133]) ([i915#1814] / [i915#2029] / [i915#3002])
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl2/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10008/shard-skl4/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl2/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/shard-skl6/igt@[email protected]
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109310]: https://bugs.freedesktop.org/show_bug.cgi?id=109310
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1036]: https://gitlab.freedesktop.org/drm/intel/issues/1036
[i915#1099]: https://gitlab.freedesktop.org/drm/intel/issues/1099
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1226]: https://gitlab.freedesktop.org/drm/intel/issues/1226
[i915#123]: https://gitlab.freedesktop.org/drm/intel/issues/123
[i915#1319]: https://gitlab.freedesktop.org/drm/intel/issues/1319
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1814]: https://gitlab.freedesktop.org/drm/intel/issues/1814
[i915#1895]: https://gitlab.freedesktop.org/drm/intel/issues/1895
[i915#1937]: https://gitlab.freedesktop.org/drm/intel/issues/1937
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2029]: https://gitlab.freedesktop.org/drm/intel/issues/2029
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2369]: https://gitlab.freedesktop.org/drm/intel/issues/2369
[i915#2389]: https://gitlab.freedesktop.org/drm/intel/issues/2389
[i915#2428]: https://gitlab.freedesktop.org/drm/intel/issues/2428
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2546]: https://gitlab.freedesktop.org/drm/intel/issues/2546
[i915#2642]: https://gitlab.freedesktop.org/drm/intel/issues/2642
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2684]: https://gitlab.freedesktop.org/drm/intel/issues/2684
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#2822]: https://gitlab.freedesktop.org/drm/intel/issues/2822
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846
[i915#2849]: https://gitlab.freedesktop.org/drm/intel/issues/2849
[i915#2851]: https://gitlab.freedesktop.org/drm/intel/issues/2851
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3002]: https://gitlab.freedesktop.org/drm/intel/issues/3002
[i915#3063]: https://gitlab.freedesktop.org/drm/intel/issues/3063
[i915#307]: https://gitlab.freedesktop.org/drm/intel/issues/307
[i915#3316]:
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19988/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx