Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 0/3] [RFC] benchmarks/gem_wsim: added basic xe support
@ 2023-08-25 13:19 Marcin Bernatowicz
  2023-08-25 13:19 ` [igt-dev] [PATCH i-g-t 1/3] lib/xe_spin: fixed duration xe_spin capability Marcin Bernatowicz
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Marcin Bernatowicz @ 2023-08-25 13:19 UTC (permalink / raw)
  To: igt-dev; +Cc: joonas.lahtinen, tvrtko.ursulin

Added basic xe support with few examples.
Single binary handles both i915 and Xe devices,
but workload definitions differs between i915 and xe.
Xe does not use context abstraction, introduces new VM and Exec Queue
steps and BATCH step references exec queue.
For more details see wsim/README.
Some functionality is still missing: working sets,
load balancing (need some input if/how to do it in Xe - exec queues
width?).

The tool is handy for scheduling tests, we find it useful to verify vGPU
profiles defining different execution quantum/preemption timeout settings.

There is also some rationale for the tool in following thread:
https://lore.kernel.org/dri-devel/a443495f-5d1b-52e1-9b2f-80167deb6d57@linux.intel.com/

With this patch it should be possible to run following on xe device:

gem_wsim -w benchmarks/wsim/xe_media_load_balance_fhd26u7.wsim -c 36 -r 600

Best with drm debug logs disabled:

echo 0 > /sys/module/drm/parameters/debug

lib/xe_spin: fixed duration xe_spin capability - is already 
  under review https://patchwork.freedesktop.org/series/122624/

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

Marcin Bernatowicz (3):
  lib/xe_spin: fixed duration xe_spin capability
  lib/igt_device_scan: Xe get integrated/discrete card functions
  [RFC] benchmarks/gem_wsim: added basic xe support

 benchmarks/gem_wsim.c                         | 842 ++++++++++++++----
 benchmarks/wsim/README                        |  87 +-
 benchmarks/wsim/xe_cloud-gaming-60fps.wsim    |  25 +
 benchmarks/wsim/xe_example.wsim               |  28 +
 benchmarks/wsim/xe_example01.wsim             |  19 +
 benchmarks/wsim/xe_example_fence.wsim         |  23 +
 .../wsim/xe_media_load_balance_fhd26u7.wsim   |  63 ++
 lib/igt_device_scan.c                         |  34 +-
 lib/igt_device_scan.h                         |   2 +
 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_vm.c                              |   9 +-
 16 files changed, 1094 insertions(+), 232 deletions(-)
 create mode 100644 benchmarks/wsim/xe_cloud-gaming-60fps.wsim
 create mode 100644 benchmarks/wsim/xe_example.wsim
 create mode 100644 benchmarks/wsim/xe_example01.wsim
 create mode 100644 benchmarks/wsim/xe_example_fence.wsim
 create mode 100644 benchmarks/wsim/xe_media_load_balance_fhd26u7.wsim

-- 
2.30.2

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

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

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-25 13:19 [igt-dev] [PATCH i-g-t 0/3] [RFC] benchmarks/gem_wsim: added basic xe support Marcin Bernatowicz
2023-08-25 13:19 ` [igt-dev] [PATCH i-g-t 1/3] lib/xe_spin: fixed duration xe_spin capability Marcin Bernatowicz
2023-08-30  9:37   ` Zbigniew Kempczyński
2023-08-30 11:53   ` Kamil Konieczny
2023-09-05 13:48     ` Bernatowicz, Marcin
2023-08-25 13:19 ` [igt-dev] [PATCH i-g-t 2/3] lib/igt_device_scan: Xe get integrated/discrete card functions Marcin Bernatowicz
2023-08-28 17:05   ` Kamil Konieczny
2023-08-30 10:03     ` Zbigniew Kempczyński
2023-08-30 13:54       ` Kamil Konieczny
2023-09-05  7:29     ` Bernatowicz, Marcin
2023-08-25 13:19 ` [igt-dev] [PATCH i-g-t 3/3] [RFC] benchmarks/gem_wsim: added basic xe support Marcin Bernatowicz
2023-09-01 11:49   ` Kamil Konieczny
2023-08-25 14:49 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
2023-08-25 15:14 ` [igt-dev] ✓ CI.xeBAT: success " Patchwork
2023-08-25 15:23 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-08-26  6:26 ` [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