All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KUnit test for VF provisioning error handling
@ 2026-07-10 12:19 Satyanarayana K V P
  2026-07-10 12:19 ` [PATCH 1/2] drm/xe/vf: Add KUNIT stub for guc_action_query_single_klv() Satyanarayana K V P
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Satyanarayana K V P @ 2026-07-10 12:19 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.

A parametrized KUnit test suite (vf_gt_config_suite) that covers distinct
error scenarios across the four resource types is added. Each test verifies
that the corresponding VF configuration function returns a negative error
code when presented with:

  Contexts : zero count, too-small allocation, invalid,
             single context, too-large allocation
  Doorbells: zero count, too-small allocation, invalid,
             single doorbell, too-large allocation
  LMEM     : zero size, too-small allocation, double expected size,
             1 GB allocation, too-large allocation
  GGTT     : zero size, too-small allocation, 4K vs 2G expected

All tests use the guc_action_query_single_klv() stub to inject these bad
responses without requiring actual hardware or PF interaction.

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

Satyanarayana K V P (2):
  drm/xe/vf: Add KUNIT stub for guc_action_query_single_klv()
  drm/xe/tests: Add KUnit tests for VF provisioning error handling

 drivers/gpu/drm/xe/tests/xe_gt_sriov_vf.c | 387 ++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c       |   7 +
 2 files changed, 394 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_gt_sriov_vf.c

-- 
2.53.0


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

end of thread, other threads:[~2026-07-14 10:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 12:19 [PATCH 0/2] KUnit test for VF provisioning error handling Satyanarayana K V P
2026-07-10 12:19 ` [PATCH 1/2] drm/xe/vf: Add KUNIT stub for guc_action_query_single_klv() Satyanarayana K V P
2026-07-10 12:19 ` [PATCH 2/2] drm/xe/tests: Add KUnit tests for VF provisioning error handling Satyanarayana K V P
2026-07-14 10:27   ` Michal Wajdeczko
2026-07-10 12:24 ` ✗ CI.checkpatch: warning for KUnit test " Patchwork
2026-07-10 12:25 ` ✓ CI.KUnit: success " Patchwork
2026-07-10 13:33 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-10 21:44 ` ✗ 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.