Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: f3bc5bb4d53d ("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>

authored by

Maciej Patelczyk and committed by
Nirmoy Das
480fb980 155c77f4

+1 -1
+1 -1
drivers/gpu/drm/xe/xe_gt_ccs_mode.c
··· 150 150 xe_gt_info(gt, "Setting compute mode to %d\n", num_engines); 151 151 gt->ccs_mode = num_engines; 152 152 xe_gt_record_user_engines(gt); 153 - xe_gt_reset_async(gt); 153 + xe_gt_reset(gt); 154 154 } 155 155 156 156 mutex_unlock(&xe->drm.filelist_mutex);