Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t v2 0/1] tests/xe/perf_pmu: Tests for the XE pmu interface
@ 2023-07-04 13:55 Venkata Ramana Nayana
  2023-07-04 13:55 ` [igt-dev] [PATCH v2 1/1] " Venkata Ramana Nayana
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Venkata Ramana Nayana @ 2023-07-04 13:55 UTC (permalink / raw)
  To: igt-dev

There are set of engine group busyness counters provided by HW which are
exposed via PMU events. Adding a basic unit tests to read those
counters.

v2: Added idle condition checks while reading the counters. (Rahul)

Below is the Xe PMU driver patch for expose events and it's in review.
Verified igt tests with these changes.
https://patchwork.freedesktop.org/series/119504/


./build/tests/xe_perf_pmu --r compute-busy --debug
IGT-Version: 1.27.1-g22009ac9c (x86_64) (Linux: 6.4.0-xe+ x86_64)
Opened device: /dev/dri/card1
(xe_perf_pmu:3946) drmtest-DEBUG: Test requirement passed: !(fd<0)
Starting subtest: compute-busy
(xe_perf_pmu:3946) DEBUG: Test requirement passed: !(!num_placements)
(xe_perf_pmu:3946) DEBUG: Test requirement passed: !(perf_fd < 0 &&
errno == ENODEV)
(xe_perf_pmu:3946) DEBUG: Incrementing counter compute-busy-gt-0
1310720 ns
(xe_perf_pmu:3946) DEBUG: Test requirement passed: !(!num_placements)
(xe_perf_pmu:3946) DEBUG: Test requirement passed: !(perf_fd < 0 &&
errno == ENODEV)
(xe_perf_pmu:3946) DEBUG: Incrementing counter compute-busy-gt-1
1292800 ns
Subtest compute-busy: SUCCESS (0.532s)
(xe_perf_pmu:3946) igt_core-DEBUG: Exiting with status code 0

Cc: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
Signed-off-by: Venkata Ramana Nayana <venkata.ramana.nayana@intel.com>


Venkata Ramana Nayana (1):
  tests/xe/perf_pmu: Tests for the XE pmu interface

 include/drm-uapi/xe_drm.h |  22 +++
 lib/igt_perf.c            |  36 +++++
 lib/igt_perf.h            |   5 +
 tests/meson.build         |   1 +
 tests/xe/xe_perf_pmu.c    | 331 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 395 insertions(+)
 create mode 100644 tests/xe/xe_perf_pmu.c

-- 
2.25.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-10-07  0:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-04 13:55 [igt-dev] [PATCH i-g-t v2 0/1] tests/xe/perf_pmu: Tests for the XE pmu interface Venkata Ramana Nayana
2023-07-04 13:55 ` [igt-dev] [PATCH v2 1/1] " Venkata Ramana Nayana
2023-07-10  6:32   ` Kumar, Janga Rahul
2023-09-20 23:10   ` Belgaumkar, Vinay
2023-10-07  0:53     ` Dixit, Ashutosh
2023-10-07  0:58   ` Dixit, Ashutosh
2023-07-04 17:14 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/xe/perf_pmu: Tests for the XE pmu interface (rev2) Patchwork
2023-07-04 22:11 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox