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 99298C982C9 for ; Wed, 16 Sep 2026 20:12:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E4F510E114; Wed, 16 Sep 2026 20:12:37 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="IuJajhSy"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id E346D10E4AD for ; Wed, 16 Sep 2026 20:12:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789589521; x=1821125521; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=LPGG504LJ3vrcENFvlBo/VSFE0LKRYZg7u6iUu7Y6Hs=; b=IuJajhSy4x+RIHlIJRmXXYbPQcj/hCq1XwsbBorCWMwdUmMrVc8VATln ODFpZUelVo3joO5sWXRlOfc0vyMoyIUhYoUOz8hXrNd6Nx7jJ9w0ZnZdj VaAOJ5xY5n09wX85vzuM2rJXrbxkofPThrbg43PJZISL4R9JFd6H8zs8Y KUMPEOxV9jULbz+3FJ1O9OmLT1/6p6NiCJWhYdDKqVWUNTZS7WAn8DLX8 BeHJxEdyIndwPZZYOlPFi25PtCZlYnENCECGLROfeioRvMzCGPh6YJoIZ tA3VuKhyOlI04poYQJl3WOFREpUC9hBMKndkXoNvkz360Rt0hCyIXeE/+ w==; X-CSE-ConnectionGUID: 7W7DmkaSQ7ObFWtFN7SoAw== X-CSE-MsgGUID: TE2H64DRSTeGgH1zK/cXJA== X-IronPort-AV: E=McAfee;i="6800,10657,11905"; a="100296192" X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="100296192" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2026 13:12:00 -0700 X-CSE-ConnectionGUID: 2jCsxDgfRZue+3H8vBWdVw== X-CSE-MsgGUID: 1UdyYYipTC29cLtkiHMxPQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="277574031" Received: from mjruhl-vm.amr.corp.intel.com ([10.11.186.166]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2026 13:12:01 -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 v9 12/20] drm/xe/vsec: Update VSEC probe order Date: Wed, 16 Sep 2026 13:11:50 -0700 Message-ID: <20260916201139.2374531-34-michael.j.ruhl@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260916201139.2374531-22-michael.j.ruhl@intel.com> References: <20260916201139.2374531-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