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 E5E76C98304 for ; Wed, 23 Sep 2026 18:11:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 98BE710F12B; Wed, 23 Sep 2026 18:11:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="jFFDXlhA"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3038810F12E for ; Wed, 23 Sep 2026 18:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1790187087; x=1821723087; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=LPGG504LJ3vrcENFvlBo/VSFE0LKRYZg7u6iUu7Y6Hs=; b=jFFDXlhA46Rtb1T5aSWYBOu/33gUlsgE7sLaBnfqDG4MB6wBnkXqeUdb cMNUufb+IfeLJ0qZJ7jXD5OrMSYAm2ehg1SvJwC2KkuzUy/yVtUpH3vE9 XS0OOpfrti1hvuEslialg6VE6SjPcSrDEl+uN+ASkA+7IEy8IOjv05uLo EG6pGnB91fDuj62PUaMbTkePWurtaRotOeSjJW6x19T06MJqu4GvbANO8 v1P5vvdw9boE+LM8fDYZGFD54fdGy4RIA5BGFunxAjoY7mgihZeqRJebN GhTisW24RpXWLVQWnyDmJEY5nzKPzTljRtIH9QJSyMEyvwny8iVyNL588 g==; X-CSE-ConnectionGUID: +qmzoThjQg+X2/7ctk+z5Q== X-CSE-MsgGUID: p5X6Cgv3TAOgCuWwD4qrKQ== X-IronPort-AV: E=McAfee;i="6800,10657,11914"; a="93416034" X-IronPort-AV: E=Sophos;i="6.27,119,1787036400"; d="scan'208";a="93416034" 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: iYghsP2nQAi4fkZT49DQ+g== X-CSE-MsgGUID: Rjj0z/SHTmKok0tegCszVA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,119,1787036400"; d="scan'208";a="4980711" 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:26 -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 12/20] drm/xe/vsec: Update VSEC probe order Date: Wed, 23 Sep 2026 11:11:27 -0700 Message-ID: <20260923181115.2514193-34-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" Both debugfs and hwmon access the PMT data area before PMT is initialized. Hardwired offset usage allows this to work by accident. Upcoming changes will break this usage. Re-order the probe steps to initialize VSEC before the other features are initialized. Reviewed-by: Rodrigo Vivi Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/xe/xe_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index 205cb4e7f9e8..3ec950606e67 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -1053,6 +1053,8 @@ int xe_device_probe(struct xe_device *xe) if (err) goto err_unregister_display; + xe_vsec_init(xe); + xe_debugfs_register(xe); err = xe_hwmon_register(xe); @@ -1066,8 +1068,6 @@ int xe_device_probe(struct xe_device *xe) for_each_gt(gt, xe, id) xe_gt_sanitize_freq(gt); - xe_vsec_init(xe); - err = xe_sriov_init_late(xe); if (err) goto err_unregister_display; -- 2.43.0