From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF835C27C65 for ; Fri, 7 Jun 2024 20:09:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 690E210ED06; Fri, 7 Jun 2024 20:09:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Jz0zWVRA"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id A78ED10ECF8 for ; Fri, 7 Jun 2024 20:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717790939; x=1749326939; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=wyDfy+ZFumVYjG3ja5ysyH9jajJBUMvywlgditukLk0=; b=Jz0zWVRAsTx3o22q9O4f3UiKe8/CFNflekDlrJ1ZgdA3mbIfE9QaA+jH ECenG/DZPLgLgwrOykln81Bia/nK9uOdxP8477BnhEOjLBjoOdjsgo7gj IceZF/hJgbY5eTn4YLqdM8fEqa5LufLDe4X/Hzx4B55uSfO52W8H/qxEZ 5eXQIWM8jBw9umbz72YZSjxdxbrNfTNuRwt1kNyOFNsygUZWzjkuuVXHB fmg8hSGj/AyuO/cF+W8gTMY+P/+FeHX8/0IlZEy7+nhdWJgXzanPIcsJ8 mrKgMIiP75n2oEJfRB0DuP7xfn5cpWFATb+eScaooHe5B4w/C+N9yfnY5 w==; X-CSE-ConnectionGUID: +LJGm+2dTkqSwAkBE84whg== X-CSE-MsgGUID: 9hxTYcb6RX68wmh2BrWjHw== X-IronPort-AV: E=McAfee;i="6600,9927,11096"; a="18383211" X-IronPort-AV: E=Sophos;i="6.08,221,1712646000"; d="scan'208";a="18383211" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2024 13:08:57 -0700 X-CSE-ConnectionGUID: d2mFki6+QcecT4QfbvlGig== X-CSE-MsgGUID: h54bhSZDSxG1H4yM1S3dxw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,221,1712646000"; d="scan'208";a="38373827" Received: from orsosgc001.jf.intel.com ([10.165.21.138]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2024 13:08:57 -0700 From: Ashutosh Dixit To: igt-dev@lists.freedesktop.org Subject: [PATCH i-g-t v3 00/27] Intel Xe OA IGT's Date: Fri, 7 Jun 2024 13:08:20 -0700 Message-ID: <20240607200847.1964629-1-ashutosh.dixit@intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" This series adds OA IGT's for Intel Xe KMD. These tests are for the kernel series posted here: https://patchwork.freedesktop.org/series/121084/ This series is also available at: https://gitlab.freedesktop.org/adixit/igt-gpu-tools/-/tree/xe-oa Gpuvis support for perf traces from Intel Xe driver is based on tools and IGT lib changes included here. Ashutosh Dixit (23): lib/xe/oa: Import OA metric generation files from i915 lib/xe/oa: Add LNL metric guids lib/xe/oa: Add OA LNL metrics (oa_lnl.xml) lib/xe/oa: Add truncated legacy Xe1 metrics XML's lib/xe/oa: Generate LNL metrics/registers files lib/xe/oa: Switch generated files to Xe namespace drm-uapi/xe: Sync with Perf/OA changes lib/xe: Complete xe_oa lib functionality tests/intel/xe_query: Add OA units query test tests/intel/xe_oa: Add first tests tests/intel/xe_oa: Add some negative tests tests/intel/xe_oa: Add "oa-formats" subtest tests/intel/xe_oa: Add oa exponent tests tests/intel/xe_oa: buffer-fill, non-zero-reason, enable-disable tests/intel/xe_oa: blocking and polling tests tests/intel/xe_oa: OAR/OAC tests tests/intel/xe_oa: Exclusive/concurrent access, rc6 and stress open close tests/intel/xe_oa: add remove OA config tests tests/intel/xe_oa: OA buffer mmap tests tests/intel/xe_oa: Register whitelisting and MMIO trigger tests lib/xe/oa: Add xe_oa_data_reader to IGT lib tools/xe-perf: Add xe_perf_recorder tools/xe-perf: xe_perf_reader, xe_perf_control and xe_perf_configs José Roberto de Souza (4): xe/oa: Fix invalid escape warnings xe/oa/mdapi-xml-convert: Add support for 576B_PEC64LL format xe/oa: Regenerate oa-lnl.xml now parsing all counters xe/oa/oa-metricset-codegen: Fix XE_OA_FORMAT_PEC64u64 offsets include/drm-uapi/xe_drm.h | 291 + lib/intel_device_info.c | 1 + lib/meson.build | 89 + lib/xe-oa.pc.in | 11 + lib/xe/oa-configs/README.md | 115 + lib/xe/oa-configs/codegen.py | 449 ++ lib/xe/oa-configs/guids.xml | 2763 ++++++++ lib/xe/oa-configs/mdapi-xml-convert.py | 1267 ++++ lib/xe/oa-configs/oa-acmgt1.xml | 710 +++ lib/xe/oa-configs/oa-acmgt2.xml | 828 +++ lib/xe/oa-configs/oa-acmgt3.xml | 824 +++ lib/xe/oa-configs/oa-adl.xml | 816 +++ lib/xe/oa-configs/oa-dg1.xml | 823 +++ lib/xe/oa-configs/oa-equations-codegen.py | 261 + lib/xe/oa-configs/oa-lnl.xml | 6984 +++++++++++++++++++++ lib/xe/oa-configs/oa-metricset-codegen.py | 266 + lib/xe/oa-configs/oa-mtlgt2.xml | 789 +++ lib/xe/oa-configs/oa-mtlgt3.xml | 803 +++ lib/xe/oa-configs/oa-registers-codegen.py | 118 + lib/xe/oa-configs/oa-rkl.xml | 824 +++ lib/xe/oa-configs/oa-tglgt1.xml | 819 +++ lib/xe/oa-configs/oa-tglgt2.xml | 818 +++ lib/xe/oa-configs/oa_guid_registry.py | 131 + lib/xe/oa-configs/update-guids.py | 223 + lib/xe/xe_oa.c | 1072 ++++ lib/xe/xe_oa.h | 408 ++ lib/xe/xe_oa_data.h | 101 + lib/xe/xe_oa_data_reader.c | 369 ++ lib/xe/xe_oa_data_reader.h | 87 + lib/xe/xe_query.c | 38 + lib/xe/xe_query.h | 5 + tests/intel/xe_oa.c | 4902 +++++++++++++++ tests/intel/xe_query.c | 53 + tests/meson.build | 2 + tools/meson.build | 1 + tools/xe-perf/meson.build | 22 + tools/xe-perf/xe_perf_configs.c | 247 + tools/xe-perf/xe_perf_control.c | 117 + tools/xe-perf/xe_perf_reader.c | 325 + tools/xe-perf/xe_perf_recorder.c | 1227 ++++ tools/xe-perf/xe_perf_recorder_commands.h | 31 + 41 files changed, 30030 insertions(+) create mode 100644 lib/xe-oa.pc.in create mode 100644 lib/xe/oa-configs/README.md create mode 100644 lib/xe/oa-configs/codegen.py create mode 100644 lib/xe/oa-configs/guids.xml create mode 100755 lib/xe/oa-configs/mdapi-xml-convert.py create mode 100644 lib/xe/oa-configs/oa-acmgt1.xml create mode 100644 lib/xe/oa-configs/oa-acmgt2.xml create mode 100644 lib/xe/oa-configs/oa-acmgt3.xml create mode 100644 lib/xe/oa-configs/oa-adl.xml create mode 100644 lib/xe/oa-configs/oa-dg1.xml create mode 100644 lib/xe/oa-configs/oa-equations-codegen.py create mode 100644 lib/xe/oa-configs/oa-lnl.xml create mode 100644 lib/xe/oa-configs/oa-metricset-codegen.py create mode 100644 lib/xe/oa-configs/oa-mtlgt2.xml create mode 100644 lib/xe/oa-configs/oa-mtlgt3.xml create mode 100644 lib/xe/oa-configs/oa-registers-codegen.py create mode 100644 lib/xe/oa-configs/oa-rkl.xml create mode 100644 lib/xe/oa-configs/oa-tglgt1.xml create mode 100644 lib/xe/oa-configs/oa-tglgt2.xml create mode 100644 lib/xe/oa-configs/oa_guid_registry.py create mode 100755 lib/xe/oa-configs/update-guids.py create mode 100644 lib/xe/xe_oa.c create mode 100644 lib/xe/xe_oa.h create mode 100644 lib/xe/xe_oa_data.h create mode 100644 lib/xe/xe_oa_data_reader.c create mode 100644 lib/xe/xe_oa_data_reader.h create mode 100644 tests/intel/xe_oa.c create mode 100644 tools/xe-perf/meson.build create mode 100644 tools/xe-perf/xe_perf_configs.c create mode 100644 tools/xe-perf/xe_perf_control.c create mode 100644 tools/xe-perf/xe_perf_reader.c create mode 100644 tools/xe-perf/xe_perf_recorder.c create mode 100644 tools/xe-perf/xe_perf_recorder_commands.h -- 2.41.0