Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A7CB43B4A0 for ; Wed, 23 Sep 2026 18:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790187097; cv=none; b=atDiL/+rrubRwOUjyYgLrgzemlM2+6JVKuJdcg0/MJV/EgrmVETYUjcKckhTl2yf4OPPbLz+JCrCx2uejii03GTaXOZ/oRG/jOp68ce5Cf6qEtPRHersyPxEqKTtgJU0/yYgQK9eaEx4NeOgRlF7UJLAGXAtWolZDFlrY4A0Bdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790187097; c=relaxed/simple; bh=LPGG504LJ3vrcENFvlBo/VSFE0LKRYZg7u6iUu7Y6Hs=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PaZT9jr+Thtfp4zG8DSpmyqZPoQq6bNnfp3km8X9pAjCBtpytTTN1Hrg9En3BLwCQxV/zn3xxhFNkjQ/WQ5H35MhlBqrRxXD7h/ofkrgurCMwficedFpf1dv0dsSW6XHd26kzAuCWFSC6G/MoPNAL1l7MZx4vR77B9kBBuXW/iA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DQL3nGgx; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DQL3nGgx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1790187095; x=1821723095; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=LPGG504LJ3vrcENFvlBo/VSFE0LKRYZg7u6iUu7Y6Hs=; b=DQL3nGgxsT2OS/Z89jmb/cUIRWJh6Q8uxlrewbD8QjsdtPoKNQsTIJui 9khQvoXqS3Pq1Kllm/PpvoIfnLfcHG+HCzfcn1wlZ2OuB90Cy94osUg7K 80grLku4K4uRl2vYIPUVoWaWHXqG6GU3+HrykFyYEgIXDTLdB6jJAHkqL FalFQQz5wjRUJ1X1wZw3trkizc7yvy1tVFoVzqJM5VKLUKpfFtKvE8wV1 wXKgigB7tfFD/Z9WBUp7MuRfaXXNhq6JKYRC8tV1qKL7T8ak8geZw+aJP fNCg7lm0NZgqZr8DAxuVxwJBZEuNl72l+OWCA2lI4/rojDSYQ7s/upROR g==; X-CSE-ConnectionGUID: JpegJGTPQBiR/czm7MrYgw== X-CSE-MsgGUID: gdpKXrlxQRibO0AINiSmig== X-IronPort-AV: E=McAfee;i="6800,10657,11914"; a="93416028" X-IronPort-AV: E=Sophos;i="6.27,119,1787036400"; d="scan'208";a="93416028" 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> Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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