Skip to contentSkip to conversation

tests/perf: Fix B0 counter check in gen12-mi-rpc

PATCH In review Umesh Nerlige Ramappa 3 participants 7 messages Apr 21, 2020 – Apr 24, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/perf: Fix B0 counter check in gen12-mi-rpc

The gen12-mi-rpc test checks for B0 counter to be zero, however, occassionally the counter reads a non-zero value. To ensure the test works as expected, we check B0 with the preset value.

---
 tests/perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/perf.c +1 -1
index b7d5e50e..9d0ed45c 100644
@@ -3002,7 +3002,7 @@ gen12_test_mi_rpc(void)
 	 */
 	igt_assert_eq(report32[0], REPORT_ID);
 	igt_assert_neq(report32[1], 0);
-	igt_assert_eq(report32[format.b_off >> 2], 0);
+	igt_assert_neq(report32[format.b_off >> 2], 0x80808080);
 	igt_assert_eq(report32[format_size_32], 0x80808080);
 
 	drm_intel_bo_unmap(bo);
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for tests/perf: Fix B0 counter check in gen12-mi-rpc

== Series Details ==

== Series Details ==

Series: tests/perf: Fix B0 counter check in gen12-mi-rpc
URL : https://patchwork.freedesktop.org/series/76278/
State : failure

== Summary ==

CI Bug Log - changes from IGT_5604 -> IGTPW_4497
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_4497 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_4497, 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/IGTPW_4497/index.html

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_4497:

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@workarounds:
- fi-byt-j1900: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5604/fi-byt-j1900/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4497/fi-byt-j1900/igt@i915_selftest@[email protected]

Known issues
------------

Here are the changes found in IGTPW_4497 that come from known issues:

### IGT changes ###

#### Possible fixes ####

