Skip to content

Commit b26de02

Browse files
mpatelczThomas Hellström
authored andcommitted
drm/xe: make change ccs_mode a synchronous action
If ccs_mode is being modified via /sys/class/drm/cardX/device/tileY/gtY/ccs_mode the asynchronous reset is triggered and the write returns immediately. With that some test receive false information about number of CCS engines or even fail if they proceed without delay after changing the ccs_mode. Changing the ccs_mode change from async to sync to prevent failures in tests. Signed-off-by: Maciej Patelczyk <maciej.patelczyk@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Fixes: f3bc5bb ("drm/xe: Allow userspace to configure CCS mode") Reviewed-by: Nirmoy Das <nirmoy.das@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241211111727.1481476-3-maciej.patelczyk@intel.com Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> (cherry picked from commit 480fb98) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 5db8916 commit b26de02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_gt_ccs_mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ ccs_mode_store(struct device *kdev, struct device_attribute *attr,
150150
xe_gt_info(gt, "Setting compute mode to %d\n", num_engines);
151151
gt->ccs_mode = num_engines;
152152
xe_gt_record_user_engines(gt);
153-
xe_gt_reset_async(gt);
153+
xe_gt_reset(gt);
154154
}
155155

156156
mutex_unlock(&xe->drm.filelist_mutex);

0 commit comments

Comments
 (0)