From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>,
<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v5 1/6] drm/xe/guc: Allow to replace xe_guc_mmio_send_recv() with KUNIT stub
Date: Tue, 11 Aug 2026 10:54:00 +0200 [thread overview]
Message-ID: <8d56ca1c-bc2c-470f-995b-20d25099219c@intel.com> (raw)
In-Reply-To: <20260810101428.1009573-9-satyanarayana.k.v.p@intel.com>
On 8/10/2026 12:14 PM, Satyanarayana K V P wrote:
> Allow to replace xe_guc_mmio_send_recv() with the stub so we can
> exercise more code paths on the fake xe device during kunit tests.
>
> Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> ---
> V4 -> V5:
> - Fixed review comments (Michal W).
> ---
> drivers/gpu/drm/xe/xe_guc.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index 4286bd05c686..82e67e9219bd 100644
> --- a/drivers/gpu/drm/xe/xe_guc.c
> +++ b/drivers/gpu/drm/xe/xe_guc.c
> @@ -6,6 +6,8 @@
> #include "xe_guc.h"
>
> #include <linux/iopoll.h>
> +#include <kunit/static_stub.h>
> +
> #include <drm/drm_managed.h>
>
> #include <generated/xe_wa_oob.h>
> @@ -1509,6 +1511,9 @@ int xe_guc_mmio_send_recv(struct xe_guc *guc, const u32 *request,
> int ret;
> int i;
>
> + KUNIT_STATIC_STUB_REDIRECT(xe_guc_mmio_send_recv, guc, request, len,
> + response_buf);
> +
> BUILD_BUG_ON(VF_SW_FLAG_COUNT != MED_VF_SW_FLAG_COUNT);
>
> xe_assert(xe, len);
next prev parent reply other threads:[~2026-08-11 8:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 10:14 [PATCH v5 0/6] KUnit test for VF provisioning error handling Satyanarayana K V P
2026-08-10 10:14 ` [PATCH v5 1/6] drm/xe/guc: Allow to replace xe_guc_mmio_send_recv() with KUNIT stub Satyanarayana K V P
2026-08-11 8:54 ` Michal Wajdeczko [this message]
2026-08-10 10:14 ` [PATCH v5 2/6] drm/xe/vf: Split submission config query helpers Satyanarayana K V P
2026-08-11 9:02 ` Michal Wajdeczko
2026-08-10 10:14 ` [PATCH v5 3/6] drm/xe/vf: Add bounds checking for queried context and doorbell counts Satyanarayana K V P
2026-08-11 9:04 ` Michal Wajdeczko
2026-08-10 10:14 ` [PATCH v5 4/6] drm/xe/vf: Add bounds checking for queried GGTT base and size Satyanarayana K V P
2026-08-11 9:43 ` Michal Wajdeczko
2026-08-10 10:14 ` [PATCH v5 5/6] drm/xe/vf: Add bounds checking for queried VRAM size Satyanarayana K V P
2026-08-11 9:48 ` Michal Wajdeczko
2026-08-10 10:14 ` [PATCH v5 6/6] drm/xe/tests: Add KUnit tests for VF provisioning error handling Satyanarayana K V P
2026-08-11 10:12 ` Michal Wajdeczko
2026-08-10 10:18 ` ✗ CI.checkpatch: warning for KUnit test for VF provisioning error handling (rev5) Patchwork
2026-08-10 10:19 ` ✓ CI.KUnit: success " Patchwork
2026-08-10 11:01 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-10 13:16 ` ✗ Xe.CI.FULL: failure " Patchwork
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=8d56ca1c-bc2c-470f-995b-20d25099219c@intel.com \
--to=michal.wajdeczko@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=satyanarayana.k.v.p@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.