* [PATCH v10 00/10] KUnit test for VF provisioning error handling
@ 2026-09-21 9:20 Satyanarayana K V P
2026-09-21 9:21 ` [PATCH v10 01/10] drm/xe/guc: Allow to replace xe_guc_mmio_send_recv() with KUNIT stub Satyanarayana K V P
` (13 more replies)
0 siblings, 14 replies; 20+ messages in thread
From: Satyanarayana K V P @ 2026-09-21 9:20 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 (10):
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: Introduce helpers for VRAM alignment
drm/xe/ggtt: Avoid integer overflow when validating VF GGTT range
drm/xe/sriov: Add helper for VF GGTT provisioning alignment
drm/xe/vf: Add bounds checking for queried GGTT base and size
drm/xe/vf: Add alignment check for queried VRAM size
drm/xe/ggtt: Add KUnit stub for xe_ggtt_shift_nodes()
drm/xe/tests: Add KUnit tests for VF provisioning error handling
drivers/gpu/drm/xe/display/xe_fb_pin.c | 2 +-
drivers/gpu/drm/xe/display/xe_initial_plane.c | 2 +-
drivers/gpu/drm/xe/tests/xe_bo.c | 2 +-
drivers/gpu/drm/xe/tests/xe_dma_buf.c | 2 +-
.../gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c | 676 ++++++++++++++++++
drivers/gpu/drm/xe/xe_bo.c | 7 +-
drivers/gpu/drm/xe/xe_device.h | 10 +
drivers/gpu/drm/xe/xe_ggtt.c | 25 +-
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 4 +-
drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 113 ++-
drivers/gpu/drm/xe/xe_guc.c | 5 +
drivers/gpu/drm/xe/xe_query.c | 2 +-
drivers/gpu/drm/xe/xe_sriov.c | 11 +
drivers/gpu/drm/xe/xe_sriov.h | 1 +
drivers/gpu/drm/xe/xe_svm.c | 2 +-
drivers/gpu/drm/xe/xe_vm.c | 4 +-
16 files changed, 833 insertions(+), 35 deletions(-)
create mode 100644 drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c
--
2.53.0
^ permalink raw reply [flat|nested] 20+ messages in thread* [PATCH v10 01/10] drm/xe/guc: Allow to replace xe_guc_mmio_send_recv() with KUNIT stub 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 02/10] drm/xe/vf: Split submission config query helpers Satyanarayana K V P ` (12 subsequent siblings) 13 siblings, 0 replies; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko 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> --- 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 c7f8bbd4cb92..992a69e19332 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> @@ -1510,6 +1512,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); -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v10 02/10] drm/xe/vf: Split submission config query helpers 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 01/10] drm/xe/guc: Allow to replace xe_guc_mmio_send_recv() with KUNIT stub Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 03/10] drm/xe/vf: Add bounds checking for queried context and doorbell counts Satyanarayana K V P ` (11 subsequent siblings) 13 siblings, 0 replies; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko Refactor vf_get_submission_cfg() into separate vf_get_ctxs_cfg() and vf_get_dbs_cfg() functions which allows independent error handling and validation for each resource, and improves testability. 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> --- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 49 +++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c index 37899fcf5b22..339ea0d3344c 100644 --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c @@ -568,11 +568,11 @@ static int vf_get_lmem_info(struct xe_gt *gt) return size ? 0 : -ENODATA; } -static int vf_get_submission_cfg(struct xe_gt *gt) +static int vf_get_ctxs_cfg(struct xe_gt *gt) { struct xe_gt_sriov_vf_selfconfig *config = >->sriov.vf.self_config; struct xe_guc *guc = >->uc.guc; - u32 num_ctxs, num_dbs; + u32 num_ctxs; int err; xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt))); @@ -581,27 +581,58 @@ static int vf_get_submission_cfg(struct xe_gt *gt) if (unlikely(err)) return err; - err = guc_action_query_single_klv32(guc, GUC_KLV_VF_CFG_NUM_DOORBELLS_KEY, &num_dbs); - if (unlikely(err)) - return err; - if (config->num_ctxs && config->num_ctxs != num_ctxs) { xe_gt_sriov_err(gt, "Unexpected CTXs reassignment: %u != %u\n", num_ctxs, config->num_ctxs); return -EREMCHG; } + + xe_gt_sriov_dbg_verbose(gt, "CTXs %u\n", num_ctxs); + + config->num_ctxs = num_ctxs; + + return config->num_ctxs ? 0 : -ENODATA; +} + +static int vf_get_dbs_cfg(struct xe_gt *gt) +{ + struct xe_gt_sriov_vf_selfconfig *config = >->sriov.vf.self_config; + struct xe_guc *guc = >->uc.guc; + u32 num_dbs; + int err; + + xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt))); + + err = guc_action_query_single_klv32(guc, GUC_KLV_VF_CFG_NUM_DOORBELLS_KEY, &num_dbs); + if (unlikely(err)) + return err; + if (config->num_dbs && config->num_dbs != num_dbs) { xe_gt_sriov_err(gt, "Unexpected DBs reassignment: %u != %u\n", num_dbs, config->num_dbs); return -EREMCHG; } - xe_gt_sriov_dbg_verbose(gt, "CTXs %u DBs %u\n", num_ctxs, num_dbs); + xe_gt_sriov_dbg_verbose(gt, "DBs %u\n", num_dbs); - config->num_ctxs = num_ctxs; config->num_dbs = num_dbs; - return config->num_ctxs ? 0 : -ENODATA; + return 0; +} + +static int vf_get_submission_cfg(struct xe_gt *gt) +{ + int err; + + err = vf_get_ctxs_cfg(gt); + if (unlikely(err)) + return err; + + err = vf_get_dbs_cfg(gt); + if (unlikely(err)) + return err; + + return 0; } static void vf_cache_gmdid(struct xe_gt *gt) -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v10 03/10] drm/xe/vf: Add bounds checking for queried context and doorbell counts 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 01/10] drm/xe/guc: Allow to replace xe_guc_mmio_send_recv() with KUNIT stub Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 02/10] drm/xe/vf: Split submission config query helpers Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 04/10] drm/xe: Introduce helpers for VRAM alignment Satyanarayana K V P ` (10 subsequent siblings) 13 siblings, 0 replies; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko Add explicit bounds checks for context and doorbells which can detect and reject invalid configuration data from a misconfigured or malfunctioning PF, preventing protocol violations and protecting VF initialization. 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> --- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c index 339ea0d3344c..715dfb04a1f3 100644 --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c @@ -15,6 +15,7 @@ #include "abi/guc_klvs_abi.h" #include "abi/guc_relay_actions_abi.h" #include "regs/xe_gt_regs.h" +#include "regs/xe_guc_regs.h" #include "xe_assert.h" #include "xe_device.h" @@ -581,6 +582,11 @@ static int vf_get_ctxs_cfg(struct xe_gt *gt) if (unlikely(err)) return err; + if (num_ctxs > GUC_ID_MAX) { + xe_gt_sriov_err(gt, "Out of bound CTXs %u received\n", num_ctxs); + return -ERANGE; + } + if (config->num_ctxs && config->num_ctxs != num_ctxs) { xe_gt_sriov_err(gt, "Unexpected CTXs reassignment: %u != %u\n", num_ctxs, config->num_ctxs); @@ -607,6 +613,11 @@ static int vf_get_dbs_cfg(struct xe_gt *gt) if (unlikely(err)) return err; + if (num_dbs > GUC_NUM_DOORBELLS) { + xe_gt_sriov_err(gt, "Out of bound DBs %u received\n", num_dbs); + return -ERANGE; + } + if (config->num_dbs && config->num_dbs != num_dbs) { xe_gt_sriov_err(gt, "Unexpected DBs reassignment: %u != %u\n", num_dbs, config->num_dbs); -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v10 04/10] drm/xe: Introduce helpers for VRAM alignment 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (2 preceding siblings ...) 2026-09-21 9:21 ` [PATCH v10 03/10] drm/xe/vf: Add bounds checking for queried context and doorbell counts Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 05/10] drm/xe/ggtt: Avoid integer overflow when validating VF GGTT range Satyanarayana K V P ` (9 subsequent siblings) 13 siblings, 0 replies; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko Add new xe_vram_alignment() and xe_vram_needs_64k() helpers to get the VRAM minimum alignment (4K vs 64K). Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> --- drivers/gpu/drm/xe/display/xe_fb_pin.c | 2 +- drivers/gpu/drm/xe/display/xe_initial_plane.c | 2 +- drivers/gpu/drm/xe/tests/xe_bo.c | 2 +- drivers/gpu/drm/xe/tests/xe_dma_buf.c | 2 +- drivers/gpu/drm/xe/xe_bo.c | 7 +++---- drivers/gpu/drm/xe/xe_device.h | 10 ++++++++++ drivers/gpu/drm/xe/xe_ggtt.c | 2 +- drivers/gpu/drm/xe/xe_query.c | 2 +- drivers/gpu/drm/xe/xe_svm.c | 2 +- drivers/gpu/drm/xe/xe_vm.c | 4 ++-- 10 files changed, 22 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c index b46a2c32ac07..ad4f3ce774ec 100644 --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c @@ -273,7 +273,7 @@ static int __xe_pin_fb_vma_ggtt(struct drm_gem_object *obj, guard(xe_pm_runtime_noresume)(xe); align = max(XE_PAGE_SIZE, pin_params->alignment); - if (xe_bo_is_vram(bo) && xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K) + if (xe_bo_is_vram(bo) && xe_vram_needs_64k(xe)) align = max(align, SZ_64K); /* Fast case, preallocated GGTT view? */ diff --git a/drivers/gpu/drm/xe/display/xe_initial_plane.c b/drivers/gpu/drm/xe/display/xe_initial_plane.c index 0f86b73036d0..b2c8a22485a3 100644 --- a/drivers/gpu/drm/xe/display/xe_initial_plane.c +++ b/drivers/gpu/drm/xe/display/xe_initial_plane.c @@ -45,7 +45,7 @@ initial_plane_bo(struct xe_device *xe, struct xe_bo *bo; resource_size_t phys_base; u32 base, size, flags; - u64 page_size = xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K; + u64 page_size = xe_vram_alignment(xe); if (plane_config->size == 0) return NULL; diff --git a/drivers/gpu/drm/xe/tests/xe_bo.c b/drivers/gpu/drm/xe/tests/xe_bo.c index 6a17e13d58cf..ade31e274db9 100644 --- a/drivers/gpu/drm/xe/tests/xe_bo.c +++ b/drivers/gpu/drm/xe/tests/xe_bo.c @@ -210,7 +210,7 @@ static void xe_bo_page_size_alloc_mixed_bos(struct kunit *test) */ if (flags == 0) { expected_align = SZ_4K; - if (xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K) + if (xe_vram_needs_64k(xe)) expected_align = SZ_64K; } else if (flags == XE_BO_FLAG_NEEDS_64K) { expected_align = SZ_64K; diff --git a/drivers/gpu/drm/xe/tests/xe_dma_buf.c b/drivers/gpu/drm/xe/tests/xe_dma_buf.c index 0be8440b3976..31bc218b2446 100644 --- a/drivers/gpu/drm/xe/tests/xe_dma_buf.c +++ b/drivers/gpu/drm/xe/tests/xe_dma_buf.c @@ -122,7 +122,7 @@ static void xe_test_dmabuf_import_same_driver(struct xe_device *xe) size = PAGE_SIZE; if ((params->mem_mask & XE_BO_FLAG_VRAM0) && - xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K) + xe_vram_needs_64k(xe)) size = SZ_64K; kunit_info(test, "running %s\n", __func__); diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c index f2ab9bf43a86..0a965d1b9925 100644 --- a/drivers/gpu/drm/xe/xe_bo.c +++ b/drivers/gpu/drm/xe/xe_bo.c @@ -2365,7 +2365,7 @@ struct xe_bo *xe_bo_init_locked(struct xe_device *xe, struct xe_bo *bo, if (flags & (XE_BO_FLAG_VRAM_MASK | XE_BO_FLAG_STOLEN) && !(flags & XE_BO_FLAG_IGNORE_MIN_PAGE_SIZE) && - ((xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K) || + (xe_vram_needs_64k(xe) || (flags & (XE_BO_FLAG_NEEDS_64K | XE_BO_FLAG_NEEDS_2M | XE_BO_FLAG_NEEDS_1G)))) { size_t align; @@ -3592,7 +3592,7 @@ int xe_gem_create_ioctl(struct drm_device *dev, void *data, /* CCS formats need physical placement at a 64K alignment in VRAM. */ if ((bo_flags & XE_BO_FLAG_VRAM_MASK) && (args->flags & DRM_XE_GEM_CREATE_FLAG_SCANOUT) && - !(xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K) && + !xe_vram_needs_64k(xe) && IS_ALIGNED(args->size, SZ_64K)) bo_flags |= XE_BO_FLAG_NEEDS_64K; @@ -4091,8 +4091,7 @@ int xe_bo_dumb_create(struct drm_file *file_priv, struct xe_bo *bo; uint32_t handle; int err; - u32 page_size = max_t(u32, PAGE_SIZE, - xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K); + u32 page_size = max_t(u32, PAGE_SIZE, xe_vram_alignment(xe)); err = drm_mode_size_dumb(dev, args, SZ_64, page_size); if (err) diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h index 6d3d6d5eba29..49fb8e046e94 100644 --- a/drivers/gpu/drm/xe/xe_device.h +++ b/drivers/gpu/drm/xe/xe_device.h @@ -283,6 +283,16 @@ static inline bool xe_device_is_admin_only(const struct xe_device *xe) } #endif +static inline bool xe_vram_needs_64k(const struct xe_device *xe) +{ + return IS_DGFX(xe) && (xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K); +} + +static inline u64 xe_vram_alignment(const struct xe_device *xe) +{ + return xe_vram_needs_64k(xe) ? SZ_64K : SZ_4K; +} + /* * Occasionally it is seen that the G2H worker starts running after a delay of more than * a second even after being queued and activated by the Linux workqueue subsystem. This diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c index 63e8bf193605..7cac01cef1ee 100644 --- a/drivers/gpu/drm/xe/xe_ggtt.c +++ b/drivers/gpu/drm/xe/xe_ggtt.c @@ -421,7 +421,7 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) } ggtt->gsm = ggtt->tile->mmio.regs + SZ_8M; - if (IS_DGFX(xe) && xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K) + if (xe_vram_needs_64k(xe)) ggtt->flags |= XE_GGTT_FLAGS_64K; if (ggtt_size + ggtt_start > GUC_GGTT_TOP) diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c index dc975f595368..e2b35f1164d8 100644 --- a/drivers/gpu/drm/xe/xe_query.c +++ b/drivers/gpu/drm/xe/xe_query.c @@ -355,7 +355,7 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query) config->info[DRM_XE_QUERY_CONFIG_FLAGS] |= DRM_XE_QUERY_CONFIG_FLAG_HAS_PURGING_SUPPORT; config->info[DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT] = - xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K; + xe_vram_alignment(xe); config->info[DRM_XE_QUERY_CONFIG_VA_BITS] = xe->info.va_bits; config->info[DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY] = xe_exec_queue_device_get_max_priority(xe); diff --git a/drivers/gpu/drm/xe/xe_svm.c b/drivers/gpu/drm/xe/xe_svm.c index f39e647512ad..5000e1bba3b9 100644 --- a/drivers/gpu/drm/xe/xe_svm.c +++ b/drivers/gpu/drm/xe/xe_svm.c @@ -1174,7 +1174,7 @@ static int xe_drm_pagemap_populate_mm(struct drm_pagemap *dpagemap, static bool supports_4K_migration(struct xe_device *xe) { - if (xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K) + if (xe_vram_needs_64k(xe)) return false; return true; diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c index 17dc4debe7c1..4bffe4ad6bb7 100644 --- a/drivers/gpu/drm/xe/xe_vm.c +++ b/drivers/gpu/drm/xe/xe_vm.c @@ -1752,7 +1752,7 @@ struct xe_vm *xe_vm_create(struct xe_device *xe, u32 flags, struct xe_file *xef) err = xe_vm_drm_exec_lock(vm, &exec); drm_exec_retry_on_contention(&exec); - if (IS_DGFX(xe) && xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K) + if (xe_vram_needs_64k(xe)) vm->flags |= XE_VM_FLAG_64K; for_each_tile(tile, xe, id) { @@ -3971,7 +3971,7 @@ static int xe_vm_bind_ioctl_validate_bo(struct xe_device *xe, struct xe_bo *bo, * there for the former case. */ if ((bo->flags & XE_BO_FLAG_INTERNAL_64K) && - (xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K)) { + xe_vram_needs_64k(xe)) { if (XE_IOCTL_DBG(xe, obj_offset & XE_64K_PAGE_MASK) || XE_IOCTL_DBG(xe, addr & XE_64K_PAGE_MASK) || -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v10 05/10] drm/xe/ggtt: Avoid integer overflow when validating VF GGTT range 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (3 preceding siblings ...) 2026-09-21 9:21 ` [PATCH v10 04/10] drm/xe: Introduce helpers for VRAM alignment Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 14:03 ` Michal Wajdeczko 2026-09-21 9:21 ` [PATCH v10 06/10] drm/xe/sriov: Add helper for VF GGTT provisioning alignment Satyanarayana K V P ` (8 subsequent siblings) 13 siblings, 1 reply; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe Cc: Satyanarayana K V P, Sashiko, Michal Wajdeczko, Matthew Brost, Maarten Lankhorst Use check_add_overflow() for the VF range check, and rearrange the subsequent clamping into the subtraction form so the expression does not overflow. Fixes: e904c56ba6e0 ("drm/xe: Rewrite GGTT VF initialization") Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://sashiko.dev/#/patchset/20260728095026.2197333-6-satyanarayana.k.v.p%40intel.com Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Maarten Lankhorst <dev@lankhorst.se> --- V9 -> V10: - Cleanup old stale code added in the previous revision. V8 -> V9: - Fixed review comments (Michal W). - Used check_add_overflow() for range checks (Michal W). --- drivers/gpu/drm/xe/xe_ggtt.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c index 7cac01cef1ee..2557e51bb7cc 100644 --- a/drivers/gpu/drm/xe/xe_ggtt.c +++ b/drivers/gpu/drm/xe/xe_ggtt.c @@ -8,6 +8,7 @@ #include <kunit/visibility.h> #include <linux/fault-inject.h> #include <linux/io-64-nonatomic-lo-hi.h> +#include <linux/overflow.h> #include <linux/sizes.h> #include <drm/drm_drv.h> @@ -393,8 +394,9 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) { struct xe_device *xe = tile_to_xe(ggtt->tile); struct pci_dev *pdev = to_pci_dev(xe->drm.dev); + u64 ggtt_start, ggtt_size, ggtt_end; + u64 wopcm = xe_wopcm_size(xe); unsigned int gsm_size; - u64 ggtt_start, wopcm = xe_wopcm_size(xe), ggtt_size; int err; if (!IS_SRIOV_VF(xe)) { @@ -408,14 +410,21 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) } ggtt_start = wopcm; ggtt_size = (gsm_size / 8) * (u64)XE_PAGE_SIZE - ggtt_start; + + if (check_add_overflow(ggtt_start, ggtt_size, &ggtt_end) || + ggtt_end > GUC_GGTT_TOP) + ggtt_size = GUC_GGTT_TOP - ggtt_start; + } else { ggtt_start = xe_tile_sriov_vf_ggtt_base(ggtt->tile); ggtt_size = xe_tile_sriov_vf_ggtt(ggtt->tile); if (ggtt_start < wopcm || - ggtt_start + ggtt_size > GUC_GGTT_TOP) { - xe_tile_err(ggtt->tile, "Invalid GGTT configuration: %#llx-%#llx\n", - ggtt_start, ggtt_start + ggtt_size - 1); + check_add_overflow(ggtt_start, ggtt_size, &ggtt_end) || + ggtt_end > GUC_GGTT_TOP) { + xe_tile_err(ggtt->tile, + "Invalid GGTT configuration: base %#llx, size %#llx\n", + ggtt_start, ggtt_size); return -ERANGE; } } @@ -424,9 +433,6 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) if (xe_vram_needs_64k(xe)) ggtt->flags |= XE_GGTT_FLAGS_64K; - if (ggtt_size + ggtt_start > GUC_GGTT_TOP) - ggtt_size = GUC_GGTT_TOP - ggtt_start; - if (GRAPHICS_VERx100(xe) >= 1270) ggtt->pt_ops = (ggtt->tile->media_gt && XE_GT_WA(ggtt->tile->media_gt, 22019338487)) || -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [PATCH v10 05/10] drm/xe/ggtt: Avoid integer overflow when validating VF GGTT range 2026-09-21 9:21 ` [PATCH v10 05/10] drm/xe/ggtt: Avoid integer overflow when validating VF GGTT range Satyanarayana K V P @ 2026-09-21 14:03 ` Michal Wajdeczko 0 siblings, 0 replies; 20+ messages in thread From: Michal Wajdeczko @ 2026-09-21 14:03 UTC (permalink / raw) To: Satyanarayana K V P, intel-xe; +Cc: Sashiko, Matthew Brost, Maarten Lankhorst On 9/21/2026 11:21 AM, Satyanarayana K V P wrote: > Use check_add_overflow() for the VF range check, and rearrange the > subsequent clamping into the subtraction form so the expression > does not overflow. > > Fixes: e904c56ba6e0 ("drm/xe: Rewrite GGTT VF initialization") > Reported-by: Sashiko <sashiko-bot@kernel.org> > Closes: https://sashiko.dev/#/patchset/20260728095026.2197333-6-satyanarayana.k.v.p%40intel.com > Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> > Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> > Cc: Matthew Brost <matthew.brost@intel.com> > Cc: Maarten Lankhorst <dev@lankhorst.se> > --- > V9 -> V10: > - Cleanup old stale code added in the previous revision. > > V8 -> V9: > - Fixed review comments (Michal W). > - Used check_add_overflow() for range checks (Michal W). > --- > drivers/gpu/drm/xe/xe_ggtt.c | 20 +++++++++++++------- > 1 file changed, 13 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c > index 7cac01cef1ee..2557e51bb7cc 100644 > --- a/drivers/gpu/drm/xe/xe_ggtt.c > +++ b/drivers/gpu/drm/xe/xe_ggtt.c > @@ -8,6 +8,7 @@ > #include <kunit/visibility.h> > #include <linux/fault-inject.h> > #include <linux/io-64-nonatomic-lo-hi.h> > +#include <linux/overflow.h> > #include <linux/sizes.h> > > #include <drm/drm_drv.h> > @@ -393,8 +394,9 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) > { > struct xe_device *xe = tile_to_xe(ggtt->tile); > struct pci_dev *pdev = to_pci_dev(xe->drm.dev); > + u64 ggtt_start, ggtt_size, ggtt_end; > + u64 wopcm = xe_wopcm_size(xe); > unsigned int gsm_size; > - u64 ggtt_start, wopcm = xe_wopcm_size(xe), ggtt_size; > int err; > > if (!IS_SRIOV_VF(xe)) { > @@ -408,14 +410,21 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) > } > ggtt_start = wopcm; > ggtt_size = (gsm_size / 8) * (u64)XE_PAGE_SIZE - ggtt_start; nit: if we are paranoid, shouldn't we use check_mul_overflow() too? nit: one day, we should change this magic 8 into sizeof(u64) nit: shouldn't we check/assert that GSM covers more than just WOPCM? then: if (check_mul_overflow(gsm_size / sizeof(u64), XE_PAGE_SIZE, &ggtt_end) || ggtt_end > GUC_GGTT_TOP) { ggtt_end = GUC_GGTT_TOP; } else if (ggtt_end < wopcm) { xe_tile_err(tile, "Hardware reported too small GGTT %llu\n", .. return -ENOSPC; } ggtt_start = wopcm; ggtt_size = ggtt_end - ggtt_start; or u64 gsm_to_ggtt_size(unsigned int gsm_size) { u64 ggtt_size; if (WARN_ONCE(check_mul_overflow(gsm_size / sizeof(u64), XE_PAGE_SIZE, &ggtt_size))) return SZ_4G; return ggtt_size; } ggtt_end = min(GUC_GGTT_TOP, gsm_to_ggtt_size(gsm_size)); if (ggtt_end < wopcm) { xe_tile_err(tile, "Hardware reported too small GGTT %llu\n", .. return -ENOSPC; } ggtt_start = wopcm; ggtt_size = ggtt_end - ggtt_start; > + > + if (check_add_overflow(ggtt_start, ggtt_size, &ggtt_end) || > + ggtt_end > GUC_GGTT_TOP) > + ggtt_size = GUC_GGTT_TOP - ggtt_start; > + > } else { > ggtt_start = xe_tile_sriov_vf_ggtt_base(ggtt->tile); > ggtt_size = xe_tile_sriov_vf_ggtt(ggtt->tile); > > if (ggtt_start < wopcm || > - ggtt_start + ggtt_size > GUC_GGTT_TOP) { > - xe_tile_err(ggtt->tile, "Invalid GGTT configuration: %#llx-%#llx\n", > - ggtt_start, ggtt_start + ggtt_size - 1); > + check_add_overflow(ggtt_start, ggtt_size, &ggtt_end) || > + ggtt_end > GUC_GGTT_TOP) { > + xe_tile_err(ggtt->tile, > + "Invalid GGTT configuration: base %#llx, size %#llx\n", > + ggtt_start, ggtt_size); > return -ERANGE; > } > } > @@ -424,9 +433,6 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) > if (xe_vram_needs_64k(xe)) > ggtt->flags |= XE_GGTT_FLAGS_64K; > > - if (ggtt_size + ggtt_start > GUC_GGTT_TOP) > - ggtt_size = GUC_GGTT_TOP - ggtt_start; > - > if (GRAPHICS_VERx100(xe) >= 1270) > ggtt->pt_ops = > (ggtt->tile->media_gt && XE_GT_WA(ggtt->tile->media_gt, 22019338487)) || ^ permalink raw reply [flat|nested] 20+ messages in thread
* [PATCH v10 06/10] drm/xe/sriov: Add helper for VF GGTT provisioning alignment 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (4 preceding siblings ...) 2026-09-21 9:21 ` [PATCH v10 05/10] drm/xe/ggtt: Avoid integer overflow when validating VF GGTT range Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 13:26 ` Michal Wajdeczko 2026-09-21 9:21 ` [PATCH v10 07/10] drm/xe/vf: Add bounds checking for queried GGTT base and size Satyanarayana K V P ` (7 subsequent siblings) 13 siblings, 1 reply; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko The alignment of a GGTT range provisioned to a VF is part of the PF/VF contract: the PF must allocate the range with it, and the VF must be able to verify that the range it was assigned respects it. Since PF and VF run on the same hardware, both can derive the value independently. Move it to xe_sriov_ggtt_alignment() so both sides share a single definition. Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> --- V9 -> V10: - Created a new helper to get the GGTT allocation (Sashiko). V8 -> V9: - Update PF GGTT alignment to XE_PAGE_SIZE (Sashiko). --- drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 4 +--- drivers/gpu/drm/xe/xe_sriov.c | 11 +++++++++++ drivers/gpu/drm/xe/xe_sriov.h | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c index 6947aeed458e..04ee0fc08804 100644 --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c @@ -441,9 +441,7 @@ static int pf_refresh_vf_cfg(struct xe_gt *gt, unsigned int vfid) static u64 pf_get_ggtt_alignment(struct xe_gt *gt) { - struct xe_device *xe = gt_to_xe(gt); - - return IS_DGFX(xe) && xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K; + return xe_sriov_ggtt_alignment(gt_to_xe(gt)); } static u64 pf_get_min_spare_ggtt(struct xe_gt *gt) diff --git a/drivers/gpu/drm/xe/xe_sriov.c b/drivers/gpu/drm/xe/xe_sriov.c index f3835867fce5..d7704d226554 100644 --- a/drivers/gpu/drm/xe/xe_sriov.c +++ b/drivers/gpu/drm/xe/xe_sriov.c @@ -174,3 +174,14 @@ int xe_sriov_init_late(struct xe_device *xe) return 0; } + +/** + * xe_sriov_ggtt_alignment() - Alignment of the GGTT range provisioned to a VF. + * @xe: the &xe_device + * + * Return: Alignment in bytes. + */ +u64 xe_sriov_ggtt_alignment(struct xe_device *xe) +{ + return xe_vram_alignment(xe); +} diff --git a/drivers/gpu/drm/xe/xe_sriov.h b/drivers/gpu/drm/xe/xe_sriov.h index 72e55543c30e..ee770afca00b 100644 --- a/drivers/gpu/drm/xe/xe_sriov.h +++ b/drivers/gpu/drm/xe/xe_sriov.h @@ -19,6 +19,7 @@ void xe_sriov_probe_early(struct xe_device *xe); void xe_sriov_print_info(struct xe_device *xe, struct drm_printer *p); int xe_sriov_init(struct xe_device *xe); int xe_sriov_init_late(struct xe_device *xe); +u64 xe_sriov_ggtt_alignment(struct xe_device *xe); static inline enum xe_sriov_mode xe_device_sriov_mode(const struct xe_device *xe) { -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [PATCH v10 06/10] drm/xe/sriov: Add helper for VF GGTT provisioning alignment 2026-09-21 9:21 ` [PATCH v10 06/10] drm/xe/sriov: Add helper for VF GGTT provisioning alignment Satyanarayana K V P @ 2026-09-21 13:26 ` Michal Wajdeczko 0 siblings, 0 replies; 20+ messages in thread From: Michal Wajdeczko @ 2026-09-21 13:26 UTC (permalink / raw) To: Satyanarayana K V P, intel-xe On 9/21/2026 11:21 AM, Satyanarayana K V P wrote: > The alignment of a GGTT range provisioned to a VF is part of the PF/VF > contract: the PF must allocate the range with it, and the VF must be > able to verify that the range it was assigned respects it. Since PF and > VF run on the same hardware, both can derive the value independently. > > Move it to xe_sriov_ggtt_alignment() so both sides share a single > definition. > > Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> > Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> > --- > V9 -> V10: > - Created a new helper to get the GGTT allocation (Sashiko). > > V8 -> V9: > - Update PF GGTT alignment to XE_PAGE_SIZE (Sashiko). > --- > drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 4 +--- > drivers/gpu/drm/xe/xe_sriov.c | 11 +++++++++++ > drivers/gpu/drm/xe/xe_sriov.h | 1 + > 3 files changed, 13 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c > index 6947aeed458e..04ee0fc08804 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c > @@ -441,9 +441,7 @@ static int pf_refresh_vf_cfg(struct xe_gt *gt, unsigned int vfid) > > static u64 pf_get_ggtt_alignment(struct xe_gt *gt) > { > - struct xe_device *xe = gt_to_xe(gt); > - > - return IS_DGFX(xe) && xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K; > + return xe_sriov_ggtt_alignment(gt_to_xe(gt)); hmm, while looking at __xe_ggtt_insert_bo_at() if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K) alignment = SZ_64K; where 64K alignment is enforced only for VRAM objects, maybe current implementation of pf_get_ggtt_alignment() does too much and is too restrictive by forcing a GGTT provisioning to 64K alignment, as it is still a VF responsibility to use GGTT wisely, and can use 4K alignment for system memory > } > > static u64 pf_get_min_spare_ggtt(struct xe_gt *gt) > diff --git a/drivers/gpu/drm/xe/xe_sriov.c b/drivers/gpu/drm/xe/xe_sriov.c > index f3835867fce5..d7704d226554 100644 > --- a/drivers/gpu/drm/xe/xe_sriov.c > +++ b/drivers/gpu/drm/xe/xe_sriov.c > @@ -174,3 +174,14 @@ int xe_sriov_init_late(struct xe_device *xe) > > return 0; > } > + > +/** > + * xe_sriov_ggtt_alignment() - Alignment of the GGTT range provisioned to a VF. > + * @xe: the &xe_device > + * > + * Return: Alignment in bytes. > + */ > +u64 xe_sriov_ggtt_alignment(struct xe_device *xe) hmm, it doesn't look like a SR-IOV specific function maybe it should be introduced earlier in the series in xe_ggtt.h as: u64 xe_ggtt_alignment(struct xe_ggtt *ggtt); but given the comment above, maybe there is no such thing as "GGTT alignment" at all, or it is always 4K and we don't need this function? > +{ > + return xe_vram_alignment(xe); > +} > diff --git a/drivers/gpu/drm/xe/xe_sriov.h b/drivers/gpu/drm/xe/xe_sriov.h > index 72e55543c30e..ee770afca00b 100644 > --- a/drivers/gpu/drm/xe/xe_sriov.h > +++ b/drivers/gpu/drm/xe/xe_sriov.h > @@ -19,6 +19,7 @@ void xe_sriov_probe_early(struct xe_device *xe); > void xe_sriov_print_info(struct xe_device *xe, struct drm_printer *p); > int xe_sriov_init(struct xe_device *xe); > int xe_sriov_init_late(struct xe_device *xe); > +u64 xe_sriov_ggtt_alignment(struct xe_device *xe); > > static inline enum xe_sriov_mode xe_device_sriov_mode(const struct xe_device *xe) > { ^ permalink raw reply [flat|nested] 20+ messages in thread
* [PATCH v10 07/10] drm/xe/vf: Add bounds checking for queried GGTT base and size 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (5 preceding siblings ...) 2026-09-21 9:21 ` [PATCH v10 06/10] drm/xe/sriov: Add helper for VF GGTT provisioning alignment Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 14:36 ` Michal Wajdeczko 2026-09-21 9:21 ` [PATCH v10 08/10] drm/xe/vf: Add alignment check for queried VRAM size Satyanarayana K V P ` (6 subsequent siblings) 13 siblings, 1 reply; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko Add explicit bounds checks for GGTT base and size which can detect and reject invalid configuration data from a misconfigured or malfunctioning PF, preventing protocol violations and protecting VF initialization. Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> --- V9 -> V10: - Updated vf_get_ggtt_alignment() function (Sashiko). V8 -> V9: - Align GGTT base and size to XE_PAGE_SIZE (Sashiko). V7 -> V8: - Align GGTT base and size to PAGE_SIZE (Michal W). V6 -> V7: - Added new helper to get ggtt alignment. - Rearranged the base and sizes checks (Sashiko, Michal W). V5 -> V6: - Updated error codes for unaligned GGTT base and size (Michal W). - Fixed review comments (Michal W). V4 -> V5: - New commit. --- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 45 ++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c index 715dfb04a1f3..1d79bde2ad73 100644 --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c @@ -15,6 +15,7 @@ #include "abi/guc_klvs_abi.h" #include "abi/guc_relay_actions_abi.h" #include "regs/xe_gt_regs.h" +#include "regs/xe_gtt_defs.h" #include "regs/xe_guc_regs.h" #include "xe_assert.h" @@ -486,26 +487,62 @@ u32 xe_gt_sriov_vf_gmdid(struct xe_gt *gt) return value; } +static u64 vf_get_ggtt_alignment(struct xe_gt *gt) +{ + return xe_sriov_ggtt_alignment(gt_to_xe(gt)); +} + static int vf_get_ggtt_info(struct xe_gt *gt) { + u64 alignment = vf_get_ggtt_alignment(gt); struct xe_tile *tile = gt_to_tile(gt); struct xe_guc *guc = >->uc.guc; - u64 start, size, ggtt_size; + u64 start, size, ggtt_size, end; + u64 start_query, size_query; int err; xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt))); - err = guc_action_query_single_klv64(guc, GUC_KLV_VF_CFG_GGTT_START_KEY, &start); + err = guc_action_query_single_klv64(guc, GUC_KLV_VF_CFG_GGTT_START_KEY, &start_query); if (unlikely(err)) return err; - err = guc_action_query_single_klv64(guc, GUC_KLV_VF_CFG_GGTT_SIZE_KEY, &size); + err = guc_action_query_single_klv64(guc, GUC_KLV_VF_CFG_GGTT_SIZE_KEY, &size_query); if (unlikely(err)) return err; - if (!size) + if (!size_query) return -ENODATA; + start = ALIGN(start_query, alignment); + if (check_add_overflow(start_query, size_query, &end)) { + xe_gt_sriov_err(gt, "GGTT range overflow: base %#llx, size %#llx\n", + start_query, size_query); + return -ERANGE; + } + + end = ALIGN_DOWN(end, alignment); + if (end <= start) { + xe_gt_sriov_err(gt, "GGTT range too small: base %#llx, size %#llx\n", + start_query, size_query); + return -ERANGE; + } + + size = end - start; + + if (start != start_query) + xe_gt_sriov_notice(gt, "Unaligned GGTT base %#llx aligned to %#llx\n", + start_query, start); + if (size != size_query) + xe_gt_sriov_notice(gt, "Unaligned GGTT size %#llx aligned to %#llx\n", + size_query, size); + + if (start < xe_wopcm_size(gt_to_xe(gt)) || end > GUC_GGTT_TOP) { + xe_gt_sriov_err(gt, "Out of bounds GGTT configuration: base %#llx, size %#llx\n", + start, size); + return -ERANGE; + } + xe_tile_sriov_vf_ggtt_base_store(tile, start); ggtt_size = xe_tile_sriov_vf_ggtt(tile); if (!ggtt_size) { -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [PATCH v10 07/10] drm/xe/vf: Add bounds checking for queried GGTT base and size 2026-09-21 9:21 ` [PATCH v10 07/10] drm/xe/vf: Add bounds checking for queried GGTT base and size Satyanarayana K V P @ 2026-09-21 14:36 ` Michal Wajdeczko 0 siblings, 0 replies; 20+ messages in thread From: Michal Wajdeczko @ 2026-09-21 14:36 UTC (permalink / raw) To: Satyanarayana K V P, intel-xe On 9/21/2026 11:21 AM, Satyanarayana K V P wrote: > Add explicit bounds checks for GGTT base and size which can detect > and reject invalid configuration data from a misconfigured or > malfunctioning PF, preventing protocol violations and protecting VF > initialization. > > Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> > Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> > --- > V9 -> V10: > - Updated vf_get_ggtt_alignment() function (Sashiko). > > V8 -> V9: > - Align GGTT base and size to XE_PAGE_SIZE (Sashiko). > > V7 -> V8: > - Align GGTT base and size to PAGE_SIZE (Michal W). > > V6 -> V7: > - Added new helper to get ggtt alignment. > - Rearranged the base and sizes checks (Sashiko, Michal W). > > V5 -> V6: > - Updated error codes for unaligned GGTT base and size (Michal W). > - Fixed review comments (Michal W). > > V4 -> V5: > - New commit. > --- > drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 45 ++++++++++++++++++++++++++--- > 1 file changed, 41 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > index 715dfb04a1f3..1d79bde2ad73 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > @@ -15,6 +15,7 @@ > #include "abi/guc_klvs_abi.h" > #include "abi/guc_relay_actions_abi.h" > #include "regs/xe_gt_regs.h" > +#include "regs/xe_gtt_defs.h" > #include "regs/xe_guc_regs.h" > > #include "xe_assert.h" > @@ -486,26 +487,62 @@ u32 xe_gt_sriov_vf_gmdid(struct xe_gt *gt) > return value; > } > > +static u64 vf_get_ggtt_alignment(struct xe_gt *gt) > +{ > + return xe_sriov_ggtt_alignment(gt_to_xe(gt)); > +} > + > static int vf_get_ggtt_info(struct xe_gt *gt) > { > + u64 alignment = vf_get_ggtt_alignment(gt); > struct xe_tile *tile = gt_to_tile(gt); > struct xe_guc *guc = >->uc.guc; > - u64 start, size, ggtt_size; > + u64 start, size, ggtt_size, end; > + u64 start_query, size_query; > int err; > > xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt))); > > - err = guc_action_query_single_klv64(guc, GUC_KLV_VF_CFG_GGTT_START_KEY, &start); > + err = guc_action_query_single_klv64(guc, GUC_KLV_VF_CFG_GGTT_START_KEY, &start_query); do we really need/want to rename existing vars? > if (unlikely(err)) > return err; shouldn't we immediately check here for 4K misalignment? it is a clear VF provisioning violation, see [1]: if (!IS_ALIGNED(start, XE_PAGE_SIZE)) return -EINVAL; // or -EUCLEAN or -EDOM or -ERANGE [1] https://elixir.bootlin.com/linux/v7.3-rc3/source/drivers/gpu/drm/xe/abi/guc_klvs_abi.h#L280 > > - err = guc_action_query_single_klv64(guc, GUC_KLV_VF_CFG_GGTT_SIZE_KEY, &size); > + err = guc_action_query_single_klv64(guc, GUC_KLV_VF_CFG_GGTT_SIZE_KEY, &size_query); > if (unlikely(err)) > return err; ditto > > - if (!size) > + if (!size_query) > return -ENODATA; > > + start = ALIGN(start_query, alignment); not needed, as it looks any 64K alignment is handled on the per-object basis by the xe_ggtt layer > + if (check_add_overflow(start_query, size_query, &end)) { > + xe_gt_sriov_err(gt, "GGTT range overflow: base %#llx, size %#llx\n", > + start_query, size_query); we are not so verbose for other error cases, maybe demote to dbg/dbg_verbose or drop completely? > + return -ERANGE; > + } > + > + end = ALIGN_DOWN(end, alignment); not needed, see above > + if (end <= start) { impossible now, as at this point: both start & size should be already 4K aligned end = start + size and size can't be 0 > + xe_gt_sriov_err(gt, "GGTT range too small: base %#llx, size %#llx\n", > + start_query, size_query); > + return -ERANGE; > + } > + > + size = end - start; > + > + if (start != start_query) > + xe_gt_sriov_notice(gt, "Unaligned GGTT base %#llx aligned to %#llx\n", > + start_query, start); > + if (size != size_query) > + xe_gt_sriov_notice(gt, "Unaligned GGTT size %#llx aligned to %#llx\n", > + size_query, size); will not be needed after adding above checks for 4K alignment right after query > + > + if (start < xe_wopcm_size(gt_to_xe(gt)) || end > GUC_GGTT_TOP) { nit: we can check "start < wopcm" right after query nit: we can check "end > GUC_TOP" right after query > + xe_gt_sriov_err(gt, "Out of bounds GGTT configuration: base %#llx, size %#llx\n", > + start, size); > + return -ERANGE; > + } > + > xe_tile_sriov_vf_ggtt_base_store(tile, start); > ggtt_size = xe_tile_sriov_vf_ggtt(tile); > if (!ggtt_size) { ^ permalink raw reply [flat|nested] 20+ messages in thread
* [PATCH v10 08/10] drm/xe/vf: Add alignment check for queried VRAM size 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (6 preceding siblings ...) 2026-09-21 9:21 ` [PATCH v10 07/10] drm/xe/vf: Add bounds checking for queried GGTT base and size Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 09/10] drm/xe/ggtt: Add KUnit stub for xe_ggtt_shift_nodes() Satyanarayana K V P ` (5 subsequent siblings) 13 siblings, 0 replies; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko Add explicit alignment check for VRAM size which can detect and reject invalid configuration data from a misconfigured or malfunctioning PF, preventing protocol violations and protecting VF initialization. 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> --- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c index 1d79bde2ad73..37baeb1058b2 100644 --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c @@ -598,6 +598,12 @@ static int vf_get_lmem_info(struct xe_gt *gt) return -EREMCHG; } + if (!IS_ALIGNED(size, SZ_2M)) { + xe_gt_sriov_err(gt, "Unaligned LMEM size %llu, expected %llu\n", + size, ALIGN(size, SZ_2M)); + return -EINVAL; + } + string_get_size(size, 1, STRING_UNITS_2, size_str, sizeof(size_str)); xe_gt_sriov_dbg_verbose(gt, "LMEM %lluM %s\n", size / SZ_1M, size_str); -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v10 09/10] drm/xe/ggtt: Add KUnit stub for xe_ggtt_shift_nodes() 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (7 preceding siblings ...) 2026-09-21 9:21 ` [PATCH v10 08/10] drm/xe/vf: Add alignment check for queried VRAM size Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 14:45 ` Michal Wajdeczko 2026-09-21 9:21 ` [PATCH v10 10/10] drm/xe/tests: Add KUnit tests for VF provisioning error handling Satyanarayana K V P ` (4 subsequent siblings) 13 siblings, 1 reply; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko Allow to replace xe_ggtt_shift_nodes() with a stub so that VF GGTT provisioning can be exercised on the fake xe device, which has no real struct xe_ggtt instance. Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> --- drivers/gpu/drm/xe/xe_ggtt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c index 2557e51bb7cc..082a6bbef01c 100644 --- a/drivers/gpu/drm/xe/xe_ggtt.c +++ b/drivers/gpu/drm/xe/xe_ggtt.c @@ -5,6 +5,7 @@ #include "xe_ggtt.h" +#include <kunit/static_stub.h> #include <kunit/visibility.h> #include <linux/fault-inject.h> #include <linux/io-64-nonatomic-lo-hi.h> @@ -654,6 +655,8 @@ static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt) */ void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start) { + KUNIT_STATIC_STUB_REDIRECT(xe_ggtt_shift_nodes, ggtt, new_start); + guard(mutex)(&ggtt->lock); xe_tile_assert(ggtt->tile, new_start >= xe_wopcm_size(tile_to_xe(ggtt->tile))); -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [PATCH v10 09/10] drm/xe/ggtt: Add KUnit stub for xe_ggtt_shift_nodes() 2026-09-21 9:21 ` [PATCH v10 09/10] drm/xe/ggtt: Add KUnit stub for xe_ggtt_shift_nodes() Satyanarayana K V P @ 2026-09-21 14:45 ` Michal Wajdeczko 0 siblings, 0 replies; 20+ messages in thread From: Michal Wajdeczko @ 2026-09-21 14:45 UTC (permalink / raw) To: Satyanarayana K V P, intel-xe On 9/21/2026 11:21 AM, Satyanarayana K V P wrote: > Allow to replace xe_ggtt_shift_nodes() with a stub so that VF GGTT > provisioning can be exercised on the fake xe device, which has no real > struct xe_ggtt instance. hmm, but we do have xe_ggtt_init_kunit(), maybe you missed something else? > > Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> > Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> > --- > drivers/gpu/drm/xe/xe_ggtt.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c > index 2557e51bb7cc..082a6bbef01c 100644 > --- a/drivers/gpu/drm/xe/xe_ggtt.c > +++ b/drivers/gpu/drm/xe/xe_ggtt.c > @@ -5,6 +5,7 @@ > > #include "xe_ggtt.h" > > +#include <kunit/static_stub.h> > #include <kunit/visibility.h> > #include <linux/fault-inject.h> > #include <linux/io-64-nonatomic-lo-hi.h> > @@ -654,6 +655,8 @@ static void xe_ggtt_invalidate_engine(struct xe_ggtt *ggtt) > */ > void xe_ggtt_shift_nodes(struct xe_ggtt *ggtt, u64 new_start) > { > + KUNIT_STATIC_STUB_REDIRECT(xe_ggtt_shift_nodes, ggtt, new_start); > + > guard(mutex)(&ggtt->lock); > > xe_tile_assert(ggtt->tile, new_start >= xe_wopcm_size(tile_to_xe(ggtt->tile))); ^ permalink raw reply [flat|nested] 20+ messages in thread
* [PATCH v10 10/10] drm/xe/tests: Add KUnit tests for VF provisioning error handling 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (8 preceding siblings ...) 2026-09-21 9:21 ` [PATCH v10 09/10] drm/xe/ggtt: Add KUnit stub for xe_ggtt_shift_nodes() Satyanarayana K V P @ 2026-09-21 9:21 ` Satyanarayana K V P 2026-09-21 16:47 ` Michal Wajdeczko 2026-09-21 9:49 ` ✗ CI.checkpatch: warning for KUnit test for VF provisioning error handling (rev10) Patchwork ` (3 subsequent siblings) 13 siblings, 1 reply; 20+ messages in thread From: Satyanarayana K V P @ 2026-09-21 9:21 UTC (permalink / raw) To: intel-xe; +Cc: Satyanarayana K V P, Michal Wajdeczko VF relies on the PF to provide a valid hardware configuration via GuC KLV responses. In the unlikely event of PF malfunction or misconfiguration, a VF may receive incomplete, zero, or out-of-range values for its submission contexts, doorbells, VRAM or GGTT assignment. 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. Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> --- V9 -> V10: - Fixed review comments (Sashiko). - Use (hxg_sizeof(u64)) + 1 to keep checkpatch.pl happy. V8 -> V9: - Fixed review comments (Michal W). - Updated test_guc_mmio (Michal W). V7 -> V8: - Updated kunit test as per changed from other patches. V6 -> V7: - Fixed review comments (Sashiko, Michal W). V5 -> V6: - Fixed review comments (Michal W). V4 -> V5: - Added alignment tests for vram, GGTT base and size (Michal W). - Separated stubs for ctx, db, vram and GGTT (Michal W). - Added new test cases for xe_guc_mmio_send_recv() (Michal W). V3 -> V4: - Changed stub function from guc_action_query_single_klv32() and guc_action_query_single_klv64() to xe_guc_mmio_send_recv() (Michal W). - Fixed review comments (Michal W). V2 -> V3: - Renamed the test names. (Michal W). - Fixed review comments (Michal W). V1 -> V2: - Renamed the test file (Michal W). - Fixed review comments (Michal W). --- .../gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c | 676 ++++++++++++++++++ drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 4 + 2 files changed, 680 insertions(+) create mode 100644 drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c diff --git a/drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c b/drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c new file mode 100644 index 000000000000..4830369dd47e --- /dev/null +++ b/drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c @@ -0,0 +1,676 @@ +// SPDX-License-Identifier: GPL-2.0 AND MIT +/* + * Copyright © 2026 Intel Corporation + */ + +#include <kunit/static_stub.h> +#include <kunit/test.h> + +#include "regs/xe_guc_regs.h" +#include "xe_device.h" +#include "xe_ggtt.h" +#include "xe_guc.h" +#include "xe_kunit_helpers.h" +#include "xe_pci_test.h" + +#define TEST_VRAM SZ_8G +#define TEST_GGTT_SIZE SZ_2G +#define TEST_GGTT_SIZE_OUT_OF_BOUNDS 0xfffffffffffff000ull +#define TEST_CTXS 1024 +#define TEST_DBS 128 +#define TEST_GGTT_START 0xa0a000ull + +static inline void assert_valid_query_klv_msg(struct kunit *test, u32 len, + const u32 *request, u32 key) +{ + KUNIT_ASSERT_EQ(test, len, VF2GUC_QUERY_SINGLE_KLV_REQUEST_MSG_LEN); + KUNIT_ASSERT_EQ(test, + FIELD_GET(GUC_HXG_REQUEST_MSG_0_ACTION, request[0]), + GUC_ACTION_VF2GUC_QUERY_SINGLE_KLV); + KUNIT_ASSERT_EQ(test, + FIELD_GET(VF2GUC_QUERY_SINGLE_KLV_REQUEST_MSG_1_KEY, request[1]), + key); +} + +static inline void fill_resp_buff(u32 *response, u64 query, size_t type) +{ + if (type == sizeof(u32)) { + response[0] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_LENGTH, + sizeof(u32) / sizeof(u32)); + response[1] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, + query); + } else if (type == sizeof(u64)) { + response[0] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_LENGTH, + sizeof(u64) / sizeof(u32)); + response[1] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, + lower_32_bits(query)); + response[2] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_2_VALUE64, + upper_32_bits(query)); + } +} + +struct config { + u32 orig; + u32 query; + int expected_ret; + int ret; + const char *name; +}; + +static const struct config vf_ctx_testcase[] = { + { + .orig = TEST_CTXS, + .query = TEST_CTXS, + .expected_ret = 0, + .name = "same", + }, + { + .orig = 0, + .query = 0, + .expected_ret = -ENODATA, + .name = "none", + }, + { + .orig = 0, + .query = GUC_ID_MAX + 1, + .expected_ret = -ERANGE, + .name = "overflow", + }, + { + .orig = TEST_CTXS, + .query = 0, + .expected_ret = -EREMCHG, + .name = "lost", + }, + { + .orig = TEST_CTXS, + .query = TEST_CTXS / 2, + .expected_ret = -EREMCHG, + .name = "reduced", + }, + { + .orig = TEST_CTXS, + .query = TEST_CTXS * 2, + .expected_ret = -EREMCHG, + .name = "increased", + }, + { + .orig = 0, + .query = 0, + .expected_ret = -EPROTO, + .ret = -EPROTO, + .name = "proto_error", + }, + { + .orig = 0, + .query = 0, + .expected_ret = -EIO, + .ret = -EIO, + .name = "IO_error", + }, +}; + +KUNIT_ARRAY_PARAM_DESC(ctx_testcase, vf_ctx_testcase, name); + +static const struct config vf_db_testcase[] = { + { + .orig = TEST_DBS, + .query = TEST_DBS, + .expected_ret = 0, + .name = "same", + }, + { + .orig = 0, + .query = 0, + .expected_ret = 0, + .name = "none", + }, + { + .orig = TEST_DBS, + .query = GUC_NUM_DOORBELLS + 1, + .expected_ret = -ERANGE, + .name = "overflow", + }, + { + .orig = TEST_DBS, + .query = 0, + .expected_ret = -EREMCHG, + .name = "lost", + }, + { + .orig = TEST_DBS, + .query = TEST_DBS / 2, + .expected_ret = -EREMCHG, + .name = "reduced", + }, + { + .orig = TEST_DBS, + .query = GUC_NUM_DOORBELLS - 1, + .expected_ret = -EREMCHG, + .name = "increased", + }, + { + .orig = 0, + .query = 0, + .expected_ret = -EPROTO, + .ret = -EPROTO, + .name = "proto_error", + }, + { + .orig = 0, + .query = 0, + .expected_ret = -EIO, + .ret = -EIO, + .name = "IO_error", + }, +}; + +KUNIT_ARRAY_PARAM_DESC(db_testcase, vf_db_testcase, name); + +static int xe_guc_mmio_send_recv_stub_ctx(struct xe_guc *guc, const u32 *request, + u32 len, u32 *response_buf) +{ + struct kunit *test = kunit_get_current_test(); + const struct config *c = test->param_value; + + if (c->ret) + return c->ret; + + assert_valid_query_klv_msg(test, len, request, + GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY); + fill_resp_buff(response_buf, c->query, sizeof(u32)); + + return 0; +} + +static void test_ctxs(struct kunit *test) +{ + struct xe_gt *gt = test->priv; + const struct config *c = test->param_value; + + gt->sriov.vf.self_config.num_ctxs = c->orig; + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, + xe_guc_mmio_send_recv_stub_ctx); + KUNIT_EXPECT_EQ(test, vf_get_ctxs_cfg(gt), c->expected_ret); +} + +static int xe_guc_mmio_send_recv_stub_db(struct xe_guc *guc, const u32 *request, + u32 len, u32 *response_buf) +{ + struct kunit *test = kunit_get_current_test(); + const struct config *c = test->param_value; + + if (c->ret) + return c->ret; + + assert_valid_query_klv_msg(test, len, request, + GUC_KLV_VF_CFG_NUM_DOORBELLS_KEY); + fill_resp_buff(response_buf, c->query, sizeof(u32)); + + return 0; +} + +static void test_dbs(struct kunit *test) +{ + struct xe_gt *gt = test->priv; + const struct config *c = test->param_value; + + gt->sriov.vf.self_config.num_dbs = c->orig; + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, + xe_guc_mmio_send_recv_stub_db); + KUNIT_EXPECT_EQ(test, vf_get_dbs_cfg(gt), c->expected_ret); +} + +struct config_vram { + u64 orig; + u64 query; + int expected_ret; + int ret; + const char *name; +}; + +static const struct config_vram vf_vram_testcase[] = { + { + .orig = TEST_VRAM, + .query = TEST_VRAM, + .expected_ret = 0, + .name = "same", + }, + { + .orig = 0, + .query = 0, + .expected_ret = -ENODATA, + .name = "none", + }, + { + .orig = TEST_VRAM / 2, + .query = TEST_VRAM + SZ_1G, + .expected_ret = -EREMCHG, + .name = "increased", + }, + { + .orig = TEST_VRAM / 2, + .query = 0, + .expected_ret = -EREMCHG, + .name = "lost", + }, + { + .orig = TEST_VRAM / 2, + .query = TEST_VRAM / 4, + .expected_ret = -EREMCHG, + .name = "reduced", + }, + { + .orig = 0, + .query = 0, + .expected_ret = -EPROTO, + .ret = -EPROTO, + .name = "proto_error", + }, + { + .orig = 0, + .query = 0, + .expected_ret = -EIO, + .ret = -EIO, + .name = "IO_error", + }, +}; + +KUNIT_ARRAY_PARAM_DESC(vram_testcase, vf_vram_testcase, name); + +static int xe_guc_mmio_send_recv_stub_vram(struct xe_guc *guc, const u32 *request, + u32 len, u32 *response_buf) +{ + struct kunit *test = kunit_get_current_test(); + const struct config_vram *c = test->param_value; + + if (c->ret) + return c->ret; + + assert_valid_query_klv_msg(test, len, request, + GUC_KLV_VF_CFG_LMEM_SIZE_KEY); + fill_resp_buff(response_buf, c->query, sizeof(u64)); + + return 0; +} + +static void test_vram(struct kunit *test) +{ + struct xe_gt *gt = test->priv; + const struct config_vram *c = test->param_value; + + gt->tile->sriov.vf.self_config.lmem_size = c->orig; + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, + xe_guc_mmio_send_recv_stub_vram); + KUNIT_EXPECT_EQ(test, vf_get_lmem_info(gt), c->expected_ret); +} + +struct config_ggtt { + struct { + u64 start; + u64 size; + } orig, query; + int expected_ret; + int ret; + const char *name; +}; + +static const struct config_ggtt vf_ggtt_testcase[] = { + { + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, + .name = "same", + .expected_ret = 0, + }, + { + .orig = { .start = 0, .size = 0 }, + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, + .expected_ret = 0, + .name = "query_on_init", + }, + { + .orig = { .start = 0, .size = 0 }, + .query = { .start = 0, .size = 0 }, + .expected_ret = -ENODATA, + .name = "none", + }, + { + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE + SZ_4G }, + .expected_ret = -ERANGE, + .name = "overflow", + }, + { + .orig = { .start = 0, .size = 0 }, + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE + SZ_4G }, + .expected_ret = -ERANGE, + .name = "overflow_query_on_init", + }, + { + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, + .query = { .start = TEST_GGTT_START, .size = 0 }, + .expected_ret = -ENODATA, + .name = "lost", + }, + { + .orig = { .start = 0, .size = 0 }, + .query = { .start = TEST_GGTT_START, .size = 0 }, + .expected_ret = -ENODATA, + .name = "lost_on_init", + }, + { + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE - SZ_1M }, + .expected_ret = -EREMCHG, + .name = "reduced", + }, + { + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE + SZ_1M }, + .expected_ret = -EREMCHG, + .name = "increased", + }, + { + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE - SZ_4K }, + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE - SZ_2K }, + .expected_ret = 0, + .name = "unaligned_size_4K", + }, + { + .orig = { .start = 0, .size = 0 }, + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE - SZ_2K }, + .expected_ret = 0, + .name = "unaligned_size_4K_on_init", + }, + { + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, + .query = { .start = TEST_GGTT_START - SZ_2K, .size = TEST_GGTT_SIZE }, + .expected_ret = -EREMCHG, + .name = "unaligned_base_4K", + }, + { + .orig = { .start = 0, .size = 0 }, + .query = { .start = TEST_GGTT_START - SZ_2K, .size = TEST_GGTT_SIZE }, + .expected_ret = 0, + .name = "unaligned_base_4K_on_init", + }, + { + .orig = { .start = 0, .size = 0 }, + .query = { .start = 0, .size = 0 }, + .expected_ret = -EPROTO, + .ret = -EPROTO, + .name = "proto_error", + }, + { + .orig = { .start = 0, .size = 0 }, + .query = { .start = 0, .size = 0 }, + .expected_ret = -EIO, + .ret = -EIO, + .name = "IO_error", + }, + { + .orig = { .start = 0, .size = 0 }, + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE_OUT_OF_BOUNDS }, + .expected_ret = -ERANGE, + .name = "out_of_bounds_size_on_init", + }, +}; + +KUNIT_ARRAY_PARAM_DESC(ggtt_testcase, vf_ggtt_testcase, name); + +static int xe_guc_mmio_send_recv_stub_ggtt(struct xe_guc *guc, const u32 *request, + u32 len, u32 *response_buf) +{ + struct kunit *test = kunit_get_current_test(); + const struct config_ggtt *c = test->param_value; + u32 key; + + if (c->ret) + return c->ret; + + KUNIT_ASSERT_EQ(test, FIELD_GET(GUC_HXG_REQUEST_MSG_0_ACTION, request[0]), + GUC_ACTION_VF2GUC_QUERY_SINGLE_KLV); + KUNIT_ASSERT_EQ(test, len, VF2GUC_QUERY_SINGLE_KLV_REQUEST_MSG_LEN); + key = FIELD_GET(VF2GUC_QUERY_SINGLE_KLV_REQUEST_MSG_1_KEY, request[1]); + KUNIT_ASSERT_TRUE(test, + key == GUC_KLV_VF_CFG_GGTT_START_KEY || + key == GUC_KLV_VF_CFG_GGTT_SIZE_KEY); + + response_buf[0] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_LENGTH, + sizeof(u64) / sizeof(u32)); + if (key == GUC_KLV_VF_CFG_GGTT_START_KEY) { + response_buf[1] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, + lower_32_bits(c->query.start)); + response_buf[2] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_2_VALUE64, + upper_32_bits(c->query.start)); + } else if (key == GUC_KLV_VF_CFG_GGTT_SIZE_KEY) { + response_buf[1] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, + lower_32_bits(c->query.size)); + response_buf[2] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_2_VALUE64, + upper_32_bits(c->query.size)); + } + + return 0; +} + +static void xe_ggtt_shift_nodes_stub(struct xe_ggtt *ggtt, u64 new_start) +{ + struct kunit *test = kunit_get_current_test(); + const struct config_ggtt *c = test->param_value; + struct xe_gt *gt = test->priv; + u64 expected_start = ALIGN(c->query.start, vf_get_ggtt_alignment(gt)); + + KUNIT_EXPECT_EQ(test, new_start, expected_start); +} + +static void test_ggtt(struct kunit *test) +{ + const struct config_ggtt *c = test->param_value; + struct xe_gt *gt = test->priv; + + gt->tile->sriov.vf.self_config.ggtt_base = c->orig.start; + gt->tile->sriov.vf.self_config.ggtt_size = c->orig.size; + + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, + xe_guc_mmio_send_recv_stub_ggtt); + kunit_activate_static_stub(test, xe_ggtt_shift_nodes, + xe_ggtt_shift_nodes_stub); + KUNIT_EXPECT_EQ(test, vf_get_ggtt_info(gt), c->expected_ret); +} + +struct config_mmio { + struct { + u32 length; + u32 mbz; + u32 data0; + u32 data1; + } response; + u64 value; + u64 value_len; + u32 key; + int expected_ret; + int ret; + const char *name; +}; + +static const struct config_mmio guc_mmio_resp_testcase[] = { + { + .key = GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY, + .value = TEST_CTXS, + .value_len = hxg_sizeof(u32), + .response = { + .length = hxg_sizeof(u32), + .mbz = 0, + .data0 = TEST_CTXS, + .data1 = 0, + }, + .expected_ret = 0, + .name = "klv32_successful" + }, + { + .key = GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY, + .value = TEST_CTXS, + .value_len = hxg_sizeof(u32), + .response = { + .length = hxg_sizeof(u32), + .mbz = hxg_sizeof(u32), + .data0 = TEST_CTXS, + .data1 = 0, + }, + .expected_ret = -EPROTO, + .name = "klv32_proto_error" + }, + { + .key = GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY, + .value = TEST_CTXS, + .value_len = hxg_sizeof(u32), + .response = { + .length = hxg_sizeof(u64), + .mbz = 0, + .data0 = TEST_CTXS, + .data1 = 0, + }, + .expected_ret = -EOVERFLOW, + .name = "klv32_overflow" + }, + { + .key = GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY, + .value = TEST_CTXS, + .value_len = hxg_sizeof(u32), + .response = { + .length = 0, + .mbz = 0, + .data0 = TEST_CTXS, + .data1 = 0, + }, + .expected_ret = -ENODATA, + .name = "klv32_underflow" + }, + { + .key = GUC_KLV_VF_CFG_LMEM_SIZE_KEY, + .value = TEST_VRAM, + .value_len = hxg_sizeof(u64), + .response = { + .length = hxg_sizeof(u64), + .mbz = 0, + .data0 = lower_32_bits(TEST_VRAM), + .data1 = upper_32_bits(TEST_VRAM), + }, + .expected_ret = 0, + .name = "klv64_successful" + }, + { + .key = GUC_KLV_VF_CFG_LMEM_SIZE_KEY, + .value = TEST_VRAM, + .value_len = hxg_sizeof(u64), + .response = { + .length = hxg_sizeof(u64), + .mbz = hxg_sizeof(u32), + .data0 = lower_32_bits(TEST_VRAM), + .data1 = upper_32_bits(TEST_VRAM), + }, + .expected_ret = -EPROTO, + .name = "klv64_proto_error" + }, + { + .key = GUC_KLV_VF_CFG_LMEM_SIZE_KEY, + .value = TEST_VRAM, + .value_len = hxg_sizeof(u64), + .response = { + .length = (hxg_sizeof(u64)) + 1, + .mbz = 0, + .data0 = lower_32_bits(TEST_VRAM), + .data1 = upper_32_bits(TEST_VRAM), + }, + .expected_ret = -EOVERFLOW, + .name = "klv64_overflow" + }, + { + .key = GUC_KLV_VF_CFG_LMEM_SIZE_KEY, + .value = TEST_VRAM, + .value_len = hxg_sizeof(u64), + .response = { + .length = 1, + .mbz = 0, + .data0 = lower_32_bits(TEST_VRAM), + .data1 = upper_32_bits(TEST_VRAM), + }, + .expected_ret = -ENODATA, + .name = "klv64_underflow" + }, +}; + +KUNIT_ARRAY_PARAM_DESC(guc_mmio_resp, guc_mmio_resp_testcase, name); + +static int xe_guc_mmio_send_recv_stub(struct xe_guc *guc, const u32 *request, + u32 len, u32 *response_buf) +{ + struct kunit *test = kunit_get_current_test(); + const struct config_mmio *c = test->param_value; + + response_buf[0] = + FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_LENGTH, c->response.length) | + FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_MBZ, c->response.mbz); + response_buf[1] = + FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, c->response.data0); + response_buf[2] = + FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_2_VALUE64, c->response.data1); + + return 0; +} + +static void test_guc_mmio(struct kunit *test) +{ + const struct config_mmio *c = test->param_value; + struct xe_gt *gt = test->priv; + struct xe_guc *guc = >->uc.guc; + u32 value[2]; + + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, + xe_guc_mmio_send_recv_stub); + KUNIT_EXPECT_EQ(test, + guc_action_query_single_klv(guc, c->key, value, c->value_len), + c->expected_ret); +} + +static int vf_gt_config_test_init(struct kunit *test) +{ + struct xe_pci_fake_data fake = { + .sriov_mode = XE_SRIOV_MODE_VF, + .platform = XE_BATTLEMAGE, /* any random DGFX platform with SR-IOV */ + .subplatform = XE_SUBPLATFORM_NONE, + .graphics_verx100 = 2001, + }; + struct xe_device *xe; + struct xe_gt *gt; + + test->priv = &fake; + xe_kunit_helper_xe_device_test_init(test); + + xe = test->priv; + KUNIT_ASSERT_TRUE(test, IS_SRIOV_VF(xe)); + KUNIT_ASSERT_TRUE(test, IS_DGFX(xe)); + + gt = xe_root_mmio_gt(xe); + KUNIT_ASSERT_NOT_ERR_OR_NULL(test, gt); + test->priv = gt; + + return 0; +} + +static struct kunit_case vf_gt_config_test_cases[] = { + KUNIT_CASE_PARAM(test_ctxs, ctx_testcase_gen_params), + KUNIT_CASE_PARAM(test_dbs, db_testcase_gen_params), + KUNIT_CASE_PARAM(test_vram, vram_testcase_gen_params), + KUNIT_CASE_PARAM(test_ggtt, ggtt_testcase_gen_params), + KUNIT_CASE_PARAM(test_guc_mmio, guc_mmio_resp_gen_params), + {} +}; + +static struct kunit_suite vf_gt_config_suite = { + .name = "vf_gt_config", + .test_cases = vf_gt_config_test_cases, + .init = vf_gt_config_test_init, +}; + +kunit_test_suite(vf_gt_config_suite); diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c index 37baeb1058b2..e80e3cdb5afe 100644 --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c @@ -1708,3 +1708,7 @@ int xe_gt_sriov_vf_wait_valid_ggtt(struct xe_gt *gt) return atomic_read(>->sriov.vf.migration.fixups_complete_count); } + +#if IS_BUILTIN(CONFIG_DRM_XE_KUNIT_TEST) +#include "tests/xe_gt_sriov_vf_kunit.c" +#endif -- 2.53.0 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [PATCH v10 10/10] drm/xe/tests: Add KUnit tests for VF provisioning error handling 2026-09-21 9:21 ` [PATCH v10 10/10] drm/xe/tests: Add KUnit tests for VF provisioning error handling Satyanarayana K V P @ 2026-09-21 16:47 ` Michal Wajdeczko 0 siblings, 0 replies; 20+ messages in thread From: Michal Wajdeczko @ 2026-09-21 16:47 UTC (permalink / raw) To: Satyanarayana K V P, intel-xe On 9/21/2026 11:21 AM, Satyanarayana K V P wrote: > VF relies on the PF to provide a valid hardware configuration via GuC > KLV responses. In the unlikely event of PF malfunction or > misconfiguration, a VF may receive incomplete, zero, or out-of-range > values for its submission contexts, doorbells, VRAM or GGTT assignment. > > 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. > > Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> > Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> > --- > V9 -> V10: > - Fixed review comments (Sashiko). > - Use (hxg_sizeof(u64)) + 1 to keep checkpatch.pl happy. > > V8 -> V9: > - Fixed review comments (Michal W). > - Updated test_guc_mmio (Michal W). > > V7 -> V8: > - Updated kunit test as per changed from other patches. > > V6 -> V7: > - Fixed review comments (Sashiko, Michal W). > > V5 -> V6: > - Fixed review comments (Michal W). > > V4 -> V5: > - Added alignment tests for vram, GGTT base and size (Michal W). > - Separated stubs for ctx, db, vram and GGTT (Michal W). > - Added new test cases for xe_guc_mmio_send_recv() (Michal W). > > V3 -> V4: > - Changed stub function from guc_action_query_single_klv32() and > guc_action_query_single_klv64() to xe_guc_mmio_send_recv() (Michal W). > - Fixed review comments (Michal W). > > V2 -> V3: > - Renamed the test names. (Michal W). > - Fixed review comments (Michal W). > > V1 -> V2: > - Renamed the test file (Michal W). > - Fixed review comments (Michal W). > --- > .../gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c | 676 ++++++++++++++++++ > drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 4 + > 2 files changed, 680 insertions(+) > create mode 100644 drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c > > diff --git a/drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c b/drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c > new file mode 100644 > index 000000000000..4830369dd47e > --- /dev/null > +++ b/drivers/gpu/drm/xe/tests/xe_gt_sriov_vf_kunit.c > @@ -0,0 +1,676 @@ > +// SPDX-License-Identifier: GPL-2.0 AND MIT > +/* > + * Copyright © 2026 Intel Corporation > + */ > + > +#include <kunit/static_stub.h> > +#include <kunit/test.h> > + > +#include "regs/xe_guc_regs.h" > +#include "xe_device.h" > +#include "xe_ggtt.h" > +#include "xe_guc.h" > +#include "xe_kunit_helpers.h" > +#include "xe_pci_test.h" > + > +#define TEST_VRAM SZ_8G > +#define TEST_GGTT_SIZE SZ_2G > +#define TEST_GGTT_SIZE_OUT_OF_BOUNDS 0xfffffffffffff000ull > +#define TEST_CTXS 1024 > +#define TEST_DBS 128 > +#define TEST_GGTT_START 0xa0a000ull > + > +static inline void assert_valid_query_klv_msg(struct kunit *test, u32 len, drop "inline" > + const u32 *request, u32 key) > +{ > + KUNIT_ASSERT_EQ(test, len, VF2GUC_QUERY_SINGLE_KLV_REQUEST_MSG_LEN); > + KUNIT_ASSERT_EQ(test, > + FIELD_GET(GUC_HXG_REQUEST_MSG_0_ACTION, request[0]), > + GUC_ACTION_VF2GUC_QUERY_SINGLE_KLV); > + KUNIT_ASSERT_EQ(test, > + FIELD_GET(VF2GUC_QUERY_SINGLE_KLV_REQUEST_MSG_1_KEY, request[1]), > + key); > +} > + > +static inline void fill_resp_buff(u32 *response, u64 query, size_t type) drop "inline" split into: static void prep_query_response_32(u32 *msg, u32 value) { } static void prep_query_response_64(u32 *msg, u64 value) { } > +{ > + if (type == sizeof(u32)) { > + response[0] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_LENGTH, > + sizeof(u32) / sizeof(u32)); > + response[1] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, > + query); > + } else if (type == sizeof(u64)) { > + response[0] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_LENGTH, > + sizeof(u64) / sizeof(u32)); > + response[1] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, > + lower_32_bits(query)); > + response[2] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_2_VALUE64, > + upper_32_bits(query)); > + } > +} > + > +struct config { nit: little too generic name, maybe "struct params_sched" > + u32 orig; > + u32 query; > + int expected_ret; > + int ret; nit: forced_ret; > + const char *name; > +}; > + > +static const struct config vf_ctx_testcase[] = { nit: redundant "vf" prefix nit: those are "params" not a "testcases" that could be confused with kunit > + { > + .orig = TEST_CTXS, > + .query = TEST_CTXS, > + .expected_ret = 0, nit: we can drop fields with 0 > + .name = "same", nit: maybe better to make it first field instead of last? > + }, > + { > + .orig = 0, > + .query = 0, > + .expected_ret = -ENODATA, > + .name = "none", > + }, > + { > + .orig = 0, > + .query = GUC_ID_MAX + 1, > + .expected_ret = -ERANGE, > + .name = "overflow", > + }, > + { > + .orig = TEST_CTXS, > + .query = 0, > + .expected_ret = -EREMCHG, > + .name = "lost", > + }, > + { > + .orig = TEST_CTXS, > + .query = TEST_CTXS / 2, > + .expected_ret = -EREMCHG, > + .name = "reduced", > + }, > + { > + .orig = TEST_CTXS, > + .query = TEST_CTXS * 2, > + .expected_ret = -EREMCHG, > + .name = "increased", > + }, > + { > + .orig = 0, > + .query = 0, > + .expected_ret = -EPROTO, > + .ret = -EPROTO, > + .name = "proto_error", nit: just "eproto" ? > + }, > + { > + .orig = 0, > + .query = 0, > + .expected_ret = -EIO, > + .ret = -EIO, > + .name = "IO_error", nit: just "eio" ? btw, is there any coverage difference compared to "proto_error" ? > + }, > +}; > + > +KUNIT_ARRAY_PARAM_DESC(ctx_testcase, vf_ctx_testcase, name); > + > +static const struct config vf_db_testcase[] = { > + { > + .orig = TEST_DBS, > + .query = TEST_DBS, > + .expected_ret = 0, > + .name = "same", > + }, > + { > + .orig = 0, > + .query = 0, > + .expected_ret = 0, > + .name = "none", > + }, > + { > + .orig = TEST_DBS, > + .query = GUC_NUM_DOORBELLS + 1, > + .expected_ret = -ERANGE, > + .name = "overflow", > + }, > + { > + .orig = TEST_DBS, > + .query = 0, > + .expected_ret = -EREMCHG, > + .name = "lost", > + }, > + { > + .orig = TEST_DBS, > + .query = TEST_DBS / 2, > + .expected_ret = -EREMCHG, > + .name = "reduced", > + }, > + { > + .orig = TEST_DBS, > + .query = GUC_NUM_DOORBELLS - 1, nit: maybe .query = TEST_DBS + 1, to follow the pattern? > + .expected_ret = -EREMCHG, > + .name = "increased", > + }, > + { > + .orig = 0, > + .query = 0, > + .expected_ret = -EPROTO, > + .ret = -EPROTO, > + .name = "proto_error", > + }, > + { > + .orig = 0, > + .query = 0, > + .expected_ret = -EIO, > + .ret = -EIO, > + .name = "IO_error", > + }, > +}; > + > +KUNIT_ARRAY_PARAM_DESC(db_testcase, vf_db_testcase, name); > + > +static int xe_guc_mmio_send_recv_stub_ctx(struct xe_guc *guc, const u32 *request, > + u32 len, u32 *response_buf) > +{ > + struct kunit *test = kunit_get_current_test(); > + const struct config *c = test->param_value; > + > + if (c->ret) > + return c->ret; > + > + assert_valid_query_klv_msg(test, len, request, > + GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY); > + fill_resp_buff(response_buf, c->query, sizeof(u32)); > + > + return 0; > +} > + > +static void test_ctxs(struct kunit *test) > +{ > + struct xe_gt *gt = test->priv; > + const struct config *c = test->param_value; > + > + gt->sriov.vf.self_config.num_ctxs = c->orig; > + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, > + xe_guc_mmio_send_recv_stub_ctx); > + KUNIT_EXPECT_EQ(test, vf_get_ctxs_cfg(gt), c->expected_ret); > +} > + > +static int xe_guc_mmio_send_recv_stub_db(struct xe_guc *guc, const u32 *request, > + u32 len, u32 *response_buf) > +{ > + struct kunit *test = kunit_get_current_test(); > + const struct config *c = test->param_value; > + > + if (c->ret) > + return c->ret; > + > + assert_valid_query_klv_msg(test, len, request, > + GUC_KLV_VF_CFG_NUM_DOORBELLS_KEY); > + fill_resp_buff(response_buf, c->query, sizeof(u32)); > + > + return 0; > +} > + > +static void test_dbs(struct kunit *test) > +{ > + struct xe_gt *gt = test->priv; > + const struct config *c = test->param_value; > + > + gt->sriov.vf.self_config.num_dbs = c->orig; > + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, > + xe_guc_mmio_send_recv_stub_db); > + KUNIT_EXPECT_EQ(test, vf_get_dbs_cfg(gt), c->expected_ret); > +} > + > +struct config_vram { > + u64 orig; > + u64 query; > + int expected_ret; > + int ret; > + const char *name; > +}; > + > +static const struct config_vram vf_vram_testcase[] = { > + { > + .orig = TEST_VRAM, > + .query = TEST_VRAM, > + .expected_ret = 0, > + .name = "same", > + }, > + { > + .orig = 0, > + .query = 0, > + .expected_ret = -ENODATA, > + .name = "none", > + }, > + { > + .orig = TEST_VRAM / 2, > + .query = TEST_VRAM + SZ_1G, > + .expected_ret = -EREMCHG, > + .name = "increased", > + }, > + { > + .orig = TEST_VRAM / 2, > + .query = 0, > + .expected_ret = -EREMCHG, > + .name = "lost", > + }, > + { > + .orig = TEST_VRAM / 2, > + .query = TEST_VRAM / 4, > + .expected_ret = -EREMCHG, > + .name = "reduced", > + }, > + { > + .orig = 0, > + .query = 0, > + .expected_ret = -EPROTO, > + .ret = -EPROTO, > + .name = "proto_error", > + }, > + { > + .orig = 0, > + .query = 0, > + .expected_ret = -EIO, > + .ret = -EIO, > + .name = "IO_error", > + }, what about params for the "unaligned" case? > +}; > + > +KUNIT_ARRAY_PARAM_DESC(vram_testcase, vf_vram_testcase, name); > + > +static int xe_guc_mmio_send_recv_stub_vram(struct xe_guc *guc, const u32 *request, > + u32 len, u32 *response_buf) > +{ > + struct kunit *test = kunit_get_current_test(); > + const struct config_vram *c = test->param_value; > + > + if (c->ret) > + return c->ret; > + > + assert_valid_query_klv_msg(test, len, request, > + GUC_KLV_VF_CFG_LMEM_SIZE_KEY); > + fill_resp_buff(response_buf, c->query, sizeof(u64)); > + > + return 0; > +} > + > +static void test_vram(struct kunit *test) > +{ > + struct xe_gt *gt = test->priv; > + const struct config_vram *c = test->param_value; > + > + gt->tile->sriov.vf.self_config.lmem_size = c->orig; > + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, > + xe_guc_mmio_send_recv_stub_vram); > + KUNIT_EXPECT_EQ(test, vf_get_lmem_info(gt), c->expected_ret); > +} > + > +struct config_ggtt { > + struct { > + u64 start; > + u64 size; > + } orig, query; > + int expected_ret; > + int ret; > + const char *name; > +}; > + > +static const struct config_ggtt vf_ggtt_testcase[] = { > + { > + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, > + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, > + .name = "same", > + .expected_ret = 0, > + }, > + { > + .orig = { .start = 0, .size = 0 }, > + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, > + .expected_ret = 0, > + .name = "query_on_init", > + }, > + { > + .orig = { .start = 0, .size = 0 }, > + .query = { .start = 0, .size = 0 }, > + .expected_ret = -ENODATA, > + .name = "none", > + }, > + { > + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, > + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE + SZ_4G }, > + .expected_ret = -ERANGE, > + .name = "overflow", > + }, > + { > + .orig = { .start = 0, .size = 0 }, > + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE + SZ_4G }, > + .expected_ret = -ERANGE, > + .name = "overflow_query_on_init", > + }, > + { > + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, > + .query = { .start = TEST_GGTT_START, .size = 0 }, > + .expected_ret = -ENODATA, > + .name = "lost", > + }, > + { > + .orig = { .start = 0, .size = 0 }, > + .query = { .start = TEST_GGTT_START, .size = 0 }, > + .expected_ret = -ENODATA, > + .name = "lost_on_init", > + }, > + { > + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, > + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE - SZ_1M }, > + .expected_ret = -EREMCHG, > + .name = "reduced", > + }, > + { > + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, > + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE + SZ_1M }, > + .expected_ret = -EREMCHG, > + .name = "increased", > + }, > + { > + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE - SZ_4K }, why -4K ? just use valid size > + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE - SZ_2K }, > + .expected_ret = 0, hmm, shouldn't we fail with unaligned size? > + .name = "unaligned_size_4K", as it looks we don't need to deal with 64K, maybe drop the 4K suffix? > + }, > + { > + .orig = { .start = 0, .size = 0 }, > + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE - SZ_2K }, > + .expected_ret = 0, > + .name = "unaligned_size_4K_on_init", > + }, > + { > + .orig = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE }, > + .query = { .start = TEST_GGTT_START - SZ_2K, .size = TEST_GGTT_SIZE }, > + .expected_ret = -EREMCHG, > + .name = "unaligned_base_4K", > + }, > + { > + .orig = { .start = 0, .size = 0 }, > + .query = { .start = TEST_GGTT_START - SZ_2K, .size = TEST_GGTT_SIZE }, > + .expected_ret = 0, > + .name = "unaligned_base_4K_on_init", > + }, > + { > + .orig = { .start = 0, .size = 0 }, > + .query = { .start = 0, .size = 0 }, > + .expected_ret = -EPROTO, > + .ret = -EPROTO, > + .name = "proto_error", > + }, > + { > + .orig = { .start = 0, .size = 0 }, > + .query = { .start = 0, .size = 0 }, > + .expected_ret = -EIO, > + .ret = -EIO, > + .name = "IO_error", > + }, > + { > + .orig = { .start = 0, .size = 0 }, > + .query = { .start = TEST_GGTT_START, .size = TEST_GGTT_SIZE_OUT_OF_BOUNDS }, > + .expected_ret = -ERANGE, > + .name = "out_of_bounds_size_on_init", > + }, > +}; > + > +KUNIT_ARRAY_PARAM_DESC(ggtt_testcase, vf_ggtt_testcase, name); > + > +static int xe_guc_mmio_send_recv_stub_ggtt(struct xe_guc *guc, const u32 *request, > + u32 len, u32 *response_buf) > +{ > + struct kunit *test = kunit_get_current_test(); > + const struct config_ggtt *c = test->param_value; > + u32 key; > + > + if (c->ret) > + return c->ret; > + > + KUNIT_ASSERT_EQ(test, FIELD_GET(GUC_HXG_REQUEST_MSG_0_ACTION, request[0]), > + GUC_ACTION_VF2GUC_QUERY_SINGLE_KLV); > + KUNIT_ASSERT_EQ(test, len, VF2GUC_QUERY_SINGLE_KLV_REQUEST_MSG_LEN); > + key = FIELD_GET(VF2GUC_QUERY_SINGLE_KLV_REQUEST_MSG_1_KEY, request[1]); > + KUNIT_ASSERT_TRUE(test, > + key == GUC_KLV_VF_CFG_GGTT_START_KEY || > + key == GUC_KLV_VF_CFG_GGTT_SIZE_KEY); instead above see [2] > + > + response_buf[0] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_LENGTH, > + sizeof(u64) / sizeof(u32)); > + if (key == GUC_KLV_VF_CFG_GGTT_START_KEY) { > + response_buf[1] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, > + lower_32_bits(c->query.start)); > + response_buf[2] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_2_VALUE64, > + upper_32_bits(c->query.start)); didn't you introduce a helper for this? > + } else if (key == GUC_KLV_VF_CFG_GGTT_SIZE_KEY) { > + response_buf[1] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, > + lower_32_bits(c->query.size)); > + response_buf[2] = FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_2_VALUE64, > + upper_32_bits(c->query.size)); > + } [2] use this: else { KUNIT_FAIL(test, "bad key %#x\n", key); }> + > + return 0; > +} > + > +static void xe_ggtt_shift_nodes_stub(struct xe_ggtt *ggtt, u64 new_start) > +{ > + struct kunit *test = kunit_get_current_test(); > + const struct config_ggtt *c = test->param_value; > + struct xe_gt *gt = test->priv; > + u64 expected_start = ALIGN(c->query.start, vf_get_ggtt_alignment(gt)); > + > + KUNIT_EXPECT_EQ(test, new_start, expected_start); > +} > + > +static void test_ggtt(struct kunit *test) > +{ > + const struct config_ggtt *c = test->param_value; > + struct xe_gt *gt = test->priv; > + xe_ggtt_init_kunit() ? here or in init() > + gt->tile->sriov.vf.self_config.ggtt_base = c->orig.start; > + gt->tile->sriov.vf.self_config.ggtt_size = c->orig.size; > + > + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, > + xe_guc_mmio_send_recv_stub_ggtt); > + kunit_activate_static_stub(test, xe_ggtt_shift_nodes, > + xe_ggtt_shift_nodes_stub); > + KUNIT_EXPECT_EQ(test, vf_get_ggtt_info(gt), c->expected_ret); > +} > + > +struct config_mmio { > + struct { > + u32 length; > + u32 mbz; LEN and MBZ are in msg_data0 > + u32 data0; > + u32 data1; so these should be either: u32 data1; u32 data2; or u32 value32; u32 value64; > + } response; > + u64 value; > + u64 value_len; > + u32 key; > + int expected_ret; > + int ret; > + const char *name; > +}; > + > +static const struct config_mmio guc_mmio_resp_testcase[] = { > + { > + .key = GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY, > + .value = TEST_CTXS, > + .value_len = hxg_sizeof(u32), > + .response = { > + .length = hxg_sizeof(u32), > + .mbz = 0, > + .data0 = TEST_CTXS, > + .data1 = 0, > + }, > + .expected_ret = 0, > + .name = "klv32_successful" > + }, > + { > + .key = GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY, > + .value = TEST_CTXS, > + .value_len = hxg_sizeof(u32), > + .response = { > + .length = hxg_sizeof(u32), > + .mbz = hxg_sizeof(u32), > + .data0 = TEST_CTXS, > + .data1 = 0, > + }, > + .expected_ret = -EPROTO, > + .name = "klv32_proto_error" > + }, > + { > + .key = GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY, > + .value = TEST_CTXS, > + .value_len = hxg_sizeof(u32), > + .response = { > + .length = hxg_sizeof(u64), > + .mbz = 0, > + .data0 = TEST_CTXS, > + .data1 = 0, > + }, > + .expected_ret = -EOVERFLOW, > + .name = "klv32_overflow" > + }, > + { > + .key = GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY, > + .value = TEST_CTXS, > + .value_len = hxg_sizeof(u32), > + .response = { > + .length = 0, > + .mbz = 0, > + .data0 = TEST_CTXS, > + .data1 = 0, > + }, > + .expected_ret = -ENODATA, > + .name = "klv32_underflow" > + }, > + { > + .key = GUC_KLV_VF_CFG_LMEM_SIZE_KEY, > + .value = TEST_VRAM, > + .value_len = hxg_sizeof(u64), > + .response = { > + .length = hxg_sizeof(u64), > + .mbz = 0, > + .data0 = lower_32_bits(TEST_VRAM), > + .data1 = upper_32_bits(TEST_VRAM), > + }, > + .expected_ret = 0, > + .name = "klv64_successful" > + }, > + { > + .key = GUC_KLV_VF_CFG_LMEM_SIZE_KEY, > + .value = TEST_VRAM, > + .value_len = hxg_sizeof(u64), > + .response = { > + .length = hxg_sizeof(u64), > + .mbz = hxg_sizeof(u32), > + .data0 = lower_32_bits(TEST_VRAM), > + .data1 = upper_32_bits(TEST_VRAM), > + }, > + .expected_ret = -EPROTO, > + .name = "klv64_proto_error" > + }, > + { > + .key = GUC_KLV_VF_CFG_LMEM_SIZE_KEY, > + .value = TEST_VRAM, > + .value_len = hxg_sizeof(u64), > + .response = { > + .length = (hxg_sizeof(u64)) + 1, > + .mbz = 0, > + .data0 = lower_32_bits(TEST_VRAM), > + .data1 = upper_32_bits(TEST_VRAM), > + }, > + .expected_ret = -EOVERFLOW, > + .name = "klv64_overflow" > + }, > + { > + .key = GUC_KLV_VF_CFG_LMEM_SIZE_KEY, > + .value = TEST_VRAM, > + .value_len = hxg_sizeof(u64), > + .response = { > + .length = 1, > + .mbz = 0, > + .data0 = lower_32_bits(TEST_VRAM), > + .data1 = upper_32_bits(TEST_VRAM), > + }, > + .expected_ret = -ENODATA, > + .name = "klv64_underflow" > + }, > +}; > + > +KUNIT_ARRAY_PARAM_DESC(guc_mmio_resp, guc_mmio_resp_testcase, name); > + > +static int xe_guc_mmio_send_recv_stub(struct xe_guc *guc, const u32 *request, > + u32 len, u32 *response_buf) > +{ > + struct kunit *test = kunit_get_current_test(); > + const struct config_mmio *c = test->param_value; > + > + response_buf[0] = > + FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_LENGTH, c->response.length) | > + FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_MBZ, c->response.mbz); > + response_buf[1] = > + FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_1_VALUE32, c->response.data0); > + response_buf[2] = > + FIELD_PREP(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_2_VALUE64, c->response.data1); > + > + return 0; > +} > + > +static void test_guc_mmio(struct kunit *test) > +{ > + const struct config_mmio *c = test->param_value; > + struct xe_gt *gt = test->priv; > + struct xe_guc *guc = >->uc.guc; > + u32 value[2]; > + > + kunit_activate_static_stub(test, xe_guc_mmio_send_recv, > + xe_guc_mmio_send_recv_stub); > + KUNIT_EXPECT_EQ(test, > + guc_action_query_single_klv(guc, c->key, value, c->value_len), > + c->expected_ret); > +} > + > +static int vf_gt_config_test_init(struct kunit *test) > +{ > + struct xe_pci_fake_data fake = { > + .sriov_mode = XE_SRIOV_MODE_VF, > + .platform = XE_BATTLEMAGE, /* any random DGFX platform with SR-IOV */ > + .subplatform = XE_SUBPLATFORM_NONE, > + .graphics_verx100 = 2001, > + }; > + struct xe_device *xe; > + struct xe_gt *gt; > + > + test->priv = &fake; > + xe_kunit_helper_xe_device_test_init(test); > + > + xe = test->priv; > + KUNIT_ASSERT_TRUE(test, IS_SRIOV_VF(xe)); > + KUNIT_ASSERT_TRUE(test, IS_DGFX(xe)); > + > + gt = xe_root_mmio_gt(xe); > + KUNIT_ASSERT_NOT_ERR_OR_NULL(test, gt); > + test->priv = gt; > + > + return 0; > +} > + > +static struct kunit_case vf_gt_config_test_cases[] = { > + KUNIT_CASE_PARAM(test_ctxs, ctx_testcase_gen_params), > + KUNIT_CASE_PARAM(test_dbs, db_testcase_gen_params), > + KUNIT_CASE_PARAM(test_vram, vram_testcase_gen_params), > + KUNIT_CASE_PARAM(test_ggtt, ggtt_testcase_gen_params), > + KUNIT_CASE_PARAM(test_guc_mmio, guc_mmio_resp_gen_params), > + {} > +}; > + > +static struct kunit_suite vf_gt_config_suite = { > + .name = "vf_gt_config", > + .test_cases = vf_gt_config_test_cases, > + .init = vf_gt_config_test_init, > +}; > + > +kunit_test_suite(vf_gt_config_suite); > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > index 37baeb1058b2..e80e3cdb5afe 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > @@ -1708,3 +1708,7 @@ int xe_gt_sriov_vf_wait_valid_ggtt(struct xe_gt *gt) > > return atomic_read(>->sriov.vf.migration.fixups_complete_count); > } > + > +#if IS_BUILTIN(CONFIG_DRM_XE_KUNIT_TEST) > +#include "tests/xe_gt_sriov_vf_kunit.c" > +#endif ^ permalink raw reply [flat|nested] 20+ messages in thread
* ✗ CI.checkpatch: warning for KUnit test for VF provisioning error handling (rev10) 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (9 preceding siblings ...) 2026-09-21 9:21 ` [PATCH v10 10/10] drm/xe/tests: Add KUnit tests for VF provisioning error handling Satyanarayana K V P @ 2026-09-21 9:49 ` Patchwork 2026-09-21 9:51 ` ✓ CI.KUnit: success " Patchwork ` (2 subsequent siblings) 13 siblings, 0 replies; 20+ messages in thread From: Patchwork @ 2026-09-21 9:49 UTC (permalink / raw) To: Satyanarayana K V P; +Cc: intel-xe == Series Details == Series: KUnit test for VF provisioning error handling (rev10) URL : https://patchwork.freedesktop.org/series/170198/ State : warning == Summary == + KERNEL=/kernel + git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'... warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/ + git -C mt rev-list -n1 origin/master 6bef5ce5c74dc76b4ee69ab2832c0d1fd63c91c7 + cd /kernel + git config --global --add safe.directory /kernel + git log -n1 commit 0f075a57b833cb04dcdae2ee6a37723aa832269d Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Date: Mon Sep 21 14:51:09 2026 +0530 drm/xe/tests: Add KUnit tests for VF provisioning error handling VF relies on the PF to provide a valid hardware configuration via GuC KLV responses. In the unlikely event of PF malfunction or misconfiguration, a VF may receive incomplete, zero, or out-of-range values for its submission contexts, doorbells, VRAM or GGTT assignment. 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. Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> + /mt/dim checkpatch f2fcbceb819a9b815753a9ca24a53d4bfaa45685 drm-intel 2641dc9676d7 drm/xe/guc: Allow to replace xe_guc_mmio_send_recv() with KUNIT stub 01d49a47c5fd drm/xe/vf: Split submission config query helpers f492e4e829e0 drm/xe/vf: Add bounds checking for queried context and doorbell counts 7dee42ca8c0f drm/xe: Introduce helpers for VRAM alignment 12bb90ef21d9 drm/xe/ggtt: Avoid integer overflow when validating VF GGTT range d901e8d6f1d6 drm/xe/sriov: Add helper for VF GGTT provisioning alignment 1c82a293cf99 drm/xe/vf: Add bounds checking for queried GGTT base and size 178d8f61627d drm/xe/vf: Add alignment check for queried VRAM size c9e7e0d46762 drm/xe/ggtt: Add KUnit stub for xe_ggtt_shift_nodes() 0f075a57b833 drm/xe/tests: Add KUnit tests for VF provisioning error handling -:20: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #20: new file mode 100644 total: 0 errors, 1 warnings, 0 checks, 683 lines checked ^ permalink raw reply [flat|nested] 20+ messages in thread
* ✓ CI.KUnit: success for KUnit test for VF provisioning error handling (rev10) 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (10 preceding siblings ...) 2026-09-21 9:49 ` ✗ CI.checkpatch: warning for KUnit test for VF provisioning error handling (rev10) Patchwork @ 2026-09-21 9:51 ` Patchwork 2026-09-21 11:32 ` ✗ Xe.CI.BAT: failure " Patchwork 2026-09-21 14:10 ` ✗ Xe.CI.FULL: " Patchwork 13 siblings, 0 replies; 20+ messages in thread From: Patchwork @ 2026-09-21 9:51 UTC (permalink / raw) To: Satyanarayana K V P; +Cc: intel-xe == Series Details == Series: KUnit test for VF provisioning error handling (rev10) URL : https://patchwork.freedesktop.org/series/170198/ State : success == Summary == + trap cleanup EXIT + kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig') + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig [09:49:39] Configuring KUnit Kernel ... Generating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [09:49:43] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [09:50:04] Starting KUnit Kernel (1/1)... [09:50:04] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [09:50:04] ============= refcount_interrupt (4 subtests) ============== [09:50:04] [PASSED] test_single_irq_change [09:50:04] [PASSED] test_nested_irq_change [09:50:04] [PASSED] test_multiple_irq_change [09:50:04] [PASSED] test_irq_save [09:50:04] =============== [PASSED] refcount_interrupt ================ [09:50:04] ================= gpu_buddy (14 subtests) ================== [09:50:04] [PASSED] gpu_test_buddy_alloc_limit [09:50:04] [PASSED] gpu_test_buddy_alloc_optimistic [09:50:04] [PASSED] gpu_test_buddy_alloc_pessimistic [09:50:04] [PASSED] gpu_test_buddy_alloc_pathological [09:50:04] [PASSED] gpu_test_buddy_alloc_contiguous [09:50:04] [PASSED] gpu_test_buddy_alloc_clear [09:50:04] [PASSED] gpu_test_buddy_alloc_range [09:50:04] [PASSED] gpu_test_buddy_alloc_range_bias [09:50:05] [PASSED] gpu_test_buddy_fragmentation_performance [09:50:06] [PASSED] gpu_test_buddy_dirty_tracker_performance [09:50:06] [PASSED] gpu_test_buddy_alloc_exceeds_max_order [09:50:06] [PASSED] gpu_test_buddy_offset_aligned_allocation [09:50:06] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress [09:50:06] [PASSED] gpu_test_buddy_addr_to_block [09:50:06] ==================== [PASSED] gpu_buddy ==================== [09:50:06] ============================================================ [09:50:06] Testing complete. Ran 18 tests: passed: 18 [09:50:06] Elapsed time: 26.669s total, 4.397s configuring, 20.354s building, 1.860s running + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [09:50:06] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [09:50:08] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [09:50:41] Starting KUnit Kernel (1/1)... [09:50:41] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [09:50:41] ============= refcount_interrupt (4 subtests) ============== [09:50:41] [PASSED] test_single_irq_change [09:50:41] [PASSED] test_nested_irq_change [09:50:41] [PASSED] test_multiple_irq_change [09:50:41] [PASSED] test_irq_save [09:50:41] =============== [PASSED] refcount_interrupt ================ [09:50:41] ================== guc_buf (11 subtests) =================== [09:50:41] [PASSED] test_smallest [09:50:41] [PASSED] test_largest [09:50:41] [PASSED] test_granular [09:50:41] [PASSED] test_unique [09:50:41] [PASSED] test_overlap [09:50:41] [PASSED] test_reusable [09:50:41] [PASSED] test_too_big [09:50:41] [PASSED] test_flush [09:50:41] [PASSED] test_lookup [09:50:41] [PASSED] test_data [09:50:41] [PASSED] test_class [09:50:41] ===================== [PASSED] guc_buf ===================== [09:50:41] =================== guc_dbm (7 subtests) =================== [09:50:41] [PASSED] test_empty [09:50:41] [PASSED] test_default [09:50:41] ======================== test_size ======================== [09:50:41] [PASSED] 4 [09:50:41] [PASSED] 8 [09:50:41] [PASSED] 32 [09:50:41] [PASSED] 256 [09:50:41] ==================== [PASSED] test_size ==================== [09:50:41] ======================= test_reuse ======================== [09:50:41] [PASSED] 4 [09:50:41] [PASSED] 8 [09:50:41] [PASSED] 32 [09:50:41] [PASSED] 256 [09:50:41] =================== [PASSED] test_reuse ==================== [09:50:41] =================== test_range_overlap ==================== [09:50:41] [PASSED] 4 [09:50:41] [PASSED] 8 [09:50:41] [PASSED] 32 [09:50:41] [PASSED] 256 [09:50:41] =============== [PASSED] test_range_overlap ================ [09:50:41] =================== test_range_compact ==================== [09:50:41] [PASSED] 4 [09:50:41] [PASSED] 8 [09:50:41] [PASSED] 32 [09:50:41] [PASSED] 256 [09:50:41] =============== [PASSED] test_range_compact ================ [09:50:41] ==================== test_range_spare ===================== [09:50:41] [PASSED] 4 [09:50:41] [PASSED] 8 [09:50:41] [PASSED] 32 [09:50:41] [PASSED] 256 [09:50:41] ================ [PASSED] test_range_spare ================= [09:50:41] ===================== [PASSED] guc_dbm ===================== [09:50:41] =================== guc_idm (6 subtests) =================== [09:50:41] [PASSED] bad_init [09:50:41] [PASSED] no_init [09:50:41] [PASSED] init_fini [09:50:41] [PASSED] check_used [09:50:41] [PASSED] check_quota [09:50:41] [PASSED] check_all [09:50:41] ===================== [PASSED] guc_idm ===================== [09:50:41] ============== guc_klv_helpers (13 subtests) =============== [09:50:41] [PASSED] test_count [09:50:41] [PASSED] test_encode_u32 [09:50:41] [PASSED] test_encode_u64 [09:50:41] [PASSED] test_encode_string [09:50:41] [PASSED] test_encode_object_raw [09:50:41] [PASSED] test_encode_object_klv [09:50:41] [PASSED] test_encode_object_nested [09:50:41] [PASSED] test_encode_object_basic [09:50:41] ===================== test_decode_u16 ===================== [09:50:41] [PASSED] empty [09:50:41] [PASSED] valid [09:50:41] [PASSED] max [09:50:41] [PASSED] big [09:50:41] [PASSED] long [09:50:41] ================= [PASSED] test_decode_u16 ================= [09:50:41] ===================== test_decode_u32 ===================== [09:50:41] [PASSED] empty [09:50:41] [PASSED] valid [09:50:41] [PASSED] max [09:50:41] [PASSED] long [09:50:41] ================= [PASSED] test_decode_u32 ================= [09:50:41] ===================== test_decode_u64 ===================== [09:50:41] [PASSED] empty [09:50:41] [PASSED] short [09:50:41] [PASSED] valid [09:50:41] [PASSED] max [09:50:41] [PASSED] long [09:50:41] ================= [PASSED] test_decode_u64 ================= [09:50:41] ===================== test_decode_str ===================== [09:50:41] [PASSED] empty [09:50:41] [PASSED] one [09:50:41] [PASSED] one_trash [09:50:41] [PASSED] two [09:50:41] [PASSED] two_trash [09:50:41] [PASSED] three [09:50:41] [PASSED] dword [09:50:41] [PASSED] four [09:50:41] [PASSED] five [09:50:41] [PASSED] six [09:50:41] [PASSED] seven [09:50:41] [PASSED] qword [09:50:41] ================= [PASSED] test_decode_str ================= [09:50:41] [PASSED] test_print [09:50:41] ================= [PASSED] guc_klv_helpers ================= [09:50:41] =================== xe_log (4 subtests) ==================== [09:50:41] [PASSED] demo_cper [09:50:41] [PASSED] demo_dmesg [09:50:41] ======================= test_dmesg ======================== [09:50:41] [PASSED] test_fatal [09:50:41] [PASSED] test_fatal_tile [09:50:41] [PASSED] test_fatal_gt [09:50:41] [PASSED] test_fatal_comp [09:50:41] [PASSED] test_fatal_comp_tile [09:50:41] [PASSED] test_fatal_comp_gt [09:50:41] [PASSED] test_fatal_all [09:50:41] [PASSED] test_recoverable [09:50:41] [PASSED] test_recoverable_tile [09:50:41] [PASSED] test_recoverable_gt [09:50:41] [PASSED] test_recoverable_comp [09:50:41] [PASSED] test_recoverable_comp_tile [09:50:41] [PASSED] test_recoverable_comp_gt [09:50:41] [PASSED] test_recoverable_all [09:50:41] [PASSED] test_info [09:50:41] [PASSED] test_info_tile [09:50:41] [PASSED] test_info_gt [09:50:41] [PASSED] test_info_err [09:50:41] [PASSED] test_info_comp [09:50:41] [PASSED] test_info_comp_tile [09:50:41] [PASSED] test_info_comp_gt [09:50:41] [PASSED] test_info_all [09:50:41] [PASSED] test_hw_fatal [09:50:41] [PASSED] test_hw_recoverable [09:50:41] [PASSED] test_hw_corrected [09:50:41] [PASSED] test_hw_informational [09:50:41] =================== [PASSED] test_dmesg ==================== [09:50:41] ====================== test_invalid ======================= [09:50:41] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG) [09:50:41] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG) [09:50:41] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG) [09:50:41] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG) [09:50:41] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG) [09:50:41] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG) [09:50:41] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG) [09:50:41] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG) [09:50:41] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG) [09:50:41] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG) [09:50:41] ================== [SKIPPED] test_invalid ================== [09:50:41] ===================== [PASSED] xe_log ====================== [09:50:41] ================ vf_gt_config (5 subtests) ================= [09:50:41] ======================== test_ctxs ======================== [09:50:41] [PASSED] same [09:50:41] [PASSED] none [09:50:41] [PASSED] overflow [09:50:41] [PASSED] lost [09:50:41] [PASSED] reduced [09:50:41] [PASSED] increased [09:50:41] [PASSED] proto_error [09:50:41] [PASSED] IO_error [09:50:41] ==================== [PASSED] test_ctxs ==================== [09:50:41] ======================== test_dbs ========================= [09:50:41] [PASSED] same [09:50:41] [PASSED] none [09:50:41] [PASSED] overflow [09:50:41] [PASSED] lost [09:50:41] [PASSED] reduced [09:50:41] [PASSED] increased [09:50:41] [PASSED] proto_error [09:50:41] [PASSED] IO_error [09:50:41] ==================== [PASSED] test_dbs ===================== [09:50:41] ======================== test_vram ======================== [09:50:41] [PASSED] same [09:50:41] [PASSED] none [09:50:41] [PASSED] increased [09:50:41] [PASSED] lost [09:50:41] [PASSED] reduced [09:50:41] [PASSED] proto_error [09:50:41] [PASSED] IO_error [09:50:41] ==================== [PASSED] test_vram ==================== [09:50:41] ======================== test_ggtt ======================== [09:50:41] [PASSED] same [09:50:41] [PASSED] query_on_init [09:50:41] [PASSED] none [09:50:41] [PASSED] overflow [09:50:41] [PASSED] overflow_query_on_init [09:50:41] [PASSED] lost [09:50:41] [PASSED] lost_on_init [09:50:41] [PASSED] reduced [09:50:41] [PASSED] increased [09:50:41] [PASSED] unaligned_size_4K [09:50:41] [PASSED] unaligned_size_4K_on_init [09:50:41] [PASSED] unaligned_base_4K [09:50:41] [PASSED] unaligned_base_4K_on_init [09:50:41] [PASSED] proto_error [09:50:41] [PASSED] IO_error [09:50:41] [PASSED] out_of_bounds_size_on_init [09:50:41] ==================== [PASSED] test_ggtt ==================== [09:50:41] ====================== test_guc_mmio ====================== [09:50:41] [PASSED] klv32_successful [09:50:41] [PASSED] klv32_proto_error [09:50:41] [PASSED] klv32_overflow [09:50:41] [PASSED] klv32_underflow [09:50:41] [PASSED] klv64_successful [09:50:41] [PASSED] klv64_proto_error [09:50:41] [PASSED] klv64_overflow [09:50:41] [PASSED] klv64_underflow [09:50:41] ================== [PASSED] test_guc_mmio ================== [09:50:41] ================== [PASSED] vf_gt_config =================== [09:50:41] ================== no_relay (3 subtests) =================== [09:50:41] [PASSED] xe_drops_guc2pf_if_not_ready [09:50:41] [PASSED] xe_drops_guc2vf_if_not_ready [09:50:41] [PASSED] xe_rejects_send_if_not_ready [09:50:41] ==================== [PASSED] no_relay ===================== [09:50:41] ================== pf_relay (14 subtests) ================== [09:50:41] [PASSED] pf_rejects_guc2pf_too_short [09:50:41] [PASSED] pf_rejects_guc2pf_too_long [09:50:41] [PASSED] pf_rejects_guc2pf_no_payload [09:50:41] [PASSED] pf_fails_no_payload [09:50:41] [PASSED] pf_fails_bad_origin [09:50:41] [PASSED] pf_fails_bad_type [09:50:41] [PASSED] pf_txn_reports_error [09:50:41] [PASSED] pf_txn_sends_pf2guc [09:50:41] [PASSED] pf_sends_pf2guc [09:50:41] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV) [09:50:41] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV) [09:50:41] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV) [09:50:41] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV) [09:50:41] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV) [09:50:41] ==================== [PASSED] pf_relay ===================== [09:50:41] ================== vf_relay (3 subtests) =================== [09:50:41] [PASSED] vf_rejects_guc2vf_too_short [09:50:41] [PASSED] vf_rejects_guc2vf_too_long [09:50:41] [PASSED] vf_rejects_guc2vf_no_payload [09:50:41] ==================== [PASSED] vf_relay ===================== [09:50:41] ================ pf_gt_config (9 subtests) ================= [09:50:41] [PASSED] fair_contexts_1vf [09:50:41] [PASSED] fair_doorbells_1vf [09:50:41] [PASSED] fair_ggtt_1vf [09:50:41] ====================== fair_vram_1vf ====================== [09:50:41] [PASSED] 3.50 GiB [09:50:41] [PASSED] 11.5 GiB [09:50:41] [PASSED] 15.5 GiB [09:50:41] [PASSED] 31.5 GiB [09:50:41] [PASSED] 63.5 GiB [09:50:41] [PASSED] 1.91 GiB [09:50:41] ================== [PASSED] fair_vram_1vf ================== [09:50:41] ================ fair_vram_1vf_admin_only ================= [09:50:41] [PASSED] 3.50 GiB [09:50:41] [PASSED] 11.5 GiB [09:50:41] [PASSED] 15.5 GiB [09:50:41] [PASSED] 31.5 GiB [09:50:41] [PASSED] 63.5 GiB [09:50:41] [PASSED] 1.91 GiB [09:50:41] ============ [PASSED] fair_vram_1vf_admin_only ============= [09:50:41] ====================== fair_contexts ====================== [09:50:41] [PASSED] 1 VF [09:50:41] [PASSED] 2 VFs [09:50:41] [PASSED] 3 VFs [09:50:41] [PASSED] 4 VFs [09:50:41] [PASSED] 5 VFs [09:50:41] [PASSED] 6 VFs [09:50:41] [PASSED] 7 VFs [09:50:41] [PASSED] 8 VFs [09:50:41] [PASSED] 9 VFs [09:50:41] [PASSED] 10 VFs [09:50:41] [PASSED] 11 VFs [09:50:41] [PASSED] 12 VFs [09:50:41] [PASSED] 13 VFs [09:50:41] [PASSED] 14 VFs [09:50:41] [PASSED] 15 VFs [09:50:41] [PASSED] 16 VFs [09:50:41] [PASSED] 17 VFs [09:50:41] [PASSED] 18 VFs [09:50:41] [PASSED] 19 VFs [09:50:41] [PASSED] 20 VFs [09:50:41] [PASSED] 21 VFs [09:50:41] [PASSED] 22 VFs [09:50:41] [PASSED] 23 VFs [09:50:41] [PASSED] 24 VFs [09:50:41] [PASSED] 25 VFs [09:50:41] [PASSED] 26 VFs [09:50:41] [PASSED] 27 VFs [09:50:41] [PASSED] 28 VFs [09:50:41] [PASSED] 29 VFs [09:50:41] [PASSED] 30 VFs [09:50:41] [PASSED] 31 VFs [09:50:41] [PASSED] 32 VFs [09:50:41] [PASSED] 33 VFs [09:50:41] [PASSED] 34 VFs [09:50:41] [PASSED] 35 VFs [09:50:41] [PASSED] 36 VFs [09:50:41] [PASSED] 37 VFs [09:50:41] [PASSED] 38 VFs [09:50:41] [PASSED] 39 VFs [09:50:41] [PASSED] 40 VFs [09:50:41] [PASSED] 41 VFs [09:50:41] [PASSED] 42 VFs [09:50:41] [PASSED] 43 VFs [09:50:41] [PASSED] 44 VFs [09:50:41] [PASSED] 45 VFs [09:50:41] [PASSED] 46 VFs [09:50:41] [PASSED] 47 VFs [09:50:41] [PASSED] 48 VFs [09:50:41] [PASSED] 49 VFs [09:50:41] [PASSED] 50 VFs [09:50:41] [PASSED] 51 VFs [09:50:41] [PASSED] 52 VFs [09:50:41] [PASSED] 53 VFs [09:50:41] [PASSED] 54 VFs [09:50:41] [PASSED] 55 VFs [09:50:41] [PASSED] 56 VFs [09:50:42] [PASSED] 57 VFs [09:50:42] [PASSED] 58 VFs [09:50:42] [PASSED] 59 VFs [09:50:42] [PASSED] 60 VFs [09:50:42] [PASSED] 61 VFs [09:50:42] [PASSED] 62 VFs [09:50:42] [PASSED] 63 VFs [09:50:42] ================== [PASSED] fair_contexts ================== [09:50:42] ===================== fair_doorbells ====================== [09:50:42] [PASSED] 1 VF [09:50:42] [PASSED] 2 VFs [09:50:42] [PASSED] 3 VFs [09:50:42] [PASSED] 4 VFs [09:50:42] [PASSED] 5 VFs [09:50:42] [PASSED] 6 VFs [09:50:42] [PASSED] 7 VFs [09:50:42] [PASSED] 8 VFs [09:50:42] [PASSED] 9 VFs [09:50:42] [PASSED] 10 VFs [09:50:42] [PASSED] 11 VFs [09:50:42] [PASSED] 12 VFs [09:50:42] [PASSED] 13 VFs [09:50:42] [PASSED] 14 VFs [09:50:42] [PASSED] 15 VFs [09:50:42] [PASSED] 16 VFs [09:50:42] [PASSED] 17 VFs [09:50:42] [PASSED] 18 VFs [09:50:42] [PASSED] 19 VFs [09:50:42] [PASSED] 20 VFs [09:50:42] [PASSED] 21 VFs [09:50:42] [PASSED] 22 VFs [09:50:42] [PASSED] 23 VFs [09:50:42] [PASSED] 24 VFs [09:50:42] [PASSED] 25 VFs [09:50:42] [PASSED] 26 VFs [09:50:42] [PASSED] 27 VFs [09:50:42] [PASSED] 28 VFs [09:50:42] [PASSED] 29 VFs [09:50:42] [PASSED] 30 VFs [09:50:42] [PASSED] 31 VFs [09:50:42] [PASSED] 32 VFs [09:50:42] [PASSED] 33 VFs [09:50:42] [PASSED] 34 VFs [09:50:42] [PASSED] 35 VFs [09:50:42] [PASSED] 36 VFs [09:50:42] [PASSED] 37 VFs [09:50:42] [PASSED] 38 VFs [09:50:42] [PASSED] 39 VFs [09:50:42] [PASSED] 40 VFs [09:50:42] [PASSED] 41 VFs [09:50:42] [PASSED] 42 VFs [09:50:42] [PASSED] 43 VFs [09:50:42] [PASSED] 44 VFs [09:50:42] [PASSED] 45 VFs [09:50:42] [PASSED] 46 VFs [09:50:42] [PASSED] 47 VFs [09:50:42] [PASSED] 48 VFs [09:50:42] [PASSED] 49 VFs [09:50:42] [PASSED] 50 VFs [09:50:42] [PASSED] 51 VFs [09:50:42] [PASSED] 52 VFs [09:50:42] [PASSED] 53 VFs [09:50:42] [PASSED] 54 VFs [09:50:42] [PASSED] 55 VFs [09:50:42] [PASSED] 56 VFs [09:50:42] [PASSED] 57 VFs [09:50:42] [PASSED] 58 VFs [09:50:42] [PASSED] 59 VFs [09:50:42] [PASSED] 60 VFs [09:50:42] [PASSED] 61 VFs [09:50:42] [PASSED] 62 VFs [09:50:42] [PASSED] 63 VFs [09:50:42] ================= [PASSED] fair_doorbells ================== [09:50:42] ======================== fair_ggtt ======================== [09:50:42] [PASSED] 1 VF [09:50:42] [PASSED] 2 VFs [09:50:42] [PASSED] 3 VFs [09:50:42] [PASSED] 4 VFs [09:50:42] [PASSED] 5 VFs [09:50:42] [PASSED] 6 VFs [09:50:42] [PASSED] 7 VFs [09:50:42] [PASSED] 8 VFs [09:50:42] [PASSED] 9 VFs [09:50:42] [PASSED] 10 VFs [09:50:42] [PASSED] 11 VFs [09:50:42] [PASSED] 12 VFs [09:50:42] [PASSED] 13 VFs [09:50:42] [PASSED] 14 VFs [09:50:42] [PASSED] 15 VFs [09:50:42] [PASSED] 16 VFs [09:50:42] [PASSED] 17 VFs [09:50:42] [PASSED] 18 VFs [09:50:42] [PASSED] 19 VFs [09:50:42] [PASSED] 20 VFs [09:50:42] [PASSED] 21 VFs [09:50:42] [PASSED] 22 VFs [09:50:42] [PASSED] 23 VFs [09:50:42] [PASSED] 24 VFs [09:50:42] [PASSED] 25 VFs [09:50:42] [PASSED] 26 VFs [09:50:42] [PASSED] 27 VFs [09:50:42] [PASSED] 28 VFs [09:50:42] [PASSED] 29 VFs [09:50:42] [PASSED] 30 VFs [09:50:42] [PASSED] 31 VFs [09:50:42] [PASSED] 32 VFs [09:50:42] [PASSED] 33 VFs [09:50:42] [PASSED] 34 VFs [09:50:42] [PASSED] 35 VFs [09:50:42] [PASSED] 36 VFs [09:50:42] [PASSED] 37 VFs [09:50:42] [PASSED] 38 VFs [09:50:42] [PASSED] 39 VFs [09:50:42] [PASSED] 40 VFs [09:50:42] [PASSED] 41 VFs [09:50:42] [PASSED] 42 VFs [09:50:42] [PASSED] 43 VFs [09:50:42] [PASSED] 44 VFs [09:50:42] [PASSED] 45 VFs [09:50:42] [PASSED] 46 VFs [09:50:42] [PASSED] 47 VFs [09:50:42] [PASSED] 48 VFs [09:50:42] [PASSED] 49 VFs [09:50:42] [PASSED] 50 VFs [09:50:42] [PASSED] 51 VFs [09:50:42] [PASSED] 52 VFs [09:50:42] [PASSED] 53 VFs [09:50:42] [PASSED] 54 VFs [09:50:42] [PASSED] 55 VFs [09:50:42] [PASSED] 56 VFs [09:50:42] [PASSED] 57 VFs [09:50:42] [PASSED] 58 VFs [09:50:42] [PASSED] 59 VFs [09:50:42] [PASSED] 60 VFs [09:50:42] [PASSED] 61 VFs [09:50:42] [PASSED] 62 VFs [09:50:42] [PASSED] 63 VFs [09:50:42] ==================== [PASSED] fair_ggtt ==================== [09:50:42] ======================== fair_vram ======================== [09:50:42] [PASSED] 1 VF [09:50:42] [PASSED] 2 VFs [09:50:42] [PASSED] 3 VFs [09:50:42] [PASSED] 4 VFs [09:50:42] [PASSED] 5 VFs [09:50:42] [PASSED] 6 VFs [09:50:42] [PASSED] 7 VFs [09:50:42] [PASSED] 8 VFs [09:50:42] [PASSED] 9 VFs [09:50:42] [PASSED] 10 VFs [09:50:42] [PASSED] 11 VFs [09:50:42] [PASSED] 12 VFs [09:50:42] [PASSED] 13 VFs [09:50:42] [PASSED] 14 VFs [09:50:42] [PASSED] 15 VFs [09:50:42] [PASSED] 16 VFs [09:50:42] [PASSED] 17 VFs [09:50:42] [PASSED] 18 VFs [09:50:42] [PASSED] 19 VFs [09:50:42] [PASSED] 20 VFs [09:50:42] [PASSED] 21 VFs [09:50:42] [PASSED] 22 VFs [09:50:42] [PASSED] 23 VFs [09:50:42] [PASSED] 24 VFs [09:50:42] [PASSED] 25 VFs [09:50:42] [PASSED] 26 VFs [09:50:42] [PASSED] 27 VFs [09:50:42] [PASSED] 28 VFs [09:50:42] [PASSED] 29 VFs [09:50:42] [PASSED] 30 VFs [09:50:42] [PASSED] 31 VFs [09:50:42] [PASSED] 32 VFs [09:50:42] [PASSED] 33 VFs [09:50:42] [PASSED] 34 VFs [09:50:42] [PASSED] 35 VFs [09:50:42] [PASSED] 36 VFs [09:50:42] [PASSED] 37 VFs [09:50:42] [PASSED] 38 VFs [09:50:42] [PASSED] 39 VFs [09:50:42] [PASSED] 40 VFs [09:50:42] [PASSED] 41 VFs [09:50:42] [PASSED] 42 VFs [09:50:42] [PASSED] 43 VFs [09:50:42] [PASSED] 44 VFs [09:50:42] [PASSED] 45 VFs [09:50:42] [PASSED] 46 VFs [09:50:42] [PASSED] 47 VFs [09:50:42] [PASSED] 48 VFs [09:50:42] [PASSED] 49 VFs [09:50:42] [PASSED] 50 VFs [09:50:42] [PASSED] 51 VFs [09:50:42] [PASSED] 52 VFs [09:50:42] [PASSED] 53 VFs [09:50:42] [PASSED] 54 VFs [09:50:42] [PASSED] 55 VFs [09:50:42] [PASSED] 56 VFs [09:50:42] [PASSED] 57 VFs [09:50:42] [PASSED] 58 VFs [09:50:42] [PASSED] 59 VFs [09:50:42] [PASSED] 60 VFs [09:50:42] [PASSED] 61 VFs [09:50:42] [PASSED] 62 VFs [09:50:42] [PASSED] 63 VFs [09:50:42] ==================== [PASSED] fair_vram ==================== [09:50:42] ================== [PASSED] pf_gt_config =================== [09:50:42] ===================== lmtt (1 subtest) ===================== [09:50:42] ======================== test_ops ========================= [09:50:42] [PASSED] 2-level [09:50:42] [PASSED] multi-level [09:50:42] ==================== [PASSED] test_ops ===================== [09:50:42] ====================== [PASSED] lmtt ======================= [09:50:42] ================= sriov_packet (1 subtest) ================= [09:50:42] [PASSED] test_descriptor_init [09:50:42] ================== [PASSED] sriov_packet =================== [09:50:42] ================= pf_service (11 subtests) ================= [09:50:42] [PASSED] pf_negotiate_any [09:50:42] [PASSED] pf_negotiate_base_match [09:50:42] [PASSED] pf_negotiate_base_newer [09:50:42] [PASSED] pf_negotiate_base_next [09:50:42] [SKIPPED] pf_negotiate_base_older (no older minor) [09:50:42] [PASSED] pf_negotiate_base_prev [09:50:42] [PASSED] pf_negotiate_latest_match [09:50:42] [PASSED] pf_negotiate_latest_newer [09:50:42] [PASSED] pf_negotiate_latest_next [09:50:42] [SKIPPED] pf_negotiate_latest_older (no older minor) [09:50:42] [SKIPPED] pf_negotiate_latest_prev (no prev major) [09:50:42] =================== [PASSED] pf_service ==================== [09:50:42] ================= xe_guc_g2g (2 subtests) ================== [09:50:42] ============== xe_live_guc_g2g_kunit_default ============== [09:50:42] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [09:50:42] ============== xe_live_guc_g2g_kunit_allmem =============== [09:50:42] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [09:50:42] =================== [SKIPPED] xe_guc_g2g =================== [09:50:42] =================== xe_mocs (2 subtests) =================== [09:50:42] ================ xe_live_mocs_kernel_kunit ================ [09:50:42] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [09:50:42] ================ xe_live_mocs_reset_kunit ================= [09:50:42] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [09:50:42] ==================== [SKIPPED] xe_mocs ===================== [09:50:42] ================= xe_migrate (2 subtests) ================== [09:50:42] ================= xe_migrate_sanity_kunit ================= [09:50:42] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [09:50:42] ================== xe_validate_ccs_kunit ================== [09:50:42] ============= [SKIPPED] xe_validate_ccs_kunit ============== [09:50:42] =================== [SKIPPED] xe_migrate =================== [09:50:42] ================== xe_dma_buf (1 subtest) ================== [09:50:42] ==================== xe_dma_buf_kunit ===================== [09:50:42] ================ [SKIPPED] xe_dma_buf_kunit ================ [09:50:42] =================== [SKIPPED] xe_dma_buf =================== [09:50:42] ================= xe_bo_shrink (1 subtest) ================= [09:50:42] =================== xe_bo_shrink_kunit ==================== [09:50:42] =============== [SKIPPED] xe_bo_shrink_kunit =============== [09:50:42] ================== [SKIPPED] xe_bo_shrink ================== [09:50:42] ==================== xe_bo (2 subtests) ==================== [09:50:42] ================== xe_ccs_migrate_kunit =================== [09:50:42] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [09:50:42] ==================== xe_bo_evict_kunit ==================== [09:50:42] =============== [SKIPPED] xe_bo_evict_kunit ================ [09:50:42] ===================== [SKIPPED] xe_bo ====================== [09:50:42] =================== xe_any (9 subtests) ==================== [09:50:42] [PASSED] test_to_xe [09:50:42] [PASSED] test_to_dev [09:50:42] [PASSED] test_to_pdev [09:50:42] [PASSED] test_to_drm [09:50:42] [PASSED] test_if_pdev [09:50:42] [PASSED] test_if_xe [09:50:42] [PASSED] test_if_tile [09:50:42] [PASSED] test_if_gt [09:50:42] [PASSED] test_to_id [09:50:42] ===================== [PASSED] xe_any ====================== [09:50:42] ==================== args (13 subtests) ==================== [09:50:42] [PASSED] count_args_test [09:50:42] [PASSED] call_args_example [09:50:42] [PASSED] call_args_test [09:50:42] [PASSED] drop_first_arg_example [09:50:42] [PASSED] drop_first_arg_test [09:50:42] [PASSED] first_arg_example [09:50:42] [PASSED] first_arg_test [09:50:42] [PASSED] last_arg_example [09:50:42] [PASSED] last_arg_test [09:50:42] [PASSED] pick_arg_example [09:50:42] [PASSED] if_args_example [09:50:42] [PASSED] if_args_test [09:50:42] [PASSED] sep_comma_example [09:50:42] ====================== [PASSED] args ======================= [09:50:42] =================== xe_pci (3 subtests) ==================== [09:50:42] ==================== check_graphics_ip ==================== [09:50:42] [PASSED] 12.00 Xe_LP [09:50:42] [PASSED] 12.10 Xe_LP+ [09:50:42] [PASSED] 12.55 Xe_HPG [09:50:42] [PASSED] 12.60 Xe_HPC [09:50:42] [PASSED] 12.70 Xe_LPG [09:50:42] [PASSED] 12.71 Xe_LPG [09:50:42] [PASSED] 12.74 Xe_LPG+ [09:50:42] [PASSED] 20.01 Xe2_HPG [09:50:42] [PASSED] 20.02 Xe2_HPG [09:50:42] [PASSED] 20.04 Xe2_LPG [09:50:42] [PASSED] 30.00 Xe3_LPG [09:50:42] [PASSED] 30.01 Xe3_LPG [09:50:42] [PASSED] 30.03 Xe3_LPG [09:50:42] [PASSED] 30.04 Xe3_LPG [09:50:42] [PASSED] 30.05 Xe3_LPG [09:50:42] [PASSED] 35.10 Xe3p_LPG [09:50:42] [PASSED] 35.11 Xe3p_XPC [09:50:42] ================ [PASSED] check_graphics_ip ================ [09:50:42] ===================== check_media_ip ====================== [09:50:42] [PASSED] 12.00 Xe_M [09:50:42] [PASSED] 12.55 Xe_HPM [09:50:42] [PASSED] 13.00 Xe_LPM+ [09:50:42] [PASSED] 13.01 Xe2_HPM [09:50:42] [PASSED] 20.00 Xe2_LPM [09:50:42] [PASSED] 30.00 Xe3_LPM [09:50:42] [PASSED] 30.02 Xe3_LPM [09:50:42] [PASSED] 35.00 Xe3p_LPM [09:50:42] [PASSED] 35.03 Xe3p_HPM [09:50:42] ================= [PASSED] check_media_ip ================== [09:50:42] =================== check_platform_desc =================== [09:50:42] [PASSED] 0x9A60 (TIGERLAKE) [09:50:42] [PASSED] 0x9A68 (TIGERLAKE) [09:50:42] [PASSED] 0x9A70 (TIGERLAKE) [09:50:42] [PASSED] 0x9A40 (TIGERLAKE) [09:50:42] [PASSED] 0x9A49 (TIGERLAKE) [09:50:42] [PASSED] 0x9A59 (TIGERLAKE) [09:50:42] [PASSED] 0x9A78 (TIGERLAKE) [09:50:42] [PASSED] 0x9AC0 (TIGERLAKE) [09:50:42] [PASSED] 0x9AC9 (TIGERLAKE) [09:50:42] [PASSED] 0x9AD9 (TIGERLAKE) [09:50:42] [PASSED] 0x9AF8 (TIGERLAKE) [09:50:42] [PASSED] 0x4C80 (ROCKETLAKE) [09:50:42] [PASSED] 0x4C8A (ROCKETLAKE) [09:50:42] [PASSED] 0x4C8B (ROCKETLAKE) [09:50:42] [PASSED] 0x4C8C (ROCKETLAKE) [09:50:42] [PASSED] 0x4C90 (ROCKETLAKE) [09:50:42] [PASSED] 0x4C9A (ROCKETLAKE) [09:50:42] [PASSED] 0x4680 (ALDERLAKE_S) [09:50:42] [PASSED] 0x4682 (ALDERLAKE_S) [09:50:42] [PASSED] 0x4688 (ALDERLAKE_S) [09:50:42] [PASSED] 0x468A (ALDERLAKE_S) [09:50:42] [PASSED] 0x468B (ALDERLAKE_S) [09:50:42] [PASSED] 0x4690 (ALDERLAKE_S) [09:50:42] [PASSED] 0x4692 (ALDERLAKE_S) [09:50:42] [PASSED] 0x4693 (ALDERLAKE_S) [09:50:42] [PASSED] 0x46A0 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46A1 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46A2 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46A3 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46A6 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46A8 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46AA (ALDERLAKE_P) [09:50:42] [PASSED] 0x462A (ALDERLAKE_P) [09:50:42] [PASSED] 0x4626 (ALDERLAKE_P) [09:50:42] [PASSED] 0x4628 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46B0 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46B1 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46B2 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46B3 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46C0 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46C1 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46C2 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46C3 (ALDERLAKE_P) [09:50:42] [PASSED] 0x46D0 (ALDERLAKE_N) [09:50:42] [PASSED] 0x46D1 (ALDERLAKE_N) [09:50:42] [PASSED] 0x46D2 (ALDERLAKE_N) [09:50:42] [PASSED] 0x46D3 (ALDERLAKE_N) [09:50:42] [PASSED] 0x46D4 (ALDERLAKE_N) [09:50:42] [PASSED] 0xA721 (ALDERLAKE_P) [09:50:42] [PASSED] 0xA7A1 (ALDERLAKE_P) [09:50:42] [PASSED] 0xA7A9 (ALDERLAKE_P) [09:50:42] [PASSED] 0xA7AC (ALDERLAKE_P) [09:50:42] [PASSED] 0xA7AD (ALDERLAKE_P) [09:50:42] [PASSED] 0xA720 (ALDERLAKE_P) [09:50:42] [PASSED] 0xA7A0 (ALDERLAKE_P) [09:50:42] [PASSED] 0xA7A8 (ALDERLAKE_P) [09:50:42] [PASSED] 0xA7AA (ALDERLAKE_P) [09:50:42] [PASSED] 0xA7AB (ALDERLAKE_P) [09:50:42] [PASSED] 0xA780 (ALDERLAKE_S) [09:50:42] [PASSED] 0xA781 (ALDERLAKE_S) [09:50:42] [PASSED] 0xA782 (ALDERLAKE_S) [09:50:42] [PASSED] 0xA783 (ALDERLAKE_S) [09:50:42] [PASSED] 0xA788 (ALDERLAKE_S) [09:50:42] [PASSED] 0xA789 (ALDERLAKE_S) [09:50:42] [PASSED] 0xA78A (ALDERLAKE_S) [09:50:42] [PASSED] 0xA78B (ALDERLAKE_S) [09:50:42] [PASSED] 0x4905 (DG1) [09:50:42] [PASSED] 0x4906 (DG1) [09:50:42] [PASSED] 0x4907 (DG1) [09:50:42] [PASSED] 0x4908 (DG1) [09:50:42] [PASSED] 0x4909 (DG1) [09:50:42] [PASSED] 0x56C0 (DG2) [09:50:42] [PASSED] 0x56C2 (DG2) [09:50:42] [PASSED] 0x56C1 (DG2) [09:50:42] [PASSED] 0x7D51 (METEORLAKE) [09:50:42] [PASSED] 0x7DD1 (METEORLAKE) [09:50:42] [PASSED] 0x7D41 (METEORLAKE) [09:50:42] [PASSED] 0x7D67 (METEORLAKE) [09:50:42] [PASSED] 0xB640 (METEORLAKE) [09:50:42] [PASSED] 0x56A0 (DG2) [09:50:42] [PASSED] 0x56A1 (DG2) [09:50:42] [PASSED] 0x56A2 (DG2) [09:50:42] [PASSED] 0x56BE (DG2) [09:50:42] [PASSED] 0x56BF (DG2) [09:50:42] [PASSED] 0x5690 (DG2) [09:50:42] [PASSED] 0x5691 (DG2) [09:50:42] [PASSED] 0x5692 (DG2) [09:50:42] [PASSED] 0x56A5 (DG2) [09:50:42] [PASSED] 0x56A6 (DG2) [09:50:42] [PASSED] 0x56B0 (DG2) [09:50:42] [PASSED] 0x56B1 (DG2) [09:50:42] [PASSED] 0x56BA (DG2) [09:50:42] [PASSED] 0x56BB (DG2) [09:50:42] [PASSED] 0x56BC (DG2) [09:50:42] [PASSED] 0x56BD (DG2) [09:50:42] [PASSED] 0x5693 (DG2) [09:50:42] [PASSED] 0x5694 (DG2) [09:50:42] [PASSED] 0x5695 (DG2) [09:50:42] [PASSED] 0x56A3 (DG2) [09:50:42] [PASSED] 0x56A4 (DG2) [09:50:42] [PASSED] 0x56B2 (DG2) [09:50:42] [PASSED] 0x56B3 (DG2) [09:50:42] [PASSED] 0x5696 (DG2) [09:50:42] [PASSED] 0x5697 (DG2) [09:50:42] [PASSED] 0xB69 (PVC) [09:50:42] [PASSED] 0xB6E (PVC) [09:50:42] [PASSED] 0xBD4 (PVC) [09:50:42] [PASSED] 0xBD5 (PVC) [09:50:42] [PASSED] 0xBD6 (PVC) [09:50:42] [PASSED] 0xBD7 (PVC) [09:50:42] [PASSED] 0xBD8 (PVC) [09:50:42] [PASSED] 0xBD9 (PVC) [09:50:42] [PASSED] 0xBDA (PVC) [09:50:42] [PASSED] 0xBDB (PVC) [09:50:42] [PASSED] 0xBE0 (PVC) [09:50:42] [PASSED] 0xBE1 (PVC) [09:50:42] [PASSED] 0xBE5 (PVC) [09:50:42] [PASSED] 0x7D40 (METEORLAKE) [09:50:42] [PASSED] 0x7D45 (METEORLAKE) [09:50:42] [PASSED] 0x7D55 (METEORLAKE) [09:50:42] [PASSED] 0x7D60 (METEORLAKE) [09:50:42] [PASSED] 0x7DD5 (METEORLAKE) [09:50:42] [PASSED] 0x6420 (LUNARLAKE) [09:50:42] [PASSED] 0x64A0 (LUNARLAKE) [09:50:42] [PASSED] 0x64B0 (LUNARLAKE) [09:50:42] [PASSED] 0xE202 (BATTLEMAGE) [09:50:42] [PASSED] 0xE209 (BATTLEMAGE) [09:50:42] [PASSED] 0xE20B (BATTLEMAGE) [09:50:42] [PASSED] 0xE20C (BATTLEMAGE) [09:50:42] [PASSED] 0xE20D (BATTLEMAGE) [09:50:42] [PASSED] 0xE210 (BATTLEMAGE) [09:50:42] [PASSED] 0xE211 (BATTLEMAGE) [09:50:42] [PASSED] 0xE212 (BATTLEMAGE) [09:50:42] [PASSED] 0xE216 (BATTLEMAGE) [09:50:42] [PASSED] 0xE220 (BATTLEMAGE) [09:50:42] [PASSED] 0xE221 (BATTLEMAGE) [09:50:42] [PASSED] 0xE222 (BATTLEMAGE) [09:50:42] [PASSED] 0xE223 (BATTLEMAGE) [09:50:42] [PASSED] 0xB080 (PANTHERLAKE) [09:50:42] [PASSED] 0xB081 (PANTHERLAKE) [09:50:42] [PASSED] 0xB082 (PANTHERLAKE) [09:50:42] [PASSED] 0xB083 (PANTHERLAKE) [09:50:42] [PASSED] 0xB084 (PANTHERLAKE) [09:50:42] [PASSED] 0xB085 (PANTHERLAKE) [09:50:42] [PASSED] 0xB086 (PANTHERLAKE) [09:50:42] [PASSED] 0xB087 (PANTHERLAKE) [09:50:42] [PASSED] 0xB08F (PANTHERLAKE) [09:50:42] [PASSED] 0xB090 (PANTHERLAKE) [09:50:42] [PASSED] 0xB0A0 (PANTHERLAKE) [09:50:42] [PASSED] 0xB0B0 (PANTHERLAKE) [09:50:42] [PASSED] 0xFD80 (PANTHERLAKE) [09:50:42] [PASSED] 0xFD81 (PANTHERLAKE) [09:50:42] [PASSED] 0xD740 (NOVALAKE_S) [09:50:42] [PASSED] 0xD741 (NOVALAKE_S) [09:50:42] [PASSED] 0xD742 (NOVALAKE_S) [09:50:42] [PASSED] 0xD743 (NOVALAKE_S) [09:50:42] [PASSED] 0xD745 (NOVALAKE_S) [09:50:42] [PASSED] 0xD74A (NOVALAKE_S) [09:50:42] [PASSED] 0xD74B (NOVALAKE_S) [09:50:42] [PASSED] 0x674C (CRESCENTISLAND) [09:50:42] [PASSED] 0x674D (CRESCENTISLAND) [09:50:42] [PASSED] 0x674E (CRESCENTISLAND) [09:50:42] [PASSED] 0x674F (CRESCENTISLAND) [09:50:42] [PASSED] 0x6750 (CRESCENTISLAND) [09:50:42] [PASSED] 0xD750 (NOVALAKE_P) [09:50:42] [PASSED] 0xD751 (NOVALAKE_P) [09:50:42] [PASSED] 0xD752 (NOVALAKE_P) [09:50:42] [PASSED] 0xD753 (NOVALAKE_P) [09:50:42] [PASSED] 0xD754 (NOVALAKE_P) [09:50:42] [PASSED] 0xD755 (NOVALAKE_P) [09:50:42] [PASSED] 0xD756 (NOVALAKE_P) [09:50:42] [PASSED] 0xD757 (NOVALAKE_P) [09:50:42] [PASSED] 0xD75F (NOVALAKE_P) [09:50:42] =============== [PASSED] check_platform_desc =============== [09:50:42] ===================== [PASSED] xe_pci ====================== [09:50:42] ============= xe_rtp_tables_test (5 subtests) ============== [09:50:42] ================== xe_rtp_table_gt_test =================== [09:50:42] [PASSED] gt_was/14011060649 [09:50:42] [PASSED] gt_was/14011059788 [09:50:42] [PASSED] gt_was/14015795083 [09:50:42] [PASSED] gt_was/16021867713 [09:50:42] [PASSED] gt_was/14019449301 [09:50:42] [PASSED] gt_was/16028005424 [09:50:42] [PASSED] gt_was/14026578760 [09:50:42] [PASSED] gt_was/1409420604 [09:50:42] [PASSED] gt_was/1408615072 [09:50:42] [PASSED] gt_was/22010523718 [09:50:42] [PASSED] gt_was/14011006942 [09:50:42] [PASSED] gt_was/14014830051 [09:50:42] [PASSED] gt_was/18018781329 [09:50:42] [PASSED] gt_was/1509235366 [09:50:42] [PASSED] gt_was/18018781329 [09:50:42] [PASSED] gt_was/16016694945 [09:50:42] [PASSED] gt_was/14018575942 [09:50:42] [PASSED] gt_was/22016670082 [09:50:42] [PASSED] gt_was/22016670082 [09:50:42] [PASSED] gt_was/14017421178 [09:50:42] [PASSED] gt_was/16025250150 [09:50:42] [PASSED] gt_was/14021871409 [09:50:42] [PASSED] gt_was/16021865536 [09:50:42] [PASSED] gt_was/14021486841 [09:50:42] [PASSED] gt_was/14025160223 [09:50:42] [PASSED] gt_was/14026144927, 16029437861, 14026127056 [09:50:42] [PASSED] gt_was/14025635424 [09:50:42] [PASSED] gt_was/16028005424 [09:50:42] ============== [PASSED] xe_rtp_table_gt_test =============== [09:50:42] ================== xe_rtp_table_gt_test =================== [09:50:42] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable [09:50:42] [PASSED] gt_tunings/Tuning: 32B Access Enable [09:50:42] [PASSED] gt_tunings/Tuning: L3 cache [09:50:42] [PASSED] gt_tunings/Tuning: L3 cache - media [09:50:42] [PASSED] gt_tunings/Tuning: Compression Overfetch [09:50:42] [PASSED] gt_tunings/Tuning: Compression Overfetch - media [09:50:42] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 [09:50:42] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media [09:50:42] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only [09:50:42] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media [09:50:42] [PASSED] gt_tunings/Tuning: Stateless compression control [09:50:42] [PASSED] gt_tunings/Tuning: Stateless compression control - media [09:50:42] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache [09:50:42] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media [09:50:42] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB [09:50:42] ============== [PASSED] xe_rtp_table_gt_test =============== [09:50:42] ================== xe_rtp_table_oob_test ================== [09:50:42] [PASSED] oob_was/1607983814 [09:50:42] [PASSED] oob_was/16010904313 [09:50:42] [PASSED] oob_was/18022495364 [09:50:42] [PASSED] oob_was/22012773006 [09:50:42] [PASSED] oob_was/14014475959 [09:50:42] [PASSED] oob_was/22011391025 [09:50:42] [PASSED] oob_was/22012727170 [09:50:42] [PASSED] oob_was/22012727685 [09:50:42] [PASSED] oob_was/22016596838 [09:50:42] [PASSED] oob_was/18020744125 [09:50:42] [PASSED] oob_was/1409600907 [09:50:42] [PASSED] oob_was/22014953428 [09:50:42] [PASSED] oob_was/16017236439 [09:50:42] [PASSED] oob_was/14019821291 [09:50:42] [PASSED] oob_was/14015076503 [09:50:42] [PASSED] oob_was/14018913170 [09:50:42] [PASSED] oob_was/14018094691 [09:50:42] [PASSED] oob_was/18024947630 [09:50:42] [PASSED] oob_was/16022287689 [09:50:42] [PASSED] oob_was/13011645652 [09:50:42] [PASSED] oob_was/14022293748 [09:50:42] [PASSED] oob_was/22019794406 [09:50:42] [PASSED] oob_was/22019338487 [09:50:42] [PASSED] oob_was/16023588340 [09:50:42] [PASSED] oob_was/14019789679 [09:50:42] [PASSED] oob_was/14022866841 [09:50:42] [PASSED] oob_was/16021333562 [09:50:42] [PASSED] oob_was/14016712196 [09:50:42] [PASSED] oob_was/14015568240 [09:50:42] [PASSED] oob_was/18013179988 [09:50:42] [PASSED] oob_was/1508761755 [09:50:42] [PASSED] oob_was/16023105232 [09:50:42] [PASSED] oob_was/16026508708 [09:50:42] [PASSED] oob_was/14020001231 [09:50:42] [PASSED] oob_was/16023683509 [09:50:42] [PASSED] oob_was/14025515070 [09:50:42] [PASSED] oob_was/15015404425_disable [09:50:42] [PASSED] oob_was/16026007364 [09:50:42] [PASSED] oob_was/14020316580 [09:50:42] [PASSED] oob_was/14025883347 [09:50:42] [PASSED] oob_was/16029380221 [09:50:42] [PASSED] oob_was/22022079272 [09:50:42] [PASSED] oob_was/16029897822 [09:50:42] [PASSED] oob_was/14027054324 [09:50:42] ============== [PASSED] xe_rtp_table_oob_test ============== [09:50:42] ================ xe_rtp_table_dev_oob_test ================ [09:50:42] [PASSED] device_oob_was/22010954014 [09:50:42] [PASSED] device_oob_was/15015404425 [09:50:42] [PASSED] device_oob_was/22019338487_display [09:50:42] [PASSED] device_oob_was/14022085890 [09:50:42] [PASSED] device_oob_was/14026539277 [09:50:42] [PASSED] device_oob_was/14026633728 [09:50:42] [PASSED] device_oob_was/14026746987 [09:50:42] [PASSED] device_oob_was/14026779378 [09:50:42] ============ [PASSED] xe_rtp_table_dev_oob_test ============ [09:50:42] ========== xe_rtp_table_missing_upper_bound_test ========== [09:50:42] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865 [09:50:42] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037 [09:50:42] [PASSED] register_whitelist/1806527549 [09:50:42] [PASSED] register_whitelist/allow_read_ctx_timestamp [09:50:42] [PASSED] register_whitelist/allow_read_queue_timestamp [09:50:42] [PASSED] register_whitelist/16014440446 [09:50:42] [PASSED] register_whitelist/16017236439 [09:50:42] [PASSED] register_whitelist/16020183090 [09:50:42] [PASSED] register_whitelist/14024997852 [09:50:42] [PASSED] register_whitelist/14024997852 [09:50:42] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ====== [09:50:42] =============== [PASSED] xe_rtp_tables_test ================ [09:50:42] =================== xe_rtp (3 subtests) ==================== [09:50:42] =================== xe_rtp_rules_tests ==================== [09:50:42] [PASSED] no [09:50:42] [PASSED] yes [09:50:42] [PASSED] no-and-no [09:50:42] [PASSED] no-and-yes [09:50:42] [PASSED] yes-and-no [09:50:42] [PASSED] yes-and-yes [09:50:42] [PASSED] no-or-no [09:50:42] [PASSED] no-or-yes [09:50:42] [PASSED] yes-or-no [09:50:42] [PASSED] yes-or-yes [09:50:42] [PASSED] no-yes-or-yes-no [09:50:42] [PASSED] no-yes-or-yes-yes [09:50:42] [PASSED] yes-yes-or-no-yes [09:50:42] [PASSED] yes-yes-or-yes-yes [09:50:42] [PASSED] no-no-or-yes-or-no [09:50:42] [PASSED] or [09:50:42] [PASSED] or-yes [09:50:42] [PASSED] or-no [09:50:42] [PASSED] yes-or [09:50:42] [PASSED] no-or [09:50:42] [PASSED] no-or-or-yes [09:50:42] [PASSED] yes-or-or-no [09:50:42] [PASSED] no-or-or-no [09:50:42] [PASSED] missing-context-engine-class [09:50:42] [PASSED] missing-context-engine-class-or-yes [09:50:42] [PASSED] missing-context-engine-class-or-or-yes [09:50:42] =============== [PASSED] xe_rtp_rules_tests ================ [09:50:42] =============== xe_rtp_process_to_sr_tests ================ [09:50:42] [PASSED] coalesce-same-reg [09:50:42] [PASSED] coalesce-same-reg-literal-and-func [09:50:42] [PASSED] no-match-no-add [09:50:42] [PASSED] two-regs-two-entries [09:50:42] [PASSED] clr-one-set-other [09:50:42] [PASSED] set-field [09:50:42] [PASSED] conflict-duplicate [09:50:42] [PASSED] conflict-not-disjoint [09:50:42] [PASSED] conflict-not-disjoint-literal-and-func [09:50:42] [PASSED] conflict-reg-type [09:50:42] [PASSED] bad-mcr-reg-forced-to-regular [09:50:42] [PASSED] bad-regular-reg-forced-to-mcr [09:50:42] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [09:50:42] ================== xe_rtp_process_tests =================== [09:50:42] [PASSED] active1 [09:50:42] [PASSED] active2 [09:50:42] [PASSED] active-inactive [09:50:42] [PASSED] inactive-active [09:50:42] [PASSED] inactive-active-inactive [09:50:42] [PASSED] inactive-inactive-inactive [09:50:42] ============== [PASSED] xe_rtp_process_tests =============== [09:50:42] ===================== [PASSED] xe_rtp ====================== [09:50:42] ==================== xe_wa (1 subtest) ===================== [09:50:42] ======================== xe_wa_gt ========================= [09:50:42] [PASSED] TIGERLAKE B0 [09:50:42] [PASSED] DG1 A0 [09:50:42] [PASSED] DG1 B0 [09:50:42] [PASSED] ALDERLAKE_S A0 [09:50:42] [PASSED] ALDERLAKE_S B0 [09:50:42] [PASSED] ALDERLAKE_S C0 [09:50:42] [PASSED] ALDERLAKE_S D0 [09:50:42] [PASSED] ALDERLAKE_P A0 [09:50:42] [PASSED] ALDERLAKE_P B0 [09:50:42] [PASSED] ALDERLAKE_P C0 [09:50:42] [PASSED] ALDERLAKE_S RPLS D0 [09:50:42] [PASSED] ALDERLAKE_P RPLU E0 [09:50:42] [PASSED] DG2 G10 C0 [09:50:42] [PASSED] DG2 G11 B1 [09:50:42] [PASSED] DG2 G12 A1 [09:50:42] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [09:50:42] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [09:50:42] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [09:50:42] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [09:50:42] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [09:50:42] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [09:50:42] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [09:50:42] ==================== [PASSED] xe_wa_gt ===================== [09:50:42] ====================== [PASSED] xe_wa ====================== [09:50:42] ============================================================ [09:50:42] Testing complete. Ran 866 tests: passed: 838, skipped: 28 [09:50:42] Elapsed time: 36.102s total, 1.806s configuring, 33.530s building, 0.749s running + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/gpu/drm/tests/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [09:50:42] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [09:50:44] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [09:51:09] Starting KUnit Kernel (1/1)... [09:51:09] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [09:51:09] ============= refcount_interrupt (4 subtests) ============== [09:51:09] [PASSED] test_single_irq_change [09:51:09] [PASSED] test_nested_irq_change [09:51:09] [PASSED] test_multiple_irq_change [09:51:09] [PASSED] test_irq_save [09:51:09] =============== [PASSED] refcount_interrupt ================ [09:51:09] ============ drm_test_pick_cmdline (2 subtests) ============ [09:51:09] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [09:51:09] =============== drm_test_pick_cmdline_named =============== [09:51:09] [PASSED] NTSC [09:51:09] [PASSED] NTSC-J [09:51:09] [PASSED] PAL [09:51:09] [PASSED] PAL-M [09:51:09] =========== [PASSED] drm_test_pick_cmdline_named =========== [09:51:09] ============== [PASSED] drm_test_pick_cmdline ============== [09:51:09] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [09:51:09] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [09:51:09] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [09:51:09] =========== drm_validate_clone_mode (2 subtests) =========== [09:51:09] ============== drm_test_check_in_clone_mode =============== [09:51:09] [PASSED] in_clone_mode [09:51:09] [PASSED] not_in_clone_mode [09:51:09] ========== [PASSED] drm_test_check_in_clone_mode =========== [09:51:09] =============== drm_test_check_valid_clones =============== [09:51:09] [PASSED] not_in_clone_mode [09:51:09] [PASSED] valid_clone [09:51:09] [PASSED] invalid_clone [09:51:09] =========== [PASSED] drm_test_check_valid_clones =========== [09:51:09] ============= [PASSED] drm_validate_clone_mode ============= [09:51:09] ============= drm_validate_modeset (1 subtest) ============= [09:51:09] [PASSED] drm_test_check_connector_changed_modeset [09:51:09] ============== [PASSED] drm_validate_modeset =============== [09:51:09] ====== drm_test_bridge_get_current_state (1 subtest) ======= [09:51:09] [PASSED] drm_test_drm_bridge_get_current_state_atomic [09:51:09] ======== [PASSED] drm_test_bridge_get_current_state ======== [09:51:09] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [09:51:09] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [09:51:09] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [09:51:09] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts [09:51:09] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [09:51:09] ============== drm_bridge_alloc (2 subtests) =============== [09:51:09] [PASSED] drm_test_drm_bridge_alloc_basic [09:51:09] [PASSED] drm_test_drm_bridge_alloc_get_put [09:51:09] ================ [PASSED] drm_bridge_alloc ================= [09:51:09] ============= drm_bridge_bus_fmt (5 subtests) ============== [09:51:09] [PASSED] drm_test_bridge_rgb_yuv_rgb [09:51:09] [PASSED] drm_test_bridge_must_convert_to_yuv444 [09:51:09] [PASSED] drm_test_bridge_hdmi_auto_rgb [09:51:09] [PASSED] drm_test_bridge_auto_first [09:51:09] [PASSED] drm_test_bridge_rgb_yuv_no_path [09:51:09] =============== [PASSED] drm_bridge_bus_fmt ================ [09:51:09] ============= drm_cmdline_parser (40 subtests) ============= [09:51:09] [PASSED] drm_test_cmdline_force_d_only [09:51:09] [PASSED] drm_test_cmdline_force_D_only_dvi [09:51:09] [PASSED] drm_test_cmdline_force_D_only_hdmi [09:51:09] [PASSED] drm_test_cmdline_force_D_only_not_digital [09:51:09] [PASSED] drm_test_cmdline_force_e_only [09:51:09] [PASSED] drm_test_cmdline_res [09:51:09] [PASSED] drm_test_cmdline_res_vesa [09:51:09] [PASSED] drm_test_cmdline_res_vesa_rblank [09:51:09] [PASSED] drm_test_cmdline_res_rblank [09:51:09] [PASSED] drm_test_cmdline_res_bpp [09:51:09] [PASSED] drm_test_cmdline_res_refresh [09:51:09] [PASSED] drm_test_cmdline_res_bpp_refresh [09:51:09] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [09:51:09] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [09:51:09] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [09:51:09] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [09:51:09] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [09:51:09] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [09:51:09] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [09:51:09] [PASSED] drm_test_cmdline_res_margins_force_on [09:51:09] [PASSED] drm_test_cmdline_res_vesa_margins [09:51:09] [PASSED] drm_test_cmdline_name [09:51:09] [PASSED] drm_test_cmdline_name_bpp [09:51:09] [PASSED] drm_test_cmdline_name_option [09:51:09] [PASSED] drm_test_cmdline_name_bpp_option [09:51:09] [PASSED] drm_test_cmdline_rotate_0 [09:51:09] [PASSED] drm_test_cmdline_rotate_90 [09:51:09] [PASSED] drm_test_cmdline_rotate_180 [09:51:09] [PASSED] drm_test_cmdline_rotate_270 [09:51:09] [PASSED] drm_test_cmdline_hmirror [09:51:09] [PASSED] drm_test_cmdline_vmirror [09:51:09] [PASSED] drm_test_cmdline_margin_options [09:51:09] [PASSED] drm_test_cmdline_multiple_options [09:51:09] [PASSED] drm_test_cmdline_bpp_extra_and_option [09:51:09] [PASSED] drm_test_cmdline_extra_and_option [09:51:09] [PASSED] drm_test_cmdline_freestanding_options [09:51:09] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [09:51:09] [PASSED] drm_test_cmdline_panel_orientation [09:51:09] ================ drm_test_cmdline_invalid ================= [09:51:09] [PASSED] margin_only [09:51:09] [PASSED] interlace_only [09:51:09] [PASSED] res_missing_x [09:51:09] [PASSED] res_missing_y [09:51:09] [PASSED] res_bad_y [09:51:09] [PASSED] res_missing_y_bpp [09:51:09] [PASSED] res_bad_bpp [09:51:09] [PASSED] res_bad_refresh [09:51:09] [PASSED] res_bpp_refresh_force_on_off [09:51:09] [PASSED] res_invalid_mode [09:51:09] [PASSED] res_bpp_wrong_place_mode [09:51:09] [PASSED] name_bpp_refresh [09:51:09] [PASSED] name_refresh [09:51:09] [PASSED] name_refresh_wrong_mode [09:51:09] [PASSED] name_refresh_invalid_mode [09:51:09] [PASSED] rotate_multiple [09:51:09] [PASSED] rotate_invalid_val [09:51:09] [PASSED] rotate_truncated [09:51:09] [PASSED] invalid_option [09:51:09] [PASSED] invalid_tv_option [09:51:09] [PASSED] truncated_tv_option [09:51:09] ============ [PASSED] drm_test_cmdline_invalid ============= [09:51:09] =============== drm_test_cmdline_tv_options =============== [09:51:09] [PASSED] NTSC [09:51:09] [PASSED] NTSC_443 [09:51:09] [PASSED] NTSC_J [09:51:09] [PASSED] PAL [09:51:09] [PASSED] PAL_M [09:51:09] [PASSED] PAL_N [09:51:09] [PASSED] SECAM [09:51:09] [PASSED] MONO_525 [09:51:09] [PASSED] MONO_625 [09:51:09] =========== [PASSED] drm_test_cmdline_tv_options =========== [09:51:09] =============== [PASSED] drm_cmdline_parser ================ [09:51:09] ========== drmm_connector_hdmi_init (20 subtests) ========== [09:51:09] [PASSED] drm_test_connector_hdmi_init_valid [09:51:09] [PASSED] drm_test_connector_hdmi_init_bpc_8 [09:51:09] [PASSED] drm_test_connector_hdmi_init_bpc_10 [09:51:09] [PASSED] drm_test_connector_hdmi_init_bpc_12 [09:51:09] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [09:51:09] [PASSED] drm_test_connector_hdmi_init_bpc_null [09:51:09] [PASSED] drm_test_connector_hdmi_init_formats_empty [09:51:09] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [09:51:09] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [09:51:09] [PASSED] supported_formats=0x9 yuv420_allowed=1 [09:51:09] [PASSED] supported_formats=0x9 yuv420_allowed=0 [09:51:09] [PASSED] supported_formats=0x5 yuv420_allowed=1 [09:51:09] [PASSED] supported_formats=0x5 yuv420_allowed=0 [09:51:09] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [09:51:09] [PASSED] drm_test_connector_hdmi_init_null_ddc [09:51:09] [PASSED] drm_test_connector_hdmi_init_null_product [09:51:09] [PASSED] drm_test_connector_hdmi_init_null_vendor [09:51:09] [PASSED] drm_test_connector_hdmi_init_product_length_exact [09:51:09] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [09:51:09] [PASSED] drm_test_connector_hdmi_init_product_valid [09:51:09] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [09:51:09] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [09:51:09] [PASSED] drm_test_connector_hdmi_init_vendor_valid [09:51:09] ========= drm_test_connector_hdmi_init_type_valid ========= [09:51:09] [PASSED] HDMI-A [09:51:09] [PASSED] HDMI-B [09:51:09] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [09:51:09] ======== drm_test_connector_hdmi_init_type_invalid ======== [09:51:09] [PASSED] Unknown [09:51:09] [PASSED] VGA [09:51:09] [PASSED] DVI-I [09:51:09] [PASSED] DVI-D [09:51:09] [PASSED] DVI-A [09:51:09] [PASSED] Composite [09:51:09] [PASSED] SVIDEO [09:51:09] [PASSED] LVDS [09:51:09] [PASSED] Component [09:51:09] [PASSED] DIN [09:51:09] [PASSED] DP [09:51:09] [PASSED] TV [09:51:09] [PASSED] eDP [09:51:09] [PASSED] Virtual [09:51:09] [PASSED] DSI [09:51:09] [PASSED] DPI [09:51:09] [PASSED] Writeback [09:51:09] [PASSED] SPI [09:51:09] [PASSED] USB [09:51:09] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [09:51:09] ============ [PASSED] drmm_connector_hdmi_init ============= [09:51:09] ============= drmm_connector_init (3 subtests) ============= [09:51:09] [PASSED] drm_test_drmm_connector_init [09:51:09] [PASSED] drm_test_drmm_connector_init_null_ddc [09:51:09] ========= drm_test_drmm_connector_init_type_valid ========= [09:51:09] [PASSED] Unknown [09:51:09] [PASSED] VGA [09:51:09] [PASSED] DVI-I [09:51:09] [PASSED] DVI-D [09:51:09] [PASSED] DVI-A [09:51:09] [PASSED] Composite [09:51:09] [PASSED] SVIDEO [09:51:09] [PASSED] LVDS [09:51:09] [PASSED] Component [09:51:09] [PASSED] DIN [09:51:09] [PASSED] DP [09:51:09] [PASSED] HDMI-A [09:51:09] [PASSED] HDMI-B [09:51:09] [PASSED] TV [09:51:09] [PASSED] eDP [09:51:09] [PASSED] Virtual [09:51:09] [PASSED] DSI [09:51:09] [PASSED] DPI [09:51:09] [PASSED] Writeback [09:51:09] [PASSED] SPI [09:51:09] [PASSED] USB [09:51:09] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [09:51:09] =============== [PASSED] drmm_connector_init =============== [09:51:09] ========= drm_connector_dynamic_init (6 subtests) ========== [09:51:09] [PASSED] drm_test_drm_connector_dynamic_init [09:51:09] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [09:51:09] [PASSED] drm_test_drm_connector_dynamic_init_not_added [09:51:09] [PASSED] drm_test_drm_connector_dynamic_init_properties [09:51:09] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [09:51:09] [PASSED] Unknown [09:51:09] [PASSED] VGA [09:51:09] [PASSED] DVI-I [09:51:09] [PASSED] DVI-D [09:51:09] [PASSED] DVI-A [09:51:09] [PASSED] Composite [09:51:09] [PASSED] SVIDEO [09:51:09] [PASSED] LVDS [09:51:09] [PASSED] Component [09:51:09] [PASSED] DIN [09:51:09] [PASSED] DP [09:51:09] [PASSED] HDMI-A [09:51:09] [PASSED] HDMI-B [09:51:09] [PASSED] TV [09:51:09] [PASSED] eDP [09:51:09] [PASSED] Virtual [09:51:09] [PASSED] DSI [09:51:09] [PASSED] DPI [09:51:09] [PASSED] Writeback [09:51:09] [PASSED] SPI [09:51:09] [PASSED] USB [09:51:09] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [09:51:09] ======== drm_test_drm_connector_dynamic_init_name ========= [09:51:09] [PASSED] Unknown [09:51:09] [PASSED] VGA [09:51:09] [PASSED] DVI-I [09:51:09] [PASSED] DVI-D [09:51:09] [PASSED] DVI-A [09:51:09] [PASSED] Composite [09:51:09] [PASSED] SVIDEO [09:51:09] [PASSED] LVDS [09:51:09] [PASSED] Component [09:51:09] [PASSED] DIN [09:51:09] [PASSED] DP [09:51:09] [PASSED] HDMI-A [09:51:09] [PASSED] HDMI-B [09:51:09] [PASSED] TV [09:51:09] [PASSED] eDP [09:51:09] [PASSED] Virtual [09:51:09] [PASSED] DSI [09:51:09] [PASSED] DPI [09:51:09] [PASSED] Writeback [09:51:09] [PASSED] SPI [09:51:09] [PASSED] USB [09:51:09] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [09:51:09] =========== [PASSED] drm_connector_dynamic_init ============ [09:51:09] ==== drm_connector_dynamic_register_early (4 subtests) ===== [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [09:51:09] ====== [PASSED] drm_connector_dynamic_register_early ======= [09:51:09] ======= drm_connector_dynamic_register (7 subtests) ======== [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_on_list [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_no_init [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [09:51:09] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [09:51:09] ========= [PASSED] drm_connector_dynamic_register ========== [09:51:09] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [09:51:09] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [09:51:09] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [09:51:09] === [PASSED] drm_connector_attach_broadcast_rgb_property === [09:51:09] ========== drm_get_tv_mode_from_name (2 subtests) ========== [09:51:09] ========== drm_test_get_tv_mode_from_name_valid =========== [09:51:09] [PASSED] NTSC [09:51:09] [PASSED] NTSC-443 [09:51:09] [PASSED] NTSC-J [09:51:09] [PASSED] PAL [09:51:09] [PASSED] PAL-M [09:51:09] [PASSED] PAL-N [09:51:09] [PASSED] SECAM [09:51:09] [PASSED] Mono [09:51:09] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [09:51:09] [PASSED] drm_test_get_tv_mode_from_name_truncated [09:51:09] ============ [PASSED] drm_get_tv_mode_from_name ============ [09:51:09] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [09:51:09] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [09:51:09] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [09:51:09] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [09:51:09] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [09:51:09] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [09:51:09] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [09:51:09] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [09:51:09] [PASSED] VIC 96 [09:51:09] [PASSED] VIC 97 [09:51:09] [PASSED] VIC 101 [09:51:09] [PASSED] VIC 102 [09:51:09] [PASSED] VIC 106 [09:51:09] [PASSED] VIC 107 [09:51:09] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [09:51:09] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [09:51:09] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [09:51:09] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [09:51:09] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [09:51:09] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [09:51:09] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [09:51:09] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [09:51:09] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [09:51:09] [PASSED] Automatic [09:51:09] [PASSED] Full [09:51:09] [PASSED] Limited 16:235 [09:51:09] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [09:51:09] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [09:51:09] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [09:51:09] == drm_hdmi_connector_get_output_format_name (2 subtests) == [09:51:09] === drm_test_drm_hdmi_connector_get_output_format_name ==== [09:51:09] [PASSED] RGB [09:51:09] [PASSED] YUV 4:2:0 [09:51:09] [PASSED] YUV 4:2:2 [09:51:09] [PASSED] YUV 4:4:4 [09:51:09] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [09:51:09] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [09:51:09] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [09:51:09] ============= drm_damage_helper (21 subtests) ============== [09:51:09] [PASSED] drm_test_damage_iter_no_damage [09:51:09] [PASSED] drm_test_damage_iter_no_damage_fractional_src [09:51:09] [PASSED] drm_test_damage_iter_no_damage_src_moved [09:51:09] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [09:51:09] [PASSED] drm_test_damage_iter_no_damage_not_visible [09:51:09] [PASSED] drm_test_damage_iter_no_damage_no_crtc [09:51:09] [PASSED] drm_test_damage_iter_no_damage_no_fb [09:51:09] [PASSED] drm_test_damage_iter_simple_damage [09:51:09] [PASSED] drm_test_damage_iter_single_damage [09:51:09] [PASSED] drm_test_damage_iter_single_damage_intersect_src [09:51:09] [PASSED] drm_test_damage_iter_single_damage_outside_src [09:51:09] [PASSED] drm_test_damage_iter_single_damage_fractional_src [09:51:09] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [09:51:09] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [09:51:09] [PASSED] drm_test_damage_iter_single_damage_src_moved [09:51:09] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [09:51:09] [PASSED] drm_test_damage_iter_damage [09:51:09] [PASSED] drm_test_damage_iter_damage_one_intersect [09:51:09] [PASSED] drm_test_damage_iter_damage_one_outside [09:51:09] [PASSED] drm_test_damage_iter_damage_src_moved [09:51:09] [PASSED] drm_test_damage_iter_damage_not_visible [09:51:09] ================ [PASSED] drm_damage_helper ================ [09:51:09] ============== drm_dp_mst_helper (3 subtests) ============== [09:51:09] ============== drm_test_dp_mst_calc_pbn_mode ============== [09:51:09] [PASSED] Clock 154000 BPP 30 DSC disabled [09:51:09] [PASSED] Clock 234000 BPP 30 DSC disabled [09:51:09] [PASSED] Clock 297000 BPP 24 DSC disabled [09:51:09] [PASSED] Clock 332880 BPP 24 DSC enabled [09:51:09] [PASSED] Clock 324540 BPP 24 DSC enabled [09:51:09] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [09:51:09] ============== drm_test_dp_mst_calc_pbn_div =============== [09:51:09] [PASSED] Link rate 2000000 lane count 4 [09:51:09] [PASSED] Link rate 2000000 lane count 2 [09:51:09] [PASSED] Link rate 2000000 lane count 1 [09:51:09] [PASSED] Link rate 1350000 lane count 4 [09:51:09] [PASSED] Link rate 1350000 lane count 2 [09:51:09] [PASSED] Link rate 1350000 lane count 1 [09:51:09] [PASSED] Link rate 1000000 lane count 4 [09:51:09] [PASSED] Link rate 1000000 lane count 2 [09:51:09] [PASSED] Link rate 1000000 lane count 1 [09:51:09] [PASSED] Link rate 810000 lane count 4 [09:51:09] [PASSED] Link rate 810000 lane count 2 [09:51:09] [PASSED] Link rate 810000 lane count 1 [09:51:09] [PASSED] Link rate 540000 lane count 4 [09:51:09] [PASSED] Link rate 540000 lane count 2 [09:51:09] [PASSED] Link rate 540000 lane count 1 [09:51:09] [PASSED] Link rate 270000 lane count 4 [09:51:09] [PASSED] Link rate 270000 lane count 2 [09:51:09] [PASSED] Link rate 270000 lane count 1 [09:51:09] [PASSED] Link rate 162000 lane count 4 [09:51:09] [PASSED] Link rate 162000 lane count 2 [09:51:09] [PASSED] Link rate 162000 lane count 1 [09:51:09] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [09:51:09] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [09:51:09] [PASSED] DP_ENUM_PATH_RESOURCES with port number [09:51:09] [PASSED] DP_POWER_UP_PHY with port number [09:51:09] [PASSED] DP_POWER_DOWN_PHY with port number [09:51:09] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [09:51:09] [PASSED] DP_ALLOCATE_PAYLOAD with port number [09:51:09] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [09:51:09] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [09:51:09] [PASSED] DP_QUERY_PAYLOAD with port number [09:51:09] [PASSED] DP_QUERY_PAYLOAD with VCPI [09:51:09] [PASSED] DP_REMOTE_DPCD_READ with port number [09:51:09] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [09:51:09] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [09:51:09] [PASSED] DP_REMOTE_DPCD_WRITE with port number [09:51:09] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [09:51:09] [PASSED] DP_REMOTE_DPCD_WRITE with data array [09:51:09] [PASSED] DP_REMOTE_I2C_READ with port number [09:51:09] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [09:51:09] [PASSED] DP_REMOTE_I2C_READ with transactions array [09:51:09] [PASSED] DP_REMOTE_I2C_WRITE with port number [09:51:09] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [09:51:09] [PASSED] DP_REMOTE_I2C_WRITE with data array [09:51:09] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [09:51:09] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [09:51:09] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [09:51:09] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [09:51:09] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [09:51:09] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [09:51:09] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [09:51:09] ================ [PASSED] drm_dp_mst_helper ================ [09:51:09] ================== drm_exec (7 subtests) =================== [09:51:09] [PASSED] sanitycheck [09:51:09] [PASSED] test_lock [09:51:09] [PASSED] test_lock_unlock [09:51:09] [PASSED] test_duplicates [09:51:09] [PASSED] test_prepare [09:51:09] [PASSED] test_prepare_array [09:51:09] [PASSED] test_multiple_loops [09:51:09] ==================== [PASSED] drm_exec ===================== [09:51:09] =========== drm_format_helper_test (17 subtests) =========== [09:51:09] ============== drm_test_fb_xrgb8888_to_gray8 ============== [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [09:51:09] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [09:51:09] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [09:51:09] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [09:51:09] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [09:51:09] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [09:51:09] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [09:51:09] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [09:51:09] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [09:51:09] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [09:51:09] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [09:51:09] ============== drm_test_fb_xrgb8888_to_mono =============== [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [09:51:09] ==================== drm_test_fb_swab ===================== [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ================ [PASSED] drm_test_fb_swab ================= [09:51:09] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [09:51:09] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [09:51:09] [PASSED] single_pixel_source_buffer [09:51:09] [PASSED] single_pixel_clip_rectangle [09:51:09] [PASSED] well_known_colors [09:51:09] [PASSED] destination_pitch [09:51:09] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [09:51:09] ================= drm_test_fb_clip_offset ================= [09:51:09] [PASSED] pass through [09:51:09] [PASSED] horizontal offset [09:51:09] [PASSED] vertical offset [09:51:09] [PASSED] horizontal and vertical offset [09:51:09] [PASSED] horizontal offset (custom pitch) [09:51:09] [PASSED] vertical offset (custom pitch) [09:51:09] [PASSED] horizontal and vertical offset (custom pitch) [09:51:09] ============= [PASSED] drm_test_fb_clip_offset ============= [09:51:09] =================== drm_test_fb_memcpy ==================== [09:51:09] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [09:51:09] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [09:51:09] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [09:51:09] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [09:51:09] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [09:51:09] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [09:51:09] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [09:51:09] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [09:51:09] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [09:51:09] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [09:51:09] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [09:51:09] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [09:51:09] =============== [PASSED] drm_test_fb_memcpy ================ [09:51:09] ============= [PASSED] drm_format_helper_test ============== [09:51:09] ================= drm_format (18 subtests) ================= [09:51:09] [PASSED] drm_test_format_block_width_invalid [09:51:09] [PASSED] drm_test_format_block_width_one_plane [09:51:09] [PASSED] drm_test_format_block_width_two_plane [09:51:09] [PASSED] drm_test_format_block_width_three_plane [09:51:09] [PASSED] drm_test_format_block_width_tiled [09:51:09] [PASSED] drm_test_format_block_height_invalid [09:51:09] [PASSED] drm_test_format_block_height_one_plane [09:51:09] [PASSED] drm_test_format_block_height_two_plane [09:51:09] [PASSED] drm_test_format_block_height_three_plane [09:51:09] [PASSED] drm_test_format_block_height_tiled [09:51:09] [PASSED] drm_test_format_min_pitch_invalid [09:51:09] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [09:51:09] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [09:51:09] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [09:51:09] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [09:51:09] [PASSED] drm_test_format_min_pitch_two_plane [09:51:09] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [09:51:09] [PASSED] drm_test_format_min_pitch_tiled [09:51:09] =================== [PASSED] drm_format ==================== [09:51:09] ============== drm_framebuffer (10 subtests) =============== [09:51:09] ========== drm_test_framebuffer_check_src_coords ========== [09:51:09] [PASSED] Success: source fits into fb [09:51:09] [PASSED] Fail: overflowing fb with x-axis coordinate [09:51:09] [PASSED] Fail: overflowing fb with y-axis coordinate [09:51:09] [PASSED] Fail: overflowing fb with source width [09:51:09] [PASSED] Fail: overflowing fb with source height [09:51:09] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [09:51:09] [PASSED] drm_test_framebuffer_cleanup [09:51:09] =============== drm_test_framebuffer_create =============== [09:51:09] [PASSED] ABGR8888 normal sizes [09:51:09] [PASSED] ABGR8888 max sizes [09:51:09] [PASSED] ABGR8888 pitch greater than min required [09:51:09] [PASSED] ABGR8888 pitch less than min required [09:51:09] [PASSED] ABGR8888 Invalid width [09:51:09] [PASSED] ABGR8888 Invalid buffer handle [09:51:09] [PASSED] No pixel format [09:51:09] [PASSED] ABGR8888 Width 0 [09:51:09] [PASSED] ABGR8888 Height 0 [09:51:09] [PASSED] ABGR8888 Out of bound height * pitch combination [09:51:09] [PASSED] ABGR8888 Large buffer offset [09:51:09] [PASSED] ABGR8888 Buffer offset for inexistent plane [09:51:09] [PASSED] ABGR8888 Invalid flag [09:51:09] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [09:51:09] [PASSED] ABGR8888 Valid buffer modifier [09:51:09] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [09:51:09] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [09:51:09] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [09:51:09] [PASSED] NV12 Normal sizes [09:51:09] [PASSED] NV12 Max sizes [09:51:09] [PASSED] NV12 Invalid pitch [09:51:09] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [09:51:09] [PASSED] NV12 different modifier per-plane [09:51:09] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [09:51:09] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [09:51:09] [PASSED] NV12 Modifier for inexistent plane [09:51:09] [PASSED] NV12 Handle for inexistent plane [09:51:09] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [09:51:09] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [09:51:09] [PASSED] YVU420 Normal sizes [09:51:09] [PASSED] YVU420 Max sizes [09:51:09] [PASSED] YVU420 Invalid pitch [09:51:09] [PASSED] YVU420 Different pitches [09:51:09] [PASSED] YVU420 Different buffer offsets/pitches [09:51:09] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [09:51:09] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [09:51:09] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [09:51:09] [PASSED] YVU420 Valid modifier [09:51:09] [PASSED] YVU420 Different modifiers per plane [09:51:09] [PASSED] YVU420 Modifier for inexistent plane [09:51:09] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [09:51:09] [PASSED] X0L2 Normal sizes [09:51:09] [PASSED] X0L2 Max sizes [09:51:09] [PASSED] X0L2 Invalid pitch [09:51:09] [PASSED] X0L2 Pitch greater than minimum required [09:51:09] [PASSED] X0L2 Handle for inexistent plane [09:51:09] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [09:51:09] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [09:51:09] [PASSED] X0L2 Valid modifier [09:51:09] [PASSED] X0L2 Modifier for inexistent plane [09:51:09] =========== [PASSED] drm_test_framebuffer_create =========== [09:51:09] [PASSED] drm_test_framebuffer_free [09:51:09] [PASSED] drm_test_framebuffer_init [09:51:09] [PASSED] drm_test_framebuffer_init_bad_format [09:51:09] [PASSED] drm_test_framebuffer_init_dev_mismatch [09:51:09] [PASSED] drm_test_framebuffer_lookup [09:51:09] [PASSED] drm_test_framebuffer_lookup_inexistent [09:51:09] [PASSED] drm_test_framebuffer_modifiers_not_supported [09:51:09] ================= [PASSED] drm_framebuffer ================= [09:51:09] ================ drm_gem_shmem (8 subtests) ================ [09:51:09] [PASSED] drm_gem_shmem_test_obj_create [09:51:09] [PASSED] drm_gem_shmem_test_obj_create_private [09:51:09] [PASSED] drm_gem_shmem_test_pin_pages [09:51:09] [PASSED] drm_gem_shmem_test_vmap [09:51:09] [PASSED] drm_gem_shmem_test_get_sg_table [09:51:09] [PASSED] drm_gem_shmem_test_get_pages_sgt [09:51:09] [PASSED] drm_gem_shmem_test_madvise [09:51:09] [PASSED] drm_gem_shmem_test_purge [09:51:09] ================== [PASSED] drm_gem_shmem ================== [09:51:09] === drm_atomic_helper_connector_hdmi_check (29 subtests) === [09:51:09] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [09:51:09] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [09:51:09] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [09:51:09] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [09:51:09] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [09:51:09] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [09:51:09] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [09:51:09] [PASSED] Automatic [09:51:09] [PASSED] Full [09:51:09] [PASSED] Limited 16:235 [09:51:09] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [09:51:09] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [09:51:09] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [09:51:09] [PASSED] drm_test_check_disable_connector [09:51:09] [PASSED] drm_test_check_hdmi_funcs_reject_rate [09:51:09] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [09:51:09] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [09:51:09] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [09:51:09] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [09:51:09] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [09:51:09] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [09:51:09] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [09:51:09] [PASSED] drm_test_check_output_bpc_dvi [09:51:09] [PASSED] drm_test_check_output_bpc_format_vic_1 [09:51:09] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [09:51:09] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [09:51:09] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [09:51:09] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [09:51:09] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [09:51:09] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [09:51:09] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [09:51:09] ============ drm_test_check_hdmi_color_format ============= [09:51:09] [PASSED] AUTO -> RGB [09:51:09] [PASSED] YCBCR422 -> YUV422 [09:51:09] [PASSED] YCBCR420 -> YUV420 [09:51:09] [PASSED] YCBCR444 -> YUV444 [09:51:09] [PASSED] RGB -> RGB [09:51:09] ======== [PASSED] drm_test_check_hdmi_color_format ========= [09:51:09] ======== drm_test_check_hdmi_color_format_420_only ======== [09:51:09] [PASSED] RGB should fail [09:51:09] [PASSED] YUV444 should fail [09:51:09] [PASSED] YUV422 should fail [09:51:09] [PASSED] YUV420 should work [09:51:09] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ==== [09:51:09] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [09:51:09] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [09:51:09] [PASSED] drm_test_check_broadcast_rgb_value [09:51:09] [PASSED] drm_test_check_bpc_8_value [09:51:09] [PASSED] drm_test_check_bpc_10_value [09:51:09] [PASSED] drm_test_check_bpc_12_value [09:51:09] [PASSED] drm_test_check_format_value [09:51:09] [PASSED] drm_test_check_tmds_char_value [09:51:09] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [09:51:09] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) = [09:51:09] [PASSED] drm_test_check_mode_valid [09:51:09] [PASSED] drm_test_check_mode_valid_reject [09:51:09] [PASSED] drm_test_check_mode_valid_reject_rate [09:51:09] [PASSED] drm_test_check_mode_valid_reject_max_clock [09:51:09] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock [09:51:09] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector [09:51:09] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb [09:51:09] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [09:51:09] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) = [09:51:09] [PASSED] drm_test_check_infoframes [09:51:09] [PASSED] drm_test_check_reject_avi_infoframe [09:51:09] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8 [09:51:09] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10 [09:51:09] [PASSED] drm_test_check_reject_audio_infoframe [09:51:09] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes === [09:51:09] ================= drm_managed (2 subtests) ================= [09:51:09] [PASSED] drm_test_managed_release_action [09:51:09] [PASSED] drm_test_managed_run_action [09:51:09] =================== [PASSED] drm_managed =================== [09:51:09] =================== drm_mm (6 subtests) ==================== [09:51:09] [PASSED] drm_test_mm_init [09:51:09] [PASSED] drm_test_mm_debug [09:51:09] [PASSED] drm_test_mm_align32 [09:51:09] [PASSED] drm_test_mm_align64 [09:51:09] [PASSED] drm_test_mm_lowest [09:51:09] [PASSED] drm_test_mm_highest [09:51:09] ===================== [PASSED] drm_mm ====================== [09:51:09] ============= drm_modes_analog_tv (5 subtests) ============= [09:51:09] [PASSED] drm_test_modes_analog_tv_mono_576i [09:51:09] [PASSED] drm_test_modes_analog_tv_ntsc_480i [09:51:09] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [09:51:09] [PASSED] drm_test_modes_analog_tv_pal_576i [09:51:09] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [09:51:09] =============== [PASSED] drm_modes_analog_tv =============== [09:51:09] ============== drm_panic_helper (3 subtests) =============== [09:51:09] ============= drm_test_panic_screen_user_map ============== [09:51:09] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [09:51:09] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [09:51:09] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [09:51:09] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [09:51:09] ========= [PASSED] drm_test_panic_screen_user_map ========== [09:51:09] ============= drm_test_panic_screen_user_page ============= [09:51:09] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [09:51:09] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [09:51:09] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [09:51:09] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [09:51:09] ========= [PASSED] drm_test_panic_screen_user_page ========= [09:51:09] ========== drm_test_panic_screen_user_set_pixel =========== [09:51:09] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [09:51:09] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [09:51:09] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [09:51:09] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [09:51:09] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [09:51:09] ====== [PASSED] drm_test_panic_screen_user_set_pixel ======= [09:51:09] ================ [PASSED] drm_panic_helper ================= [09:51:09] ============== drm_plane_helper (2 subtests) =============== [09:51:09] =============== drm_test_check_plane_state ================ [09:51:09] [PASSED] clipping_simple [09:51:09] [PASSED] clipping_rotate_reflect [09:51:09] [PASSED] positioning_simple [09:51:09] [PASSED] upscaling [09:51:09] [PASSED] downscaling [09:51:09] [PASSED] rounding1 [09:51:09] [PASSED] rounding2 [09:51:09] [PASSED] rounding3 [09:51:09] [PASSED] rounding4 [09:51:09] =========== [PASSED] drm_test_check_plane_state ============ [09:51:09] =========== drm_test_check_invalid_plane_state ============ [09:51:09] [PASSED] positioning_invalid [09:51:09] [PASSED] upscaling_invalid [09:51:09] [PASSED] downscaling_invalid [09:51:09] ======= [PASSED] drm_test_check_invalid_plane_state ======== [09:51:09] ================ [PASSED] drm_plane_helper ================= [09:51:09] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [09:51:09] ====== drm_test_connector_helper_tv_get_modes_check ======= [09:51:09] [PASSED] None [09:51:09] [PASSED] PAL [09:51:09] [PASSED] NTSC [09:51:09] [PASSED] Both, NTSC Default [09:51:09] [PASSED] Both, PAL Default [09:51:09] [PASSED] Both, NTSC Default, with PAL on command-line [09:51:09] [PASSED] Both, PAL Default, with NTSC on command-line [09:51:09] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [09:51:09] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [09:51:09] ================== drm_rect (9 subtests) =================== [09:51:09] [PASSED] drm_test_rect_clip_scaled_div_by_zero [09:51:09] [PASSED] drm_test_rect_clip_scaled_not_clipped [09:51:09] [PASSED] drm_test_rect_clip_scaled_clipped [09:51:09] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [09:51:09] ================= drm_test_rect_intersect ================= [09:51:09] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [09:51:09] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [09:51:09] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [09:51:09] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [09:51:09] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [09:51:09] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [09:51:09] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [09:51:09] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [09:51:09] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [09:51:09] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [09:51:09] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [09:51:09] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [09:51:09] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [09:51:09] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [09:51:09] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [09:51:09] ============= [PASSED] drm_test_rect_intersect ============= [09:51:09] ================ drm_test_rect_calc_hscale ================ [09:51:09] [PASSED] normal use [09:51:09] [PASSED] out of max range [09:51:09] [PASSED] out of min range [09:51:09] [PASSED] zero dst [09:51:09] [PASSED] negative src [09:51:09] [PASSED] negative dst [09:51:09] ============ [PASSED] drm_test_rect_calc_hscale ============ [09:51:09] ================ drm_test_rect_calc_vscale ================ [09:51:09] [PASSED] normal use [09:51:09] [PASSED] out of max range [09:51:09] [PASSED] out of min range [09:51:09] [PASSED] zero dst [09:51:09] [PASSED] negative src [09:51:09] [PASSED] negative dst [09:51:09] ============ [PASSED] drm_test_rect_calc_vscale ============ [09:51:09] ================== drm_test_rect_rotate =================== [09:51:09] [PASSED] reflect-x [09:51:09] [PASSED] reflect-y [09:51:09] [PASSED] rotate-0 [09:51:09] [PASSED] rotate-90 [09:51:09] [PASSED] rotate-180 [09:51:09] [PASSED] rotate-270 [09:51:09] ============== [PASSED] drm_test_rect_rotate =============== [09:51:09] ================ drm_test_rect_rotate_inv ================= [09:51:09] [PASSED] reflect-x [09:51:09] [PASSED] reflect-y [09:51:09] [PASSED] rotate-0 [09:51:09] [PASSED] rotate-90 [09:51:09] [PASSED] rotate-180 [09:51:09] [PASSED] rotate-270 [09:51:09] ============ [PASSED] drm_test_rect_rotate_inv ============= [09:51:09] ==================== [PASSED] drm_rect ===================== [09:51:09] ============ drm_sysfb_modeset_test (1 subtest) ============ [09:51:09] ============ drm_test_sysfb_build_fourcc_list ============= [09:51:09] [PASSED] no native formats [09:51:09] [PASSED] XRGB8888 as native format [09:51:09] [PASSED] remove duplicates [09:51:09] [PASSED] convert alpha formats [09:51:09] [PASSED] random formats [09:51:09] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [09:51:09] ============= [PASSED] drm_sysfb_modeset_test ============== [09:51:09] ================== drm_fixp (2 subtests) =================== [09:51:09] [PASSED] drm_test_int2fixp [09:51:09] [PASSED] drm_test_sm2fixp [09:51:09] ==================== [PASSED] drm_fixp ===================== [09:51:09] ============================================================ [09:51:09] Testing complete. Ran 671 tests: passed: 671 [09:51:09] Elapsed time: 27.245s total, 1.804s configuring, 24.974s building, 0.445s running + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [09:51:09] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [09:51:11] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [09:51:21] Starting KUnit Kernel (1/1)... [09:51:21] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [09:51:21] ============= refcount_interrupt (4 subtests) ============== [09:51:21] [PASSED] test_single_irq_change [09:51:21] [PASSED] test_nested_irq_change [09:51:21] [PASSED] test_multiple_irq_change [09:51:21] [PASSED] test_irq_save [09:51:21] =============== [PASSED] refcount_interrupt ================ [09:51:21] ================= ttm_device (5 subtests) ================== [09:51:21] [PASSED] ttm_device_init_basic [09:51:21] [PASSED] ttm_device_init_multiple [09:51:21] [PASSED] ttm_device_fini_basic [09:51:21] [PASSED] ttm_device_init_no_vma_man [09:51:21] ================== ttm_device_init_pools ================== [09:51:21] [PASSED] No DMA allocations, no DMA32 required [09:51:21] [PASSED] DMA allocations, DMA32 required [09:51:21] [PASSED] No DMA allocations, DMA32 required [09:51:21] [PASSED] DMA allocations, no DMA32 required [09:51:21] ============== [PASSED] ttm_device_init_pools ============== [09:51:21] =================== [PASSED] ttm_device ==================== [09:51:21] ================== ttm_pool (8 subtests) =================== [09:51:21] ================== ttm_pool_alloc_basic =================== [09:51:21] [PASSED] One page [09:51:21] [PASSED] More than one page [09:51:21] [PASSED] Above the allocation limit [09:51:21] [PASSED] One page, with coherent DMA mappings enabled [09:51:21] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [09:51:21] ============== [PASSED] ttm_pool_alloc_basic =============== [09:51:21] ============== ttm_pool_alloc_basic_dma_addr ============== [09:51:21] [PASSED] One page [09:51:21] [PASSED] More than one page [09:51:21] [PASSED] Above the allocation limit [09:51:21] [PASSED] One page, with coherent DMA mappings enabled [09:51:21] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [09:51:21] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [09:51:21] [PASSED] ttm_pool_alloc_order_caching_match [09:51:21] [PASSED] ttm_pool_alloc_caching_mismatch [09:51:21] [PASSED] ttm_pool_alloc_order_mismatch [09:51:21] [PASSED] ttm_pool_free_dma_alloc [09:51:21] [PASSED] ttm_pool_free_no_dma_alloc [09:51:21] [PASSED] ttm_pool_fini_basic [09:51:21] ==================== [PASSED] ttm_pool ===================== [09:51:21] ================ ttm_resource (8 subtests) ================= [09:51:21] ================= ttm_resource_init_basic ================= [09:51:21] [PASSED] Init resource in TTM_PL_SYSTEM [09:51:21] [PASSED] Init resource in TTM_PL_VRAM [09:51:21] [PASSED] Init resource in a private placement [09:51:21] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [09:51:21] ============= [PASSED] ttm_resource_init_basic ============= [09:51:21] [PASSED] ttm_resource_init_pinned [09:51:21] [PASSED] ttm_resource_fini_basic [09:51:21] [PASSED] ttm_resource_manager_init_basic [09:51:21] [PASSED] ttm_resource_manager_usage_basic [09:51:21] [PASSED] ttm_resource_manager_set_used_basic [09:51:21] [PASSED] ttm_sys_man_alloc_basic [09:51:21] [PASSED] ttm_sys_man_free_basic [09:51:21] ================== [PASSED] ttm_resource =================== [09:51:21] =================== ttm_tt (15 subtests) =================== [09:51:21] ==================== ttm_tt_init_basic ==================== [09:51:21] [PASSED] Page-aligned size [09:51:21] [PASSED] Extra pages requested [09:51:21] ================ [PASSED] ttm_tt_init_basic ================ [09:51:21] [PASSED] ttm_tt_init_misaligned [09:51:21] [PASSED] ttm_tt_fini_basic [09:51:21] [PASSED] ttm_tt_fini_sg [09:51:21] [PASSED] ttm_tt_fini_shmem [09:51:21] [PASSED] ttm_tt_create_basic [09:51:21] [PASSED] ttm_tt_create_invalid_bo_type [09:51:21] [PASSED] ttm_tt_create_ttm_exists [09:51:21] [PASSED] ttm_tt_create_failed [09:51:21] [PASSED] ttm_tt_destroy_basic [09:51:21] [PASSED] ttm_tt_populate_null_ttm [09:51:21] [PASSED] ttm_tt_populate_populated_ttm [09:51:21] [PASSED] ttm_tt_unpopulate_basic [09:51:21] [PASSED] ttm_tt_unpopulate_empty_ttm [09:51:21] [PASSED] ttm_tt_swapin_basic [09:51:21] ===================== [PASSED] ttm_tt ====================== [09:51:21] =================== ttm_bo (14 subtests) =================== [09:51:21] =========== ttm_bo_reserve_optimistic_no_ticket =========== [09:51:21] [PASSED] Cannot be interrupted and sleeps [09:51:21] [PASSED] Cannot be interrupted, locks straight away [09:51:21] [PASSED] Can be interrupted, sleeps [09:51:21] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [09:51:21] [PASSED] ttm_bo_reserve_locked_no_sleep [09:51:21] [PASSED] ttm_bo_reserve_no_wait_ticket [09:51:21] [PASSED] ttm_bo_reserve_double_resv [09:51:21] [PASSED] ttm_bo_reserve_interrupted [09:51:21] [PASSED] ttm_bo_reserve_deadlock [09:51:21] [PASSED] ttm_bo_unreserve_basic [09:51:21] [PASSED] ttm_bo_unreserve_pinned [09:51:21] [PASSED] ttm_bo_unreserve_bulk [09:51:21] [PASSED] ttm_bo_fini_basic [09:51:21] [PASSED] ttm_bo_fini_shared_resv [09:51:21] [PASSED] ttm_bo_pin_basic [09:51:21] [PASSED] ttm_bo_pin_unpin_resource [09:51:21] [PASSED] ttm_bo_multiple_pin_one_unpin [09:51:21] ===================== [PASSED] ttm_bo ====================== [09:51:21] ============== ttm_bo_validate (22 subtests) =============== [09:51:21] ============== ttm_bo_init_reserved_sys_man =============== [09:51:21] [PASSED] Buffer object for userspace [09:51:21] [PASSED] Kernel buffer object [09:51:21] [PASSED] Shared buffer object [09:51:21] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [09:51:21] ============== ttm_bo_init_reserved_mock_man ============== [09:51:21] [PASSED] Buffer object for userspace [09:51:21] [PASSED] Kernel buffer object [09:51:21] [PASSED] Shared buffer object [09:51:21] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [09:51:21] [PASSED] ttm_bo_init_reserved_resv [09:51:21] ================== ttm_bo_validate_basic ================== [09:51:21] [PASSED] Buffer object for userspace [09:51:21] [PASSED] Kernel buffer object [09:51:21] [PASSED] Shared buffer object [09:51:21] ============== [PASSED] ttm_bo_validate_basic ============== [09:51:21] [PASSED] ttm_bo_validate_invalid_placement [09:51:21] ============= ttm_bo_validate_same_placement ============== [09:51:21] [PASSED] System manager [09:51:21] [PASSED] VRAM manager [09:51:21] ========= [PASSED] ttm_bo_validate_same_placement ========== [09:51:21] [PASSED] ttm_bo_validate_failed_alloc [09:51:21] [PASSED] ttm_bo_validate_pinned [09:51:21] [PASSED] ttm_bo_validate_busy_placement [09:51:21] ================ ttm_bo_validate_multihop ================= [09:51:21] [PASSED] Buffer object for userspace [09:51:21] [PASSED] Kernel buffer object [09:51:21] [PASSED] Shared buffer object [09:51:21] ============ [PASSED] ttm_bo_validate_multihop ============= [09:51:21] ========== ttm_bo_validate_no_placement_signaled ========== [09:51:21] [PASSED] Buffer object in system domain, no page vector [09:51:21] [PASSED] Buffer object in system domain with an existing page vector [09:51:21] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [09:51:21] ======== ttm_bo_validate_no_placement_not_signaled ======== [09:51:21] [PASSED] Buffer object for userspace [09:51:21] [PASSED] Kernel buffer object [09:51:21] [PASSED] Shared buffer object [09:51:21] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [09:51:21] [PASSED] ttm_bo_validate_move_fence_signaled [09:51:21] ========= ttm_bo_validate_move_fence_not_signaled ========= [09:51:21] [PASSED] Waits for GPU [09:51:21] [PASSED] Tries to lock straight away [09:51:21] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [09:51:21] [PASSED] ttm_bo_validate_swapout [09:51:21] [PASSED] ttm_bo_validate_happy_evict [09:51:21] [PASSED] ttm_bo_validate_all_pinned_evict [09:51:21] [PASSED] ttm_bo_validate_allowed_only_evict [09:51:21] [PASSED] ttm_bo_validate_deleted_evict [09:51:21] [PASSED] ttm_bo_validate_busy_domain_evict [09:51:21] [PASSED] ttm_bo_validate_evict_gutting [09:51:21] [PASSED] ttm_bo_validate_recrusive_evict [09:51:21] ================= [PASSED] ttm_bo_validate ================= [09:51:21] ============================================================ [09:51:21] Testing complete. Ran 106 tests: passed: 106 [09:51:21] Elapsed time: 12.087s total, 1.832s configuring, 10.040s building, 0.182s running + for kcfg in "${kunitconfigs[@]}" + [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]] + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig [09:51:22] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=um O=.kunit olddefconfig [09:51:23] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [09:51:32] Starting KUnit Kernel (1/1)... [09:51:32] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [09:51:32] ============= refcount_interrupt (4 subtests) ============== [09:51:32] [PASSED] test_single_irq_change [09:51:32] [PASSED] test_nested_irq_change [09:51:32] [PASSED] test_multiple_irq_change [09:51:32] [PASSED] test_irq_save [09:51:32] =============== [PASSED] refcount_interrupt ================ [09:51:32] =============== dma-buf-fence (12 subtests) ================ [09:51:32] [PASSED] test_sanitycheck [09:51:32] [PASSED] test_signaling [09:51:32] [PASSED] test_add_callback [09:51:32] [PASSED] test_late_add_callback [09:51:32] [PASSED] test_rm_callback [09:51:32] [PASSED] test_late_rm_callback [09:51:32] [PASSED] test_status [09:51:32] [PASSED] test_error [09:51:32] [PASSED] test_wait [09:51:32] [PASSED] test_wait_timeout [09:51:32] [PASSED] test_stub [09:51:32] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs) [09:51:32] ================== [PASSED] dma-buf-fence ================== [09:51:32] ============ dma-buf-fence-chain (11 subtests) ============= [09:51:32] [PASSED] test_sanitycheck [09:51:32] [PASSED] test_find_seqno [09:51:32] [PASSED] test_find_signaled [09:51:32] [PASSED] test_find_out_of_order [09:51:37] [PASSED] test_find_gap [09:51:37] [PASSED] test_find_race [09:51:37] [PASSED] test_signal_forward [09:51:37] [PASSED] test_signal_backward [09:51:37] [PASSED] test_wait_forward [09:51:37] [PASSED] test_wait_backward [09:51:37] [PASSED] test_wait_random [09:51:37] =============== [PASSED] dma-buf-fence-chain =============== [09:51:37] ============ dma-buf-fence-unwrap (10 subtests) ============ [09:51:37] [PASSED] test_sanitycheck [09:51:37] [PASSED] test_unwrap_array [09:51:37] [PASSED] test_unwrap_chain [09:51:37] [PASSED] test_unwrap_chain_array [09:51:37] [PASSED] test_unwrap_merge [09:51:37] [PASSED] test_unwrap_merge_duplicate [09:51:37] [PASSED] test_unwrap_merge_seqno [09:51:37] [PASSED] test_unwrap_merge_order [09:51:37] [PASSED] test_unwrap_merge_complex [09:51:37] [PASSED] test_unwrap_merge_complex_seqno [09:51:37] ============== [PASSED] dma-buf-fence-unwrap =============== [09:51:37] ================ dma-buf-resv (5 subtests) ================= [09:51:37] [PASSED] test_sanitycheck [09:51:37] ===================== test_signaling ====================== [09:51:37] [PASSED] kernel [09:51:37] [PASSED] write [09:51:37] [PASSED] read [09:51:37] [PASSED] bookkeep [09:51:37] ================= [PASSED] test_signaling ================== [09:51:37] ====================== test_for_each ====================== [09:51:37] [PASSED] kernel [09:51:37] [PASSED] write [09:51:37] [PASSED] read [09:51:37] [PASSED] bookkeep [09:51:37] ================== [PASSED] test_for_each ================== [09:51:37] ================= test_for_each_unlocked ================== [09:51:37] [PASSED] kernel [09:51:37] [PASSED] write [09:51:37] [PASSED] read [09:51:37] [PASSED] bookkeep [09:51:37] ============= [PASSED] test_for_each_unlocked ============== [09:51:37] ===================== test_get_fences ===================== [09:51:37] [PASSED] kernel [09:51:37] [PASSED] write [09:51:37] [PASSED] read [09:51:37] [PASSED] bookkeep [09:51:37] ================= [PASSED] test_get_fences ================= [09:51:37] ================== [PASSED] dma-buf-resv =================== [09:51:37] ============================================================ [09:51:37] Testing complete. Ran 54 tests: passed: 53, skipped: 1 [09:51:37] Elapsed time: 15.828s total, 1.806s configuring, 8.751s building, 5.260s running + cleanup ++ stat -c %u:%g /kernel + chown -R 1003:1003 /kernel ^ permalink raw reply [flat|nested] 20+ messages in thread
* ✗ Xe.CI.BAT: failure for KUnit test for VF provisioning error handling (rev10) 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (11 preceding siblings ...) 2026-09-21 9:51 ` ✓ CI.KUnit: success " Patchwork @ 2026-09-21 11:32 ` Patchwork 2026-09-21 14:10 ` ✗ Xe.CI.FULL: " Patchwork 13 siblings, 0 replies; 20+ messages in thread From: Patchwork @ 2026-09-21 11:32 UTC (permalink / raw) To: Satyanarayana K V P; +Cc: intel-xe [-- Attachment #1: Type: text/plain, Size: 4272 bytes --] == Series Details == Series: KUnit test for VF provisioning error handling (rev10) URL : https://patchwork.freedesktop.org/series/170198/ State : failure == Summary == CI Bug Log - changes from xe-5791-7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf_BAT -> xe-pw-170198v10_BAT ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with xe-pw-170198v10_BAT absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in xe-pw-170198v10_BAT, please notify your bug team (I915-ci-infra@lists.freedesktop.org) to allow them to document this new failure mode, which will reduce false positives in CI. Participating hosts (15 -> 14) ------------------------------ Missing (1): bat-ptl-vm Possible new issues ------------------- Here are the unknown changes that may have been introduced in xe-pw-170198v10_BAT: ### IGT changes ### #### Possible regressions #### * igt@xe_exec_system_allocator@many-execqueues-free: - bat-bmg-vm: [PASS][1] -> [DMESG-WARN][2] [1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5791-7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf/bat-bmg-vm/igt@xe_exec_system_allocator@many-execqueues-free.html [2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-170198v10/bat-bmg-vm/igt@xe_exec_system_allocator@many-execqueues-free.html #### Warnings #### * igt@xe_exec_fault_mode@twice-basic: - bat-bmg-2: [DMESG-WARN][3] ([Intel XE#9331]) -> [DMESG-WARN][4] +1 other test dmesg-warn [3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5791-7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf/bat-bmg-2/igt@xe_exec_fault_mode@twice-basic.html [4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-170198v10/bat-bmg-2/igt@xe_exec_fault_mode@twice-basic.html * igt@xe_exec_system_allocator@threads-shared-vm-many-malloc: - bat-bmg-1: [DMESG-WARN][5] ([Intel XE#9331]) -> [DMESG-WARN][6] +2 other tests dmesg-warn [5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5791-7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf/bat-bmg-1/igt@xe_exec_system_allocator@threads-shared-vm-many-malloc.html [6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-170198v10/bat-bmg-1/igt@xe_exec_system_allocator@threads-shared-vm-many-malloc.html - bat-bmg-vm: [DMESG-WARN][7] ([Intel XE#9331]) -> [DMESG-WARN][8] [7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5791-7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf/bat-bmg-vm/igt@xe_exec_system_allocator@threads-shared-vm-many-malloc.html [8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-170198v10/bat-bmg-vm/igt@xe_exec_system_allocator@threads-shared-vm-many-malloc.html * igt@xe_multigpu_svm@mgpu-pagefault-basic: - bat-bmg-3: [DMESG-WARN][9] ([Intel XE#9331]) -> [DMESG-WARN][10] [9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5791-7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf/bat-bmg-3/igt@xe_multigpu_svm@mgpu-pagefault-basic.html [10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-170198v10/bat-bmg-3/igt@xe_multigpu_svm@mgpu-pagefault-basic.html Known issues ------------ Here are the changes found in xe-pw-170198v10_BAT that come from known issues: ### IGT changes ### #### Possible fixes #### * igt@xe_exec_system_allocator@many-execqueues-malloc: - bat-bmg-vm: [DMESG-WARN][11] ([Intel XE#9331]) -> [PASS][12] +1 other test pass [11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5791-7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf/bat-bmg-vm/igt@xe_exec_system_allocator@many-execqueues-malloc.html [12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-170198v10/bat-bmg-vm/igt@xe_exec_system_allocator@many-execqueues-malloc.html [Intel XE#9331]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9331 Build changes ------------- * Linux: xe-5791-7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf -> xe-pw-170198v10 IGT_9103: f307fd753abbe6c03d0a6e1c769fc6020ebd5d86 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git xe-5791-7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf: 7b7c73e7898b9ae6d5d2d849fe66c44db9b74caf xe-pw-170198v10: 170198v10 == Logs == For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-170198v10/index.html [-- Attachment #2: Type: text/html, Size: 5259 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* ✗ Xe.CI.FULL: failure for KUnit test for VF provisioning error handling (rev10) 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P ` (12 preceding siblings ...) 2026-09-21 11:32 ` ✗ Xe.CI.BAT: failure " Patchwork @ 2026-09-21 14:10 ` Patchwork 13 siblings, 0 replies; 20+ messages in thread From: Patchwork @ 2026-09-21 14:10 UTC (permalink / raw) To: Satyanarayana K V P; +Cc: intel-xe [-- Attachment #1: Type: text/plain, Size: 352 bytes --] == Series Details == Series: KUnit test for VF provisioning error handling (rev10) URL : https://patchwork.freedesktop.org/series/170198/ State : failure == Summary == ERROR: The runconfig 'xe-pw-170198v10_FULL' does not exist in the database == Logs == For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-170198v10/index.html [-- Attachment #2: Type: text/html, Size: 918 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2026-09-21 16:47 UTC | newest] Thread overview: 20+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-09-21 9:20 [PATCH v10 00/10] KUnit test for VF provisioning error handling Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 01/10] drm/xe/guc: Allow to replace xe_guc_mmio_send_recv() with KUNIT stub Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 02/10] drm/xe/vf: Split submission config query helpers Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 03/10] drm/xe/vf: Add bounds checking for queried context and doorbell counts Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 04/10] drm/xe: Introduce helpers for VRAM alignment Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 05/10] drm/xe/ggtt: Avoid integer overflow when validating VF GGTT range Satyanarayana K V P 2026-09-21 14:03 ` Michal Wajdeczko 2026-09-21 9:21 ` [PATCH v10 06/10] drm/xe/sriov: Add helper for VF GGTT provisioning alignment Satyanarayana K V P 2026-09-21 13:26 ` Michal Wajdeczko 2026-09-21 9:21 ` [PATCH v10 07/10] drm/xe/vf: Add bounds checking for queried GGTT base and size Satyanarayana K V P 2026-09-21 14:36 ` Michal Wajdeczko 2026-09-21 9:21 ` [PATCH v10 08/10] drm/xe/vf: Add alignment check for queried VRAM size Satyanarayana K V P 2026-09-21 9:21 ` [PATCH v10 09/10] drm/xe/ggtt: Add KUnit stub for xe_ggtt_shift_nodes() Satyanarayana K V P 2026-09-21 14:45 ` Michal Wajdeczko 2026-09-21 9:21 ` [PATCH v10 10/10] drm/xe/tests: Add KUnit tests for VF provisioning error handling Satyanarayana K V P 2026-09-21 16:47 ` Michal Wajdeczko 2026-09-21 9:49 ` ✗ CI.checkpatch: warning for KUnit test for VF provisioning error handling (rev10) Patchwork 2026-09-21 9:51 ` ✓ CI.KUnit: success " Patchwork 2026-09-21 11:32 ` ✗ Xe.CI.BAT: failure " Patchwork 2026-09-21 14:10 ` ✗ Xe.CI.FULL: " Patchwork
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox