[PATCH v3] drm/xe: Use fault injection infrastructure to find issues at probe time

Jani Nikula jani.nikula at linux.intel.com
Thu Sep 26 09:43:59 UTC 2024


On Wed, 25 Sep 2024, Francois Dugast <francois.dugast at intel.com> wrote:
> +/*
> + * The ALLOW_ERROR_INJECTION() macro is added to conditionally skip execution at
> + * runtime and use a provided return value, in order to test errors paths in the
> + * callers. The requirements for the error injectable functions are not strictly
> + * fullfilled but this is acceptable because the caller only propagates the error
> + * up the stack without cleanup of resources potentially allocated here.
> + */

I'm curious on the details of "The requirements for the error injectable
functions are not strictly fullfilled". It's repeated many times, but
not explained. Maybe I'd like the info spoon fed to me instead of having
to figure it out for myself. ;)

BR,
Jani.


-- 
Jani Nikula, Intel


More information about the Intel-xe mailing list