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 88E93C982DC for ; Fri, 18 Sep 2026 13:18:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2249310F3A1; Fri, 18 Sep 2026 13:18:07 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="QR4vJFLf"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5793E10E8C9 for ; Fri, 18 Sep 2026 13:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789737486; x=1821273486; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=zGpE73V/hkrWMc8qKCQ3sV0WJK524j/nIBbGfm+6rec=; b=QR4vJFLfXdaxUhzhIPcTXJvj4ZopbXaCszKKVp8QNXMXb+exKnfK97jG VXKA9Hk6DKZFyNzqG40lMaTs17wXIHUzgSYZRkimqQhKvPo9LFYCRzI2r tfBa+pVP2ebDWLDOyyRyLmDM8Ul3HaOa6/zhK3xKXnvHAlO/bpeEUKDPR +ariVv4hmY23VE16QHQFC/wKTSToqejqc36OCMrQOqESf1nRbpNQXYViM 9SoBNgux0yj/3/7wStXjEcuR9ee36Azrsnq3n5wSjKcRA5tqLh8as1qqw icWm8lkXg6L7/qNBTp0Px2Hw6g1E4ZfXzg0w1X4Hf12ATGk719wtp80y/ Q==; X-CSE-ConnectionGUID: 6H33IfboT2ylo8DiJovB2g== X-CSE-MsgGUID: KybQrYhtT++Z9q9ygFiB7Q== X-IronPort-AV: E=McAfee;i="6800,10657,11908"; a="89378234" X-IronPort-AV: E=Sophos;i="6.27,109,1787036400"; d="scan'208,146";a="89378234" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 06:18:03 -0700 X-CSE-ConnectionGUID: r6CadKkoSceC5V/88w2+jw== X-CSE-MsgGUID: CpdZdbG7S027vqqgq0zFiA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,109,1787036400"; d="scan'208,146";a="270095323" Received: from mjruhl-vm.amr.corp.intel.com ([10.11.186.166]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2026 06:18:02 -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 v10 06/20] drm/xe/vsec: Do not register BMG PMT for VF Date: Fri, 18 Sep 2026 06:17:57 -0700 Message-ID: <20260918131751.2408883-28-michael.j.ruhl@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260918131751.2408883-22-michael.j.ruhl@intel.com> References: <20260918131751.2408883-22-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..481bcbcc6372 100644 --- a/drivers/gpu/drm/xe/xe_vsec.c +++ b/drivers/gpu/drm/xe/xe_vsec.c @@ -149,6 +149,8 @@ int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offse u32 offset; int ret; + xe_assert(xe, !IS_SRIOV_VF(xe)); + ret = xe_guid_decode(guid, &mem_region, &offset); if (ret) return ret; @@ -157,9 +159,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; @@ -186,6 +185,9 @@ static enum xe_vsec get_platform_info(struct xe_device *xe) if (xe->info.platform > XE_BATTLEMAGE) return XE_VSEC_UNKNOWN; + if (IS_SRIOV_VF(xe) && (xe->info.platform == XE_BATTLEMAGE)) + return XE_VSEC_UNKNOWN; + return vsec_platforms[xe->info.platform]; } -- 2.43.0