From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id AAF0F10E0A3 for ; Fri, 4 Aug 2023 10:58:37 +0000 (UTC) From: Marcin Bernatowicz To: igt-dev@lists.freedesktop.org Date: Fri, 4 Aug 2023 10:24:52 +0000 Message-Id: <20230804102454.948216-1-marcin.bernatowicz@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 0/2] lib/xe_spin: introduced xe_spin_opts; fixed duration xe_spin List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mauro.chehab@intel.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: 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. Marcin Bernatowicz (2): lib/xe_spin: introduced xe_spin_opts; fixed duration xe_spin tests/xe_spin_batch: spin-fixed-duration lib/xe/xe_spin.c | 121 ++++++++++++++++++++++++++++++------ lib/xe/xe_spin.h | 23 ++++++- 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 | 59 ++++++++++++++++++ tests/xe/xe_vm.c | 9 +-- 8 files changed, 213 insertions(+), 45 deletions(-) -- 2.30.2