drm/i915/gt: Add selftests for TLB invalidation
Subsystems (2)
PATCH v5 1/1 drm/i915/gt: Add selftests for TLB invalidation
From: Chris Wilson <[email protected]>
Check that we invalidate the TLB cache, the updated physical addresses are immediately visible to the HW, and there is no retention of the old physical address for concurrent HW access.
---
v2:
- addressed comments (Tvrtko),
- changed pin/sample address calculation,
- removed checks for platforms older than 8,
- use low ints in MI_DO_COMPARE to be more clear,
- continue test if physical addresses have the same uppper 32 bits,
- consolidate two calls to pte_tlbinv into one
v3:
- skip pages not supported by vm (CI reported EINVAL),
- fix dw size in MI_CONDITIONAL_BATCH_BUFFER_END for gen8 (CI reported EIO),
- remove aggressive allocation to get different upper halves of physical address (CI reported OOM).
v4:
- align address in MI_CONDITIONAL_BATCH_BUFFER_END to 8b,
- set QWORD pointed by addr in above cmd, as required by Gen8/VCS.
v5:
- set dw size again to 2 (CI reports EIO due to semaphore sanitycheck).
Sorry for spamming, but apparently CI is the only way to test Gen8.
--- drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 1 + drivers/gpu/drm/i915/gt/intel_gt.c | 4 + drivers/gpu/drm/i915/gt/selftest_tlb.c | 379 ++++++++++++++++++ .../drm/i915/selftests/i915_live_selftests.h | 1 + 4 files changed, 385 insertions(+) create mode 100644 drivers/gpu/drm/i915/gt/selftest_tlb.c
drivers/gpu/drm/i915/gt/intel_gpu_commands.h +1 -0
@@ -394,6 +394,7 @@#define MI_LOAD_URB_MEM MI_INSTR(0x2C, 0)#define MI_STORE_URB_MEM MI_INSTR(0x2D, 0)#define MI_CONDITIONAL_BATCH_BUFFER_END MI_INSTR(0x36, 0) +#define MI_DO_COMPARE REG_BIT(21)#define STATE_BASE_ADDRESS \ ((0x3 << 29) | (0x0 << 27) | (0x1 << 24) | (0x1 << 16))
drivers/gpu/drm/i915/gt/intel_gt.c +4 -0
@@ -1205,3 +1205,7 @@ void intel_gt_invalidate_tlb(struct intel_gt *gt, u32 seqno)mutex_unlock (>->tlb.invalidate_lock); } } + +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST ) +#include "selftest_tlb.c" +#endif
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +379 -0
379 lines not on this page · raw message
drivers/gpu/drm/i915/selftests/i915_live_selftests.h +1 -0
@@ -25,6 +25,7 @@ selftest(gt_lrc, intel_lrc_live_selftests) selftest(gt_mocs, intel_mocs_live_selftests) selftest(gt_pm, intel_gt_pm_live_selftests) selftest(gt_heartbeat, intel_heartbeat_live_selftests) +selftest(gt_tlb, intel_tlb_live_selftests) selftest(requests, i915_request_live_selftests) selftest(migrate, intel_migrate_live_selftests)selftest (active, i915_active_live_selftests)
Signature · 1 line
2.34.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gt: Add selftests for TLB invalidation (rev6)
== Series Details ==
== Series Details ==
Series: drm/i915/gt: Add selftests for TLB invalidation (rev6)
URL : https://patchwork.freedesktop.org/series/112894/
State : warning
== Summary ==
Error: dim checkpatch failedd3a3e008ebc9 drm/i915/gt: Add selftests for TLB invalidation
Traceback (most recent call last):
File "scripts/spdxcheck.py", line 6, in <module>
from ply import lex, yacc
ModuleNotFoundError: No module named 'ply'
-:39: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #39:
new file mode 100644
-:67: WARNING:AVOID_BUG: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants #67: FILE: drivers/gpu/drm/i915/gt/selftest_tlb.c:24:
+ GEM_BUG_ON(addr < i915_vma_offset(vma));
-:68: WARNING:AVOID_BUG: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants #68: FILE: drivers/gpu/drm/i915/gt/selftest_tlb.c:25:
+ GEM_BUG_ON(addr >= i915_vma_offset(vma) + i915_vma_size(vma) + sizeof(val));
-:113: WARNING:AVOID_BUG: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants #113: FILE: drivers/gpu/drm/i915/gt/selftest_tlb.c:70:
+ GEM_BUG_ON(i915_vma_offset(va) != addr);
-:174: WARNING:MSLEEP: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.rst #174: FILE: drivers/gpu/drm/i915/gt/selftest_tlb.c:131:
+ msleep(10);
-:210: WARNING:MEMORY_BARRIER: memory barrier without comment #210: FILE: drivers/gpu/drm/i915/gt/selftest_tlb.c:167:
+ wmb();
-:255: WARNING:LINE_SPACING: Missing a blank line after declarations #255: FILE: drivers/gpu/drm/i915/gt/selftest_tlb.c:212:
+ enum intel_engine_id id;
+ I915_RND_STATE(prng);
-:289: WARNING:AVOID_BUG: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants #289: FILE: drivers/gpu/drm/i915/gt/selftest_tlb.c:246:
+ GEM_BUG_ON(A->base.size != B->base.size);
-:350: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #350: FILE: drivers/gpu/drm/i915/gt/selftest_tlb.c:307:
+ err = pte_tlbinv(ce, va, vb,
+ BIT_ULL(bit),
total: 0 errors, 8 warnings, 1 checks, 400 lines checked
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gt: Add selftests for TLB invalidation (rev6)
In reply to Andrzej Hajda== Series Details ==
== Series Details ==
Series: drm/i915/gt: Add selftests for TLB invalidation (rev6)
URL : https://patchwork.freedesktop.org/series/112894/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12663 -> Patchwork_112894v6
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/index.html
Participating hosts (24 -> 23)
------------------------------
Additional (1): bat-rpls-2
Missing (2): fi-kbl-soraka fi-snb-2520m
New tests
---------
New tests have been introduced between CI_DRM_12663 and Patchwork_112894v6:
### New IGT tests (1) ###
* igt@i915_selftest@live@gt_tlb:
- Statuses : 22 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in Patchwork_112894v6 that come from known issues:
### IGT changes ###
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s0@smem:
- {bat-rpls-1}: [ABORT][1] ([i915#7359]) -> [PASS][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/bat-rpls-1/igt@gem_exec_suspend@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/bat-rpls-1/igt@gem_exec_suspend@[email protected]
* igt@i915_selftest@live@migrate:
- {bat-dg2-11}: [DMESG-WARN][3] ([i915#7699]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/bat-dg2-11/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/bat-dg2-11/igt@i915_selftest@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size:
- fi-bsw-n3050: [FAIL][5] ([i915#6298]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/fi-bsw-n3050/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/fi-bsw-n3050/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#7359]: https://gitlab.freedesktop.org/drm/intel/issues/7359
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7977]: https://gitlab.freedesktop.org/drm/intel/issues/7977
[i915#7978]: https://gitlab.freedesktop.org/drm/intel/issues/7978
Build changes
-------------
* Linux: CI_DRM_12663 -> Patchwork_112894v6
CI-20190529: 20190529
CI_DRM_12663: 515fcd5308bda45b7832e0ce12bec6830f64aa08 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7141: a978df7912acda18eada1b1d2ae4b438ed3e940b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_112894v6: 515fcd5308bda45b7832e0ce12bec6830f64aa08 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
56db98fbe859 drm/i915/gt: Add selftests for TLB invalidation
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/index.html
Quoted 146 lines · Andrzej Hajda
From: Chris Wilson <[email protected]>
Check that we invalidate the TLB cache, the updated physical addresses are immediately visible to the HW, and there is no retention of the old physical address for concurrent HW access.
Signed-off-by Chris Wilson <[email protected]>[ahajda: adjust to upstream driver, v2+]Signed-off-by Andrzej Hajda <[email protected]>---
v2:
- addressed comments (Tvrtko),
- changed pin/sample address calculation,
- removed checks for platforms older than 8,
- use low ints inMI_DO_COMPAREto be more clear,
- continue test if physical addresses have the same uppper 32 bits,
- consolidate two calls topte_tlbinvinto one
v3:
- skip pages not supported by vm (CI reported EINVAL),
- fix dw size inMI_CONDITIONAL_BATCH_BUFFER_ENDfor gen8 (CI reported EIO),
- remove aggressive allocation to get different upper halves of physical address (CI reported OOM).
v4:
- align address inMI_CONDITIONAL_BATCH_BUFFER_ENDto 8b,
- set QWORD pointed by addr in above cmd, as required by Gen8/VCS.
v5:
- set dw size again to 2 (CI reports EIO due to semaphore sanitycheck).Sorry for spamming, but apparently CI is the only way to test Gen8.
--- drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 1 + drivers/gpu/drm/i915/gt/intel_gt.c | 4 + drivers/gpu/drm/i915/gt/selftest_tlb.c | 379 ++++++++++++++++++ .../drm/i915/selftests/i915_live_selftests.h | 1 + 4 files changed, 385 insertions(+)create mode 100644
drivers/gpu/drm/i915/gt/selftest_tlb.cdrivers/gpu/drm/i915/gt/intel_gpu_commands.h +1
-0@@ -394,6 +394,7 @@#define MI_LOAD_URB_MEM MI_INSTR(0x2C, 0)#define MI_STORE_URB_MEM MI_INSTR(0x2D, 0)#define MI_CONDITIONAL_BATCH_BUFFER_END MI_INSTR(0x36, 0) +#define MI_DO_COMPARE REG_BIT(21)#define STATE_BASE_ADDRESS \ ((0x3 << 29) | (0x0 << 27) | (0x1 << 24) | (0x1 << 16))drivers/gpu/drm/i915/gt/intel_gt.c +4
-0@@ -1205,3 +1205,7 @@ void intel_gt_invalidate_tlb(struct intel_gt *gt, u32 seqno)mutex_unlock (>->tlb.invalidate_lock); } } + +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST ) +#include "selftest_tlb.c" +#endif drivers/gpu/drm/i915/gt/selftest_tlb.c new file +79
-0@@ -0,0 +1,379 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2022 Intel Corporation +*/ + +#include "i915_selftest.h" + +#include "gem/i915_gem_internal.h" +#include "gem/i915_gem_region.h" + +#include "gen8_engine_cs.h" +#include "i915_gem_ww.h" +#include "intel_engine_regs.h" +#include "intel_gpu_commands.h" +#include "intel_context.h" +#include "intel_gt.h" +#include "intel_ring.h" + +#include "selftests/igt_flush_test.h" +#include "selftests/i915_random.h" + +static void vma_set_qw (struct i915_vma *vma,u64 addr,u64 val) +{ +GEM_BUG_ON (addr <i915_vma_offset (vma)); +GEM_BUG_ON (addr >=i915_vma_offset (vma) +i915_vma_size (vma) +sizeof (val)); +memset64 (page_mask_bits (vma->obj->mm.mapping) + + (addr -i915_vma_offset (vma)), val,1 ); +} + +static int +pte_tlbinv (struct intel_context *ce, +struct i915_vma *va, +struct i915_vma *vb, +u64 align, +void (*tlbinv)(struct i915_address_space *vm,u64 addr,u64 length), +u64 length, +struct rnd_state *prng) +{ +struct drm_i915_gem_object *batch; +struct i915_request *rq; +struct i915_vma *vma; +u64 addr; +int err; +u32 *cs; + + batch =i915_gem_object_create_internal (ce->vm->i915,4096 ); +if (IS_ERR (batch)) +return PTR_ERR (batch); + + vma =i915_vma_instance (batch, ce->vm,NULL ); +if (IS_ERR (vma)) { + err =PTR_ERR (vma); + goto out; + } + + err =i915_vma_pin (vma,0 ,0 ,PIN_USER ); +if (err) + goto out; + +/* Pin va at random but aligned offset after vma */ + addr =round_up (vma->node.start + vma->node.size, align); +/* MI_CONDITIONAL_BATCH_BUFFER_END limits address to 48b */ + addr =igt_random_offset (prng, addr,min (ce->vm->total,BIT_ULL (48 )), + va->size, align); + err =i915_vma_pin (va,0 ,0 , addr |PIN_OFFSET_FIXED |PIN_USER ); +if (err) { +pr_err ("Cannot pin at %llx+%llx\n" , addr, va->size); + goto out; + } +GEM_BUG_ON (i915_vma_offset (va) != addr); + vb->node = va->node;/* overwrites the _same_ PTE */ + +/* +* Now choose random dword at the 1st pinned page. +* +* SZ_64K pages on dg1 require that the whole PT be marked +* containing 64KiB entries. So we make sure that vma +* covers the whole PT, despite being randomly aligned to 64KiB +* and restrict our sampling to the 2MiB PT within where
drivers/gpu/drm/i915/gt/selftest_tlb.c line 89
Quoted 10 lines
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +10
-0+* we know that we will be using 64KiB pages. +*/ +if (align ==SZ_64K ) + addr =round_up (addr,SZ_2M ); + addr =igt_random_offset (prng, addr, addr + align,8 ,8 ); + +pr_info ("%s(%s): Sampling %llx, with alignment %llx, using PTE size %x (phys %x, sg %x), invalidate:%llx+%llx\n" , + ce->engine->name, va->obj->mm.region->name ?:"smem" , + addr, align, va->resource->page_sizes_gtt, va->page_sizes.phys, + va->page_sizes.sg, addr & -length, length);
Worth skipping this log if va == vb? Or logging something different like "... Sanity checking ...".
drivers/gpu/drm/i915/gt/selftest_tlb.c line 94
Quoted 5 lines
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +5
-0+ + cs =i915_gem_object_pin_map_unlocked (batch,I915_MAP_WC ); + *cs++ =MI_NOOP ;/* for later termination */ +/* +* Sample the target to see if we spot an incorrect page.
s/incorrect page/updated backing store/? Or something like that.
drivers/gpu/drm/i915/gt/selftest_tlb.c line 99
Quoted 5 lines
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +5
-0+* Gen8 VCS compares immediate value with bitwise-and of two +* consecutive DWORDS pointed by addr, other gen/engines compare value +* with DWORD pointed by addr. Moreover we want to exercise DWORD size +* invalidations. To fulfill all these requirements below values +* has been chosen.
s/has/have/
Quoted 62 lines
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +62
-0+*/ + *cs++ =MI_CONDITIONAL_BATCH_BUFFER_END |MI_DO_COMPARE |2 ; + *cs++ =0 ;/* break if *addr == 0 */ + *cs++ =lower_32_bits (addr); + *cs++ =upper_32_bits (addr); +vma_set_qw (va, addr,-1 ); +vma_set_qw (vb, addr,0 ); + +/* Keep sampling until we get bored */ + *cs++ =MI_BATCH_BUFFER_START |BIT (8 ) |1 ; + *cs++ =lower_32_bits (i915_vma_offset (vma)); + *cs++ =upper_32_bits (i915_vma_offset (vma)); + +i915_gem_object_flush_map (batch); + + rq =i915_request_create (ce); +if (IS_ERR (rq)) { + err =PTR_ERR (rq); + goto out_va; + } + + err = rq->engine->emit_bb_start (rq,i915_vma_offset (vma),0 ,0 ); +if (err) { +i915_request_add (rq); + goto out_va; + } + +i915_request_get (rq); +i915_request_add (rq); + +/* Short sleep to sanitycheck the batch is spinning before we begin */ +msleep (10 ); +if (va == vb) { +if (!i915_request_completed (rq)) { +pr_err ("Semaphore sanitycheck failed\n" ); + err = -EIO ; + } + }else if (!i915_request_completed (rq)) { +struct i915_vma_resource vb_res = { + .bi.pages = vb->obj->mm.pages, + .bi.page_sizes = vb->obj->mm.page_sizes, + .start =i915_vma_offset (vb), + .vma_size =i915_vma_size (vb) + }; +unsigned int pte_flags =0 ; + +/* 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,0 , pte_flags); + +/* Flush the PTE update to concurrent HW */ +tlbinv (ce->vm, addr & -length, length); + +if (wait_for (i915_request_completed (rq),HZ /2 )) { +pr_err ("%s: Request did not complete; the COND_BBE did not read the updated PTE\n" , + ce->engine->name); + err = -EINVAL ; + } + }else { +pr_err ("Spinner ended unexpectedly\n" ); + err = -EIO ;
drivers/gpu/drm/i915/gt/selftest_tlb.c line 171
Quoted 10 lines
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +10
-0+ } +i915_request_put (rq); + + cs =page_mask_bits (batch->mm.mapping); + *cs =MI_BATCH_BUFFER_END ; +wmb (); + +out_va: +if (vb != va) +memset (&vb->node,0 ,sizeof (vb->node));
This can maybe be a bit fragile. Store a local copy of vb->node and restore from that?
Quoted 213 lines
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +208
-0+i915_vma_unpin (va); +if (i915_vma_unbind_unlocked (va)) + err = -EIO ; +out: +i915_gem_object_put (batch); +return err; +} + +static struct drm_i915_gem_object *create_lmem (struct intel_gt *gt) +{ +/* +* Allocation of largest possible page size allows to test all types +* of pages. +*/ +return i915_gem_object_create_lmem (gt->i915,SZ_1G ,I915_BO_ALLOC_CONTIGUOUS ); +} + +static struct drm_i915_gem_object *create_smem (struct intel_gt *gt) +{ +/* +* SZ_64K pages require covering the whole 2M PT (gen8 to tgl/dg1). +* While that does not require the whole 2M block to be contiguous +* it is easier to make it so, since we need that for SZ_2M pagees. +* Since we randomly offset the start of the vma, we need a 4M object +* so that there is a 2M range within it is suitable for SZ_64K PTE. +*/ +return i915_gem_object_create_internal (gt->i915,SZ_4M ); +} + +static int +mem_tlbinv (struct intel_gt *gt, +struct drm_i915_gem_object *(*create_fn)(struct intel_gt *), +void (*tlbinv)(struct i915_address_space *vm,u64 addr,u64 length)) +{ +unsigned int ppgtt_size =RUNTIME_INFO (gt->i915)->ppgtt_size; +struct intel_engine_cs *engine; +struct drm_i915_gem_object *A , *B ; +struct i915_ppgtt *ppgtt; +struct i915_vma *va, *vb; +enum intel_engine_id id; +I915_RND_STATE (prng); +void *vaddr; +int err; + +/* +* Check that the TLB invalidate is able to revoke an active +* page. We load a page into a spinning COND_BBE loop and then +* remap that page to a new physical address. The old address, and +* so the loop keeps spinning, is retained in the TLB cache until +* we issue an invalidate. +*/ + +A =create_fn (gt); +if (IS_ERR (A )) +return PTR_ERR (A ); + + vaddr =i915_gem_object_pin_map_unlocked (A ,I915_MAP_WC ); +if (IS_ERR (vaddr)) { + err =PTR_ERR (vaddr); + goto out_a; + } + +B =create_fn (gt); +if (IS_ERR (B )) { + err =PTR_ERR (B ); + goto out_a; + } + + vaddr =i915_gem_object_pin_map_unlocked (B ,I915_MAP_WC ); +if (IS_ERR (vaddr)) { + err =PTR_ERR (vaddr); + goto out_b; + } + +GEM_BUG_ON (A ->base.size !=B ->base.size); +if ((A ->mm.page_sizes.phys |B ->mm.page_sizes.phys) & (A ->base.size -1 )) +pr_warn ("Failed to allocate contiguous pages for size %zx\n" , +A ->base.size); + + ppgtt =i915_ppgtt_create (gt,0 ); +if (IS_ERR (ppgtt)) { + err =PTR_ERR (ppgtt); + goto out_b; + } + + va =i915_vma_instance (A , &ppgtt->vm,NULL ); +if (IS_ERR (va)) { + err =PTR_ERR (va); + goto out_vm; + } + + vb =i915_vma_instance (B , &ppgtt->vm,NULL ); +if (IS_ERR (vb)) { + err =PTR_ERR (vb); + goto out_vm; + } + + err =0 ; +for_each_engine (engine, gt, id) { +struct i915_gem_ww_ctx ww; +struct intel_context *ce; +int bit; + + ce =intel_context_create (engine); +if (IS_ERR (ce)) { + err =PTR_ERR (ce); +break ; + } + +i915_vm_put (ce->vm); + ce->vm =i915_vm_get (&ppgtt->vm); + +for_i915_gem_ww (&ww, err, true) + err = intel_context_pin_ww(ce, &ww); +if (err) + goto err_put; + +for_each_set_bit (bit, + (unsigned long *)&RUNTIME_INFO (gt->i915)->page_sizes, +BITS_PER_TYPE (RUNTIME_INFO (gt->i915)->page_sizes)) { +unsigned int len; + +if (BIT_ULL (bit) <i915_vm_obj_min_alignment (va->vm, va->obj)) +continue ; + +/* sanitycheck the semaphore wake up */ + err =pte_tlbinv (ce, va, va, +BIT_ULL (bit), +NULL ,SZ_4K , + &prng); +if (err) + goto err_unpin; + +for (len =2 ; len <= ppgtt_size; len =min (2 * len, ppgtt_size)) { + err =pte_tlbinv (ce, va, vb, +BIT_ULL (bit), + tlbinv, +BIT_ULL (len), + &prng); +if (err) + goto err_unpin; +if (len == ppgtt_size) +break ; + } + } +err_unpin: +intel_context_unpin (ce); +err_put: +intel_context_put (ce); +if (err) +break ; + } + +if (igt_flush_test (gt->i915)) + err = -EIO ; + +out_vm: +i915_vm_put (&ppgtt->vm); +out_b: +i915_gem_object_put (B ); +out_a: +i915_gem_object_put (A ); +return err; +} + +static void tlbinv_full (struct i915_address_space *vm,u64 addr,u64 length) +{ +intel_gt_invalidate_tlb (vm->gt,intel_gt_tlb_seqno (vm->gt) |1 ); +} + +static int invalidate_full (void *arg) +{ +struct intel_gt *gt = arg; +int err; + +if (GRAPHICS_VER (gt->i915) <8 ) +return 0 ;/* TLB invalidate not implemented */ + + err =mem_tlbinv (gt, create_smem, tlbinv_full); +if (err ==0 ) + err =mem_tlbinv (gt, create_lmem, tlbinv_full); +if (err == -ENODEV || err == -ENXIO ) + err =0 ; + +return err; +} + +int intel_tlb_live_selftests (struct drm_i915_private *i915) +{ +static const struct i915_subtest tests[] = { +SUBTEST (invalidate_full), + }; +struct intel_gt *gt; +unsigned int i; + +for_each_gt (gt, i915, i) { +int err; + +if (intel_gt_is_wedged (gt)) +continue ; + + err =intel_gt_live_subtests (tests, gt); +if (err) +return err; + } + +return 0 ; +}drivers/gpu/drm/i915/selftests/i915_live_selftests.h +0
-0
drivers/gpu/drm/i915/selftests/i915_live_selftests.h selftest(gt_lrc, intel_lrc_live_selftests) · line 31
Quoted 7 lines
drivers/gpu/drm/i915/selftests/i915_live_selftests.h +1
-0@@ -25,6 +25,7 @@ selftest(gt_lrc, intel_lrc_live_selftests) selftest(gt_mocs, intel_mocs_live_selftests) selftest(gt_pm, intel_gt_pm_live_selftests) selftest(gt_heartbeat, intel_heartbeat_live_selftests) +selftest(gt_tlb, intel_tlb_live_selftests) selftest(requests, i915_request_live_selftests) selftest(migrate, intel_migrate_live_selftests)selftest (active, i915_active_live_selftests)
Okay I can follow it and it looks plausible to me. No obvious errors stick out and if CI says it's solid I'm happy.
Have you tried to do a run or wo with TLB invalidation nerfed to see how the detection rate is looking?
Regards,
Tvrtko
Quoted 480 lines · Tvrtko Ursulin
Quoted 156 lines · Andrzej Hajda
From: Chris Wilson <[email protected]>
Check that we invalidate the TLB cache, the updated physical addresses are immediately visible to the HW, and there is no retention of the old physical address for concurrent HW access.
Signed-off-by Chris Wilson <[email protected]>[ahajda: adjust to upstream driver, v2+]Signed-off-by Andrzej Hajda <[email protected]>---
v2:
- addressed comments (Tvrtko),
- changed pin/sample address calculation,
- removed checks for platforms older than 8,
- use low ints inMI_DO_COMPAREto be more clear,
- continue test if physical addresses have the same uppper 32 bits,
- consolidate two calls topte_tlbinvinto one
v3:
- skip pages not supported by vm (CI reported EINVAL),
- fix dw size inMI_CONDITIONAL_BATCH_BUFFER_ENDfor gen8 (CI reported EIO),
- remove aggressive allocation to get different upper halves of physical address (CI reported OOM).
v4:
- align address inMI_CONDITIONAL_BATCH_BUFFER_ENDto 8b,
- set QWORD pointed by addr in above cmd, as required by Gen8/VCS. v5:
- set dw size again to 2 (CI reports EIO due to semaphore sanitycheck).Sorry for spamming, but apparently CI is the only way to test Gen8.
---
drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 1 + drivers/gpu/drm/i915/gt/intel_gt.c | 4 + drivers/gpu/drm/i915/gt/selftest_tlb.c | 379 ++++++++++++++++++ .../drm/i915/selftests/i915_live_selftests.h | 1 +4 files changed, 385 insertions(+)create mode 100644
drivers/gpu/drm/i915/gt/selftest_tlb.cdrivers/gpu/drm/i915/gt/intel_gpu_commands.h +1
-0@@ -394,6 +394,7 @@ #define MI_LOAD_URB_MEM MI_INSTR(0x2C, 0) #define MI_STORE_URB_MEM MI_INSTR(0x2D, 0) #define MI_CONDITIONAL_BATCH_BUFFER_END MI_INSTR(0x36, 0) +#define MI_DO_COMPARE REG_BIT(21) #define STATE_BASE_ADDRESS \ ((0x3 << 29) | (0x0 << 27) | (0x1 << 24) | (0x1 << 16))drivers/gpu/drm/i915/gt/intel_gt.c +0
-0@@ -1205,3 +1205,7 @@ void intel_gt_invalidate_tlb(struct intel_gt *gt, u32 seqno) mutex_unlock(>->tlb.invalidate_lock); }}
drivers/gpu/drm/i915/gt/intel_gt.c +4
-0+ +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST ) +#include "selftest_tlb.c" +#endif drivers/gpu/drm/i915/gt/selftest_tlb.c new file +25
-0@@ -0,0 +1,379 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2022 Intel Corporation +*/ + +#include "i915_selftest.h" + +#include "gem/i915_gem_internal.h" +#include "gem/i915_gem_region.h" + +#include "gen8_engine_cs.h" +#include "i915_gem_ww.h" +#include "intel_engine_regs.h" +#include "intel_gpu_commands.h" +#include "intel_context.h" +#include "intel_gt.h" +#include "intel_ring.h" + +#include "selftests/igt_flush_test.h" +#include "selftests/i915_random.h" + +static void vma_set_qw(struct i915_vma *vma, u64 addr, u64 val) +{ + GEM_BUG_ON(addr < i915_vma_offset(vma)); + GEM_BUG_ON(addr >= i915_vma_offset(vma) + i915_vma_size(vma) +sizeof(val));
+memset64(page_mask_bits(vma->obj->mm.mapping) + + (addr - i915_vma_offset(vma)), val, 1);drivers/gpu/drm/i915/gt/selftest_tlb.c new file +8
-0+} + +static int +pte_tlbinv(struct intel_context *ce, + struct i915_vma *va, + struct i915_vma *vb, + u64 align, + void (*tlbinv)(struct i915_address_space *vm, u64 addr, u64length),
+ u64 length,
+ structrnd_state*prng)drivers/gpu/drm/i915/gt/selftest_tlb.c new file +26
-0+{ + struct drm_i915_gem_object *batch; + struct i915_request *rq; + struct i915_vma *vma; + u64 addr; + int err; + u32 *cs; + + batch = i915_gem_object_create_internal(ce->vm->i915, 4096); + if (IS_ERR(batch)) + return PTR_ERR(batch); + + vma = i915_vma_instance(batch, ce->vm, NULL); + if (IS_ERR(vma)) { + err = PTR_ERR(vma); + goto out; + } + + err = i915_vma_pin(vma, 0, 0, PIN_USER); + if (err) + goto out; + + /* Pin va at random but aligned offset after vma */ + addr = round_up(vma->node.start + vma->node.size, align); + /* MI_CONDITIONAL_BATCH_BUFFER_END limits address to 48b */ + addr = igt_random_offset(prng, addr, min(ce->vm->total,
BIT_ULL(48)),
+va->size, align);
+ err =i915_vma_pin(va, 0, 0, addr | PIN_OFFSET_FIXED | PIN_USER); + if (err) {
+pr_err("Cannot pin at %llx+%llx\n", addr, va->size); + goto out;
+ }
+GEM_BUG_ON(i915_vma_offset(va) != addr);
+vb->node=va->node; /* overwrites the _same_ PTE */drivers/gpu/drm/i915/gt/selftest_tlb.c new file +15
-0+ + /* + * Now choose random dword at the 1st pinned page. + * + * SZ_64K pages on dg1 require that the whole PT be marked + * containing 64KiB entries. So we make sure that vma + * covers the whole PT, despite being randomly aligned to 64KiB + * and restrict our sampling to the 2MiB PT within where + * we know that we will be using 64KiB pages. + */ + if (align == SZ_64K) + addr = round_up(addr, SZ_2M); + addr = igt_random_offset(prng, addr, addr + align, 8, 8); + + pr_info("%s(%s): Sampling %llx, with alignment %llx, using PTEQuoted 4 lines
size %x (phys %x, sg %x), invalidate:%llx+%llx\n",
+ce->engine->name,va->obj->mm.region->name?: "smem", + addr, align,va->resource->page_sizes_gtt,va->page_sizes.phys, +va->page_sizes.sg, addr & -length, length);Worth skipping this log if va == vb? Or logging something different like "... Sanity checking ...".
Quoted 5 lines
+
+ cs =i915_gem_object_pin_map_unlocked(batch, I915_MAP_WC); + *cs++ =MI_NOOP; /* for later termination */
+ /*
+ * Sample the target to see if we spot an incorrect page.s/incorrect page/updated backing store/? Or something like that.
Quoted 7 lines
+ * Gen8 VCS compares immediate value with bitwise-and of two + * consecutive DWORDS pointed by addr, other gen/engines compare value
+ * with DWORD pointed by addr. Moreover we want to exercise DWORD size
+ * invalidations. To fulfill all these requirements below values + * has been chosen.s/has/have/
Quoted 66 lines
+ */
+ *cs++ =MI_CONDITIONAL_BATCH_BUFFER_END|MI_DO_COMPARE| 2; + *cs++ = 0; /* break if *addr == 0 */
+ *cs++ =lower_32_bits(addr);
+ *cs++ =upper_32_bits(addr);
+vma_set_qw(va, addr, -1);
+vma_set_qw(vb, addr, 0);drivers/gpu/drm/i915/gt/selftest_tlb.c new file +24
-0+ + /* Keep sampling until we get bored */ + *cs++ = MI_BATCH_BUFFER_START | BIT(8) | 1; + *cs++ = lower_32_bits(i915_vma_offset(vma)); + *cs++ = upper_32_bits(i915_vma_offset(vma)); + + i915_gem_object_flush_map(batch); + + rq = i915_request_create(ce); + if (IS_ERR(rq)) { + err = PTR_ERR(rq); + goto out_va; + } + + err = rq->engine->emit_bb_start(rq, i915_vma_offset(vma), 0, 0); + if (err) { + i915_request_add(rq); + goto out_va; + } + + i915_request_get(rq); + i915_request_add(rq); + + /* Short sleep to sanitycheck the batch is spinning before webegin */
+ msleep(10);
+ if (va == vb) {
+ if (!i915_request_completed(rq)) {
+pr_err("Semaphore sanitycheck failed\n"); + err =-EIO;
+ }
+ } else if (!i915_request_completed(rq)) { + structi915_vma_resourcevb_res= { + .bi.pages =vb->obj->mm.pages,
+ .bi.page_sizes =vb->obj->mm.page_sizes, + .start =i915_vma_offset(vb),
+ .vma_size =i915_vma_size(vb)
+ };
+ unsigned intpte_flags= 0;drivers/gpu/drm/i915/gt/selftest_tlb.c new file +11
-0+ + /* 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, 0, pte_flags); + + /* Flush the PTE update to concurrent HW */ + tlbinv(ce->vm, addr & -length, length); + + if (wait_for(i915_request_completed(rq), HZ / 2)) { + pr_err("%s: Request did not complete; the COND_BBE didnot read the updated PTE\n",
+ce->engine->name);
+ err =-EINVAL;
+ }
+ } else {
+pr_err("Spinner ended unexpectedly\n");
+ err =-EIO;
+ }
+i915_request_put(rq);drivers/gpu/drm/i915/gt/selftest_tlb.c line 171
Quoted 8 lines
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +8
-0+ + cs = page_mask_bits(batch->mm.mapping); + *cs = MI_BATCH_BUFFER_END; + wmb(); + +out_va: + if (vb != va) + memset(&vb->node, 0, sizeof(vb->node));This can maybe be a bit fragile. Store a local copy of
vb->nodeand restore from that?Quoted 220 lines
+
i915_vma_unpin(va);
+ if (i915_vma_unbind_unlocked(va))
+ err =-EIO;drivers/gpu/drm/i915/gt/selftest_tlb.c new file +12
-0+out: + i915_gem_object_put(batch); + return err; +} + +static struct drm_i915_gem_object *create_lmem (struct intel_gt *gt) +{ + /* + * Allocation of largest possible page size allows to test all types + * of pages. + */ + return i915_gem_object_create_lmem(gt->i915, SZ_1G,
I915_BO_ALLOC_CONTIGUOUS);drivers/gpu/drm/i915/gt/selftest_tlb.c new file +9
-0+} + +static struct drm_i915_gem_object *create_smem (struct intel_gt *gt) +{ + /* +* SZ_64K pages require covering the whole 2M PT (gen8 to tgl/dg1). +* While that does not require the whole 2M block to be contiguous +* it is easier to make it so, since we need that for SZ_2M pagees. +* Since we randomly offset the start of the vma, we need a 4M object
+ * so that there is a 2M range within it is suitable forSZ_64KPTE. + */
+ returni915_gem_object_create_internal(gt->i915, SZ_4M);drivers/gpu/drm/i915/gt/selftest_tlb.c new file +6
-0+} + +static int +mem_tlbinv(struct intel_gt *gt, + struct drm_i915_gem_object *(*create_fn)(struct intel_gt *), + void (*tlbinv)(struct i915_address_space *vm, u64 addr, u64length))
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +43
-0+{ + unsigned int ppgtt_size = RUNTIME_INFO(gt->i915)->ppgtt_size; + struct intel_engine_cs *engine; + struct drm_i915_gem_object *A, *B; + struct i915_ppgtt *ppgtt; + struct i915_vma *va, *vb; + enum intel_engine_id id; + I915_RND_STATE(prng); + void *vaddr; + int err; + + /* + * Check that the TLB invalidate is able to revoke an active + * page. We load a page into a spinning COND_BBE loop and then + * remap that page to a new physical address. The old address, and + * so the loop keeps spinning, is retained in the TLB cache until + * we issue an invalidate. + */ + + A = create_fn(gt); + if (IS_ERR(A)) + return PTR_ERR(A); + + vaddr = i915_gem_object_pin_map_unlocked(A, I915_MAP_WC); + if (IS_ERR(vaddr)) { + err = PTR_ERR(vaddr); + goto out_a; + } + + B = create_fn(gt); + if (IS_ERR(B)) { + err = PTR_ERR(B); + goto out_a; + } + + vaddr = i915_gem_object_pin_map_unlocked(B, I915_MAP_WC); + if (IS_ERR(vaddr)) { + err = PTR_ERR(vaddr); + goto out_b; + } + + GEM_BUG_ON(A->base.size != B->base.size); + if ((A->mm.page_sizes.phys | B->mm.page_sizes.phys) &(
A->base.size- 1))
+pr_warn("Failed to allocate contiguous pages for size %zx\n", + A->base.size);drivers/gpu/drm/i915/gt/selftest_tlb.c new file +45
-0+ + ppgtt = i915_ppgtt_create(gt, 0); + if (IS_ERR(ppgtt)) { + err = PTR_ERR(ppgtt); + goto out_b; + } + + va = i915_vma_instance(A, &ppgtt->vm, NULL); + if (IS_ERR(va)) { + err = PTR_ERR(va); + goto out_vm; + } + + vb = i915_vma_instance(B, &ppgtt->vm, NULL); + if (IS_ERR(vb)) { + err = PTR_ERR(vb); + goto out_vm; + } + + err = 0; + for_each_engine(engine, gt, id) { + struct i915_gem_ww_ctx ww; + struct intel_context *ce; + int bit; + + ce = intel_context_create(engine); + if (IS_ERR(ce)) { + err = PTR_ERR(ce); + break; + } + + i915_vm_put(ce->vm); + ce->vm = i915_vm_get(&ppgtt->vm); + + for_i915_gem_ww(&ww, err, true) + err = intel_context_pin_ww(ce, &ww); + if (err) + goto err_put; + + for_each_set_bit(bit, + (unsigned long *)&RUNTIME_INFO(gt->i915)->page_sizes, + BITS_PER_TYPE(RUNTIME_INFO(gt->i915)->page_sizes)) { + unsigned int len; + + if (BIT_ULL(bit) < i915_vm_obj_min_alignment(va->vm,
va->obj))
+ continue;
+
+ /* sanitycheck the semaphore wake up */
+ err = pte_tlbinv(ce, va, va,
+BIT_ULL(bit),
+ NULL,SZ_4K,
+ &prng);
+ if (err)
+ gotoerr_unpin;
+ + for (len = 2; len <=ppgtt_size; len =min(2 * len, ppgtt_size)) {
+ err = pte_tlbinv(ce, va, vb,
+BIT_ULL(bit),
+ tlbinv,
+BIT_ULL(len),
+ &prng);
+ if (err)
+ gotoerr_unpin;
+ if (len ==ppgtt_size)
+ break;
+ }
+ }drivers/gpu/drm/i915/gt/selftest_tlb.c new file +21
-0+err_unpin: + intel_context_unpin(ce); +err_put: + intel_context_put(ce); + if (err) + break; + } + + if (igt_flush_test(gt->i915)) + err = -EIO; + +out_vm: + i915_vm_put(&ppgtt->vm); +out_b: + i915_gem_object_put(B); +out_a: + i915_gem_object_put(A); + return err; +} + +static void tlbinv_full(struct i915_address_space *vm, u64 addr, u64length)
drivers/gpu/drm/i915/gt/selftest_tlb.c new file +42
-0+{ + intel_gt_invalidate_tlb(vm->gt, intel_gt_tlb_seqno(vm->gt) | 1); +} + +static int invalidate_full (void *arg) +{ + struct intel_gt *gt = arg; + int err; + + if (GRAPHICS_VER(gt->i915) < 8) + return 0; /* TLB invalidate not implemented */ + + err = mem_tlbinv(gt, create_smem, tlbinv_full); + if (err == 0) + err = mem_tlbinv(gt, create_lmem, tlbinv_full); + if (err == -ENODEV || err == -ENXIO) + err = 0; + + return err; +} + +int intel_tlb_live_selftests (struct drm_i915_private *i915) +{ + static const struct i915_subtest tests[] = { + SUBTEST(invalidate_full), + }; + struct intel_gt *gt; + unsigned int i; + + for_each_gt(gt, i915, i) { + int err; + + if (intel_gt_is_wedged(gt)) + continue; + + err = intel_gt_live_subtests(tests, gt); + if (err) + return err; + } + + return 0; +}drivers/gpu/drm/i915/selftests/i915_live_selftests.h +0
-0@@ -25,6 +25,7 @@ selftest(gt_lrc, intel_lrc_live_selftests) selftest(gt_mocs, intel_mocs_live_selftests)
Quoted 8 lines
drivers/gpu/drm/i915/selftests/i915_live_selftests.h selftest(gt_lrc, intel_lrc_live_selftests) · line 31
Quoted 6 lines
drivers/gpu/drm/i915/selftests/i915_live_selftests.h +1
-0selftest(gt_pm, intel_gt_pm_live_selftests) selftest(gt_heartbeat, intel_heartbeat_live_selftests) +selftest(gt_tlb, intel_tlb_live_selftests) selftest(requests, i915_request_live_selftests) selftest(migrate, intel_migrate_live_selftests) selftest(active, i915_active_live_selftests)Okay I can follow it and it looks plausible to me. No obvious errors stick out and if CI says it's solid I'm happy.
v6 sent with comments addresssed.
Quoted 2 lines
Have you tried to do a run or wo with TLB invalidation nerfed to see how the detection rate is looking?
Yes, nerfing TLB_INV addresses works for every engine.
Regards
Andrzej
Quoted 4 lines
Regards,
Tvrtko
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/gt: Add selftests for TLB invalidation (rev6)
In reply to Andrzej Hajda== Series Details ==
== Series Details ==
Series: drm/i915/gt: Add selftests for TLB invalidation (rev6)
URL : https://patchwork.freedesktop.org/series/112894/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12663_full -> Patchwork_112894v6_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/index.html
Participating hosts (10 -> 11)
------------------------------
Additional (1): shard-rkl0
New tests
---------
New tests have been introduced between CI_DRM_12663_full and Patchwork_112894v6_full:
### New IGT tests (1) ###
* igt@i915_selftest@live@gt_tlb:
- Statuses : 4 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in Patchwork_112894v6_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [PASS][1] -> [FAIL][2] ([i915#2846])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-glk9/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-glk5/igt@[email protected]
* igt@gem_lmem_swapping@parallel-multi:
- shard-glk: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#4613])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-glk2/igt@[email protected]
* igt@gem_render_copy@y-tiled-mc-ccs-to-vebox-y-tiled:
- shard-glk: NOTRUN -> [SKIP][4] ([fdo#109271]) +7 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-glk2/igt@[email protected]
* igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#3886])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-glk2/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_flip@2x-flip-vs-expired-vblank@bc-hdmi-a1-hdmi-a2:
- shard-glk: [PASS][6] -> [FAIL][7] ([i915#79])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-glk8/igt@kms_flip@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-glk2/igt@kms_flip@[email protected]
* igt@kms_psr2_sf@overlay-plane-move-continuous-exceed-sf:
- shard-glk: NOTRUN -> [SKIP][8] ([fdo#109271] / [i915#658])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-glk2/igt@[email protected]
#### Possible fixes ####
* igt@api_intel_bb@object-reloc-keep-cache:
- {shard-rkl}: [SKIP][9] ([i915#3281]) -> [PASS][10] +8 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-rkl-4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-rkl-5/igt@[email protected]
* igt@drm_fdinfo@most-busy-idle-check-all@rcs0:
- {shard-rkl}: [FAIL][11] ([i915#7742]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-rkl-1/igt@drm_fdinfo@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-rkl-4/igt@drm_fdinfo@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- {shard-rkl}: [FAIL][13] ([i915#2842]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-rkl-1/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-rkl-5/igt@gem_exec_fair@[email protected]
* igt@gem_pwrite@basic-self:
- {shard-rkl}: [SKIP][15] ([i915#3282]) -> [PASS][16] +5 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-rkl-6/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-rkl-5/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-glk: [ABORT][17] ([i915#5566]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-glk8/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-glk2/igt@[email protected]
* igt@gen9_exec_parse@bb-start-out:
- {shard-rkl}: [SKIP][19] ([i915#2527]) -> [PASS][20] +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-rkl-6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-rkl-5/igt@[email protected]
* igt@i915_hangman@gt-engine-error@bcs0:
- {shard-rkl}: [SKIP][21] ([i915#6258]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-rkl-5/igt@i915_hangman@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-rkl-1/igt@i915_hangman@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a:
- {shard-tglu}: [FAIL][23] ([i915#3825]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-tglu-4/igt@i915_pm_lpsp@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-tglu-1/igt@i915_pm_lpsp@[email protected]
* igt@kms_big_fb@linear-8bpp-rotate-180:
- {shard-tglu}: [SKIP][25] ([i915#7651]) -> [PASS][26] +7 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-tglu-6/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-tglu-2/igt@[email protected]
* igt@kms_draw_crc@draw-method@xrgb2101010-blt-ytiled:
- shard-glk: [DMESG-WARN][27] -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-glk5/igt@kms_draw_crc@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-glk6/igt@kms_draw_crc@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-onoff:
- shard-glk: [DMESG-FAIL][29] ([i915#118]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-glk9/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-glk5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-rgb101010-draw-render:
- {shard-tglu}: [SKIP][31] ([i915#1849]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-tglu-6/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-tglu-2/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes:
- {shard-tglu}: [SKIP][33] ([i915#1849] / [i915#3558]) -> [PASS][34] +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-tglu-6/igt@kms_plane@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-tglu-2/igt@kms_plane@[email protected]
* igt@kms_universal_plane@universal-plane-pipe-d-sanity:
- {shard-tglu}: [SKIP][35] ([fdo#109274]) -> [PASS][36] +1 similar issue
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-tglu-6/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-tglu-2/igt@[email protected]
* igt@kms_vblank@pipe-d-wait-forked-busy:
- {shard-tglu}: [SKIP][37] ([i915#1845] / [i915#7651]) -> [PASS][38] +3 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-tglu-6/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-tglu-2/igt@[email protected]
* igt@prime_vgem@basic-write:
- {shard-rkl}: [SKIP][39] ([fdo#109295] / [i915#3291] / [i915#3708]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12663/shard-rkl-6/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/shard-rkl-5/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109303]: https://bugs.freedesktop.org/show_bug.cgi?id=109303
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1850]: https://gitlab.freedesktop.org/drm/intel/issues/1850
[i915#1902]: https://gitlab.freedesktop.org/drm/intel/issues/1902
[i915#2434]: https://gitlab.freedesktop.org/drm/intel/issues/2434
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#284]: https://gitlab.freedesktop.org/drm/intel/issues/284
[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#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3361]: https://gitlab.freedesktop.org/drm/intel/issues/3361
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3528]: https://gitlab.freedesktop.org/drm/intel/issues/3528
[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#3558]: https://gitlab.freedesktop.org/drm/intel/issues/3558
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3825]: https://gitlab.freedesktop.org/drm/intel/issues/3825
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3938]: https://gitlab.freedesktop.org/drm/intel/issues/3938
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#426]: https://gitlab.freedesktop.org/drm/intel/issues/426
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4877]: https://gitlab.freedesktop.org/drm/intel/issues/4877
[i915#4881]: https://gitlab.freedesktop.org/drm/intel/issues/4881
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6245]: https://gitlab.freedesktop.org/drm/intel/issues/6245
[i915#6247]: https://gitlab.freedesktop.org/drm/intel/issues/6247
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6258]: https://gitlab.freedesktop.org/drm/intel/issues/6258
[i915#6259]: https://gitlab.freedesktop.org/drm/intel/issues/6259
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6334]: https://gitlab.freedesktop.org/drm/intel/issues/6334
[i915#6493]: https://gitlab.freedesktop.org/drm/intel/issues/6493
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7037]: https://gitlab.freedesktop.org/drm/intel/issues/7037
[i915#7443]: https://gitlab.freedesktop.org/drm/intel/issues/7443
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7582]: https://gitlab.freedesktop.org/drm/intel/issues/7582
[i915#7651]: https://gitlab.freedesktop.org/drm/intel/issues/7651
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7707]: https://gitlab.freedesktop.org/drm/intel/issues/7707
[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#7957]: https://gitlab.freedesktop.org/drm/intel/issues/7957
Build changes
-------------
* Linux: CI_DRM_12663 -> Patchwork_112894v6
CI-20190529: 20190529
CI_DRM_12663: 515fcd5308bda45b7832e0ce12bec6830f64aa08 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7141: a978df7912acda18eada1b1d2ae4b438ed3e940b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_112894v6: 515fcd5308bda45b7832e0ce12bec6830f64aa08 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112894v6/index.html