[PATCH 0/2] Introduce fault injection for guc CTB & mmio send/recv.
Satyanarayana K V P
satyanarayana.k.v.p at intel.com
Mon Dec 30 11:43:45 UTC 2024
Introduce fault injection for guc CTB & mmio send/recv
Enable below Kconfig options.
CONFIG_KUNIT=m
CONFIG_KUNIT_DEBUGFS=y
CONFIG_FAIL_FUNCTION=y
CONFIG_FAULT_INJECTION=y
CONFIG_FAULT_INJECTION_DEBUG_FS=y
CONFIG_FUNCTION_ERROR_INJECTION=y
Fault can be injected with below steps.
FAILTYPE=fail_function
FAILFUNC=xe_guc_ct_send_recv
echo > /sys/kernel/debug/$FAILTYPE/inject
echo $FAILFUNC > /sys/kernel/debug/$FAILTYPE/inject
printf %#x -19 > /sys/kernel/debug/$FAILTYPE/$FAILFUNC/retval
echo N > /sys/kernel/debug/$FAILTYPE/task-filter
echo 10 > /sys/kernel/debug/$FAILTYPE/probability
echo 0 > /sys/kernel/debug/$FAILTYPE/interval
echo -1 > /sys/kernel/debug/$FAILTYPE/times
echo 0 > /sys/kernel/debug/$FAILTYPE/space
echo 1 > /sys/kernel/debug/$FAILTYPE/verbose
ALso, can be tested using IGT with
igt at xe_fault_injection@guc-fail-xe_guc_ct_send_recv
igt at xe_fault_injection@inject-fault-probe-function-xe_guc_mmio_send_recv
Test-with: 20241230104008.25403-2-satyanarayana.k.v.p at intel.com
Test-with: 20241230104008.25403-3-satyanarayana.k.v.p at intel.com
Satyanarayana K V P (2):
drm/xe: Introduce fault injection for guc mmio send/recv.
drm/xe: Introduce fault injection for guc CTB send/recv
drivers/gpu/drm/xe/xe_guc.c | 1 +
drivers/gpu/drm/xe/xe_guc_ct.c | 1 +
2 files changed, 2 insertions(+)
--
2.35.3
More information about the Intel-xe
mailing list