From: Francois Dugast <francois.dugast@intel.com>
To: <nakshtra.goyal@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <ramadevi.gandi@intel.com>
Subject: Re: [PATCH] drm/xe: Add fault injection for xe_oa_alloc_regs
Date: Thu, 27 Feb 2025 11:56:10 +0100 [thread overview]
Message-ID: <Z8BEytTlT5KR0dZt@fdugast-desk> (raw)
In-Reply-To: <20250227102339.2859726-1-nakshtra.goyal@intel.com>
On Thu, Feb 27, 2025 at 03:53:39PM +0530, nakshtra.goyal@intel.com wrote:
> From: Nakshtra Goyal <nakshtra.goyal@intel.com>
>
> Add fault injection for xe_oa_alloc_regs to allow it to fail while
> executing xe_oa_add_config_ioctl().
> This need to be added as it cannot be reached by injecting error through
> IOCTL arguments.
>
> Signed-off-by: Nakshtra Goyal <nakshtra.goyal@intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
> ---
> drivers/gpu/drm/xe/xe_oa.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
> index d89e6cabf5a5..b8704360f998 100644
> --- a/drivers/gpu/drm/xe/xe_oa.c
> +++ b/drivers/gpu/drm/xe/xe_oa.c
> @@ -2231,6 +2231,7 @@ xe_oa_alloc_regs(struct xe_oa *oa, bool (*is_valid)(struct xe_oa *oa, u32 addr),
> kfree(oa_regs);
> return ERR_PTR(err);
> }
> +ALLOW_ERROR_INJECTION(xe_oa_alloc_regs, ERRNO);
>
> static ssize_t show_dynamic_id(struct kobject *kobj,
> struct kobj_attribute *attr,
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-02-27 10:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-27 10:23 [PATCH] drm/xe: Add fault injection for xe_oa_alloc_regs nakshtra.goyal
2025-02-27 10:56 ` Francois Dugast [this message]
2025-02-27 11:53 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-27 11:53 ` ✓ CI.checkpatch: " Patchwork
2025-02-27 11:54 ` ✓ CI.KUnit: " Patchwork
2025-02-27 12:11 ` ✓ CI.Build: " Patchwork
2025-02-27 12:13 ` ✓ CI.Hooks: " Patchwork
2025-02-27 12:15 ` ✓ CI.checksparse: " Patchwork
2025-02-27 12:33 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-27 14:41 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-26 9:12 ` Goyal, Nakshtra
2025-03-26 9:14 ` [PATCH] " Ghimiray, Himal Prasad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z8BEytTlT5KR0dZt@fdugast-desk \
--to=francois.dugast@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=nakshtra.goyal@intel.com \
--cc=ramadevi.gandi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox