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 16D9AEB64DA for ; Fri, 21 Jul 2023 02:28:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AEFA610E19F; Fri, 21 Jul 2023 02:28:27 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 49E6410E19F for ; Fri, 21 Jul 2023 02:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689906506; x=1721442506; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=I6ipXqXbBO08mxvh5LI2muqJwFDh+/w4keS5HDaXETI=; b=TAPLnOqT3izajDsP92CeNFV32lVfmVbG+jtCqH0VbPaFNxMSS9LnL4Ng GBlz9jSW/m3q2i2bELDuY/u9Bt2GPUOiRCucP8W7QfllQOTlJEXkz1Dmi jVLHEUxk+o0J0TUnAiP/4aVwmvdXzZLfulvO8g7Dey+zzohkxBM8ONojI 9hOdCYozRPL4v2M8GRheD3HovzuIG+2Bg64cqWGSl+nOTe1W/3GP2px1l 6SrQuJ1Tsk/u2DmbXGDMX3ZWUpUPz2C6Ghn8wV3ppTwjCqoBZNQDBp5Em qwjMmDMnJ05UpYk/0FB/L8oh6P+z5chobptUR8/mE+nylqFURUIB2CJFK Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="397806492" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="397806492" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 19:28:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="814774580" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="814774580" Received: from orsosgc001.jf.intel.com ([10.165.21.138]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 19:28:25 -0700 From: Ashutosh Dixit To: intel-xe@lists.freedesktop.org Date: Thu, 20 Jul 2023 19:28:10 -0700 Message-ID: <20230721022820.3978405-1-ashutosh.dixit@intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v2 00/10] Add OA functionality to Xe X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" This patchset is the initial port of i915 perf/OA functionality to the Xe driver. It has been tested against the following IGT patch: https://patchwork.freedesktop.org/series/121082/ The following features in i915 have not been ported and will be added (as new patches) if/as they are needed: * NOA wait * GuC ctx id (guc_sw_ctx_id) * CTX_R_PWR_CLK_STATE/GEN8_R_PWR_CLK_STATE * hold_preemption (DRM_XE_OA_PROP_HOLD_PREEMPTION) * sseu_config (DRM_XE_OA_PROP_GLOBAL_SSEU) * Override gucrc (override_gucrc_mode) * MTL bios_c6_setup * ratelimits * compat ioctl I am providing the following additional HAX patch (not part of this series) to help review these patches: https://patchwork.freedesktop.org/patch/548718/?series=120100&rev=3 The commit message in the above patch explains how it can be useful for reviewing this series. Test-with: 20230720231756.3464641-1-ashutosh.dixit@intel.com Ashutosh Dixit (10): drm/xe/oa: Introduce OA uapi drm/xe/oa: Add OA types drm/xe/oa: Add registers and GPU commands used by OA drm/xe/oa: Module init/exit and probe/remove drm/xe/oa: Add/remove config ioctl's drm/xe/oa: Start implementing OA stream open ioctl drm/xe/oa: OA stream initialization drm/xe/oa: Expose OA stream fd drm/xe/oa: Read file_operation drm/xe/oa: Implement queries drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/regs/xe_engine_regs.h | 5 + drivers/gpu/drm/xe/regs/xe_gpu_commands.h | 27 + drivers/gpu/drm/xe/regs/xe_oa_regs.h | 173 ++ drivers/gpu/drm/xe/xe_device.c | 16 + drivers/gpu/drm/xe/xe_device_types.h | 4 + drivers/gpu/drm/xe/xe_gt_types.h | 4 + drivers/gpu/drm/xe/xe_hw_engine_types.h | 2 + drivers/gpu/drm/xe/xe_module.c | 5 + drivers/gpu/drm/xe/xe_oa.c | 2358 +++++++++++++++++++++ drivers/gpu/drm/xe/xe_oa.h | 28 + drivers/gpu/drm/xe/xe_oa_types.h | 295 +++ drivers/gpu/drm/xe/xe_query.c | 5 +- include/uapi/drm/xe_drm.h | 257 ++- 14 files changed, 3178 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/xe/regs/xe_oa_regs.h create mode 100644 drivers/gpu/drm/xe/xe_oa.c create mode 100644 drivers/gpu/drm/xe/xe_oa.h create mode 100644 drivers/gpu/drm/xe/xe_oa_types.h -- 2.41.0