All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/6] KUnit test for VF provisioning error handling
@ 2026-08-10 10:14 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
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Satyanarayana K V P @ 2026-08-10 10:14 UTC (permalink / raw)
  To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko

This patchset adds infrastructure and tests to verify that a VF
properly handles malformed or invalid device configuration
responses from the PF.

A VF relies on the PF to provide valid hardware configuration through GuC
KLV responses during initialization. If the PF is misconfigured or
malfunctioning, a VF may receive zero, incomplete, or out-of-range
values for critical resources like GGTT, VRAM, Contexts or Doorbells.

Add KUnit test cases that use the xe_guc_mmio_send_recv() stub to inject
bad KLV responses and verify that VF can survive without crashing for
the invalid configuration data received.

While adding this kunit test, found some missing error handling in the VF
code path for invalid doorbell,  GGTT and VRAM configurations. This
patchset also adds the missing error handling to the VF code path.

Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>

Satyanarayana K V P (6):
  drm/xe/guc: Allow to replace xe_guc_mmio_send_recv() with KUNIT stub
  drm/xe/vf: Split submission config query helpers
  drm/xe/vf: Add bounds checking for queried context and doorbell counts
  drm/xe/vf: Add bounds checking for queried GGTT base and size
  drm/xe/vf: Add bounds checking for queried VRAM size
  drm/xe/tests: Add KUnit tests for VF provisioning error handling

 .../gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c   | 322 ++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c           |  84 ++++-
 drivers/gpu/drm/xe/xe_guc.c                   |   5 +
 3 files changed, 402 insertions(+), 9 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c

-- 
2.53.0


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-08-11 10:12 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.