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 71914C98313 for ; Wed, 23 Sep 2026 18:11:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E60D10F13F; Wed, 23 Sep 2026 18:11:32 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="nU94V3fg"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9768710F0D5 for ; Wed, 23 Sep 2026 18:11: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=1790187086; x=1821723086; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=j0BnPlxq7JEVz6/6T9RbZkc1vLTA9xc7qG1Pv5i3+VE=; b=nU94V3fghJadfr18JX9yJRmS83vwMofZNftUQ3VVkOORaSxa9wpC7vPg hxLVnNHxrivBhntYeoH7iaaxPc0PNNkVcSIEQy35GrGhqcM4xjVncj42i GXBGQkYo3drwNmyxlV8PHrCs+gFchXiWybz2zffVVW1MQ7mtWnpODTqBd 1q3ocwFMaWhavG4P/G4WTz0eM+vLNrNBJBdly+jb1Ln2hpe19sU0AhXs4 rZElactrz7TPJ8mdIYsoObpUkQ9LRL7WR/XunsXbTUHjJjrA9vpVhtrbG xoz4vLm+GvSiFqdB3lZfwTSGRi/vNpU54qwr5peZbKjwuIQ/8SOdVkTIP Q==; X-CSE-ConnectionGUID: V20IVmYeSw6g+Rw1RsX9Lg== X-CSE-MsgGUID: hoHb0lFCQPiN1UMMMM0jUw== X-IronPort-AV: E=McAfee;i="6800,10657,11914"; a="93416005" X-IronPort-AV: E=Sophos;i="6.27,119,1787036400"; d="scan'208,146";a="93416005" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2026 11:11:25 -0700 X-CSE-ConnectionGUID: Kfo+xUZoTUe1L+Se8DtYvw== X-CSE-MsgGUID: rIwTZI68RPS95p/z50q2cw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,119,1787036400"; d="scan'208,146";a="4980691" 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 Sep 2026 11:11:25 -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 v11 06/20] drm/xe/vsec: Do not register BMG PMT for VF Date: Wed, 23 Sep 2026 11:11:21 -0700 Message-ID: <20260923181115.2514193-28-michael.j.ruhl@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260923181115.2514193-22-michael.j.ruhl@intel.com> References: <20260923181115.2514193-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. Reviewed-by: Rodrigo Vivi 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..178f22db4046 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