From patchwork Thu Nov 14 13:03:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael J. Ruhl" X-Patchwork-Id: 13875109 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CA24383A5 for ; Thu, 14 Nov 2024 13:04:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731589454; cv=none; b=tBHImyEFzqqksvcBgOucs0CWRgTprKHQ8pVQDLh/umk8lwggzPGyzdUqJfrKowoAKAk1xTz39yr+HtQyIEaHvcrjUZ4ZpoNqVdWXkNgR+kjtMvLXeDqY6C29PiOjUDjK7QfUZGtya0DyxGa48BEp7MRc80nDJ1+FYfOv+cufI5U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731589454; c=relaxed/simple; bh=b5tMeBj7G8TGC0pQo4cL7OGITA7DTtYRmijuPXkRfv8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=LPpVHtkhxSoippXB0V/Zmuyrfvxr65bqV3TOzMzP190urXz0z4uwRUHGAb1Kc1a9bVWrqKWt8Ep9c/OqHrlWgQRf0XQrhtvn3l7brNcdVrwd6bQuACTSZBhzr2Q5VuPFBzk7ibMGdf6VkvANI6hmNaQEkOP/R6U3e4SMI+fNSZM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=G64CJ8r5; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="G64CJ8r5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1731589452; x=1763125452; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=b5tMeBj7G8TGC0pQo4cL7OGITA7DTtYRmijuPXkRfv8=; b=G64CJ8r5oDfOH6C4/6g0uKp52B03AJmqT4gf6mXQ0d5OBnh0DpME/Fc+ SZW1IQ3rbUf/v9uz8QAyrnJ+AVSXOf+xN1lr6VYRCy3usowlFYxNvbv0k WsvoTsdERsK8L/JSVgolB+55asTc22lrN7g5KIbvU16COso7m8ueRVLr9 GcdGDnYVVBw8hfmV4XdyfVd7UkdD01lCo9+WGKfv6v9AYg6Vqiptjy8Hj bwOHPT3Ms5z60vN01auxvIG/cJc2amODCuYR8G69+OFplGs+VFkQABpuj EGWKN0J9t4SidC6VEmfjyfixspabTHwKWv5YpMz/PtrlS3eMZZ/Stei48 g==; X-CSE-ConnectionGUID: 4PlXOal0TwywMYpx/mMrig== X-CSE-MsgGUID: Q3J01RvhSA2VyW9Q1RMfDA== X-IronPort-AV: E=McAfee;i="6700,10204,11256"; a="35320457" X-IronPort-AV: E=Sophos;i="6.12,154,1728975600"; d="scan'208";a="35320457" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2024 05:04:11 -0800 X-CSE-ConnectionGUID: ND+gSUTUSt+sCeJ1OH6gwg== X-CSE-MsgGUID: wZdShYsNTvmiLNfRjBQWmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,154,1728975600"; d="scan'208";a="88597772" Received: from awvttdev-05.aw.intel.com ([10.228.212.156]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2024 05:04:10 -0800 From: "Michael J. Ruhl" To: intel-xe@lists.freedesktop.org, platform-driver-x86@vger.kernel.org, david.e.box@linux.intel.com, ilpo.jarvinen@linux.intel.com, andriy.shevchenko@linux.intel.com, hdegoede@redhat.com, rodrigo.vivi@intel.com, lucas.demarchi@intel.com Cc: michael.j.ruhl@intel.com Subject: [PATCH v3 0/2] Support BMG PMT features for Xe Date: Thu, 14 Nov 2024 08:03:56 -0500 Message-ID: <20241114130358.2467787-1-michael.j.ruhl@intel.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Updates for PMT to support user offsets from the sysfs API. v2: Addressed review comments for the Xe driver udpates. v3: Consolidate offest addition to addr Add r-b. Michael J. Ruhl (2): platform/x86/intel/pmt: allow user offset for PMT callbacks drm/xe/vsec: Support BMG devices drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/regs/xe_pmt.h | 19 ++ drivers/gpu/drm/xe/xe_device.c | 7 + drivers/gpu/drm/xe/xe_device_types.h | 6 + drivers/gpu/drm/xe/xe_vsec.c | 232 +++++++++++++++++++++ drivers/gpu/drm/xe/xe_vsec.h | 11 + drivers/platform/x86/intel/pmt/class.c | 8 +- drivers/platform/x86/intel/pmt/class.h | 2 +- drivers/platform/x86/intel/pmt/telemetry.c | 2 +- include/linux/intel_vsec.h | 3 +- 10 files changed, 285 insertions(+), 6 deletions(-) create mode 100644 drivers/gpu/drm/xe/regs/xe_pmt.h create mode 100644 drivers/gpu/drm/xe/xe_vsec.c create mode 100644 drivers/gpu/drm/xe/xe_vsec.h