Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ghimiray, Himal Prasad" <himal.prasad.ghimiray@intel.com>
To: <nakshtra.goyal@intel.com>, <intel-xe@lists.freedesktop.org>,
	<ramadevi.gandi@intel.com>
Cc: <francois.dugast@intel.com>
Subject: Re: [PATCH] drm/xe: Add fault injection for xe_oa_alloc_regs
Date: Wed, 26 Mar 2025 14:44:40 +0530	[thread overview]
Message-ID: <53877f81-e3fa-446d-b663-55a3427cef27@intel.com> (raw)
In-Reply-To: <20250227102339.2859726-1-nakshtra.goyal@intel.com>



On 27-02-2025 15:53, 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>

LGTM
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@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,


      parent reply	other threads:[~2025-03-26  9:14 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
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 ` Ghimiray, Himal Prasad [this message]

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=53877f81-e3fa-446d-b663-55a3427cef27@intel.com \
    --to=himal.prasad.ghimiray@intel.com \
    --cc=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