KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
Subsystems (4)
Hi,
I'm facing a couple of issues when testing KUnit with the i915 driver.
The DRM subsystem and the i915 driver has, for a long time, his own way to do unit tests, which seems to be added before KUnit.
I'm now checking if it is worth start using KUnit at i915. So, I wrote a RFC with some patches adding support for the tests we have to be reported using Kernel TAP and KUnit.
There are basically 3 groups of tests there:
- mock tests - check i915 hardware-independent logic;
- live tests - run some hardware-specific tests;
- perf tests - check perf support - also hardware-dependent.
As they depend on i915 driver, they run only on x86, with PCI stack enabled, but the mock tests run nicely via qemu.
The live and perf tests require a real hardware. As we run them together with our CI, which, among other things, test module unload/reload and test loading i915 driver with different modprobe parameters, the KUnit tests should be able to run as a module.
While testing KUnit, I noticed a couple of issues:
1. kunit.py parser is currently broken when used with modules
the parser expects "TAP version xx" output, but this won't happen when loading the kunit test driver.
Are there any plans or patches fixing this issue?
2. current->mm is not initialized
Some tests do mmap(). They need the mm user context to be initialized, but this is not happening right now.
Are there a way to properly initialize it for KUnit?
3. there's no test filters for modules
In order to be able to do proper CI automation, it is needed to be able to control what tests will run or not. That's specially interesting at development time where some tests may not apply or not run properly on new hardware.
Are there any plans to add support for it at kunit_test_suites() when the driver is built as module? Ideally, the best would be to export a per-module filter_glob parameter on such cases.
4. there are actually 3 levels of tests on i915:
- Level 1: mock, live, perf
- Level 2: test group (mmap, fences, ...)
- Level 3: unit tests
Currently, KUnit seems to have just two levels (test suite and tests). Are there a way to add test groups there?
Regards,
Mauro
Forwarded message:
Date: Thu, 3 Nov 2022 14:51:38 +0000
From: Mauro Carvalho Chehab <[email protected]>
To:
Cc: Thomas Hellström <[email protected]>, [email protected], Michał Winiarski <[email protected]>, [email protected], [email protected], Daniel Latypov <[email protected]>, [email protected], [email protected], Matthew Auld <[email protected]>, Daniel Vetter <[email protected]>, Rodrigo Vivi <[email protected]>, [email protected], Isabella Basso <[email protected]>, David Airlie <[email protected]>, Christian König <[email protected]>
Subject: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
The mmap tests require mm in order to work. Failing to do that will cause a crash:
[ 316.820722] BUG: kernel NULL pointer dereference, address: 00000000000000e8 [ 316.822517] #PF: supervisor write access in kernel mode [ 316.823430] #PF: error_code(0x0002) - not-present page [ 316.824390] PGD 0 P4D 0 [ 316.825357] Oops: 0002 [#1] PREEMPT SMP NOPTI [ 316.826350] CPU: 0 PID: 1517 Comm: kunit_try_catch Tainted: G U N 6.1.0-rc2-drm-266703e6f163+ #14 [ 316.827503] Hardware name: Intel Corporation Tiger Lake Client Platform/TigerLake Y LPDDR4x T4 Crb, BIOS TGLSFWI1.R00.3243.A01.2006102133 06/10/2020 [ 316.828633] RIP: 0010:down_write_killable+0x50/0x110 [ 316.829756] Code: 24 10 45 31 c9 31 c9 41 b8 01 00 00 00 31 d2 31 f6 48 89 ef e8 e1 74 4a ff bf 01 00 00 00 e8 87 d6 46 ff 31 c0 ba 01 00 00 00 <f0> 48 0f b1 13 0f 94 c0 5a 84 c0 74 62 8b 05 49 12 e4 00 85 c0 74 [ 316.830896] RSP: 0018:ffffc90001eabc58 EFLAGS: 00010246 [ 316.832008] RAX: 0000000000000000 RBX: 00000000000000e8 RCX: 0000000000000000 [ 316.833141] RDX: 0000000000000001 RSI: ffffffff81c94fc9 RDI: ffffffff81c94fc9 [ 316.834195] RBP: 0000000000000158 R08: 0000000000000001 R09: 0000000000000000 [ 316.835231] R10: 0000000000000000 R11: ffff8883a13350b8 R12: 0000000000000002 [ 316.836259] R13: 0000000000000001 R14: 0000000000100000 R15: 00000000000000e8 [ 316.837237] FS: 0000000000000000(0000) GS:ffff8883a3800000(0000) knlGS:0000000000000000 [ 316.838214] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 316.839190] CR2: 00000000000000e8 CR3: 0000000002812003 CR4: 0000000000770ef0 [ 316.840147] PKRU: 55555554 [ 316.841099] Call Trace: [ 316.842047] <TASK> [ 316.842990] ? vm_mmap_pgoff+0x78/0x150 [ 316.843936] vm_mmap_pgoff+0x78/0x150 [ 316.844884] igt_mmap_offset+0x178/0x1b9 [i915] [ 316.846119] __igt_mmap+0xfe/0x680 [i915]
Unfortunately, when KUnit module runs, it doesn't create an user context, causing mmap tests to fail.
---
To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH RFC v2 0/8] at: https://lore.kernel.org/all/[email protected]/
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c +5 -0
@@ -1845,6 +1845,11 @@ int i915_gem_mman_live_selftests(struct drm_i915_private *i915) SUBTEST(igt_mmap_gpu), }; +if (!current->mm) { +pr_err ("Test called without an user context!\n" ); +return -EINVAL ; + } +return i915_live_subtests (tests, i915); }EXPORT_SYMBOL_NS_GPL (i915_gem_mman_live_selftests,I915_SELFTEST );
Signature · 1 line
2.38.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
== Series Details ==
== Series Details ==
Series: KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
URL : https://patchwork.freedesktop.org/series/110492/
State : warning
== Summary ==
Error: dim checkpatch failed68f3d9527a29 KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL -:78: WARNING:BAD_SIGN_OFF: Use a single space after To:
#78:
To:
-:78: ERROR:BAD_SIGN_OFF: Unrecognized email address: '' #78:
To:
-:80: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #80:
Subject: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
-:125: WARNING:TYPO_SPELLING: 'an user' may be misspelled - perhaps 'a user'? #125: FILE: drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c:1849:
+ pr_err("Test called without an user context!\n");
^^^^^^^
total: 1 errors, 3 warnings, 0 checks, 10 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
In reply to Mauro Carvalho Chehab== Series Details ==
== Series Details ==
Series: KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
URL : https://patchwork.freedesktop.org/series/110492/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12339 -> Patchwork_110492v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_110492v1 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_110492v1, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/index.html
Participating hosts (40 -> 29)
------------------------------
Additional (1): fi-kbl-soraka
Missing (12): fi-hsw-4200u bat-dg2-8 bat-dg2-9 bat-adlp-6 bat-adlp-4 fi-ctg-p8600 bat-adln-1 bat-rplp-1 bat-rpls-1 bat-rpls-2 bat-dg2-11 fi-bdw-samus
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_110492v1:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@guc:
- fi-kbl-soraka: NOTRUN -> [INCOMPLETE][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/fi-kbl-soraka/igt@i915_selftest@[email protected]
Known issues
------------
Here are the changes found in Patchwork_110492v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_gttfill@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][2] ([fdo#109271]) +8 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/fi-kbl-soraka/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#2190])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/fi-kbl-soraka/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#4613]) +3 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/fi-kbl-soraka/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-kbl-soraka: NOTRUN -> [DMESG-WARN][5] ([i915#1982])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/fi-kbl-soraka/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][6] ([i915#1886])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@i915_suspend@basic-s3-without-i915:
- fi-bdw-5557u: [PASS][7] -> [INCOMPLETE][8] ([i915#146])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12339/fi-bdw-5557u/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/fi-bdw-5557u/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-soraka: NOTRUN -> [SKIP][9] ([fdo#109271] / [fdo#111827]) +7 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/fi-kbl-soraka/igt@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
Build changes
-------------
* Linux: CI_DRM_12339 -> Patchwork_110492v1
CI-20190529: 20190529
CI_DRM_12339: fafe2d945b3d76b8a7e32102311d8d0495724a3e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7041: 40ea6325f69eb56653171c21b5d4977982a92d0a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_110492v1: fafe2d945b3d76b8a7e32102311d8d0495724a3e @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
4c114bdbebb1 KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v1/index.html
Quoted 27 lines · Mauro Carvalho Chehab
Hi,
I'm facing a couple of issues when testing KUnit with the i915 driver.
The DRM subsystem and the i915 driver has, for a long time, his own way to do unit tests, which seems to be added before KUnit.
I'm now checking if it is worth start using KUnit at i915. So, I wrote a RFC with some patches adding support for the tests we have to be reported using Kernel TAP and KUnit.
There are basically 3 groups of tests there:
- mock tests - check i915 hardware-independent logic;
- live tests - run some hardware-specific tests;
- perf tests - check perf support - also hardware-dependent.As they depend on i915 driver, they run only on x86, with PCI stack enabled, but the mock tests run nicely via qemu.
The live and perf tests require a real hardware. As we run them together with our CI, which, among other things, test module unload/reload and test loading i915 driver with different modprobe parameters, the KUnit tests should be able to run as a module.
Quoted 8 lines
While testing KUnit, I noticed a couple of issues:
1.
kunit.pyparser is currently broken when used with modulesthe parser expects "TAP version xx" output, but this won't happen when loading the kunit test driver.
Are there any plans or patches fixing this issue?
Partially.
Note: we need a header to look for so we can strip prefixes (like timestamps).
But there is a patch in the works to add a TAP header for each subtest, hopefully in time for 6.2.
This is to match the KTAP spec:
https://kernel.org/doc/html/latest/dev-tools/ktap.html
That should fix it so you can parse one suite's results at a time. I'm pretty sure it won't fix the case where there's multiple suites and/or you're trying to parse all test results at once via
$ find /sys/kernel/debug/kunit/ -type f | xargs cat | ./tools/testing/kunit/kunit.py parse
I think that in-kernel code change + some more python changes could make the above command work, but no one has actively started looking at that just yet.
Hopefully we can pick this up and also get it done for 6.2 (unless I'm underestimating how complicated this is).
Quoted 7 lines
2.
current->mmis not initializedSome tests do
mmap(). They need the mm user context to be initialized, but this is not happening right now.Are there a way to properly initialize it for KUnit?
Right, this is a consequence of how early built-in KUnit tests are run after boot.
I think for now, the answer is to make the test module-only.
I know David had some ideas here, but I can't speak to them.
Quoted 11 lines
3. there's no test filters for modules
In order to be able to do proper CI automation, it is needed to be able to control what tests will run or not. That's specially interesting at development time where some tests may not apply or not run properly on new hardware.
Are there any plans to add support for it at
kunit_test_suites()when the driver is built as module? Ideally, the best would be to export a per-modulefilter_globparameter on such cases.
I think this is a good idea and is doable. (I think I said as much on the other thread).
The thinking before was that people would make group tests together in modules. But if you want to share a single module for many tests, this becomes more useful.
This has some potential merge conflicts w/ other pending work. I was also prototyping the ability to tell KUnit "run tests #2 - #5", so that also touches the filtering code very heavily.
(The goal there is to have kunit.py able to shard up tests and boot multiple kernels concurrently.)
Quoted 8 lines
4. there are actually 3 levels of tests on i915:
- Level 1: mock, live, perf
- Level 2: test group (mmap, fences, ...)
- Level 3: unit testsCurrently, KUnit seems to have just two levels (test suite and tests). Are there a way to add test groups there?
Parameterized tests are the closest we have to a third-level of tests. But other than that, the answer is no.
I'd need to get more familiar with the existing tests, but I'm pretty sure parameters won't work for you.
And I don't know if this will get done.
Note: the kunit_parser.py code should be able to handle arbitrary levels of tests in the output.
This restriction is purely in the in-kernel code.
I had brought up the idea of more layers of tests before.
It would also be useful for
a) sharing expensive setup between multiple tests
b) allowing more granular scope for cleanups (kunit_kmalloc and others)
c) more flexibility in dynamically generating subtests than parameterized testing
There's some precedent in other unit testing frameworks, for example:
https://pkg.go.dev/testing#T.Run
Daniel
Quoted 36 lines · On Thu, 3 Nov 2022 15:43:26 -0700 Daniel Latypov <[email protected]> wrote:
Quoted 34 lines · Mauro Carvalho Chehab
Hi,
I'm facing a couple of issues when testing KUnit with the i915 driver.
The DRM subsystem and the i915 driver has, for a long time, his own way to do unit tests, which seems to be added before KUnit.
I'm now checking if it is worth start using KUnit at i915. So, I wrote a RFC with some patches adding support for the tests we have to be reported using Kernel TAP and KUnit.
There are basically 3 groups of tests there:
- mock tests - check i915 hardware-independent logic;
- live tests - run some hardware-specific tests;
- perf tests - check perf support - also hardware-dependent.As they depend on i915 driver, they run only on x86, with PCI stack enabled, but the mock tests run nicely via qemu.
The live and perf tests require a real hardware. As we run them together with our CI, which, among other things, test module unload/reload and test loading i915 driver with different modprobe parameters, the KUnit tests should be able to run as a module.
While testing KUnit, I noticed a couple of issues:
1.
kunit.pyparser is currently broken when used with modulesthe parser expects "TAP version xx" output, but this won't happen when loading the kunit test driver.
Quoted 7 lines
Quoted 1 line
Are there any plans or patches fixing this issue?
Partially.
Note: we need a header to look for so we can strip prefixes (like timestamps).But there is a patch in the works to add a TAP header for each subtest, hopefully in time for 6.2.
Good to know.
Quoted 2 lines
This is to match the KTAP spec:
https://kernel.org/doc/html/latest/dev-tools/ktap.html
I see.
Quoted 6 lines
That should fix it so you can parse one suite's results at a time. I'm pretty sure it won't fix the case where there's multiple suites and/or you're trying to parse all test results at once via
$ find /sys/kernel/debug/kunit/ -type f | xargs cat | ./tools/testing/kunit/kunit.py parse
Could you point me to the changeset? perhaps I can write a followup patch addressing this case.
Quoted 12 lines
I think that in-kernel code change + some more python changes could make the above command work, but no one has actively started looking at that just yet.
Hopefully we can pick this up and also get it done for 6.2 (unless I'm underestimating how complicated this is).Quoted 6 lines
2.
current->mmis not initializedSome tests do
mmap(). They need the mm user context to be initialized, but this is not happening right now.
Quoted 7 lines
Quoted 1 line
Are there a way to properly initialize it for KUnit?
Right, this is a consequence of how early built-in KUnit tests are run after boot.
I think for now, the answer is to make the test module-only.I know David had some ideas here, but I can't speak to them.
This is happening when test-i915 is built as module as well.
I suspect that the function which initializes it is mm_alloc() inside kernel/fork.c:
struct mm_struct *mm_alloc(void)
{
struct mm_struct *mm;
mm = allocate_mm();
if (!mm)
return NULL;
memset(mm, 0, sizeof(*mm));
return mm_init(mm, current, current_user_ns());
}As modprobing a test won't fork until all tests run, this never runs.
It seems that the normal usage is at fs/exec.c:
fs/exec.c: bprm->mm = mm = mm_alloc();
but other places also call it:
arch/arm/mach-rpc/ecard.c: struct mm_struct * mm = mm_alloc(); drivers/dma-buf/dma-resv.c: struct mm_struct *mm = mm_alloc(); include/linux/sched/mm.h:extern struct mm_struct *mm_alloc(void); mm/debug_vm_pgtable.c: args->mm = mm_alloc();
Probably the solution would be to call it inside kunit executor code, adding support for modules to use it.
Quoted 11 lines
Quoted 10 lines
3. there's no test filters for modules
In order to be able to do proper CI automation, it is needed to be able to control what tests will run or not. That's specially interesting at development time where some tests may not apply or not run properly on new hardware.
Are there any plans to add support for it at
kunit_test_suites()when the driver is built as module? Ideally, the best would be to export a per-modulefilter_globparameter on such cases.
Quoted 6 lines
I think this is a good idea and is doable. (I think I said as much on the other thread).
The thinking before was that people would make group tests together in modules. But if you want to share a single module for many tests, this becomes more useful.
At least for this RFC, I opted to place everything we have already on a single module.
Perhaps I could create, instead, 3 separate modules. This way, I would gain a "third level" and a poor man's way of filtering what test type will run (mock, live or perf).
Yet, we will still need to be able to filter the unit tests, as this is where all the fun happens.
Quoted 3 lines
This has some potential merge conflicts w/ other pending work. I was also prototyping the ability to tell KUnit "run tests #2 - #5", so that also touches the filtering code very heavily.
Are you planning to allow this to support such feature also on modules?
Quoted 9 lines
(The goal there is to have
kunit.pyable to shard up tests and boot multiple kernels concurrently.)Quoted 6 lines
4. there are actually 3 levels of tests on i915:
- Level 1: mock, live, perf
- Level 2: test group (mmap, fences, ...)
- Level 3: unit tests
Quoted 8 lines
Quoted 2 lines
Currently, KUnit seems to have just two levels (test suite and tests). Are there a way to add test groups there?
Parameterized tests are the closest we have to a third-level of tests. But other than that, the answer is no.
I'd need to get more familiar with the existing tests, but I'm pretty sure parameters won't work for you.
Our current approach with selftests is that each test can be disabled. You can see how it currently works by taking a look at the __run_selftests logic (level 2 on the above hierarchy) inside drivers/gpu/drm/i915/selftests/i915_selftest.c:
static int __run_selftests(const char *name,
struct selftest *st, unsigned int count, void *data)
{
...
/* Tests are listed in order in i915_*_selftests.h */
for (; count--; st++) {
if (!st->enabled)
continue;
...
pr_info(DRIVER_NAME ": Running %s\n", st->name);
if (data)
err = st->live(data);
else
err = st->mock();The same also happens at subtests (level 3):
int __i915_subtests(const char *caller,
int (*setup)(void *data), int (*teardown)(int err, void *data), const struct i915_subtest *st, unsigned int count,
void *data)
{
...
if (!apply_subtest_filter(caller, st->name))
continue;
...
pr_info(DRIVER_NAME ": Running %s/%s\n", caller, st->name);
GEM_TRACE("Running %s/%s\n", caller, st->name);
err = teardown(st->func(data), data);Quoted 6 lines
And I don't know if this will get done.
Note: the
kunit_parser.pycode should be able to handle arbitrary levels of tests in the output.
This restriction is purely in the in-kernel code.
Quoted 6 lines
I had brought up the idea of more layers of tests before.
It would also be useful for
a) sharing expensive setup between multiple tests
b) allowing more granular scope for cleanups (kunit_kmallocand others)
c) more flexibility in dynamically generating subtests than parameterized testing
Yes, it makes sense to me.
Quoted 2 lines
There's some precedent in other unit testing frameworks, for example:
https://pkg.go.dev/testing#T.Run
Regards,
Mauro
Quoted 109 lines · On Fri, 4 Nov 2022 08:49:55 +0100 Mauro Carvalho Chehab…
Quoted 36 lines · On Thu, 3 Nov 2022 15:43:26 -0700 Daniel Latypov <[email protected]> wrote:
Quoted 34 lines · Mauro Carvalho Chehab
Hi,
I'm facing a couple of issues when testing KUnit with the i915 driver.
The DRM subsystem and the i915 driver has, for a long time, his own way to do unit tests, which seems to be added before KUnit.
I'm now checking if it is worth start using KUnit at i915. So, I wrote a RFC with some patches adding support for the tests we have to be reported using Kernel TAP and KUnit.
There are basically 3 groups of tests there:
- mock tests - check i915 hardware-independent logic;
- live tests - run some hardware-specific tests;
- perf tests - check perf support - also hardware-dependent.As they depend on i915 driver, they run only on x86, with PCI stack enabled, but the mock tests run nicely via qemu.
The live and perf tests require a real hardware. As we run them together with our CI, which, among other things, test module unload/reload and test loading i915 driver with different modprobe parameters, the KUnit tests should be able to run as a module.
While testing KUnit, I noticed a couple of issues:
1.
kunit.pyparser is currently broken when used with modulesthe parser expects "TAP version xx" output, but this won't happen when loading the kunit test driver.
Quoted 7 lines
Quoted 1 line
Are there any plans or patches fixing this issue?
Partially.
Note: we need a header to look for so we can strip prefixes (like timestamps).But there is a patch in the works to add a TAP header for each subtest, hopefully in time for 6.2.
Good to know.
Quoted 2 lines
This is to match the KTAP spec:
https://kernel.org/doc/html/latest/dev-tools/ktap.htmlI see.
Quoted 6 lines
That should fix it so you can parse one suite's results at a time. I'm pretty sure it won't fix the case where there's multiple suites and/or you're trying to parse all test results at once via
$ find /sys/kernel/debug/kunit/ -type f | xargs cat | ./tools/testing/kunit/kunit.py parseCould you point me to the changeset? perhaps I can write a followup patch addressing this case.
Quoted 12 lines
I think that in-kernel code change + some more python changes could make the above command work, but no one has actively started looking at that just yet.
Hopefully we can pick this up and also get it done for 6.2 (unless I'm underestimating how complicated this is).Quoted 6 lines
2.
current->mmis not initializedSome tests do
mmap(). They need the mm user context to be initialized, but this is not happening right now.Quoted 7 lines
Quoted 1 line
Are there a way to properly initialize it for KUnit?
Right, this is a consequence of how early built-in KUnit tests are run after boot.
I think for now, the answer is to make the test module-only.I know David had some ideas here, but I can't speak to them.
This is happening when test-i915 is built as module as well.
I suspect that the function which initializes it is
mm_alloc()insidekernel/fork.c:struct mm_struct *mm_alloc(void) { struct mm_struct *mm; mm = allocate_mm(); if (!mm) return NULL; memset(mm, 0, sizeof(*mm)); return mm_init(mm, current, current_user_ns()); }As modprobing a test won't fork until all tests run, this never runs.
It seems that the normal usage is at
fs/exec.c:fs/exec.c: bprm->mm = mm = mm_alloc();but other places also call it:
Quoted 7 lines
arch/arm/mach-rpc/ecard.c: struct mm_struct * mm = mm_alloc(); drivers/dma-buf/dma-resv.c: struct mm_struct *mm = mm_alloc(); include/linux/sched/mm.h:extern struct mm_struct *mm_alloc(void); mm/debug_vm_pgtable.c: args->mm = mm_alloc();Probably the solution would be to call it inside kunit executor code, adding support for modules to use it.
Hmm... it is not that simple... I tried the enclosed patch, but it caused another issue at the live/mman/mmap test:
<snip>
[ 152.815543] test_i915: 0000:00:02.0: it is a i915 device. [ 152.816456] # Subtest: i915 live selftests [ 152.816463] 1..1 [ 152.816835] kunit_try_run_case: allocating user context [ 152.816978] CPU: 1 PID: 1139 Comm: kunit_try_catch Tainted: G N 6.1.0-rc2-drm-110e9bebcbcc+ #20 [ 152.817063] Hardware name: Intel Corporation Tiger Lake Client Platform/TigerLake Y LPDDR4x T4 Crb, BIOS TGLSFWI1.R00.3243.A01.2006102133 06/10/2020 [ 152.817583] i915: Performing live_mman selftests with st_random_seed=0x11aaba4d st_timeout=500 [ 152.817735] test_i915: Setting dangerous option KUnit live_mman - tainting kernel [ 152.817819] test_i915: Running live_mman on 0000:00:02.0 [ 152.817899] i915: Running i915_gem_mman_live_selftests/igt_partial_tiling [ 153.346653] check_partial_mappings: timed out after tiling=0 stride=0 [ 153.847696] check_partial_mappings: timed out after tiling=1 stride=262144 [ 154.348615] check_partial_mappings: timed out after tiling=2 stride=262144 [ 154.376677] i915: Running i915_gem_mman_live_selftests/igt_smoke_tiling [ 154.877686] igt_smoke_tiling: Completed 3465 trials [ 155.025764] i915: Running i915_gem_mman_live_selftests/igt_mmap_offset_exhaustion [ 155.050908] i915: Running i915_gem_mman_live_selftests/igt_mmap [ 155.052056] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 155.052080] #PF: supervisor instruction fetch in kernel mode [ 155.052095] #PF: error_code(0x0010) - not-present page [ 155.052110] PGD 0 P4D 0 [ 155.052121] Oops: 0010 [#1] PREEMPT SMP NOPTI [ 155.052135] CPU: 5 PID: 1139 Comm: kunit_try_catch Tainted: G U N 6.1.0-rc2-drm-110e9bebcbcc+ #20 [ 155.052162] Hardware name: Intel Corporation Tiger Lake Client Platform/TigerLake Y LPDDR4x T4 Crb, BIOS TGLSFWI1.R00.3243.A01.2006102133 06/10/2020 [ 155.052191] RIP: 0010:0x0 [ 155.052207] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [ 155.052223] RSP: 0018:ffffc900019ebbe8 EFLAGS: 00010246 [ 155.052238] RAX: 0000000000000000 RBX: 0000000000001000 RCX: 0000000000100000 [ 155.052257] RDX: 0000000000001000 RSI: 0000000000000000 RDI: ffff8881111a6840 [ 155.052275] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 [ 155.052292] R10: ffff8881049ad000 R11: 00000000ffffffff R12: 0000000000000002 [ 155.052309] R13: ffff8881111a6840 R14: 0000000000100000 R15: 0000000000000000 [ 155.052327] FS: 0000000000000000(0000) GS:ffff8883a3a80000(0000) knlGS:0000000000000000 [ 155.052347] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 155.052361] CR2: ffffffffffffffd6 CR3: 000000011118c004 CR4: 0000000000770ee0 [ 155.052379] PKRU: 55555554 [ 155.052387] Call Trace: [ 155.052396] <TASK> [ 155.052403] get_unmapped_area+0x80/0x130 [ 155.052422] do_mmap+0xe5/0x530 [ 155.052439] vm_mmap_pgoff+0xab/0x150 [ 155.052457] igt_mmap_offset+0x133/0x1e0 [i915] [ 155.052875] __igt_mmap+0xfe/0x680 [i915] [ 155.053233] ? __i915_gem_object_create_user_ext+0x49c/0x550 [i915] [ 155.053614] igt_mmap+0xd8/0x290 [i915] [ 155.054057] ? __trace_bprintk+0x8c/0xa0 [ 155.054080] __i915_subtests.cold+0x53/0xd5 [i915] [ 155.054648] ? __i915_nop_teardown+0x20/0x20 [i915] [ 155.055127] ? __i915_live_setup+0x60/0x60 [i915] [ 155.055608] ? singleton_release+0x40/0x40 [i915] [ 155.056060] i915_gem_mman_live_selftests+0x4e/0x60 [i915] [ 155.056503] run_pci_test.cold+0x4d/0x163 [test_i915] [ 155.056535] ? kunit_try_catch_throw+0x20/0x20 [ 155.056557] live_mman+0x19/0x26 [test_i915] [ 155.056581] kunit_try_run_case+0xf0/0x145 [ 155.056607] kunit_generic_run_threadfn_adapter+0x13/0x30 [ 155.057715] kthread+0xf2/0x120 [ 155.058864] ? kthread_complete_and_exit+0x20/0x20 [ 155.060014] ret_from_fork+0x1f/0x30 [ 155.061108] </TASK> [ 155.062174] Modules linked in: test_i915 x86_pkg_temp_thermal coretemp snd_hda_codec_hdmi mei_hdcp kvm_intel snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep kvm snd_hda_core mei_me irqbypass wmi_bmof snd_pcm i2c_i801 mei i2c_smbus intel_lpss_pci crct10dif_pclmul crc32_pclmul ghash_clmulni_intel i915 prime_numbers drm_buddy drm_display_helper drm_kms_helper syscopyarea e1000e sysfillrect sysimgblt ptp fb_sys_fops pps_core ttm video wmi fuse [ 155.064354] CR2: 0000000000000000 [ 155.065413] ---[ end trace 0000000000000000 ]--- [ 155.074555] RIP: 0010:0x0 [ 155.075437] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [ 155.076313] RSP: 0018:ffffc900019ebbe8 EFLAGS: 00010246 [ 155.077195] RAX: 0000000000000000 RBX: 0000000000001000 RCX: 0000000000100000 [ 155.078124] RDX: 0000000000001000 RSI: 0000000000000000 RDI: ffff8881111a6840 [ 155.079013] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 [ 155.079898] R10: ffff8881049ad000 R11: 00000000ffffffff R12: 0000000000000002 [ 155.080785] R13: ffff8881111a6840 R14: 0000000000100000 R15: 0000000000000000 [ 155.081668] FS: 0000000000000000(0000) GS:ffff8883a3a80000(0000) knlGS:0000000000000000 [ 155.082565] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 155.083451] CR2: ffffffffffffffd6 CR3: 0000000110904006 CR4: 0000000000770ee0 [ 155.084348] PKRU: 55555554
</snip>
It sounds that something else is needed to properly initialize the user context.
Regards,
Mauro
---
[PATCH] kunit: allocate user context mm
Without that, tests envolving mmap won't work.
lib/kunit/test.c +20 -0
@@ -14,6 +14,7 @@#include <linux/moduleparam.h> #include <linux/panic.h> #include <linux/sched/debug.h> +#include <linux/sched/mm.h> #include <linux/sched.h> #include "debugfs.h"
@@ -381,9 +382,23 @@ static void kunit_try_run_case(void *data)struct kunit *test = ctx->test;struct kunit_suite *suite = ctx->suite;struct kunit_case *test_case = ctx->test_case; +struct mm_struct *mm =NULL ; current->kunit_test = test; +if (!current->mm) { +pr_info ("%s: allocating user context\n" , __func__); + mm =mm_alloc (); +if (!mm) { +kunit_err (suite,KUNIT_SUBTEST_INDENT +"# failed to allocate mm user context" ); +return ; + } + current->mm = mm; + }else { +pr_info ("%s: using already-existing user context\n" , __func__); + } +/* * kunit_run_case_internal may encounter a fatal error; if it does, * abort will be called, this thread will exit, and finally the parent
@@ -392,6 +407,11 @@ static void kunit_try_run_case(void *data)kunit_run_case_internal (test, suite, test_case);/* This line may never be reached. */ kunit_run_case_cleanup (test, suite); + +if (mm) { +mmdrop (mm); + current->mm =NULL ; + } }static void kunit_catch_run_case (void *data)
Quoted 59 lines · Mauro Carvalho Chehab
Quoted 36 lines · On Thu, 3 Nov 2022 15:43:26 -0700 Daniel Latypov <[email protected]> wrote:
Quoted 34 lines · Mauro Carvalho Chehab
Hi,
I'm facing a couple of issues when testing KUnit with the i915 driver.
The DRM subsystem and the i915 driver has, for a long time, his own way to do unit tests, which seems to be added before KUnit.
I'm now checking if it is worth start using KUnit at i915. So, I wrote a RFC with some patches adding support for the tests we have to be reported using Kernel TAP and KUnit.
There are basically 3 groups of tests there:
- mock tests - check i915 hardware-independent logic;
- live tests - run some hardware-specific tests;
- perf tests - check perf support - also hardware-dependent.As they depend on i915 driver, they run only on x86, with PCI stack enabled, but the mock tests run nicely via qemu.
The live and perf tests require a real hardware. As we run them together with our CI, which, among other things, test module unload/reload and test loading i915 driver with different modprobe parameters, the KUnit tests should be able to run as a module.
While testing KUnit, I noticed a couple of issues:
1.
kunit.pyparser is currently broken when used with modulesthe parser expects "TAP version xx" output, but this won't happen when loading the kunit test driver.
Quoted 7 lines
Quoted 1 line
Are there any plans or patches fixing this issue?
Partially.
Note: we need a header to look for so we can strip prefixes (like timestamps).But there is a patch in the works to add a TAP header for each subtest, hopefully in time for 6.2.
Good to know.
Quoted 2 lines
This is to match the KTAP spec:
https://kernel.org/doc/html/latest/dev-tools/ktap.htmlI see.
Quoted 4 lines
That should fix it so you can parse one suite's results at a time. I'm pretty sure it won't fix the case where there's multiple suites and/or you're trying to parse all test results at once via
Quoted 5 lines
Quoted 2 lines
$ find /sys/kernel/debug/kunit/ -type f | xargs cat | ./tools/testing/kunit/kunit.py parseCould you point me to the changeset? perhaps I can write a followup patch addressing this case.
[email protected] was working on them and should hopefully be able to send them out real soon.
You should get CC'd on those.
I think the follow-up work is just crafting an example parser input file and iterating until
$ ./tools/testing/kunit/kunit.py parse < /tmp/example_input produces our desired results.
Quoted 15 lines
Quoted 15 lines
I think that in-kernel code change + some more python changes could make the above command work, but no one has actively started looking at that just yet.
Hopefully we can pick this up and also get it done for 6.2 (unless I'm underestimating how complicated this is).Quoted 7 lines
2.
current->mmis not initializedSome tests do
mmap(). They need the mm user context to be initialized, but this is not happening right now.Are there a way to properly initialize it for KUnit?
Quoted 7 lines
Quoted 5 lines
Right, this is a consequence of how early built-in KUnit tests are run after boot.
I think for now, the answer is to make the test module-only.I know David had some ideas here, but I can't speak to them.
This is happening when test-i915 is built as module as well.
Oh, I didn't expect that at all.
Quoted 24 lines
I suspect that the function which initializes it is
mm_alloc()insidekernel/fork.c:struct mm_struct *mm_alloc(void) { struct mm_struct *mm; mm = allocate_mm(); if (!mm) return NULL; memset(mm, 0, sizeof(*mm)); return mm_init(mm, current, current_user_ns()); }As modprobing a test won't fork until all tests run, this never runs.
It seems that the normal usage is at
fs/exec.c:fs/exec.c: bprm->mm = mm = mm_alloc();but other places also call it:
Quoted 7 lines
arch/arm/mach-rpc/ecard.c: struct mm_struct * mm = mm_alloc(); drivers/dma-buf/dma-resv.c: struct mm_struct *mm = mm_alloc(); include/linux/sched/mm.h:extern struct mm_struct *mm_alloc(void); mm/debug_vm_pgtable.c: args->mm = mm_alloc();Probably the solution would be to call it inside kunit executor code, adding support for modules to use it.
I know basically nothing about the mm code.
I think I vaguely recall there being issues with this on UML or something, but I could be totally wrong.
I'll wait for David to chime in when he can.
Quoted 26 lines
Quoted 12 lines
Quoted 11 lines
3. there's no test filters for modules
In order to be able to do proper CI automation, it is needed to be able to control what tests will run or not. That's specially interesting at development time where some tests may not apply or not run properly on new hardware.
Are there any plans to add support for it at
kunit_test_suites()when the driver is built as module? Ideally, the best would be to export a per-modulefilter_globparameter on such cases.Quoted 6 lines
I think this is a good idea and is doable. (I think I said as much on the other thread).
The thinking before was that people would make group tests together in modules. But if you want to share a single module for many tests, this becomes more useful.
At least for this RFC, I opted to place everything we have already on a single module.
Perhaps I could create, instead, 3 separate modules. This way, I would gain a "third level" and a poor man's way of filtering what test type will run (mock, live or perf).
Quoted 8 lines
Yet, we will still need to be able to filter the unit tests, as this is where all the fun happens.
Quoted 3 lines
This has some potential merge conflicts w/ other pending work. I was also prototyping the ability to tell KUnit "run tests #2 - #5", so that also touches the filtering code very heavily.
Are you planning to allow this to support such feature also on modules?
I was not expecting to.
The main benefit would be for automation to try sharding up tests across multiple kernel boots. Human users would continue to use name-based selection.
So this fits into how kunit.py works w/ UML invocations or QEMU VMs. I don't see how this would be useful for module-based testing, where it feels like you want to boot once and pick which modules to modprobe.
Do you think it would be useful to have this for modules as well?
Quoted 52 lines
Quoted 10 lines
(The goal there is to have
kunit.pyable to shard up tests and boot multiple kernels concurrently.)Quoted 6 lines
4. there are actually 3 levels of tests on i915:
- Level 1: mock, live, perf
- Level 2: test group (mmap, fences, ...)
- Level 3: unit testsQuoted 8 lines
Quoted 2 lines
Currently, KUnit seems to have just two levels (test suite and tests). Are there a way to add test groups there?
Parameterized tests are the closest we have to a third-level of tests. But other than that, the answer is no.
I'd need to get more familiar with the existing tests, but I'm pretty sure parameters won't work for you.
Our current approach with selftests is that each test can be disabled. You can see how it currently works by taking a look at the
__run_selftestslogic (level 2 on the above hierarchy) insidedrivers/gpu/drm/i915/selftests/i915_selftest.c:static int __run_selftests(const char *name,
struct selftest *st, unsigned int count, void *data)
{
.../* Tests are listed in order in i915_*_selftests.h */ for (; count--; st++) { if (!st->enabled) continue; ... pr_info(DRIVER_NAME ": Running %s\n", st->name); if (data) err = st->live(data); else err = st->mock();The same also happens at subtests (level 3):
int __i915_subtests(const char *caller,
int (*setup)(void *data), int (*teardown)(int err, void *data), const structi915_subtest*st, unsigned int count,
void *data)
{
...
Quoted 7 lines
if (!apply_subtest_filter(caller, st->name))
continue;
...
pr_info(DRIVER_NAME ": Running %s/%s\n", caller, st->name);
GEM_TRACE("Running %s/%s\n", caller, st->name);
err = teardown(st->func(data), data);Had a brief look.
Hmm, the idea of dynamically adding subtests wouldn't work well with this more structured approach.
The filtering right now in KUnit is done directly on the suites/test case objects before we run them.
We'd need to pass in this extra filter while running the tests, which would need some thought to do cleanly.
Here's an idea of how you could roughly emulate this in KUnit right now:
1) could have each KUNIT_CASE map to a test group
2) could have some shared test code declare a module param 'subtest_filter'
3) you could check if the subtest name matches 'subtest_filter', and use kunit_skip() otherwise
You'd be able to plumb in the subtest filter via:
$ kunit.py run --kernel_args 'subtest_filter=foo'
This feels a bit gross, but not as gross as I thought it might.
Daniel
Quoted 21 lines
Quoted 7 lines
And I don't know if this will get done.
Note: the
kunit_parser.pycode should be able to handle arbitrary levels of tests in the output.
This restriction is purely in the in-kernel code.Quoted 6 lines
I had brought up the idea of more layers of tests before.
It would also be useful for
a) sharing expensive setup between multiple tests
b) allowing more granular scope for cleanups (kunit_kmallocand others)
c) more flexibility in dynamically generating subtests than parameterized testingYes, it makes sense to me.
Quoted 2 lines
There's some precedent in other unit testing frameworks, for example:
https://pkg.go.dev/testing#T.RunRegards,
Mauro
Quoted 8 lines · Daniel Latypov
[email protected] was working on them and should hopefully be able to send them out real soon.
You should get CC'd on those.I think the follow-up work is just crafting an example parser input file and iterating until
$ ./tools/testing/kunit/kunit.py parse < /tmp/example_input produces our desired results.
I briefly played around with this on top of
https://lore.kernel.org/linux-kselftest/[email protected]/
But instead, I tried to make it so kunit.py parse could be just given a directory as input so we don't have to do find | xargs cat.
I can't get module tests to work locally, so I'll replicate the setup with some regular files.
Say we have /tmp/results with two files:
file1 contains
# Subtest: suite1
KTAP version 1
1..1
ok 1 test
ok 1 suite1
and file2 contains
# Subtest: suite2
KTAP version 1
1..1
ok 1 test
ok 1 suite2
I think this should match what module output in debugfs would look like. A key thing to note: the top level test counter resets between modules, iirc.
The patch below makes this almost work
$ ./tools/testing/kunit/kunit.py parse /tmp/results/ ============================================================ ==================== suite2 (1 subtest) ==================== [PASSED] test ===================== [PASSED] suite2 ====================== ==================== suite1 (1 subtest) ==================== [PASSED] test [ERROR] Test: suite1: Expected test number 2 but found 1 ===================== [PASSED] suite1 ====================== ============================================================ Testing complete. Ran 2 tests: passed: 2, errors: 1
But there's a few issues
a. the error about multiple top level tests with "test number 1" b. how do we make this handle kernel output with prefixes (timestamps) c. and what happens if files each have different length prefixes?
tools/testing/kunit/kunit.py +0 -0
@@ -189,6 +189,14 @@ def _map_to_overall_status(test_status:
kunit_parser.TestStatus) -> KunitStatus:
return KunitStatus.SUCCESS
return KunitStatus.TEST_FAILURE
+def _kernel_output_from_dir(dir: str) -> Iterable[str]:
+ yield 'KTAP version 1'
+ for root, dirs, files in os.walk(dir):
+ for sub in files:
+ with open(os.path.join(root, sub),
errors='backslashreplace') as f:
+ for line in f:
+ yield line
+
def parse_tests(request: KunitParseRequest, metadata:
kunit_json.Metadata, input_data: Iterable[str]) -> Tuple[KunitResult, kunit_parser.Test]:
parse_start = time.time()
@@ -496,6 +504,8 @@ def main(argv):
if cli_args.file is None:
sys.stdin.reconfigure(errors='backslashreplace') # pytype:
disable=attribute-error
kunit_output = sys.stdin
+ elif os.path.isdir(cli_args.file):
+ kunit_output = _kernel_output_from_dir(cli_args.file)
else:
with open(cli_args.file, 'r',
errors='backslashreplace') as f:
kunit_output = f.read().splitlines()
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev2)
In reply to Mauro Carvalho Chehab== Series Details ==
== Series Details ==
Series: KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev2)
URL : https://patchwork.freedesktop.org/series/110492/
State : warning
== Summary ==
Error: dim checkpatch failed1bcd7d5d971a KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL -:18: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #18:
Quoted 1 line
Quoted 1 line
Quoted 1 line
I'm facing a couple of issues when testing KUnit with the i915 driver.
-:261: ERROR:MISSING_SIGN_OFF: Missing Signed-off-by: line(s)
total: 1 errors, 1 warnings, 0 checks, 41 lines checked
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev2)
In reply to Mauro Carvalho Chehab== Series Details ==
== Series Details ==
Series: KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev2)
URL : https://patchwork.freedesktop.org/series/110492/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12342 -> Patchwork_110492v2
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/index.html
Participating hosts (27 -> 29)
------------------------------
Additional (4): fi-adl-ddr5 fi-rkl-11600 fi-tgl-dsi fi-ilk-650
Missing (2): fi-ctg-p8600 fi-bdw-samus
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_110492v2:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@debugfs_test@basic-hwmon}:
- fi-adl-ddr5: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_110492v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [PASS][2] -> [FAIL][3] ([i915#7229])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/fi-pnv-d510/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-pnv-d510/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-rkl-11600: NOTRUN -> [SKIP][4] ([i915#2190])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-rkl-11600: NOTRUN -> [SKIP][5] ([i915#4613]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
- fi-adl-ddr5: NOTRUN -> [SKIP][6] ([i915#4613]) +3 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@[email protected]
* igt@gem_tiled_pread_basic:
- fi-rkl-11600: NOTRUN -> [SKIP][7] ([i915#3282])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@gem_tiled_pread_basic.html
- fi-adl-ddr5: NOTRUN -> [SKIP][8] ([i915#3282])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@gem_tiled_pread_basic.html
* igt@i915_pm_backlight@basic-brightness:
- fi-adl-ddr5: NOTRUN -> [SKIP][9] ([i915#1155])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][10] ([i915#3012])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-ilk-650: NOTRUN -> [SKIP][11] ([fdo#109271]) +19 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-ilk-650/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-hsw-g3258: [PASS][12] -> [INCOMPLETE][13] ([i915#3303] / [i915#4785])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/fi-hsw-g3258/igt@i915_selftest@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-hsw-g3258/igt@i915_selftest@[email protected]
* igt@i915_suspend@basic-s3-without-i915:
- fi-rkl-11600: NOTRUN -> [INCOMPLETE][14] ([i915#4817])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
* igt@kms_chamelium@dp-edid-read:
- fi-adl-ddr5: NOTRUN -> [SKIP][15] ([fdo#111827]) +8 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@[email protected]
* igt@kms_chamelium@hdmi-edid-read:
- fi-ilk-650: NOTRUN -> [SKIP][16] ([fdo#109271] / [fdo#111827]) +8 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-ilk-650/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-rkl-11600: NOTRUN -> [SKIP][17] ([fdo#111827]) +7 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor:
- fi-rkl-11600: NOTRUN -> [SKIP][18] ([i915#4103])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
- fi-adl-ddr5: NOTRUN -> [SKIP][19] ([i915#4103])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-rkl-11600: NOTRUN -> [SKIP][20] ([fdo#109285] / [i915#4098])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
- fi-adl-ddr5: NOTRUN -> [SKIP][21] ([fdo#109285])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@[email protected]
* igt@kms_psr@cursor_plane_move:
- fi-adl-ddr5: NOTRUN -> [SKIP][22] ([i915#1072]) +3 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@kms_psr@cursor_plane_move.html
* igt@kms_psr@sprite_plane_onoff:
- fi-rkl-11600: NOTRUN -> [SKIP][23] ([i915#1072]) +3 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@kms_psr@sprite_plane_onoff.html
* igt@kms_setmode@basic-clone-single-crtc:
- fi-rkl-11600: NOTRUN -> [SKIP][24] ([i915#3555] / [i915#4098])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
- fi-adl-ddr5: NOTRUN -> [SKIP][25] ([i915#3555])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@[email protected]
* igt@prime_vgem@basic-read:
- fi-rkl-11600: NOTRUN -> [SKIP][26] ([fdo#109295] / [i915#3291] / [i915#3708]) +2 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-adl-ddr5: NOTRUN -> [SKIP][27] ([fdo#109295] / [i915#3301])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][28] ([fdo#109295] / [i915#3301] / [i915#3708])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-rkl-11600/igt@[email protected]
* igt@prime_vgem@basic-write:
- fi-adl-ddr5: NOTRUN -> [SKIP][29] ([fdo#109295] / [i915#3291]) +2 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-adl-ddr5/igt@[email protected]
* igt@runner@aborted:
- fi-hsw-g3258: NOTRUN -> [FAIL][30] ([fdo#109271] / [i915#4312] / [i915#4991])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-hsw-g3258/igt@[email protected]
#### Possible fixes ####
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size:
- fi-bsw-kefka: [FAIL][31] ([i915#6298]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/fi-bsw-kefka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/fi-bsw-kefka/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#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2411]: https://gitlab.freedesktop.org/drm/intel/issues/2411
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#4817]: https://gitlab.freedesktop.org/drm/intel/issues/4817
[i915#4991]: https://gitlab.freedesktop.org/drm/intel/issues/4991
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
[i915#6856]: https://gitlab.freedesktop.org/drm/intel/issues/6856
[i915#7125]: https://gitlab.freedesktop.org/drm/intel/issues/7125
[i915#7229]: https://gitlab.freedesktop.org/drm/intel/issues/7229
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
Build changes
-------------
* Linux: CI_DRM_12342 -> Patchwork_110492v2
CI-20190529: 20190529
CI_DRM_12342: 44f62f6f335a4bec6854162b502c637e061030f0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7043: eef0a0c904846509f8185330ccd210a578ba55ec @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_110492v2: 44f62f6f335a4bec6854162b502c637e061030f0 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
9325d54659a9 KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev2)
In reply to Mauro Carvalho Chehab== Series Details ==
== Series Details ==
Series: KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev2)
URL : https://patchwork.freedesktop.org/series/110492/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12342_full -> Patchwork_110492v2_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_110492v2_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_110492v2_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (11 -> 9)
------------------------------
Missing (2): shard-rkl shard-dg1
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_110492v2_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_suspend@basic-s3@smem:
- shard-skl: NOTRUN -> [INCOMPLETE][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl6/igt@gem_exec_suspend@[email protected]
Known issues
------------
Here are the changes found in Patchwork_110492v2_full that come from known issues:
### CI changes ###
#### Issues hit ####
* boot:
- shard-glk: ([PASS][2], [PASS][3], [PASS][4], [PASS][5], [PASS][6], [PASS][7], [PASS][8], [PASS][9], [PASS][10], [PASS][11], [PASS][12], [PASS][13], [PASS][14], [PASS][15], [PASS][16], [PASS][17], [PASS][18], [PASS][19], [PASS][20], [PASS][21], [PASS][22], [PASS][23], [PASS][24], [PASS][25], [PASS][26]) -> ([PASS][27], [PASS][28], [PASS][29], [PASS][30], [PASS][31], [PASS][32], [PASS][33], [PASS][34], [PASS][35], [PASS][36], [PASS][37], [PASS][38], [PASS][39], [PASS][40], [PASS][41], [PASS][42], [PASS][43], [PASS][44], [FAIL][45], [PASS][46], [PASS][47], [PASS][48], [PASS][49], [PASS][50]) ([i915#4392])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk1/boot.html
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk1/boot.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk1/boot.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk2/boot.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk2/boot.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk2/boot.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk2/boot.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk3/boot.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk3/boot.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk3/boot.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk5/boot.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk5/boot.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk5/boot.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk6/boot.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk6/boot.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk6/boot.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk7/boot.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk7/boot.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk7/boot.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk8/boot.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk8/boot.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk8/boot.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk9/boot.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk9/boot.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk9/boot.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk1/boot.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk1/boot.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk1/boot.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk2/boot.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk2/boot.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk2/boot.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk3/boot.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk3/boot.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk3/boot.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk5/boot.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk5/boot.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk5/boot.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk6/boot.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk6/boot.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk6/boot.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk7/boot.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk7/boot.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk7/boot.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/boot.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/boot.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/boot.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/boot.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk9/boot.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk9/boot.html
### IGT changes ###
#### Issues hit ####
* igt@api_intel_allocator@fork-simple-stress:
- shard-tglb: [PASS][51] -> [INCOMPLETE][52] ([i915#6453])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-tglb3/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb6/igt@[email protected]
* igt@api_intel_bb@crc32:
- shard-tglb: NOTRUN -> [SKIP][53] ([i915#6230])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@[email protected]
* igt@feature_discovery@psr2:
- shard-iclb: [PASS][54] -> [SKIP][55] ([i915#658])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb2/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb6/igt@[email protected]
* igt@gem_exec_balancer@parallel-keep-submit-fence:
- shard-iclb: [PASS][56] -> [SKIP][57] ([i915#4525])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb1/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb5/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-skl: NOTRUN -> [FAIL][58] ([i915#2846])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl1/igt@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-glk: [PASS][59] -> [FAIL][60] ([i915#2842])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk8/igt@gem_exec_fair@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_flush@basic-batch-kernel-default-cmd:
- shard-tglb: NOTRUN -> [SKIP][61] ([fdo#109313])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@[email protected]
* igt@gem_lmem_swapping@parallel-multi:
- shard-glk: NOTRUN -> [SKIP][62] ([fdo#109271] / [i915#4613]) +1 similar issue
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-verify-ccs:
- shard-apl: NOTRUN -> [SKIP][63] ([fdo#109271] / [i915#4613]) +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl7/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- shard-skl: NOTRUN -> [SKIP][64] ([fdo#109271] / [i915#4613]) +2 similar issues
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl4/igt@[email protected]
* igt@gem_userptr_blits@probe:
- shard-skl: NOTRUN -> [FAIL][65] ([i915#7247])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl4/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-skl: NOTRUN -> [FAIL][66] ([i915#3318])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl1/igt@[email protected]
* igt@gen9_exec_parse@batch-without-end:
- shard-tglb: NOTRUN -> [SKIP][67] ([i915#2527] / [i915#2856])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-skl: NOTRUN -> [FAIL][68] ([i915#3989] / [i915#454]) +1 similar issue
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl4/igt@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- shard-apl: NOTRUN -> [FAIL][69] ([i915#4275])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl8/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
- shard-skl: NOTRUN -> [WARN][70] ([i915#1804])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl4/igt@i915_pm_rc6_residency@[email protected]
* igt@i915_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-tglb: NOTRUN -> [SKIP][71] ([fdo#111644] / [i915#1397] / [i915#2411])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- shard-skl: NOTRUN -> [DMESG-FAIL][72] ([i915#1886])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl10/igt@i915_selftest@live@gt_pm.html
* igt@kms_big_fb@y-tiled-64bpp-rotate-90:
- shard-tglb: NOTRUN -> [SKIP][73] ([fdo#111614])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@[email protected]
* igt@kms_big_fb@yf-tiled-64bpp-rotate-180:
- shard-glk: NOTRUN -> [SKIP][74] ([fdo#109271]) +18 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/igt@[email protected]
* igt@kms_ccs@pipe-a-bad-pixel-format-y_tiled_gen12_mc_ccs:
- shard-skl: NOTRUN -> [SKIP][75] ([fdo#109271] / [i915#3886]) +8 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl1/igt@kms_ccs@pipe-a-bad-pixel-format-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-crc-primary-basic-y_tiled_gen12_mc_ccs:
- shard-glk: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#3886])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/igt@kms_ccs@pipe-a-crc-primary-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][77] ([fdo#109271] / [i915#3886]) +2 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl8/igt@kms_ccs@pipe-a-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-a-missing-ccs-buffer-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][78] ([fdo#111615] / [i915#3689])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@kms_ccs@pipe-a-missing-ccs-buffer-yf_tiled_ccs.html
* igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][79] ([i915#3689] / [i915#3886])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-missing-ccs-buffer-y_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][80] ([i915#3689])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@kms_ccs@pipe-c-missing-ccs-buffer-y_tiled_ccs.html
* igt@kms_chamelium@dp-edid-change-during-suspend:
- shard-skl: NOTRUN -> [SKIP][81] ([fdo#109271] / [fdo#111827]) +11 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl4/igt@[email protected]
* igt@kms_chamelium@hdmi-aspect-ratio:
- shard-apl: NOTRUN -> [SKIP][82] ([fdo#109271] / [fdo#111827]) +1 similar issue
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl7/igt@[email protected]
* igt@kms_chamelium@hdmi-audio-edid:
- shard-glk: NOTRUN -> [SKIP][83] ([fdo#109271] / [fdo#111827])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/igt@[email protected]
* igt@kms_chamelium@vga-hpd-enable-disable-mode:
- shard-tglb: NOTRUN -> [SKIP][84] ([fdo#109284] / [fdo#111827]) +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@[email protected]
* igt@kms_cursor_crc@cursor-sliding-max-size:
- shard-tglb: NOTRUN -> [SKIP][85] ([i915#3555])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions-varying-size:
- shard-glk: [PASS][86] -> [FAIL][87] ([i915#2346])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk7/igt@kms_cursor_legacy@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk3/igt@kms_cursor_legacy@[email protected]
* igt@kms_flip@flip-vs-blocking-wf-vblank@b-edp1:
- shard-skl: [PASS][88] -> [FAIL][89] ([i915#2122])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-skl10/igt@kms_flip@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl9/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-skl: NOTRUN -> [FAIL][90] ([i915#79])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl4/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@b-dp1:
- shard-apl: [PASS][91] -> [DMESG-WARN][92] ([i915#180]) +1 similar issue
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl7/igt@kms_flip@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl8/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@c-edp1:
- shard-skl: NOTRUN -> [FAIL][93] ([i915#2122])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-64bpp-4tile-downscaling@pipe-a-valid-mode:
- shard-iclb: NOTRUN -> [SKIP][94] ([i915#2587] / [i915#2672]) +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb1/igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-64bpp-4tile-downscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-downscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][95] ([i915#2672]) +7 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb3/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-downscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][96] ([i915#3555]) +2 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-valid-mode:
- shard-iclb: NOTRUN -> [SKIP][97] ([i915#2672] / [i915#3555])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb7/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-valid-mode.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-blt:
- shard-tglb: NOTRUN -> [SKIP][98] ([fdo#109280] / [fdo#111825]) +4 similar issues
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-shrfb-scaledprimary:
- shard-tglb: NOTRUN -> [SKIP][99] ([i915#6497]) +1 similar issue
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-render:
- shard-apl: NOTRUN -> [SKIP][100] ([fdo#109271]) +55 similar issues
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl7/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-render.html
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-b-edp-1:
- shard-skl: NOTRUN -> [SKIP][101] ([fdo#109271]) +244 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl6/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a-edp-1:
- shard-iclb: [PASS][102] -> [SKIP][103] ([i915#5235]) +5 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb5/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a-edp-1.html
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb2/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a-edp-1.html
* igt@kms_psr2_sf@overlay-plane-move-continuous-exceed-fully-sf:
- shard-glk: NOTRUN -> [SKIP][104] ([fdo#109271] / [i915#658])
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area:
- shard-tglb: NOTRUN -> [SKIP][105] ([i915#2920])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-big-fb:
- shard-skl: NOTRUN -> [SKIP][106] ([fdo#109271] / [i915#658]) +1 similar issue
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl4/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_gtt:
- shard-iclb: [PASS][107] -> [SKIP][108] ([fdo#109441])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_gtt.html
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb1/igt@kms_psr@psr2_cursor_mmap_gtt.html
* igt@kms_writeback@writeback-invalid-parameters:
- shard-skl: NOTRUN -> [SKIP][109] ([fdo#109271] / [i915#2437]) +1 similar issue
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl4/igt@[email protected]
* igt@perf@non-zero-reason:
- shard-skl: NOTRUN -> [TIMEOUT][110] ([i915#6943])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl10/igt@[email protected]
* igt@sysfs_clients@fair-1:
- shard-apl: NOTRUN -> [SKIP][111] ([fdo#109271] / [i915#2994])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl8/igt@[email protected]
* igt@sysfs_clients@recycle:
- shard-glk: NOTRUN -> [SKIP][112] ([fdo#109271] / [i915#2994])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/igt@[email protected]
* igt@sysfs_clients@sema-10:
- shard-skl: NOTRUN -> [SKIP][113] ([fdo#109271] / [i915#2994]) +3 similar issues
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl4/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_exec@basic-nohangcheck:
- shard-tglb: [FAIL][114] ([i915#6268]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-tglb1/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb3/igt@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-glk: [FAIL][116] ([i915#2842]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk1/igt@gem_exec_fair@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-apl: [DMESG-WARN][118] ([i915#5566] / [i915#716]) -> [PASS][119]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl2/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl7/igt@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- shard-iclb: [SKIP][120] ([i915#4281]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb3/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb7/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- shard-apl: [DMESG-FAIL][122] ([i915#5334]) -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl3/igt@i915_selftest@live@gt_heartbeat.html
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl6/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_suspend@fence-restore-untiled:
- shard-snb: [SKIP][124] ([fdo#109271]) -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-snb6/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-snb7/igt@[email protected]
* igt@kms_atomic_transition@plane-toggle-modeset-transition@pipe-b-edp-1:
- shard-tglb: [INCOMPLETE][126] -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-tglb8/igt@kms_atomic_transition@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb5/igt@kms_atomic_transition@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions:
- shard-glk: [FAIL][128] ([i915#2346]) -> [PASS][129]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk7/igt@kms_cursor_legacy@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk3/igt@kms_cursor_legacy@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: [FAIL][130] ([i915#4767]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl1/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl3/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@c-dp1:
- shard-apl: [FAIL][132] ([i915#79]) -> [PASS][133]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl2/igt@kms_flip@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl6/igt@kms_flip@[email protected]
* igt@kms_psr@psr2_sprite_blt:
- shard-iclb: [SKIP][134] ([fdo#109441]) -> [PASS][135] +3 similar issues
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb5/igt@kms_psr@psr2_sprite_blt.html
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb2/igt@kms_psr@psr2_sprite_blt.html
* igt@perf@oa-exponents:
- shard-glk: [INCOMPLETE][136] ([i915#5213]) -> [PASS][137]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk5/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk8/igt@[email protected]
* igt@perf_pmu@interrupts:
- shard-skl: [FAIL][138] ([i915#7318]) -> [PASS][139]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-skl4/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-skl3/igt@[email protected]
* igt@perf_pmu@rc6-suspend:
- shard-apl: [DMESG-WARN][140] ([i915#180]) -> [PASS][141] +1 similar issue
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl8/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl1/igt@[email protected]
#### Warnings ####
* igt@gem_exec_balancer@parallel-ordering:
- shard-iclb: [FAIL][142] ([i915#6117]) -> [SKIP][143] ([i915#4525])
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb2/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb3/igt@[email protected]
* igt@gem_pread@exhaustion:
- shard-tglb: [WARN][144] ([i915#2658]) -> [INCOMPLETE][145] ([i915#7248])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-tglb3/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-tglb2/igt@[email protected]
- shard-glk: [WARN][146] ([i915#2658]) -> [INCOMPLETE][147] ([i915#7248])
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-glk2/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-glk5/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-move-continuous-exceed-fully-sf:
- shard-iclb: [SKIP][148] ([i915#658]) -> [SKIP][149] ([i915#2920])
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb5/igt@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb2/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-move-continuous-exceed-sf:
- shard-iclb: [SKIP][150] ([i915#2920]) -> [SKIP][151] ([i915#658])
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb2/igt@[email protected]
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb3/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area:
- shard-iclb: [SKIP][152] ([i915#2920]) -> [SKIP][153] ([fdo#111068] / [i915#658]) +1 similar issue
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb2/igt@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb6/igt@[email protected]
* igt@kms_psr2_sf@plane-move-sf-dmg-area:
- shard-iclb: [SKIP][154] ([fdo#111068] / [i915#658]) -> [SKIP][155] ([i915#2920])
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-iclb5/igt@[email protected]
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-apl: ([FAIL][156], [FAIL][157], [FAIL][158], [FAIL][159], [FAIL][160], [FAIL][161]) ([fdo#109271] / [i915#180] / [i915#3002] / [i915#4312]) -> ([FAIL][162], [FAIL][163], [FAIL][164], [FAIL][165]) ([i915#180] / [i915#3002] / [i915#4312])
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl2/igt@[email protected]
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl7/igt@[email protected]
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl8/igt@[email protected]
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl2/igt@[email protected]
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl3/igt@[email protected]
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12342/shard-apl8/igt@[email protected]
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl1/igt@[email protected]
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl7/igt@[email protected]
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl3/igt@[email protected]
[165]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110492v2/shard-apl8/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[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#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1804]: https://gitlab.freedesktop.org/drm/intel/issues/1804
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2411]: https://gitlab.freedesktop.org/drm/intel/issues/2411
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[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#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#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3002]: https://gitlab.freedesktop.org/drm/intel/issues/3002
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3989]: https://gitlab.freedesktop.org/drm/intel/issues/3989
[i915#4275]: https://gitlab.freedesktop.org/drm/intel/issues/4275
[i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4392]: https://gitlab.freedesktop.org/drm/intel/issues/4392
[i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4767]: https://gitlab.freedesktop.org/drm/intel/issues/4767
[i915#5213]: https://gitlab.freedesktop.org/drm/intel/issues/5213
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#6117]: https://gitlab.freedesktop.org/drm/intel/issues/6117
[i915#6230]: https://gitlab.freedesktop.org/drm/intel/issues/6230
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6453]: https://gitlab.freedesktop.org/drm/intel/issues/6453
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6943]: https://gitlab.freedesktop.org/drm/intel/issues/6943
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#7247]: https://gitlab.freedesktop.org/drm/intel/issues/7247
[i915#7248]: https://gitlab.freedesktop.org/drm/intel/issues/7248
[i915#7318]: https://gitlab.freedesktop.org/drm/intel/issues/7318
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
Build changes
-------------
* Linux: CI_DRM_12342 -> Patchwork_110492v2
CI-20190529: 20190529
CI_DRM_12342: 44f62f6f335a4bec6854162b502c637e061030f0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7043: eef0a0c904846509f8185330ccd210a578ba55ec @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_110492v2: 44f62f6f335a4bec6854162b502c637e061030f0 @ 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_110492v2/index.html
Quoted 17 lines · Mauro Carvalho Chehab
Hi,
I'm facing a couple of issues when testing KUnit with the i915 driver.
The DRM subsystem and the i915 driver has, for a long time, his own way to do unit tests, which seems to be added before KUnit.
I'm now checking if it is worth start using KUnit at i915. So, I wrote a RFC with some patches adding support for the tests we have to be reported using Kernel TAP and KUnit.
There are basically 3 groups of tests there:
- mock tests - check i915 hardware-independent logic;
- live tests - run some hardware-specific tests;
- perf tests - check perf support - also hardware-dependent.
Quoted 8 lines
As they depend on i915 driver, they run only on x86, with PCI stack enabled, but the mock tests run nicely via qemu.
The live and perf tests require a real hardware. As we run them together with our CI, which, among other things, test module unload/reload and test loading i915 driver with different modprobe parameters, the KUnit tests should be able to run as a module.
Note that KUnit tests that are doing more of a functional/integration testing (on "live" hardware) rather than unit testing (where hardware interactions are mocked) are not very common.
Do we have other KUnit tests like this merged?
Some of the "live tests" are not even that, being more of a pure hardware tests (e.g. live_workarounds, which is checking whether values in MMIO regs stick over various HW state transitions).
I'm wondering, is KUnit the right tool for this job?
-Michał
Quoted 28 lines · Michał Winiarski
Quoted 17 lines · Mauro Carvalho Chehab
Hi,
I'm facing a couple of issues when testing KUnit with the i915 driver.
The DRM subsystem and the i915 driver has, for a long time, his own way to do unit tests, which seems to be added before KUnit.
I'm now checking if it is worth start using KUnit at i915. So, I wrote a RFC with some patches adding support for the tests we have to be reported using Kernel TAP and KUnit.
There are basically 3 groups of tests there:
- mock tests - check i915 hardware-independent logic;
- live tests - run some hardware-specific tests;
- perf tests - check perf support - also hardware-dependent.Quoted 8 lines
As they depend on i915 driver, they run only on x86, with PCI stack enabled, but the mock tests run nicely via qemu.
The live and perf tests require a real hardware. As we run them together with our CI, which, among other things, test module unload/reload and test loading i915 driver with different modprobe parameters, the KUnit tests should be able to run as a module.
Quoted 4 lines
Note that KUnit tests that are doing more of a functional/integration testing (on "live" hardware) rather than unit testing (where hardware interactions are mocked) are not very common.
Do we have other KUnit tests like this merged?
I don't think we have other tests like this.
Quoted 5 lines
Some of the "live tests" are not even that, being more of a pure hardware tests (e.g.
live_workarounds, which is checking whether values in MMIO regs stick over various HW state transitions).I'm wondering, is KUnit the right tool for this job?
The main focus of KUnit is for hw-independent tests. So in theory: no.
But I can imagine it could be easier to write the validation via KUNIT_EXPECT_EQ and friends as opposed to writing your own kernel module w/ its own set of macros, etc.
So my first thought is: "if it works, then you can try using it." (Might want to take steps like make sure they don't get enabled by CONFIG_KUNIT_ALL_TESTS=y).
Talking with David, he seems to have echoed my thoughts. David also suggested that maybe the test could use a fake of the hw by default, but have an option to run against real hw when available. I think that sounds like a good chunk of work, so I don't know if you need to worry about that.
Daniel
Quoted 41 lines · On Mon, 7 Nov 2022 15:16:17 -0800 Daniel Latypov <[email protected]> wrote:
Quoted 28 lines · Michał Winiarski
Quoted 17 lines · Mauro Carvalho Chehab
Hi,
I'm facing a couple of issues when testing KUnit with the i915 driver.
The DRM subsystem and the i915 driver has, for a long time, his own way to do unit tests, which seems to be added before KUnit.
I'm now checking if it is worth start using KUnit at i915. So, I wrote a RFC with some patches adding support for the tests we have to be reported using Kernel TAP and KUnit.
There are basically 3 groups of tests there:
- mock tests - check i915 hardware-independent logic;
- live tests - run some hardware-specific tests;
- perf tests - check perf support - also hardware-dependent.Quoted 8 lines
As they depend on i915 driver, they run only on x86, with PCI stack enabled, but the mock tests run nicely via qemu.
The live and perf tests require a real hardware. As we run them together with our CI, which, among other things, test module unload/reload and test loading i915 driver with different modprobe parameters, the KUnit tests should be able to run as a module.
Quoted 4 lines
Note that KUnit tests that are doing more of a functional/integration testing (on "live" hardware) rather than unit testing (where hardware interactions are mocked) are not very common.
Do we have other KUnit tests like this merged?I don't think we have other tests like this.
Quoted 4 lines
Some of the "live tests" are not even that, being more of a pure hardware tests (e.g.
live_workarounds, which is checking whether values in MMIO regs stick over various HW state transitions).
Quoted 8 lines
Quoted 1 line
I'm wondering, is KUnit the right tool for this job?
The main focus of KUnit is for hw-independent tests. So in theory: no.
But I can imagine it could be easier to write the validation via
KUNIT_EXPECT_EQand friends as opposed to writing your own kernel module w/ its own set of macros, etc.
Right now, i915 has its own way of doing that, for both hw-independent and live tests. The current patches are keeping them, because it helps comparing both approaches, and won't disrupt CI jobs.
However, if we're willing to merge KUnit support, the best would be to use the same macros/logic for both, as having two different unit test frameworks used on i915 doesn't make much sense.
So yeah, using KUNIT_EXPECT_EQ and friends for live unit and hw tests makes sense to me.
The main difference between i915 selftest and KUnit seems to be at the way the tests are started:
- i915 selftest uses module parameters to run the driver on test mode. When such parameters are enabled, the probe() function will run the tests.
- from what I understood, KUnit uses a .kunit_test_suites code section, which does an early initialization of the tests, calling the test suite a lot earlier than probe().
Due to such differences, running KUnit against a real hardware requires to load the real driver first, letting it probe the hardware. Once the driver is loaded and have the hardware properly initialized, load a separate KUnit module that would call the test functions from the driver. That's the approach took on this series.
It sounds possible to merge both approaches, by adding some helper functions similar to what kunit_test_suites() do, but, instead of using a separate segment, run the tests at probe() time.
That would mean a cleaner solution with the usage of all KUnit macros and, in thesis, it will be equivalent to what i915 selftest already does.
Another possibility would be to make sure that kunit_test_suites() will fully initiate the user context, allowing mmap() to work.
Quoted 3 lines
So my first thought is: "if it works, then you can try using it." (Might want to take steps like make sure they don't get enabled by
CONFIG_KUNIT_ALL_TESTS=y).
Yeah, it makes sense to have hw-dependent tests not enabled with KUNIT_ALL_TESTS. Another approach would be to just skip them when hw is required[1]. Skipping the tests is needed anyway, as the hardware probing may fail.
[1] Btw, despite the comments:
/**
* kunit_skip() - Marks @test_or_suite as skipped *
* @test_or_suite: The test context object.
* @fmt: A printk() style format string.
*
* Skips the test. @fmt is given output as the test status
* comment, typically the reason the test was skipped. *
* Test execution is halted after kunit_skip() is called. */
kunit_skip() doesn't work inside .suite_init, so this would cause compilation errors:
static int i915_pci_init_suite(struct kunit_suite *suite)
{
if (!hw)
kunit_skip(suite);
}Quoted 5 lines
Talking with David, he seems to have echoed my thoughts. David also suggested that maybe the test could use a fake of the hw by default, but have an option to run against real hw when available. I think that sounds like a good chunk of work, so I don't know if you need to worry about that.
Emulating a GPU is a lot of work, and offers their own challenges. Besides that, the goal here is to check the driver against real hardware, which may have different steppings and versions. Running on an emulated hardware defeats such purpose, and may introduce bugs on its own.
Regards,
Mauro
Patchwork
CI[igt-dev] ✗ Fi.CI.BUILD: failure for KUnit issues - Was: [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev3)
In reply to Mauro Carvalho Chehab== Series Details ==
== Series Details ==
Series: KUnit issues - Was: [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev3)
URL : https://patchwork.freedesktop.org/series/110491/
State : failure
== Summary ==
Applying: KUnit issues - Was: [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL Patch failed at 0001 KUnit issues - Was: [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL 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".
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev3)
In reply to Mauro Carvalho Chehab== Series Details ==
== Series Details ==
Series: KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL (rev3)
URL : https://patchwork.freedesktop.org/series/110492/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/110492/revisions/3/mbox/ not applied
Applying: KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL
error: corrupt patch at line 6
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 KUnit issues - Was: [igt-dev] [PATCH RFC v2 8/8] drm/i915: check if current->mm is not NULL 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".
Quoted 11 lines · Mauro Carvalho Chehab
Hi,
I'm facing a couple of issues when testing KUnit with the i915 driver.
The DRM subsystem and the i915 driver has, for a long time, his own way to do unit tests, which seems to be added before KUnit.
I'm now checking if it is worth start using KUnit at i915. So, I wrote a RFC with some patches adding support for the tests we have to be reported using Kernel TAP and KUnit.
Thanks very much for looking into this, and sorry for the delayed response (I've been out sick).
I think Daniel has answered most of your questions (thanks, Daniel), and I agree with pretty much everything he's said.
In short, I think that it'd be great to have the i915 tests use KUnit where appropriate, and even where KUnit isn't the ideal tool, using KTAP as a result format would be great.
I definitely think that there's a whole bunch of areas of i915 for which KUnit makes sense: the more hardware independent unit tests (things like swizzling/tiling, maybe some command-buffer creation / validation, "utility" functions generally) are an obvious option. If KUnit isn't working for those sorts of tests, that's clearly a deficiency in KUnit that we'll want to rectify (though it might take some time to do so).
The more hardware-specific stuff probably isn't as good a fit for KUnit, but if using KUnit is the easiest way to do test management/assertion macros/KTAP output/etc., then it may be worth using whatever parts of it make sense. I'd prefer it if any tests which depend strongly on specific hardware were marked as such, and maybe lived under a different Kconfig option (which might not be auto-enabled by KUNIT_ALL_TESTS). Though as long as the tests are skipped if the hardware isn't present (which seems to be the case from running them under qemu), it's not a real problem to have them. It's not something we plan to "officially support", though, so if the requirements of hardware-specific tests and more traditional unit tests conflict, KUnit will lean towards supporting the non-hardware-specific ones.
Quoted 16 lines
There are basically 3 groups of tests there:
- mock tests - check i915 hardware-independent logic;
- live tests - run some hardware-specific tests;
- perf tests - check perf support - also hardware-dependent.As they depend on i915 driver, they run only on x86, with PCI stack enabled, but the mock tests run nicely via qemu.
The live and perf tests require a real hardware. As we run them together with our CI, which, among other things, test module unload/reload and test loading i915 driver with different modprobe parameters, the KUnit tests should be able to run as a module.
Quoted 9 lines
While testing KUnit, I noticed a couple of issues:
1.
kunit.pyparser is currently broken when used with modulesthe parser expects "TAP version xx" output, but this won't happen when loading the kunit test driver.
Are there any plans or patches fixing this issue?
Yeah: this is on our to-do list to fix, hopefully pretty soon.
Quoted 7 lines
2.
current->mmis not initializedSome tests do
mmap(). They need the mm user context to be initialized, but this is not happening right now.Are there a way to properly initialize it for KUnit?
This is something we've hit before and don't have a good solution for (as you've found out). I'm not an expert on the mm subsystem, so while it's something we want to support, I don't think anyone quite knows how yet.
As a totally wild, untested guess, you may have some luck setting current->mm = current->active_mm, or current->mm = &init_mm?
It's definitely true that, even when loaded from modules, current->mm won't be set as KUnit tests run in their own kthreads. Maybe setting mm = active_mm would let us carry that context with us from the module loader to the test...
In any case, you're not the only person to hit this issue, so it's definitely something we'd like to work out.
Quoted 11 lines
3. there's no test filters for modules
In order to be able to do proper CI automation, it is needed to be able to control what tests will run or not. That's specially interesting at development time where some tests may not apply or not run properly on new hardware.
Are there any plans to add support for it at
kunit_test_suites()when the driver is built as module? Ideally, the best would be to export a per-modulefilter_globparameter on such cases.
Again, this is on the to-do list. It may be implemented as a global property which affects future module loads (and might be able to be changed via, e.g., debugfs), rather than a per-module parameter, but we haven't designed it yet.
Alas, module support has always seen a little less love than the built-in UML/qemu-based mode, so it does tend to lag behind a little bit with these sort of features, and tends to be tested less well. Hopefully we can bring it up to scratch soon.
Quoted 7 lines
4. there are actually 3 levels of tests on i915:
- Level 1: mock, live, perf
- Level 2: test group (mmap, fences, ...)
- Level 3: unit testsCurrently, KUnit seems to have just two levels (test suite and tests). Are there a way to add test groups there?
The closest thing we have at the moment is "parameterised tests", which are really designed for the case where the same test code is being run multiple times with different inputs. It should be possible to use this to hack a third level in (have the "parameter" be an array of name/function-pointer pairs), and kunit.py will parse the results correctly, as KTAP doesn't have this limitation.
The other thing you could do is to treat each "test group" as a KUnit suite, and just prefix them with "i915_{mock,life,perf}". This isn't ideal, but you could eventually use the test filtering to split them up.
Ultimately, supporting more deeply nested tests is something we're not opposed to doing in KUnit, we've just not had any need for it thus far, so haven't really looked into how we'd design and implement it. Now there's a potential user, we can look into it, though it's likely to be lower-priority here, given there are workarounds.
Thanks again, and I hope that helps a bit!
Cheers,
-- David