[PATCH 2/2] drm/xe: Ensure GT reset is complete during ccs_mode change
Balasubramani Vivekanandan
balasubramani.vivekanandan at intel.com
Thu Nov 14 13:37:38 UTC 2024
Driver returns from the ccs_mode change request soon after initiating an
asynchronous GT reset. Userspace may submit GT workload while the GT
reset is ongoing and may see unexpected results.
Make sure the GT reset is complete before exiting from the ccs_mode
change request.
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan at intel.com>
---
drivers/gpu/drm/xe/xe_gt_ccs_mode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
index b6adfb9f2030..9b6c15239487 100644
--- a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
+++ b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
@@ -150,7 +150,7 @@ ccs_mode_store(struct device *kdev, struct device_attribute *attr,
xe_gt_info(gt, "Setting compute mode to %d\n", num_engines);
gt->ccs_mode = num_engines;
xe_gt_record_user_engines(gt);
- xe_gt_reset_async(gt);
+ xe_gt_reset_sync(gt);
}
mutex_unlock(&xe->drm.filelist_mutex);
--
2.34.1
More information about the Intel-xe
mailing list