Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.7 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795486086; b=2EDbuxxYS1pivEOasFRKoA+AL5cwZxqfX3AkJoCWIUGiUyFCJBT/zY/KXTCve8IHacfK 4dO8EirzM8pU7JhF4nkHkmex+vlixcgdqSfMXaVy0aYQ9hx5mGE9c4VWDv4bMRLENjjeb 16095oXqCHmfs5E8vItOXnaRykBzctfM9EBCwIOtkH8znNMBwm9lJV2DvSroi2joTirwS SyHH1PUzQsxAsfpomsOU/Mu93mU8CXXmLX/3HqLvJb1aE7oGMviOUfUYGaDvwsd506SJG mhYLPl2MEZhYF5bUgUFSBr5vuaF6c3Z1zF781EHiUIjdv+BTf34Efqu5imtLtTQsZ9g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795486086; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:To:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=zcIhMhLvqz1V7EZaXdVU5C4RHSq/J9OX65mpQmpvZGE=; b=RnraqWzJhzMqLF5JFJcBiTxJIuKW1Mznq2h+qTucj4LtqsbPCQvsQF00SgmlsDmehM5I 4vJtANo0VmLM9Zop9c0/wDNVKQPxMBUGMW2peHioAS3Yo+0HY71hMDELkhA8QZKTbpmIQ gkqG8ps51dQga/d5NWFfFLHKVshySSV2c7cBHEwm5LgKrSRj6f+Hhjcx71rTgaKJjgDGH aysCcrvG97KUAzN8UvU3TjMs1CWGqS38LdJW89y5BKRi0dC2oNnMqGi066KC+C02DgDe9 VZd5H57uXXOG2mOWfOP0hYF0qdZxL75NH0qDzjrg+gFPZ894kQEFOnL3ZwkevWDZ91Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=CkJZ6iiN; arc=none smtp.remote-ip=192.198.163.7 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D252A606A32C for ; Tue, 24 Nov 2026 02:08:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D252A606A32C 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.a=rsa-sha256 header.s=Intel header.b=CkJZ6iiN DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795486087; x=1827022087; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=ezlzVcHtVeoHglV01p3bjkxy2KglS2VRWAzc2hftpZw=; b=CkJZ6iiN9dG6dGMx518w0x+9sSfLqWRhy0Ir0E3xIRJ6rctWxlrFL/2n NKRUiKk3aRRUevsj5z45b5opvz1taegpWxNMDCenpRKzuGQUSleiyjBTy tV3iPNmRqR+eFLs62EwMl8YYZrx04NUYwTcsQ3eNUtcqS3u/OB6G/kJ5F lsPIJbgaHWtyJnK584Mv35EXycyJtzrsKXrZgZlAsHc+twPandIeLoEAh iaKJEBglVf5pUK/86+qZiGmfjbPNiTAWemJ0kvMf1CHf0fzL627MaxILe y/3olsOjEMgMjEP/+f8m1tJo/2cSifT1O/FftBDFYKZ2lT+6l22u/9ix0 g==; X-CSE-ConnectionGUID: rp56GlwBQI6AjIbVUR2lyA== X-CSE-MsgGUID: o+r2n9LCT8CZQuicPZU0OA== X-IronPort-AV: E=McAfee;i="6800,10657,11975"; a="4153515" X-IronPort-AV: E=Sophos;i="6.27,229,1787036400"; d="scan'208";a="4153515" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2026 18:08:03 -0800 X-CSE-ConnectionGUID: NJ54aANrQqynqDQn8g3I7g== X-CSE-MsgGUID: 12R28BxbRvikq6XF0eRk0g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,229,1787036400"; d="scan'208";a="11621424" Received: from mjruhl-vm.amr.corp.intel.com ([10.11.186.166]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2026 18:08:01 -0800 From: "Michael J. Ruhl" To: platform-driver-x86@vger.kernel.org, intel-xe@lists.freedesktop.org, hansg@kernel.org, ilpo.jarvinen@linux.intel.com, matthew.brost@intel.com, rodrigo.vivi@intel.com, thomas.hellstrom@linux.intel.com, airlied@gmail.com, simona@ffwll.ch, david.e.box@linux.intel.com, anoop.c.vijay@intel.com, badal.nilawar@intel.com, matthew.d.roper@intel.com, james.ausmus@intel.com Subject: [PATCH v23 07/19] drm/xe/vsec: Add DOC text for VSEC Date: Mon, 23 Nov 2026 18:07:59 -0800 Message-ID: <20261124020752.30551-28-michael.j.ruhl@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261124020752.30551-21-michael.j.ruhl@intel.com> References: <20261124020752.30551-21-michael.j.ruhl@intel.com> X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the necessary files and text to use the DOC system. Reviewed-by: Rodrigo Vivi Signed-off-by: Michael J. Ruhl --- Documentation/gpu/xe/index.rst | 1 + Documentation/gpu/xe/xe_vsec.rst | 14 ++++++++++++++ drivers/gpu/drm/xe/xe_vsec.c | 24 ++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 Documentation/gpu/xe/xe_vsec.rst diff --git a/Documentation/gpu/xe/index.rst b/Documentation/gpu/xe/index.rst index 497a0a4b12f6..de829aecf8f1 100644 --- a/Documentation/gpu/xe/index.rst +++ b/Documentation/gpu/xe/index.rst @@ -37,3 +37,4 @@ The display, or :ref:`drm-kms`, support for drm/xe is provided by xe_gt_stats xe_sigid xe_pci_error + xe_vsec diff --git a/Documentation/gpu/xe/xe_vsec.rst b/Documentation/gpu/xe/xe_vsec.rst new file mode 100644 index 000000000000..1a87548489ea --- /dev/null +++ b/Documentation/gpu/xe/xe_vsec.rst @@ -0,0 +1,14 @@ +.. SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +===== +VSEC +===== + +.. kernel-doc:: drivers/gpu/drm/xe/xe_vsec.c + :doc: VSEC + +Internal API +============ + +.. kernel-doc:: drivers/gpu/drm/xe/xe_vsec.c + :internal: diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c index 38081dacd307..082b25b017db 100644 --- a/drivers/gpu/drm/xe/xe_vsec.c +++ b/drivers/gpu/drm/xe/xe_vsec.c @@ -19,6 +19,17 @@ #include "regs/xe_pmt.h" +/** + * DOC: VSEC + * + * Some GPUs support the PMT feature. For those that do, this API provides + * probe, discovery and usage (control and access) for GPUs that have PMT. + * + * PMT is usually accessed through a PCI function. However, that is not always + * available, so the PMT intel_vsec_register() function can be used to set up + * PMT usage. + */ + /* PMT GUID value for BMG devices. NOTE: this is NOT a PCI id */ #define BMG_DEVICE_ID 0xE2F8 @@ -140,6 +151,19 @@ static int xe_guid_decode(u32 guid, int *index, u32 *offset) return 0; } +/** + * xe_pmt_telem_read - Given a device and a PMT GUID, read data into a buffer + * @dev: valid Xe device + * @guid: PMT GUID (from the PMT discovery struct) + * @data: buffer to place data in + * @user_offset: a user offset relative to the beginning of the data to read + * @count: bytes to read + * + * Return: + * * -ENODATA for incorrect power state + * * -EINVAL for unsupported PMT feature + * * count number of bytes read on success + */ int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offset, u32 count) { -- 2.43.0