drm/i915: Refactor PAT/object cache handling
Subsystems (2)
RFC 1/2 drm/i915: Refactor PAT/object cache handling
From: Tvrtko Ursulin <[email protected]>
Commit 9275277d5324 ("drm/i915: use pat_index instead of cache_level") has introduced PAT indices to i915 internal APIs, partially replacing the usage of driver internal cache_level, but has also added a few questionable design decisions which this patch tries to improve upon.
Principal change is to invert the per platform cache level to PAT index table which was added by the referenced commit, and by doing so enable i915 to understand the cache mode between PAT indices, changing them from opaque to transparent.
Once we have the inverted table we are able to remove the hidden false "return true" from i915_gem_object_has_cache_level.
We also replace the enum i915_cache_level with i915_cache_t, composed of a more detailed representation of each cache mode (base mode plus flags).
For instance this way we are able to express the difference between WB and 1-way coherent WB on Meteorlake. Which in turn enables us to map the i915 "cached" mode to the correct Meteorlake PAT index.
We also cache PAT indices of the caching modes used by the driver itself in struct drm_i915_private, which eliminates the runtime calls to i915_gem_get_pat_index from both high- and low-level i915 components.
We also remove the incorrect references to enum i915_cache_level from low level PTE encode vfuncs, since those are actually given PAT indices by their callers.
Finally we are able to replace the platform dependent cache mode to string code in debugfs and elsewhere by the single implementation based on i915_cache_t.
The opens are around correctness of the inverted tables added in i915_pci.c in terms of whether the "flavour" (coherency) of WB modes is correct for different platforms.
And second one probably if I haven't over-complicated something that could actually be expressed or implemented in a simpler way.
Reference: 9275277d5324 ("drm/i915: use pat_index instead of cache_level")
Cc: Chris Wilson <[email protected]>
Cc: Fei Yang <[email protected]>
Cc: Andi Shyti <[email protected]>
Cc: Matt Roper <[email protected]>
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gem/i915_gem_domain.c | 54 ++++---- drivers/gpu/drm/i915/gem/i915_gem_domain.h | 5 +- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 13 +- drivers/gpu/drm/i915/gem/i915_gem_internal.c | 4 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 12 +- drivers/gpu/drm/i915/gem/i915_gem_object.c | 129 ++++++++++-------- drivers/gpu/drm/i915/gem/i915_gem_object.h | 11 +- .../gpu/drm/i915/gem/i915_gem_object_types.h | 116 +--------------- drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 8 +- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 11 +- drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c | 44 +++--- drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 2 +- .../drm/i915/gem/selftests/huge_gem_object.c | 4 +- .../gpu/drm/i915/gem/selftests/huge_pages.c | 6 +- drivers/gpu/drm/i915/gt/gen6_ppgtt.c | 4 +- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 19 +-- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/intel_ggtt.c | 33 ++--- drivers/gpu/drm/i915/gt/intel_ggtt_gmch.c | 4 +- drivers/gpu/drm/i915/gt/intel_gtt.c | 2 +- drivers/gpu/drm/i915/gt/intel_gtt.h | 3 +- drivers/gpu/drm/i915/gt/intel_migrate.c | 11 +- drivers/gpu/drm/i915/gt/intel_ppgtt.c | 6 +- .../gpu/drm/i915/gt/intel_ring_submission.c | 4 +- drivers/gpu/drm/i915/gt/intel_timeline.c | 2 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 2 +- drivers/gpu/drm/i915/gt/selftest_migrate.c | 9 +- drivers/gpu/drm/i915/gt/selftest_reset.c | 14 +- drivers/gpu/drm/i915/gt/selftest_tlb.c | 5 +- .../gpu/drm/i915/gt/selftest_workarounds.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 8 +- drivers/gpu/drm/i915/i915_cache.c | 88 ++++++++++++ drivers/gpu/drm/i915/i915_cache.h | 61 +++++++++ drivers/gpu/drm/i915/i915_debugfs.c | 53 +------ drivers/gpu/drm/i915/i915_driver.c | 5 + drivers/gpu/drm/i915/i915_drv.h | 4 + drivers/gpu/drm/i915/i915_gem.c | 21 +-- drivers/gpu/drm/i915/i915_gpu_error.c | 7 +- drivers/gpu/drm/i915/i915_pci.c | 92 +++++++------ drivers/gpu/drm/i915/i915_perf.c | 2 +- drivers/gpu/drm/i915/intel_device_info.h | 6 +- drivers/gpu/drm/i915/selftests/i915_gem.c | 5 +- .../gpu/drm/i915/selftests/i915_gem_evict.c | 8 +- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 13 +- drivers/gpu/drm/i915/selftests/igt_spinner.c | 2 +- .../drm/i915/selftests/intel_memory_region.c | 4 +- .../gpu/drm/i915/selftests/mock_gem_device.c | 14 +- 48 files changed, 457 insertions(+), 478 deletions(-) create mode 100644 drivers/gpu/drm/i915/i915_cache.c create mode 100644 drivers/gpu/drm/i915/i915_cache.h
drivers/gpu/drm/i915/Makefile +1 -0
@@ -30,6 +30,7 @@ subdir-ccflags-y += -I$(srctree)/$(src) # core driver code i915-y += i915_driver.o \ i915_drm_client.o \ + i915_cache.o \ i915_config.o \ i915_getparam.o \ i915_ioctl.o \
drivers/gpu/drm/i915/gem/i915_gem_domain.c +29 -25
106 lines not on this page · raw message
drivers/gpu/drm/i915/gem/i915_gem_domain.h +3 -2
@@ -6,10 +6,11 @@#ifndef __I915_GEM_DOMAIN_H__#define __I915_GEM_DOMAIN_H__ +#include "i915_cache.h" +struct drm_i915_gem_object ; -enum i915_cache_level ;int i915_gem_object_set_cache_level (struct drm_i915_gem_object *obj, -enum i915_cache_level cache_level); +i915_cache_t cache);#endif /* __I915_GEM_DOMAIN_H__ */
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +2 -11
@@ -640,15 +640,9 @@ static inline int use_cpu_reloc(const struct reloc_cache *cache,if (DBG_FORCE_RELOC ==FORCE_GTT_RELOC )return false; -/* -* For objects created by userspace through GEM_CREATE with pat_index -* set by set_pat extension, i915_gem_object_has_cache_level() always -* return true, otherwise the call would fall back to checking whether -* the object is un-cached. -*/ return (cache->has_llc || obj->cache_dirty || - !i915_gem_object_has_cache_level (obj,I915_CACHE_NONE )); +i915_gem_object_has_cache_mode (obj,I915_CACHE_MODE_UC ) !=1 ); } static int eb_reserve_vma(struct i915_execbuffer *eb,
@@ -1329,10 +1323,7 @@ static void *reloc_iomap(struct i915_vma *batch,if (drm_mm_node_allocated (&cache->node)) { ggtt->vm.insert_page (&ggtt->vm,i915_gem_object_get_dma_address (obj, page), - offset, -i915_gem_get_pat_index (ggtt->vm.i915, -I915_CACHE_NONE ), -0 ); + offset, eb->i915->pat_uc,0 ); }else { offset += page <<PAGE_SHIFT ; }
drivers/gpu/drm/i915/gem/i915_gem_internal.c +1 -3
@@ -142,7 +142,6 @@ __i915_gem_object_create_internal(struct drm_i915_private *i915, {static struct lock_class_key lock_class;struct drm_i915_gem_object *obj; -unsigned int cache_level;GEM_BUG_ON (!size);GEM_BUG_ON (!IS_ALIGNED (size,PAGE_SIZE ));
@@ -170,8 +169,7 @@ __i915_gem_object_create_internal(struct drm_i915_private *i915, obj->read_domains =I915_GEM_DOMAIN_CPU ; obj->write_domain =I915_GEM_DOMAIN_CPU ; - cache_level =HAS_LLC (i915) ?I915_CACHE_LLC :I915_CACHE_NONE ; -i915_gem_object_set_cache_coherency (obj, cache_level); +i915_gem_object_set_cache_coherency (obj, i915->cache);return obj; }
drivers/gpu/drm/i915/gem/i915_gem_mman.c +2 -10
@@ -383,16 +383,8 @@ static vm_fault_t vm_fault_gtt(struct vm_fault *vmf) }/* Access to snoopable pages through the GTT is incoherent. */ -/* -* For objects created by userspace through GEM_CREATE with pat_index -* set by set_pat extension, coherency is managed by userspace, make -* sure we don't fail handling the vm fault by calling -* i915_gem_object_has_cache_level() which always return true for such -* objects. Otherwise this helper function would fall back to checking -* whether the object is un-cached. -*/ -if (!(i915_gem_object_has_cache_level (obj,I915_CACHE_NONE ) || -HAS_LLC (i915))) { +if (i915_gem_object_has_cache_mode (obj,I915_CACHE_MODE_UC ) !=1 && + !HAS_LLC (i915)) { ret = -EFAULT ; goto err_unpin; }
drivers/gpu/drm/i915/gem/i915_gem_object.c +75 -54
162 lines not on this page · raw message
drivers/gpu/drm/i915/gem/i915_gem_object.h +6 -5
@@ -13,6 +13,7 @@#include "display/intel_frontbuffer.h" #include "intel_memory_region.h" +#include "i915_cache.h" #include "i915_gem_object_types.h" #include "i915_gem_gtt.h" #include "i915_gem_ww.h"
@@ -32,10 +33,6 @@ static inline bool i915_gem_object_size_2big(u64 size)return false; } -unsigned int i915_gem_get_pat_index (struct drm_i915_private *i915, -enum i915_cache_level level); -bool i915_gem_object_has_cache_level (const struct drm_i915_gem_object *obj, -enum i915_cache_level lvl);void i915_gem_init__objects (struct drm_i915_private *i915);void i915_objects_module_exit (void );
@@ -764,8 +761,12 @@ int i915_gem_object_wait_moving_fence(struct drm_i915_gem_object *obj, bool intr);bool i915_gem_object_has_unknown_state (struct drm_i915_gem_object *obj); +int i915_gem_object_has_cache_mode (const struct drm_i915_gem_object *obj, +enum i915_cache_mode mode); +int i915_gem_object_has_cache_flag (const struct drm_i915_gem_object *obj, +unsigned int flag);void i915_gem_object_set_cache_coherency (struct drm_i915_gem_object *obj, -unsigned int cache_level); +i915_cache_t cache);void i915_gem_object_set_pat_index (struct drm_i915_gem_object *obj,unsigned int pat_index);bool i915_gem_object_can_bypass_llc (struct drm_i915_gem_object *obj);
drivers/gpu/drm/i915/gem/i915_gem_object_types.h +5 -111
152 lines not on this page · raw message
drivers/gpu/drm/i915/gem/i915_gem_shmem.c +4 -4
@@ -584,7 +584,7 @@ static int shmem_object_init(struct intel_memory_region *mem,static struct lock_class_key lock_class;struct drm_i915_private *i915 = mem->i915;struct address_space *mapping; -unsigned int cache_level; +i915_cache_t cache;gfp_t mask;int ret;
@@ -628,11 +628,11 @@ static int shmem_object_init(struct intel_memory_region *mem,* However, we maintain the display planes as UC, and so * need to rebind when first used as such. */ - cache_level =I915_CACHE_LLC ; + cache =I915_CACHE_CACHED ; else - cache_level =I915_CACHE_NONE ; + cache =I915_CACHE_NONE ; -i915_gem_object_set_cache_coherency (obj, cache_level); +i915_gem_object_set_cache_coherency (obj, cache);i915_gem_object_init_memory_region (obj, mem);
drivers/gpu/drm/i915/gem/i915_gem_stolen.c +3 -8
@@ -563,11 +563,8 @@ static void dbg_poison(struct i915_ggtt *ggtt,while (size) {void __iomem *s; - ggtt->vm.insert_page (&ggtt->vm, addr, - ggtt->error_capture.start, -i915_gem_get_pat_index (ggtt->vm.i915, -I915_CACHE_NONE ), -0 ); + ggtt->vm.insert_page (&ggtt->vm, addr, ggtt->error_capture.start, + ggtt->vm.i915->pat_uc,0 );mb (); s = io_mapping_map_wc(&ggtt->iomap,
@@ -679,7 +676,6 @@ static int __i915_gem_object_create_stolen(struct intel_memory_region *mem, struct drm_mm_node *stolen) {static struct lock_class_key lock_class; -unsigned int cache_level;unsigned int flags;int err;
@@ -694,8 +690,7 @@ static int __i915_gem_object_create_stolen(struct intel_memory_region *mem, obj->stolen = stolen; obj->read_domains =I915_GEM_DOMAIN_CPU |I915_GEM_DOMAIN_GTT ; - cache_level =HAS_LLC (mem->i915) ?I915_CACHE_LLC :I915_CACHE_NONE ; -i915_gem_object_set_cache_coherency (obj, cache_level); +i915_gem_object_set_cache_coherency (obj, mem->i915->cache);if (WARN_ON (!i915_gem_object_trylock (obj,NULL )))return -EBUSY ;
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c +26 -18
105 lines not on this page · raw message
drivers/gpu/drm/i915/gem/i915_gem_userptr.c +1 -1
@@ -553,7 +553,7 @@ i915_gem_userptr_ioctl(struct drm_device *dev, obj->mem_flags =I915_BO_FLAG_STRUCT_PAGE ; obj->read_domains =I915_GEM_DOMAIN_CPU ; obj->write_domain =I915_GEM_DOMAIN_CPU ; -i915_gem_object_set_cache_coherency (obj,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (obj,I915_CACHE_CACHED ); obj->userptr.ptr = args->user_ptr; obj->userptr.notifier_seq =ULONG_MAX ;
drivers/gpu/drm/i915/gem/selftests/huge_gem_object.c +1 -3
@@ -104,7 +104,6 @@ huge_gem_object(struct drm_i915_private *i915, {static struct lock_class_key lock_class;struct drm_i915_gem_object *obj; -unsigned int cache_level;GEM_BUG_ON (!phys_size || phys_size > dma_size);GEM_BUG_ON (!IS_ALIGNED (phys_size,PAGE_SIZE ));
@@ -123,8 +122,7 @@ huge_gem_object(struct drm_i915_private *i915, obj->read_domains =I915_GEM_DOMAIN_CPU ; obj->write_domain =I915_GEM_DOMAIN_CPU ; - cache_level =HAS_LLC (i915) ?I915_CACHE_LLC :I915_CACHE_NONE ; -i915_gem_object_set_cache_coherency (obj, cache_level); +i915_gem_object_set_cache_coherency (obj, i915->cache); obj->scratch = phys_size;return obj;
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +2 -4
@@ -177,7 +177,6 @@ huge_pages_object(struct drm_i915_private *i915, {static struct lock_class_key lock_class;struct drm_i915_gem_object *obj; -unsigned int cache_level;GEM_BUG_ON (!size);GEM_BUG_ON (!IS_ALIGNED (size,BIT (__ffs (page_mask))));
@@ -200,8 +199,7 @@ huge_pages_object(struct drm_i915_private *i915, obj->write_domain =I915_GEM_DOMAIN_CPU ; obj->read_domains =I915_GEM_DOMAIN_CPU ; - cache_level =HAS_LLC (i915) ?I915_CACHE_LLC :I915_CACHE_NONE ; -i915_gem_object_set_cache_coherency (obj, cache_level); +i915_gem_object_set_cache_coherency (obj, i915->cache); obj->mm.page_mask = page_mask;
@@ -354,7 +352,7 @@ fake_huge_pages_object(struct drm_i915_private *i915, u64 size, bool single) obj->write_domain =I915_GEM_DOMAIN_CPU ; obj->read_domains =I915_GEM_DOMAIN_CPU ; - obj->pat_index =i915_gem_get_pat_index (i915,I915_CACHE_NONE ); +i915_gem_object_set_cache_coherency (obj,I915_CACHE_NONE );return obj; }
drivers/gpu/drm/i915/gt/gen6_ppgtt.c +1 -3
@@ -226,9 +226,7 @@ static int gen6_ppgtt_init_scratch(struct gen6_ppgtt *ppgtt)return ret; vm->scratch[0 ]->encode = - vm->pte_encode (px_dma (vm->scratch[0 ]), -i915_gem_get_pat_index (vm->i915, -I915_CACHE_NONE ), + vm->pte_encode (px_dma (vm->scratch[0 ]), vm->i915->pat_uc,PTE_READ_ONLY ); vm->scratch[1 ] = vm->alloc_pt_dma (vm,I915_GTT_PAGE_SIZE_4K );
drivers/gpu/drm/i915/gt/gen8_ppgtt.c +6 -13
@@ -16,11 +16,11 @@#include "intel_gtt.h" static u64 gen8_pde_encode (const dma_addr_t addr, -const enum i915_cache_level level) +const enum i915_cache_mode cache_mode) {u64 pde = addr |GEN8_PAGE_PRESENT |GEN8_PAGE_RW ; -if (level !=I915_CACHE_NONE ) +if (cache_mode !=I915_CACHE_MODE_UC ) pde |=PPAT_CACHED_PDE ;else pde |=PPAT_UNCACHED ;
@@ -37,16 +37,11 @@ static u64 gen8_pte_encode(dma_addr_t addr,if (unlikely (flags &PTE_READ_ONLY )) pte &= ~GEN8_PAGE_RW ; -/* -* For pre-gen12 platforms pat_index is the same as enum -* i915_cache_level, so the switch-case here is still valid. -* See translation table defined by LEGACY_CACHELEVEL. -*/ switch (pat_index) { -case I915_CACHE_NONE : +case 0 : pte |=PPAT_UNCACHED ;break ; -case I915_CACHE_WT : +case 3 : pte |=PPAT_DISPLAY_ELLC ;break ;default :
@@ -850,9 +845,7 @@ static int gen8_init_scratch(struct i915_address_space *vm) pte_flags |=PTE_LM ; vm->scratch[0 ]->encode = - vm->pte_encode (px_dma (vm->scratch[0 ]), -i915_gem_get_pat_index (vm->i915, -I915_CACHE_NONE ), + vm->pte_encode (px_dma (vm->scratch[0 ]), vm->i915->pat_uc, pte_flags);for (i =1 ; i <= vm->top; i++) {
@@ -871,7 +864,7 @@ static int gen8_init_scratch(struct i915_address_space *vm) }fill_px (obj, vm->scratch[i -1 ]->encode); - obj->encode =gen8_pde_encode (px_dma (obj),I915_CACHE_NONE ); + obj->encode =gen8_pde_encode (px_dma (obj),I915_CACHE_MODE_UC ); vm->scratch[i] = obj; }
drivers/gpu/drm/i915/gt/intel_engine_cs.c +1 -1
@@ -1103,7 +1103,7 @@ static int init_status_page(struct intel_engine_cs *engine)return PTR_ERR (obj); } -i915_gem_object_set_cache_coherency (obj,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (obj,I915_CACHE_CACHED ); vma =i915_vma_instance (obj, &engine->gt->ggtt->vm,NULL );if (IS_ERR (vma)) {
drivers/gpu/drm/i915/gt/intel_ggtt.c +12 -21
@@ -921,9 +921,7 @@ static int ggtt_probe_common(struct i915_ggtt *ggtt, u64 size) pte_flags |=PTE_LM ; ggtt->vm.scratch[0 ]->encode = - ggtt->vm.pte_encode (px_dma (ggtt->vm.scratch[0 ]), -i915_gem_get_pat_index (i915, -I915_CACHE_NONE ), + ggtt->vm.pte_encode (px_dma (ggtt->vm.scratch[0 ]), i915->pat_uc, pte_flags);return 0 ;
@@ -1013,11 +1011,6 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)return ggtt_probe_common (ggtt, size); } -/* -* For pre-gen8 platforms pat_index is the same as enum i915_cache_level, -* so the switch-case statements in these PTE encode functions are still valid. -* See translation table LEGACY_CACHELEVEL. -*/ static u64 snb_pte_encode (dma_addr_t addr,unsigned int pat_index,u32 flags)
@@ -1025,11 +1018,11 @@ static u64 snb_pte_encode(dma_addr_t addr,gen6_pte_t pte =GEN6_PTE_ADDR_ENCODE (addr) |GEN6_PTE_VALID ;switch (pat_index) { -case I915_CACHE_L3_LLC : -case I915_CACHE_LLC : +case 1 : +case 2 : pte |=GEN6_PTE_CACHE_LLC ;break ; -case I915_CACHE_NONE : +case 0 : pte |=GEN6_PTE_UNCACHED ;break ;default :
@@ -1046,13 +1039,13 @@ static u64 ivb_pte_encode(dma_addr_t addr,gen6_pte_t pte =GEN6_PTE_ADDR_ENCODE (addr) |GEN6_PTE_VALID ;switch (pat_index) { -case I915_CACHE_L3_LLC : +case 2 : pte |=GEN7_PTE_CACHE_L3_LLC ;break ; -case I915_CACHE_LLC : +case 1 : pte |=GEN6_PTE_CACHE_LLC ;break ; -case I915_CACHE_NONE : +case 0 : pte |=GEN6_PTE_UNCACHED ;break ;default :
@@ -1071,7 +1064,7 @@ static u64 byt_pte_encode(dma_addr_t addr,if (!(flags &PTE_READ_ONLY )) pte |=BYT_PTE_WRITEABLE ; -if (pat_index !=I915_CACHE_NONE ) +if (pat_index) pte |=BYT_PTE_SNOOPED_BY_CPU_CACHES ;return pte;
@@ -1083,7 +1076,7 @@ static u64 hsw_pte_encode(dma_addr_t addr, {gen6_pte_t pte =HSW_PTE_ADDR_ENCODE (addr) |GEN6_PTE_VALID ; -if (pat_index !=I915_CACHE_NONE ) +if (pat_index) pte |=HSW_WB_LLC_AGE3 ;return pte;
@@ -1096,9 +1089,9 @@ static u64 iris_pte_encode(dma_addr_t addr,gen6_pte_t pte =HSW_PTE_ADDR_ENCODE (addr) |GEN6_PTE_VALID ;switch (pat_index) { -case I915_CACHE_NONE : +case 0 :break ; -case I915_CACHE_WT : +case 3 : pte |=HSW_WT_ELLC_LLC_AGE3 ;break ;default :
@@ -1298,9 +1291,7 @@ bool i915_ggtt_resume_vm(struct i915_address_space *vm)*/ vma->resource->bound_flags =0 ; vma->ops->bind_vma (vm,NULL , vma->resource, - obj ? obj->pat_index : -i915_gem_get_pat_index (vm->i915, -I915_CACHE_NONE ), + obj ? obj->pat_index : vm->i915->pat_uc, was_bound);if (obj) {/* only used during resume => exclusive access */
drivers/gpu/drm/i915/gt/intel_ggtt_gmch.c +2 -2
@@ -21,7 +21,7 @@ static void gmch_ggtt_insert_page(struct i915_address_space *vm, unsigned int pat_index, u32 unused) { -unsigned int flags = (pat_index ==I915_CACHE_NONE ) ? +unsigned int flags = (pat_index ==0 ) ?AGP_USER_MEMORY :AGP_USER_CACHED_MEMORY ;intel_gmch_gtt_insert_page (addr, offset >>PAGE_SHIFT , flags);
@@ -32,7 +32,7 @@ static void gmch_ggtt_insert_entries(struct i915_address_space *vm, unsigned int pat_index, u32 unused) { -unsigned int flags = (pat_index ==I915_CACHE_NONE ) ? +unsigned int flags = (pat_index ==0 ) ?AGP_USER_MEMORY :AGP_USER_CACHED_MEMORY ; intel_gmch_gtt_insert_sg_entries(vma_res->bi.pages, vma_res->start >> PAGE_SHIFT,
drivers/gpu/drm/i915/gt/intel_gtt.c +1 -1
@@ -670,7 +670,7 @@ __vm_create_scratch_for_read(struct i915_address_space *vm, unsigned long size)if (IS_ERR (obj))return ERR_CAST (obj); -i915_gem_object_set_cache_coherency (obj,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (obj,I915_CACHE_CACHED ); vma =i915_vma_instance (obj, vm,NULL );if (IS_ERR (vma)) {
drivers/gpu/drm/i915/gt/intel_gtt.h +2 -1
@@ -635,7 +635,8 @@ void __set_pd_entry(struct i915_page_directory * const pd, const unsigned short idx, struct i915_page_table *pt, - u64 (*encode)(const dma_addr_t, const enum i915_cache_level)); + u64 (*encode)(const dma_addr_t, + const enum i915_cache_mode cache_mode));#define set_pd_entry (pd, idx, to) \ __set_pd_entry((pd), (idx), px_pt(to), gen8_pde_encode)
drivers/gpu/drm/i915/gt/intel_migrate.c +3 -8
@@ -45,9 +45,7 @@ static void xehpsdv_toggle_pdes(struct i915_address_space *vm,* Insert a dummy PTE into every PT that will map to LMEM to ensure * we have a correctly setup PDE structure for later use. */ - vm->insert_page (vm,0 , d->offset, -i915_gem_get_pat_index (vm->i915,I915_CACHE_NONE ), -PTE_LM ); + vm->insert_page (vm,0 , d->offset, vm->i915->pat_uc,PTE_LM );GEM_BUG_ON (!pt->is_compact); d->offset +=SZ_2M ; }
@@ -65,9 +63,7 @@ static void xehpsdv_insert_pte(struct i915_address_space *vm,* alignment is 64K underneath for the pt, and we are careful * not to access the space in the void. */ - vm->insert_page (vm,px_dma (pt), d->offset, -i915_gem_get_pat_index (vm->i915,I915_CACHE_NONE ), -PTE_LM ); + vm->insert_page (vm,px_dma (pt), d->offset, vm->i915->pat_uc,PTE_LM ); d->offset +=SZ_64K ; }
@@ -77,8 +73,7 @@ static void insert_pte(struct i915_address_space *vm, {struct insert_pte_data *d = data; - vm->insert_page (vm,px_dma (pt), d->offset, -i915_gem_get_pat_index (vm->i915,I915_CACHE_NONE ), + vm->insert_page (vm,px_dma (pt), d->offset, vm->i915->pat_uc,i915_gem_object_is_lmem (pt->base) ?PTE_LM :0 ); d->offset +=PAGE_SIZE ; }
drivers/gpu/drm/i915/gt/intel_ppgtt.c +4 -2
@@ -98,14 +98,16 @@ void __set_pd_entry(struct i915_page_directory * const pd, const unsigned short idx, struct i915_page_table * const to, - u64 (*encode)(const dma_addr_t, const enum i915_cache_level)) + u64 (*encode)(const dma_addr_t, + const enum i915_cache_mode cache_mode)) { /* Each thread pre-pins the pd, and we may have a thread per pde. */ GEM_BUG_ON(atomic_read(px_used(pd)) > NALLOC * I915_PDES);atomic_inc (px_used(pd )); pd->entry[idx] = to; -write_dma_entry (px_base (pd), idx,encode (px_dma (to),I915_CACHE_LLC )); +write_dma_entry (px_base (pd), idx, +encode (px_dma (to),I915_CACHE_MODE_WB )); }void
drivers/gpu/drm/i915/gt/intel_ring_submission.c +3 -1
@@ -551,7 +551,9 @@ alloc_context_vma(struct intel_engine_cs *engine)* later platforms don't have L3 control bits in the PTE. */ if (IS_IVYBRIDGE (i915)) -i915_gem_object_set_cache_coherency (obj,I915_CACHE_L3_LLC ); +i915_gem_object_set_cache_coherency (obj, +I915_CACHE_CACHED | +__I915_CACHE_FLAG (L3 )); vma =i915_vma_instance (obj, &engine->gt->ggtt->vm,NULL );if (IS_ERR (vma)) {
drivers/gpu/drm/i915/gt/intel_timeline.c +1 -1
@@ -26,7 +26,7 @@ static struct i915_vma *hwsp_alloc(struct intel_gt *gt)if (IS_ERR (obj))return ERR_CAST (obj); -i915_gem_object_set_cache_coherency (obj,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (obj,I915_CACHE_CACHED ); vma =i915_vma_instance (obj, >->ggtt->vm,NULL );if (IS_ERR (vma))
drivers/gpu/drm/i915/gt/selftest_hangcheck.c +1 -1
@@ -64,7 +64,7 @@ static int hang_init(struct hang *h, struct intel_gt *gt) goto err_hws; } -i915_gem_object_set_cache_coherency (h->hws,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (h->hws,I915_CACHE_CACHED ); vaddr =i915_gem_object_pin_map_unlocked (h->hws,I915_MAP_WB );if (IS_ERR (vaddr)) { err =PTR_ERR (vaddr);
drivers/gpu/drm/i915/gt/selftest_migrate.c +3 -6
@@ -904,8 +904,7 @@ static int perf_clear_blt(void *arg) err =__perf_clear_blt (gt->migrate.context, dst->mm.pages->sgl, -i915_gem_get_pat_index (gt->i915, -I915_CACHE_NONE ), + gt->i915->pat_uc,i915_gem_object_is_lmem (dst), sizes[i]);
@@ -995,12 +994,10 @@ static int perf_copy_blt(void *arg) err =__perf_copy_blt (gt->migrate.context, src->mm.pages->sgl, -i915_gem_get_pat_index (gt->i915, -I915_CACHE_NONE ), + gt->i915->pat_uc,i915_gem_object_is_lmem (src), dst->mm.pages->sgl, -i915_gem_get_pat_index (gt->i915, -I915_CACHE_NONE ), + gt->i915->pat_uc,i915_gem_object_is_lmem (dst), sz);
drivers/gpu/drm/i915/gt/selftest_reset.c +4 -10
@@ -84,11 +84,8 @@ __igt_reset_stolen(struct intel_gt *gt,void __iomem *s;void *in; - ggtt->vm.insert_page (&ggtt->vm, dma, - ggtt->error_capture.start, -i915_gem_get_pat_index (gt->i915, -I915_CACHE_NONE ), -0 ); + ggtt->vm.insert_page (&ggtt->vm, dma, ggtt->error_capture.start, + gt->i915->pat_uc,0 );mb (); s = io_mapping_map_wc(&ggtt->iomap,
@@ -127,11 +124,8 @@ __igt_reset_stolen(struct intel_gt *gt,void *in;u32 x; - ggtt->vm.insert_page (&ggtt->vm, dma, - ggtt->error_capture.start, -i915_gem_get_pat_index (gt->i915, -I915_CACHE_NONE ), -0 ); + ggtt->vm.insert_page (&ggtt->vm, dma, ggtt->error_capture.start, + gt->i915->pat_uc,0 );mb (); s = io_mapping_map_wc(&ggtt->iomap,
drivers/gpu/drm/i915/gt/selftest_tlb.c +2 -3
@@ -36,8 +36,6 @@ pte_tlbinv(struct intel_context *ce,u64 length, struct rnd_state *prng) { -const unsigned int pat_index = -i915_gem_get_pat_index (ce->vm->i915,I915_CACHE_NONE ); struct drm_i915_gem_object *batch;struct drm_mm_node vb_node;struct i915_request *rq;
@@ -157,7 +155,8 @@ pte_tlbinv(struct intel_context *ce,/* Flip the PTE between A and B */ if (i915_gem_object_is_lmem (vb->obj)) pte_flags |=PTE_LM ; - ce->vm->insert_entries (ce->vm, &vb_res, pat_index, pte_flags); + ce->vm->insert_entries (ce->vm, &vb_res, ce->vm->i915->pat_uc, + pte_flags);/* Flush the PTE update to concurrent HW */ tlbinv (ce->vm, addr & -length, length);
drivers/gpu/drm/i915/gt/selftest_workarounds.c +1 -1
@@ -111,7 +111,7 @@ read_nonprivs(struct intel_context *ce)if (IS_ERR (result))return result; -i915_gem_object_set_cache_coherency (result,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (result,I915_CACHE_CACHED ); cs =i915_gem_object_pin_map_unlocked (result,I915_MAP_WB );if (IS_ERR (cs)) {
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c +2 -6
@@ -1007,14 +1007,10 @@ static void uc_fw_bind_ggtt(struct intel_uc_fw *uc_fw)if (ggtt->vm.raw_insert_entries) ggtt->vm.raw_insert_entries (&ggtt->vm, vma_res, -i915_gem_get_pat_index (ggtt->vm.i915, -I915_CACHE_NONE ), - pte_flags); + ggtt->vm.i915->pat_uc, pte_flags);else ggtt->vm.insert_entries (&ggtt->vm, vma_res, -i915_gem_get_pat_index (ggtt->vm.i915, -I915_CACHE_NONE ), - pte_flags); + ggtt->vm.i915->pat_uc, pte_flags); }static void uc_fw_unbind_ggtt (struct intel_uc_fw *uc_fw)
drivers/gpu/drm/i915/i915_cache.c new file +88 -0
88 lines not on this page · raw message
drivers/gpu/drm/i915/i915_cache.h new file +61 -0
61 lines not on this page · raw message
drivers/gpu/drm/i915/i915_debugfs.c +7 -46
71 lines not on this page · raw message
drivers/gpu/drm/i915/i915_driver.c +5 -0
@@ -80,6 +80,7 @@#include "soc/intel_dram.h" #include "soc/intel_gmch.h" +#include "i915_cache.h" #include "i915_debugfs.h" #include "i915_driver.h" #include "i915_drm_client.h"
@@ -240,6 +241,10 @@ static int i915_driver_early_probe(struct drm_i915_private *dev_priv)i915_memcpy_init_early (dev_priv);intel_runtime_pm_init_early (&dev_priv->runtime_pm); + ret =i915_cache_init (dev_priv); +if (ret <0 ) +return ret; + ret =i915_workqueues_init (dev_priv);if (ret <0 )return ret;
drivers/gpu/drm/i915/i915_drv.h +4 -0
@@ -250,6 +250,10 @@ struct drm_i915_private {unsigned int hpll_freq;unsigned int czclk_freq; +unsigned int pat_uc; +unsigned int pat_wb; +i915_cache_t cache; +/** * wq - Driver workqueue for GEM. *
drivers/gpu/drm/i915/i915_gem.c +2 -19
@@ -422,9 +422,7 @@ i915_gem_gtt_pread(struct drm_i915_gem_object *obj, ggtt->vm.insert_page (&ggtt->vm,i915_gem_object_get_dma_address (obj, offset >>PAGE_SHIFT ), - node.start, -i915_gem_get_pat_index (i915, -I915_CACHE_NONE ),0 ); + node.start, i915->pat_uc,0 ); }else { page_base += offset &PAGE_MASK ; }
@@ -603,9 +601,7 @@ i915_gem_gtt_pwrite_fast(struct drm_i915_gem_object *obj, ggtt->vm.insert_page (&ggtt->vm,i915_gem_object_get_dma_address (obj, offset >>PAGE_SHIFT ), - node.start, -i915_gem_get_pat_index (i915, -I915_CACHE_NONE ),0 ); + node.start, i915->pat_uc,0 );wmb ();/* flush modifications to the GGTT (insert_page) */ }else { page_base += offset &PAGE_MASK ;
@@ -1148,19 +1144,6 @@ int i915_gem_init(struct drm_i915_private *dev_priv)unsigned int i;int ret; -/* -* In the proccess of replacing cache_level with pat_index a tricky -* dependency is created on the definition of the enum i915_cache_level. -* in case this enum is changed, PTE encode would be broken. -* Add a WARNING here. And remove when we completely quit using this -* enum -*/ -BUILD_BUG_ON (I915_CACHE_NONE !=0 || -I915_CACHE_LLC !=1 || -I915_CACHE_L3_LLC !=2 || -I915_CACHE_WT !=3 || -I915_MAX_CACHE_LEVEL !=4 ); -/* We need to fallback to 4K pages if host doesn't support huge gtt. */ if (intel_vgpu_active (dev_priv) && !intel_vgpu_has_huge_gtt (dev_priv))RUNTIME_INFO (dev_priv)->page_sizes =I915_GTT_PAGE_SIZE_4K ;
drivers/gpu/drm/i915/i915_gpu_error.c +2 -5
@@ -1124,14 +1124,11 @@ i915_vma_coredump_create(const struct intel_gt *gt,mutex_lock (&ggtt->error_mutex);if (ggtt->vm.raw_insert_page) ggtt->vm.raw_insert_page (&ggtt->vm, dma, slot, -i915_gem_get_pat_index (gt->i915, -I915_CACHE_NONE ), + ggtt->vm.i915->pat_uc,0 );else ggtt->vm.insert_page (&ggtt->vm, dma, slot, -i915_gem_get_pat_index (gt->i915, -I915_CACHE_NONE ), -0 ); + ggtt->vm.i915->pat_uc,0 );mb (); s =io_mapping_map_wc (&ggtt->iomap, slot,PAGE_SIZE );
drivers/gpu/drm/i915/i915_pci.c +54 -38
194 lines not on this page · raw message
drivers/gpu/drm/i915/i915_perf.c +1 -1
@@ -1870,7 +1870,7 @@ static int alloc_oa_buffer(struct i915_perf_stream *stream)return PTR_ERR (bo); } -i915_gem_object_set_cache_coherency (bo,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (bo,I915_CACHE_CACHED );/* PreHSW required 512K alignment, HSW requires 16M */ vma =i915_vma_instance (bo, >->ggtt->vm,NULL );
drivers/gpu/drm/i915/intel_device_info.h +4 -2
@@ -27,6 +27,8 @@#include <uapi/drm/i915_drm.h> +#include "i915_cache.h" +#include "intel_step.h" #include "gt/intel_engine_types.h"
@@ -243,8 +245,8 @@ struct intel_device_info {*/ const struct intel_runtime_info __runtime; -u32 cachelevel_to_pat[I915_MAX_CACHE_LEVEL ]; -u32 max_pat_index; +i915_cache_t cache_modes[9 ]; +unsigned int max_pat_index; };struct intel_driver_caps {
drivers/gpu/drm/i915/selftests/i915_gem.c +1 -4
@@ -57,10 +57,7 @@ static void trash_stolen(struct drm_i915_private *i915)u32 __iomem *s;int x; - ggtt->vm.insert_page (&ggtt->vm, dma, slot, -i915_gem_get_pat_index (i915, -I915_CACHE_NONE ), -0 ); + ggtt->vm.insert_page (&ggtt->vm, dma, slot, i915->pat_uc,0 ); s =io_mapping_map_atomic_wc (&ggtt->iomap, slot);for (x =0 ; x <PAGE_SIZE /sizeof (u32); x++) {
drivers/gpu/drm/i915/selftests/i915_gem_evict.c +4 -4
@@ -246,7 +246,7 @@ static int igt_evict_for_cache_color(void *arg)struct drm_mm_node target = { .start =I915_GTT_PAGE_SIZE *2 , .size =I915_GTT_PAGE_SIZE , - .color =i915_gem_get_pat_index (gt->i915,I915_CACHE_LLC ), + .color = gt->i915->pat_wb, };struct drm_i915_gem_object *obj;struct i915_vma *vma;
@@ -267,7 +267,7 @@ static int igt_evict_for_cache_color(void *arg) err =PTR_ERR (obj); goto cleanup; } -i915_gem_object_set_cache_coherency (obj,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (obj,I915_CACHE_CACHED );quirk_add (obj, &objects); vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0,
@@ -283,7 +283,7 @@ static int igt_evict_for_cache_color(void *arg) err =PTR_ERR (obj); goto cleanup; } -i915_gem_object_set_cache_coherency (obj,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (obj,I915_CACHE_CACHED );quirk_add (obj, &objects);/* Neighbouring; same colour - should fit */
@@ -309,7 +309,7 @@ static int igt_evict_for_cache_color(void *arg)/* Attempt to remove the first *pinned* vma, by removing the (empty) * neighbour -- this should fail. */ - target.color =i915_gem_get_pat_index (gt->i915,I915_CACHE_L3_LLC ); + target.color = gt->i915->pat_uc;mutex_lock (&ggtt->vm.mutex); err =i915_gem_evict_for_node (&ggtt->vm,NULL , &target,0 );
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +4 -9
@@ -135,7 +135,7 @@ fake_dma_object(struct drm_i915_private *i915, u64 size) obj->write_domain =I915_GEM_DOMAIN_CPU ; obj->read_domains =I915_GEM_DOMAIN_CPU ; - obj->pat_index =i915_gem_get_pat_index (i915,I915_CACHE_NONE ); + obj->pat_index = i915->pat_uc;/* Preallocate the "backing storage" */ if (i915_gem_object_pin_pages_unlocked (obj))
@@ -358,10 +358,8 @@ static int lowlevel_hole(struct i915_address_space *vm, mock_vma_res->start = addr;with_intel_runtime_pm (vm->gt->uncore->rpm, wakeref) - vm->insert_entries(vm, mock_vma_res, -i915_gem_get_pat_index (vm->i915, -I915_CACHE_NONE ), -0 ); + vm->insert_entries(vm, mock_vma_res, + vm->i915->pat_uc,0 ); } count = n;
@@ -1379,10 +1377,7 @@ static int igt_ggtt_page(void *arg) ggtt->vm.insert_page (&ggtt->vm,i915_gem_object_get_dma_address (obj,0 ), - offset, -i915_gem_get_pat_index (i915, -I915_CACHE_NONE ), -0 ); + offset, ggtt->vm.i915->pat_uc,0 ); } order =i915_random_order (count, &prng);
drivers/gpu/drm/i915/selftests/igt_spinner.c +1 -1
@@ -23,7 +23,7 @@ int igt_spinner_init(struct igt_spinner *spin, struct intel_gt *gt) err =PTR_ERR (spin->hws); goto err; } -i915_gem_object_set_cache_coherency (spin->hws,I915_CACHE_LLC ); +i915_gem_object_set_cache_coherency (spin->hws,I915_CACHE_CACHED ); spin->obj =i915_gem_object_create_internal (gt->i915,PAGE_SIZE );if (IS_ERR (spin->obj)) {
drivers/gpu/drm/i915/selftests/intel_memory_region.c +1 -3
@@ -1070,9 +1070,7 @@ static int igt_lmem_write_cpu(void *arg)/* Put the pages into a known state -- from the gpu for added fun */ intel_engine_pm_get (engine); err =intel_context_migrate_clear (engine->gt->migrate.context,NULL , - obj->mm.pages->sgl, -i915_gem_get_pat_index (i915, -I915_CACHE_NONE ), + obj->mm.pages->sgl, i915->pat_uc, true,0xdeadbeaf , &rq);if (rq) { dma_resv_add_fence(obj->base.resv, &rq->fence,
drivers/gpu/drm/i915/selftests/mock_gem_device.c +8 -6
@@ -126,13 +126,13 @@ static const struct intel_device_info mock_info = { .memory_regions = REGION_SMEM, .platform_engine_mask = BIT(0), -/* simply use legacy cache level for mock device */ +/* Simply use legacy cache modes for the mock device. */ .max_pat_index = 3, - .cachelevel_to_pat = { - [I915_CACHE_NONE] = 0, - [I915_CACHE_LLC] = 1, - [I915_CACHE_L3_LLC] = 2, - [I915_CACHE_WT] = 3, + .cache_modes = { + [0] = I915_CACHE(UC), + [1] = _I915_CACHE(WB, COH1W), + [2] = __I915_CACHE(WB, BIT(I915_CACHE_FLAG_COH1W) | BIT(I915_CACHE_FLAG_L3)), \ + [3] = I915_CACHE(WT), }, };
@@ -181,6 +181,8 @@ struct drm_i915_private *mock_gem_device(void)/* Set up device info and initial runtime info. */ intel_device_info_driver_create (i915, pdev->device, &mock_info); +WARN_ON (i915_cache_init (i915)); +dev_pm_domain_set (&pdev->dev, &pm_domain);pm_runtime_enable (&pdev->dev);pm_runtime_dont_use_autosuspend (&pdev->dev);
Signature · 1 line
2.39.2
RFC 2/2 drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc
From: Tvrtko Ursulin <[email protected]>
According to the comment in i915_gem_object_can_bypass_llc the purpose of the function is to return false if the platform/object has a caching mode where GPU can bypass the LLC.
So far the only platforms which allegedly can do this are Jasperlake and Elkhartlake, and that via MOCS (not PAT).
Instead of blindly assuming that objects where userspace has set the PAT index can (bypass the LLC), question is is there a such PAT index on a platform. Probably starting with Meteorlake since that one is the only one where set PAT extension can be currently used. Or if there is a MOCS entry which can achieve the same thing on Meteorlake.
If there is such PAT, now that i915 can be made to understand them better, we can make the check more fine grained. Or if there is a MOCS entry then we probably should apply the blanket IS_METEORLAKE condition.
--- drivers/gpu/drm/i915/gem/i915_gem_object.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_object.c +0 -6
@@ -229,12 +229,6 @@ bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj)if (!(obj->flags &I915_BO_ALLOC_USER ))return false; -/* -* Always flush cache for UMD objects at creation time. -*/ -if (obj->pat_set_by_user) -return true; -/* * EHL and JSL add the 'Bypass LLC' MOCS entry, which should make it * possible for userspace to bypass the GTT caching bits set by the
Signature · 1 line
2.39.2
RE: [RFC 2/2] drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc
Quoted 34 lines
From: Tvrtko Ursulin <[email protected]>
According to the comment in
i915_gem_object_can_bypass_llcthe purpose of the function is to return false if the platform/object has a caching mode where GPU can bypass the LLC.So far the only platforms which allegedly can do this are Jasperlake and Elkhartlake, and that via MOCS (not PAT).
Instead of blindly assuming that objects where userspace has set the PAT index can (bypass the LLC), question is is there a such PAT index on a platform. Probably starting with Meteorlake since that one is the only one where set PAT extension can be currently used. Or if there is a MOCS entry which can achieve the same thing on Meteorlake.
If there is such PAT, now that i915 can be made to understand them better, we can make the check more fine grained. Or if there is a MOCS entry then we probably should apply the blanket
IS_METEORLAKEcondition.Signed-off-by Tvrtko Ursulin <[email protected]>Fixes 9275277d5324 ("drm/i915: use pat_index instead of cache_level")Cc Chris Wilson <[email protected]>Cc Fei Yang <[email protected]>Cc Andi Shyti <[email protected]>Cc Matt Roper <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_object.c | 6 ------ 1 file changed, 6 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-0
drivers/gpu/drm/i915/gem/i915_gem_object.c bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj) · line 235
Quoted 7 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-4@@ -229,12 +229,6 @@ bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj)if (!(obj->flags &I915_BO_ALLOC_USER ))return false; -/* -* Always flush cache for UMD objects at creation time. -*/ -if (obj->pat_set_by_user)
I'm afraid this is going to break MESA. Can we run MESA tests with this patch?
Quoted 5 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-1/* * EHL and JSL add the 'Bypass LLC' MOCS entry, which should make it * possible for userspace to bypass the GTT caching bits set by the -- 2.39.2
Re: [RFC 2/2] drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc
Quoted 37 lines · Fei
Quoted 37 lines
From: Tvrtko Ursulin <[email protected]>
According to the comment in
i915_gem_object_can_bypass_llcthe purpose of the function is to return false if the platform/object has a caching mode where GPU can bypass the LLC.So far the only platforms which allegedly can do this are Jasperlake and Elkhartlake, and that via MOCS (not PAT).
Instead of blindly assuming that objects where userspace has set the PAT index can (bypass the LLC), question is is there a such PAT index on a platform. Probably starting with Meteorlake since that one is the only one where set PAT extension can be currently used. Or if there is a MOCS entry which can achieve the same thing on Meteorlake.
If there is such PAT, now that i915 can be made to understand them better, we can make the check more fine grained. Or if there is a MOCS entry then we probably should apply the blanket
IS_METEORLAKEcondition.Signed-off-by Tvrtko Ursulin <[email protected]>Fixes 9275277d5324 ("drm/i915: use pat_index instead of cache_level")Cc Chris Wilson <[email protected]>Cc Fei Yang <[email protected]>Cc Andi Shyti <[email protected]>Cc Matt Roper <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_object.c | 6 ------ 1 file changed, 6 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-0@@ -229,12 +229,6 @@ bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj)if (!(obj->flags &I915_BO_ALLOC_USER ))return false;
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj) · line 235
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-4-/* -* Always flush cache for UMD objects at creation time. -*/ -if (obj->pat_set_by_user)I'm afraid this is going to break MESA. Can we run MESA tests with this patch?
I can't, but question is why it would break Mesa which would need a nice comment here?
For instance should the check be IS_METEORLAKE?
Or should it be "is wb" && "not has 1-way coherent"?
Or both?
Or, given how Meteorlake does not have LLC, how can anything bypass it there? Or is it about snooping on Meteorlake and how?
Regards,
Tvrtko
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-1/* * EHL and JSL add the 'Bypass LLC' MOCS entry, which should make it * possible for userspace to bypass the GTT caching bits set by the -- 2.39.2
RE: [RFC 2/2] drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc
Quoted 47 lines · Fei
Quoted 39 lines
Quoted 39 lines
From: Tvrtko Ursulin <[email protected]>
According to the comment in
i915_gem_object_can_bypass_llcthe purpose of the function is to return false if the platform/object has a caching mode where GPU can bypass the LLC.So far the only platforms which allegedly can do this are Jasperlake and Elkhartlake, and that via MOCS (not PAT).
Instead of blindly assuming that objects where userspace has set the PAT index can (bypass the LLC), question is is there a such PAT index on a platform. Probably starting with Meteorlake since that one is the only one where set PAT extension can be currently used. Or if there is a MOCS entry which can achieve the same thing on Meteorlake.
If there is such PAT, now that i915 can be made to understand them better, we can make the check more fine grained. Or if there is a MOCS entry then we probably should apply the blanket
IS_METEORLAKEcondition.Signed-off-by Tvrtko Ursulin <[email protected]>Fixes 9275277d5324 ("drm/i915: use pat_index instead of
cache_level")
Cc: Chris Wilson <[email protected]>
Cc: Fei Yang <[email protected]>
Cc: Andi Shyti <[email protected]>
Cc: Matt Roper <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_object.c | 6 ------ 1 file changed, 6 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-0@@ -229,12 +229,6 @@ bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj)if (!(obj->flags &I915_BO_ALLOC_USER ))return false;Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj) · line 235
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-4-/* -* Always flush cache for UMD objects at creation time. -*/ -if (obj->pat_set_by_user)I'm afraid this is going to break MESA. Can we run MESA tests with this patch?
Quoted 2 lines
I can't, but question is why it would break Mesa which would need a nice comment here?
For objects with PAT index set by user, the KMD doesn't know whether the user space would map it as cacheable or not for CPU access. So we want to enforce a cache flush at BO creation time before handing the BO over to user space. I remember the issue we had before is that MESA sees garbage data in a BO that is supposed to be initialized with zero.
I understand your point, checking for obj->pat_set_by_user is not something to be done in this function. I'm fine with the removal of these lines, but the checking needs to be done somewhere, maybe just one level up?
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c +1 -0
@@ -258,6 +258,7 @@ static int i915_gem_object_get_pages_dmabuf(struct drm_i915_gem_object *obj)* the driver. */ if (i915_gem_object_can_bypass_llc (obj) || + obj->pat_set_by_user || (!HAS_LLC (i915) && !IS_DG1 (i915)))wbinvd_on_all_cpus ();
drivers/gpu/drm/i915/gem/i915_gem_shmem.c +2 -1
@@ -254,7 +254,8 @@ static int shmem_get_pages(struct drm_i915_gem_object *obj)if (i915_gem_object_needs_bit17_swizzle (obj))i915_gem_object_do_bit_17_swizzle (obj, st); -if (i915_gem_object_can_bypass_llc (obj)) +if (i915_gem_object_can_bypass_llc (obj) || + obj->pat_set_by_user) obj->cache_dirty = true;__i915_gem_object_set_pages (obj, st);
drivers/gpu/drm/i915/gem/i915_gem_userptr.c +2 -1
@@ -170,7 +170,8 @@ static int i915_gem_userptr_get_pages(struct drm_i915_gem_object *obj) }WARN_ON_ONCE (!(obj->cache_coherent &I915_BO_CACHE_COHERENT_FOR_WRITE )); -if (i915_gem_object_can_bypass_llc (obj)) +if (i915_gem_object_can_bypass_llc (obj) || + obj->pat_set_by_user) obj->cache_dirty = true;__i915_gem_object_set_pages (obj, st);
-Fei
Quoted 20 lines
For instance should the check be
IS_METEORLAKE?Or should it be "is wb" && "not has 1-way coherent"?
Or both?
Or, given how Meteorlake does not have LLC, how can anything bypass it there? Or is it about snooping on Meteorlake and how?
Regards,
Tvrtko
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-0/* * EHL and JSL add the 'Bypass LLC' MOCS entry, which should make it * possible for userspace to bypass the GTT caching bits set by the
--
2.39.2
Re: [RFC 2/2] drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc
In reply to Tvrtko UrsulinQuoted 49 lines · Tvrtko Ursulin
Quoted 37 lines · Fei
Quoted 37 lines
From: Tvrtko Ursulin <[email protected]>
According to the comment in
i915_gem_object_can_bypass_llcthe purpose of the function is to return false if the platform/object has a caching mode where GPU can bypass the LLC.So far the only platforms which allegedly can do this are Jasperlake and Elkhartlake, and that via MOCS (not PAT).
Instead of blindly assuming that objects where userspace has set the PAT index can (bypass the LLC), question is is there a such PAT index on a platform. Probably starting with Meteorlake since that one is the only one where set PAT extension can be currently used. Or if there is a MOCS entry which can achieve the same thing on Meteorlake.
If there is such PAT, now that i915 can be made to understand them better, we can make the check more fine grained. Or if there is a MOCS entry then we probably should apply the blanket
IS_METEORLAKEcondition.Signed-off-by Tvrtko Ursulin <[email protected]>Fixes 9275277d5324 ("drm/i915: use pat_index instead of cache_level")Cc Chris Wilson <[email protected]>Cc Fei Yang <[email protected]>Cc Andi Shyti <[email protected]>Cc Matt Roper <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_object.c | 6 ------ 1 file changed, 6 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-0@@ -229,12 +229,6 @@ bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj)if (!(obj->flags &I915_BO_ALLOC_USER ))return false;Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj) · line 235
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-4-/* -* Always flush cache for UMD objects at creation time. -*/ -if (obj->pat_set_by_user)I'm afraid this is going to break MESA. Can we run MESA tests with this patch?
I can't, but question is why it would break Mesa which would need a nice comment here?
Quoted 8 lines
For instance should the check be
IS_METEORLAKE?Or should it be "is wb" && "not has 1-way coherent"?
Or both?
Or, given how Meteorlake does not have LLC, how can anything bypass it there? Or is it about snooping on Meteorlake and how?
I think the "LLC" in the function name is a bit misleading since this is really all just about the ability to avoid coherency (which might come from an LLC on some platforms or from snooping on others).
The concern is that the CPU writes to the buffer and those writes sit in a CPU cache without making it to RAM immediately. If the GPU then reads the object with any of the non-coherent PAT settings that were introduced in Xe_LPG, it will not snoop the CPU cache and will read old, stale data from RAM.
So I think we'd want a condition like ("Xe_LPG or later" && "any non coherent PAT"). The WB/WT/UC status of the GPU behavior shouldn't matter here, just the coherency setting.
Matt
Quoted 11 lines
Regards,
Tvrtko
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-1/* * EHL and JSL add the 'Bypass LLC' MOCS entry, which should make it * possible for userspace to bypass the GTT caching bits set by the -- 2.39.2
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation
Re: [RFC 2/2] drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc
Quoted 69 lines · Matt Roper
Quoted 49 lines · Tvrtko Ursulin
Quoted 37 lines · Fei
Quoted 37 lines
From: Tvrtko Ursulin <[email protected]>
According to the comment in
i915_gem_object_can_bypass_llcthe purpose of the function is to return false if the platform/object has a caching mode where GPU can bypass the LLC.So far the only platforms which allegedly can do this are Jasperlake and Elkhartlake, and that via MOCS (not PAT).
Instead of blindly assuming that objects where userspace has set the PAT index can (bypass the LLC), question is is there a such PAT index on a platform. Probably starting with Meteorlake since that one is the only one where set PAT extension can be currently used. Or if there is a MOCS entry which can achieve the same thing on Meteorlake.
If there is such PAT, now that i915 can be made to understand them better, we can make the check more fine grained. Or if there is a MOCS entry then we probably should apply the blanket
IS_METEORLAKEcondition.Signed-off-by Tvrtko Ursulin <[email protected]>Fixes 9275277d5324 ("drm/i915: use pat_index instead of cache_level")Cc Chris Wilson <[email protected]>Cc Fei Yang <[email protected]>Cc Andi Shyti <[email protected]>Cc Matt Roper <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_object.c | 6 ------ 1 file changed, 6 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-0@@ -229,12 +229,6 @@ bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj)if (!(obj->flags &I915_BO_ALLOC_USER ))return false;Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj) · line 235
Quoted 4 lines
drivers/gpu/drm/i915/gem/i915_gem_object.c +0
-4-/* -* Always flush cache for UMD objects at creation time. -*/ -if (obj->pat_set_by_user)I'm afraid this is going to break MESA. Can we run MESA tests with this patch?
I can't, but question is why it would break Mesa which would need a nice comment here?
Quoted 8 lines
For instance should the check be
IS_METEORLAKE?Or should it be "is wb" && "not has 1-way coherent"?
Or both?
Or, given how Meteorlake does not have LLC, how can anything bypass it there? Or is it about snooping on Meteorlake and how?
I think the "LLC" in the function name is a bit misleading since this is really all just about the ability to avoid coherency (which might come from an LLC on some platforms or from snooping on others).
The concern is that the CPU writes to the buffer and those writes sit in a CPU cache without making it to RAM immediately. If the GPU then reads the object with any of the non-coherent PAT settings that were introduced in
Xe_LPG, it will not snoop the CPU cache and will read old, stale data from RAM.
Quoted 3 lines
So I think we'd want a condition like ("
Xe_LPGor later" && "any non coherent PAT"). The WB/WT/UC status of the GPU behavior shouldn't matter here, just the coherency setting.
Right, sounds plausible to me. So with this series the new condition in this function would look like this:
i915_gem_object_can_bypass_llc(..)
{
...
if (i915_gem_object_has_cache_mode(obj, I915_CACHE_MODE_WB) && i915_gem_object_has_cache_flag(obj, I915_CACHE_FLAG_COH1W) != 1) return true;
("!= 1" in the condition meaning either it is not coherent, or i915 does not know due table being incomplete - like some PAT index on some future platform was forgotten to be defined.)
That would catch any platform with non-coherent WB, as long as the PAT-to-i915-cache-mode tables are correct. It would currently only apply to Meteorlake:
#define MTL_CACHE_MODES \
.cache_modes = { \
[0] = I915_CACHE(WB), \
[1] = I915_CACHE(WT), \
[2] = I915_CACHE(UC), \
[3] = _I915_CACHE(WB, COH1W), \
[4] = __I915_CACHE(WB, BIT(I915_CACHE_FLAG_COH1W) | BIT(I915_CACHE_FLAG_COH2W)), \
}Or are saying it should apply to UC and WT too somehow?
I'll also try to join sub-threads to Fei's reply here too.
So in terms of the stated issue with _CPU_ access from Mesa seeing stale data (non-zeroed pages) depending on the PAT index - I don't understand that yet. That seems like a completely CPU cache problem space and I do not understand how PAT index gets into the picture.
But the proposed patch from your email Fei looks like it would be covered by the snippet I have in this reply.
Regards,
Tvrtko
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling
URL : https://patchwork.freedesktop.org/series/120686/
State : warning
== Summary ==
Error: dim checkpatch failed49bef4e97877 drm/i915: Refactor PAT/object cache handling Traceback (most recent call last):
File "scripts/spdxcheck.py", line 6, in <module>
from ply import lex, yacc
ModuleNotFoundError: No module named 'ply'
-:734: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #734: FILE: drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c:63:
+i915_ttm_cache_pat(struct drm_i915_private *i915, struct ttm_resource *res,
struct ttm_tt *ttm)
-:1347: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #1347:
new file mode 100644
-:1352: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #1352: FILE: drivers/gpu/drm/i915/i915_cache.c:1:
+/*
-:1353: WARNING:SPDX_LICENSE_TAG: Misplaced SPDX-License-Identifier tag - use line 1 instead #1353: FILE: drivers/gpu/drm/i915/i915_cache.c:2:
+ * SPDX-License-Identifier: MIT
-:1406: WARNING:STATIC_CONST_CHAR_ARRAY: static const char * array should probably be static const char * const #1406: FILE: drivers/gpu/drm/i915/i915_cache.c:55:
+ static const char *mode_str[] = {
-:1412: WARNING:STATIC_CONST_CHAR_ARRAY: static const char * array should probably be static const char * const #1412: FILE: drivers/gpu/drm/i915/i915_cache.c:61:
+ static const char *flag_str[] = {
-:1462: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #1462: FILE: drivers/gpu/drm/i915/i915_cache.h:17:
+#define I915_CACHE(mode) \
+ (i915_cache_t)(I915_CACHE_MODE_##mode)
-:1467: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #1467: FILE: drivers/gpu/drm/i915/i915_cache.h:22:
+#define _I915_CACHE(mode, flag) \
+ (i915_cache_t)((I915_CACHE_MODE_##mode) | __I915_CACHE_FLAG(flag))
-:1470: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #1470: FILE: drivers/gpu/drm/i915/i915_cache.h:25:
+#define __I915_CACHE(mode, flags) \
+ (i915_cache_t)((I915_CACHE_MODE_##mode) | ((flags) << 8))
-:1473: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #1473: FILE: drivers/gpu/drm/i915/i915_cache.h:28:
+#define I915_CACHE_MODE(cache) \
+ (enum i915_cache_mode)(((i915_cache_t)(cache)) & 0xff)
-:1475: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #1475: FILE: drivers/gpu/drm/i915/i915_cache.h:30:
+#define I915_CACHE_FLAGS(cache) \
+ (unsigned int)((((i915_cache_t)(cache) & 0xff00)) >> 8)
-:2081: WARNING:LINE_CONTINUATIONS: Avoid unnecessary line continuations #2081: FILE: drivers/gpu/drm/i915/selftests/mock_gem_device.c:134:
+ [2] = __I915_CACHE(WB, BIT(I915_CACHE_FLAG_COH1W) | BIT(I915_CACHE_FLAG_L3)), \
total: 5 errors, 6 warnings, 1 checks, 1729 lines checked df03c572f382 drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc -:14: WARNING:REPEATED_WORD: Possible repeated word: 'is'
#14:
index can (bypass the LLC), question is is there a such PAT index on a
total: 0 errors, 1 warnings, 0 checks, 12 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling
URL : https://patchwork.freedesktop.org/series/120686/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling
URL : https://patchwork.freedesktop.org/series/120686/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_13384 -> Patchwork_120686v1
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/index.html
Participating hosts (42 -> 40)
------------------------------
Missing (2): fi-kbl-soraka fi-snb-2520m
Known issues
------------
Here are the changes found in Patchwork_120686v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-skl-guc: [PASS][1] -> [FAIL][2] ([i915#7940]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/fi-skl-guc/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/fi-skl-guc/igt@[email protected]
- bat-dg1-7: [PASS][3] -> [FAIL][4] ([i915#7691])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/bat-dg1-7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/bat-dg1-7/igt@[email protected]
* igt@i915_selftest@live@gt_lrc:
- bat-rpls-2: [PASS][5] -> [INCOMPLETE][6] ([i915#4983] / [i915#7913])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/bat-rpls-2/igt@i915_selftest@live@gt_lrc.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/bat-rpls-2/igt@i915_selftest@live@gt_lrc.html
* igt@i915_selftest@live@migrate:
- bat-dg2-11: [PASS][7] -> [DMESG-WARN][8] ([i915#7699])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/bat-dg2-11/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/bat-dg2-11/igt@i915_selftest@[email protected]
* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- bat-jsl-3: NOTRUN -> [SKIP][9] ([i915#7828])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/bat-jsl-3/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: NOTRUN -> [SKIP][10] ([i915#1845] / [i915#5354]) +3 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/bat-dg2-11/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s0@smem:
- bat-jsl-3: [ABORT][11] ([i915#5122]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/bat-jsl-3/igt@gem_exec_suspend@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/bat-jsl-3/igt@gem_exec_suspend@[email protected]
* igt@i915_pm_rpm@basic-rte:
- fi-skl-guc: [FAIL][13] ([i915#7940]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/fi-skl-guc/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/fi-skl-guc/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-rkl-11600: [FAIL][15] ([i915#7940]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/fi-rkl-11600/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/fi-rkl-11600/igt@[email protected]
* igt@i915_suspend@basic-s3-without-i915:
- bat-jsl-3: [FAIL][17] ([fdo#103375]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/bat-jsl-3/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/bat-jsl-3/igt@[email protected]
#### Warnings ####
* igt@i915_module_load@load:
- bat-adlp-11: [DMESG-WARN][19] ([i915#4423]) -> [ABORT][20] ([i915#4423])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/bat-adlp-11/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/bat-adlp-11/igt@[email protected]
* igt@kms_psr@cursor_plane_move:
- bat-rplp-1: [SKIP][21] ([i915#1072]) -> [ABORT][22] ([i915#8434] / [i915#8668])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/bat-rplp-1/igt@kms_psr@cursor_plane_move.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/bat-rplp-1/igt@kms_psr@cursor_plane_move.html
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#4423]: https://gitlab.freedesktop.org/drm/intel/issues/4423
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5122]: https://gitlab.freedesktop.org/drm/intel/issues/5122
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#7691]: https://gitlab.freedesktop.org/drm/intel/issues/7691
[i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7940]: https://gitlab.freedesktop.org/drm/intel/issues/7940
[i915#8434]: https://gitlab.freedesktop.org/drm/intel/issues/8434
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
Build changes
-------------
* Linux: CI_DRM_13384 -> Patchwork_120686v1
CI-20190529: 20190529
CI_DRM_13384: ea8d81bf649580240f0b944b85521d2a091d8ebc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7386: 54dc25efaf10d87962f95be9b1d1a8f0f907912b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_120686v1: ea8d81bf649580240f0b944b85521d2a091d8ebc @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
7bc00edcd34a drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc c66a5cebaba8 drm/i915: Refactor PAT/object cache handling
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling
URL : https://patchwork.freedesktop.org/series/120686/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_13384_full -> Patchwork_120686v1_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (10 -> 11)
------------------------------
Additional (1): shard-rkl0
Known issues
------------
Here are the changes found in Patchwork_120686v1_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@drm_fdinfo@most-busy-check-all@rcs0:
- shard-rkl: [PASS][1] -> [FAIL][2] ([i915#7742])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-rkl-1/igt@drm_fdinfo@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-rkl-2/igt@drm_fdinfo@[email protected]
* igt@drm_fdinfo@virtual-busy:
- shard-mtlp: NOTRUN -> [SKIP][3] ([i915#8414])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@[email protected]
* igt@gem_barrier_race@remote-request@rcs0:
- shard-tglu: [PASS][4] -> [ABORT][5] ([i915#8211] / [i915#8234])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-tglu-5/igt@gem_barrier_race@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-tglu-8/igt@gem_barrier_race@[email protected]
* igt@gem_basic@multigpu-create-close:
- shard-dg2: NOTRUN -> [SKIP][6] ([i915#7697])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@[email protected]
* igt@gem_create@create-ext-set-pat:
- shard-snb: NOTRUN -> [FAIL][7] ([i915#8621])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-snb6/igt@[email protected]
* igt@gem_create@hog-create@smem0:
- shard-dg2: [PASS][8] -> [FAIL][9] ([i915#5892] / [i915#8758])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-10/igt@gem_create@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-1/igt@gem_create@[email protected]
* igt@gem_ctx_persistence@engines-mixed:
- shard-snb: NOTRUN -> [SKIP][10] ([fdo#109271] / [i915#1099]) +2 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-snb6/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-mtlp: NOTRUN -> [SKIP][11] ([i915#4473] / [i915#4771])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-apl: [PASS][12] -> [FAIL][13] ([i915#2842])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-apl4/igt@gem_exec_fair@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-apl4/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@bcs0:
- shard-rkl: [PASS][14] -> [FAIL][15] ([i915#2842]) +2 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-rkl-1/igt@gem_exec_fair@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-rkl-7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-solo:
- shard-mtlp: NOTRUN -> [SKIP][16] ([i915#4473])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-8/igt@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-glk: [PASS][17] -> [FAIL][18] ([i915#2842])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-glk1/igt@gem_exec_fair@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_flush@basic-uc-set-default:
- shard-dg2: NOTRUN -> [SKIP][19] ([i915#3539])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@[email protected]
* igt@gem_exec_reloc@basic-wc:
- shard-mtlp: NOTRUN -> [SKIP][20] ([i915#3281]) +2 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@gem_exec_suspend@basic-s4-devices@lmem0:
- shard-dg2: NOTRUN -> [ABORT][21] ([i915#7975] / [i915#8213])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@gem_exec_suspend@[email protected]
* igt@gem_exec_suspend@basic-s4-devices@smem:
- shard-snb: [PASS][22] -> [SKIP][23] ([fdo#109271])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-snb1/igt@gem_exec_suspend@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-snb6/igt@gem_exec_suspend@[email protected]
* igt@gem_exec_whisper@basic-contexts-forked-all:
- shard-mtlp: [PASS][24] -> [TIMEOUT][25] ([i915#8628])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-2/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-1/igt@[email protected]
* igt@gem_fence_thrash@bo-write-verify-x:
- shard-mtlp: NOTRUN -> [SKIP][26] ([i915#4860])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@gem_lmem_swapping@heavy-verify-random-ccs:
- shard-glk: NOTRUN -> [SKIP][27] ([fdo#109271] / [i915#4613])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk8/igt@[email protected]
* igt@gem_lmem_swapping@verify-random-ccs:
- shard-mtlp: NOTRUN -> [SKIP][28] ([i915#4613])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-big-copy-odd:
- shard-mtlp: NOTRUN -> [SKIP][29] ([i915#4077]) +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@[email protected]
* igt@gem_mmap_wc@read:
- shard-dg2: NOTRUN -> [SKIP][30] ([i915#4083])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@[email protected]
* igt@gem_pwrite_snooped:
- shard-mtlp: NOTRUN -> [SKIP][31] ([i915#3282])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@gem_pwrite_snooped.html
* igt@gem_pxp@reject-modify-context-protection-off-1:
- shard-dg2: NOTRUN -> [SKIP][32] ([i915#4270])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@[email protected]
* igt@gem_render_copy@yf-tiled-ccs-to-y-tiled:
- shard-mtlp: NOTRUN -> [SKIP][33] ([i915#8428])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@gem_softpin@evict-snoop-interruptible:
- shard-mtlp: NOTRUN -> [SKIP][34] ([i915#4885])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@gem_userptr_blits@coherency-unsync:
- shard-dg2: NOTRUN -> [SKIP][35] ([i915#3297])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-unsync:
- shard-mtlp: NOTRUN -> [SKIP][36] ([i915#3297])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@gem_userptr_blits@forbidden-operations:
- shard-dg2: NOTRUN -> [SKIP][37] ([i915#3282])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@[email protected]
* igt@gen7_exec_parse@basic-allowed:
- shard-mtlp: NOTRUN -> [SKIP][38] ([fdo#109289]) +2 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@gen9_exec_parse@batch-without-end:
- shard-mtlp: NOTRUN -> [SKIP][39] ([i915#2856]) +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@i915_pm_dc@dc5-dpms-negative:
- shard-mtlp: NOTRUN -> [SKIP][40] ([i915#8018])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-8/igt@[email protected]
* igt@i915_pm_rpm@dpms-mode-unset-lpsp:
- shard-dg2: [PASS][41] -> [SKIP][42] ([i915#1397]) +2 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-12/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-8/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- shard-glk: [PASS][43] -> [DMESG-FAIL][44] ([i915#5334])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-glk4/igt@i915_selftest@live@gt_heartbeat.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk4/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@slpc:
- shard-mtlp: NOTRUN -> [DMESG-WARN][45] ([i915#6367])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@tile-pitch-mismatch:
- shard-dg2: NOTRUN -> [SKIP][46] ([i915#4212])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@[email protected]
* igt@kms_async_flips@crc@pipe-b-dp-2:
- shard-dg2: NOTRUN -> [FAIL][47] ([i915#8247]) +3 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-12/igt@kms_async_flips@[email protected]
* igt@kms_async_flips@crc@pipe-b-hdmi-a-1:
- shard-rkl: NOTRUN -> [FAIL][48] ([i915#8247]) +1 similar issue
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-rkl-7/igt@kms_async_flips@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-0-async-flip:
- shard-mtlp: [PASS][49] -> [FAIL][50] ([i915#3743])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-2/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-6/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-mtlp: [PASS][51] -> [FAIL][52] ([i915#5138]) +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-7/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@[email protected]
* igt@kms_big_fb@linear-8bpp-rotate-90:
- shard-mtlp: NOTRUN -> [SKIP][53] ([fdo#111614])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-async-flip:
- shard-mtlp: NOTRUN -> [SKIP][54] ([fdo#111615]) +1 similar issue
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html
* igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_rc_ccs_cc:
- shard-mtlp: NOTRUN -> [SKIP][55] ([i915#3886] / [i915#6095]) +5 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-b-bad-pixel-format-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][56] ([fdo#109271] / [i915#3886]) +2 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk8/igt@kms_ccs@pipe-b-bad-pixel-format-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_rc_ccs:
- shard-mtlp: NOTRUN -> [SKIP][57] ([i915#6095]) +11 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_gen12_rc_ccs.html
* igt@kms_ccs@pipe-c-bad-aux-stride-yf_tiled_ccs:
- shard-dg2: NOTRUN -> [SKIP][58] ([i915#3689] / [i915#5354]) +1 similar issue
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@kms_ccs@pipe-c-bad-aux-stride-yf_tiled_ccs.html
* igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_rc_ccs_cc:
- shard-snb: NOTRUN -> [SKIP][59] ([fdo#109271]) +253 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-snb6/igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-d-bad-aux-stride-4_tiled_mtl_mc_ccs:
- shard-glk: NOTRUN -> [SKIP][60] ([fdo#109271]) +35 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk8/igt@kms_ccs@pipe-d-bad-aux-stride-4_tiled_mtl_mc_ccs.html
* igt@kms_chamelium_color@ctm-limited-range:
- shard-mtlp: NOTRUN -> [SKIP][61] ([fdo#111827])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@[email protected]
* igt@kms_chamelium_hpd@dp-hpd-for-each-pipe:
- shard-mtlp: NOTRUN -> [SKIP][62] ([i915#7828]) +1 similar issue
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@kms_content_protection@legacy:
- shard-mtlp: NOTRUN -> [SKIP][63] ([i915#6944])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@kms_content_protection@uevent:
- shard-dg2: NOTRUN -> [SKIP][64] ([i915#7118])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-3/igt@[email protected]
* igt@kms_cursor_crc@cursor-suspend@pipe-b-vga-1:
- shard-snb: NOTRUN -> [DMESG-WARN][65] ([i915#8841]) +3 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-snb6/igt@kms_cursor_crc@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: [PASS][66] -> [FAIL][67] ([i915#72])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-glk4/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk4/igt@[email protected]
- shard-mtlp: NOTRUN -> [SKIP][68] ([i915#3546])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size:
- shard-dg2: NOTRUN -> [SKIP][69] ([fdo#109274] / [i915#5354])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions:
- shard-mtlp: NOTRUN -> [SKIP][70] ([i915#4213])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions.html
* igt@kms_fbcon_fbt@psr-suspend:
- shard-dg2: NOTRUN -> [SKIP][71] ([i915#3469])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@[email protected]
* igt@kms_flip@2x-plain-flip-interruptible:
- shard-mtlp: NOTRUN -> [SKIP][72] ([i915#3637]) +1 similar issue
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@kms_flip@flip-vs-fences-interruptible:
- shard-mtlp: NOTRUN -> [SKIP][73] ([i915#8381])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@kms_flip@flip-vs-suspend@a-hdmi-a3:
- shard-dg2: [PASS][74] -> [FAIL][75] ([fdo#103375]) +3 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-5/igt@kms_flip@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-5/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-upscaling@pipe-a-default-mode:
- shard-mtlp: NOTRUN -> [SKIP][76] ([i915#2672])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-upscaling@pipe-a-default-mode.html
* igt@kms_frontbuffer_tracking@fbc-rgb101010-draw-mmap-gtt:
- shard-mtlp: NOTRUN -> [SKIP][77] ([i915#8708]) +2 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-pwrite:
- shard-dg2: NOTRUN -> [SKIP][78] ([i915#3458]) +1 similar issue
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-mmap-gtt:
- shard-dg2: NOTRUN -> [SKIP][79] ([i915#8708]) +1 similar issue
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-mmap-gtt.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-render:
- shard-mtlp: NOTRUN -> [SKIP][80] ([i915#1825]) +16 similar issues
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-render.html
* igt@kms_hdr@static-toggle-suspend:
- shard-dg2: NOTRUN -> [SKIP][81] ([i915#3555] / [i915#8228]) +1 similar issue
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-5/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes:
- shard-mtlp: [PASS][82] -> [FAIL][83] ([fdo#103375]) +2 similar issues
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-6/igt@kms_plane@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-8/igt@kms_plane@[email protected]
* igt@kms_plane_scaling@intel-max-src-size:
- shard-dg2: NOTRUN -> [SKIP][84] ([i915#6953])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-3/igt@[email protected]
* igt@kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-25@pipe-a-hdmi-a-3:
- shard-dg2: NOTRUN -> [SKIP][85] ([i915#5176]) +3 similar issues
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-7/igt@kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-25@pipe-a-hdmi-a-3.html
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-a-hdmi-a-3:
- shard-dg2: NOTRUN -> [SKIP][86] ([i915#5235]) +15 similar issues
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-5/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-a-hdmi-a-3.html
* igt@kms_prime@d3hot:
- shard-mtlp: NOTRUN -> [SKIP][87] ([i915#6524])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@[email protected]
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0:
- shard-mtlp: NOTRUN -> [SKIP][88] ([i915#5289])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@[email protected]
* igt@kms_setmode@basic@pipe-a-vga-1:
- shard-snb: NOTRUN -> [FAIL][89] ([i915#5465]) +1 similar issue
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-snb6/igt@kms_setmode@[email protected]
* igt@kms_writeback@writeback-invalid-parameters:
- shard-glk: NOTRUN -> [SKIP][90] ([fdo#109271] / [i915#2437])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk8/igt@[email protected]
* igt@perf_pmu@enable-race@vecs0:
- shard-glk: [PASS][91] -> [DMESG-WARN][92] ([i915#118])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-glk4/igt@perf_pmu@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk4/igt@perf_pmu@[email protected]
* igt@perf_pmu@most-busy-idle-check-all@bcs0:
- shard-mtlp: [PASS][93] -> [FAIL][94] ([i915#5234])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-8/igt@perf_pmu@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-7/igt@perf_pmu@[email protected]
* igt@prime_udl:
- shard-dg2: NOTRUN -> [SKIP][95] ([fdo#109291])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@prime_udl.html
* igt@prime_vgem@fence-write-hang:
- shard-mtlp: NOTRUN -> [SKIP][96] ([i915#3708])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@v3d/v3d_submit_cl@bad-multisync-out-sync:
- shard-mtlp: NOTRUN -> [SKIP][97] ([i915#2575]) +4 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@v3d/[email protected]
* igt@v3d/v3d_submit_csd@bad-multisync-out-sync:
- shard-dg2: NOTRUN -> [SKIP][98] ([i915#2575]) +1 similar issue
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@v3d/[email protected]
* igt@vc4/vc4_tiling@set-bad-flags:
- shard-mtlp: NOTRUN -> [SKIP][99] ([i915#7711])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@vc4/[email protected]
#### Possible fixes ####
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [FAIL][100] ([i915#2846]) -> [PASS][101]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-glk3/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk2/igt@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][102] ([i915#2842]) -> [PASS][103]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-glk1/igt@gem_exec_fair@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk2/igt@gem_exec_fair@[email protected]
- shard-rkl: [FAIL][104] ([i915#2842]) -> [PASS][105] +1 similar issue
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-rkl-2/igt@gem_exec_fair@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-rkl-4/igt@gem_exec_fair@[email protected]
- shard-tglu: [FAIL][106] ([i915#2842]) -> [PASS][107]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-tglu-10/igt@gem_exec_fair@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-tglu-7/igt@gem_exec_fair@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-glk: [ABORT][108] ([i915#5566]) -> [PASS][109]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-glk1/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk8/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- shard-dg2: [DMESG-WARN][110] ([i915#7061]) -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-11/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-11/igt@[email protected]
- shard-mtlp: [ABORT][112] ([i915#8489] / [i915#8668]) -> [PASS][113]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-6/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-4/igt@[email protected]
* igt@i915_pipe_stress@stress-xrgb8888-untiled:
- shard-mtlp: [FAIL][114] ([i915#8691]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-8/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-2/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
- {shard-dg1}: [FAIL][116] ([i915#3591]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg1-15/igt@i915_pm_rc6_residency@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg1-16/igt@i915_pm_rc6_residency@[email protected]
* igt@i915_pm_rpm@cursor:
- shard-tglu: [FAIL][118] ([i915#7940]) -> [PASS][119] +1 similar issue
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-tglu-4/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-tglu-10/igt@[email protected]
* igt@i915_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-dg2: [SKIP][120] ([i915#1397]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-10/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-1/igt@[email protected]
* igt@i915_pm_rpm@modeset-non-lpsp-stress-no-wait:
- {shard-dg1}: [SKIP][122] ([i915#1397]) -> [PASS][123] +1 similar issue
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg1-19/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg1-16/igt@[email protected]
* igt@i915_pm_rpm@system-suspend-execbuf:
- {shard-dg1}: [FAIL][124] ([i915#7940]) -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg1-18/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg1-19/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- shard-apl: [DMESG-FAIL][126] ([i915#5334]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-apl6/igt@i915_selftest@live@gt_heartbeat.html
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-apl7/igt@i915_selftest@live@gt_heartbeat.html
* igt@kms_async_flips@alternate-sync-async-flip@pipe-b-edp-1:
- shard-mtlp: [FAIL][128] ([i915#2521]) -> [PASS][129] +1 similar issue
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-3/igt@kms_async_flips@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@kms_async_flips@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip:
- shard-mtlp: [FAIL][130] ([i915#3743]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-8/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-7/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-apl: [FAIL][132] ([i915#2346]) -> [PASS][133]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-apl2/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-apl3/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-hdmi-a1:
- shard-glk: [FAIL][134] ([i915#79]) -> [PASS][135] +1 similar issue
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-glk6/igt@kms_flip@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-glk9/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@b-hdmi-a3:
- shard-dg2: [FAIL][136] ([fdo#103375]) -> [PASS][137]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-5/igt@kms_flip@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-5/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-tiling-4:
- shard-dg2: [FAIL][138] ([i915#6880]) -> [PASS][139] +2 similar issues
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-10/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-1/igt@[email protected]
* igt@perf@non-zero-reason@0-rcs0:
- shard-dg2: [FAIL][140] ([i915#7484]) -> [PASS][141]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-3/igt@perf@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-10/igt@perf@[email protected]
* igt@perf_pmu@busy-double-start@rcs0:
- shard-mtlp: [FAIL][142] ([i915#4349]) -> [PASS][143]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-2/igt@perf_pmu@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-1/igt@perf_pmu@[email protected]
#### Warnings ####
* igt@gem_exec_whisper@basic-contexts-priority-all:
- shard-mtlp: [ABORT][144] ([i915#8131]) -> [TIMEOUT][145] ([i915#7392])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-3/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-3/igt@[email protected]
* igt@gem_ppgtt@blt-vs-render-ctx0:
- shard-snb: [DMESG-FAIL][146] ([i915#8295]) -> [FAIL][147] ([i915#8295])
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-snb1/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-snb6/igt@[email protected]
* igt@kms_content_protection@mei_interface:
- shard-dg2: [SKIP][148] ([i915#7118] / [i915#7162]) -> [SKIP][149] ([i915#7118])
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-12/igt@kms_content_protection@mei_interface.html
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-8/igt@kms_content_protection@mei_interface.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-mtlp: [FAIL][150] ([i915#2346]) -> [DMESG-FAIL][151] ([i915#2017] / [i915#5954])
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-mtlp-2/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-mtlp-6/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_fbcon_fbt@psr-suspend:
- shard-rkl: [SKIP][152] ([i915#3955]) -> [SKIP][153] ([fdo#110189] / [i915#3955])
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-rkl-4/igt@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-rkl-1/igt@[email protected]
* igt@prime_mmap@test_aperture_limit@test_aperture_limit-smem:
- shard-dg2: [INCOMPLETE][154] ([i915#5493]) -> [CRASH][155] ([i915#7331])
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13384/shard-dg2-8/igt@prime_mmap@test_aperture_limit@test_aperture_limit-smem.html
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/shard-dg2-12/igt@prime_mmap@test_aperture_limit@test_aperture_limit-smem.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1099]: https://gitlab.freedesktop.org/drm/intel/issues/1099
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#2017]: https://gitlab.freedesktop.org/drm/intel/issues/2017
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2521]: https://gitlab.freedesktop.org/drm/intel/issues/2521
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4473]: https://gitlab.freedesktop.org/drm/intel/issues/4473
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4885]: https://gitlab.freedesktop.org/drm/intel/issues/4885
[i915#5138]: https://gitlab.freedesktop.org/drm/intel/issues/5138
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5234]: https://gitlab.freedesktop.org/drm/intel/issues/5234
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#5465]: https://gitlab.freedesktop.org/drm/intel/issues/5465
[i915#5493]: https://gitlab.freedesktop.org/drm/intel/issues/5493
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#5892]: https://gitlab.freedesktop.org/drm/intel/issues/5892
[i915#5954]: https://gitlab.freedesktop.org/drm/intel/issues/5954
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#6880]: https://gitlab.freedesktop.org/drm/intel/issues/6880
[i915#6944]: https://gitlab.freedesktop.org/drm/intel/issues/6944
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7061]: https://gitlab.freedesktop.org/drm/intel/issues/7061
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7162]: https://gitlab.freedesktop.org/drm/intel/issues/7162
[i915#72]: https://gitlab.freedesktop.org/drm/intel/issues/72
[i915#7331]: https://gitlab.freedesktop.org/drm/intel/issues/7331
[i915#7392]: https://gitlab.freedesktop.org/drm/intel/issues/7392
[i915#7484]: https://gitlab.freedesktop.org/drm/intel/issues/7484
[i915#7691]: https://gitlab.freedesktop.org/drm/intel/issues/7691
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7742]: https://gitlab.freedesktop.org/drm/intel/issues/7742
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#7940]: https://gitlab.freedesktop.org/drm/intel/issues/7940
[i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
[i915#8018]: https://gitlab.freedesktop.org/drm/intel/issues/8018
[i915#8131]: https://gitlab.freedesktop.org/drm/intel/issues/8131
[i915#8211]: https://gitlab.freedesktop.org/drm/intel/issues/8211
[i915#8213]: https://gitlab.freedesktop.org/drm/intel/issues/8213
[i915#8228]: https://gitlab.freedesktop.org/drm/intel/issues/8228
[i915#8234]: https://gitlab.freedesktop.org/drm/intel/issues/8234
[i915#8247]: https://gitlab.freedesktop.org/drm/intel/issues/8247
[i915#8292]: https://gitlab.freedesktop.org/drm/intel/issues/8292
[i915#8295]: https://gitlab.freedesktop.org/drm/intel/issues/8295
[i915#8381]: https://gitlab.freedesktop.org/drm/intel/issues/8381
[i915#8414]: https://gitlab.freedesktop.org/drm/intel/issues/8414
[i915#8428]: https://gitlab.freedesktop.org/drm/intel/issues/8428
[i915#8489]: https://gitlab.freedesktop.org/drm/intel/issues/8489
[i915#8621]: https://gitlab.freedesktop.org/drm/intel/issues/8621
[i915#8628]: https://gitlab.freedesktop.org/drm/intel/issues/8628
[i915#8661]: https://gitlab.freedesktop.org/drm/intel/issues/8661
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#8691]: https://gitlab.freedesktop.org/drm/intel/issues/8691
[i915#8708]: https://gitlab.freedesktop.org/drm/intel/issues/8708
[i915#8709]: https://gitlab.freedesktop.org/drm/intel/issues/8709
[i915#8758]: https://gitlab.freedesktop.org/drm/intel/issues/8758
[i915#8841]: https://gitlab.freedesktop.org/drm/intel/issues/8841
Build changes
-------------
* Linux: CI_DRM_13384 -> Patchwork_120686v1
CI-20190529: 20190529
CI_DRM_13384: ea8d81bf649580240f0b944b85521d2a091d8ebc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7386: 54dc25efaf10d87962f95be9b1d1a8f0f907912b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_120686v1: ea8d81bf649580240f0b944b85521d2a091d8ebc @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120686v1/index.html
[snip]
drivers/gpu/drm/i915/gem/i915_gem_domain.c int i915_gem_get_caching_ioctl(struct drm_device *dev, void *data, · line 334
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_domain.c +2
-2@@ -326,10 +330,10 @@ int i915_gem_get_caching_ioctl(struct drm_device *dev, void *data, goto out; } -if (i915_gem_object_has_cache_level (obj,I915_CACHE_LLC ) || -i915_gem_object_has_cache_level (obj,I915_CACHE_L3_LLC )) +if (i915_gem_object_has_cache_mode (obj,I915_CACHE_MODE_WB ) && +i915_gem_object_has_cache_flag (obj,I915_CACHE_FLAG_COH1W ) ==1 )
Need to check L3 flag as well? The original code has L3_LLC. if (i915_gem_object_has_cache_mode(obj, I915_CACHE_MODE_WB) &&
(i915_gem_object_has_cache_flag(obj, I915_CACHE_FLAG_COH1W) == 1 ||
i915_gem_object_has_cache_flag(obj, I915_CACHE_FLAG_L3) == 1))Quoted 1 line
drivers/gpu/drm/i915/gem/i915_gem_domain.c +0
-0args->caching =I915_CACHING_CACHED ;
[snip]
Quoted 11 lines
drivers/gpu/drm/i915/i915_cache.c new file +11
-0+int i915_cache_init (struct drm_i915_private *i915) +{ +struct drm_printer p =drm_info_printer (i915->drm.dev); +char buf[I915_CACHE_NAME_LEN ]; +int ret; + + i915->cache =HAS_LLC (i915) ?I915_CACHE_CACHED :I915_CACHE_NONE ; +i915_cache_print (buf,sizeof (buf),"" , i915->cache); +drm_printf (&p,"Coherent cache mode %s" , buf); + + ret =i915_cache_find_pat (i915,I915_CACHE_NONE );
drivers/gpu/drm/i915/i915_cache.c line 32
Quoted 10 lines
drivers/gpu/drm/i915/i915_cache.c new file +10
-0+if (ret <0 ) +return -ENODEV ; +drm_info (&i915->drm,"Using PAT index %u for uncached access\n" , ret); + i915->pat_uc = ret; + + ret =i915_cache_find_pat (i915,I915_CACHE_CACHED ); +if (ret <0 ) +return -ENODEV ; +drm_info (&i915->drm,"Using PAT index %u for write-back access\n" , ret); + i915->pat_wb = ret;
I think i915->pat_wt is needed as well, because display driver has code like this, HAS_WT(i915) ? I915_CACHE_WT : I915_CACHE_NONE
How did you handle functions like initial_plane_vma() and i915_gem_object_pin_to_display_plane()?
Quoted 2 lines
(quoted diff) +2
-0+ return 0; +}
[snip]
drivers/gpu/drm/i915/i915_pci.c __diag_ignore_all("-Woverride-init", "Allow overriding inherited members"); · line 61
Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +4
-6-#define TGL_CACHELEVEL \ - .cachelevel_to_pat = { \ - [I915_CACHE_NONE] = 3, \ - [I915_CACHE_LLC] = 0, \ - [I915_CACHE_L3_LLC] = 0, \ - [I915_CACHE_WT] = 2, \ +/* +* TODO/QQQ +* +* PAT 0 - is it 1-way or 2-way?
1-way
Quoted 8 lines
+ */
drivers/gpu/drm/i915/i915_pci.c +6
-0+#define GEN12_CACHE_MODES \ + .cache_modes = { \ + [0] = _I915_CACHE(WB, COH1W), \ + [1] = I915_CACHE(WC), \ + [2] = I915_CACHE(WT), \ + [3] = I915_CACHE(UC), \ }
[snip]
drivers/gpu/drm/i915/i915_pci.c __diag_ignore_all("-Woverride-init", "Allow overriding inherited members"); · line 74
Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +4
-6-#define PVC_CACHELEVEL \ - .cachelevel_to_pat = { \ - [I915_CACHE_NONE] = 0, \ - [I915_CACHE_LLC] = 3, \ - [I915_CACHE_L3_LLC] = 3, \ - [I915_CACHE_WT] = 2, \ +/* +* TODO/QQQ +* +* PAT 3 - is it 1-way or 2-way?
1-way
PVC access is always coherent, it should have 1-way for [5] and [7] as well.
Quoted 12 lines
+ */
drivers/gpu/drm/i915/i915_pci.c +10
-0+#define PVC_CACHE_MODES \ + .cache_modes = { \ + [0] = I915_CACHE(UC), \ + [1] = I915_CACHE(WC), \ + [2] = I915_CACHE(WT), \ + [3] = _I915_CACHE(WB, COH1W), \ + [4] = _I915_CACHE(WT, CLOS1), \ + [5] = _I915_CACHE(WB, CLOS1), \ + [6] = _I915_CACHE(WT, CLOS2), \ + [7] = _I915_CACHE(WB, CLOS2), \ }
Quoted 12 lines · Fei
[snip]
drivers/gpu/drm/i915/gem/i915_gem_domain.c int i915_gem_get_caching_ioctl(struct drm_device *dev, void *data, · line 334
Quoted 8 lines
drivers/gpu/drm/i915/gem/i915_gem_domain.c +2
-2@@ -326,10 +330,10 @@ int i915_gem_get_caching_ioctl(struct drm_device *dev, void *data, goto out; } -if (i915_gem_object_has_cache_level (obj,I915_CACHE_LLC ) || -i915_gem_object_has_cache_level (obj,I915_CACHE_L3_LLC )) +if (i915_gem_object_has_cache_mode (obj,I915_CACHE_MODE_WB ) && +i915_gem_object_has_cache_flag (obj,I915_CACHE_FLAG_COH1W ) ==1 )Need to check L3 flag as well? The original code has
L3_LLC. if (i915_gem_object_has_cache_mode(obj, I915_CACHE_MODE_WB)&&
Quoted 2 lines
(i915_gem_object_has_cache_flag(obj, I915_CACHE_FLAG_COH1W) == 1 ||
i915_gem_object_has_cache_flag(obj, I915_CACHE_FLAG_L3) == 1))Don't think so, because I have:
[2] = __I915_CACHE(WB, BIT(I915_CACHE_FLAG_COH1W) | BIT(I915_CACHE_FLAG_L3)), \
So L3 and COH1W are both set for the equivalent of old I915_CACHE_L3_LLC, meaning I915_CACHING_CACHED will be returned for either - same as old code.
Quoted 29 lines
Quoted 2 lines
drivers/gpu/drm/i915/gem/i915_gem_domain.c +0
-0args->caching =I915_CACHING_CACHED ;[snip]
Quoted 11 lines
drivers/gpu/drm/i915/i915_cache.c new file +11
-0+int i915_cache_init (struct drm_i915_private *i915) +{ +struct drm_printer p =drm_info_printer (i915->drm.dev); +char buf[I915_CACHE_NAME_LEN ]; +int ret; + + i915->cache =HAS_LLC (i915) ?I915_CACHE_CACHED :I915_CACHE_NONE ; +i915_cache_print (buf,sizeof (buf),"" , i915->cache); +drm_printf (&p,"Coherent cache mode %s" , buf); + + ret =i915_cache_find_pat (i915,I915_CACHE_NONE );drivers/gpu/drm/i915/i915_cache.c line 32
Quoted 10 lines
drivers/gpu/drm/i915/i915_cache.c new file +10
-0+if (ret <0 ) +return -ENODEV ; +drm_info (&i915->drm,"Using PAT index %u for uncached access\n" , ret); + i915->pat_uc = ret; + + ret =i915_cache_find_pat (i915,I915_CACHE_CACHED ); +if (ret <0 ) +return -ENODEV ; +drm_info (&i915->drm,"Using PAT index %u for write-back access\n" , ret); + i915->pat_wb = ret;I think
i915->pat_wtis needed as well, because display driver has code like this,HAS_WT(i915)?I915_CACHE_WT:I915_CACHE_NONE
Quoted 1 line
How did you handle functions like
initial_plane_vma()andi915_gem_object_pin_to_display_plane()?
They have:
i915_gem_object_set_cache_coherency(obj, HAS_WT(i915) ? I915_CACHE_WT : I915_CACHE_NONE);
Where HAS_WT is equal to HAS_EDRAM. So it is not always WT. I don't have the history/background of that but that is how it is.
So I could add i915->pat_wt but a) I don't think it is right for display (display would need more like i915->display_pat), and b) there would be no call sites for it.
i915->display_pat (or display_cache actually) would be similar to how I added i915->cache, not be best name I know, but it is replacing many occurrences of:
cache_level = HAS_LLC(mem->i915) ? I915_CACHE_LLC : I915_CACHE_NONE; i915_gem_object_set_cache_coherency(obj, cache_level)
I am unsure what would be the proper name for i915->cache, which would make it correctly self-documenting?
Quoted 41 lines
Quoted 3 lines
(quoted diff) +2
-0+ return 0; +}[snip]
drivers/gpu/drm/i915/i915_pci.c __diag_ignore_all("-Woverride-init", "Allow overriding inherited members"); · line 61
Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +4
-6-#define TGL_CACHELEVEL \ - .cachelevel_to_pat = { \ - [I915_CACHE_NONE] = 3, \ - [I915_CACHE_LLC] = 0, \ - [I915_CACHE_L3_LLC] = 0, \ - [I915_CACHE_WT] = 2, \ +/* +* TODO/QQQ +* +* PAT 0 - is it 1-way or 2-way? 1-way
Quoted 8 lines
+ */
drivers/gpu/drm/i915/i915_pci.c +6
-0+#define GEN12_CACHE_MODES \ + .cache_modes = { \ + [0] = _I915_CACHE(WB, COH1W), \ + [1] = I915_CACHE(WC), \ + [2] = I915_CACHE(WT), \ + [3] = I915_CACHE(UC), \ }[snip]
drivers/gpu/drm/i915/i915_pci.c __diag_ignore_all("-Woverride-init", "Allow overriding inherited members"); · line 74
Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +4
-6-#define PVC_CACHELEVEL \ - .cachelevel_to_pat = { \ - [I915_CACHE_NONE] = 0, \ - [I915_CACHE_LLC] = 3, \ - [I915_CACHE_L3_LLC] = 3, \ - [I915_CACHE_WT] = 2, \ +/* +* TODO/QQQ +* +* PAT 3 - is it 1-way or 2-way? 1-way
Quoted 1 line
PVC access is always coherent, it should have 1-way for [5] and [7] as well.
Thanks x2!
Regards,
Tvrtko
Quoted 13 lines
Quoted 13 lines
+ */
drivers/gpu/drm/i915/i915_pci.c +10
-0+#define PVC_CACHE_MODES \ + .cache_modes = { \ + [0] = I915_CACHE(UC), \ + [1] = I915_CACHE(WC), \ + [2] = I915_CACHE(WT), \ + [3] = _I915_CACHE(WB, COH1W), \ + [4] = _I915_CACHE(WT, CLOS1), \ + [5] = _I915_CACHE(WB, CLOS1), \ + [6] = _I915_CACHE(WT, CLOS2), \ + [7] = _I915_CACHE(WB, CLOS2), \ }
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling (rev2)
In reply to Tvrtko Ursulin== Series Details ==
== Series Details ==
Series: series starting with [RFC,1/2] drm/i915: Refactor PAT/object cache handling (rev2)
URL : https://patchwork.freedesktop.org/series/120686/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/120686/revisions/2/mbox/ not applied
Applying: drm/i915: Refactor PAT/object cache handling
Applying: drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc
error: patch failed: drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c:258
error: drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/gem/i915_gem_shmem.c:254
error: drivers/gpu/drm/i915/gem/i915_gem_shmem.c: patch does not apply
error: patch failed: drivers/gpu/drm/i915/gem/i915_gem_userptr.c:170
error: drivers/gpu/drm/i915/gem/i915_gem_userptr.c: patch does not apply
error: Did you hand edit your patch?
It does not apply to blobs recorded in its index.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/gem/i915_gem_shmem.c
M drivers/gpu/drm/i915/gem/i915_gem_userptr.c
Patch failed at 0002 drm/i915: Remove PAT hack from i915_gem_object_can_bypass_llc When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Build failed, no error log produced