[PATCH v2 0/2] drm/xe: adding wait helper for gt async reset
Maciej Patelczyk
maciej.patelczyk at intel.com
Tue Dec 10 14:37:46 UTC 2024
GT reset is asynchronous. However, in few places there is an explicit
wait for reset to finish via flush_work.
Providing a synchronous gt reset version and additionally wait helper
The usage of asynchronous reset in sysfs gt0/tile0/ccs_mode creates
a situation in which a user after changing ccs_mode with immediate
query can receive only partial configuration due to ongoing reset.
For instance a single compute engine where 4 were requested.
This sometimes happens in the EU Debugger tests leading to skips or
even failures (sysfs not accessible).
This forces usage of sleep() in tests to wait for reset to complete.
The first patch provides xe_gt_reset and a helper xe_gt_reset_wait.
The second patch makes ccs_mode sysfs write wait for reset to
finish.
Maciej Patelczyk (2):
drm/xe: introduce xe_gt_reset and xe_gt_reset_wait
drm/xe: make change ccs_mode a synchronous action
drivers/gpu/drm/xe/tests/xe_bo.c | 7 +++----
drivers/gpu/drm/xe/tests/xe_mocs.c | 3 +--
drivers/gpu/drm/xe/xe_gt.h | 25 +++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_gt_ccs_mode.c | 2 +-
drivers/gpu/drm/xe/xe_gt_debugfs.c | 2 +-
5 files changed, 31 insertions(+), 8 deletions(-)
--
2.43.0
More information about the Intel-xe
mailing list