All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t v3 0/3] lib/xe_spin: introduced fixed duration xe_spin
@ 2023-09-05 15:02 Marcin Bernatowicz
  2023-09-05 15:02 ` [igt-dev] [PATCH i-g-t v3 1/3] lib/xe_spin: xe_spin_opts for xe_spin initialization Marcin Bernatowicz
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Marcin Bernatowicz @ 2023-09-05 15:02 UTC (permalink / raw)
  To: igt-dev

Introduced struct xe_spin_opts for xe_spin initialization,
adjusted tests to new xe_spin_init signature.

Extended spinner with fixed duration capability. It allows
to prepare fixed duration (ex. 10ms) workloads and take workloads/second
measurements, a handy utility for scheduling tests.

Basic test for xe_spin with fixed duration.

v2: - added asserts in div64_u64_round_up, duration_to_ctx_ticks,
      simplified loop_addr (Zbyszek)
    - added xe_spin_init_opts macro (Zbyszek)
    - corrected patch title (Kamil)
    - Added assert for expected spinner duration. (Zbyszek)
    A median of 5x100ms spins duration is computed, which should
    satisfy CI runs, although better accuracy is achieved with
    disabled logging (echo 0 > /sys/module/drm/parameters/debug).

v3: - extracted xe_spin_opts to separate patch (Kamil)
    - div64_u64_round_up assert on overflow (Kamil)
    - enum indentation cleanup in xe_spin.c (Kamil)

Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>

Marcin Bernatowicz (3):
  lib/xe_spin: xe_spin_opts for xe_spin initialization
  lib/xe_spin: fixed duration xe_spin capability
  tests/xe_spin_batch: spin-fixed-duration

 lib/xe/xe_spin.c               | 123 ++++++++++++++++++++++++++++-----
 lib/xe/xe_spin.h               |  27 +++++++-
 tests/intel/xe_dma_buf_sync.c  |   6 +-
 tests/intel/xe_exec_balancer.c |   9 ++-
 tests/intel/xe_exec_reset.c    |  24 ++++---
 tests/intel/xe_exec_threads.c  |   7 +-
 tests/intel/xe_spin_batch.c    |  72 +++++++++++++++++++
 tests/intel/xe_vm.c            |   7 +-
 8 files changed, 231 insertions(+), 44 deletions(-)

-- 
2.30.2

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [igt-dev] [PATCH i-g-t v2 0/2] lib/xe_spin: introduced fixed duration xe_spin
@ 2023-08-18 10:21 Marcin Bernatowicz
  2023-09-05 14:23 ` [igt-dev] [PATCH i-g-t v3 0/3] " Marcin Bernatowicz
  0 siblings, 1 reply; 14+ messages in thread
From: Marcin Bernatowicz @ 2023-08-18 10:21 UTC (permalink / raw)
  To: igt-dev

Introduced struct xe_spin_opts for xe_spin initialization,
adjusted tests to new xe_spin_init signature.

Extended spinner with fixed duration capability. It allows
to prepare fixed duration (ex. 10ms) workloads and take workloads/second
measurements, a handy utility for scheduling tests.

Basic test for xe_spin with fixed duration.

v2: - added asserts in div64_u64_round_up, duration_to_ctx_ticks,
      simplified loop_addr (Zbyszek)
    - added xe_spin_init_opts macro (Zbyszek)
    - corrected patch title (Kamil)
    - Added assert for expected spinner duration. (Zbyszek)
    A median of 5x100ms spins duration is computed, which should
    satisfy CI runs, although better accuracy is achieved with
    disabled logging (echo 0 > /sys/module/drm/parameters/debug).


Marcin Bernatowicz (2):
  lib/xe_spin: fixed duration xe_spin capability
  tests/xe_spin_batch: spin-fixed-duration

 lib/xe/xe_spin.c            | 121 ++++++++++++++++++++++++++++++------
 lib/xe/xe_spin.h            |  27 +++++++-
 tests/xe/xe_dma_buf_sync.c  |   6 +-
 tests/xe/xe_exec_balancer.c |   9 ++-
 tests/xe/xe_exec_reset.c    |  24 ++++---
 tests/xe/xe_exec_threads.c  |   7 ++-
 tests/xe/xe_spin_batch.c    |  72 +++++++++++++++++++++
 tests/xe/xe_vm.c            |   9 +--
 8 files changed, 230 insertions(+), 45 deletions(-)

-- 
2.30.2

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

end of thread, other threads:[~2023-09-08 13:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-05 15:02 [igt-dev] [PATCH i-g-t v3 0/3] lib/xe_spin: introduced fixed duration xe_spin Marcin Bernatowicz
2023-09-05 15:02 ` [igt-dev] [PATCH i-g-t v3 1/3] lib/xe_spin: xe_spin_opts for xe_spin initialization Marcin Bernatowicz
2023-09-08  8:52   ` Zbigniew Kempczyński
2023-09-05 15:02 ` [igt-dev] [PATCH i-g-t v3 2/3] lib/xe_spin: fixed duration xe_spin capability Marcin Bernatowicz
2023-09-08 10:19   ` Zbigniew Kempczyński
2023-09-08 12:14   ` Kamil Konieczny
2023-09-08 13:22     ` Bernatowicz, Marcin
2023-09-05 15:02 ` [igt-dev] [PATCH i-g-t v3 3/3] tests/xe_spin_batch: spin-fixed-duration Marcin Bernatowicz
2023-09-08 10:24   ` Zbigniew Kempczyński
2023-09-08 13:19     ` Bernatowicz, Marcin
2023-09-05 18:58 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/xe_spin: introduced fixed duration xe_spin (rev2) Patchwork
2023-09-05 21:21 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-09-06  6:43   ` Bernatowicz, Marcin
  -- strict thread matches above, loose matches on Subject: below --
2023-08-18 10:21 [igt-dev] [PATCH i-g-t v2 0/2] lib/xe_spin: introduced fixed duration xe_spin Marcin Bernatowicz
2023-09-05 14:23 ` [igt-dev] [PATCH i-g-t v3 0/3] " Marcin Bernatowicz
2023-09-05 14:23   ` [igt-dev] [PATCH i-g-t v3 2/3] lib/xe_spin: fixed duration xe_spin capability Marcin Bernatowicz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.