]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe: Move xe->info.force_execlist initialization
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 26 May 2026 19:54:48 +0000 (21:54 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 27 May 2026 10:51:24 +0000 (12:51 +0200)
The xe_info_init_early() is a place where we initialize those of
the xe->info fields that do not require any additional hardware
probes. Move the initialization of the force_execlist flag there.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patch.msgid.link/20260526195452.20545-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_pci.c

index 3f063e5530bbc548478f3e5a5d5e260aa7ecdd57..cdc7e0935c13a01f630148c83d0d6940341b3ac9 100644 (file)
@@ -523,7 +523,6 @@ struct xe_device *xe_device_create(struct pci_dev *pdev)
 
        xe->info.devid = pdev->device;
        xe->info.revid = pdev->revision;
-       xe->info.force_execlist = xe_modparam.force_execlist;
        xe->atomic_svm_timeslice_ms = 5;
        xe->min_run_period_lr_ms = 5;
 
index b368bb190fc473f21e43f88f9c4d55dfa6773eca..ed932254f16f42bb54217f256cb6c83261d0490e 100644 (file)
@@ -777,6 +777,7 @@ static int xe_info_init_early(struct xe_device *xe,
        xe->info.probe_display = IS_ENABLED(CONFIG_DRM_XE_DISPLAY) &&
                                 xe_modparam.probe_display &&
                                 desc->has_display;
+       xe->info.force_execlist = xe_modparam.force_execlist;
 
        xe_assert(xe, desc->max_gt_per_tile > 0);
        xe_assert(xe, desc->max_gt_per_tile <= XE_MAX_GT_PER_TILE);