Hi, the following test cases fails on APL with latest configuration Test cases ====================================== gem_workarounds@basic-read ====================================== Software ====================================== kernel version : 4.12.0-rc2-drm-tip-ww21-commit-7808a0f+ architecture : x86_64 os version : Ubuntu 16.10 os codename : yakkety kernel driver : i915 bios revision : 5.6 bios release date : 03/10/2017 ksc : 16.0 ====================================== Graphic drivers ====================================== Component: drm tag: libdrm-2.4.80-15-geeb51df commit: eeb51df3ced003515ba4a71492eeb86c145cb77e Component: cairo tag: 1.15.4-21-g9d44136 commit: 9d44136ef8e2a1ad2c6631beb4bbdaeed7a2dad8 Component: intel-gpu-tools tag: intel-gpu-tools-1.18-209-g26c266f commit: 26c266febe1fc97c46d25a33aaf6a1869a51c008 Component: piglit tag: piglit-v1 commit: 9cc5b2169ab6eb8a6a09329836d8d884d4350eec ====================================== Hardware ====================================== motherboard model : NUC6CAYS motherboard id : NUC6CAYB form factor : Desktop manufacturer : Intelcorporation cpu family : Celeron cpu family id : 6 cpu information : Intel(R) Celeron(R) CPU J3455 @ 1.50GHz gpu card : Intel Corporation Device 5a85 (rev 0b) (prog-if 00 [VGA controller]) memory ram : 15.54 GB max memory ram : 32 GB cpu thread : 4 cpu core : 4 cpu model : 92 cpu stepping : 9 signature : Type 0, Family 6, Model 92, Stepping 9 hard drive : 74GiB (80GB) current cd clock frequency : 288000 kHz maximum cd clock frequency : 624000 kHz displays connected : DP-1 DP-2 ====================================== Firmware ====================================== dmc fw loaded : yes dmc version : 1.7 guc fw loaded : NONE guc version wanted : 0.0 guc version found : 0.0 ====================================== kernel parameters ====================================== quiet drm.debug=0xe auto panic=1 nmi_watchdog=panic resume=/dev/sda3 fastboot Test output ============================ IGT-Version: 1.18-g26c266f (x86_64) (Linux: 4.12.0-rc2-drm-tip-ww21-commit-7808a0f+ x86_64) (gem_workarounds:1478) drmtest-DEBUG: Test requirement passed: !(fd<0) (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0' (gem_workarounds:1478) drmtest-DEBUG: Test requirement passed: drmSetMaster(fd) == 0 (gem_workarounds:1478) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd) (gem_workarounds:1478) ioctl-wrappers-DEBUG: Test requirement passed: err == 0 (gem_workarounds:1478) intel-chipset-DEBUG: Test requirement passed: pci_dev (gem_workarounds:1478) DEBUG: Test requirement passed: pci_dev (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0' (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0' (gem_workarounds:1478) DEBUG: i915_wa_registers: Workarounds applied: 15 (gem_workarounds:1478) DEBUG: HW whitelist count for rcs0: 3 (gem_workarounds:1478) DEBUG: HW whitelist count for bcs0: 0 (gem_workarounds:1478) DEBUG: HW whitelist count for vcs0: 0 (gem_workarounds:1478) DEBUG: HW whitelist count for vecs0: 0 (gem_workarounds:1478) DEBUG: 0xE4F0: 0x81008100, mask: 0x00008100, read: 0x00000000, status: FAIL (gem_workarounds:1478) DEBUG: 0xE184: 0x00200020, mask: 0x00000020, read: 0x00000000, status: FAIL (gem_workarounds:1478) DEBUG: 0xE194: 0x00140014, mask: 0x00000014, read: 0x00000000, status: FAIL (gem_workarounds:1478) DEBUG: 0x7004: 0x00420042, mask: 0x00000042, read: 0x00002980, status: FAIL (gem_workarounds:1478) DEBUG: 0xE188: 0x00080000, mask: 0x00000008, read: 0x00000000, status: OK (gem_workarounds:1478) DEBUG: 0x7300: 0x80208020, mask: 0x00008020, read: 0x00000800, status: FAIL (gem_workarounds:1478) DEBUG: 0x7300: 0x00100010, mask: 0x00000010, read: 0x00000800, status: FAIL (gem_workarounds:1478) DEBUG: 0xE180: 0x20002000, mask: 0x00002000, read: 0x00000000, status: FAIL (gem_workarounds:1478) DEBUG: 0x24D0: 0x00002248, mask: 0xFFFFFFFF, read: 0x00002248, status: OK (gem_workarounds:1478) DEBUG: 0x24D4: 0x00002580, mask: 0xFFFFFFFF, read: 0x00002580, status: OK (gem_workarounds:1478) DEBUG: 0x24D8: 0x00007304, mask: 0xFFFFFFFF, read: 0x00007304, status: OK (gem_workarounds:1478) DEBUG: 0xE4F0: 0x00200020, mask: 0x00000020, read: 0x00000000, status: FAIL (gem_workarounds:1478) DEBUG: 0x20E4: 0x04000400, mask: 0x00000400, read: 0x00000400, status: OK (gem_workarounds:1478) DEBUG: 0x7014: 0x01000100, mask: 0x00000100, read: 0x00000000, status: FAIL (gem_workarounds:1478) DEBUG: 0x4AB0: 0x0004AB1B, mask: 0x00040000, read: 0x0004ab1b, status: OK (gem_workarounds:1478) igt-core-DEBUG: Starting subtest: basic-read (gem_workarounds:1478) drmtest-DEBUG: Test requirement passed: !(fd<0) (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0' (gem_workarounds:1478) DEBUG: Address val mask read result (gem_workarounds:1478) DEBUG: 0x0E4F0 0x81008100 0x00008100 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E4F0 0x81008100 0x00008100 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x0E184 0x00200020 0x00000020 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E184 0x00200020 0x00000020 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x0E194 0x00140014 0x00000014 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E194 0x00140014 0x00000014 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x07004 0x00420042 0x00000042 0x000029C2 OK (gem_workarounds:1478) DEBUG: 0x0E188 0x00080000 0x00000008 0x00000000 OK (gem_workarounds:1478) DEBUG: 0x07300 0x80208020 0x00008020 0x00008830 OK (gem_workarounds:1478) DEBUG: 0x07300 0x00100010 0x00000010 0x00008830 OK (gem_workarounds:1478) DEBUG: 0x0E180 0x20002000 0x00002000 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E180 0x20002000 0x00002000 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x024D0 0x00002248 0xFFFFFFFF 0x00002248 OK (gem_workarounds:1478) DEBUG: 0x024D4 0x00002580 0xFFFFFFFF 0x00002580 OK (gem_workarounds:1478) DEBUG: 0x024D8 0x00007304 0xFFFFFFFF 0x00007304 OK (gem_workarounds:1478) DEBUG: 0x0E4F0 0x00200020 0x00000020 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E4F0 0x00200020 0x00000020 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x020E4 0x04000400 0x00000400 0x00000400 OK (gem_workarounds:1478) DEBUG: 0x07014 0x01000100 0x00000100 0x00000100 OK (gem_workarounds:1478) DEBUG: 0x04AB0 0x0004AB1B 0x00040000 0x0004AB1B OK (gem_workarounds:1478) CRITICAL: Test assertion failure function check_workarounds, file gem_workarounds.c:103: (gem_workarounds:1478) CRITICAL: Failed assertion: workaround_fail_count() == 0 (gem_workarounds:1478) CRITICAL: Last errno: 2, No such file or directory (gem_workarounds:1478) CRITICAL: error: 5 != 0 Stack trace: #0 [__igt_fail_assert+0x101] #1 [check_workarounds+0xfd] #2 [__real_main124+0x72] #3 [main+0x33] #4 [__libc_start_main+0xf1] #5 [_start+0x2a] #6 [<unknown>+0x2a] Subtest basic-read failed. **** DEBUG **** (gem_workarounds:1478) drmtest-DEBUG: Test requirement passed: !(fd<0) (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0' (gem_workarounds:1478) DEBUG: Address val mask read result (gem_workarounds:1478) DEBUG: 0x0E4F0 0x81008100 0x00008100 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E4F0 0x81008100 0x00008100 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x0E184 0x00200020 0x00000020 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E184 0x00200020 0x00000020 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x0E194 0x00140014 0x00000014 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E194 0x00140014 0x00000014 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x07004 0x00420042 0x00000042 0x000029C2 OK (gem_workarounds:1478) DEBUG: 0x0E188 0x00080000 0x00000008 0x00000000 OK (gem_workarounds:1478) DEBUG: 0x07300 0x80208020 0x00008020 0x00008830 OK (gem_workarounds:1478) DEBUG: 0x07300 0x00100010 0x00000010 0x00008830 OK (gem_workarounds:1478) DEBUG: 0x0E180 0x20002000 0x00002000 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E180 0x20002000 0x00002000 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x024D0 0x00002248 0xFFFFFFFF 0x00002248 OK (gem_workarounds:1478) DEBUG: 0x024D4 0x00002580 0xFFFFFFFF 0x00002580 OK (gem_workarounds:1478) DEBUG: 0x024D8 0x00007304 0xFFFFFFFF 0x00007304 OK (gem_workarounds:1478) DEBUG: 0x0E4F0 0x00200020 0x00000020 0x00000000 FAIL (gem_workarounds:1478) WARNING: 0x0E4F0 0x00200020 0x00000020 0x00000000 FAIL (gem_workarounds:1478) DEBUG: 0x020E4 0x04000400 0x00000400 0x00000400 OK (gem_workarounds:1478) DEBUG: 0x07014 0x01000100 0x00000100 0x00000100 OK (gem_workarounds:1478) DEBUG: 0x04AB0 0x0004AB1B 0x00040000 0x0004AB1B OK (gem_workarounds:1478) CRITICAL: Test assertion failure function check_workarounds, file gem_workarounds.c:103: (gem_workarounds:1478) CRITICAL: Failed assertion: workaround_fail_count() == 0 (gem_workarounds:1478) CRITICAL: Last errno: 2, No such file or directory (gem_workarounds:1478) CRITICAL: error: 5 != 0 **** END **** Subtest basic-read: FAIL (0.033s) (gem_workarounds:1478) igt-core-DEBUG: Exiting with status code 99 (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0' Attachments =========================== dmesg.log kern.log cairo__config.log, which is the config log from build drm__config.log, which is the config log from build intel-gpu-tools__config.log, which is the config log from build
Created attachment 131490 [details] dmesg.log
Created attachment 131491 [details] kern.log
Created attachment 131492 [details] cairo__config.log
Created attachment 131493 [details] drm__config.log
Created attachment 131494 [details] intel-gpu-tools__config.log
*** Bug 101175 has been marked as a duplicate of this bug. ***
(In reply to Humberto Israel Perez Rodriguez from comment #0) > Subtest basic-read failed. > **** DEBUG **** > (gem_workarounds:1478) drmtest-DEBUG: Test requirement passed: !(fd<0) > (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory > '/sys/kernel/debug/dri/0' > (gem_workarounds:1478) DEBUG: Address val mask read > result > (gem_workarounds:1478) DEBUG: 0x0E4F0 0x81008100 0x00008100 > 0x00000000 FAIL Looks like all the failed workarounds where read as zero by intel_register_read. Not sure if that is notable though.
(In reply to krisman from comment #7) > (In reply to Humberto Israel Perez Rodriguez from comment #0) > > > Subtest basic-read failed. > > **** DEBUG **** > > (gem_workarounds:1478) drmtest-DEBUG: Test requirement passed: !(fd<0) > > (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory > > '/sys/kernel/debug/dri/0' > > (gem_workarounds:1478) DEBUG: Address val mask read > > result > > (gem_workarounds:1478) DEBUG: 0x0E4F0 0x81008100 0x00008100 > > 0x00000000 FAIL > > Looks like all the failed workarounds where read as zero by > intel_register_read. Not sure if that is notable though. I'm not sure if it helps but can you boot with intel_iommu=igfx_off and retest?
Humberto please retest with option provided
(In reply to krisman from comment #8) > (In reply to krisman from comment #7) > > (In reply to Humberto Israel Perez Rodriguez from comment #0) > > > > > Subtest basic-read failed. > > > **** DEBUG **** > > > (gem_workarounds:1478) drmtest-DEBUG: Test requirement passed: !(fd<0) > > > (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory > > > '/sys/kernel/debug/dri/0' > > > (gem_workarounds:1478) DEBUG: Address val mask read > > > result > > > (gem_workarounds:1478) DEBUG: 0x0E4F0 0x81008100 0x00008100 > > > 0x00000000 FAIL > > > > Looks like all the failed workarounds where read as zero by > > intel_register_read. Not sure if that is notable though. > > I'm not sure if it helps but can you boot with intel_iommu=igfx_off and > retest? Hi Krisman, i've tried with the option intel_iommu=igfx_off in the grub as you mentioned, but this i think is not a real failure because for the following reason : gem_workarounds:1418) CRITICAL: Test assertion failure function check_workarounds, file gem_workarounds.c:103: (gem_workarounds:1418) CRITICAL: Failed assertion: workaround_fail_count() == 0 (gem_workarounds:1418) CRITICAL: Last errno: 2, No such file or directory (gem_workarounds:1418) CRITICAL: error: 5 != 0 the test is trying to access to a file but there is not in igt folder.
(In reply to Humberto Israel Perez Rodriguez from comment #10) > (In reply to krisman from comment #8) > > (In reply to krisman from comment #7) > > > (In reply to Humberto Israel Perez Rodriguez from comment #0) > > > > > > > Subtest basic-read failed. > > > > **** DEBUG **** > > > > (gem_workarounds:1478) drmtest-DEBUG: Test requirement passed: !(fd<0) > > > > (gem_workarounds:1478) igt-debugfs-DEBUG: Opening debugfs directory > > > > '/sys/kernel/debug/dri/0' > > > > (gem_workarounds:1478) DEBUG: Address val mask read > > > > result > > > > (gem_workarounds:1478) DEBUG: 0x0E4F0 0x81008100 0x00008100 > > > > 0x00000000 FAIL > > > > > > Looks like all the failed workarounds where read as zero by > > > intel_register_read. Not sure if that is notable though. > > > > I'm not sure if it helps but can you boot with intel_iommu=igfx_off and > > retest? > > Hi Krisman, i've tried with the option intel_iommu=igfx_off in the grub as > you mentioned, but this i think is not a real failure because for the > following reason : > > > gem_workarounds:1418) CRITICAL: Test assertion failure function > check_workarounds, file gem_workarounds.c:103: > (gem_workarounds:1418) CRITICAL: Failed assertion: workaround_fail_count() > == 0 > (gem_workarounds:1418) CRITICAL: Last errno: 2, No such file or directory > (gem_workarounds:1418) CRITICAL: error: 5 != 0 > > > the test is trying to access to a file but there is not in igt folder. the igt_assertion will print the last errno regardless of its relation to the failed assertion. That is why it shows -ENOENT here. My understanding is it is not related to this issue. So, my understanding is that you ran with that parameter and it still fails, can you please provide the entire log for confirmation? Thanks!
Humberto bug need your attention
Can you try with: diff --git a/tests/gem_workarounds.c b/tests/gem_workarounds.c index c7286d86..c09512cb 100644 --- a/tests/gem_workarounds.c +++ b/tests/gem_workarounds.c @@ -45,11 +45,11 @@ struct intel_wa_reg { static struct intel_wa_reg *wa_regs; static int num_wa_regs; -static void wait_gpu(void) +static int open_and_wake_gpu(void) { int fd = drm_open_driver(DRIVER_INTEL); gem_quiescent_gpu(fd); - close(fd); + return fd; } static void test_hang_gpu(void) @@ -67,13 +67,13 @@ static void test_suspend_resume(void) static int workaround_fail_count(void) { - int i, fail_count = 0; + int i, fd, fail_count = 0; /* There is a small delay after coming ot of rc6 to the correct render context values will get loaded by hardware (bdw,chv). This here ensures that we have the correct context loaded before we start to read values */ - wait_gpu(); + fd = open_and_wake_gpu(); igt_debug("Address\tval\t\tmask\t\tread\t\tresult\n"); @@ -95,6 +95,8 @@ static int workaround_fail_count(void) } } + close(fd); + return fail_count; }
I can't reproduce with 00:02.0 0300: 8086:0412 (rev 06)
(In reply to Mika Kuoppala from comment #13) > Can you try with: > > diff --git a/tests/gem_workarounds.c b/tests/gem_workarounds.c > index c7286d86..c09512cb 100644 > --- a/tests/gem_workarounds.c > +++ b/tests/gem_workarounds.c > @@ -45,11 +45,11 @@ struct intel_wa_reg { > static struct intel_wa_reg *wa_regs; > static int num_wa_regs; > > -static void wait_gpu(void) > +static int open_and_wake_gpu(void) > { > int fd = drm_open_driver(DRIVER_INTEL); > gem_quiescent_gpu(fd); > - close(fd); > + return fd; > } > > static void test_hang_gpu(void) > @@ -67,13 +67,13 @@ static void test_suspend_resume(void) > > static int workaround_fail_count(void) > { > - int i, fail_count = 0; > + int i, fd, fail_count = 0; > > /* There is a small delay after coming ot of rc6 to the correct > render context values will get loaded by hardware (bdw,chv). > This here ensures that we have the correct context loaded before > we start to read values */ > - wait_gpu(); > + fd = open_and_wake_gpu(); > > igt_debug("Address\tval\t\tmask\t\tread\t\tresult\n"); > > @@ -95,6 +95,8 @@ static int workaround_fail_count(void) > } > } > > + close(fd); > + > return fail_count; > } i cant apply the path, git show me the following error fatal: corrupt patch at line 43 the command that i am using is the following git apply --stat --verbose file.patch
Created attachment 132795 [details] [review] Mika's debug patch. (In reply to Humberto Israel Perez Rodriguez from comment #15) > (In reply to Mika Kuoppala from comment #13) > > i cant apply the path, git show me the following error > > fatal: corrupt patch at line 43 Take the attached version instead. It's the exact same patch from Mika.
(In reply to krisman from comment #16) > Created attachment 132795 [details] [review] [review] > Mika's debug patch. > > (In reply to Humberto Israel Perez Rodriguez from comment #15) > > (In reply to Mika Kuoppala from comment #13) > > > > i cant apply the path, git show me the following error > > > > fatal: corrupt patch at line 43 > > Take the attached version instead. It's the exact same patch from Mika. Hi Krisman, is the same failure with the patch applied
Still no changes with kernel: commit ad6ab9f96437f0cb1f4d8a7840fd9eeb894eb12e Author: Gustavo Padovan <gustavo.padovan@collabora.com> AuthorDate: Fri Aug 18 15:26:42 2017 -0300 Commit: Gustavo Padovan <gustavo.padovan@collabora.com> CommitDate: Fri Aug 18 15:26:42 2017 -0300 drm-tip: 2017y-08m-18d-18h-21m-46s UTC integration manifest No patches applied.
I added new platforms, moving this bug to APL instead of BXT.
(In reply to Elizabeth from comment #18) > Still no changes with kernel: > > commit ad6ab9f96437f0cb1f4d8a7840fd9eeb894eb12e > Author: Gustavo Padovan <gustavo.padovan@collabora.com> > AuthorDate: Fri Aug 18 15:26:42 2017 -0300 > Commit: Gustavo Padovan <gustavo.padovan@collabora.com> > CommitDate: Fri Aug 18 15:26:42 2017 -0300 > > drm-tip: 2017y-08m-18d-18h-21m-46s UTC integration manifest > > No patches applied. Hardware Information ====================================== motherboard model : NUC6CAYS motherboard id : NUC6CAYB form factor : Desktop manufacturer : Intelcorporation cpu family : Celeron cpu family id : 6 cpu information : Intel(R) Celeron(R) CPU J3455 @ 1.50GHz gpu card : Intel Corporation Device 5a85 (rev 0b) (prog-if 00 [VGA controller]) memory ram : 15.54 GB max memory ram : 32 GB display resolution : 3840x1080 cpu thread : 4 cpu core : 4 cpu model : 92 cpu stepping : 9 socket : Other signature : Type 0, Family 6, Model 92, Stepping 9 hard drive : 74GiB (80GB) current cd clock frequency : 288000 kHz maximum cd clock frequency : 624000 kHz displays connected : DP-1 DP-2
*** Bug 102134 has been marked as a duplicate of this bug. ***
igt commit 790a066fe990d1cf85bb2d39f6d8f78400b08e03 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Sep 26 22:09:26 2017 +0100 igt/gem_workarounds: Read the workaround registers from the active context The workarounds are only valid whilst the GPU is active. To be sure we are reading the registers in the right state, issue the reads from the GPU. v2: Show ignored write-only failures as debug. v3: PAGE_ALIGN. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
verifued - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_3180/shard-apl8/igt@gem_workarounds@basic-read.html
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.