Skip to contentSkip to conversation

tests/perf_pmu: Sync invalid-init with i915 changes

PATCH In review Tvrtko Ursulin 3 participants 4 messages Nov 28, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/perf_pmu: Sync invalid-init with i915 changes

From: Tvrtko Ursulin <[email protected]>

i915 started returning -EINVAL for incorrect CPU.

---
 tests/perf_pmu.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
tests/perf_pmu.c +3 -2
index 8d58ecea3528..46c39795a141 100644
@@ -661,7 +661,8 @@ multi_client(int gem_fd, const struct intel_execution_engine2 *e)
  *  - sampling period is not supported
  *  - pid > 0 is not supported since we can't count per-process (we count
  *    per whole system)
- *  - cpu != 0 is not supported since i915 PMU exposes cpumask for CPU0
+ *  - cpu != 0 is not supported since i915 PMU only allows running on one cpu
+ *    and that is normally CPU0.
  */
 static void invalid_init(void)
 {
@@ -687,7 +688,7 @@ do { \
 
 	ATTR_INIT();
 	igt_assert_eq(perf_event_open(&attr, -1, 1, -1, 0), -1);
-	igt_assert_eq(errno, ENODEV);
+	igt_assert_eq(errno, EINVAL);
 }
 
 static void init_other(unsigned int i, bool valid)
Signature · 6 lines
2.14.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw

✓ Fi.CI.BAT: success for tests/perf_pmu: Sync invalid-init with i915 changes

In reply to Tvrtko Ursulin
== Series Details ==

== Series Details ==

Series: tests/perf_pmu: Sync invalid-init with i915 changes
URL : https://patchwork.freedesktop.org/series/34530/
State : success

== Summary ==

IGT patchset tested on top of latest successful build
53f2b4b4ce2372da0b3b741d934dd5a9110ac1e2 igt/perf_pmu: Keep batch_duration_ns as the minimum measurement duration

with latest DRM-Tip kernel build CI_DRM_3398
9cf8a68eee7d drm-tip: 2017y-11m-28d-09h-02m-29s UTC integration manifest

No testlist changes.

Test kms_pipe_crc_basic:

        Subgroup suspend-read-crc-pipe-b:
                incomplete -> PASS       (fi-snb-2520m) fdo#103713

fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713

fi-bdw-5557u     total:289  pass:268  dwarn:0   dfail:0   fail:0   skip:21  time:442s
fi-bdw-gvtdvm    total:289  pass:264  dwarn:1   dfail:0   fail:0   skip:24  time:491s
fi-blb-e6850     total:289  pass:223  dwarn:1   dfail:0   fail:0   skip:65  time:387s
fi-bsw-n3050     total:289  pass:243  dwarn:0   dfail:0   fail:0   skip:46  time:543s
fi-bwr-2160      total:289  pass:183  dwarn:0   dfail:0   fail:0   skip:106 time:280s
fi-bxt-dsi       total:289  pass:259  dwarn:0   dfail:0   fail:0   skip:30  time:516s
fi-bxt-j4205     total:289  pass:260  dwarn:0   dfail:0   fail:0   skip:29  time:507s
fi-byt-j1900     total:289  pass:254  dwarn:0   dfail:0   fail:0   skip:35  time:496s
fi-byt-n2820     total:289  pass:250  dwarn:0   dfail:0   fail:0   skip:39  time:489s
fi-elk-e7500     total:289  pass:229  dwarn:0   dfail:0   fail:0   skip:60  time:432s
fi-gdg-551       total:289  pass:178  dwarn:1   dfail:0   fail:1   skip:109 time:271s
fi-glk-1         total:289  pass:261  dwarn:0   dfail:0   fail:0   skip:28  time:543s
fi-hsw-4770      total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:430s
fi-hsw-4770r     total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:439s
fi-ivb-3520m     total:289  pass:260  dwarn:0   dfail:0   fail:0   skip:29  time:489s
fi-ivb-3770      total:289  pass:260  dwarn:0   dfail:0   fail:0   skip:29  time:457s
fi-kbl-7500u     total:289  pass:264  dwarn:1   dfail:0   fail:0   skip:24  time:490s
fi-kbl-7560u     total:289  pass:270  dwarn:0   dfail:0   fail:0   skip:19  time:533s
fi-kbl-7567u     total:289  pass:269  dwarn:0   dfail:0   fail:0   skip:20  time:479s
fi-kbl-r         total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:533s
fi-pnv-d510      total:289  pass:222  dwarn:1   dfail:0   fail:0   skip:66  time:588s
fi-skl-6260u     total:289  pass:269  dwarn:0   dfail:0   fail:0   skip:20  time:448s
fi-skl-6600u     total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:545s
fi-skl-6700hq    total:289  pass:263  dwarn:0   dfail:0   fail:0   skip:26  time:570s
fi-skl-6700k     total:289  pass:265  dwarn:0   dfail:0   fail:0   skip:24  time:521s
fi-skl-6770hq    total:289  pass:269  dwarn:0   dfail:0   fail:0   skip:20  time:517s
fi-skl-gvtdvm    total:289  pass:265  dwarn:1   dfail:0   fail:0   skip:23  time:494s
fi-snb-2520m     total:289  pass:250  dwarn:0   dfail:0   fail:0   skip:39  time:571s
fi-snb-2600      total:289  pass:249  dwarn:0   dfail:0   fail:0   skip:40  time:424s
Blacklisted hosts:
fi-cfl-s2        total:289  pass:263  dwarn:0   dfail:0   fail:0   skip:26  time:608s
fi-glk-dsi       total:289  pass:259  dwarn:0   dfail:0   fail:0   skip:30  time:496s

== Logs ==

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

#3 lore raw

✓ Fi.CI.IGT: success for tests/perf_pmu: Sync invalid-init with i915 changes

In reply to Tvrtko Ursulin
== Series Details ==

== Series Details ==

Series: tests/perf_pmu: Sync invalid-init with i915 changes
URL : https://patchwork.freedesktop.org/series/34530/
State : success

== Summary ==

Blacklisted hosts:

shard-apl        total:2348 pass:1453 dwarn:20  dfail:18  fail:10  skip:838 time:10677s
shard-hsw        total:2662 pass:1526 dwarn:9   dfail:0   fail:11  skip:1116 time:9280s
shard-snb        total:2462 pass:1185 dwarn:15  dfail:6   fail:6   skip:1246 time:7709s

== Logs ==

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