[PATCH 1/2] tests/intel/xe_fault_injection: Inject errors during xe_guc_mmio_send_recv

Francois Dugast francois.dugast at intel.com
Fri Jan 17 12:49:24 UTC 2025


Hi,

On Mon, Dec 30, 2024 at 02:14:50PM +0530, Satyanarayana K V P wrote:
> Use the kernel fault injection infrastructure to test error handling
> of xe at probe time when executing xe_guc_mmio_send_recv() so that
> more code paths are tested, such as error handling and unwinding.
> 
> Error can be injected using:
> ./xe_fault_injection --run-subtest inject-fault-probe-function-xe_guc_mmio_send_recv
> 
> Cc: Matthew Brost <matthew.brost at intel.com>
> Cc: Michał Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Francois Dugast <francois.dugast at intel.com>
> Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p at intel.com>
> ---
>  tests/intel/xe_fault_injection.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/intel/xe_fault_injection.c b/tests/intel/xe_fault_injection.c
> index 7ae941367..ef3bbb7ec 100644
> --- a/tests/intel/xe_fault_injection.c
> +++ b/tests/intel/xe_fault_injection.c
> @@ -170,6 +170,7 @@ static void set_retval(const char function_name[], long long retval)
>   * @xe_uc_fw_init:		xe_uc_fw_init
>   * @xe_wa_init:			xe_wa_init
>   * @xe_wopcm_init:		xe_wopcm_init
> + * @xe_guc_mmio_send_recv:     xe_guc_mmio_send_recv

Please keep this list sorted.

>   */
>  static void
>  inject_fault_probe(int fd, char pci_slot[], const char function_name[])
> @@ -301,6 +302,7 @@ igt_main
>  		{ "xe_uc_fw_init" },
>  		{ "xe_wa_init" },
>  		{ "xe_wopcm_init" },
> +		{ "xe_guc_mmio_send_recv" },

Please also keep this list sorted.

Francois

>  		{ }
>  	};
>  	const struct section vm_create_fail_functions[] = {
> -- 
> 2.35.3
> 


More information about the igt-dev mailing list