Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8BA4606A335 for ; Fri, 30 Oct 2026 14:46:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=LL3gWHmg Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A4AC0112872; Fri, 30 Oct 2026 14:46:13 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9BCB710E387 for ; Fri, 30 Oct 2026 14:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1793371564; x=1824907564; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JPwUrDugAvBdx8KzkgDe4sxRn+9iTTRodMQKll+eWB4=; b=LL3gWHmgRE+LOIK14/21eyniB0yjDRIs3c0CPrTI5Gc/m6jJUCQQ59p0 CM5eM8stwfxMQuzA6qKxCBHSSc3vSkBBExpwdbh+Sf+VJrUmBMZ6ZCU4c us3n+WpBGZjR9Bm/FTvGd2Flfd/wG7cGYt5CtENRpfJnm1J95hH8JsrwO 2mEDiI8hOHqaD4ubgTPWqSIdkU2yQtqQb1+J89cjaxVB4aWGVJ6zf/IIa uJIQjJ2cbfX6i+RDLJ4h1MYegPAI0wxdZGmkHwG8GWAWnDgmfyaMN8vY1 aa/JVH682Lnpc/b5keZfbJSeHEwfouDXBnB448YHc56Fe0RvHjUwOVyad A==; X-CSE-ConnectionGUID: xUpW3Eg/TL6YMtZAeHpqQQ== X-CSE-MsgGUID: ImGV7TU5R7OPV6SGy06o0g== X-IronPort-AV: E=McAfee;i="6800,10657,11951"; a="2012665" X-IronPort-AV: E=Sophos;i="6.27,186,1787036400"; d="scan'208";a="2012665" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2026 07:46:03 -0700 X-CSE-ConnectionGUID: I4K5OzfySMaAU+QOVk5Ing== X-CSE-MsgGUID: Mz6w+/AGTqOP6B0N33R+Sg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,186,1787036400"; d="scan'208";a="5588625" Received: from bnilawar-desk2.iind.intel.com ([10.190.239.41]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2026 07:45:59 -0700 From: Badal Nilawar To: intel-xe@lists.freedesktop.org Cc: anshuman.gupta@intel.com, rodrigo.vivi@intel.com, daniele.ceraolospurio@intel.com, michael.j.ruhl@intel.com, alexander.usyskin@intel.com, anoop.c.vijay@intel.com, shamim.begum@intel.com, kelvin.gardiner@intel.com Subject: [PATCH v6 3/6] drm/xe/xe_late_bind_fw: Convert late bind flag to mask Date: Fri, 30 Oct 2026 20:15:51 +0530 Message-ID: <20261030144547.2532309-11-badal.nilawar@intel.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261030144547.2532309-8-badal.nilawar@intel.com> References: <20261030144547.2532309-8-badal.nilawar@intel.com> X-Archived-By: 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-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Replace the has_late_bind flag with a late_bind_mask to support multiple late bind firmware types. No functional change intended. Reviewed-by: Daniele Ceraolo Spurio Signed-off-by: Badal Nilawar --- drivers/gpu/drm/xe/xe_device.c | 2 +- drivers/gpu/drm/xe/xe_device_types.h | 4 ++-- drivers/gpu/drm/xe/xe_late_bind_fw.c | 5 ++++- drivers/gpu/drm/xe/xe_pci.c | 4 ++-- drivers/gpu/drm/xe/xe_pci_types.h | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index d3bb42e4d0d7..135ba4383c16 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -676,7 +676,7 @@ static void vf_update_device_info(struct xe_device *xe) xe->info.has_heci_cscfi = 0; xe->info.has_heci_gscfi = 0; xe->info.has_i2c = 0; - xe->info.has_late_bind = 0; + xe->info.late_bind_mask = 0; xe->info.skip_guc_pc = 1; xe->info.skip_pcode = 1; xe->info.has_drm_ras = false; diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index b98418795d5e..d99881c6e1d5 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h +++ b/drivers/gpu/drm/xe/xe_device_types.h @@ -151,6 +151,8 @@ struct xe_device { u8 vm_max_level; /** @info.va_bits: Maximum bits of a virtual address */ u8 va_bits; + /** @info.late_bind_mask: Indicates supported late binding firmwares */ + u8 late_bind_mask; /* * Keep all flags below alphabetically sorted @@ -184,8 +186,6 @@ struct xe_device { u8 has_heci_gscfi:1; /** @info.has_i2c: Device has I2C controller */ u8 has_i2c:1; - /** @info.has_late_bind: Device has firmware late binding support */ - u8 has_late_bind:1; /** @info.has_llc: Device has a shared CPU+GPU last level cache */ u8 has_llc:1; /** @info.has_mbx_power_limits: Device has support to manage power limits using diff --git a/drivers/gpu/drm/xe/xe_late_bind_fw.c b/drivers/gpu/drm/xe/xe_late_bind_fw.c index b7957e255ccd..c5f3a3b8d404 100644 --- a/drivers/gpu/drm/xe/xe_late_bind_fw.c +++ b/drivers/gpu/drm/xe/xe_late_bind_fw.c @@ -391,6 +391,7 @@ static int __xe_late_bind_fw_init(struct xe_late_bind *late_bind, u32 fw_id) static int xe_late_bind_fw_init(struct xe_late_bind *late_bind) { + struct xe_device *xe = late_bind_to_xe(late_bind); int ret; int fw_id; @@ -399,6 +400,8 @@ static int xe_late_bind_fw_init(struct xe_late_bind *late_bind) return -ENOMEM; for (fw_id = 0; fw_id < XE_LB_FW_MAX_ID; fw_id++) { + if (!(xe->info.late_bind_mask & BIT(fw_id))) + continue; ret = __xe_late_bind_fw_init(late_bind, fw_id); if (ret) return ret; @@ -462,7 +465,7 @@ int xe_late_bind_init(struct xe_late_bind *late_bind) struct xe_device *xe = late_bind_to_xe(late_bind); int err; - if (!xe->info.has_late_bind) + if (!xe->info.late_bind_mask) return 0; if (!IS_ENABLED(CONFIG_INTEL_MEI_LB) || !IS_ENABLED(CONFIG_INTEL_MEI_GSC)) { diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index d13599d79ae9..3e6f8f936235 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -424,10 +424,10 @@ static const struct xe_device_desc bmg_desc = { .has_gsc_nvm = 1, .has_heci_cscfi = 1, .has_i2c = true, - .has_late_bind = true, .has_pre_prod_wa = 1, .has_soc_remapper_telem = true, .has_sriov = true, + .late_bind_mask = BIT(XE_LB_FW_FAN_CONTROL), .max_gt_per_tile = 2, MULTI_LRC_MASK, .needs_scratch = true, @@ -811,7 +811,6 @@ static int xe_info_init_early(struct xe_device *xe, xe->info.has_heci_gscfi = desc->has_heci_gscfi; xe->info.has_heci_cscfi = desc->has_heci_cscfi; xe->info.has_i2c = desc->has_i2c; - xe->info.has_late_bind = desc->has_late_bind; xe->info.has_llc = desc->has_llc; xe->info.has_mert = desc->has_mert; xe->info.has_page_reclaim_hw_assist = desc->has_page_reclaim_hw_assist; @@ -829,6 +828,7 @@ static int xe_info_init_early(struct xe_device *xe, xe->info.needs_scratch = desc->needs_scratch; xe->info.needs_shared_vf_gt_wq = desc->needs_shared_vf_gt_wq; xe->info.multi_lrc_mask = desc->multi_lrc_mask; + xe->info.late_bind_mask = desc->late_bind_mask; xe->info.probe_display = IS_ENABLED(CONFIG_DRM_XE_DISPLAY) && xe_modparam.probe_display && diff --git a/drivers/gpu/drm/xe/xe_pci_types.h b/drivers/gpu/drm/xe/xe_pci_types.h index ce0b0f6c5b18..74a6cd461b21 100644 --- a/drivers/gpu/drm/xe/xe_pci_types.h +++ b/drivers/gpu/drm/xe/xe_pci_types.h @@ -28,6 +28,7 @@ struct xe_device_desc { enum xe_platform platform; u8 dma_mask_size; + u8 late_bind_mask; u8 max_remote_tiles:2; u8 max_gt_per_tile:2; u8 multi_lrc_mask; @@ -49,7 +50,6 @@ struct xe_device_desc { u8 has_heci_gscfi:1; u8 has_heci_cscfi:1; u8 has_i2c:1; - u8 has_late_bind:1; u8 has_llc:1; u8 has_mbx_power_limits:1; u8 has_mbx_thermal_info:1; -- 2.56.0