drm/xe: Add helper function to inject fault into ct_dead_capture()
authorSatyanarayana K V P <satyanarayana.k.v.p@intel.com>
Thu, 12 Jun 2025 08:04:02 +0000 (13:34 +0530)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 12 Jun 2025 23:53:56 +0000 (16:53 -0700)
commit87c648c31322459ed1284ee18ab9c256cb076fd0
tree799987584dd66c0d24f0f61cc5f88de44e160817
parent0b93b7dcd9eb888a6ac7546560877705d4ad61bf
drm/xe: Add helper function to inject fault into ct_dead_capture()

When injecting fault to xe_guc_ct_send_recv() & xe_guc_mmio_send_recv()
functions, the CI test systems are going out of space and crashing. To
avoid this issue, a new helper function is created and when fault is
injected into this xe_is_injection_active() helper function, ct dead
capture is avoided which suppresses ct dumps in the log.

Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Suggested-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://lore.kernel.org/r/20250612080402.22011-1-satyanarayana.k.v.p@intel.com
drivers/gpu/drm/xe/xe_device.h
drivers/gpu/drm/xe/xe_guc_ct.c