* igt@i915_selftest@live@gt_heartbeat:
- fi-kbl-soraka: [DMESG-FAIL][3] ([i915#541]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5604/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4497/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html

* igt@i915_selftest@live@gt_mocs:
- fi-snb-2600: [FAIL][5] ([i915#1763]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5604/fi-snb-2600/igt@i915_selftest@live@gt_mocs.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4497/fi-snb-2600/igt@i915_selftest@live@gt_mocs.html

#### Warnings ####

* igt@amdgpu/amd_basic@query-info:
- fi-bwr-2160: [FAIL][7] -> [SKIP][8] ([fdo#109271])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5604/fi-bwr-2160/igt@amdgpu/[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4497/fi-bwr-2160/igt@amdgpu/[email protected]

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1763]: https://gitlab.freedesktop.org/drm/intel/issues/1763
[i915#541]: https://gitlab.freedesktop.org/drm/intel/issues/541

Participating hosts (49 -> 43)
------------------------------

Additional (1): fi-kbl-7560u
Missing (7): fi-cml-u2 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_5604 -> IGTPW_4497

CI-20190529: 20190529
CI_DRM_8345: e1fa8774e58e663bec8257f678c2f8fd17088292 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4497: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4497/index.html
IGT_5604: 18cc19ece602ba552a8386222b49e7e82820f9aa @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4497/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw
In reply to Umesh Nerlige Ramappa
Quoted 3 lines · Umesh Nerlige Ramappa

The gen12-mi-rpc test checks for B0 counter to be zero, however, occassionally the counter reads a non-zero value. To ensure the test works as expected, we check B0 with the preset value.

What the value being reported?

Sounds like we should ask around see if there isn't a deeper problem with the HW configuration.

-Lionel

Quoted 12 lines
---
  tests/perf.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tests/perf.c +0 -0
index b7d5e50e..9d0ed45c 100644

tests/perf.c gen12_test_mi_rpc(void) · line 3008

Quoted 8 lines
tests/perf.c +1 -1
@@ -3002,7 +3002,7 @@ gen12_test_mi_rpc(void)
  	 */
  	igt_assert_eq(report32[0], REPORT_ID);
  	igt_assert_neq(report32[1], 0);
-	igt_assert_eq(report32[format.b_off >> 2], 0);
+	igt_assert_neq(report32[format.b_off >> 2], 0x80808080);
  	igt_assert_eq(report32[format_size_32], 0x80808080);
 
  	drm_intel_bo_unmap(bo);

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw
Quoted 11 lines · Lionel Landwerlin
Quoted 3 lines · Umesh Nerlige Ramappa

The gen12-mi-rpc test checks for B0 counter to be zero, however, occassionally the counter reads a non-zero value. To ensure the test works as expected, we check B0 with the preset value.

What the value being reported?

Sounds like we should ask around see if there isn't a deeper problem with the HW configuration.

I have seen values 0x121 and 0x1ec. The issue occurs sometimes on reboots. Subsequent runs I see that the counter is 0.

Thanks,
Umesh

Quoted 11 lines

-Lionel

Quoted 7 lines
---
 tests/perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

tests/perf.c gen12_test_mi_rpc(void) · line 3007

Quoted 12 lines
tests/perf.c +1 -1
index b7d5e50e..9d0ed45c 100644
@@ -3002,7 +3002,7 @@ gen12_test_mi_rpc(void)
 	 */
 	igt_assert_eq(report32[0], REPORT_ID);
 	igt_assert_neq(report32[1], 0);
-	igt_assert_eq(report32[format.b_off >> 2], 0);
+	igt_assert_neq(report32[format.b_off >> 2], 0x80808080);
 	igt_assert_eq(report32[format_size_32], 0x80808080);
 	drm_intel_bo_unmap(bo);

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#4 lore raw
Quoted 10 lines · Umesh Nerlige Ramappa
Quoted 9 lines · Lionel Landwerlin
Quoted 3 lines · Umesh Nerlige Ramappa

The gen12-mi-rpc test checks for B0 counter to be zero, however, occassionally the counter reads a non-zero value. To ensure the test works as expected, we check B0 with the preset value.

What the value being reported?

Quoted 7 lines
Quoted 2 lines

Sounds like we should ask around see if there isn't a deeper problem with the HW configuration.

I have seen values 0x121 and 0x1ec. The issue occurs sometimes on reboots. Subsequent runs I see that the counter is 0.

Thanks,
Umesh

Oh... I thought this test was using sanity_check_reports() on deltas between 2 reports.

Yeah I guess your change is fine then.

The test could be improved with sanity_check_reports.

-Lionel

Quoted 12 lines
Quoted 12 lines

-Lionel

Quoted 7 lines

---
 tests/perf.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
Quoted 4 lines
Quoted 4 lines
tests/perf.c +0 -0
index b7d5e50e..9d0ed45c 100644
Quoted 10 lines

tests/perf.c gen12_test_mi_rpc(void) · line 3007

Quoted 8 lines
tests/perf.c +1 -1
@@ -3002,7 +3002,7 @@ gen12_test_mi_rpc(void)
       */
      igt_assert_eq(report32[0], REPORT_ID);
      igt_assert_neq(report32[1], 0);
-    igt_assert_eq(report32[format.b_off >> 2], 0);
+    igt_assert_neq(report32[format.b_off >> 2], 0x80808080);
      igt_assert_eq(report32[format_size_32], 0x80808080);
      drm_intel_bo_unmap(bo);

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#5 lore raw
Quoted 20 lines · Lionel Landwerlin
Quoted 10 lines · Umesh Nerlige Ramappa
Quoted 9 lines · Lionel Landwerlin
Quoted 3 lines · Umesh Nerlige Ramappa

The gen12-mi-rpc test checks for B0 counter to be zero, however, occassionally the counter reads a non-zero value. To ensure the test works as expected, we check B0 with the preset value.

What the value being reported?

Quoted 7 lines
Quoted 2 lines

Sounds like we should ask around see if there isn't a deeper problem with the HW configuration.

I have seen values 0x121 and 0x1ec. The issue occurs sometimes on reboots. Subsequent runs I see that the counter is 0.

Thanks,
Umesh

Quoted 6 lines

Oh... I thought this test was using sanity_check_reports() on deltas between 2 reports.

Yeah I guess your change is fine then.

The test could be improved with sanity_check_reports.

Agreed. For now, the test is only checking if the report landed entirely. Please let me know if this is good enough for an R-b.

Thanks,
Umesh

Quoted 31 lines

-Lionel

Quoted 26 lines
Quoted 26 lines

-Lionel

Quoted 19 lines

---
 tests/perf.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
tests/perf.c +1 -1
index b7d5e50e..9d0ed45c 100644
@@ -3002,7 +3002,7 @@ gen12_test_mi_rpc(void)
       */
      igt_assert_eq(report32[0], REPORT_ID);
      igt_assert_neq(report32[1], 0);
-    igt_assert_eq(report32[format.b_off >> 2], 0);
+    igt_assert_neq(report32[format.b_off >> 2], 0x80808080);
      igt_assert_eq(report32[format_size_32], 0x80808080);
      drm_intel_bo_unmap(bo);

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Reviewed-by
#6 lore raw
Quoted 25 lines · Umesh Nerlige Ramappa
Quoted 24 lines · Lionel Landwerlin
Quoted 10 lines · Umesh Nerlige Ramappa
Quoted 9 lines · Lionel Landwerlin
Quoted 3 lines · Umesh Nerlige Ramappa

The gen12-mi-rpc test checks for B0 counter to be zero, however, occassionally the counter reads a non-zero value. To ensure the test works as expected, we check B0 with the preset value.

What the value being reported?

Quoted 7 lines
Quoted 2 lines

Sounds like we should ask around see if there isn't a deeper problem with the HW configuration.

I have seen values 0x121 and 0x1ec. The issue occurs sometimes on reboots. Subsequent runs I see that the counter is 0.

Thanks,
Umesh

Oh... I thought this test was using sanity_check_reports() on deltas between 2 reports.

Yeah I guess your change is fine then.

Quoted 7 lines
Quoted 2 lines

The test could be improved with sanity_check_reports.

Agreed. For now, the test is only checking if the report landed entirely. Please let me know if this is good enough for an R-b.

Thanks,
Umesh

Quoted 17 lines
Quoted 17 lines

-Lionel

Quoted 12 lines
Quoted 12 lines

-Lionel

Quoted 7 lines

---
 tests/perf.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
tests/perf.c +0 -0
index b7d5e50e..9d0ed45c 100644
@@ -3002,7 +3002,7 @@ gen12_test_mi_rpc(void)
       */
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines

tests/perf.c gen12_test_mi_rpc(void) · line 3008

Quoted 6 lines
tests/perf.c +1 -1
      igt_assert_eq(report32[0], REPORT_ID);
      igt_assert_neq(report32[1], 0);
-    igt_assert_eq(report32[format.b_off >> 2], 0);
+    igt_assert_neq(report32[format.b_off >> 2], 0x80808080);
      igt_assert_eq(report32[format_size_32], 0x80808080);
      drm_intel_bo_unmap(bo);

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev