VF migration redesign
Subsystems (4)
Matthew Brost
maintainercover VF migration redesign
Rather than modifying buffers in place using GGTT addresses during VF migration, this approach relies on the submission backend's stop/start mechanism to issue fixups. The patch titled "Document GuC Submission Backend" provides a detailed explanation of the design.
Testing was performed using an out-of-tree PF/VFIO driver with manual triggering of VF migration while IGT test cases are running.
IGT test cases:
- A new series [1] that exercises active contexts and job resubmission.
- xe_exec_threads basic sections, which test context registration loss, schedule enable loss, and job resubmission.
- xe_exec_threads balancer sections, which follow the same flows as the basic sections but include a work queue (GGTT address shift).
- xe_exec_threads compute mode user pointer invalidation sections, which exercise the same flow as the basic sections, plus replaying suspend/resume flows.
All code paths in "Replay GuC submission state on pause/unpause" that replay state have been manually verified via debug messages "Add debug prints for GuC replaying state during VF recovery".
Matt
[1] https://patchwork.freedesktop.org/series/154616/
Matthew Brost (27):
Revert "drm/xe/vf: Rebase exec queue parallel commands during
migration recovery"
Revert "drm/xe/vf: Post migration, repopulate ring area for pending
request"
Revert "drm/xe/vf: Fixup CTB send buffer messages after migration" drm/xe: Save off position in ring in which a job was programmed drm/xe/guc: Track pending-enable source in submission state drm/xe: Track LR jobs in DRM scheduler pending list drm/xe: Don't change LRC ring head on job resubmission drm/xe/guc: Document GuC submission backend
drm/xe/vf: Add xe_gt_sriov_vf_recovery_inprogress helper drm/xe/vf: Make VF recovery run on per-GT worker drm/xe/vf: Abort H2G sends during VF post-migration recovery drm/xe/vf: Remove memory allocations from VF post migration recovery drm/xe/vf: Close multi-GT GGTT shift race
drm/xe/vf: Teardown VF post migration worker on driver unload drm/xe/vf: Don't allow GT reset to be queued during VF post migration
recovery
drm/xe/vf: Wakeup in GuC backend on VF post migration recovery drm/xe/vf: Extra debug on GGTT shift
drm/xe/vf: Use GUC_HXG_TYPE_EVENT for GuC context register drm/xe/vf: Stop and flush CTs in VF post migration recovery drm/xe/vf: Reset TLB invalidations during VF post migration recovery drm/xe/vf: Kickstart after resfix in VF post migration recovery drm/xe/vf: Start CTs before resfix VF post migration recovery drm/xe/vf: Abort VF post migration recovery on failure drm/xe/vf: Replay GuC submission state on pause / unpause drm/xe: Move queue init before LRC creation
drm/xe/vf: Add debug prints for GuC replaying state during VF recovery drm/xe/vf: Workaround for race condition in GuC firmware during VF
pause
Tomasz Lis (1):
drm/xe/vf: Lock querying GGTT config during driver init
Documentation/gpu/xe/index.rst | 1 + drivers/gpu/drm/xe/abi/guc_actions_abi.h | 8 - drivers/gpu/drm/xe/xe_exec.c | 12 +- drivers/gpu/drm/xe/xe_exec_queue.c | 81 +- drivers/gpu/drm/xe/xe_exec_queue.h | 5 +- drivers/gpu/drm/xe/xe_execlist.c | 2 +- drivers/gpu/drm/xe/xe_gpu_scheduler.c | 14 + drivers/gpu/drm/xe/xe_gpu_scheduler.h | 2 + drivers/gpu/drm/xe/xe_gt.c | 9 - drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 362 +++++++-- drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 8 +- drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h | 31 +- drivers/gpu/drm/xe/xe_guc.c | 2 +- drivers/gpu/drm/xe/xe_guc_ct.c | 282 ++----- drivers/gpu/drm/xe/xe_guc_ct.h | 4 +- drivers/gpu/drm/xe/xe_guc_exec_queue_types.h | 15 + drivers/gpu/drm/xe/xe_guc_submit.c | 790 +++++++++++++++---- drivers/gpu/drm/xe/xe_guc_submit.h | 7 +- drivers/gpu/drm/xe/xe_lrc.h | 10 + drivers/gpu/drm/xe/xe_map.h | 18 - drivers/gpu/drm/xe/xe_memirq.c | 48 +- drivers/gpu/drm/xe/xe_memirq.h | 3 + drivers/gpu/drm/xe/xe_ring_ops.c | 23 +- drivers/gpu/drm/xe/xe_sched_job_types.h | 9 + drivers/gpu/drm/xe/xe_sriov.c | 8 +- drivers/gpu/drm/xe/xe_sriov_vf.c | 243 +----- drivers/gpu/drm/xe/xe_sriov_vf.h | 3 +- drivers/gpu/drm/xe/xe_sriov_vf_types.h | 4 - drivers/gpu/drm/xe/xe_tile_sriov_vf.c | 6 +- drivers/gpu/drm/xe/xe_tile_sriov_vf.h | 1 - 30 files changed, 1232 insertions(+), 779 deletions(-)
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 1/28 drm/xe/vf: Lock querying GGTT config during driver init
From: Tomasz Lis <[email protected]>
Protect access to GGTT config as this is non-static information.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 96 ++++++++++++++++++----- drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h | 3 + drivers/gpu/drm/xe/xe_sriov_vf.c | 6 ++ 3 files changed, 84 insertions(+), 21 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +75 -21
@@ -440,18 +440,21 @@ static int vf_get_ggtt_info(struct xe_gt *gt)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); +down_write (&config->lock); + err =guc_action_query_single_klv64 (guc,GUC_KLV_VF_CFG_GGTT_START_KEY , &start);if (unlikely (err)) -return err; + goto out; err =guc_action_query_single_klv64 (guc,GUC_KLV_VF_CFG_GGTT_SIZE_KEY , &size);if (unlikely (err)) -return err; + goto out;if (config->ggtt_size && config->ggtt_size != size) {xe_gt_sriov_err (gt,"Unexpected GGTT reassignment: %lluK != %lluK\n" , size /SZ_1K , config->ggtt_size /SZ_1K ); -return -EREMCHG ; + err = -EREMCHG ; + goto out; } xe_gt_sriov_dbg_verbose(gt, "GGTT %#llx-%#llx = %lluK\n",
@@ -460,8 +463,11 @@ static int vf_get_ggtt_info(struct xe_gt *gt) config->ggtt_shift = start - (s64 )config->ggtt_base; config->ggtt_base = start; config->ggtt_size = size; + err = config->ggtt_size ?0 : -ENODATA ; -return config->ggtt_size ?0 : -ENODATA ; +out: +up_write (&config->lock); +return err; }static int vf_get_lmem_info (struct xe_gt *gt)
@@ -474,22 +480,28 @@ static int vf_get_lmem_info(struct xe_gt *gt)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); +down_write (&config->lock); + err =guc_action_query_single_klv64 (guc,GUC_KLV_VF_CFG_LMEM_SIZE_KEY , &size);if (unlikely (err)) -return err; + goto out;if (config->lmem_size && config->lmem_size != size) {xe_gt_sriov_err (gt,"Unexpected LMEM reassignment: %lluM != %lluM\n" , size /SZ_1M , config->lmem_size /SZ_1M ); -return -EREMCHG ; + err = -EREMCHG ; + goto out; }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); config->lmem_size = size; + err = config->lmem_size ?0 : -ENODATA ; -return config->lmem_size ?0 : -ENODATA ; +out: +up_write (&config->lock); +return err; }static int vf_get_submission_cfg (struct xe_gt *gt)
@@ -501,23 +513,27 @@ static int vf_get_submission_cfg(struct xe_gt *gt)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); +down_write (&config->lock); + err =guc_action_query_single_klv32 (guc,GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY , &num_ctxs);if (unlikely (err)) -return err; + goto out; err =guc_action_query_single_klv32 (guc,GUC_KLV_VF_CFG_NUM_DOORBELLS_KEY , &num_dbs);if (unlikely (err)) -return err; + goto out;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 ; + err = -EREMCHG ; + goto out; }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 ; + err = -EREMCHG ; + goto out; }xe_gt_sriov_dbg_verbose (gt,"CTXs %u DBs %u\n" , num_ctxs, num_dbs);
@@ -525,7 +541,11 @@ static int vf_get_submission_cfg(struct xe_gt *gt) config->num_ctxs = num_ctxs; config->num_dbs = num_dbs; -return config->num_ctxs ?0 : -ENODATA ; + err = config->num_ctxs ?0 : -ENODATA ; + +out: +up_write (&config->lock); +return err; }static void vf_cache_gmdid (struct xe_gt *gt)
@@ -579,11 +599,18 @@ int xe_gt_sriov_vf_query_config(struct xe_gt *gt)*/ u16 xe_gt_sriov_vf_guc_ids (struct xe_gt *gt) { +struct xe_gt_sriov_vf_selfconfig *config = >->sriov.vf.self_config; +u16 val; +xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt)));xe_gt_assert (gt, gt->sriov.vf.guc_version.major); -xe_gt_assert (gt, gt->sriov.vf.self_config.num_ctxs); -return gt->sriov.vf.self_config.num_ctxs; +down_read (&config->lock); +xe_gt_assert (gt, config->num_ctxs); + val = config->num_ctxs; +up_read (&config->lock); + +return val; }/**
@@ -596,11 +623,18 @@ u16 xe_gt_sriov_vf_guc_ids(struct xe_gt *gt)*/ u64 xe_gt_sriov_vf_lmem (struct xe_gt *gt) { +struct xe_gt_sriov_vf_selfconfig *config = >->sriov.vf.self_config; +u64 val; +xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt)));xe_gt_assert (gt, gt->sriov.vf.guc_version.major); -xe_gt_assert (gt, gt->sriov.vf.self_config.lmem_size); -return gt->sriov.vf.self_config.lmem_size; +down_read (&config->lock); +xe_gt_assert (gt, config->lmem_size); + val = config->lmem_size; +up_read (&config->lock); + +return val; }/**
@@ -613,11 +647,17 @@ u64 xe_gt_sriov_vf_lmem(struct xe_gt *gt)*/ u64 xe_gt_sriov_vf_ggtt (struct xe_gt *gt) { +struct xe_gt_sriov_vf_selfconfig *config = >->sriov.vf.self_config; +u64 val; +xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt)));xe_gt_assert (gt, gt->sriov.vf.guc_version.major); -xe_gt_assert (gt, gt->sriov.vf.self_config.ggtt_size); -return gt->sriov.vf.self_config.ggtt_size; +down_read (&config->lock); + val = config->ggtt_size; +up_read (&config->lock); + +return val; }/**
@@ -630,11 +670,18 @@ u64 xe_gt_sriov_vf_ggtt(struct xe_gt *gt)*/ u64 xe_gt_sriov_vf_ggtt_base (struct xe_gt *gt) { +struct xe_gt_sriov_vf_selfconfig *config = >->sriov.vf.self_config; +u64 val; +xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt)));xe_gt_assert (gt, gt->sriov.vf.guc_version.major); -xe_gt_assert (gt, gt->sriov.vf.self_config.ggtt_size); -return gt->sriov.vf.self_config.ggtt_base; +down_read (&config->lock); +xe_gt_assert (gt, config->ggtt_size); + val = config->ggtt_base; +up_read (&config->lock); + +return val; }/**
@@ -648,11 +695,16 @@ u64 xe_gt_sriov_vf_ggtt_base(struct xe_gt *gt)s64 xe_gt_sriov_vf_ggtt_shift (struct xe_gt *gt) {struct xe_gt_sriov_vf_selfconfig *config = >->sriov.vf.self_config; +s64 val;xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt)));xe_gt_assert (gt,xe_gt_is_main_type (gt)); -return config->ggtt_shift; +down_read (&config->lock); + val = config->ggtt_shift; +up_read (&config->lock); + +return val; }static int relay_action_handshake (struct xe_gt *gt,u32 *major,u32 *minor)
@@ -1044,6 +1096,7 @@ void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); +down_read (&config->lock);drm_printf (p,"GGTT range:\t%#llx-%#llx\n" , config->ggtt_base, config->ggtt_base + config->ggtt_size -1 );
@@ -1060,6 +1113,7 @@ void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p)drm_printf (p,"GuC contexts:\t%u\n" , config->num_ctxs);drm_printf (p,"GuC doorbells:\t%u\n" , config->num_dbs); +up_read (&config->lock); }/**
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h +3 -0
@@ -6,6 +6,7 @@#ifndef _XE_GT_SRIOV_VF_TYPES_H_#define _XE_GT_SRIOV_VF_TYPES_H_ +#include <linux/rwsem.h> #include <linux/types.h> #include "xe_uc_fw_types.h"
@@ -25,6 +26,8 @@ struct xe_gt_sriov_vf_selfconfig {u16 num_ctxs;/** @num_dbs: assigned number of GuC doorbells IDs. */ u16 num_dbs; +/** @lock: lock for protecting access to all selfconfig fields. */ +struct rw_semaphore lock; };/**
drivers/gpu/drm/xe/xe_sriov_vf.c +6 -0
@@ -197,6 +197,12 @@ static void vf_migration_init_early(struct xe_device *xe)*/ void xe_sriov_vf_init_early (struct xe_device *xe) { +struct xe_gt *gt; +unsigned int id; + +for_each_gt (gt, xe, id) +init_rwsem (>->sriov.vf.self_config.lock); +vf_migration_init_early (xe); }
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 2/28 Revert "drm/xe/vf: Rebase exec queue parallel commands during migration recovery"
In reply to Matthew BrostThis reverts commit ba180a362128cb71d16c3f0ce6645448011d2607.
--- drivers/gpu/drm/xe/abi/guc_actions_abi.h | 8 ---- drivers/gpu/drm/xe/xe_guc_submit.c | 54 ------------------------ 2 files changed, 62 deletions(-)
drivers/gpu/drm/xe/abi/guc_actions_abi.h +0 -8
@@ -196,14 +196,6 @@ enum xe_guc_register_context_multi_lrc_param_offsets { XE_GUC_REGISTER_CONTEXT_MULTI_LRC_MSG_MIN_LEN = 11, }; -enum xe_guc_context_wq_item_offsets { -XE_GUC_CONTEXT_WQ_HEADER_DATA_0_TYPE_LEN =0 , -XE_GUC_CONTEXT_WQ_EL_INFO_DATA_1_CTX_DESC_LOW , -XE_GUC_CONTEXT_WQ_EL_INFO_DATA_2_GUCCTX_RINGTAIL_FREEZEPOCS , -XE_GUC_CONTEXT_WQ_EL_INFO_DATA_3_WI_FENCE_ID , -XE_GUC_CONTEXT_WQ_EL_CHILD_LIST_DATA_4_RINGTAIL , -}; -enum xe_guc_report_status {XE_GUC_REPORT_STATUS_UNKNOWN =0x0 ,XE_GUC_REPORT_STATUS_ACKED =0x1 ,
drivers/gpu/drm/xe/xe_guc_submit.c +0 -54
78 lines not on this page · raw message
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 3/28 Revert "drm/xe/vf: Post migration, repopulate ring area for pending request"
In reply to Matthew BrostThis reverts commit a0dda25d24e636df5c30a9370464b7cebc709faf.
--- drivers/gpu/drm/xe/xe_exec_queue.c | 24 ------------------------ drivers/gpu/drm/xe/xe_exec_queue.h | 3 +-- drivers/gpu/drm/xe/xe_guc_submit.c | 24 ------------------------ drivers/gpu/drm/xe/xe_guc_submit.h | 2 -- drivers/gpu/drm/xe/xe_sriov_vf.c | 1 - 5 files changed, 1 insertion(+), 53 deletions(-)
drivers/gpu/drm/xe/xe_exec_queue.c +0 -24
@@ -1115,27 +1115,3 @@ int xe_exec_queue_contexts_hwsp_rebase(struct xe_exec_queue *q, void *scratch)return err; } - -/** -* xe_exec_queue_jobs_ring_restore - Re-emit ring commands of requests pending on given queue. -* @q: the &xe_exec_queue struct instance -*/ -void xe_exec_queue_jobs_ring_restore (struct xe_exec_queue *q) -{ -struct xe_gpu_scheduler *sched = &q->guc->sched; -struct xe_sched_job *job; - -/* -* This routine is used within VF migration recovery. This means -* using the lock here introduces a restriction: we cannot wait -* for any GFX HW response while the lock is taken. -*/ -spin_lock (&sched->base.job_list_lock); -list_for_each_entry (job, &sched->base.pending_list, drm.list) { -if (xe_sched_job_is_error (job)) -continue ; - - q->ring_ops->emit_job (job); - } -spin_unlock (&sched->base.job_list_lock); -}
drivers/gpu/drm/xe/xe_exec_queue.h +1 -2
@@ -92,7 +92,6 @@ void xe_exec_queue_update_run_ticks(struct xe_exec_queue *q);int xe_exec_queue_contexts_hwsp_rebase (struct xe_exec_queue *q,void *scratch); -void xe_exec_queue_jobs_ring_restore (struct xe_exec_queue *q); -struct xe_lrc *xe_exec_queue_lrc (struct xe_exec_queue *q); +#endif
drivers/gpu/drm/xe/xe_guc_submit.c +0 -24
@@ -845,30 +845,6 @@ guc_exec_queue_run_job(struct drm_sched_job *drm_job)return fence; } -/** -* xe_guc_jobs_ring_rebase - Re-emit ring commands of requests pending -* on all queues under a guc. -* @guc: the &xe_guc struct instance -*/ -void xe_guc_jobs_ring_rebase (struct xe_guc *guc) -{ -struct xe_exec_queue *q; -unsigned long index; - -/* -* This routine is used within VF migration recovery. This means -* using the lock here introduces a restriction: we cannot wait -* for any GFX HW response while the lock is taken. -*/ -mutex_lock (&guc->submission_state.lock); -xa_for_each (&guc->submission_state.exec_queue_lookup, index, q) { -if (exec_queue_killed_or_banned_or_wedged (q)) -continue ; -xe_exec_queue_jobs_ring_restore (q); - } -mutex_unlock (&guc->submission_state.lock); -} -static void guc_exec_queue_free_job (struct drm_sched_job *drm_job) {struct xe_sched_job *job =to_xe_sched_job (drm_job);
drivers/gpu/drm/xe/xe_guc_submit.h +0 -2
@@ -36,8 +36,6 @@ int xe_guc_exec_queue_memory_cat_error_handler(struct xe_guc *guc, u32 *msg,int xe_guc_exec_queue_reset_failure_handler (struct xe_guc *guc,u32 *msg,u32 len);int xe_guc_error_capture_handler (struct xe_guc *guc,u32 *msg,u32 len); -void xe_guc_jobs_ring_rebase (struct xe_guc *guc); -struct xe_guc_submit_exec_queue_snapshot *xe_guc_exec_queue_snapshot_capture (struct xe_exec_queue *q);void
drivers/gpu/drm/xe/xe_sriov_vf.c +0 -1
@@ -340,7 +340,6 @@ static int gt_vf_post_migration_fixups(struct xe_gt *gt) err =xe_guc_contexts_hwsp_rebase (>->uc.guc, buf);if (err) goto out; -xe_guc_jobs_ring_rebase (>->uc.guc);xe_guc_ct_fixup_messages_with_ggtt (>->uc.guc.ct, shift); }
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 4/28 Revert "drm/xe/vf: Fixup CTB send buffer messages after migration"
In reply to Matthew BrostThis reverts commit cef88d1265cac7d415606af73ba58926fd3cd8b7.
--- drivers/gpu/drm/xe/xe_guc_ct.c | 183 ------------------------------- drivers/gpu/drm/xe/xe_guc_ct.h | 2 - drivers/gpu/drm/xe/xe_map.h | 18 --- drivers/gpu/drm/xe/xe_sriov_vf.c | 2 - 4 files changed, 205 deletions(-)
drivers/gpu/drm/xe/xe_guc_ct.c +0 -183
@@ -25,7 +25,6 @@#include "xe_gt_printk.h" #include "xe_gt_sriov_pf_control.h" #include "xe_gt_sriov_pf_monitor.h" -#include "xe_gt_sriov_printk.h" #include "xe_guc.h" #include "xe_guc_log.h" #include "xe_guc_relay.h"
@@ -93,8 +92,6 @@ struct g2h_fence {bool done; }; -#define make_u64 (hi, lo) ((u64)((u64)(u32)(hi) << 32 | (u32)(lo))) -static void g2h_fence_init (struct g2h_fence *g2h_fence,u32 *response_buffer) {memset (g2h_fence,0 ,sizeof (*g2h_fence));
@@ -1793,186 +1790,6 @@ static void g2h_worker_func(struct work_struct *w)receive_g2h (ct); } -static void xe_fixup_u64_in_cmds (struct xe_device *xe,struct iosys_map *cmds, -u32 size,u32 idx,s64 shift) -{ -u32 hi, lo; -u64 offset; - - lo =xe_map_rd_ring_u32 (xe, cmds, idx, size); - hi =xe_map_rd_ring_u32 (xe, cmds, idx +1 , size); - offset =make_u64 (hi, lo); - offset += shift; - lo =lower_32_bits (offset); - hi =upper_32_bits (offset); -xe_map_wr_ring_u32 (xe, cmds, idx, size, lo); -xe_map_wr_ring_u32 (xe, cmds, idx +1 , size, hi); -} - -/* -* Shift any GGTT addresses within a single message left within CTB from -* before post-migration recovery. -* @ct: pointer to CT struct of the target GuC -* @cmds: iomap buffer containing CT messages -* @head: start of the target message within the buffer -* @len: length of the target message -* @size: size of the commands buffer -* @shift: the address shift to be added to each GGTT reference -* Return: true if the message was fixed or needed no fixups, false on failure -*/ -static bool ct_fixup_ggtt_in_message (struct xe_guc_ct *ct, -struct iosys_map *cmds,u32 head, -u32 len,u32 size,s64 shift) -{ -struct xe_gt *gt =ct_to_gt (ct); -struct xe_device *xe =ct_to_xe (ct); -u32 msg[GUC_HXG_MSG_MIN_LEN ]; -u32 action, i, n; - -xe_gt_assert (gt, len >=GUC_HXG_MSG_MIN_LEN ); - - msg[0 ] =xe_map_rd_ring_u32 (xe, cmds, head, size); - action =FIELD_GET (GUC_HXG_REQUEST_MSG_0_ACTION , msg[0 ]); - -xe_gt_sriov_dbg_verbose (gt,"fixing H2G %#x\n" , action); - -switch (action) { -case XE_GUC_ACTION_REGISTER_CONTEXT : -if (len !=XE_GUC_REGISTER_CONTEXT_MSG_LEN ) - goto err_len; -xe_fixup_u64_in_cmds (xe, cmds, size, head + -XE_GUC_REGISTER_CONTEXT_DATA_5_WQ_DESC_ADDR_LOWER , - shift); -xe_fixup_u64_in_cmds (xe, cmds, size, head + -XE_GUC_REGISTER_CONTEXT_DATA_7_WQ_BUF_BASE_LOWER , - shift); -xe_fixup_u64_in_cmds (xe, cmds, size, head + -XE_GUC_REGISTER_CONTEXT_DATA_10_HW_LRC_ADDR , shift); -break ; -case XE_GUC_ACTION_REGISTER_CONTEXT_MULTI_LRC : -if (len <XE_GUC_REGISTER_CONTEXT_MULTI_LRC_MSG_MIN_LEN ) - goto err_len; - n =xe_map_rd_ring_u32 (xe, cmds, head + -XE_GUC_REGISTER_CONTEXT_MULTI_LRC_DATA_10_NUM_CTXS , size); -if (len !=XE_GUC_REGISTER_CONTEXT_MULTI_LRC_MSG_MIN_LEN +2 * n) - goto err_len; -xe_fixup_u64_in_cmds (xe, cmds, size, head + -XE_GUC_REGISTER_CONTEXT_MULTI_LRC_DATA_5_WQ_DESC_ADDR_LOWER , - shift); -xe_fixup_u64_in_cmds (xe, cmds, size, head + -XE_GUC_REGISTER_CONTEXT_MULTI_LRC_DATA_7_WQ_BUF_BASE_LOWER , - shift); -for (i =0 ; i < n; i++) -xe_fixup_u64_in_cmds (xe, cmds, size, head + -XE_GUC_REGISTER_CONTEXT_MULTI_LRC_DATA_11_HW_LRC_ADDR - +2 * i, shift); -break ; -default : -break ; - } -return true; - -err_len: -xe_gt_err (gt,"Skipped G2G %#x message fixups, unexpected length (%u)\n" , action, len); -return false; -} - -/* -* Apply fixups to the next outgoing CT message within given CTB -* @ct: the &xe_guc_ct struct instance representing the target GuC -* @h2g: the &guc_ctb struct instance of the target buffer -* @shift: shift to be added to all GGTT addresses within the CTB -* @mhead: pointer to an integer storing message start position; the -* position is changed to next message before this function return -* @avail: size of the area available for parsing, that is length -* of all remaining messages stored within the CTB -* Return: size of the area available for parsing after one message -* has been parsed, that is length remaining from the updated mhead -*/ -static int ct_fixup_ggtt_in_buffer (struct xe_guc_ct *ct,struct guc_ctb *h2g, -s64 shift,u32 *mhead,s32 avail) -{ -struct xe_gt *gt =ct_to_gt (ct); -struct xe_device *xe =ct_to_xe (ct); -u32 msg[GUC_HXG_MSG_MIN_LEN ]; -u32 size = h2g->info.size; -u32 head = *mhead; -u32 len; - -xe_gt_assert (gt, avail >= (s32 )GUC_CTB_MSG_MIN_LEN ); - -/* Read header */ - msg[0 ] =xe_map_rd_ring_u32 (xe, &h2g->cmds, head, size); - len =FIELD_GET (GUC_CTB_MSG_0_NUM_DWORDS , msg[0 ]) +GUC_CTB_MSG_MIN_LEN ; - -if (unlikely (len > (u32 )avail)) { -xe_gt_err (gt,"H2G channel broken on read, avail=%d, len=%d, fixups skipped\n" , - avail, len); -return 0 ; - } - - head = (head +GUC_CTB_MSG_MIN_LEN ) % size; -if (!ct_fixup_ggtt_in_message (ct, &h2g->cmds, head,msg_len_to_hxg_len (len), size, shift)) -return 0 ; - *mhead = (head +msg_len_to_hxg_len (len)) % size; - -return avail - len; -} - -/** -* xe_guc_ct_fixup_messages_with_ggtt - Fixup any pending H2G CTB messages -* @ct: pointer to CT struct of the target GuC -* @ggtt_shift: shift to be added to all GGTT addresses within the CTB -* -* Messages in GuC to Host CTB are owned by GuC and any fixups in them -* are made by GuC. But content of the Host to GuC CTB is owned by the -* KMD, so fixups to GGTT references in any pending messages need to be -* applied here. -* This function updates GGTT offsets in payloads of pending H2G CTB -* messages (messages which were not consumed by GuC before the VF got -* paused). -*/ -void xe_guc_ct_fixup_messages_with_ggtt (struct xe_guc_ct *ct,s64 ggtt_shift) -{ -struct guc_ctb *h2g = &ct->ctbs.h2g; -struct xe_guc *guc =ct_to_guc (ct); -struct xe_gt *gt =guc_to_gt (guc); -u32 head, tail, size; -s32 avail; - -if (unlikely (h2g->info.broken)) -return ; - - h2g->info.head =desc_read (ct_to_xe (ct), h2g, head); - head = h2g->info.head; - tail =READ_ONCE (h2g->info.tail); - size = h2g->info.size; - -if (unlikely (head > size)) - goto corrupted; - -if (unlikely (tail >= size)) - goto corrupted; - - avail = tail - head; - -/* beware of buffer wrap case */ -if (unlikely (avail <0 )) - avail += size; -xe_gt_dbg (gt,"available %d (%u:%u:%u)\n" , avail, head, tail, size); -xe_gt_assert (gt, avail >=0 ); - -while (avail >0 ) - avail =ct_fixup_ggtt_in_buffer (ct, h2g, ggtt_shift, &head, avail); - -return ; - -corrupted: -xe_gt_err (gt,"Corrupted H2G descriptor head=%u tail=%u size=%u, fixups not applied\n" , - head, tail, size); - h2g->info.broken = true; -} -static struct xe_guc_ct_snapshot *guc_ct_snapshot_alloc (struct xe_guc_ct *ct,bool atomic,bool want_ctb) {
drivers/gpu/drm/xe/xe_guc_ct.h +0 -2
@@ -24,8 +24,6 @@ void xe_guc_ct_snapshot_print(struct xe_guc_ct_snapshot *snapshot, struct drm_prvoid xe_guc_ct_snapshot_free (struct xe_guc_ct_snapshot *snapshot);void xe_guc_ct_print (struct xe_guc_ct *ct,struct drm_printer *p,bool want_ctb); -void xe_guc_ct_fixup_messages_with_ggtt (struct xe_guc_ct *ct,s64 ggtt_shift); -static inline bool xe_guc_ct_initialized (struct xe_guc_ct *ct) {return ct->state !=XE_GUC_CT_STATE_NOT_INITIALIZED ;
drivers/gpu/drm/xe/xe_map.h +0 -18
@@ -78,24 +78,6 @@ static inline void xe_map_write32(struct xe_device *xe, struct iosys_map *map,iosys_map_wr (map__, offset__, type__, val__); \ }) -#define xe_map_rd_array (xe__, map__, index__, type__) \ - xe_map_rd(xe__, map__, (index__) * sizeof(type__), type__) - -#define xe_map_wr_array (xe__, map__, index__, type__, val__) \ - xe_map_wr(xe__, map__, (index__) * sizeof(type__), type__, val__) - -#define xe_map_rd_array_u32 (xe__, map__, index__) \ - xe_map_rd_array(xe__, map__, index__, u32) - -#define xe_map_wr_array_u32 (xe__, map__, index__, val__) \ - xe_map_wr_array(xe__, map__, index__, u32, val__) - -#define xe_map_rd_ring_u32 (xe__, map__, index__, size__) \ - xe_map_rd_array_u32(xe__, map__, (index__) % (size__)) - -#define xe_map_wr_ring_u32 (xe__, map__, index__, size__, val__) \ - xe_map_wr_array_u32(xe__, map__, (index__) % (size__), val__) -#define xe_map_rd_field (xe__, map__, struct_offset__, struct_type__, field__) ({ \ struct xe_device *__xe = xe__; \ xe_device_assert_mem_access(__xe); \
drivers/gpu/drm/xe/xe_sriov_vf.c +0 -2
@@ -12,7 +12,6 @@#include "xe_gt_sriov_printk.h" #include "xe_gt_sriov_vf.h" #include "xe_guc.h" -#include "xe_guc_ct.h" #include "xe_guc_submit.h" #include "xe_irq.h" #include "xe_lrc.h"
@@ -340,7 +339,6 @@ static int gt_vf_post_migration_fixups(struct xe_gt *gt) err =xe_guc_contexts_hwsp_rebase (>->uc.guc, buf);if (err) goto out; -xe_guc_ct_fixup_messages_with_ggtt (>->uc.guc.ct, shift); } out:
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 5/28 drm/xe: Save off position in ring in which a job was programmed
In reply to Matthew BrostVF post-migration recovery needs to modify the ring with updated GGTT addresses for pending jobs. Save off position in ring in which a job was programmed to facilitate.
v4:
- s/VF resume/VF post-migration recovery (Tomasz)
--- drivers/gpu/drm/xe/xe_ring_ops.c | 23 +++++++++++++++++++---- drivers/gpu/drm/xe/xe_sched_job_types.h | 5 +++++ 2 files changed, 24 insertions(+), 4 deletions(-)
drivers/gpu/drm/xe/xe_ring_ops.c +19 -4
@@ -245,12 +245,14 @@ static int emit_copy_timestamp(struct xe_lrc *lrc, u32 *dw, int i)/* for engines that don't require any special HW handling (no EUs, no aux inval, etc) */ static void __emit_job_gen12_simple (struct xe_sched_job *job,struct xe_lrc *lrc, -u64 batch_addr,u32 seqno) +u64 batch_addr,u32 *head,u32 seqno) {u32 dw[MAX_JOB_SIZE_DW ], i =0 ;u32 ppgtt_flag =get_ppgtt_flag (job);struct xe_gt *gt = job->q->gt; + *head = lrc->ring.tail; + i =emit_copy_timestamp (lrc, dw, i);if (job->ring_ops_flush_tlb) {
@@ -296,7 +298,7 @@ static bool has_aux_ccs(struct xe_device *xe) }static void __emit_job_gen12_video (struct xe_sched_job *job,struct xe_lrc *lrc, -u64 batch_addr,u32 seqno) +u64 batch_addr,u32 *head,u32 seqno) {u32 dw[MAX_JOB_SIZE_DW ], i =0 ;u32 ppgtt_flag =get_ppgtt_flag (job);
@@ -304,6 +306,8 @@ static void __emit_job_gen12_video(struct xe_sched_job *job, struct xe_lrc *lrc,struct xe_device *xe =gt_to_xe (gt);bool decode = job->q->class ==XE_ENGINE_CLASS_VIDEO_DECODE ; + *head = lrc->ring.tail; + i =emit_copy_timestamp (lrc, dw, i); dw[i++] =preparser_disable (true);
@@ -346,7 +350,8 @@ static void __emit_job_gen12_video(struct xe_sched_job *job, struct xe_lrc *lrc,static void __emit_job_gen12_render_compute (struct xe_sched_job *job,struct xe_lrc *lrc, -u64 batch_addr,u32 seqno) +u64 batch_addr,u32 *head, +u32 seqno) {u32 dw[MAX_JOB_SIZE_DW ], i =0 ;u32 ppgtt_flag =get_ppgtt_flag (job);
@@ -355,6 +360,8 @@ static void __emit_job_gen12_render_compute(struct xe_sched_job *job,bool lacks_render = !(gt->info.engine_mask &XE_HW_ENGINE_RCS_MASK );u32 mask_flags =0 ; + *head = lrc->ring.tail; + i =emit_copy_timestamp (lrc, dw, i); dw[i++] =preparser_disable (true);
@@ -396,11 +403,14 @@ static void __emit_job_gen12_render_compute(struct xe_sched_job *job, }static void emit_migration_job_gen12 (struct xe_sched_job *job, -struct xe_lrc *lrc,u32 seqno) +struct xe_lrc *lrc,u32 *head, +u32 seqno) {u32 saddr =xe_lrc_start_seqno_ggtt_addr (lrc);u32 dw[MAX_JOB_SIZE_DW ], i =0 ; + *head = lrc->ring.tail; + i =emit_copy_timestamp (lrc, dw, i); i =emit_store_imm_ggtt (saddr, seqno, dw, i);
@@ -434,6 +444,7 @@ static void emit_job_gen12_gsc(struct xe_sched_job *job)__emit_job_gen12_simple (job, job->q->lrc[0 ], job->ptrs[0 ].batch_addr, + &job->ptrs[0 ].head,xe_sched_job_lrc_seqno (job)); }
@@ -443,6 +454,7 @@ static void emit_job_gen12_copy(struct xe_sched_job *job)if (xe_sched_job_is_migration (job->q)) {emit_migration_job_gen12 (job, job->q->lrc[0 ], + &job->ptrs[0 ].head,xe_sched_job_lrc_seqno (job));return ; }
@@ -450,6 +462,7 @@ static void emit_job_gen12_copy(struct xe_sched_job *job)for (i =0 ; i < job->q->width; ++i)__emit_job_gen12_simple (job, job->q->lrc[i], job->ptrs[i].batch_addr, + &job->ptrs[i].head,xe_sched_job_lrc_seqno (job)); }
@@ -461,6 +474,7 @@ static void emit_job_gen12_video(struct xe_sched_job *job)for (i =0 ; i < job->q->width; ++i)__emit_job_gen12_video (job, job->q->lrc[i], job->ptrs[i].batch_addr, + &job->ptrs[i].head,xe_sched_job_lrc_seqno (job)); }
@@ -471,6 +485,7 @@ static void emit_job_gen12_render_compute(struct xe_sched_job *job)for (i =0 ; i < job->q->width; ++i)__emit_job_gen12_render_compute (job, job->q->lrc[i], job->ptrs[i].batch_addr, + &job->ptrs[i].head,xe_sched_job_lrc_seqno (job)); }
drivers/gpu/drm/xe/xe_sched_job_types.h +5 -0
@@ -24,6 +24,11 @@ struct xe_job_ptrs {struct dma_fence_chain *chain_fence;/** @batch_addr: Batch buffer address. */ u64 batch_addr; +/** +* @head: The tail pointer of the LRC (so head pointer of job) when the +* job was submitted +*/ +u32 head; };/**
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 6/28 drm/xe/guc: Track pending-enable source in submission state
In reply to Matthew BrostAdd explicit tracking in the GuC submission state to record the source of a pending enable (TDR vs. queue resume path vs. submission). Disambiguating the origin lets the GuC submission state machine apply the correct recovery/replay behavior.
This helps VF restore: when the device comes back, the state machine knows whether the pending enable stems from timeout recovery, from a queue resume sequence, or submission and can gate sequencing and fixups accordingly.
v4:
- Clarify commit message (Tomasz)
--- drivers/gpu/drm/xe/xe_guc_submit.c | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+)
drivers/gpu/drm/xe/xe_guc_submit.c +36 -0
@@ -69,6 +69,8 @@ exec_queue_to_guc(struct xe_exec_queue *q)#define EXEC_QUEUE_STATE_BANNED (1 << 9)#define EXEC_QUEUE_STATE_CHECK_TIMEOUT (1 << 10)#define EXEC_QUEUE_STATE_EXTRA_REF (1 << 11) +#define EXEC_QUEUE_STATE_PENDING_RESUME (1 << 12) +#define EXEC_QUEUE_STATE_PENDING_TDR_EXIT (1 << 13)static bool exec_queue_registered (struct xe_exec_queue *q) {
@@ -220,6 +222,36 @@ static void set_exec_queue_extra_ref(struct xe_exec_queue *q)atomic_or (EXEC_QUEUE_STATE_EXTRA_REF , &q->guc->state); } +static bool __maybe_unused exec_queue_pending_resume (struct xe_exec_queue *q) +{ +return atomic_read (&q->guc->state) &EXEC_QUEUE_STATE_PENDING_RESUME ; +} + +static void set_exec_queue_pending_resume (struct xe_exec_queue *q) +{ +atomic_or (EXEC_QUEUE_STATE_PENDING_RESUME , &q->guc->state); +} + +static void clear_exec_queue_pending_resume (struct xe_exec_queue *q) +{ +atomic_and (~EXEC_QUEUE_STATE_PENDING_RESUME , &q->guc->state); +} + +static bool __maybe_unused exec_queue_pending_tdr_exit (struct xe_exec_queue *q) +{ +return atomic_read (&q->guc->state) &EXEC_QUEUE_STATE_PENDING_TDR_EXIT ; +} + +static void set_exec_queue_pending_tdr_exit (struct xe_exec_queue *q) +{ +atomic_or (EXEC_QUEUE_STATE_PENDING_TDR_EXIT , &q->guc->state); +} + +static void clear_exec_queue_pending_tdr_exit (struct xe_exec_queue *q) +{ +atomic_and (~EXEC_QUEUE_STATE_PENDING_TDR_EXIT , &q->guc->state); +} +static bool exec_queue_killed_or_banned_or_wedged (struct xe_exec_queue *q) { return (atomic_read(&q->guc->state) &
@@ -1334,6 +1366,7 @@ guc_exec_queue_timedout_job(struct drm_sched_job *drm_job)return DRM_GPU_SCHED_STAT_RESET ; sched_enable: +set_exec_queue_pending_tdr_exit (q);enable_scheduling (q); rearm:/*
@@ -1484,6 +1517,7 @@ static void __guc_exec_queue_process_msg_resume(struct xe_sched_msg *msg)clear_exec_queue_suspended (q);if (!exec_queue_enabled (q)) { q->guc->resume_time =RESUME_PENDING ; +set_exec_queue_pending_resume (q);enable_scheduling (q); } }else {
@@ -2055,6 +2089,8 @@ static void handle_sched_done(struct xe_guc *guc, struct xe_exec_queue *q,xe_gt_assert (guc_to_gt (guc),exec_queue_pending_enable (q)); q->guc->resume_time =ktime_get (); +clear_exec_queue_pending_resume (q); +clear_exec_queue_pending_tdr_exit (q);clear_exec_queue_pending_enable (q);smp_wmb ();wake_up_all (&guc->ct.wq);
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 7/28 drm/xe: Track LR jobs in DRM scheduler pending list
In reply to Matthew BrostVF migration requires jobs to remain pending so they can be replayed after the VF comes back. Previously, LR job fences were intentionally signaled immediately after submission to avoid the risk of exporting them, as these fences do not naturally signal in a timely manner and could break dma-fence contracts. A side effect of this approach was that LR jobs were never added to the DRM scheduler’s pending list, preventing them from being tracked for later resubmission.
We now avoid signaling LR job fences and ensure they are never exported; Xe already guards against exporting these internal fences. With that guarantee in place, we can safely track LR jobs in the scheduler’s pending list so they are eligible for resubmission during VF post-migration recovery (and similar recovery paths).
An added benefit is that LR queues now gain the DRM scheduler’s built-in flow control over ring usage rather than rejecting new jobs in the exec IOCTL if the ring is full.
v2:
- Ensure DRM scheduler TDR doesn't run for LR jobs
- Stack variable for killed_or_banned_or_wedged
v4:
- Clarify commit message (Tomasz)
--- drivers/gpu/drm/xe/xe_exec.c | 12 ++------- drivers/gpu/drm/xe/xe_exec_queue.c | 19 ------------- drivers/gpu/drm/xe/xe_exec_queue.h | 2 -- drivers/gpu/drm/xe/xe_guc_submit.c | 43 ++++++++++++++++++++---------- 4 files changed, 31 insertions(+), 45 deletions(-)
drivers/gpu/drm/xe/xe_exec.c +2 -10
@@ -123,7 +123,7 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file)struct xe_validation_ctx ctx;struct xe_sched_job *job;struct xe_vm *vm; -bool write_locked, skip_retry = false; +bool write_locked;int err =0 ;struct xe_hw_engine_group *group;enum xe_hw_engine_group_execution_mode mode, previous_mode;
@@ -265,12 +265,6 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file) goto err_exec; } -if (xe_exec_queue_is_lr (q) &&xe_exec_queue_ring_full (q)) { - err = -EWOULDBLOCK ;/* Aliased to -EAGAIN */ - skip_retry = true; - goto err_exec; - } -if (xe_exec_queue_uses_pxp (q)) { err =xe_vm_validate_protected (q->vm);if (err)
@@ -327,8 +321,6 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file)xe_sched_job_init_user_fence (job, &syncs[i]); } -if (xe_exec_queue_is_lr (q)) - q->ring_ops->emit_job (job);if (!xe_vm_in_lr_mode (vm))xe_exec_queue_last_fence_set (q, vm, &job->drm.s_fence->finished);xe_sched_job_push (job);
@@ -354,7 +346,7 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file)xe_validation_ctx_fini (&ctx); err_unlock_list:up_read (&vm->lock); -if (err == -EAGAIN && !skip_retry) +if (err == -EAGAIN ) goto retry; err_hw_exec_mode:if (mode ==EXEC_MODE_DMA_FENCE )
drivers/gpu/drm/xe/xe_exec_queue.c +0 -19
@@ -816,25 +816,6 @@ bool xe_exec_queue_is_lr(struct xe_exec_queue *q) !(q->flags &EXEC_QUEUE_FLAG_VM ); } -static s32 xe_exec_queue_num_job_inflight (struct xe_exec_queue *q) -{ -return q->lrc[0 ]->fence_ctx.next_seqno -xe_lrc_seqno (q->lrc[0 ]) -1 ; -} - -/** -* xe_exec_queue_ring_full() - Whether an exec_queue's ring is full -* @q: The exec_queue -* -* Return: True if the exec_queue's ring is full, false otherwise. -*/ -bool xe_exec_queue_ring_full (struct xe_exec_queue *q) -{ -struct xe_lrc *lrc = q->lrc[0 ]; -s32 max_job = lrc->ring.size /MAX_JOB_SIZE_BYTES ; - -return xe_exec_queue_num_job_inflight (q) >= max_job; -} -/** * xe_exec_queue_is_idle() - Whether an exec_queue is idle. * @q: The exec_queue
drivers/gpu/drm/xe/xe_exec_queue.h +0 -2
@@ -64,8 +64,6 @@ static inline bool xe_exec_queue_uses_pxp(struct xe_exec_queue *q)bool xe_exec_queue_is_lr (struct xe_exec_queue *q); -bool xe_exec_queue_ring_full (struct xe_exec_queue *q); -bool xe_exec_queue_is_idle (struct xe_exec_queue *q);void xe_exec_queue_kill (struct xe_exec_queue *q);
drivers/gpu/drm/xe/xe_guc_submit.c +29 -14
92 lines not on this page · raw message
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 8/28 drm/xe: Don't change LRC ring head on job resubmission
In reply to Matthew BrostNow that we save the job's head during submission, it's no longer necessary to adjust the LRC ring head during resubmission. Instead, a software-based adjustment of the tail will overwrite the old jobs in place. For some odd reason, adjusting the LRC ring head didn't work on parallel queues, which was causing issues in our CI.
v6:
- Also set LRC tail to head so queue is idle coming out of reset
--- drivers/gpu/drm/xe/xe_guc_submit.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_guc_submit.c +8 -2
@@ -1998,11 +1998,17 @@ static void guc_exec_queue_start(struct xe_exec_queue *q)struct xe_gpu_scheduler *sched = &q->guc->sched;if (!exec_queue_killed_or_banned_or_wedged (q)) { +struct xe_sched_job *job =xe_sched_first_pending_job (sched);int i;trace_xe_exec_queue_resubmit (q); -for (i =0 ; i < q->width; ++i) -xe_lrc_set_ring_head (q->lrc[i], q->lrc[i]->ring.tail); +if (job) { +for (i =0 ; i < q->width; ++i) { + q->lrc[i]->ring.tail = job->ptrs[i].head; +xe_lrc_set_ring_tail (q->lrc[i], +xe_lrc_ring_head (q->lrc[i])); + } + }xe_sched_resubmit_jobs (sched); }
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 9/28 drm/xe/guc: Document GuC submission backend
In reply to Matthew BrostAdd kernel-doc to xe_guc_submit.c describing the submission path, the per-queue single-threaded model with pause/resume, the driver shadow state machine and lost-H2G replay, job timeout handling, recovery flows (GT reset, PM resume, VF resume), and reclaim constraints.
v2:
- Mirror tweaks for clarity
- Add new doc to Xe rst files
v3:
- Clarify global vs per-queue stop / start
- Clarify VF resume flow
- Add section for 'Waiters during VF resume'
- Add section for 'Page-faulting queues during VF migration'
- Add section for 'GuC-ID assignment'
- Add section for 'Reference counting and final queue destruction'
v4:
- s/VF resume/VF post migration recovery (Tomasz)
--- Documentation/gpu/xe/index.rst | 1 + drivers/gpu/drm/xe/xe_guc_submit.c | 282 +++++++++++++++++++++++++++++ 2 files changed, 283 insertions(+)
Documentation/gpu/xe/index.rst +1 -0
@@ -28,3 +28,4 @@ DG2, etc is provided to prototype the driver. xe_device xe-drm-usage-stats.rst xe_configfs + xe_guc_submit
drivers/gpu/drm/xe/xe_guc_submit.c +282 -0
288 lines not on this page · raw message
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 10/28 drm/xe/vf: Add xe_gt_sriov_vf_recovery_inprogress helper
In reply to Matthew BrostAdd xe_gt_sriov_vf_recovery_inprogress helper.
This helper serves as the singular point to determine whether a VF post-migration recovery is currently in progress. Expected callers include the GuC CT layer and the GuC submission layer. Atomically visable as soon as vCPU are unhalted until VF recovery completes.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 17 ++++++++ drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 2 + drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h | 10 +++++ drivers/gpu/drm/xe/xe_memirq.c | 48 ++++++++++++++++++++++- drivers/gpu/drm/xe/xe_memirq.h | 3 ++ 5 files changed, 79 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +17 -0
@@ -26,6 +26,7 @@#include "xe_guc_hxg_helpers.h" #include "xe_guc_relay.h" #include "xe_lrc.h" +#include "xe_memirq.h" #include "xe_mmio.h" #include "xe_sriov.h" #include "xe_sriov_vf.h"
@@ -828,6 +829,7 @@ void xe_gt_sriov_vf_migrated_event_handler(struct xe_gt *gt)struct xe_device *xe =gt_to_xe (gt);xe_gt_assert (gt,IS_SRIOV_VF (xe)); +xe_gt_assert (gt,xe_gt_sriov_vf_recovery_inprogress (gt));set_bit (gt->info.id, &xe->sriov.vf.migration.gt_flags);/*
@@ -1172,3 +1174,18 @@ void xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p)drm_printf (p,"\thandshake:\t%u.%u\n" , pf_version->major, pf_version->minor); } + +/** +* xe_gt_sriov_vf_recovery_inprogress() - VF post migration recovery in progress +* @gt: the &xe_gt +* +* Return: True if VF post migration recovery in progress, False otherwise +*/ +bool xe_gt_sriov_vf_recovery_inprogress (struct xe_gt *gt) +{ +struct xe_memirq *memirq = >_to_tile (gt)->memirq; + +return IS_SRIOV_VF (gt_to_xe (gt)) && + (xe_memirq_vf_recovery_irq_pending (memirq, >->uc.guc) || +READ_ONCE (gt->sriov.vf.migration.recovery_inprogress)); +}
drivers/gpu/drm/xe/xe_gt_sriov_vf.h +2 -0
@@ -25,6 +25,8 @@ void xe_gt_sriov_vf_default_lrcs_hwsp_rebase(struct xe_gt *gt);int xe_gt_sriov_vf_notify_resfix_done (struct xe_gt *gt);void xe_gt_sriov_vf_migrated_event_handler (struct xe_gt *gt); +bool xe_gt_sriov_vf_recovery_inprogress (struct xe_gt *gt); +u32 xe_gt_sriov_vf_gmdid (struct xe_gt *gt);u16 xe_gt_sriov_vf_guc_ids (struct xe_gt *gt);u64 xe_gt_sriov_vf_lmem (struct xe_gt *gt);
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h +10 -0
@@ -49,6 +49,14 @@ struct xe_gt_sriov_vf_runtime { } *regs; }; +/** +* xe_gt_sriov_vf_migration - VF migration data. +*/ +struct xe_gt_sriov_vf_migration { +/** @recovery_inprogress: VF post migration recovery in progress */ +bool recovery_inprogress; +}; +/** * struct xe_gt_sriov_vf - GT level VF virtualization data. */
@@ -61,6 +69,8 @@ struct xe_gt_sriov_vf {struct xe_gt_sriov_vf_selfconfig self_config;/** @runtime: runtime data retrieved from the PF. */ struct xe_gt_sriov_vf_runtime runtime; +/** @migration: migration data for the VF. */ + struct xe_gt_sriov_vf_migration migration; };#endif
drivers/gpu/drm/xe/xe_memirq.c +47 -1
67 lines not on this page · raw message
drivers/gpu/drm/xe/xe_memirq.h +3 -0
@@ -25,4 +25,7 @@ void xe_memirq_handler(struct xe_memirq *memirq);int xe_memirq_init_guc (struct xe_memirq *memirq,struct xe_guc *guc); +bool xe_memirq_vf_recovery_irq_pending (struct xe_memirq *memirq, +struct xe_guc *guc); +#endif
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 11/28 drm/xe/vf: Make VF recovery run on per-GT worker
In reply to Matthew BrostVF recovery is a per-GT operation, so it makes sense to isolate it to a per-GT queue. Scheduling this operation on the same worker as the GT reset and TDR not only aligns with this design but also helps avoid race conditions, as those operations can also modify the queue state.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 179 +++++++++++++++- drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 3 +- drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h | 7 + drivers/gpu/drm/xe/xe_sriov_vf.c | 242 +--------------------- drivers/gpu/drm/xe/xe_sriov_vf.h | 1 - drivers/gpu/drm/xe/xe_sriov_vf_types.h | 4 - 6 files changed, 178 insertions(+), 258 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +169 -10
@@ -25,11 +25,15 @@#include "xe_guc.h" #include "xe_guc_hxg_helpers.h" #include "xe_guc_relay.h" +#include "xe_guc_submit.h" +#include "xe_irq.h" #include "xe_lrc.h" #include "xe_memirq.h" #include "xe_mmio.h" +#include "xe_pm.h" #include "xe_sriov.h" #include "xe_sriov_vf.h" +#include "xe_tile_sriov_vf.h" #include "xe_uc_fw.h" #include "xe_wopcm.h"
@@ -314,7 +318,7 @@ static int guc_action_vf_notify_resfix_done(struct xe_guc *guc)* Returns: 0 if the operation completed successfully, or a negative error * code otherwise. */ -int xe_gt_sriov_vf_notify_resfix_done (struct xe_gt *gt) +static int xe_gt_sriov_vf_notify_resfix_done (struct xe_gt *gt) {struct xe_guc *guc = >->uc.guc;int err;
@@ -808,7 +812,7 @@ int xe_gt_sriov_vf_connect(struct xe_gt *gt)* xe_gt_sriov_vf_default_lrcs_hwsp_rebase - Update GGTT references in HWSP of default LRCs. * @gt: the &xe_gt struct instance */ -void xe_gt_sriov_vf_default_lrcs_hwsp_rebase (struct xe_gt *gt) +static void xe_gt_sriov_vf_default_lrcs_hwsp_rebase (struct xe_gt *gt) {struct xe_hw_engine *hwe;enum xe_hw_engine_id id;
@@ -817,6 +821,26 @@ void xe_gt_sriov_vf_default_lrcs_hwsp_rebase(struct xe_gt *gt)xe_default_lrc_update_memirq_regs_with_address (hwe); } +static void xe_gt_sriov_vf_start_migration_recovery (struct xe_gt *gt) +{ +bool started; + +xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); + +spin_lock (>->sriov.vf.migration.lock); + +if (!gt->sriov.vf.migration.recovery_queued) { + gt->sriov.vf.migration.recovery_queued = true; +WRITE_ONCE (gt->sriov.vf.migration.recovery_inprogress, true); + + started =queue_work (gt->ordered_wq, >->sriov.vf.migration.worker); +xe_gt_sriov_info (gt,"VF migration recovery %s\n" , started ? +"scheduled" :"already in progress" ); + } + +spin_unlock (>->sriov.vf.migration.lock); +} +/** * xe_gt_sriov_vf_migrated_event_handler - Start a VF migration recovery, * or just mark that a GuC is ready for it.
@@ -831,15 +855,8 @@ void xe_gt_sriov_vf_migrated_event_handler(struct xe_gt *gt)xe_gt_assert (gt,IS_SRIOV_VF (xe));xe_gt_assert (gt,xe_gt_sriov_vf_recovery_inprogress (gt)); -set_bit (gt->info.id, &xe->sriov.vf.migration.gt_flags); -/* -* We need to be certain that if all flags were set, at least one -* thread will notice that and schedule the recovery. -*/ -smp_mb__after_atomic (); -xe_gt_sriov_info (gt,"ready for recovery after migration\n" ); -xe_sriov_vf_start_migration_recovery (xe); +xe_gt_sriov_vf_start_migration_recovery (gt); }static bool vf_is_negotiated (struct xe_gt *gt,u16 major,u16 minor)
@@ -1175,6 +1192,148 @@ void xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p) pf_version->major, pf_version->minor); } +static bool vf_migration_supported (void ) +{ +/* +* TODO: Add conditions to allow specific platforms, when they're +* supported at production quality. +*/ +return true; +} + +static void vf_post_migration_shutdown (struct xe_gt *gt) +{ +int ret =0 ; + +spin_lock (>->sriov.vf.migration.lock); + gt->sriov.vf.migration.recovery_queued = false; +spin_unlock (>->sriov.vf.migration.lock); + +xe_guc_submit_pause (>->uc.guc); + ret |=xe_guc_submit_reset_block (>->uc.guc); + +if (ret) +xe_gt_sriov_info (gt,"migration recovery encountered ongoing reset\n" ); +} + +static size_t post_migration_scratch_size (struct xe_device *xe) +{ +return max (xe_lrc_reg_size (xe),LRC_WA_BB_SIZE ); +} + +static int vf_post_migration_fixups (struct xe_gt *gt) +{ +s64 shift; +void *buf; +int err; + + buf =kmalloc (post_migration_scratch_size (gt_to_xe (gt)),GFP_ATOMIC ); +if (!buf) +return -ENOMEM ; + + err =xe_gt_sriov_vf_query_config (gt); +if (err) + goto out; + + shift =xe_gt_sriov_vf_ggtt_shift (gt); +if (shift) { +xe_tile_sriov_vf_fixup_ggtt_nodes (gt_to_tile (gt), shift); +xe_gt_sriov_vf_default_lrcs_hwsp_rebase (gt); + err =xe_guc_contexts_hwsp_rebase (>->uc.guc, buf); +if (err) + goto out; + } + +out: +kfree (buf); +return err; +} + +static void vf_post_migration_kickstart (struct xe_gt *gt) +{ +/* +* Make sure interrupts on the new HW are properly set. The GuC IRQ +* must be working at this point, since the recovery did started, +* but the rest was not enabled using the procedure from spec. +*/ +xe_irq_resume (gt_to_xe (gt)); + +xe_guc_submit_reset_unblock (>->uc.guc); +xe_guc_submit_unpause (>->uc.guc); +} + +static int vf_post_migration_notify_resfix_done (struct xe_gt *gt) +{ +bool skip_resfix = false; + +spin_lock_irq (>->sriov.vf.migration.lock); +if (gt->sriov.vf.migration.recovery_queued) { + skip_resfix = true; +xe_gt_sriov_dbg (gt,"another recovery imminent, skipped some notifications\n" ); + }else { +WRITE_ONCE (gt->sriov.vf.migration.recovery_inprogress, false); + } +spin_unlock_irq (>->sriov.vf.migration.lock); + +return skip_resfix ? -EAGAIN :xe_gt_sriov_vf_notify_resfix_done (gt); +} + +static void vf_post_migration_recovery (struct xe_gt *gt) +{ +struct xe_device *xe =gt_to_xe (gt); +int err; + +xe_gt_sriov_dbg (gt,"migration recovery in progress\n" ); + +xe_pm_runtime_get (xe); +vf_post_migration_shutdown (gt); + +if (!vf_migration_supported ()) { +xe_gt_sriov_err (gt,"migration is not supported\n" ); + err = -ENOTRECOVERABLE ; + goto fail; + } + + err =vf_post_migration_fixups (gt); +if (err) + goto fail; + +vf_post_migration_kickstart (gt); + err =vf_post_migration_notify_resfix_done (gt); +if (err && err != -EAGAIN ) + goto fail; + +xe_pm_runtime_put (xe); +xe_gt_sriov_notice (gt,"migration recovery ended\n" ); +return ; +fail: +xe_pm_runtime_put (xe); +xe_gt_sriov_err (gt,"migration recovery failed (%pe)\n" ,ERR_PTR (err)); +xe_device_declare_wedged (xe); +} + +static void migration_worker_func (struct work_struct *w) +{ + struct xe_gt *gt = container_of(w, struct xe_gt, + sriov.vf.migration.worker); + +vf_post_migration_recovery (gt); +} + +/** +* xe_gt_sriov_vf_migration_init_early() - VF post migration init early +* @gt: the &xe_gt +*/ +void xe_gt_sriov_vf_migration_init_early (struct xe_gt *gt) +{ +init_rwsem (>->sriov.vf.self_config.lock); +spin_lock_init (>->sriov.vf.migration.lock); +INIT_WORK (>->sriov.vf.migration.worker, migration_worker_func); + +if (!vf_migration_supported ()) +xe_gt_sriov_info (gt,"migration not supported by this module version\n" ); +} +/** * xe_gt_sriov_vf_recovery_inprogress() - VF post migration recovery in progress * @gt: the &xe_gt
drivers/gpu/drm/xe/xe_gt_sriov_vf.h +1 -2
@@ -21,10 +21,9 @@ void xe_gt_sriov_vf_guc_versions(struct xe_gt *gt,int xe_gt_sriov_vf_query_config (struct xe_gt *gt);int xe_gt_sriov_vf_connect (struct xe_gt *gt);int xe_gt_sriov_vf_query_runtime (struct xe_gt *gt); -void xe_gt_sriov_vf_default_lrcs_hwsp_rebase (struct xe_gt *gt); -int xe_gt_sriov_vf_notify_resfix_done (struct xe_gt *gt);void xe_gt_sriov_vf_migrated_event_handler (struct xe_gt *gt); +void xe_gt_sriov_vf_migration_init_early (struct xe_gt *gt);bool xe_gt_sriov_vf_recovery_inprogress (struct xe_gt *gt);u32 xe_gt_sriov_vf_gmdid (struct xe_gt *gt);
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h +7 -0
@@ -8,6 +8,7 @@#include <linux/rwsem.h> #include <linux/types.h> +#include <linux/workqueue.h> #include "xe_uc_fw_types.h" /**
@@ -53,6 +54,12 @@ struct xe_gt_sriov_vf_runtime {* xe_gt_sriov_vf_migration - VF migration data. */ struct xe_gt_sriov_vf_migration { +/** @migration: VF migration recovery worker */ +struct work_struct worker; +/** @lock: Protects recovery_queued */ +spinlock_t lock; +/** @recovery_queued: VF post migration recovery in queued */ +bool recovery_queued;/** @recovery_inprogress: VF post migration recovery in progress */ bool recovery_inprogress; };
drivers/gpu/drm/xe/xe_sriov_vf.c +1 -241
276 lines not on this page · raw message
drivers/gpu/drm/xe/xe_sriov_vf.h +0 -1
@@ -13,7 +13,6 @@ struct xe_device;void xe_sriov_vf_init_early (struct xe_device *xe);int xe_sriov_vf_init_late (struct xe_device *xe); -void xe_sriov_vf_start_migration_recovery (struct xe_device *xe);bool xe_sriov_vf_migration_supported (struct xe_device *xe);void xe_sriov_vf_debugfs_register (struct xe_device *xe,struct dentry *root);
drivers/gpu/drm/xe/xe_sriov_vf_types.h +0 -4
@@ -33,10 +33,6 @@ struct xe_device_vf {/** @migration: VF Migration state data */ struct { -/** @migration.worker: VF migration recovery worker */ -struct work_struct worker; -/** @migration.gt_flags: Per-GT request flags for VF migration recovery */ -unsigned long gt_flags;/** * @migration.enabled: flag indicating if migration support * was enabled or not due to missing prerequisites
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 12/28 drm/xe/vf: Abort H2G sends during VF post-migration recovery
In reply to Matthew BrostWhile VF post-migration recovery is in progress, abort H2G sends with -ECANCEL. These messages are treated as lost, and TLB invalidation errors are suppressed. During this phase, the H2G channel is down, and VF recovery requires the CT lock to proceed.
--- drivers/gpu/drm/xe/xe_guc_ct.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_guc_ct.c +4 -2
@@ -25,6 +25,7 @@#include "xe_gt_printk.h" #include "xe_gt_sriov_pf_control.h" #include "xe_gt_sriov_pf_monitor.h" +#include "xe_gt_sriov_vf.h" #include "xe_guc.h" #include "xe_guc_log.h" #include "xe_guc_relay.h"
@@ -851,7 +852,7 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, u32 len, u32 g2h_len, u32 num_g2h, struct g2h_fence *g2h_fence) { - struct xe_gt *gt __maybe_unused = ct_to_gt(ct); + struct xe_gt *gt = ct_to_gt(ct);u16 seqno;int ret;
@@ -872,7 +873,8 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, goto out; } -if (ct->state ==XE_GUC_CT_STATE_STOPPED ) { +if (ct->state ==XE_GUC_CT_STATE_STOPPED || +xe_gt_sriov_vf_recovery_inprogress (gt)) { ret = -ECANCELED ; goto out; }
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 13/28 drm/xe/vf: Remove memory allocations from VF post migration recovery
In reply to Matthew BrostVF post migration recovery is the path of dma-fence signaling / reclaim, avoid memory allocations in this path.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 29 ++++++++++++++--------- drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 2 +- drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h | 2 ++ drivers/gpu/drm/xe/xe_sriov.c | 8 +++++-- drivers/gpu/drm/xe/xe_sriov_vf.c | 14 ++++++++--- drivers/gpu/drm/xe/xe_sriov_vf.h | 2 +- 6 files changed, 39 insertions(+), 18 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +18 -11
@@ -1223,17 +1223,13 @@ static size_t post_migration_scratch_size(struct xe_device *xe)static int vf_post_migration_fixups (struct xe_gt *gt) { +void *buf = gt->sriov.vf.migration.lrc_wa_bb;s64 shift; -void *buf;int err; - buf =kmalloc (post_migration_scratch_size (gt_to_xe (gt)),GFP_ATOMIC ); -if (!buf) -return -ENOMEM ; - err =xe_gt_sriov_vf_query_config (gt);if (err) - goto out; +return err; shift =xe_gt_sriov_vf_ggtt_shift (gt);if (shift) {
@@ -1241,12 +1237,10 @@ static int vf_post_migration_fixups(struct xe_gt *gt)xe_gt_sriov_vf_default_lrcs_hwsp_rebase (gt); err =xe_guc_contexts_hwsp_rebase (>->uc.guc, buf);if (err) - goto out; +return err; } -out: -kfree (buf); -return err; +return 0 ; }static void vf_post_migration_kickstart (struct xe_gt *gt)
@@ -1323,15 +1317,28 @@ static void migration_worker_func(struct work_struct *w)/** * xe_gt_sriov_vf_migration_init_early() - VF post migration init early * @gt: the &xe_gt +* +* Return 0 on success, errno on failure */ -void xe_gt_sriov_vf_migration_init_early (struct xe_gt *gt) +int xe_gt_sriov_vf_migration_init_early (struct xe_gt *gt) { +void *buf; + + buf =drmm_kmalloc (>_to_xe (gt)->drm, +post_migration_scratch_size (gt_to_xe (gt)), +GFP_KERNEL ); +if (!buf) +return -ENOMEM ; + + gt->sriov.vf.migration.lrc_wa_bb = buf;init_rwsem (>->sriov.vf.self_config.lock);spin_lock_init (>->sriov.vf.migration.lock);INIT_WORK (>->sriov.vf.migration.worker, migration_worker_func);if (!vf_migration_supported ())xe_gt_sriov_info (gt,"migration not supported by this module version\n" ); + +return 0 ; }/**
drivers/gpu/drm/xe/xe_gt_sriov_vf.h +1 -1
@@ -23,7 +23,7 @@ int xe_gt_sriov_vf_connect(struct xe_gt *gt);int xe_gt_sriov_vf_query_runtime (struct xe_gt *gt);void xe_gt_sriov_vf_migrated_event_handler (struct xe_gt *gt); -void xe_gt_sriov_vf_migration_init_early (struct xe_gt *gt); +int xe_gt_sriov_vf_migration_init_early (struct xe_gt *gt);bool xe_gt_sriov_vf_recovery_inprogress (struct xe_gt *gt);u32 xe_gt_sriov_vf_gmdid (struct xe_gt *gt);
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h +2 -0
@@ -58,6 +58,8 @@ struct xe_gt_sriov_vf_migration {struct work_struct worker;/** @lock: Protects recovery_queued */ spinlock_t lock; +/** @lrc_wa_bb: Scratch memory for LRC WA BB in recovery */ +void *lrc_wa_bb;/** @recovery_queued: VF post migration recovery in queued */ bool recovery_queued;/** @recovery_inprogress: VF post migration recovery in progress */
drivers/gpu/drm/xe/xe_sriov.c +6 -2
@@ -116,8 +116,12 @@ int xe_sriov_init(struct xe_device *xe)return err; } -if (IS_SRIOV_VF (xe)) -xe_sriov_vf_init_early (xe); +if (IS_SRIOV_VF (xe)) { +int err =xe_sriov_vf_init_early (xe); + +if (err) +return err; + }xe_assert (xe, !xe->sriov.wq); xe->sriov.wq =alloc_workqueue ("xe-sriov-wq" ,0 ,0 );
drivers/gpu/drm/xe/xe_sriov_vf.c +11 -3
@@ -180,16 +180,24 @@ static void vf_migration_init_early(struct xe_device *xe)/** * xe_sriov_vf_init_early - Initialize SR-IOV VF specific data. * @xe: the &xe_device to initialize +* +* Return: 0 on success or a negative error code on failure. */ -void xe_sriov_vf_init_early (struct xe_device *xe) +int xe_sriov_vf_init_early (struct xe_device *xe) {struct xe_gt *gt;unsigned int id; +int err; -for_each_gt (gt, xe, id) -xe_gt_sriov_vf_migration_init_early (gt); +for_each_gt (gt, xe, id) { + err =xe_gt_sriov_vf_migration_init_early (gt); +if (err) +return err; + }vf_migration_init_early (xe); + +return 0 ; }/**
drivers/gpu/drm/xe/xe_sriov_vf.h +1 -1
@@ -11,7 +11,7 @@struct dentry ;struct xe_device ; -void xe_sriov_vf_init_early (struct xe_device *xe); +int xe_sriov_vf_init_early (struct xe_device *xe);int xe_sriov_vf_init_late (struct xe_device *xe);bool xe_sriov_vf_migration_supported (struct xe_device *xe);void xe_sriov_vf_debugfs_register (struct xe_device *xe,struct dentry *root);
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 14/28 drm/xe/vf: Close multi-GT GGTT shift race
In reply to Matthew BrostAs multi-GT VF post-migration recovery can run in parallel on different workqueues, but both GTs point to the same GGTT, only one GT needs to shift the GGTT. However, both GTs need to know when this step has completed. To coordinate this, share the VF config lock among all GTs that share a GGTT, and perform the GGTT shift under this lock.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 95 +++++++++-------------- drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 3 +- drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h | 11 ++- drivers/gpu/drm/xe/xe_guc.c | 2 +- drivers/gpu/drm/xe/xe_tile_sriov_vf.c | 6 +- drivers/gpu/drm/xe/xe_tile_sriov_vf.h | 1 - 6 files changed, 51 insertions(+), 67 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +37 -58
@@ -436,16 +436,19 @@ u32 xe_gt_sriov_vf_gmdid(struct xe_gt *gt)return value; } -static int vf_get_ggtt_info (struct xe_gt *gt) +static int vf_get_ggtt_info (struct xe_gt *gt,bool recovery) {struct xe_gt_sriov_vf_selfconfig *config = >->sriov.vf.self_config; +struct xe_gt_sriov_vf_selfconfig *primary_config = + >_to_tile (gt)->primary_gt->sriov.vf.self_config;struct xe_guc *guc = >->uc.guc;u64 start, size; +s64 shift;int err;xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); -down_write (&config->lock); +down_write (config->lock); err =guc_action_query_single_klv64 (guc,GUC_KLV_VF_CFG_GGTT_START_KEY , &start);if (unlikely (err))
@@ -465,13 +468,17 @@ static int vf_get_ggtt_info(struct xe_gt *gt)xe_gt_sriov_dbg_verbose (gt,"GGTT %#llx-%#llx = %lluK\n" , start, start + size -1 , size /SZ_1K ); - config->ggtt_shift = start - (s64 )config->ggtt_base; + shift = start - (s64 )primary_config->ggtt_base; config->ggtt_base = start; config->ggtt_size = size; +if (recovery) + primary_config->ggtt_base = start; err = config->ggtt_size ?0 : -ENODATA ; +if (!err && shift && recovery) +xe_tile_sriov_vf_fixup_ggtt_nodes (gt_to_tile (gt), shift); out: -up_write (&config->lock); +up_write (config->lock);return err; }
@@ -485,7 +492,7 @@ static int vf_get_lmem_info(struct xe_gt *gt)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); -down_write (&config->lock); +down_write (config->lock); err =guc_action_query_single_klv64 (guc,GUC_KLV_VF_CFG_LMEM_SIZE_KEY , &size);if (unlikely (err))
@@ -505,7 +512,7 @@ static int vf_get_lmem_info(struct xe_gt *gt) err = config->lmem_size ?0 : -ENODATA ; out: -up_write (&config->lock); +up_write (config->lock);return err; }
@@ -518,7 +525,7 @@ static int vf_get_submission_cfg(struct xe_gt *gt)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); -down_write (&config->lock); +down_write (config->lock); err =guc_action_query_single_klv32 (guc,GUC_KLV_VF_CFG_NUM_CONTEXTS_KEY , &num_ctxs);if (unlikely (err))
@@ -549,7 +556,7 @@ static int vf_get_submission_cfg(struct xe_gt *gt) err = config->num_ctxs ?0 : -ENODATA ; out: -up_write (&config->lock); +up_write (config->lock);return err; }
@@ -564,17 +571,18 @@ static void vf_cache_gmdid(struct xe_gt *gt)/** * xe_gt_sriov_vf_query_config - Query SR-IOV config data over MMIO. * @gt: the &xe_gt +* @recovery: VF post migration recovery path * * This function is for VF use only. * * Return: 0 on success or a negative error code on failure. */ -int xe_gt_sriov_vf_query_config (struct xe_gt *gt) +int xe_gt_sriov_vf_query_config (struct xe_gt *gt,bool recovery) {struct xe_device *xe =gt_to_xe (gt);int err; - err =vf_get_ggtt_info (gt); + err =vf_get_ggtt_info (gt, recovery);if (unlikely (err))return err;
@@ -610,10 +618,10 @@ u16 xe_gt_sriov_vf_guc_ids(struct xe_gt *gt)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt)));xe_gt_assert (gt, gt->sriov.vf.guc_version.major); -down_read (&config->lock); +down_read (config->lock);xe_gt_assert (gt, config->num_ctxs); val = config->num_ctxs; -up_read (&config->lock); +up_read (config->lock);return val; }
@@ -634,10 +642,10 @@ u64 xe_gt_sriov_vf_lmem(struct xe_gt *gt)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt)));xe_gt_assert (gt, gt->sriov.vf.guc_version.major); -down_read (&config->lock); +down_read (config->lock);xe_gt_assert (gt, config->lmem_size); val = config->lmem_size; -up_read (&config->lock); +up_read (config->lock);return val; }
@@ -656,11 +664,9 @@ u64 xe_gt_sriov_vf_ggtt(struct xe_gt *gt)u64 val;xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); -xe_gt_assert (gt, gt->sriov.vf.guc_version.major); +lockdep_assert_held (config->lock); -down_read (&config->lock); val = config->ggtt_size; -up_read (&config->lock);return val; }
@@ -680,34 +686,10 @@ u64 xe_gt_sriov_vf_ggtt_base(struct xe_gt *gt)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt)));xe_gt_assert (gt, gt->sriov.vf.guc_version.major); - -down_read (&config->lock);xe_gt_assert (gt, config->ggtt_size); - val = config->ggtt_base; -up_read (&config->lock); - -return val; -} +lockdep_assert_held (config->lock); -/** -* xe_gt_sriov_vf_ggtt_shift - Return shift in GGTT range due to VF migration -* @gt: the &xe_gt struct instance -* -* This function is for VF use only. -* -* Return: The shift value; could be negative -*/ -s64 xe_gt_sriov_vf_ggtt_shift (struct xe_gt *gt) -{ -struct xe_gt_sriov_vf_selfconfig *config = >->sriov.vf.self_config; -s64 val; - -xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); -xe_gt_assert (gt,xe_gt_is_main_type (gt)); - -down_read (&config->lock); - val = config->ggtt_shift; -up_read (&config->lock); + val = config->ggtt_base;return val; }
@@ -1115,7 +1097,7 @@ void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p)xe_gt_assert (gt,IS_SRIOV_VF (gt_to_xe (gt))); -down_read (&config->lock); +down_read (config->lock);drm_printf (p,"GGTT range:\t%#llx-%#llx\n" , config->ggtt_base, config->ggtt_base + config->ggtt_size -1 );
@@ -1123,8 +1105,6 @@ void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p)string_get_size (config->ggtt_size,1 ,STRING_UNITS_2 , buf,sizeof (buf));drm_printf (p,"GGTT size:\t%llu (%s)\n" , config->ggtt_size, buf); -drm_printf (p,"GGTT shift on last restore:\t%lld\n" , config->ggtt_shift); -if (IS_DGFX (xe) &&xe_gt_is_main_type (gt)) {string_get_size (config->lmem_size,1 ,STRING_UNITS_2 , buf,sizeof (buf));drm_printf (p,"LMEM size:\t%llu (%s)\n" , config->lmem_size, buf);
@@ -1132,7 +1112,7 @@ void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p)drm_printf (p,"GuC contexts:\t%u\n" , config->num_ctxs);drm_printf (p,"GuC doorbells:\t%u\n" , config->num_dbs); -up_read (&config->lock); +up_read (config->lock); }/**
@@ -1224,21 +1204,16 @@ static size_t post_migration_scratch_size(struct xe_device *xe)static int vf_post_migration_fixups (struct xe_gt *gt) {void *buf = gt->sriov.vf.migration.lrc_wa_bb; -s64 shift;int err; - err =xe_gt_sriov_vf_query_config (gt); + err =xe_gt_sriov_vf_query_config (gt, true);if (err)return err; - shift =xe_gt_sriov_vf_ggtt_shift (gt); -if (shift) { -xe_tile_sriov_vf_fixup_ggtt_nodes (gt_to_tile (gt), shift); -xe_gt_sriov_vf_default_lrcs_hwsp_rebase (gt); - err =xe_guc_contexts_hwsp_rebase (>->uc.guc, buf); -if (err) -return err; - } +xe_gt_sriov_vf_default_lrcs_hwsp_rebase (gt); + err =xe_guc_contexts_hwsp_rebase (>->uc.guc, buf); +if (err) +return err;return 0 ; }
@@ -1322,6 +1297,7 @@ static void migration_worker_func(struct work_struct *w)*/ int xe_gt_sriov_vf_migration_init_early (struct xe_gt *gt) { +struct xe_tile *tile =gt_to_tile (gt);void *buf; buf = drmm_kmalloc(>_to_xe(gt)->drm,
@@ -1331,7 +1307,10 @@ int xe_gt_sriov_vf_migration_init_early(struct xe_gt *gt)return -ENOMEM ; gt->sriov.vf.migration.lrc_wa_bb = buf; -init_rwsem (>->sriov.vf.self_config.lock); +if (xe_gt_is_main_type (gt)) +init_rwsem (>->sriov.vf.self_config.__lock); + gt->sriov.vf.self_config.lock = + &tile->primary_gt->sriov.vf.self_config.__lock;spin_lock_init (>->sriov.vf.migration.lock);INIT_WORK (>->sriov.vf.migration.worker, migration_worker_func);
drivers/gpu/drm/xe/xe_gt_sriov_vf.h +1 -2
@@ -18,7 +18,7 @@ int xe_gt_sriov_vf_bootstrap(struct xe_gt *gt);void xe_gt_sriov_vf_guc_versions (struct xe_gt *gt,struct xe_uc_fw_version *wanted,struct xe_uc_fw_version *found); -int xe_gt_sriov_vf_query_config (struct xe_gt *gt); +int xe_gt_sriov_vf_query_config (struct xe_gt *gt,bool recovery);int xe_gt_sriov_vf_connect (struct xe_gt *gt);int xe_gt_sriov_vf_query_runtime (struct xe_gt *gt);void xe_gt_sriov_vf_migrated_event_handler (struct xe_gt *gt);
@@ -31,7 +31,6 @@ u16 xe_gt_sriov_vf_guc_ids(struct xe_gt *gt);u64 xe_gt_sriov_vf_lmem (struct xe_gt *gt);u64 xe_gt_sriov_vf_ggtt (struct xe_gt *gt);u64 xe_gt_sriov_vf_ggtt_base (struct xe_gt *gt); -s64 xe_gt_sriov_vf_ggtt_shift (struct xe_gt *gt);u32 xe_gt_sriov_vf_read32 (struct xe_gt *gt,struct xe_reg reg);void xe_gt_sriov_vf_write32 (struct xe_gt *gt,struct xe_reg reg,u32 val);
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h +7 -4
@@ -19,16 +19,19 @@ struct xe_gt_sriov_vf_selfconfig {u64 ggtt_base;/** @ggtt_size: assigned size of the GGTT region. */ u64 ggtt_size; -/** @ggtt_shift: difference in ggtt_base on last migration */ -s64 ggtt_shift;/** @lmem_size: assigned size of the LMEM. */ u64 lmem_size;/** @num_ctxs: assigned number of GuC submission context IDs. */ u16 num_ctxs;/** @num_dbs: assigned number of GuC doorbells IDs. */ u16 num_dbs; -/** @lock: lock for protecting access to all selfconfig fields. */ -struct rw_semaphore lock; +/** @__lock: lock for protecting access to all selfconfig fields. */ +struct rw_semaphore __lock; +/** +* @lock: pointer to lock for protecting access to all selfconfig +* fields, all GTs point to primary GT. +*/ +struct rw_semaphore *lock; };/**
drivers/gpu/drm/xe/xe_guc.c +1 -1
@@ -712,7 +712,7 @@ static int vf_guc_init_noalloc(struct xe_guc *guc)if (err)return err; - err =xe_gt_sriov_vf_query_config (gt); + err =xe_gt_sriov_vf_query_config (gt, false);if (err)return err;
drivers/gpu/drm/xe/xe_tile_sriov_vf.c +5 -1
@@ -40,7 +40,7 @@ static int vf_init_ggtt_balloons(struct xe_tile *tile)* * Return: 0 on success or a negative error code on failure. */ -int xe_tile_sriov_vf_balloon_ggtt_locked (struct xe_tile *tile) +static int xe_tile_sriov_vf_balloon_ggtt_locked (struct xe_tile *tile) {u64 ggtt_base =xe_gt_sriov_vf_ggtt_base (tile->primary_gt);u64 ggtt_size =xe_gt_sriov_vf_ggtt (tile->primary_gt);
@@ -100,12 +100,16 @@ int xe_tile_sriov_vf_balloon_ggtt_locked(struct xe_tile *tile)static int vf_balloon_ggtt (struct xe_tile *tile) { +struct xe_gt_sriov_vf_selfconfig *config = + &tile->primary_gt->sriov.vf.self_config;struct xe_ggtt *ggtt = tile->mem.ggtt;int err; +down_read (config->lock);mutex_lock (&ggtt->lock); err =xe_tile_sriov_vf_balloon_ggtt_locked (tile);mutex_unlock (&ggtt->lock); +up_read (config->lock);return err; }
drivers/gpu/drm/xe/xe_tile_sriov_vf.h +0 -1
@@ -11,7 +11,6 @@struct xe_tile ;int xe_tile_sriov_vf_prepare_ggtt (struct xe_tile *tile); -int xe_tile_sriov_vf_balloon_ggtt_locked (struct xe_tile *tile);void xe_tile_sriov_vf_deballoon_ggtt_locked (struct xe_tile *tile);void xe_tile_sriov_vf_fixup_ggtt_nodes (struct xe_tile *tile,s64 shift);
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 15/28 drm/xe/vf: Teardown VF post migration worker on driver unload
In reply to Matthew BrostBe cautious and ensure the VF post-migration worker is not running during driver unload.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 17 +++++++++++++++-- drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h | 4 +++- 2 files changed, 18 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +15 -2
@@ -811,7 +811,8 @@ static void xe_gt_sriov_vf_start_migration_recovery(struct xe_gt *gt)spin_lock (>->sriov.vf.migration.lock); -if (!gt->sriov.vf.migration.recovery_queued) { +if (!gt->sriov.vf.migration.recovery_queued || + !gt->sriov.vf.migration.recovery_teardown) { gt->sriov.vf.migration.recovery_queued = true;WRITE_ONCE (gt->sriov.vf.migration.recovery_inprogress, true);
@@ -1289,6 +1290,17 @@ static void migration_worker_func(struct work_struct *w)vf_post_migration_recovery (gt); } +static void vf_migration_fini (struct drm_device *drm,void *arg) +{ +struct xe_gt *gt = arg; + +spin_lock_irq (>->sriov.vf.migration.lock); + gt->sriov.vf.migration.recovery_teardown = true; +spin_unlock_irq (>->sriov.vf.migration.lock); + +cancel_work_sync (>->sriov.vf.migration.worker); +} +/** * xe_gt_sriov_vf_migration_init_early() - VF post migration init early * @gt: the &xe_gt
@@ -1317,7 +1329,8 @@ int xe_gt_sriov_vf_migration_init_early(struct xe_gt *gt)if (!vf_migration_supported ())xe_gt_sriov_info (gt,"migration not supported by this module version\n" ); -return 0 ; +return drmm_add_action_or_reset (>_to_xe (gt)->drm, + vf_migration_fini, gt); }/**
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h +3 -1
@@ -59,10 +59,12 @@ struct xe_gt_sriov_vf_runtime {struct xe_gt_sriov_vf_migration {/** @migration: VF migration recovery worker */ struct work_struct worker; -/** @lock: Protects recovery_queued */ +/** @lock: Protects recovery_queued, teardown */ spinlock_t lock;/** @lrc_wa_bb: Scratch memory for LRC WA BB in recovery */ void *lrc_wa_bb; +/** @recovery_teardown: VF post migration recovery is being torn down */ +bool recovery_teardown;/** @recovery_queued: VF post migration recovery in queued */ bool recovery_queued;/** @recovery_inprogress: VF post migration recovery in progress */
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 16/28 drm/xe/vf: Don't allow GT reset to be queued during VF post migration recovery
In reply to Matthew BrostWith well behaved software, this should never happen.
--- drivers/gpu/drm/xe/xe_gt.c | 9 ------- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 7 ----- drivers/gpu/drm/xe/xe_guc_submit.c | 41 +++-------------------------- drivers/gpu/drm/xe/xe_guc_submit.h | 3 --- 4 files changed, 4 insertions(+), 56 deletions(-)
drivers/gpu/drm/xe/xe_gt.c +0 -9
@@ -803,11 +803,6 @@ static int do_gt_restart(struct xe_gt *gt)return 0 ; } -static int gt_wait_reset_unblock (struct xe_gt *gt) -{ -return xe_guc_wait_reset_unblock (>->uc.guc); -} -static int gt_reset (struct xe_gt *gt) {unsigned int fw_ref;
@@ -822,10 +817,6 @@ static int gt_reset(struct xe_gt *gt)xe_gt_info (gt,"reset started\n" ); - err =gt_wait_reset_unblock (gt); -if (!err) -xe_gt_warn (gt,"reset block failed to get lifted" ); -xe_pm_runtime_get (gt_to_xe (gt));if (xe_fault_inject_gt_reset ()) {
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +0 -7
@@ -1184,17 +1184,11 @@ static bool vf_migration_supported(void)static void vf_post_migration_shutdown (struct xe_gt *gt) { -int ret =0 ; -spin_lock (>->sriov.vf.migration.lock); gt->sriov.vf.migration.recovery_queued = false;spin_unlock (>->sriov.vf.migration.lock);xe_guc_submit_pause (>->uc.guc); - ret |=xe_guc_submit_reset_block (>->uc.guc); - -if (ret) -xe_gt_sriov_info (gt,"migration recovery encountered ongoing reset\n" ); }static size_t post_migration_scratch_size (struct xe_device *xe)
@@ -1228,7 +1222,6 @@ static void vf_post_migration_kickstart(struct xe_gt *gt)*/ xe_irq_resume (gt_to_xe (gt)); -xe_guc_submit_reset_unblock (>->uc.guc);xe_guc_submit_unpause (>->uc.guc); }
drivers/gpu/drm/xe/xe_guc_submit.c +4 -37
57 lines not on this page · raw message
drivers/gpu/drm/xe/xe_guc_submit.h +0 -3
@@ -22,9 +22,6 @@ void xe_guc_submit_stop(struct xe_guc *guc);int xe_guc_submit_start (struct xe_guc *guc);void xe_guc_submit_pause (struct xe_guc *guc);void xe_guc_submit_unpause (struct xe_guc *guc); -int xe_guc_submit_reset_block (struct xe_guc *guc); -void xe_guc_submit_reset_unblock (struct xe_guc *guc); -int xe_guc_wait_reset_unblock (struct xe_guc *guc);void xe_guc_submit_wedge (struct xe_guc *guc);int xe_guc_read_stopped (struct xe_guc *guc);
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 17/28 drm/xe/vf: Wakeup in GuC backend on VF post migration recovery
In reply to Matthew BrostIf VF post-migration recovery is in progress, the recovery flow will rebuild all GuC submission state. In this case, exit all waiters to ensure that submission queue scheduling can also be paused. Avoid taking any adverse actions after aborting the wait.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 3 ++ drivers/gpu/drm/xe/xe_guc_submit.c | 51 +++++++++++++++++++++-------- 2 files changed, 41 insertions(+), 13 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +3 -0
@@ -815,6 +815,9 @@ static void xe_gt_sriov_vf_start_migration_recovery(struct xe_gt *gt) !gt->sriov.vf.migration.recovery_teardown) { gt->sriov.vf.migration.recovery_queued = true;WRITE_ONCE (gt->sriov.vf.migration.recovery_inprogress, true); +smp_wmb (); + +wake_up_all (>->uc.guc.ct.wq); started =queue_work (gt->ordered_wq, >->sriov.vf.migration.worker); xe_gt_sriov_info(gt, "VF migration recovery %s\n", started ?
drivers/gpu/drm/xe/xe_guc_submit.c +38 -13
142 lines not on this page · raw message
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 18/28 drm/xe/vf: Extra debug on GGTT shift
In reply to Matthew BrostA little extra debug on GGTT shift printing the GGT shift value is helpful for VF post-migration recovery.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +4 -1
@@ -475,8 +475,11 @@ static int vf_get_ggtt_info(struct xe_gt *gt, bool recovery) primary_config->ggtt_base = start; err = config->ggtt_size ?0 : -ENODATA ; -if (!err && shift && recovery) +if (!err && shift && recovery) { +xe_gt_sriov_info (gt,"Shifting GGTT %lld -> 0x%016llx\n" , + shift, config->ggtt_base);xe_tile_sriov_vf_fixup_ggtt_nodes (gt_to_tile (gt), shift); + } out:up_write (config->lock);return err;
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 19/28 drm/xe/vf: Use GUC_HXG_TYPE_EVENT for GuC context register
In reply to Matthew BrostThe only case where the GuC submission backend cannot reason 100% correctly is when a GuC context is registered during VF post-migration recovery. In this scenario, it's possible that the GuC context register H2G is processed, but the immediately following schedule-enable H2G gets lost.
A double register is harmless when using GUC_HXG_TYPE_EVENT, as GuC simply drops the duplicate H2G. To keep things simple, use GUC_HXG_TYPE_EVENT for all context registrations on VFs.
--- drivers/gpu/drm/xe/xe_guc_ct.c | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-)
drivers/gpu/drm/xe/xe_guc_ct.c +22 -8
@@ -737,6 +737,24 @@ static u16 next_ct_seqno(struct xe_guc_ct *ct, bool is_g2h_fence)return seqno; } +#define MAKE_ACTION (type, __action) \ + FIELD_PREP(GUC_HXG_MSG_0_TYPE, type) | \ + FIELD_PREP(GUC_HXG_EVENT_MSG_0_ACTION | \ + GUC_HXG_EVENT_MSG_0_DATA0, __action) + +static bool vf_action_can_safely_fail (struct xe_device *xe,u32 action) +{ +/* +* If we are VF resuming, we can't exactly track if a context +* registration has been completed in the GuC state machine, it is +* harmless to resend as it will just fail silently if +* GUC_HXG_TYPE_EVENT is used. +*/ +return IS_SRIOV_VF (xe) && + (action ==XE_GUC_ACTION_REGISTER_CONTEXT_MULTI_LRC || + action ==XE_GUC_ACTION_REGISTER_CONTEXT ); +} +#define H2G_CT_HEADERS (GUC_CTB_HDR_LEN + 1)/* one DW CTB header and one DW HxG header */ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len,
@@ -808,18 +826,14 @@ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len,FIELD_PREP (GUC_CTB_MSG_0_NUM_DWORDS , len) |FIELD_PREP (GUC_CTB_MSG_0_FENCE , ct_fence_value);if (want_response) { - cmd[1 ] = -FIELD_PREP (GUC_HXG_MSG_0_TYPE ,GUC_HXG_TYPE_REQUEST ) | -FIELD_PREP (GUC_HXG_EVENT_MSG_0_ACTION | -GUC_HXG_EVENT_MSG_0_DATA0 , action[0 ]); + cmd[1 ] =MAKE_ACTION (GUC_HXG_TYPE_REQUEST , action[0 ]); + }else if (vf_action_can_safely_fail (xe, action[0 ])) { + cmd[1 ] =MAKE_ACTION (GUC_HXG_TYPE_EVENT , action[0 ]); }else {fast_req_track (ct, ct_fence_value,FIELD_GET (GUC_HXG_EVENT_MSG_0_ACTION , action[0 ])); - cmd[1 ] = -FIELD_PREP (GUC_HXG_MSG_0_TYPE ,GUC_HXG_TYPE_FAST_REQUEST ) | -FIELD_PREP (GUC_HXG_EVENT_MSG_0_ACTION | -GUC_HXG_EVENT_MSG_0_DATA0 , action[0 ]); + cmd[1 ] =MAKE_ACTION (GUC_HXG_TYPE_FAST_REQUEST , action[0 ]); }/* H2G header in cmd[1] replaces action[0] so: */
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 20/28 drm/xe/vf: Stop and flush CTs in VF post migration recovery
In reply to Matthew BrostFlushing CTs (i.e., progressing all pending G2H messages) gives VF post-migration recovery an accurate view of which H2G messages the GuC has processed, enabling the GuC submission state machine to correctly rebuild all state.
Also, stop all CT traffic, as the CT is not live during VF post-migration recovery.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 2 ++ drivers/gpu/drm/xe/xe_guc_ct.c | 11 +++++++++++ drivers/gpu/drm/xe/xe_guc_ct.h | 1 + 3 files changed, 14 insertions(+)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +2 -0
@@ -23,6 +23,7 @@#include "xe_gt_sriov_vf.h" #include "xe_gt_sriov_vf_types.h" #include "xe_guc.h" +#include "xe_guc_ct.h" #include "xe_guc_hxg_helpers.h" #include "xe_guc_relay.h" #include "xe_guc_submit.h"
@@ -1194,6 +1195,7 @@ static void vf_post_migration_shutdown(struct xe_gt *gt) gt->sriov.vf.migration.recovery_queued = false;spin_unlock (>->sriov.vf.migration.lock); +xe_guc_ct_flush (>->uc.guc.ct);xe_guc_submit_pause (>->uc.guc); }
drivers/gpu/drm/xe/xe_guc_ct.c +11 -0
@@ -574,6 +574,17 @@ void xe_guc_ct_disable(struct xe_guc_ct *ct)stop_g2h_handler (ct); } +/** +* xe_guc_ct_flush - Flush all processing of G2H / H2G +* @ct: the &xe_guc_ct +*/ +void xe_guc_ct_flush (struct xe_guc_ct *ct) +{ +receive_g2h (ct); +wake_up_all (&ct->g2h_fence_wq); +xe_guc_ct_stop (ct); +} +/** * xe_guc_ct_stop - Set GuC to stopped state * @ct: the &xe_guc_ct
drivers/gpu/drm/xe/xe_guc_ct.h +1 -0
@@ -17,6 +17,7 @@ int xe_guc_ct_init_post_hwconfig(struct xe_guc_ct *ct);int xe_guc_ct_enable (struct xe_guc_ct *ct);void xe_guc_ct_disable (struct xe_guc_ct *ct);void xe_guc_ct_stop (struct xe_guc_ct *ct); +void xe_guc_ct_flush (struct xe_guc_ct *ct);void xe_guc_ct_fast_path (struct xe_guc_ct *ct);struct xe_guc_ct_snapshot *xe_guc_ct_snapshot_capture (struct xe_guc_ct *ct);
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 21/28 drm/xe/vf: Reset TLB invalidations during VF post migration recovery
In reply to Matthew BrostTLB invalidations can be lost during VF post-migration recovery. Since the VF has migrated, these invalidations are no longer needed.
Reset the TLB invalidation frontend, which will signal all pending fences.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +2 -0
@@ -35,6 +35,7 @@#include "xe_sriov.h" #include "xe_sriov_vf.h" #include "xe_tile_sriov_vf.h" +#include "xe_tlb_inval.h" #include "xe_uc_fw.h" #include "xe_wopcm.h"
@@ -1196,6 +1197,7 @@ static void vf_post_migration_shutdown(struct xe_gt *gt)spin_unlock (>->sriov.vf.migration.lock);xe_guc_ct_flush (>->uc.guc.ct); +xe_tlb_inval_reset (>->tlb_inval);xe_guc_submit_pause (>->uc.guc); }
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 22/28 drm/xe/vf: Kickstart after resfix in VF post migration recovery
In reply to Matthew BrostGuC needs to be live for the GuC submission state machine to resubmit anything lost during VF post-migration recovery. Therefore, move the kickstart step after resfix to ensure proper resubmission.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +10 -8
@@ -1225,13 +1225,6 @@ static int vf_post_migration_fixups(struct xe_gt *gt)static void vf_post_migration_kickstart (struct xe_gt *gt) { -/* -* Make sure interrupts on the new HW are properly set. The GuC IRQ -* must be working at this point, since the recovery did started, -* but the rest was not enabled using the procedure from spec. -*/ -xe_irq_resume (gt_to_xe (gt)); -xe_guc_submit_unpause (>->uc.guc); }
@@ -1248,6 +1241,14 @@ static int vf_post_migration_notify_resfix_done(struct xe_gt *gt) }spin_unlock_irq (>->sriov.vf.migration.lock); +/* +* Make sure interrupts on the new HW are properly set. The GuC IRQ +* must be working at this point, since the recovery did started, +* but the rest was not enabled using the procedure from spec. +*/ +if (!skip_resfix) +xe_irq_resume (gt_to_xe (gt)); +return skip_resfix ? -EAGAIN :xe_gt_sriov_vf_notify_resfix_done (gt); }
@@ -1271,11 +1272,12 @@ static void vf_post_migration_recovery(struct xe_gt *gt)if (err) goto fail; -vf_post_migration_kickstart (gt); err =vf_post_migration_notify_resfix_done (gt);if (err && err != -EAGAIN ) goto fail; +vf_post_migration_kickstart (gt); +xe_pm_runtime_put (xe);xe_gt_sriov_notice (gt,"migration recovery ended\n" );return ;
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 23/28 drm/xe/vf: Start CTs before resfix VF post migration recovery
In reply to Matthew BrostBefore resfix, all CTs stuck in the H2G queue need to be squashed, as they may contain stale or invalid data.
Starting the CTs clears all H2Gs in the queue. Any lost H2Gs are resubmitted by the GuC submission state machine.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 7 +++++ drivers/gpu/drm/xe/xe_guc_ct.c | 48 +++++++++++++++++++++++------ drivers/gpu/drm/xe/xe_guc_ct.h | 1 + 3 files changed, 46 insertions(+), 10 deletions(-)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +7 -0
@@ -1223,6 +1223,11 @@ static int vf_post_migration_fixups(struct xe_gt *gt)return 0 ; } +static void vf_post_migration_rearm (struct xe_gt *gt) +{ +xe_guc_ct_restart (>->uc.guc.ct); +} +static void vf_post_migration_kickstart (struct xe_gt *gt) {xe_guc_submit_unpause (>->uc.guc);
@@ -1272,6 +1277,8 @@ static void vf_post_migration_recovery(struct xe_gt *gt)if (err) goto fail; +vf_post_migration_rearm (gt); + err =vf_post_migration_notify_resfix_done (gt);if (err && err != -EAGAIN ) goto fail;
drivers/gpu/drm/xe/xe_guc_ct.c +38 -10
68 lines not on this page · raw message
drivers/gpu/drm/xe/xe_guc_ct.h +1 -0
@@ -15,6 +15,7 @@ int xe_guc_ct_init_noalloc(struct xe_guc_ct *ct);int xe_guc_ct_init (struct xe_guc_ct *ct);int xe_guc_ct_init_post_hwconfig (struct xe_guc_ct *ct);int xe_guc_ct_enable (struct xe_guc_ct *ct); +int xe_guc_ct_restart (struct xe_guc_ct *ct);void xe_guc_ct_disable (struct xe_guc_ct *ct);void xe_guc_ct_stop (struct xe_guc_ct *ct);void xe_guc_ct_flush (struct xe_guc_ct *ct);
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 24/28 drm/xe/vf: Abort VF post migration recovery on failure
In reply to Matthew BrostIf VF post-migration recovery fails, the device is wedged. However, submission queues still need to be enabled for proper cleanup. In such cases, call into the GuC submission backend to restart all queues that were previously paused.
--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 10 ++++++++++ drivers/gpu/drm/xe/xe_guc_submit.c | 20 ++++++++++++++++++++ drivers/gpu/drm/xe/xe_guc_submit.h | 1 + 3 files changed, 31 insertions(+)
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +10 -0
@@ -1233,6 +1233,15 @@ static void vf_post_migration_kickstart(struct xe_gt *gt)xe_guc_submit_unpause (>->uc.guc); } +static void vf_post_migration_abort (struct xe_gt *gt) +{ +spin_lock_irq (>->sriov.vf.migration.lock); +WRITE_ONCE (gt->sriov.vf.migration.recovery_inprogress, false); +spin_unlock_irq (>->sriov.vf.migration.lock); + +xe_guc_submit_pause_abort (>->uc.guc); +} +static int vf_post_migration_notify_resfix_done (struct xe_gt *gt) {bool skip_resfix = false;
@@ -1289,6 +1298,7 @@ static void vf_post_migration_recovery(struct xe_gt *gt)xe_gt_sriov_notice (gt,"migration recovery ended\n" );return ; fail: +vf_post_migration_abort (gt);xe_pm_runtime_put (xe);xe_gt_sriov_err (gt,"migration recovery failed (%pe)\n" ,ERR_PTR (err));xe_device_declare_wedged (xe);
drivers/gpu/drm/xe/xe_guc_submit.c +20 -0
@@ -2335,6 +2335,26 @@ void xe_guc_submit_unpause(struct xe_guc *guc)wake_up_all (&guc->ct.wq); } +/** +* xe_guc_submit_abort - Avort all paused submission task on given GuC. +* @guc: the &xe_guc struct instance whose scheduler is to be aborted +*/ +void xe_guc_submit_pause_abort (struct xe_guc *guc) +{ +struct xe_exec_queue *q; +unsigned long index; + +mutex_lock (&guc->submission_state.lock); +xa_for_each (&guc->submission_state.exec_queue_lookup, index, q) { +struct xe_gpu_scheduler *sched = &q->guc->sched; + +xe_sched_submission_start (sched); +if (exec_queue_killed_or_banned_or_wedged (q)) +xe_guc_exec_queue_trigger_cleanup (q); + } +mutex_unlock (&guc->submission_state.lock); +} +static struct xe_exec_queue *g2h_exec_queue_lookup (struct xe_guc *guc,u32 guc_id) {
drivers/gpu/drm/xe/xe_guc_submit.h +1 -0
@@ -22,6 +22,7 @@ void xe_guc_submit_stop(struct xe_guc *guc);int xe_guc_submit_start (struct xe_guc *guc);void xe_guc_submit_pause (struct xe_guc *guc);void xe_guc_submit_unpause (struct xe_guc *guc); +void xe_guc_submit_pause_abort (struct xe_guc *guc);void xe_guc_submit_wedge (struct xe_guc *guc);int xe_guc_read_stopped (struct xe_guc *guc);
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 25/28 drm/xe/vf: Replay GuC submission state on pause / unpause
In reply to Matthew BrostFixup GuC submission pause / unpause functions to properly replay any possible state lost during VF post migration recovery.
--- drivers/gpu/drm/xe/xe_gpu_scheduler.c | 14 ++ drivers/gpu/drm/xe/xe_gpu_scheduler.h | 2 + drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 1 + drivers/gpu/drm/xe/xe_guc_exec_queue_types.h | 15 ++ drivers/gpu/drm/xe/xe_guc_submit.c | 225 +++++++++++++++++-- drivers/gpu/drm/xe/xe_guc_submit.h | 1 + drivers/gpu/drm/xe/xe_sched_job_types.h | 4 + 7 files changed, 247 insertions(+), 15 deletions(-)
drivers/gpu/drm/xe/xe_gpu_scheduler.c +14 -0
@@ -135,3 +135,17 @@ void xe_sched_add_msg_locked(struct xe_gpu_scheduler *sched,list_add_tail (&msg->link, &sched->msgs);xe_sched_process_msg_queue (sched); } + +/** +* xe_sched_add_msg_head() - Xe GPU scheduler add message to head of list +* @sched: Xe GPU scheduler +* @msg: Message to add +*/ +void xe_sched_add_msg_head (struct xe_gpu_scheduler *sched, +struct xe_sched_msg *msg) +{ +lockdep_assert_held (&sched->base.job_list_lock); + +list_add (&msg->link, &sched->msgs); +xe_sched_process_msg_queue (sched); +}
drivers/gpu/drm/xe/xe_gpu_scheduler.h +2 -0
@@ -29,6 +29,8 @@ void xe_sched_add_msg(struct xe_gpu_scheduler *sched, struct xe_sched_msg *msg);void xe_sched_add_msg_locked (struct xe_gpu_scheduler *sched,struct xe_sched_msg *msg); +void xe_sched_add_msg_head (struct xe_gpu_scheduler *sched, +struct xe_sched_msg *msg);static inline void xe_sched_msg_lock (struct xe_gpu_scheduler *sched) {
drivers/gpu/drm/xe/xe_gt_sriov_vf.c +1 -0
@@ -1226,6 +1226,7 @@ static int vf_post_migration_fixups(struct xe_gt *gt)static void vf_post_migration_rearm (struct xe_gt *gt) {xe_guc_ct_restart (>->uc.guc.ct); +xe_guc_submit_unpause_prepare (>->uc.guc); }static void vf_post_migration_kickstart (struct xe_gt *gt)
drivers/gpu/drm/xe/xe_guc_exec_queue_types.h +15 -0
@@ -51,6 +51,21 @@ struct xe_guc_exec_queue {wait_queue_head_t suspend_wait;/** @suspend_pending: a suspend of the exec_queue is pending */ bool suspend_pending; +/** +* @needs_cleanup: Needs a cleanup message during VF post migration +* recovery. +*/ +bool needs_cleanup; +/** +* @needs_suspend: Needs a suspend message during VF post migration +* recovery. +*/ +bool needs_suspend; +/** +* @needs_resume: Needs a resume message during VF post migration +* recovery. +*/ + bool needs_resume; };#endif
drivers/gpu/drm/xe/xe_guc_submit.c +210 -15
308 lines not on this page · raw message
drivers/gpu/drm/xe/xe_guc_submit.h +1 -0
@@ -22,6 +22,7 @@ void xe_guc_submit_stop(struct xe_guc *guc);int xe_guc_submit_start (struct xe_guc *guc);void xe_guc_submit_pause (struct xe_guc *guc);void xe_guc_submit_unpause (struct xe_guc *guc); +void xe_guc_submit_unpause_prepare (struct xe_guc *guc);void xe_guc_submit_pause_abort (struct xe_guc *guc);void xe_guc_submit_wedge (struct xe_guc *guc);
drivers/gpu/drm/xe/xe_sched_job_types.h +4 -0
@@ -63,6 +63,10 @@ struct xe_sched_job {bool ring_ops_flush_tlb;/** @ggtt: mapped in ggtt. */ bool ggtt; +/** @skip_emit: skip emitting the job */ +bool skip_emit; +/** @last_replay: last job being replayed */ +bool last_replay;/** @ptrs: per instance pointers. */ struct xe_job_ptrs ptrs[]; };
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 26/28 drm/xe: Move queue init before LRC creation
In reply to Matthew BrostA queue must be in the submission backend's tracking state before the LRC is created to avoid a race condition where the LRC's GGTT addresses are not properly fixed up during VF post-migration recovery.
Move the queue initialization—which adds the queue to the submission backend's tracking state—before LRC creation.
--- drivers/gpu/drm/xe/xe_exec_queue.c | 38 ++++++++++++++++++++++-------- drivers/gpu/drm/xe/xe_execlist.c | 2 +- drivers/gpu/drm/xe/xe_guc_submit.c | 2 +- drivers/gpu/drm/xe/xe_lrc.h | 10 ++++++++ 4 files changed, 40 insertions(+), 12 deletions(-)
drivers/gpu/drm/xe/xe_exec_queue.c +28 -10
@@ -179,17 +179,28 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q) flags |=XE_LRC_CREATE_RUNALONE ; } + err = q->ops->init (q); +if (err) +return err; + +/* +* This must occur after q->ops->init to avoid race conditions during VF +* post-migration recovery, as the fixups for the LRC GGTT addresses +* depend on the queue being present in the backend tracking structure. +*/ for (i =0 ; i < q->width; ++i) { - q->lrc[i] =xe_lrc_create (q->hwe, q->vm,SZ_16K , q->msix_vec, flags); -if (IS_ERR (q->lrc[i])) { - err =PTR_ERR (q->lrc[i]); +struct xe_lrc *lrc; + + lrc =xe_lrc_create (q->hwe, q->vm,xe_lrc_ring_size (), + q->msix_vec, flags); +if (IS_ERR (lrc)) { + err =PTR_ERR (lrc); goto err_lrc; } - } - err = q->ops->init (q); -if (err) - goto err_lrc; +/* Pairs with READ_ONCE to xe_exec_queue_contexts_hwsp_rebase */ +WRITE_ONCE (q->lrc[i], lrc); + }return 0 ;
@@ -1087,9 +1098,16 @@ int xe_exec_queue_contexts_hwsp_rebase(struct xe_exec_queue *q, void *scratch)int err =0 ;for (i =0 ; i < q->width; ++i) { -xe_lrc_update_memirq_regs_with_address (q->lrc[i], q->hwe, scratch); -xe_lrc_update_hwctx_regs_with_address (q->lrc[i]); - err =xe_lrc_setup_wa_bb_with_scratch (q->lrc[i], q->hwe, scratch); +struct xe_lrc *lrc; + +/* Pairs with WRITE_ONCE in __xe_exec_queue_init */ + lrc =READ_ONCE (q->lrc[i]); +if (!lrc) +continue ; + +xe_lrc_update_memirq_regs_with_address (lrc, q->hwe, scratch); +xe_lrc_update_hwctx_regs_with_address (lrc); + err =xe_lrc_setup_wa_bb_with_scratch (lrc, q->hwe, scratch);if (err)break ; }
drivers/gpu/drm/xe/xe_execlist.c +1 -1
@@ -339,7 +339,7 @@ static int execlist_exec_queue_init(struct xe_exec_queue *q)const struct drm_sched_init_args args = { .ops = &drm_sched_ops, .num_rqs =1 , - .credit_limit = q->lrc[0 ]->ring.size /MAX_JOB_SIZE_BYTES , + .credit_limit =xe_lrc_ring_size () /MAX_JOB_SIZE_BYTES , .hang_limit =XE_SCHED_HANG_LIMIT , .timeout =XE_SCHED_JOB_TIMEOUT , .name = q->hwe->name,
drivers/gpu/drm/xe/xe_guc_submit.c +1 -1
@@ -1929,7 +1929,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q) timeout = (q->vm &&xe_vm_in_lr_mode (q->vm)) ?MAX_SCHEDULE_TIMEOUT :msecs_to_jiffies (q->sched_props.job_timeout_ms); err =xe_sched_init (&ge->sched, &drm_sched_ops, &xe_sched_ops, -NULL , q->lrc[0 ]->ring.size /MAX_JOB_SIZE_BYTES ,64 , +NULL ,xe_lrc_ring_size () /MAX_JOB_SIZE_BYTES ,64 , timeout,guc_to_gt (guc)->ordered_wq,NULL , q->name,gt_to_xe (q->gt)->drm.dev);if (err)
drivers/gpu/drm/xe/xe_lrc.h +10 -0
@@ -74,6 +74,16 @@ static inline void xe_lrc_put(struct xe_lrc *lrc)kref_put (&lrc->refcount, xe_lrc_destroy); } +/** +* xe_lrc_ring_size() - Xe LRC ring size +* +* Return: Size of LRC size +*/ +static inline size_t xe_lrc_ring_size (void ) +{ +return SZ_16K ; +} +size_t xe_gt_lrc_size (struct xe_gt *gt,enum xe_engine_class class);u32 xe_lrc_pphwsp_offset (struct xe_lrc *lrc);u32 xe_lrc_regs_offset (struct xe_lrc *lrc);
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 27/28 drm/xe/vf: Add debug prints for GuC replaying state during VF recovery
In reply to Matthew BrostHelpful to manually verify the GuC state machine can correctly replay the state during a VF post-migration recovery. All replay paths have been manually verified as triggered and working during testing.
--- drivers/gpu/drm/xe/xe_guc_submit.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_guc_submit.c +17 -1
@@ -2306,14 +2306,19 @@ static void guc_exec_queue_pause(struct xe_guc *guc, struct xe_exec_queue *q) pending_enable =exec_queue_pending_enable (q); pending_resume =exec_queue_pending_resume (q); -if (pending_enable && pending_resume) +if (pending_enable && pending_resume) { q->guc->needs_resume = true; +xe_gt_dbg (guc_to_gt (guc),"Replay RESUME - guc_id=%d" , + q->guc->id); + }if (pending_enable && !pending_resume && !exec_queue_pending_tdr_exit (q)) {clear_exec_queue_registered (q);if (xe_exec_queue_is_lr (q))xe_exec_queue_put (q); +xe_gt_dbg (guc_to_gt (guc),"Replay REGISTER - guc_id=%d" , + q->guc->id); }if (pending_enable) {
@@ -2321,6 +2326,8 @@ static void guc_exec_queue_pause(struct xe_guc *guc, struct xe_exec_queue *q)clear_exec_queue_pending_resume (q);clear_exec_queue_pending_tdr_exit (q);clear_exec_queue_pending_enable (q); +xe_gt_dbg (guc_to_gt (guc),"Replay ENABLE - guc_id=%d" , + q->guc->id); }if (exec_queue_destroyed (q) &&exec_queue_registered (q)) {
@@ -2330,6 +2337,8 @@ static void guc_exec_queue_pause(struct xe_guc *guc, struct xe_exec_queue *q)else q->guc->needs_cleanup = true;clear_exec_queue_extra_ref (q); +xe_gt_dbg (guc_to_gt (guc),"Replay CLEANUP - guc_id=%d" , + q->guc->id); } pending_disable =exec_queue_pending_disable (q);
@@ -2337,6 +2346,8 @@ static void guc_exec_queue_pause(struct xe_guc *guc, struct xe_exec_queue *q)if (pending_disable &&exec_queue_suspended (q)) {clear_exec_queue_suspended (q); q->guc->needs_suspend = true; +xe_gt_dbg (guc_to_gt (guc),"Replay SUSPEND - guc_id=%d" , + q->guc->id); }if (pending_disable) {
@@ -2344,6 +2355,8 @@ static void guc_exec_queue_pause(struct xe_guc *guc, struct xe_exec_queue *q)set_exec_queue_enabled (q);clear_exec_queue_pending_disable (q);clear_exec_queue_check_timeout (q); +xe_gt_dbg (guc_to_gt (guc),"Replay DISABLE - guc_id=%d" , + q->guc->id); } q->guc->resume_time =0 ;
@@ -2442,6 +2455,9 @@ static void guc_exec_queue_unpause_prepare(struct xe_guc *guc,list_for_each_entry (s_job, &sched->base.pending_list, list) { job =to_xe_sched_job (s_job); +xe_gt_dbg (guc_to_gt (guc),"Replay JOB - guc_id=%d, seqno=%d" , + q->guc->id,xe_sched_job_seqno (job)); + q->ring_ops->emit_job (job); job->skip_emit = true; }
Signature · 1 line
2.34.1
Matthew Brost
maintainerPATCH 28/28 drm/xe/vf: Workaround for race condition in GuC firmware during VF pause
In reply to Matthew BrostA race condition exists where a paused VF's H2G request can be processed and subsequently rejected. This rejection results in a FAST_REQ failure being delivered to the KMD, which then terminates the CT via a dead worker and triggers a GT reset—an undesirable outcome.
This workaround mitigates the issue by checking if a VF post-migration recovery is in progress and aborting these adverse actions accordingly. The GuC firmware will address this bug in an upcoming release. Once that version is available and VF migration depends on it, this workaround can be safely removed.
--- drivers/gpu/drm/xe/xe_guc_ct.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/xe/xe_guc_ct.c +4 -0
@@ -1389,6 +1389,10 @@ static int parse_g2h_response(struct xe_guc_ct *ct, u32 *msg, u32 len)fast_req_report (ct, fence); +/* FIXME: W/A race in the GuC, will get in firmware soon */ +if (xe_gt_sriov_vf_recovery_inprogress (gt)) +return 0 ; +CT_DEAD (ct,NULL ,PARSE_G2H_RESPONSE );return -EPROTO ;
Signature · 1 line
2.34.1
Patchwork
CI✗ CI.checkpatch: warning for VF migration redesign
In reply to Matthew Brost== Series Details ==
== Series Details ==
Series: VF migration redesign
URL : https://patchwork.freedesktop.org/series/154627/
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 fbd08a78c3a3bb17964db2a326514c69c1dca660
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 0a49cb521204722b79e2ae72236c18de7427a73a
Author: Matthew Brost <[email protected]> Date: Tue Sep 16 20:46:15 2025 -0700
drm/xe/vf: Workaround for race condition in GuC firmware during VF pause
A race condition exists where a paused VF's H2G request can be processed and subsequently rejected. This rejection results in a FAST_REQ failure being delivered to the KMD, which then terminates the CT via a dead worker and triggers a GT reset—an undesirable outcome.
This workaround mitigates the issue by checking if a VF post-migration recovery is in progress and aborting these adverse actions accordingly. The GuC firmware will address this bug in an upcoming release. Once that version is available and VF migration depends on it, this workaround can be safely removed.
+ /mt/dim checkpatch ab86b32a024c2a431a0300c91745fca9aa0b9370 drm-intel d2b66e5ddbd0 drm/xe/vf: Lock querying GGTT config during driver init 5959da92c76b Revert "drm/xe/vf: Rebase exec queue parallel commands during migration recovery" -:10: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one
-:112: ERROR:MISSING_SIGN_OFF: Missing Signed-off-by: line(s)
total: 1 errors, 1 warnings, 0 checks, 92 lines checkedceed637ab37d Revert "drm/xe/vf: Post migration, repopulate ring area for pending request" -:10: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one
-:113: ERROR:MISSING_SIGN_OFF: Missing Signed-off-by: line(s)
total: 1 errors, 1 warnings, 0 checks, 56 lines checked7446b3574fcd Revert "drm/xe/vf: Fixup CTB send buffer messages after migration" -:10: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one
-:278: ERROR:MISSING_SIGN_OFF: Missing Signed-off-by: line(s)
total: 1 errors, 1 warnings, 0 checks, 247 lines checked43de11cbbc0e drm/xe: Save off position in ring in which a job was programmed 61c99c165fd8 drm/xe/guc: Track pending-enable source in submission state 69ef771001ec drm/xe: Track LR jobs in DRM scheduler pending list40b4981c070b drm/xe: Don't change LRC ring head on job resubmission7bc1e04cc943 drm/xe/guc: Document GuC submission backend
-:24: ERROR:BAD_SIGN_OFF: Unrecognized email address: '<Matthew Brost [email protected]>' #24:
-:327: ERROR:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Matthew Brost <[email protected]>'
total: 2 errors, 0 warnings, 0 checks, 292 lines checked26f6c484496b drm/xe/vf: Add xe_gt_sriov_vf_recovery_inprogress helper 341967ddfec9 drm/xe/vf: Make VF recovery run on per-GT worker2e16d301aa76 drm/xe/vf: Abort H2G sends during VF post-migration recovery 22636ceaf1c1 drm/xe/vf: Remove memory allocations from VF post migration recovery f3c6dd1566f9 drm/xe/vf: Close multi-GT GGTT shift race27507a4f3aa4 drm/xe/vf: Teardown VF post migration worker on driver unload 9634b48dc388 drm/xe/vf: Don't allow GT reset to be queued during VF post migration recovery 1dd9f54d3ca9 drm/xe/vf: Wakeup in GuC backend on VF post migration recovery -:22: WARNING:MEMORY_BARRIER: memory barrier without comment
#22: FILE: drivers/gpu/drm/xe/xe_gt_sriov_vf.c:818:
+ smp_wmb();
total: 0 errors, 1 warnings, 0 checks, 151 lines checkedcbb3c08333c7 drm/xe/vf: Extra debug on GGTT shift40498775256d drm/xe/vf: Use GUC_HXG_TYPE_EVENT for GuC context register -:26: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #26: FILE: drivers/gpu/drm/xe/xe_guc_ct.c:740:
+#define MAKE_ACTION(type, __action) \
+ FIELD_PREP(GUC_HXG_MSG_0_TYPE, type) | \
+ FIELD_PREP(GUC_HXG_EVENT_MSG_0_ACTION | \
+ GUC_HXG_EVENT_MSG_0_DATA0, __action)
BUT SEE:
do {} while (0) advice is over-stated in a few situations:
The more obvious case is macros, like MODULE_PARM_DESC, invoked at file-scope, where C disallows code (it must be in functions). See $exceptions if you have one to add by name.
More troublesome is declarative macros used at top of new scope, like DECLARE_PER_CPU. These might just compile with a do-while-0 wrapper, but would be incorrect. Most of these are handled by detecting struct,union,etc declaration primitives in $exceptions.
Theres also macros called inside an if (block), which "return" an expression. These cannot do-while, and need a ({}) wrapper.
Enjoy this qualification while we work to improve our heuristics.
total: 1 errors, 0 warnings, 0 checks, 46 lines checked5c12417aad9b drm/xe/vf: Stop and flush CTs in VF post migration recovery a38dddc5dd96 drm/xe/vf: Reset TLB invalidations during VF post migration recovery 85f56e8fab87 drm/xe/vf: Kickstart after resfix in VF post migration recovery 860bee3327b0 drm/xe/vf: Start CTs before resfix VF post migration recovery 42e3e35c55ba drm/xe/vf: Abort VF post migration recovery on failure c0232e223edc drm/xe/vf: Replay GuC submission state on pause / unpause b157a005bd9b drm/xe: Move queue init before LRC creationc2facdd64b48 drm/xe/vf: Add debug prints for GuC replaying state during VF recovery 0a49cb521204 drm/xe/vf: Workaround for race condition in GuC firmware during VF pause
Patchwork
CI✓ CI.KUnit: success for VF migration redesign
In reply to Matthew Brost== Series Details ==
== Series Details ==
Series: VF migration redesign
URL : https://patchwork.freedesktop.org/series/154627/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [03:55:34] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [03:55:39] 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 [03:56:08] Starting KUnit Kernel (1/1)... [03:56:08] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [03:56:08] ================== guc_buf (11 subtests) =================== [03:56:08] [PASSED] test_smallest [03:56:08] [PASSED] test_largest [03:56:08] [PASSED] test_granular [03:56:08] [PASSED] test_unique [03:56:08] [PASSED] test_overlap [03:56:08] [PASSED] test_reusable [03:56:08] [PASSED] test_too_big [03:56:08] [PASSED] test_flush [03:56:08] [PASSED] test_lookup [03:56:08] [PASSED] test_data [03:56:08] [PASSED] test_class [03:56:08] ===================== [PASSED] guc_buf ===================== [03:56:08] =================== guc_dbm (7 subtests) =================== [03:56:08] [PASSED] test_empty [03:56:08] [PASSED] test_default [03:56:08] ======================== test_size ======================== [03:56:08] [PASSED] 4 [03:56:08] [PASSED] 8 [03:56:08] [PASSED] 32 [03:56:08] [PASSED] 256 [03:56:08] ==================== [PASSED] test_size ==================== [03:56:08] ======================= test_reuse ======================== [03:56:08] [PASSED] 4 [03:56:08] [PASSED] 8 [03:56:08] [PASSED] 32 [03:56:08] [PASSED] 256 [03:56:08] =================== [PASSED] test_reuse ==================== [03:56:08] =================== test_range_overlap ==================== [03:56:08] [PASSED] 4 [03:56:08] [PASSED] 8 [03:56:08] [PASSED] 32 [03:56:08] [PASSED] 256 [03:56:08] =============== [PASSED] test_range_overlap ================ [03:56:08] =================== test_range_compact ==================== [03:56:08] [PASSED] 4 [03:56:08] [PASSED] 8 [03:56:08] [PASSED] 32 [03:56:08] [PASSED] 256 [03:56:08] =============== [PASSED] test_range_compact ================ [03:56:08] ==================== test_range_spare ===================== [03:56:08] [PASSED] 4 [03:56:08] [PASSED] 8 [03:56:08] [PASSED] 32 [03:56:08] [PASSED] 256 [03:56:08] ================ [PASSED] test_range_spare ================= [03:56:08] ===================== [PASSED] guc_dbm ===================== [03:56:08] =================== guc_idm (6 subtests) =================== [03:56:08] [PASSED] bad_init [03:56:08] [PASSED] no_init [03:56:08] [PASSED] init_fini [03:56:08] [PASSED] check_used [03:56:08] [PASSED] check_quota [03:56:08] [PASSED] check_all [03:56:08] ===================== [PASSED] guc_idm ===================== [03:56:08] ================== no_relay (3 subtests) =================== [03:56:08] [PASSED] xe_drops_guc2pf_if_not_ready [03:56:08] [PASSED] xe_drops_guc2vf_if_not_ready [03:56:08] [PASSED] xe_rejects_send_if_not_ready [03:56:08] ==================== [PASSED] no_relay ===================== [03:56:08] ================== pf_relay (14 subtests) ================== [03:56:08] [PASSED] pf_rejects_guc2pf_too_short [03:56:08] [PASSED] pf_rejects_guc2pf_too_long [03:56:08] [PASSED] pf_rejects_guc2pf_no_payload [03:56:08] [PASSED] pf_fails_no_payload [03:56:08] [PASSED] pf_fails_bad_origin [03:56:08] [PASSED] pf_fails_bad_type [03:56:08] [PASSED] pf_txn_reports_error [03:56:08] [PASSED] pf_txn_sends_pf2guc [03:56:08] [PASSED] pf_sends_pf2guc [03:56:08] [SKIPPED] pf_loopback_nop [03:56:08] [SKIPPED] pf_loopback_echo [03:56:08] [SKIPPED] pf_loopback_fail [03:56:08] [SKIPPED] pf_loopback_busy [03:56:08] [SKIPPED] pf_loopback_retry [03:56:08] ==================== [PASSED] pf_relay ===================== [03:56:08] ================== vf_relay (3 subtests) =================== [03:56:08] [PASSED] vf_rejects_guc2vf_too_short [03:56:08] [PASSED] vf_rejects_guc2vf_too_long [03:56:08] [PASSED] vf_rejects_guc2vf_no_payload [03:56:08] ==================== [PASSED] vf_relay ===================== [03:56:08] ===================== lmtt (1 subtest) ===================== [03:56:08] ======================== test_ops ========================= [03:56:08] [PASSED] 2-level [03:56:08] [PASSED] multi-level [03:56:08] ==================== [PASSED] test_ops ===================== [03:56:08] ====================== [PASSED] lmtt ======================= [03:56:08] ================= pf_service (11 subtests) ================= [03:56:08] [PASSED] pf_negotiate_any [03:56:08] [PASSED] pf_negotiate_base_match [03:56:08] [PASSED] pf_negotiate_base_newer [03:56:08] [PASSED] pf_negotiate_base_next [03:56:08] [SKIPPED] pf_negotiate_base_older [03:56:08] [PASSED] pf_negotiate_base_prev [03:56:08] [PASSED] pf_negotiate_latest_match [03:56:08] [PASSED] pf_negotiate_latest_newer [03:56:08] [PASSED] pf_negotiate_latest_next [03:56:08] [SKIPPED] pf_negotiate_latest_older [03:56:08] [SKIPPED] pf_negotiate_latest_prev [03:56:08] =================== [PASSED] pf_service ==================== [03:56:08] ================= xe_guc_g2g (2 subtests) ================== [03:56:08] ============== xe_live_guc_g2g_kunit_default ============== [03:56:08] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [03:56:08] ============== xe_live_guc_g2g_kunit_allmem =============== [03:56:08] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [03:56:08] =================== [SKIPPED] xe_guc_g2g =================== [03:56:08] =================== xe_mocs (2 subtests) =================== [03:56:08] ================ xe_live_mocs_kernel_kunit ================ [03:56:08] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [03:56:08] ================ xe_live_mocs_reset_kunit ================= [03:56:08] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [03:56:08] ==================== [SKIPPED] xe_mocs ===================== [03:56:08] ================= xe_migrate (2 subtests) ================== [03:56:08] ================= xe_migrate_sanity_kunit ================= [03:56:08] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [03:56:08] ================== xe_validate_ccs_kunit ================== [03:56:08] ============= [SKIPPED] xe_validate_ccs_kunit ============== [03:56:08] =================== [SKIPPED] xe_migrate =================== [03:56:08] ================== xe_dma_buf (1 subtest) ================== [03:56:08] ==================== xe_dma_buf_kunit ===================== [03:56:08] ================ [SKIPPED] xe_dma_buf_kunit ================ [03:56:08] =================== [SKIPPED] xe_dma_buf =================== [03:56:08] ================= xe_bo_shrink (1 subtest) ================= [03:56:08] =================== xe_bo_shrink_kunit ==================== [03:56:08] =============== [SKIPPED] xe_bo_shrink_kunit =============== [03:56:08] ================== [SKIPPED] xe_bo_shrink ================== [03:56:08] ==================== xe_bo (2 subtests) ==================== [03:56:08] ================== xe_ccs_migrate_kunit =================== [03:56:08] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [03:56:08] ==================== xe_bo_evict_kunit ==================== [03:56:08] =============== [SKIPPED] xe_bo_evict_kunit ================ [03:56:08] ===================== [SKIPPED] xe_bo ====================== [03:56:08] ==================== args (11 subtests) ==================== [03:56:08] [PASSED] count_args_test [03:56:08] [PASSED] call_args_example [03:56:08] [PASSED] call_args_test [03:56:08] [PASSED] drop_first_arg_example [03:56:08] [PASSED] drop_first_arg_test [03:56:08] [PASSED] first_arg_example [03:56:08] [PASSED] first_arg_test [03:56:08] [PASSED] last_arg_example [03:56:08] [PASSED] last_arg_test [03:56:08] [PASSED] pick_arg_example [03:56:08] [PASSED] sep_comma_example [03:56:08] ====================== [PASSED] args ======================= [03:56:08] =================== xe_pci (3 subtests) ==================== [03:56:08] ==================== check_graphics_ip ==================== [03:56:08] [PASSED] 12.70 Xe_LPG [03:56:08] [PASSED] 12.71 Xe_LPG [03:56:08] [PASSED] 12.74 Xe_LPG+ [03:56:08] [PASSED] 20.01 Xe2_HPG [03:56:08] [PASSED] 20.02 Xe2_HPG [03:56:08] [PASSED] 20.04 Xe2_LPG [03:56:08] [PASSED] 30.00 Xe3_LPG [03:56:08] [PASSED] 30.01 Xe3_LPG [03:56:08] [PASSED] 30.03 Xe3_LPG [03:56:08] ================ [PASSED] check_graphics_ip ================ [03:56:08] ===================== check_media_ip ====================== [03:56:08] [PASSED] 13.00 Xe_LPM+ [03:56:08] [PASSED] 13.01 Xe2_HPM [03:56:08] [PASSED] 20.00 Xe2_LPM [03:56:08] [PASSED] 30.00 Xe3_LPM [03:56:08] [PASSED] 30.02 Xe3_LPM [03:56:08] ================= [PASSED] check_media_ip ================== [03:56:08] ================= check_platform_gt_count ================= [03:56:08] [PASSED] 0x9A60 (TIGERLAKE) [03:56:08] [PASSED] 0x9A68 (TIGERLAKE) [03:56:08] [PASSED] 0x9A70 (TIGERLAKE) [03:56:08] [PASSED] 0x9A40 (TIGERLAKE) [03:56:08] [PASSED] 0x9A49 (TIGERLAKE) [03:56:08] [PASSED] 0x9A59 (TIGERLAKE) [03:56:08] [PASSED] 0x9A78 (TIGERLAKE) [03:56:08] [PASSED] 0x9AC0 (TIGERLAKE) [03:56:08] [PASSED] 0x9AC9 (TIGERLAKE) [03:56:08] [PASSED] 0x9AD9 (TIGERLAKE) [03:56:08] [PASSED] 0x9AF8 (TIGERLAKE) [03:56:08] [PASSED] 0x4C80 (ROCKETLAKE) [03:56:08] [PASSED] 0x4C8A (ROCKETLAKE) [03:56:08] [PASSED] 0x4C8B (ROCKETLAKE) [03:56:08] [PASSED] 0x4C8C (ROCKETLAKE) [03:56:08] [PASSED] 0x4C90 (ROCKETLAKE) [03:56:08] [PASSED] 0x4C9A (ROCKETLAKE) [03:56:08] [PASSED] 0x4680 (ALDERLAKE_S) [03:56:08] [PASSED] 0x4682 (ALDERLAKE_S) [03:56:08] [PASSED] 0x4688 (ALDERLAKE_S) [03:56:08] [PASSED] 0x468A (ALDERLAKE_S) [03:56:08] [PASSED] 0x468B (ALDERLAKE_S) [03:56:08] [PASSED] 0x4690 (ALDERLAKE_S) [03:56:08] [PASSED] 0x4692 (ALDERLAKE_S) [03:56:08] [PASSED] 0x4693 (ALDERLAKE_S) [03:56:08] [PASSED] 0x46A0 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46A1 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46A2 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46A3 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46A6 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46A8 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46AA (ALDERLAKE_P) [03:56:08] [PASSED] 0x462A (ALDERLAKE_P) [03:56:08] [PASSED] 0x4626 (ALDERLAKE_P) [03:56:08] [PASSED] 0x4628 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46B0 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46B1 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46B2 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46B3 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46C0 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46C1 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46C2 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46C3 (ALDERLAKE_P) [03:56:08] [PASSED] 0x46D0 (ALDERLAKE_N) [03:56:08] [PASSED] 0x46D1 (ALDERLAKE_N) [03:56:08] [PASSED] 0x46D2 (ALDERLAKE_N) [03:56:08] [PASSED] 0x46D3 (ALDERLAKE_N) [03:56:08] [PASSED] 0x46D4 (ALDERLAKE_N) [03:56:08] [PASSED] 0xA721 (ALDERLAKE_P) [03:56:08] [PASSED] 0xA7A1 (ALDERLAKE_P) [03:56:08] [PASSED] 0xA7A9 (ALDERLAKE_P) [03:56:08] [PASSED] 0xA7AC (ALDERLAKE_P) [03:56:08] [PASSED] 0xA7AD (ALDERLAKE_P) [03:56:08] [PASSED] 0xA720 (ALDERLAKE_P) [03:56:08] [PASSED] 0xA7A0 (ALDERLAKE_P) [03:56:08] [PASSED] 0xA7A8 (ALDERLAKE_P) [03:56:08] [PASSED] 0xA7AA (ALDERLAKE_P) [03:56:08] [PASSED] 0xA7AB (ALDERLAKE_P) [03:56:08] [PASSED] 0xA780 (ALDERLAKE_S) [03:56:08] [PASSED] 0xA781 (ALDERLAKE_S) [03:56:08] [PASSED] 0xA782 (ALDERLAKE_S) [03:56:08] [PASSED] 0xA783 (ALDERLAKE_S) [03:56:08] [PASSED] 0xA788 (ALDERLAKE_S) [03:56:08] [PASSED] 0xA789 (ALDERLAKE_S) [03:56:08] [PASSED] 0xA78A (ALDERLAKE_S) [03:56:08] [PASSED] 0xA78B (ALDERLAKE_S) [03:56:08] [PASSED] 0x4905 (DG1) [03:56:08] [PASSED] 0x4906 (DG1) [03:56:08] [PASSED] 0x4907 (DG1) [03:56:08] [PASSED] 0x4908 (DG1) [03:56:08] [PASSED] 0x4909 (DG1) [03:56:08] [PASSED] 0x56C0 (DG2) [03:56:08] [PASSED] 0x56C2 (DG2) [03:56:08] [PASSED] 0x56C1 (DG2) [03:56:08] [PASSED] 0x7D51 (METEORLAKE) [03:56:08] [PASSED] 0x7DD1 (METEORLAKE) [03:56:08] [PASSED] 0x7D41 (METEORLAKE) [03:56:08] [PASSED] 0x7D67 (METEORLAKE) [03:56:08] [PASSED] 0xB640 (METEORLAKE) [03:56:08] [PASSED] 0x56A0 (DG2) [03:56:08] [PASSED] 0x56A1 (DG2) [03:56:08] [PASSED] 0x56A2 (DG2) [03:56:08] [PASSED] 0x56BE (DG2) [03:56:08] [PASSED] 0x56BF (DG2) [03:56:08] [PASSED] 0x5690 (DG2) [03:56:08] [PASSED] 0x5691 (DG2) [03:56:08] [PASSED] 0x5692 (DG2) [03:56:08] [PASSED] 0x56A5 (DG2) [03:56:08] [PASSED] 0x56A6 (DG2) [03:56:08] [PASSED] 0x56B0 (DG2) [03:56:08] [PASSED] 0x56B1 (DG2) [03:56:08] [PASSED] 0x56BA (DG2) [03:56:08] [PASSED] 0x56BB (DG2) [03:56:08] [PASSED] 0x56BC (DG2) [03:56:08] [PASSED] 0x56BD (DG2) [03:56:08] [PASSED] 0x5693 (DG2) [03:56:08] [PASSED] 0x5694 (DG2) [03:56:08] [PASSED] 0x5695 (DG2) [03:56:08] [PASSED] 0x56A3 (DG2) [03:56:08] [PASSED] 0x56A4 (DG2) [03:56:08] [PASSED] 0x56B2 (DG2) [03:56:08] [PASSED] 0x56B3 (DG2) [03:56:08] [PASSED] 0x5696 (DG2) [03:56:08] [PASSED] 0x5697 (DG2) [03:56:08] [PASSED] 0xB69 (PVC) [03:56:08] [PASSED] 0xB6E (PVC) [03:56:08] [PASSED] 0xBD4 (PVC) [03:56:08] [PASSED] 0xBD5 (PVC) [03:56:08] [PASSED] 0xBD6 (PVC) [03:56:08] [PASSED] 0xBD7 (PVC) [03:56:08] [PASSED] 0xBD8 (PVC) [03:56:08] [PASSED] 0xBD9 (PVC) [03:56:08] [PASSED] 0xBDA (PVC) [03:56:08] [PASSED] 0xBDB (PVC) [03:56:08] [PASSED] 0xBE0 (PVC) [03:56:08] [PASSED] 0xBE1 (PVC) [03:56:08] [PASSED] 0xBE5 (PVC) [03:56:08] [PASSED] 0x7D40 (METEORLAKE) [03:56:08] [PASSED] 0x7D45 (METEORLAKE) [03:56:08] [PASSED] 0x7D55 (METEORLAKE) [03:56:08] [PASSED] 0x7D60 (METEORLAKE) [03:56:08] [PASSED] 0x7DD5 (METEORLAKE) [03:56:08] [PASSED] 0x6420 (LUNARLAKE) [03:56:08] [PASSED] 0x64A0 (LUNARLAKE) [03:56:08] [PASSED] 0x64B0 (LUNARLAKE) [03:56:08] [PASSED] 0xE202 (BATTLEMAGE) [03:56:08] [PASSED] 0xE209 (BATTLEMAGE) [03:56:08] [PASSED] 0xE20B (BATTLEMAGE) [03:56:08] [PASSED] 0xE20C (BATTLEMAGE) [03:56:08] [PASSED] 0xE20D (BATTLEMAGE) [03:56:08] [PASSED] 0xE210 (BATTLEMAGE) [03:56:08] [PASSED] 0xE211 (BATTLEMAGE) [03:56:08] [PASSED] 0xE212 (BATTLEMAGE) [03:56:08] [PASSED] 0xE216 (BATTLEMAGE) [03:56:08] [PASSED] 0xE220 (BATTLEMAGE) [03:56:08] [PASSED] 0xE221 (BATTLEMAGE) [03:56:08] [PASSED] 0xE222 (BATTLEMAGE) [03:56:08] [PASSED] 0xE223 (BATTLEMAGE) [03:56:08] [PASSED] 0xB080 (PANTHERLAKE) [03:56:08] [PASSED] 0xB081 (PANTHERLAKE) [03:56:08] [PASSED] 0xB082 (PANTHERLAKE) [03:56:08] [PASSED] 0xB083 (PANTHERLAKE) [03:56:08] [PASSED] 0xB084 (PANTHERLAKE) [03:56:08] [PASSED] 0xB085 (PANTHERLAKE) [03:56:08] [PASSED] 0xB086 (PANTHERLAKE) [03:56:08] [PASSED] 0xB087 (PANTHERLAKE) [03:56:08] [PASSED] 0xB08F (PANTHERLAKE) [03:56:08] [PASSED] 0xB090 (PANTHERLAKE) [03:56:08] [PASSED] 0xB0A0 (PANTHERLAKE) [03:56:08] [PASSED] 0xB0B0 (PANTHERLAKE) [03:56:08] [PASSED] 0xFD80 (PANTHERLAKE) [03:56:08] [PASSED] 0xFD81 (PANTHERLAKE) [03:56:08] ============= [PASSED] check_platform_gt_count ============= [03:56:08] ===================== [PASSED] xe_pci ====================== [03:56:08] =================== xe_rtp (2 subtests) ==================== [03:56:08] =============== xe_rtp_process_to_sr_tests ================ [03:56:08] [PASSED] coalesce-same-reg [03:56:08] [PASSED] no-match-no-add [03:56:08] [PASSED] match-or [03:56:08] [PASSED] match-or-xfail [03:56:08] [PASSED] no-match-no-add-multiple-rules [03:56:08] [PASSED] two-regs-two-entries [03:56:08] [PASSED] clr-one-set-other [03:56:08] [PASSED] set-field [03:56:08] [PASSED] conflict-duplicate [03:56:08] [PASSED] conflict-not-disjoint [03:56:08] [PASSED] conflict-reg-type [03:56:08] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [03:56:08] ================== xe_rtp_process_tests =================== [03:56:08] [PASSED] active1 [03:56:08] [PASSED] active2 [03:56:08] [PASSED] active-inactive [03:56:08] [PASSED] inactive-active [03:56:08] [PASSED] inactive-1st_or_active-inactive [03:56:08] [PASSED] inactive-2nd_or_active-inactive [03:56:08] [PASSED] inactive-last_or_active-inactive [03:56:08] [PASSED] inactive-no_or_active-inactive [03:56:08] ============== [PASSED] xe_rtp_process_tests =============== [03:56:08] ===================== [PASSED] xe_rtp ====================== [03:56:08] ==================== xe_wa (1 subtest) ===================== [03:56:08] ======================== xe_wa_gt ========================= [03:56:08] [PASSED] TIGERLAKE B0 [03:56:08] [PASSED] DG1 A0 [03:56:08] [PASSED] DG1 B0 [03:56:08] [PASSED] ALDERLAKE_S A0 [03:56:08] [PASSED] ALDERLAKE_S B0 [03:56:08] [PASSED] ALDERLAKE_S C0 [03:56:08] [PASSED] ALDERLAKE_S D0 [03:56:08] [PASSED] ALDERLAKE_P A0 [03:56:08] [PASSED] ALDERLAKE_P B0 [03:56:08] [PASSED] ALDERLAKE_P C0stty: 'standard input': Inappropriate ioctl for device
[03:56:08] [PASSED] ALDERLAKE_S RPLS D0
[03:56:08] [PASSED] ALDERLAKE_P RPLU E0
[03:56:08] [PASSED] DG2 G10 C0
[03:56:08] [PASSED] DG2 G11 B1
[03:56:08] [PASSED] DG2 G12 A1
[03:56:08] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[03:56:08] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[03:56:08] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[03:56:08] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[03:56:08] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[03:56:08] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[03:56:08] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [03:56:08] ==================== [PASSED] xe_wa_gt ===================== [03:56:08] ====================== [PASSED] xe_wa ====================== [03:56:08] ============================================================ [03:56:08] Testing complete. Ran 300 tests: passed: 282, skipped: 18 [03:56:08] Elapsed time: 33.522s total, 4.279s configuring, 28.877s building, 0.329s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [03:56:08] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [03:56:10] 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 [03:56:33] Starting KUnit Kernel (1/1)... [03:56:33] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [03:56:33] ============ drm_test_pick_cmdline (2 subtests) ============ [03:56:33] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [03:56:33] =============== drm_test_pick_cmdline_named =============== [03:56:33] [PASSED] NTSC [03:56:33] [PASSED] NTSC-J [03:56:33] [PASSED] PAL [03:56:33] [PASSED] PAL-M [03:56:33] =========== [PASSED] drm_test_pick_cmdline_named =========== [03:56:33] ============== [PASSED] drm_test_pick_cmdline ============== [03:56:33] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [03:56:33] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [03:56:33] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [03:56:33] =========== drm_validate_clone_mode (2 subtests) =========== [03:56:33] ============== drm_test_check_in_clone_mode =============== [03:56:33] [PASSED] in_clone_mode [03:56:33] [PASSED] not_in_clone_mode [03:56:33] ========== [PASSED] drm_test_check_in_clone_mode =========== [03:56:33] =============== drm_test_check_valid_clones =============== [03:56:33] [PASSED] not_in_clone_mode [03:56:33] [PASSED] valid_clone [03:56:33] [PASSED] invalid_clone [03:56:33] =========== [PASSED] drm_test_check_valid_clones =========== [03:56:33] ============= [PASSED] drm_validate_clone_mode ============= [03:56:33] ============= drm_validate_modeset (1 subtest) ============= [03:56:33] [PASSED] drm_test_check_connector_changed_modeset [03:56:33] ============== [PASSED] drm_validate_modeset =============== [03:56:33] ====== drm_test_bridge_get_current_state (2 subtests) ====== [03:56:33] [PASSED] drm_test_drm_bridge_get_current_state_atomic [03:56:33] [PASSED] drm_test_drm_bridge_get_current_state_legacy [03:56:33] ======== [PASSED] drm_test_bridge_get_current_state ======== [03:56:33] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [03:56:33] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [03:56:33] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [03:56:33] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy [03:56:33] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [03:56:33] ============== drm_bridge_alloc (2 subtests) =============== [03:56:33] [PASSED] drm_test_drm_bridge_alloc_basic [03:56:33] [PASSED] drm_test_drm_bridge_alloc_get_put [03:56:33] ================ [PASSED] drm_bridge_alloc ================= [03:56:33] ================== drm_buddy (7 subtests) ================== [03:56:33] [PASSED] drm_test_buddy_alloc_limit [03:56:33] [PASSED] drm_test_buddy_alloc_optimistic [03:56:33] [PASSED] drm_test_buddy_alloc_pessimistic [03:56:33] [PASSED] drm_test_buddy_alloc_pathological [03:56:33] [PASSED] drm_test_buddy_alloc_contiguous [03:56:33] [PASSED] drm_test_buddy_alloc_clear [03:56:33] [PASSED] drm_test_buddy_alloc_range_bias [03:56:33] ==================== [PASSED] drm_buddy ==================== [03:56:33] ============= drm_cmdline_parser (40 subtests) ============= [03:56:33] [PASSED] drm_test_cmdline_force_d_only [03:56:33] [PASSED] drm_test_cmdline_force_D_only_dvi [03:56:33] [PASSED] drm_test_cmdline_force_D_only_hdmi [03:56:33] [PASSED] drm_test_cmdline_force_D_only_not_digital [03:56:33] [PASSED] drm_test_cmdline_force_e_only [03:56:33] [PASSED] drm_test_cmdline_res [03:56:33] [PASSED] drm_test_cmdline_res_vesa [03:56:33] [PASSED] drm_test_cmdline_res_vesa_rblank [03:56:33] [PASSED] drm_test_cmdline_res_rblank [03:56:33] [PASSED] drm_test_cmdline_res_bpp [03:56:33] [PASSED] drm_test_cmdline_res_refresh [03:56:33] [PASSED] drm_test_cmdline_res_bpp_refresh [03:56:33] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [03:56:33] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [03:56:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [03:56:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [03:56:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [03:56:33] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [03:56:33] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [03:56:33] [PASSED] drm_test_cmdline_res_margins_force_on [03:56:33] [PASSED] drm_test_cmdline_res_vesa_margins [03:56:33] [PASSED] drm_test_cmdline_name [03:56:33] [PASSED] drm_test_cmdline_name_bpp [03:56:33] [PASSED] drm_test_cmdline_name_option [03:56:33] [PASSED] drm_test_cmdline_name_bpp_option [03:56:33] [PASSED] drm_test_cmdline_rotate_0 [03:56:33] [PASSED] drm_test_cmdline_rotate_90 [03:56:33] [PASSED] drm_test_cmdline_rotate_180 [03:56:33] [PASSED] drm_test_cmdline_rotate_270 [03:56:33] [PASSED] drm_test_cmdline_hmirror [03:56:33] [PASSED] drm_test_cmdline_vmirror [03:56:33] [PASSED] drm_test_cmdline_margin_options [03:56:33] [PASSED] drm_test_cmdline_multiple_options [03:56:33] [PASSED] drm_test_cmdline_bpp_extra_and_option [03:56:33] [PASSED] drm_test_cmdline_extra_and_option [03:56:33] [PASSED] drm_test_cmdline_freestanding_options [03:56:33] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [03:56:33] [PASSED] drm_test_cmdline_panel_orientation [03:56:33] ================ drm_test_cmdline_invalid ================= [03:56:33] [PASSED] margin_only [03:56:33] [PASSED] interlace_only [03:56:33] [PASSED] res_missing_x [03:56:33] [PASSED] res_missing_y [03:56:33] [PASSED] res_bad_y [03:56:33] [PASSED] res_missing_y_bpp [03:56:33] [PASSED] res_bad_bpp [03:56:33] [PASSED] res_bad_refresh [03:56:33] [PASSED] res_bpp_refresh_force_on_off [03:56:33] [PASSED] res_invalid_mode [03:56:33] [PASSED] res_bpp_wrong_place_mode [03:56:33] [PASSED] name_bpp_refresh [03:56:33] [PASSED] name_refresh [03:56:33] [PASSED] name_refresh_wrong_mode [03:56:33] [PASSED] name_refresh_invalid_mode [03:56:33] [PASSED] rotate_multiple [03:56:33] [PASSED] rotate_invalid_val [03:56:33] [PASSED] rotate_truncated [03:56:33] [PASSED] invalid_option [03:56:33] [PASSED] invalid_tv_option [03:56:33] [PASSED] truncated_tv_option [03:56:33] ============ [PASSED] drm_test_cmdline_invalid ============= [03:56:33] =============== drm_test_cmdline_tv_options =============== [03:56:33] [PASSED] NTSC [03:56:33] [PASSED] NTSC_443 [03:56:33] [PASSED] NTSC_J [03:56:33] [PASSED] PAL [03:56:33] [PASSED] PAL_M [03:56:33] [PASSED] PAL_N [03:56:33] [PASSED] SECAM [03:56:33] [PASSED] MONO_525 [03:56:33] [PASSED] MONO_625 [03:56:33] =========== [PASSED] drm_test_cmdline_tv_options =========== [03:56:33] =============== [PASSED] drm_cmdline_parser ================ [03:56:33] ========== drmm_connector_hdmi_init (20 subtests) ========== [03:56:33] [PASSED] drm_test_connector_hdmi_init_valid [03:56:33] [PASSED] drm_test_connector_hdmi_init_bpc_8 [03:56:33] [PASSED] drm_test_connector_hdmi_init_bpc_10 [03:56:33] [PASSED] drm_test_connector_hdmi_init_bpc_12 [03:56:33] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [03:56:33] [PASSED] drm_test_connector_hdmi_init_bpc_null [03:56:33] [PASSED] drm_test_connector_hdmi_init_formats_empty [03:56:33] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [03:56:33] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [03:56:33] [PASSED] supported_formats=0x9 yuv420_allowed=1 [03:56:33] [PASSED] supported_formats=0x9 yuv420_allowed=0 [03:56:33] [PASSED] supported_formats=0x3 yuv420_allowed=1 [03:56:33] [PASSED] supported_formats=0x3 yuv420_allowed=0 [03:56:33] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [03:56:33] [PASSED] drm_test_connector_hdmi_init_null_ddc [03:56:33] [PASSED] drm_test_connector_hdmi_init_null_product [03:56:33] [PASSED] drm_test_connector_hdmi_init_null_vendor [03:56:33] [PASSED] drm_test_connector_hdmi_init_product_length_exact [03:56:33] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [03:56:33] [PASSED] drm_test_connector_hdmi_init_product_valid [03:56:33] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [03:56:33] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [03:56:33] [PASSED] drm_test_connector_hdmi_init_vendor_valid [03:56:33] ========= drm_test_connector_hdmi_init_type_valid ========= [03:56:33] [PASSED] HDMI-A [03:56:33] [PASSED] HDMI-B [03:56:33] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [03:56:33] ======== drm_test_connector_hdmi_init_type_invalid ======== [03:56:33] [PASSED] Unknown [03:56:33] [PASSED] VGA [03:56:33] [PASSED] DVI-I [03:56:33] [PASSED] DVI-D [03:56:33] [PASSED] DVI-A [03:56:33] [PASSED] Composite [03:56:33] [PASSED] SVIDEO [03:56:33] [PASSED] LVDS [03:56:33] [PASSED] Component [03:56:33] [PASSED] DIN [03:56:33] [PASSED] DP [03:56:33] [PASSED] TV [03:56:33] [PASSED] eDP [03:56:33] [PASSED] Virtual [03:56:33] [PASSED] DSI [03:56:33] [PASSED] DPI [03:56:33] [PASSED] Writeback [03:56:33] [PASSED] SPI [03:56:33] [PASSED] USB [03:56:33] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [03:56:33] ============ [PASSED] drmm_connector_hdmi_init ============= [03:56:33] ============= drmm_connector_init (3 subtests) ============= [03:56:33] [PASSED] drm_test_drmm_connector_init [03:56:33] [PASSED] drm_test_drmm_connector_init_null_ddc [03:56:33] ========= drm_test_drmm_connector_init_type_valid ========= [03:56:33] [PASSED] Unknown [03:56:33] [PASSED] VGA [03:56:33] [PASSED] DVI-I [03:56:33] [PASSED] DVI-D [03:56:33] [PASSED] DVI-A [03:56:33] [PASSED] Composite [03:56:33] [PASSED] SVIDEO [03:56:33] [PASSED] LVDS [03:56:33] [PASSED] Component [03:56:33] [PASSED] DIN [03:56:33] [PASSED] DP [03:56:33] [PASSED] HDMI-A [03:56:33] [PASSED] HDMI-B [03:56:33] [PASSED] TV [03:56:33] [PASSED] eDP [03:56:33] [PASSED] Virtual [03:56:33] [PASSED] DSI [03:56:33] [PASSED] DPI [03:56:33] [PASSED] Writeback [03:56:33] [PASSED] SPI [03:56:33] [PASSED] USB [03:56:33] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [03:56:33] =============== [PASSED] drmm_connector_init =============== [03:56:33] ========= drm_connector_dynamic_init (6 subtests) ========== [03:56:33] [PASSED] drm_test_drm_connector_dynamic_init [03:56:33] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [03:56:33] [PASSED] drm_test_drm_connector_dynamic_init_not_added [03:56:33] [PASSED] drm_test_drm_connector_dynamic_init_properties [03:56:33] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [03:56:33] [PASSED] Unknown [03:56:33] [PASSED] VGA [03:56:33] [PASSED] DVI-I [03:56:33] [PASSED] DVI-D [03:56:33] [PASSED] DVI-A [03:56:33] [PASSED] Composite [03:56:33] [PASSED] SVIDEO [03:56:33] [PASSED] LVDS [03:56:33] [PASSED] Component [03:56:33] [PASSED] DIN [03:56:33] [PASSED] DP [03:56:33] [PASSED] HDMI-A [03:56:33] [PASSED] HDMI-B [03:56:33] [PASSED] TV [03:56:33] [PASSED] eDP [03:56:33] [PASSED] Virtual [03:56:33] [PASSED] DSI [03:56:33] [PASSED] DPI [03:56:33] [PASSED] Writeback [03:56:33] [PASSED] SPI [03:56:33] [PASSED] USB [03:56:33] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [03:56:33] ======== drm_test_drm_connector_dynamic_init_name ========= [03:56:33] [PASSED] Unknown [03:56:33] [PASSED] VGA [03:56:33] [PASSED] DVI-I [03:56:33] [PASSED] DVI-D [03:56:33] [PASSED] DVI-A [03:56:33] [PASSED] Composite [03:56:33] [PASSED] SVIDEO [03:56:33] [PASSED] LVDS [03:56:33] [PASSED] Component [03:56:33] [PASSED] DIN [03:56:33] [PASSED] DP [03:56:33] [PASSED] HDMI-A [03:56:33] [PASSED] HDMI-B [03:56:33] [PASSED] TV [03:56:33] [PASSED] eDP [03:56:33] [PASSED] Virtual [03:56:33] [PASSED] DSI [03:56:33] [PASSED] DPI [03:56:33] [PASSED] Writeback [03:56:33] [PASSED] SPI [03:56:33] [PASSED] USB [03:56:33] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [03:56:33] =========== [PASSED] drm_connector_dynamic_init ============ [03:56:33] ==== drm_connector_dynamic_register_early (4 subtests) ===== [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [03:56:33] ====== [PASSED] drm_connector_dynamic_register_early ======= [03:56:33] ======= drm_connector_dynamic_register (7 subtests) ======== [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_on_list [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_no_init [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [03:56:33] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [03:56:33] ========= [PASSED] drm_connector_dynamic_register ========== [03:56:33] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [03:56:33] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [03:56:33] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [03:56:33] === [PASSED] drm_connector_attach_broadcast_rgb_property === [03:56:33] ========== drm_get_tv_mode_from_name (2 subtests) ========== [03:56:33] ========== drm_test_get_tv_mode_from_name_valid =========== [03:56:33] [PASSED] NTSC [03:56:33] [PASSED] NTSC-443 [03:56:33] [PASSED] NTSC-J [03:56:33] [PASSED] PAL [03:56:33] [PASSED] PAL-M [03:56:33] [PASSED] PAL-N [03:56:33] [PASSED] SECAM [03:56:33] [PASSED] Mono [03:56:33] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [03:56:33] [PASSED] drm_test_get_tv_mode_from_name_truncated [03:56:33] ============ [PASSED] drm_get_tv_mode_from_name ============ [03:56:33] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [03:56:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [03:56:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [03:56:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [03:56:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [03:56:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [03:56:33] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [03:56:33] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [03:56:33] [PASSED] VIC 96 [03:56:33] [PASSED] VIC 97 [03:56:33] [PASSED] VIC 101 [03:56:33] [PASSED] VIC 102 [03:56:33] [PASSED] VIC 106 [03:56:33] [PASSED] VIC 107 [03:56:33] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [03:56:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [03:56:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [03:56:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [03:56:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [03:56:33] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [03:56:33] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [03:56:33] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [03:56:33] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [03:56:33] [PASSED] Automatic [03:56:33] [PASSED] Full [03:56:33] [PASSED] Limited 16:235 [03:56:33] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [03:56:33] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [03:56:33] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [03:56:33] == drm_hdmi_connector_get_output_format_name (2 subtests) == [03:56:33] === drm_test_drm_hdmi_connector_get_output_format_name ==== [03:56:33] [PASSED] RGB [03:56:33] [PASSED] YUV 4:2:0 [03:56:33] [PASSED] YUV 4:2:2 [03:56:33] [PASSED] YUV 4:4:4 [03:56:33] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [03:56:33] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [03:56:33] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [03:56:33] ============= drm_damage_helper (21 subtests) ============== [03:56:33] [PASSED] drm_test_damage_iter_no_damage [03:56:33] [PASSED] drm_test_damage_iter_no_damage_fractional_src [03:56:33] [PASSED] drm_test_damage_iter_no_damage_src_moved [03:56:33] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [03:56:33] [PASSED] drm_test_damage_iter_no_damage_not_visible [03:56:33] [PASSED] drm_test_damage_iter_no_damage_no_crtc [03:56:33] [PASSED] drm_test_damage_iter_no_damage_no_fb [03:56:33] [PASSED] drm_test_damage_iter_simple_damage [03:56:33] [PASSED] drm_test_damage_iter_single_damage [03:56:33] [PASSED] drm_test_damage_iter_single_damage_intersect_src [03:56:33] [PASSED] drm_test_damage_iter_single_damage_outside_src [03:56:33] [PASSED] drm_test_damage_iter_single_damage_fractional_src [03:56:33] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [03:56:33] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [03:56:33] [PASSED] drm_test_damage_iter_single_damage_src_moved [03:56:33] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [03:56:33] [PASSED] drm_test_damage_iter_damage [03:56:33] [PASSED] drm_test_damage_iter_damage_one_intersect [03:56:33] [PASSED] drm_test_damage_iter_damage_one_outside [03:56:33] [PASSED] drm_test_damage_iter_damage_src_moved [03:56:33] [PASSED] drm_test_damage_iter_damage_not_visible [03:56:33] ================ [PASSED] drm_damage_helper ================ [03:56:33] ============== drm_dp_mst_helper (3 subtests) ============== [03:56:33] ============== drm_test_dp_mst_calc_pbn_mode ============== [03:56:34] [PASSED] Clock 154000 BPP 30 DSC disabled [03:56:34] [PASSED] Clock 234000 BPP 30 DSC disabled [03:56:34] [PASSED] Clock 297000 BPP 24 DSC disabled [03:56:34] [PASSED] Clock 332880 BPP 24 DSC enabled [03:56:34] [PASSED] Clock 324540 BPP 24 DSC enabled [03:56:34] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [03:56:34] ============== drm_test_dp_mst_calc_pbn_div =============== [03:56:34] [PASSED] Link rate 2000000 lane count 4 [03:56:34] [PASSED] Link rate 2000000 lane count 2 [03:56:34] [PASSED] Link rate 2000000 lane count 1 [03:56:34] [PASSED] Link rate 1350000 lane count 4 [03:56:34] [PASSED] Link rate 1350000 lane count 2 [03:56:34] [PASSED] Link rate 1350000 lane count 1 [03:56:34] [PASSED] Link rate 1000000 lane count 4 [03:56:34] [PASSED] Link rate 1000000 lane count 2 [03:56:34] [PASSED] Link rate 1000000 lane count 1 [03:56:34] [PASSED] Link rate 810000 lane count 4 [03:56:34] [PASSED] Link rate 810000 lane count 2 [03:56:34] [PASSED] Link rate 810000 lane count 1 [03:56:34] [PASSED] Link rate 540000 lane count 4 [03:56:34] [PASSED] Link rate 540000 lane count 2 [03:56:34] [PASSED] Link rate 540000 lane count 1 [03:56:34] [PASSED] Link rate 270000 lane count 4 [03:56:34] [PASSED] Link rate 270000 lane count 2 [03:56:34] [PASSED] Link rate 270000 lane count 1 [03:56:34] [PASSED] Link rate 162000 lane count 4 [03:56:34] [PASSED] Link rate 162000 lane count 2 [03:56:34] [PASSED] Link rate 162000 lane count 1 [03:56:34] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [03:56:34] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [03:56:34] [PASSED] DP_ENUM_PATH_RESOURCES with port number [03:56:34] [PASSED] DP_POWER_UP_PHY with port number [03:56:34] [PASSED] DP_POWER_DOWN_PHY with port number [03:56:34] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [03:56:34] [PASSED] DP_ALLOCATE_PAYLOAD with port number [03:56:34] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [03:56:34] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [03:56:34] [PASSED] DP_QUERY_PAYLOAD with port number [03:56:34] [PASSED] DP_QUERY_PAYLOAD with VCPI [03:56:34] [PASSED] DP_REMOTE_DPCD_READ with port number [03:56:34] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [03:56:34] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [03:56:34] [PASSED] DP_REMOTE_DPCD_WRITE with port number [03:56:34] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [03:56:34] [PASSED] DP_REMOTE_DPCD_WRITE with data array [03:56:34] [PASSED] DP_REMOTE_I2C_READ with port number [03:56:34] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [03:56:34] [PASSED] DP_REMOTE_I2C_READ with transactions array [03:56:34] [PASSED] DP_REMOTE_I2C_WRITE with port number [03:56:34] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [03:56:34] [PASSED] DP_REMOTE_I2C_WRITE with data array [03:56:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [03:56:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [03:56:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [03:56:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [03:56:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [03:56:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [03:56:34] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [03:56:34] ================ [PASSED] drm_dp_mst_helper ================ [03:56:34] ================== drm_exec (7 subtests) =================== [03:56:34] [PASSED] sanitycheck [03:56:34] [PASSED] test_lock [03:56:34] [PASSED] test_lock_unlock [03:56:34] [PASSED] test_duplicates [03:56:34] [PASSED] test_prepare [03:56:34] [PASSED] test_prepare_array [03:56:34] [PASSED] test_multiple_loops [03:56:34] ==================== [PASSED] drm_exec ===================== [03:56:34] =========== drm_format_helper_test (17 subtests) =========== [03:56:34] ============== drm_test_fb_xrgb8888_to_gray8 ============== [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [03:56:34] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [03:56:34] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [03:56:34] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [03:56:34] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [03:56:34] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [03:56:34] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [03:56:34] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [03:56:34] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [03:56:34] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [03:56:34] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [03:56:34] ============== drm_test_fb_xrgb8888_to_mono =============== [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [03:56:34] ==================== drm_test_fb_swab ===================== [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ================ [PASSED] drm_test_fb_swab ================= [03:56:34] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [03:56:34] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [03:56:34] [PASSED] single_pixel_source_buffer [03:56:34] [PASSED] single_pixel_clip_rectangle [03:56:34] [PASSED] well_known_colors [03:56:34] [PASSED] destination_pitch [03:56:34] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [03:56:34] ================= drm_test_fb_clip_offset ================= [03:56:34] [PASSED] pass through [03:56:34] [PASSED] horizontal offset [03:56:34] [PASSED] vertical offset [03:56:34] [PASSED] horizontal and vertical offset [03:56:34] [PASSED] horizontal offset (custom pitch) [03:56:34] [PASSED] vertical offset (custom pitch) [03:56:34] [PASSED] horizontal and vertical offset (custom pitch) [03:56:34] ============= [PASSED] drm_test_fb_clip_offset ============= [03:56:34] =================== drm_test_fb_memcpy ==================== [03:56:34] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [03:56:34] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [03:56:34] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [03:56:34] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [03:56:34] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [03:56:34] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [03:56:34] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [03:56:34] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [03:56:34] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [03:56:34] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [03:56:34] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [03:56:34] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [03:56:34] =============== [PASSED] drm_test_fb_memcpy ================ [03:56:34] ============= [PASSED] drm_format_helper_test ============== [03:56:34] ================= drm_format (18 subtests) ================= [03:56:34] [PASSED] drm_test_format_block_width_invalid [03:56:34] [PASSED] drm_test_format_block_width_one_plane [03:56:34] [PASSED] drm_test_format_block_width_two_plane [03:56:34] [PASSED] drm_test_format_block_width_three_plane [03:56:34] [PASSED] drm_test_format_block_width_tiled [03:56:34] [PASSED] drm_test_format_block_height_invalid [03:56:34] [PASSED] drm_test_format_block_height_one_plane [03:56:34] [PASSED] drm_test_format_block_height_two_plane [03:56:34] [PASSED] drm_test_format_block_height_three_plane [03:56:34] [PASSED] drm_test_format_block_height_tiled [03:56:34] [PASSED] drm_test_format_min_pitch_invalid [03:56:34] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [03:56:34] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [03:56:34] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [03:56:34] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [03:56:34] [PASSED] drm_test_format_min_pitch_two_plane [03:56:34] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [03:56:34] [PASSED] drm_test_format_min_pitch_tiled [03:56:34] =================== [PASSED] drm_format ==================== [03:56:34] ============== drm_framebuffer (10 subtests) =============== [03:56:34] ========== drm_test_framebuffer_check_src_coords ========== [03:56:34] [PASSED] Success: source fits into fb [03:56:34] [PASSED] Fail: overflowing fb with x-axis coordinate [03:56:34] [PASSED] Fail: overflowing fb with y-axis coordinate [03:56:34] [PASSED] Fail: overflowing fb with source width [03:56:34] [PASSED] Fail: overflowing fb with source height [03:56:34] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [03:56:34] [PASSED] drm_test_framebuffer_cleanup [03:56:34] =============== drm_test_framebuffer_create =============== [03:56:34] [PASSED] ABGR8888 normal sizes [03:56:34] [PASSED] ABGR8888 max sizes [03:56:34] [PASSED] ABGR8888 pitch greater than min required [03:56:34] [PASSED] ABGR8888 pitch less than min required [03:56:34] [PASSED] ABGR8888 Invalid width [03:56:34] [PASSED] ABGR8888 Invalid buffer handle [03:56:34] [PASSED] No pixel format [03:56:34] [PASSED] ABGR8888 Width 0 [03:56:34] [PASSED] ABGR8888 Height 0 [03:56:34] [PASSED] ABGR8888 Out of bound height * pitch combination [03:56:34] [PASSED] ABGR8888 Large buffer offset [03:56:34] [PASSED] ABGR8888 Buffer offset for inexistent plane [03:56:34] [PASSED] ABGR8888 Invalid flag [03:56:34] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [03:56:34] [PASSED] ABGR8888 Valid buffer modifier [03:56:34] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [03:56:34] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [03:56:34] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [03:56:34] [PASSED] NV12 Normal sizes [03:56:34] [PASSED] NV12 Max sizes [03:56:34] [PASSED] NV12 Invalid pitch [03:56:34] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [03:56:34] [PASSED] NV12 different modifier per-plane [03:56:34] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [03:56:34] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [03:56:34] [PASSED] NV12 Modifier for inexistent plane [03:56:34] [PASSED] NV12 Handle for inexistent plane [03:56:34] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [03:56:34] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [03:56:34] [PASSED] YVU420 Normal sizes [03:56:34] [PASSED] YVU420 Max sizes [03:56:34] [PASSED] YVU420 Invalid pitch [03:56:34] [PASSED] YVU420 Different pitches [03:56:34] [PASSED] YVU420 Different buffer offsets/pitches [03:56:34] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [03:56:34] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [03:56:34] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [03:56:34] [PASSED] YVU420 Valid modifier [03:56:34] [PASSED] YVU420 Different modifiers per plane [03:56:34] [PASSED] YVU420 Modifier for inexistent plane [03:56:34] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [03:56:34] [PASSED] X0L2 Normal sizes [03:56:34] [PASSED] X0L2 Max sizes [03:56:34] [PASSED] X0L2 Invalid pitch [03:56:34] [PASSED] X0L2 Pitch greater than minimum required [03:56:34] [PASSED] X0L2 Handle for inexistent plane [03:56:34] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [03:56:34] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [03:56:34] [PASSED] X0L2 Valid modifier [03:56:34] [PASSED] X0L2 Modifier for inexistent plane [03:56:34] =========== [PASSED] drm_test_framebuffer_create =========== [03:56:34] [PASSED] drm_test_framebuffer_free [03:56:34] [PASSED] drm_test_framebuffer_init [03:56:34] [PASSED] drm_test_framebuffer_init_bad_format [03:56:34] [PASSED] drm_test_framebuffer_init_dev_mismatch [03:56:34] [PASSED] drm_test_framebuffer_lookup [03:56:34] [PASSED] drm_test_framebuffer_lookup_inexistent [03:56:34] [PASSED] drm_test_framebuffer_modifiers_not_supported [03:56:34] ================= [PASSED] drm_framebuffer ================= [03:56:34] ================ drm_gem_shmem (8 subtests) ================ [03:56:34] [PASSED] drm_gem_shmem_test_obj_create [03:56:34] [PASSED] drm_gem_shmem_test_obj_create_private [03:56:34] [PASSED] drm_gem_shmem_test_pin_pages [03:56:34] [PASSED] drm_gem_shmem_test_vmap [03:56:34] [PASSED] drm_gem_shmem_test_get_pages_sgt [03:56:34] [PASSED] drm_gem_shmem_test_get_sg_table [03:56:34] [PASSED] drm_gem_shmem_test_madvise [03:56:34] [PASSED] drm_gem_shmem_test_purge [03:56:34] ================== [PASSED] drm_gem_shmem ================== [03:56:34] === drm_atomic_helper_connector_hdmi_check (27 subtests) === [03:56:34] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [03:56:34] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [03:56:34] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [03:56:34] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [03:56:34] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [03:56:34] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [03:56:34] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [03:56:34] [PASSED] Automatic [03:56:34] [PASSED] Full [03:56:34] [PASSED] Limited 16:235 [03:56:34] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [03:56:34] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [03:56:34] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [03:56:34] [PASSED] drm_test_check_disable_connector [03:56:34] [PASSED] drm_test_check_hdmi_funcs_reject_rate [03:56:34] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [03:56:34] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [03:56:34] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [03:56:34] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [03:56:34] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [03:56:34] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [03:56:34] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [03:56:34] [PASSED] drm_test_check_output_bpc_dvi [03:56:34] [PASSED] drm_test_check_output_bpc_format_vic_1 [03:56:34] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [03:56:34] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [03:56:34] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [03:56:34] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [03:56:34] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [03:56:34] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [03:56:34] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [03:56:34] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [03:56:34] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [03:56:34] [PASSED] drm_test_check_broadcast_rgb_value [03:56:34] [PASSED] drm_test_check_bpc_8_value [03:56:34] [PASSED] drm_test_check_bpc_10_value [03:56:34] [PASSED] drm_test_check_bpc_12_value [03:56:34] [PASSED] drm_test_check_format_value [03:56:34] [PASSED] drm_test_check_tmds_char_value [03:56:34] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [03:56:34] = drm_atomic_helper_connector_hdmi_mode_valid (4 subtests) = [03:56:34] [PASSED] drm_test_check_mode_valid [03:56:34] [PASSED] drm_test_check_mode_valid_reject [03:56:34] [PASSED] drm_test_check_mode_valid_reject_rate [03:56:34] [PASSED] drm_test_check_mode_valid_reject_max_clock [03:56:34] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [03:56:34] ================= drm_managed (2 subtests) ================= [03:56:34] [PASSED] drm_test_managed_release_action [03:56:34] [PASSED] drm_test_managed_run_action [03:56:34] =================== [PASSED] drm_managed =================== [03:56:34] =================== drm_mm (6 subtests) ==================== [03:56:34] [PASSED] drm_test_mm_init [03:56:34] [PASSED] drm_test_mm_debug [03:56:34] [PASSED] drm_test_mm_align32 [03:56:34] [PASSED] drm_test_mm_align64 [03:56:34] [PASSED] drm_test_mm_lowest [03:56:34] [PASSED] drm_test_mm_highest [03:56:34] ===================== [PASSED] drm_mm ====================== [03:56:34] ============= drm_modes_analog_tv (5 subtests) ============= [03:56:34] [PASSED] drm_test_modes_analog_tv_mono_576i [03:56:34] [PASSED] drm_test_modes_analog_tv_ntsc_480i [03:56:34] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [03:56:34] [PASSED] drm_test_modes_analog_tv_pal_576i [03:56:34] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [03:56:34] =============== [PASSED] drm_modes_analog_tv =============== [03:56:34] ============== drm_plane_helper (2 subtests) =============== [03:56:34] =============== drm_test_check_plane_state ================ [03:56:34] [PASSED] clipping_simple [03:56:34] [PASSED] clipping_rotate_reflect [03:56:34] [PASSED] positioning_simple [03:56:34] [PASSED] upscaling [03:56:34] [PASSED] downscaling [03:56:34] [PASSED] rounding1 [03:56:34] [PASSED] rounding2 [03:56:34] [PASSED] rounding3 [03:56:34] [PASSED] rounding4 [03:56:34] =========== [PASSED] drm_test_check_plane_state ============ [03:56:34] =========== drm_test_check_invalid_plane_state ============ [03:56:34] [PASSED] positioning_invalid [03:56:34] [PASSED] upscaling_invalid [03:56:34] [PASSED] downscaling_invalid [03:56:34] ======= [PASSED] drm_test_check_invalid_plane_state ======== [03:56:34] ================ [PASSED] drm_plane_helper ================= [03:56:34] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [03:56:34] ====== drm_test_connector_helper_tv_get_modes_check ======= [03:56:34] [PASSED] None [03:56:34] [PASSED] PAL [03:56:34] [PASSED] NTSC [03:56:34] [PASSED] Both, NTSC Default [03:56:34] [PASSED] Both, PAL Default [03:56:34] [PASSED] Both, NTSC Default, with PAL on command-line [03:56:34] [PASSED] Both, PAL Default, with NTSC on command-line [03:56:34] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [03:56:34] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [03:56:34] ================== drm_rect (9 subtests) =================== [03:56:34] [PASSED] drm_test_rect_clip_scaled_div_by_zero [03:56:34] [PASSED] drm_test_rect_clip_scaled_not_clipped [03:56:34] [PASSED] drm_test_rect_clip_scaled_clipped [03:56:34] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [03:56:34] ================= drm_test_rect_intersect ================= [03:56:34] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [03:56:34] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [03:56:34] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [03:56:34] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [03:56:34] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [03:56:34] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [03:56:34] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [03:56:34] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [03:56:34] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [03:56:34] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [03:56:34] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [03:56:34] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [03:56:34] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [03:56:34] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [03:56:34] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [03:56:34] ============= [PASSED] drm_test_rect_intersect ============= [03:56:34] ================ drm_test_rect_calc_hscale ================ [03:56:34] [PASSED] normal use [03:56:34] [PASSED] out of max range [03:56:34] [PASSED] out of min range [03:56:34] [PASSED] zero dst [03:56:34] [PASSED] negative src [03:56:34] [PASSED] negative dst [03:56:34] ============ [PASSED] drm_test_rect_calc_hscale ============ [03:56:34] ================ drm_test_rect_calc_vscale ================ [03:56:34] [PASSED] normal use [03:56:34] [PASSED] out of max range [03:56:34] [PASSED] out of min range [03:56:34] [PASSED] zero dst [03:56:34] [PASSED] negative src stty: 'standard input': Inappropriate ioctl for device [03:56:34] [PASSED] negative dst [03:56:34] ============ [PASSED] drm_test_rect_calc_vscale ============ [03:56:34] ================== drm_test_rect_rotate =================== [03:56:34] [PASSED] reflect-x [03:56:34] [PASSED] reflect-y [03:56:34] [PASSED] rotate-0 [03:56:34] [PASSED] rotate-90 [03:56:34] [PASSED] rotate-180 [03:56:34] [PASSED] rotate-270 [03:56:34] ============== [PASSED] drm_test_rect_rotate =============== [03:56:34] ================ drm_test_rect_rotate_inv ================= [03:56:34] [PASSED] reflect-x [03:56:34] [PASSED] reflect-y [03:56:34] [PASSED] rotate-0 [03:56:34] [PASSED] rotate-90 [03:56:34] [PASSED] rotate-180 [03:56:34] [PASSED] rotate-270 [03:56:34] ============ [PASSED] drm_test_rect_rotate_inv ============= [03:56:34] ==================== [PASSED] drm_rect ===================== [03:56:34] ============ drm_sysfb_modeset_test (1 subtest) ============ [03:56:34] ============ drm_test_sysfb_build_fourcc_list ============= [03:56:34] [PASSED] no native formats [03:56:34] [PASSED] XRGB8888 as native format [03:56:34] [PASSED] remove duplicates [03:56:34] [PASSED] convert alpha formats [03:56:34] [PASSED] random formats [03:56:34] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [03:56:34] ============= [PASSED] drm_sysfb_modeset_test ============== [03:56:34] ============================================================ [03:56:34] Testing complete. Ran 621 tests: passed: 621 [03:56:34] Elapsed time: 25.503s total, 1.692s configuring, 23.645s building, 0.146s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [03:56:34] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [03:56:35] 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 [03:56:45] Starting KUnit Kernel (1/1)... [03:56:45] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [03:56:45] ================= ttm_device (5 subtests) ================== [03:56:45] [PASSED] ttm_device_init_basic [03:56:45] [PASSED] ttm_device_init_multiple [03:56:45] [PASSED] ttm_device_fini_basic [03:56:45] [PASSED] ttm_device_init_no_vma_man [03:56:45] ================== ttm_device_init_pools ================== [03:56:45] [PASSED] No DMA allocations, no DMA32 required [03:56:45] [PASSED] DMA allocations, DMA32 required [03:56:45] [PASSED] No DMA allocations, DMA32 required [03:56:45] [PASSED] DMA allocations, no DMA32 required [03:56:45] ============== [PASSED] ttm_device_init_pools ============== [03:56:45] =================== [PASSED] ttm_device ==================== [03:56:45] ================== ttm_pool (8 subtests) =================== [03:56:45] ================== ttm_pool_alloc_basic =================== [03:56:45] [PASSED] One page [03:56:45] [PASSED] More than one page [03:56:45] [PASSED] Above the allocation limit [03:56:45] [PASSED] One page, with coherent DMA mappings enabled [03:56:45] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [03:56:45] ============== [PASSED] ttm_pool_alloc_basic =============== [03:56:45] ============== ttm_pool_alloc_basic_dma_addr ============== [03:56:45] [PASSED] One page [03:56:45] [PASSED] More than one page [03:56:45] [PASSED] Above the allocation limit [03:56:45] [PASSED] One page, with coherent DMA mappings enabled [03:56:45] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [03:56:45] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [03:56:45] [PASSED] ttm_pool_alloc_order_caching_match [03:56:45] [PASSED] ttm_pool_alloc_caching_mismatch [03:56:45] [PASSED] ttm_pool_alloc_order_mismatch [03:56:45] [PASSED] ttm_pool_free_dma_alloc [03:56:45] [PASSED] ttm_pool_free_no_dma_alloc [03:56:45] [PASSED] ttm_pool_fini_basic [03:56:45] ==================== [PASSED] ttm_pool ===================== [03:56:45] ================ ttm_resource (8 subtests) ================= [03:56:45] ================= ttm_resource_init_basic ================= [03:56:45] [PASSED] Init resource in TTM_PL_SYSTEM [03:56:45] [PASSED] Init resource in TTM_PL_VRAM [03:56:45] [PASSED] Init resource in a private placement [03:56:45] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [03:56:45] ============= [PASSED] ttm_resource_init_basic ============= [03:56:45] [PASSED] ttm_resource_init_pinned [03:56:45] [PASSED] ttm_resource_fini_basic [03:56:45] [PASSED] ttm_resource_manager_init_basic [03:56:45] [PASSED] ttm_resource_manager_usage_basic [03:56:45] [PASSED] ttm_resource_manager_set_used_basic [03:56:45] [PASSED] ttm_sys_man_alloc_basic [03:56:45] [PASSED] ttm_sys_man_free_basic [03:56:45] ================== [PASSED] ttm_resource =================== [03:56:45] =================== ttm_tt (15 subtests) =================== [03:56:45] ==================== ttm_tt_init_basic ==================== [03:56:45] [PASSED] Page-aligned size [03:56:45] [PASSED] Extra pages requested [03:56:45] ================ [PASSED] ttm_tt_init_basic ================ [03:56:45] [PASSED] ttm_tt_init_misaligned [03:56:45] [PASSED] ttm_tt_fini_basic [03:56:45] [PASSED] ttm_tt_fini_sg [03:56:45] [PASSED] ttm_tt_fini_shmem [03:56:45] [PASSED] ttm_tt_create_basic [03:56:45] [PASSED] ttm_tt_create_invalid_bo_type [03:56:45] [PASSED] ttm_tt_create_ttm_exists [03:56:45] [PASSED] ttm_tt_create_failed [03:56:45] [PASSED] ttm_tt_destroy_basic [03:56:45] [PASSED] ttm_tt_populate_null_ttm [03:56:45] [PASSED] ttm_tt_populate_populated_ttm [03:56:45] [PASSED] ttm_tt_unpopulate_basic [03:56:45] [PASSED] ttm_tt_unpopulate_empty_ttm [03:56:45] [PASSED] ttm_tt_swapin_basic [03:56:45] ===================== [PASSED] ttm_tt ====================== [03:56:45] =================== ttm_bo (14 subtests) =================== [03:56:45] =========== ttm_bo_reserve_optimistic_no_ticket =========== [03:56:45] [PASSED] Cannot be interrupted and sleeps [03:56:45] [PASSED] Cannot be interrupted, locks straight away [03:56:45] [PASSED] Can be interrupted, sleeps [03:56:45] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [03:56:45] [PASSED] ttm_bo_reserve_locked_no_sleep [03:56:45] [PASSED] ttm_bo_reserve_no_wait_ticket [03:56:45] [PASSED] ttm_bo_reserve_double_resv [03:56:45] [PASSED] ttm_bo_reserve_interrupted [03:56:45] [PASSED] ttm_bo_reserve_deadlock [03:56:45] [PASSED] ttm_bo_unreserve_basic [03:56:45] [PASSED] ttm_bo_unreserve_pinned [03:56:45] [PASSED] ttm_bo_unreserve_bulk [03:56:45] [PASSED] ttm_bo_put_basic [03:56:45] [PASSED] ttm_bo_put_shared_resv [03:56:45] [PASSED] ttm_bo_pin_basic [03:56:45] [PASSED] ttm_bo_pin_unpin_resource [03:56:45] [PASSED] ttm_bo_multiple_pin_one_unpin [03:56:45] ===================== [PASSED] ttm_bo ====================== [03:56:45] ============== ttm_bo_validate (21 subtests) =============== [03:56:45] ============== ttm_bo_init_reserved_sys_man =============== [03:56:45] [PASSED] Buffer object for userspace [03:56:45] [PASSED] Kernel buffer object [03:56:45] [PASSED] Shared buffer object [03:56:45] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [03:56:45] ============== ttm_bo_init_reserved_mock_man ============== [03:56:45] [PASSED] Buffer object for userspace [03:56:45] [PASSED] Kernel buffer object [03:56:45] [PASSED] Shared buffer object [03:56:45] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [03:56:45] [PASSED] ttm_bo_init_reserved_resv [03:56:45] ================== ttm_bo_validate_basic ================== [03:56:45] [PASSED] Buffer object for userspace [03:56:45] [PASSED] Kernel buffer object [03:56:45] [PASSED] Shared buffer object [03:56:45] ============== [PASSED] ttm_bo_validate_basic ============== [03:56:45] [PASSED] ttm_bo_validate_invalid_placement [03:56:45] ============= ttm_bo_validate_same_placement ============== [03:56:45] [PASSED] System manager [03:56:45] [PASSED] VRAM manager [03:56:45] ========= [PASSED] ttm_bo_validate_same_placement ========== [03:56:45] [PASSED] ttm_bo_validate_failed_alloc [03:56:45] [PASSED] ttm_bo_validate_pinned [03:56:45] [PASSED] ttm_bo_validate_busy_placement [03:56:45] ================ ttm_bo_validate_multihop ================= [03:56:45] [PASSED] Buffer object for userspace [03:56:45] [PASSED] Kernel buffer object [03:56:45] [PASSED] Shared buffer object [03:56:45] ============ [PASSED] ttm_bo_validate_multihop ============= [03:56:45] ========== ttm_bo_validate_no_placement_signaled ========== [03:56:45] [PASSED] Buffer object in system domain, no page vector [03:56:45] [PASSED] Buffer object in system domain with an existing page vector [03:56:45] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [03:56:45] ======== ttm_bo_validate_no_placement_not_signaled ======== [03:56:45] [PASSED] Buffer object for userspace [03:56:45] [PASSED] Kernel buffer object [03:56:45] [PASSED] Shared buffer object [03:56:45] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [03:56:45] [PASSED] ttm_bo_validate_move_fence_signaled [03:56:45] ========= ttm_bo_validate_move_fence_not_signaled ========= [03:56:45] [PASSED] Waits for GPU [03:56:45] [PASSED] Tries to lock straight away [03:56:45] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [03:56:45] [PASSED] ttm_bo_validate_happy_evict [03:56:45] [PASSED] ttm_bo_validate_all_pinned_evict [03:56:45] [PASSED] ttm_bo_validate_allowed_only_evict [03:56:45] [PASSED] ttm_bo_validate_deleted_evict [03:56:45] [PASSED] ttm_bo_validate_busy_domain_evict [03:56:45] [PASSED] ttm_bo_validate_evict_gutting [03:56:45] [PASSED] ttm_bo_validate_recrusive_evict stty: 'standard input': Inappropriate ioctl for device [03:56:45] ================= [PASSED] ttm_bo_validate ================= [03:56:45] ============================================================ [03:56:45] Testing complete. Ran 101 tests: passed: 101 [03:56:45] Elapsed time: 11.196s total, 1.730s configuring, 9.249s building, 0.179s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✗ Xe.CI.BAT: failure for VF migration redesign
In reply to Matthew Brost== Series Details ==
== Series Details ==
Series: VF migration redesign
URL : https://patchwork.freedesktop.org/series/154627/
State : failure
== Summary ==
CI Bug Log - changes from xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370_BAT -> xe-pw-154627v1_BAT
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with xe-pw-154627v1_BAT absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-154627v1_BAT, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (11 -> 11)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in xe-pw-154627v1_BAT:
### IGT changes ###
#### Possible regressions ####
* igt@sriov_basic@enable-vfs-autoprobe-on:
- bat-adlp-7: [PASS][1] -> [ABORT][2] +1 other test abort
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/bat-adlp-7/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/bat-adlp-7/igt@[email protected]
* igt@xe_module_load@load:
- bat-adlp-vm: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/bat-adlp-vm/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/bat-adlp-vm/igt@[email protected]
Build changes
-------------
* Linux: xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370 -> xe-pw-154627v1
IGT_8541: 8541
xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370: ab86b32a024c2a431a0300c91745fca9aa0b9370
xe-pw-154627v1: 154627v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/index.html
Patchwork
CI✗ Xe.CI.Full: failure for VF migration redesign
In reply to Matthew Brost== Series Details ==
== Series Details ==
Series: VF migration redesign
URL : https://patchwork.freedesktop.org/series/154627/
State : failure
== Summary ==
CI Bug Log - changes from xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370_FULL -> xe-pw-154627v1_FULL
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with xe-pw-154627v1_FULL absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-154627v1_FULL, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (4 -> 4)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in xe-pw-154627v1_FULL:
### IGT changes ###
#### Possible regressions ####
* igt@xe_evict@evict-beng-small-external:
- shard-dg2-set2: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@xe_exec_compute_mode@non-blocking:
- shard-bmg: [PASS][2] -> [INCOMPLETE][3]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-3/igt@[email protected]
- shard-dg2-set2: NOTRUN -> [INCOMPLETE][4]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
- shard-lnl: [PASS][5] -> [FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-lnl-5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-lnl-5/igt@[email protected]
- shard-adlp: [PASS][7] -> [FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-9/igt@[email protected]
* igt@xe_pmu@engine-activity-most-load-idle:
- shard-adlp: [PASS][9] -> [ABORT][10] +23 other tests abort
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-2/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@xe_pmu@engine-activity-render-node-idle}:
- shard-adlp: [PASS][11] -> [ABORT][12] +12 other tests abort
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-1/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-8/igt@[email protected]
Known issues
------------
Here are the changes found in xe-pw-154627v1_FULL that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-dg2-set2: NOTRUN -> [SKIP][13] ([Intel XE#1124])
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
* igt@kms_ccs@crc-primary-suspend-y-tiled-gen12-rc-ccs@pipe-c-hdmi-a-2:
- shard-dg2-set2: NOTRUN -> [SKIP][14] ([Intel XE#787]) +125 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@kms_ccs@[email protected]
* igt@kms_ccs@random-ccs-data-y-tiled-ccs@pipe-d-dp-2:
- shard-dg2-set2: NOTRUN -> [SKIP][15] ([Intel XE#455] / [Intel XE#787]) +19 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@kms_ccs@[email protected]
* igt@kms_chamelium_frames@hdmi-crc-nonplanar-formats:
- shard-dg2-set2: NOTRUN -> [SKIP][16] ([Intel XE#373])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@kms_content_protection@atomic@pipe-a-dp-2:
- shard-dg2-set2: NOTRUN -> [FAIL][17] ([Intel XE#1178]) +1 other test fail
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@kms_content_protection@[email protected]
* igt@kms_content_protection@uevent@pipe-a-dp-4:
- shard-dg2-set2: NOTRUN -> [FAIL][18] ([Intel XE#1188])
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-435/igt@kms_content_protection@[email protected]
* igt@kms_cursor_crc@cursor-onscreen-512x512:
- shard-dg2-set2: NOTRUN -> [SKIP][19] ([Intel XE#308])
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@kms_dither@fb-8bpc-vs-panel-6bpc:
- shard-bmg: [PASS][20] -> [SKIP][21] ([Intel XE#1340])
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-4/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-6/igt@[email protected]
* igt@kms_flip@2x-flip-vs-dpms-on-nop:
- shard-bmg: [PASS][22] -> [SKIP][23] ([Intel XE#2316]) +3 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-4/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-6/igt@[email protected]
* igt@kms_flip@flip-vs-absolute-wf_vblank-interruptible@c-hdmi-a1:
- shard-adlp: [PASS][24] -> [DMESG-WARN][25] ([Intel XE#4543]) +4 other tests dmesg-warn
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-6/igt@kms_flip@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-3/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-spr-indfb-fullscreen:
- shard-dg2-set2: NOTRUN -> [SKIP][26] ([Intel XE#651]) +2 other tests skip
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-shrfb-msflip-blt:
- shard-dg2-set2: NOTRUN -> [SKIP][27] ([Intel XE#653]) +4 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@kms_hdr@invalid-hdr:
- shard-bmg: [PASS][28] -> [SKIP][29] ([Intel XE#1503])
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-7/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-1/igt@[email protected]
* igt@kms_psr2_sf@fbc-pr-cursor-plane-move-continuous-exceed-fully-sf:
- shard-dg2-set2: NOTRUN -> [SKIP][30] ([Intel XE#1406] / [Intel XE#1489])
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@kms_psr2_sf@fbc-pr-cursor-plane-move-continuous-exceed-fully-sf.html
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-180:
- shard-dg2-set2: NOTRUN -> [SKIP][31] ([Intel XE#1127])
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@kms_vrr@seamless-rr-switch-drrs:
- shard-dg2-set2: NOTRUN -> [SKIP][32] ([Intel XE#455])
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@xe_copy_basic@mem-copy-linear-0x3fff:
- shard-dg2-set2: NOTRUN -> [SKIP][33] ([Intel XE#1123])
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@xe_create@multigpu-create-massive-size:
- shard-dg2-set2: NOTRUN -> [SKIP][34] ([Intel XE#944])
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@xe_eudebug@multigpu-basic-client-many:
- shard-dg2-set2: NOTRUN -> [SKIP][35] ([Intel XE#4837])
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@xe_evict@evict-beng-small-external:
- shard-bmg: [PASS][36] -> [SKIP][37] ([Intel XE#6145])
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-3/igt@[email protected]
* igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr:
- shard-dg2-set2: NOTRUN -> [SKIP][38] ([Intel XE#1392])
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr.html
* igt@xe_exec_basic@multigpu-once-bindexecqueue-userptr-invalidate-race:
- shard-dg2-set2: [PASS][39] -> [SKIP][40] ([Intel XE#1392]) +6 other tests skip
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-dg2-434/igt@xe_exec_basic@multigpu-once-bindexecqueue-userptr-invalidate-race.html
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@xe_exec_basic@multigpu-once-bindexecqueue-userptr-invalidate-race.html
* igt@xe_exec_fault_mode@twice-basic-prefetch:
- shard-dg2-set2: NOTRUN -> [SKIP][41] ([Intel XE#288]) +1 other test skip
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@xe_exec_system_allocator@partial-remap-no-cpu-fault:
- shard-bmg: [PASS][42] -> [FAIL][43] ([Intel XE#4937])
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-2/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-2/igt@[email protected]
* igt@xe_exec_system_allocator@threads-many-large-execqueues-mmap-free-nomemset:
- shard-dg2-set2: NOTRUN -> [SKIP][44] ([Intel XE#4915]) +24 other tests skip
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@xe_exec_system_allocator@threads-many-large-execqueues-mmap-free-nomemset.html
* igt@xe_peer2peer@read@read-gpua-vram01-gpub-system-p2p:
- shard-dg2-set2: NOTRUN -> [FAIL][45] ([Intel XE#1173])
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-435/igt@xe_peer2peer@[email protected]
* igt@xe_pm@d3hot-mmap-system:
- shard-dg2-set2: [PASS][46] -> [FAIL][47] ([Intel XE#6102])
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-dg2-436/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-435/igt@[email protected]
#### Possible fixes ####
* igt@kms_ccs@random-ccs-data-4-tiled-dg2-rc-ccs:
- shard-dg2-set2: [INCOMPLETE][48] ([Intel XE#1727] / [Intel XE#2705] / [Intel XE#3113] / [Intel XE#4212] / [Intel XE#4345] / [Intel XE#4522]) -> [PASS][49]
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-dg2-463/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-432/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipb-legacy:
- shard-bmg: [SKIP][50] ([Intel XE#2291]) -> [PASS][51] +1 other test pass
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-5/igt@[email protected]
* igt@kms_dp_link_training@non-uhbr-sst:
- shard-bmg: [SKIP][52] ([Intel XE#4354]) -> [PASS][53]
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-5/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible:
- shard-bmg: [SKIP][54] ([Intel XE#2316]) -> [PASS][55] +2 other tests pass
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-3/igt@[email protected]
* igt@kms_flip@flip-vs-blocking-wf-vblank:
- shard-bmg: [FAIL][56] ([Intel XE#5338]) -> [PASS][57] +1 other test pass
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-5/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@c-edp1:
- shard-lnl: [FAIL][58] ([Intel XE#301] / [Intel XE#3149]) -> [PASS][59]
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-lnl-4/igt@kms_flip@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-lnl-3/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-rmfb-interruptible:
- shard-adlp: [DMESG-WARN][60] ([Intel XE#4543] / [Intel XE#5208]) -> [PASS][61]
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-8/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-3/igt@[email protected]
* igt@kms_flip@flip-vs-suspend@b-hdmi-a1:
- shard-adlp: [DMESG-WARN][62] ([Intel XE#4543]) -> [PASS][63] +7 other tests pass
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-4/igt@kms_flip@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-1/igt@kms_flip@[email protected]
* igt@kms_joiner@basic-force-big-joiner:
- shard-bmg: [SKIP][64] ([Intel XE#3012]) -> [PASS][65]
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-3/igt@[email protected]
* igt@kms_plane_alpha_blend@alpha-transparent-fb:
- shard-adlp: [DMESG-WARN][66] ([Intel XE#2953] / [Intel XE#4173]) -> [PASS][67] +5 other tests pass
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-9/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-6/igt@[email protected]
* igt@kms_plane_cursor@overlay@pipe-a-hdmi-a-6-size-64:
- shard-dg2-set2: [FAIL][68] ([Intel XE#616]) -> [PASS][69] +1 other test pass
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-dg2-466/igt@kms_plane_cursor@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-463/igt@kms_plane_cursor@[email protected]
* igt@kms_plane_multiple@2x-tiling-none:
- shard-bmg: [SKIP][70] ([Intel XE#4596]) -> [PASS][71]
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-3/igt@[email protected]
* igt@xe_exec_basic@multigpu-once-basic-defer-mmap:
- shard-dg2-set2: [SKIP][72] ([Intel XE#1392]) -> [PASS][73] +8 other tests pass
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-dg2-432/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-435/igt@[email protected]
* igt@xe_exec_reset@parallel-gt-reset:
- shard-bmg: [DMESG-WARN][74] ([Intel XE#3876]) -> [PASS][75]
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-2/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-2/igt@[email protected]
* igt@xe_module_load@load:
- shard-adlp: ([PASS][76], [PASS][77], [PASS][78], [PASS][79], [PASS][80], [PASS][81], [PASS][82], [PASS][83], [PASS][84], [PASS][85], [PASS][86], [PASS][87], [PASS][88], [PASS][89], [PASS][90], [PASS][91], [PASS][92], [PASS][93], [PASS][94], [SKIP][95], [PASS][96], [PASS][97], [PASS][98], [PASS][99], [PASS][100], [PASS][101]) ([Intel XE#378] / [Intel XE#5612]) -> ([PASS][102], [PASS][103], [PASS][104], [PASS][105], [PASS][106], [PASS][107], [PASS][108], [PASS][109], [PASS][110], [PASS][111], [PASS][112], [PASS][113], [PASS][114], [PASS][115], [PASS][116], [PASS][117], [PASS][118], [PASS][119], [PASS][120], [PASS][121], [PASS][122], [PASS][123], [PASS][124], [PASS][125], [PASS][126])
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-1/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-9/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-6/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-9/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-9/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-9/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-6/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-6/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-1/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-1/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-1/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-8/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-3/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-8/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-3/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-3/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-3/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-4/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-2/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-1/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-4/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-2/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-2/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-4/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-4/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-adlp-8/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-8/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-1/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-1/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-6/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-6/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-4/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-8/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-8/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-2/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-4/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-9/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-2/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-2/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-1/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-6/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-9/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-9/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-9/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-3/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-3/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-3/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-3/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-6/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-4/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-adlp-8/igt@[email protected]
#### Warnings ####
* igt@kms_cursor_legacy@flip-vs-cursor-legacy:
- shard-bmg: [FAIL][127] ([Intel XE#5299]) -> [FAIL][128] ([Intel XE#4633])
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-4/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-6/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank:
- shard-lnl: [FAIL][129] ([Intel XE#301] / [Intel XE#3149]) -> [FAIL][130] ([Intel XE#301])
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-lnl-4/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-lnl-3/igt@[email protected]
* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-indfb-pgflip-blt:
- shard-bmg: [SKIP][131] ([Intel XE#2312]) -> [SKIP][132] ([Intel XE#2311]) +10 other tests skip
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-pgflip-blt:
- shard-bmg: [SKIP][133] ([Intel XE#2312]) -> [SKIP][134] ([Intel XE#5390]) +2 other tests skip
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-onoff:
- shard-bmg: [SKIP][135] ([Intel XE#5390]) -> [SKIP][136] ([Intel XE#2312]) +4 other tests skip
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-4/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-indfb-draw-blt:
- shard-bmg: [SKIP][137] ([Intel XE#2311]) -> [SKIP][138] ([Intel XE#2312]) +6 other tests skip
[137]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-4/igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-indfb-draw-blt.html
[138]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-6/igt@kms_frontbuffer_tracking@fbcdrrs-2p-primscrn-pri-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-indfb-draw-render:
- shard-bmg: [SKIP][139] ([Intel XE#2312]) -> [SKIP][140] ([Intel XE#2313]) +6 other tests skip
[139]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-indfb-draw-render.html
[140]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-3/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-cur-indfb-draw-blt:
- shard-bmg: [SKIP][141] ([Intel XE#2313]) -> [SKIP][142] ([Intel XE#2312]) +6 other tests skip
[141]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-4/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-cur-indfb-draw-blt.html
[142]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-6/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-cur-indfb-draw-blt.html
* igt@kms_plane_multiple@2x-tiling-y:
- shard-bmg: [SKIP][143] ([Intel XE#4596]) -> [SKIP][144] ([Intel XE#5021])
[143]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-5/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-bmg: [SKIP][145] ([Intel XE#2426]) -> [SKIP][146] ([Intel XE#2509])
[145]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-bmg-6/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-bmg-5/igt@[email protected]
* igt@xe_peer2peer@read:
- shard-dg2-set2: [SKIP][147] ([Intel XE#1061]) -> [FAIL][148] ([Intel XE#1173])
[147]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-dg2-432/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-435/igt@[email protected]
* igt@xe_pmu@gt-frequency:
- shard-dg2-set2: [FAIL][149] ([Intel XE#4819]) -> [FAIL][150] ([Intel XE#5166]) +1 other test fail
[149]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370/shard-dg2-432/igt@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/shard-dg2-435/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[Intel XE#1061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1061
[Intel XE#1123]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1123
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1127]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1127
[Intel XE#1173]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1173
[Intel XE#1178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1178
[Intel XE#1188]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1188
[Intel XE#1340]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1340
[Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392
[Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1503
[Intel XE#1727]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1727
[Intel XE#2291]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2291
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2312]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2312
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2316]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2316
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2509]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2509
[Intel XE#2705]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2705
[Intel XE#288]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/288
[Intel XE#2953]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2953
[Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
[Intel XE#3012]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3012
[Intel XE#308]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/308
[Intel XE#3113]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3113
[Intel XE#3149]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3149
[Intel XE#373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/373
[Intel XE#378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/378
[Intel XE#3876]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3876
[Intel XE#4173]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4173
[Intel XE#4212]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4212
[Intel XE#4345]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4345
[Intel XE#4354]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4354
[Intel XE#4522]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4522
[Intel XE#4543]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4543
[Intel XE#455]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/455
[Intel XE#4596]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4596
[Intel XE#4633]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4633
[Intel XE#4819]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4819
[Intel XE#4837]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4837
[Intel XE#4915]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4915
[Intel XE#4937]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4937
[Intel XE#5021]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5021
[Intel XE#5166]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5166
[Intel XE#5208]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5208
[Intel XE#5299]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5299
[Intel XE#5338]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5338
[Intel XE#5390]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5390
[Intel XE#5503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5503
[Intel XE#5612]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5612
[Intel XE#6102]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6102
[Intel XE#6145]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6145
[Intel XE#616]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/616
[Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651
[Intel XE#653]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/653
[Intel XE#787]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/787
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
Build changes
-------------
* Linux: xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370 -> xe-pw-154627v1
IGT_8541: 8541
xe-3777-ab86b32a024c2a431a0300c91745fca9aa0b9370: ab86b32a024c2a431a0300c91745fca9aa0b9370
xe-pw-154627v1: 154627v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-154627v1/index.html