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 49F04C79F80 for ; Thu, 3 Sep 2026 20:10:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F322410F768; Thu, 3 Sep 2026 20:10:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="dafWoa2W"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1E37310E53F for ; Thu, 3 Sep 2026 20:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788466223; x=1820002223; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=YlljUlfYK6ql8aglTP+s8zYB492b5ToRyyIJDOqB8ts=; b=dafWoa2WKbC9C5P2hgQt7VcTgkTuOf6AeCrb/kaOoLuz13soDBFMtJht qD0ei3XfsXXu+o1ZiaMbJv7LUaowAMZr4vI8r0CqIcE9rbRfMFOQGlrg+ EUJb6+2D0qIncdR9c5lkbCuqd5WLvRIekGtusXQxgg9tf8XAe4jZXC9JX g+LlieihKTJIlMFkxDsE6ZpdTzOuTxjg1aqx3vCXw/IFOiK86bPndCSKT Dopck0SDABIBqh5ug0qTgwiT2IT4XOv89fPDbWu58sGk1LNerDCklX36U fs7aU4804xdc/hjRIJiI9fXzQUJ/jUrXQwI18jFS03YNpQ/xwS4NfYw7h w==; X-CSE-ConnectionGUID: pk/AsV/dQnOM/orinNY6wQ== X-CSE-MsgGUID: NpztkFkxT0GELAUW2WkA5w== X-IronPort-AV: E=McAfee;i="6800,10657,11895"; a="88994581" X-IronPort-AV: E=Sophos;i="6.25,260,1779174000"; d="scan'208,146";a="88994581" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2026 13:10:22 -0700 X-CSE-ConnectionGUID: 1JeCX/T0Qlm1WBYMYKCing== X-CSE-MsgGUID: dVxqi84sQ9+usr5vyHMeiA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,260,1779174000"; d="scan'208,146";a="273348061" Received: from mjruhl-vm.amr.corp.intel.com ([10.11.186.166]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2026 13:10:22 -0700 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, karthik.poosa@intel.com Subject: [PATCH v5 06/18] drm/xe/vsec: Do not register BMG PMT for VF Date: Thu, 3 Sep 2026 13:10:08 -0700 Message-ID: <20260903201002.1064889-26-michael.j.ruhl@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260903201002.1064889-20-michael.j.ruhl@intel.com> References: <20260903201002.1064889-20-michael.j.ruhl@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" BMG PMT is not supported for VF nodes. If IS_SRIOV_VF() is true, do NOT register with PMT. Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/xe/xe_vsec.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c index a9baf0bfe572..71bc359b2ad1 100644 --- a/drivers/gpu/drm/xe/xe_vsec.c +++ b/drivers/gpu/drm/xe/xe_vsec.c @@ -149,6 +149,9 @@ int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offse u32 offset; int ret; + if (IS_SRIOV_VF(xe)) + return -EINVAL; + ret = xe_guid_decode(guid, &mem_region, &offset); if (ret) return ret; @@ -157,9 +160,6 @@ int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offse guard(mutex)(&xe->pmt.lock); - if (!xe->soc_remapper.set_telem_region) - return -ENODEV; - /* indicate that we are not at an appropriate power level */ if (!xe_pm_runtime_get_if_active(xe)) return -ENODATA; @@ -210,6 +210,8 @@ void xe_vsec_init(struct xe_device *xe) switch (platform) { case XE_VSEC_BMG: + if (IS_SRIOV_VF(xe)) + return; info->priv_data = &xe_pmt_cb; break; default: -- 2.43.0