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 56DC3D2D8FA for ; Tue, 27 Jan 2026 10:54:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1B21310E0C5; Tue, 27 Jan 2026 10:54:19 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="bw1RuJ/M"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id ED88B10E0C5 for ; Tue, 27 Jan 2026 10:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769511258; x=1801047258; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WhJTSUG5TVOSWIDVou6XzdhsZnXgdyMG2d0cmV5zd4k=; b=bw1RuJ/MLzyHgk5ezOY5v9/nyiEllbtR4UOydNJ2z0/IcJDaUGz989Pp TFAg5ezJNjZ3KlEi0DsgSyNtUjxGuJ7L7YaCSw4e+YO1Mx8K/lOLwjXd8 aHZUVxjqyY4X/JDM4wiKd2RJDRPLlmsV64viPJtXrdknmnTC+5I6pXlJ/ ID7m2KFSH/GF9XOncWKq5Og2jeFEO9GyYr/EaULLYEJfxfaA9Y3sCFDel 2QgtZuqXWQY8P+pAX2Hphgbe3ui9Ox4NBj2lq0wh8uGOG7GvMzlksdIQQ BrpWBW7Ls07ziolFv6GR96HoTsWECV4Y5q0bUHY2EMmfOxlLKhWDEWioD A==; X-CSE-ConnectionGUID: Ki6iUcLuQlyJ2Oj710Gi9w== X-CSE-MsgGUID: sEvvNWw9Sfu9VoCVTzsbhQ== X-IronPort-AV: E=McAfee;i="6800,10657,11683"; a="70606776" X-IronPort-AV: E=Sophos;i="6.21,256,1763452800"; d="scan'208";a="70606776" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2026 02:54:18 -0800 X-CSE-ConnectionGUID: T3Mcy1sQScu8oGYEO/UFBA== X-CSE-MsgGUID: 8hwkWws8TnaBqLWKchl3Tg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,256,1763452800"; d="scan'208";a="207965541" Received: from anoopcvi-vm.gar.corp.intel.com ([10.109.80.88]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2026 02:54:13 -0800 From: "Anoop, Vijay" To: intel-xe@lists.freedesktop.org Cc: umesh.nerlige.ramappa@intel.com, badal.nilawar@intel.com, rodrigo.vivi@intel.com, aravind.iddamsetty@intel.com, riana.tauro@intel.com, anshuman.gupta@intel.com, matthew.d.roper@intel.com, michael.j.ruhl@intel.com, paul.e.luse@intel.com, mohamed.mansoor.v@intel.com, kam.nasim@intel.com, anoop.c.vijay@intel.com Subject: [PATCH v5 5/6] drm/xe/sysctrl: Integrate System Controller into device Date: Tue, 27 Jan 2026 02:53:49 -0800 Message-ID: <20260127105347.2651751-13-anoop.c.vijay@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260127105347.2651751-8-anoop.c.vijay@intel.com> References: <20260127105347.2651751-8-anoop.c.vijay@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" From: Anoop Vijay Add System Controller to the xe_device structure and wire up initialization during device probe. Signed-off-by: Anoop Vijay Reviewed-by: Umesh Nerlige Ramappa --- drivers/gpu/drm/xe/xe_device.c | 5 +++++ drivers/gpu/drm/xe/xe_device_types.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index f4741cbe4c45..e11339e10433 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -66,6 +66,7 @@ #include "xe_survivability_mode.h" #include "xe_sriov.h" #include "xe_svm.h" +#include "xe_sysctrl.h" #include "xe_tile.h" #include "xe_ttm_stolen_mgr.h" #include "xe_ttm_sys_mgr.h" @@ -1027,6 +1028,10 @@ int xe_device_probe(struct xe_device *xe) if (err) goto err_unregister_display; + err = xe_sysctrl_init(xe); + if (err) + goto err_unregister_display; + err = xe_device_sysfs_init(xe); if (err) goto err_unregister_display; diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index a85be9ba175e..6295b2c35d4a 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h +++ b/drivers/gpu/drm/xe/xe_device_types.h @@ -29,6 +29,7 @@ #include "xe_sriov_vf_ccs_types.h" #include "xe_step_types.h" #include "xe_survivability_mode_types.h" +#include "xe_sysctrl_types.h" #include "xe_tile_sriov_vf_types.h" #include "xe_validation.h" @@ -340,6 +341,8 @@ struct xe_device { u8 has_soc_remapper_telem:1; /** @info.has_sriov: Supports SR-IOV */ u8 has_sriov:1; + /** @info.has_sysctrl: Supports System Controller */ + u8 has_sysctrl:1; /** @info.has_usm: Device has unified shared memory support */ u8 has_usm:1; /** @info.has_64bit_timestamp: Device supports 64-bit timestamps */ @@ -606,6 +609,9 @@ struct xe_device { /** @heci_gsc: graphics security controller */ struct xe_heci_gsc heci_gsc; + /** @sc: System Controller */ + struct xe_sysctrl sc; + /** @nvm: discrete graphics non-volatile memory */ struct intel_dg_nvm_dev *nvm; -- 2.43.0