Use SIG_ID logs for GuC component
Subsystems (2)
v7 cover Use SIG_ID logs for GuC component
Add SIG ID logging support for some parts of the GuC interface code.
v3: Add some review comments from v2. Some opens remain. will address in next revision as discussion evolves.
v4: Review comments from v3
v5: Review comments from v4
v6: Include Sashiko's comments and some fixes
v7: Comments from Daniele
Daniele Ceraolo Spurio (4):
drm/xe/guc: Use different error codes for GuC load errors drm/xe/uc: Report DMA failure using SIGID drm/xe/guc: Report major GuC failures using SIGID drm/xe/guc: Report errors that cause a CT shutdown using SIGID
Umesh Nerlige Ramappa (3):
drm/xe/guc: Handle CRASH and EXCEPTION G2H with separate helpers drm/xe/guc: Make ct_dead_capture available on non-debug config drm/xe/guc: Cleanup error codes and handling for CT errors
drivers/gpu/drm/xe/xe_guc.c | 40 +++-- drivers/gpu/drm/xe/xe_guc_ct.c | 317 +++++++++++++++++++++++---------- drivers/gpu/drm/xe/xe_uc_fw.c | 13 +- 3 files changed, 253 insertions(+), 117 deletions(-)
Signature · 1 line
2.55.0
PATCH v7 1/7 drm/xe/guc: Use different error codes for GuC load errors
From: Daniele Ceraolo Spurio <[email protected]>
Instead of always returning -EPROTO no matter what goes wrong, use different error codes based on the error type.
--- drivers/gpu/drm/xe/xe_guc.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-)
drivers/gpu/drm/xe/xe_guc.c +12 -10
@@ -1144,8 +1144,8 @@ static void print_load_status_err(struct xe_gt *gt, u32 status)* Check GUC_STATUS looking for known terminal states (either completion or * failure) of either the microkernel status field or the boot ROM status field. * -* Returns 1 for successful completion, -1 for failure and 0 for any -* intermediate state. +* Returns 0 for successful completion, -EBUSY for any intermediate state and +* other errno values for failure cases. */ static int guc_load_done (struct xe_gt *gt,u32 *status,u32 *tries) {
@@ -1157,20 +1157,22 @@ static int guc_load_done(struct xe_gt *gt, u32 *status, u32 *tries)switch (ukernel) {case XE_GUC_LOAD_STATUS_READY : -return 1 ; +return 0 ;case XE_GUC_LOAD_STATUS_ERROR_DEVID_BUILD_MISMATCH :case XE_GUC_LOAD_STATUS_GUC_PREPROD_BUILD_MISMATCH :case XE_GUC_LOAD_STATUS_ERROR_DEVID_INVALID_GUCTYPE :case XE_GUC_LOAD_STATUS_HWCONFIG_ERROR :case XE_GUC_LOAD_STATUS_BOOTROM_VERSION_MISMATCH : +return -ENOEXEC ;case XE_GUC_LOAD_STATUS_DPC_ERROR :case XE_GUC_LOAD_STATUS_EXCEPTION : +return -EIO ;case XE_GUC_LOAD_STATUS_INIT_DATA_INVALID :case XE_GUC_LOAD_STATUS_MPU_DATA_INVALID :case XE_GUC_LOAD_STATUS_INIT_MMIO_SAVE_RESTORE_INVALID :case XE_GUC_LOAD_STATUS_KLV_WORKAROUND_INIT_ERROR :case XE_GUC_LOAD_STATUS_INVALID_FTR_FLAG : -return -1 ; +return -EINVAL ; }switch (bootrom) {
@@ -1184,7 +1186,7 @@ static int guc_load_done(struct xe_gt *gt, u32 *status, u32 *tries)case XE_BOOTROM_STATUS_MPUMAP_INCORRECT :case XE_BOOTROM_STATUS_EXCEPTION :case XE_BOOTROM_STATUS_PROD_KEY_CHECK_FAILURE : -return -1 ; +return -ENOEXEC ; }if (++*tries >=100 ) {
@@ -1197,7 +1199,7 @@ static int guc_load_done(struct xe_gt *gt, u32 *status, u32 *tries) *status, ukernel, bootrom); } -return 0 ; +return -EBUSY ; }static int guc_wait_ucode (struct xe_guc *guc)
@@ -1213,21 +1215,21 @@ static int guc_wait_ucode(struct xe_guc *guc) before_freq =xe_guc_pc_get_act_freq (guc_pc); before =ktime_get (); - ret =poll_timeout_us (load_result =guc_load_done (gt, &status, &tries), load_result, -10 *USEC_PER_MSEC , + ret =poll_timeout_us (load_result =guc_load_done (gt, &status, &tries), + load_result != -EBUSY ,10 *USEC_PER_MSEC ,GUC_LOAD_TIMEOUT_SEC *USEC_PER_SEC , false); delta_ms =ktime_to_ms (ktime_sub (ktime_get (), before)); act_freq =xe_guc_pc_get_act_freq (guc_pc); cur_freq =xe_guc_pc_get_cur_freq_fw (guc_pc); -if (ret || load_result <=0 ) { +if (ret || load_result) {xe_gt_err (gt,"load failed: status = 0x%08X, time = %lldms, freq = %dMHz (req %dMHz)\n" , status, delta_ms,xe_guc_pc_get_act_freq (guc_pc),xe_guc_pc_get_cur_freq_fw (guc_pc));print_load_status_err (gt, status); -return -EPROTO ; +return ret ?: load_result; }if (delta_ms >GUC_LOAD_TIME_WARN_MSEC ) {
Signature · 1 line
2.55.0
PATCH v7 2/7 drm/xe/guc: Handle CRASH and EXCEPTION G2H with separate helpers
In reply to Umesh Nerlige Ramappaguc_crash_process_msg() handles both crash and exception notifications from GuC, but ends up rechecking the type of notification. It also has an else case that is not reachable.
Since notification type is already known by the caller, remove guc_crash_process_msg() and handle the CRASH and EXCEPTION G2H separately, so the duplicate check is avaoided.
---
v2: Add 'why' to commit message (Daniele)
--- drivers/gpu/drm/xe/xe_guc_ct.c | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-)
drivers/gpu/drm/xe/xe_guc_ct.c +11 -13
@@ -1568,22 +1568,18 @@ static int parse_g2h_event(struct xe_guc_ct *ct, u32 *msg, u32 len)return 0 ; } -static int guc_crash_process_msg (struct xe_guc_ct *ct,u32 action) +static void guc_handle_crash_dump_msg (struct xe_guc_ct *ct) { -struct xe_gt *gt =ct_to_gt (ct); - -if (action ==XE_GUC_ACTION_NOTIFY_CRASH_DUMP_POSTED ) -xe_gt_err (gt,"GuC Crash dump notification\n" ); -else if (action ==XE_GUC_ACTION_NOTIFY_EXCEPTION ) -xe_gt_err (gt,"GuC Exception notification\n" ); -else -xe_gt_err (gt,"Unknown GuC crash notification: 0x%04X\n" , action); - +xe_gt_err (ct_to_gt (ct),"GuC Crash dump notification\n" );CT_DEAD (ct,NULL ,CRASH ); -kick_reset (ct); +} -return 0 ; +static void guc_handle_exception_msg (struct xe_guc_ct *ct) +{ +xe_gt_err (ct_to_gt (ct),"GuC Exception notification\n" ); +CT_DEAD (ct,NULL ,CRASH ); +kick_reset (ct); }static int parse_g2h_response (struct xe_guc_ct *ct,u32 *msg,u32 len)
@@ -1787,8 +1783,10 @@ static int process_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) ret =xe_gt_sriov_pf_monitor_process_guc2pf (gt, hxg, hxg_len);break ;case XE_GUC_ACTION_NOTIFY_CRASH_DUMP_POSTED : +guc_handle_crash_dump_msg (ct); +break ;case XE_GUC_ACTION_NOTIFY_EXCEPTION : - ret =guc_crash_process_msg (ct, action); +guc_handle_exception_msg (ct);break ;#if IS_ENABLED (CONFIG_DRM_XE_KUNIT_TEST )case XE_GUC_ACTION_TEST_G2G_RECV :
Signature · 1 line
2.55.0
PATCH v7 3/7 drm/xe/guc: Make ct_dead_capture available on non-debug config
In reply to Umesh Nerlige RamappaDefine ct_dead_capture for non-debug as well to simplify future refactor. Rename it to process_ct_dead since non-debug mode does not capture anything.
---
v2: (Daniele)
- Reorder defines
- s/ct_id/ct_error_id/
- s/ct_dead_capture/process_ct_dead/
--- drivers/gpu/drm/xe/xe_guc_ct.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-)
drivers/gpu/drm/xe/xe_guc_ct.c +12 -13
@@ -59,7 +59,6 @@ static struct xe_device *ct_to_xe(struct xe_guc_ct *ct)return gt_to_xe (ct_to_gt (ct)); } -#if IS_ENABLED (CONFIG_DRM_XE_DEBUG )enum {/* Internal states, not error conditions */ CT_DEAD_STATE_REARM ,/* 0x0001 */
@@ -82,8 +81,12 @@ enum { CT_DEAD_CRASH, /* 0x8000 */ }; +#define ct_error_id (reason_code) CT_DEAD_##reason_code +static void process_ct_dead (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code); +#define CT_DEAD (ct, ctb, reason_code) process_ct_dead((ct), (ctb), ct_error_id(reason_code)) + +#if IS_ENABLED (CONFIG_DRM_XE_DEBUG )static void ct_dead_worker_func (struct work_struct *w); -static void ct_dead_capture (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code);static void ct_dead_fini (struct xe_guc_ct *ct) {
@@ -162,9 +165,6 @@ static void fast_req_track(struct xe_guc_ct *ct, u16 fence, u16 action) ct->fast_req[slot].fence = fence; ct->fast_req[slot].action = action; } - -#define CT_DEAD (ct, ctb, reason_code) ct_dead_capture((ct), (ctb), CT_DEAD_##reason_code) -#else static void ct_dead_fini (struct xe_guc_ct *ct) { }
@@ -173,13 +173,6 @@ static void ct_dead_init(struct xe_guc_ct *ct) { }static void fast_req_report (struct xe_guc_ct *ct,u16 fence) { }static void fast_req_track (struct xe_guc_ct *ct,u16 fence,u16 action) { } -#define CT_DEAD (ct, ctb, reason) \ - do { \ - struct guc_ctb *_ctb = (ctb); \ - if (_ctb) \ - _ctb->info.broken = true; \ - } while (0) -#endif /* Used when a CT send wants to block and / or receive data */
@@ -2280,7 +2273,7 @@ ALLOW_ERROR_INJECTION(xe_is_injection_active, ERRNO);int xe_is_injection_active (void ) {return 0 ; }#endif -static void ct_dead_capture (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code) +static void process_ct_dead (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code) {struct xe_guc_log_snapshot *snapshot_log;struct xe_guc_ct_snapshot *snapshot_ct;
@@ -2387,4 +2380,10 @@ static void ct_dead_worker_func(struct work_struct *w) spin_unlock_irq(&ct->dead.lock); } +#else +static void process_ct_dead (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code) +{ +if (ctb) + ctb->info.broken = true; +}#endif
Signature · 1 line
2.55.0
Re: [PATCH v7 3/7] drm/xe/guc: Make ct_dead_capture available on non-debug config
Quoted 5 lines · Umesh Nerlige Ramappa
Define
ct_dead_capturefor non-debug as well to simplify future refactor. Rename it toprocess_ct_deadsince non-debug mode does not capture anything.Signed-off-by Umesh Nerlige Ramappa <[email protected]>
Daniele
Quoted 79 lines
---
v2: (Daniele)
- Reorder defines
- s/ct_id/ct_error_id/
- s/ct_dead_capture/process_ct_dead/--- drivers/gpu/drm/xe/xe_guc_ct.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-)drivers/gpu/drm/xe/xe_guc_ct.c +12
-13@@ -59,7 +59,6 @@ static struct xe_device *ct_to_xe(struct xe_guc_ct *ct)return gt_to_xe (ct_to_gt (ct)); } -#if IS_ENABLED (CONFIG_DRM_XE_DEBUG )enum {/* Internal states, not error conditions */ CT_DEAD_STATE_REARM ,/* 0x0001 */ @@ -82,8 +81,12 @@ enum { CT_DEAD_CRASH, /* 0x8000 */ }; +#define ct_error_id (reason_code) CT_DEAD_##reason_code +static void process_ct_dead (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code); +#define CT_DEAD (ct, ctb, reason_code) process_ct_dead((ct), (ctb), ct_error_id(reason_code)) + +#if IS_ENABLED (CONFIG_DRM_XE_DEBUG )static void ct_dead_worker_func (struct work_struct *w); -static void ct_dead_capture (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code);static void ct_dead_fini (struct xe_guc_ct *ct) {@@ -162,9 +165,6 @@ static void fast_req_track(struct xe_guc_ct *ct, u16 fence, u16 action) ct->fast_req[slot].fence = fence; ct->fast_req[slot].action = action; } - -#define CT_DEAD (ct, ctb, reason_code) ct_dead_capture((ct), (ctb), CT_DEAD_##reason_code) -#else static void ct_dead_fini (struct xe_guc_ct *ct) { }@@ -173,13 +173,6 @@ static void ct_dead_init(struct xe_guc_ct *ct) { }static void fast_req_report (struct xe_guc_ct *ct,u16 fence) { }static void fast_req_track (struct xe_guc_ct *ct,u16 fence,u16 action) { } -#define CT_DEAD (ct, ctb, reason) \ - do { \ - struct guc_ctb *_ctb = (ctb); \ - if (_ctb) \ - _ctb->info.broken = true; \ - } while (0) -#endif /* Used when a CT send wants to block and / or receive data */ @@ -2280,7 +2273,7 @@ ALLOW_ERROR_INJECTION(xe_is_injection_active, ERRNO);int xe_is_injection_active (void ) {return 0 ; }#endif -static void ct_dead_capture (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code) +static void process_ct_dead (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code) {struct xe_guc_log_snapshot *snapshot_log;struct xe_guc_ct_snapshot *snapshot_ct;@@ -2387,4 +2380,10 @@ static void ct_dead_worker_func(struct work_struct *w) spin_unlock_irq(&ct->dead.lock); } +#else +static void process_ct_dead (struct xe_guc_ct *ct,struct guc_ctb *ctb,u32 reason_code) +{ +if (ctb) + ctb->info.broken = true; +}#endif
PATCH v7 4/7 drm/xe/guc: Cleanup error codes and handling for CT errors
In reply to Umesh Nerlige RamappaInstead of always returning -EPROTO for most errors, use different error codes based on the error type. -EPROTO is retained for the cases that are genuine protocol violations by the GuC. The remaining cases now report what actually went wrong.
A CTB that has been flagged broken reports -ECONNABORTED rather than -EPERM. These errors are not contained within the driver: they reach userspace verbatim through the gt freq sysfs knobs (min_freq_store() -> xe_guc_pc_set_min_freq() -> xe_guc_ct_send()) and through the VFIO SR-IOV migration callbacks (xe_sriov_vfio_suspend_device() -> xe_sriov_pf_control_pause_vf() -> xe_guc_ct_send_block()). -EPERM reads as a privilege failure, so a user who hits a broken CT is told "Operation not permitted" and retries as root to no effect. Worse, xe_sriov_vfio.c already returns -EPERM for its own "not a PF" check, so the two are indistinguishable to migration tooling. -ECONNABORTED ("Software caused connection abort") says what actually
happened: the driver aborted the channel after detecting corruption.
Note that -ECONNABORTED must stay distinct from -EPIPE. -EPIPE means corruption was detected now and transitions the CTB to broken, which g2h_err_is_fatal() classifies as fatal; -ECONNABORTED means the CTB was already broken and is benign. Merging them would make receive_g2h() re-declare the CT dead and re-kick a reset on every dequeue iteration.
receive_g2h() used to escalate to CT_DEAD + kick_reset() by matching the two error codes that dequeue_one_g2h() could return on a fatal error. Invert the check to simplify reset handling.
---
v2: (Daniele)
- Drop the xe_log_error paragraph
- return EPIPE directly
- use h2g and g2h variables
- Add EPIPE comment back to xe_guc_ct_send
- s/ct_id/ct_error_id/ and s/ct_dead_capture/process_ct_dead/
--- drivers/gpu/drm/xe/xe_guc_ct.c | 209 +++++++++++++++++++++++++-------- 1 file changed, 163 insertions(+), 46 deletions(-)
drivers/gpu/drm/xe/xe_guc_ct.c +163 -46
@@ -37,6 +37,93 @@#include "xe_sriov_vf.h" #include "xe_trace_guc.h" +/** +* DOC: GuC CT Error Codes +* +* Send path - xe_guc_ct_send(), xe_guc_ct_send_locked(), h2g_write() +* ------------------------------------------------------------------ +* +* Channel-state rejections - the message was never queued, nothing is corrupt: +* +* ``-ENOTRECOVERABLE``: the device is wedged. No CT traffic can make progress +* until the device is recovered. +* ``-ECONNABORTED``: the H2G CTB was flagged broken by an earlier corruption +* check, so the driver aborted the channel. It stays unusable until the CT is +* restarted, which clears the flag. +* ``-ENODEV``: the CT channel is disabled. Don't retry until it is enabled. +* ``-ECANCELED``: the CT channel is stopped or a GT recovery is pending, so the +* message was dropped. Often benign; retry after the reset/recovery completes. +* +* Internal flow control - never seen by callers, handled by the send helpers: +* +* ``-EBUSY``: not enough H2G room or G2H credits. Triggers a flush, a wait and +* a retry. +* ``-EAGAIN``: the message would wrap the H2G ring, so the tail was NOP-filled +* and reset to 0. The write is reissued immediately. +* +* Hard failures: +* +* ``-EPIPE``: H2G descriptor corruption found before writing - non-zero status, +* or head/tail out of range. Marks the CTB broken. +* ``-EDEADLK``: H2G credits never recovered after waiting ~1s. An async GT reset +* is requested before this is returned. +* ``-EPROTO``: the MMIO CT enable/disable handshake got an unexpected reply. +* ``-ENOMEM``: internal allocation failure (fence lookup under GFP_ATOMIC, or the +* G2H workqueue at init). The blocking path retries the allocation with +* GFP_KERNEL. +* +* Blocking send only (xe_guc_ct_send_recv()) - the H2G went out, the reply is the +* problem: +* +* ``-ETIME``: no G2H response within 1s, even after flushing the G2H worker. +* ``-EIO``: the GuC replied RESPONSE_FAILURE; error and hint codes are logged. +* ``-ELOOP``: the GuC kept replying NO_RESPONSE_RETRY until the request hit +* GUC_SEND_RETRY_LIMIT. (NO_RESPONSE_BUSY is not an error - the waiter re-arms.) +* ``-ECANCELED``: the pending fence was canceled while waiting, because the CT +* was stopped underneath the waiter. Retry after the reset completes. +* ``-ENOTRECOVERABLE``: same as above, but the device got wedged in the +* meantime, so there is nothing to retry. +* +* Receive path - g2h_read(), parse_g2h_msg(), dequeue_one_g2h() +* ------------------------------------------------------------- +* +* Channel-state rejections - the same four codes as the send path, checked against +* the G2H CTB. g2h_err_is_fatal() treats exactly these as benign; anything else +* declares the CT dead and kicks a reset: +* +* ``-ENOTRECOVERABLE``: device wedged. +* ``-ENODEV``: CT disabled. +* ``-ECANCELED``: CT stopped. +* ``-ECONNABORTED``: G2H CTB already flagged broken. +* +* Hard failures: +* +* ``-EPIPE``: G2H descriptor corruption - non-zero status, head/tail out of +* range, or a declared message length larger than the data actually available. +* ``-EPROTO``: HXG protocol violation. Either the G2H origin field is not the +* GuC, or a FAST_REQUEST H2G came back rejected. FAST_REQUEST fences aren't +* tracked, so there is no caller to report to and the failure is escalated to a +* reset instead. +* ``-EOPNOTSUPP``: G2H carried an HXG type this driver does not handle. +* +* Reported but not returned +* ------------------------- +* +* These never reach a caller: they are detected in a void path or in a G2H +* handler whose return value is swallowed. They are reported and the CT is +* declared dead, which is the only escalation available: +* +* ``-EHOSTDOWN``: the GuC sent a crash dump or an exception notification, i.e. +* the firmware itself died. A reset is kicked to reload it. +* ``-ETOOMANYREFS``: G2H credit accounting went wrong - a release would push +* the free space past the usable size of the CTB, or there was no outstanding +* G2H to release. Indicates a driver-side bookkeeping bug, not a GuC one. +* Any error from a G2H action handler: the handler for a given G2H failed while +* processing it. The code is whatever the handler returned and is reported +* along with the action and the raw message, from both the worker +* (process_g2h_msg()) and the IRQ fast path (g2h_fast_path()). +*/ +static void receive_g2h (struct xe_guc_ct *ct);static void g2h_worker_func (struct work_struct *w);static void safe_mode_worker_func (struct work_struct *w);
@@ -931,6 +1018,22 @@ static bool vf_action_can_safely_fail(struct xe_device *xe, u32 action) action == XE_GUC_ACTION_REGISTER_CONTEXT); } +static int ct_corrupted (struct xe_guc_ct *ct,struct guc_ctb *ctb, +u32 reason_code,const char *msg, ...) +{ +struct va_format vaf; +va_list va_args; + +va_start (va_args, msg); + vaf.fmt = msg; + vaf.va = &va_args; +xe_gt_err (ct_to_gt (ct),"GUC: CT: %pV" , &vaf); +va_end (va_args); + +process_ct_dead (ct, ctb, reason_code); +return -EPIPE ; +} +#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,
@@ -955,23 +1058,22 @@ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len,u32 desc_status; desc_status =desc_read (xe, h2g, status); -if (desc_status) { -xe_gt_err (gt,"CT write: non-zero status: %u\n" , desc_status); - goto corrupted; - } +if (desc_status) +return ct_corrupted (ct, h2g,ct_error_id (H2G_WRITE ), +"write: non-zero status: %u\n" , desc_status);if (tail > h2g->info.size) {desc_write (xe, h2g, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT write: tail out of range: %u vs %u\n" , - tail, h2g->info.size); - goto corrupted; +return ct_corrupted (ct, h2g,ct_error_id (H2G_WRITE ), +"write: tail out of range: %u vs %u\n" , + tail, h2g->info.size); }if (desc_head >= h2g->info.size) {desc_write (xe, h2g, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT write: invalid head offset %u >= %u)\n" , - desc_head, h2g->info.size); - goto corrupted; +return ct_corrupted (ct, h2g,ct_error_id (H2G_WRITE ), +"write: invalid head offset %u >= %u)\n" , + desc_head, h2g->info.size); } }
@@ -1036,10 +1138,6 @@ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len, desc_read(xe, h2g, head), h2g->info.tail);return 0 ; - -corrupted: -CT_DEAD (ct, &ct->ctbs.h2g,H2G_WRITE ); -return -EPIPE ; } static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,
@@ -1063,7 +1161,7 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, }if (unlikely (ct->ctbs.h2g.info.broken)) { - ret = -EPIPE ; + ret = -ECONNABORTED ; goto out; }
@@ -1215,7 +1313,7 @@ static int guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, u32 len,return ret; broken: -xe_gt_err (gt,"No forward process on H2G, reset required\n" ); +xe_gt_err (gt,"No forward progress on H2G\n" );CT_DEAD (ct, &ct->ctbs.h2g,DEADLOCK );return -EDEADLK ;
@@ -1250,6 +1348,9 @@ static int guc_ct_send(struct xe_guc_ct *ct, const u32 *action, u32 len,* request cannot make progress until the device is recovered. * * -EPIPE: the H2G CTB is marked broken. The channel stays unusable until the * CT is restarted, which clears the broken flag. +* * -ECONNABORTED: the H2G CTB is marked broken, so the driver aborted the +* channel. It stays unusable until the CT is restarted, which clears the +* broken flag. * * -ENODEV: the CT channel is disabled, messages not expected in this state. * Don't retry until it is enabled again. * * -ECANCELED: the CT channel is stopped or a GT recovery is pending; the
@@ -1373,7 +1474,8 @@ int xe_guc_ct_send_g2h_handler(struct xe_guc_ct *ct, const u32 *action, u32 len)*/ static bool retry_failure (struct xe_guc_ct *ct,int ret) { -if (!(ret == -EDEADLK || ret == -EPIPE || ret == -ENODEV )) +if (!(ret == -EDEADLK || ret == -EPIPE || ret == -ECONNABORTED || + ret == -ENODEV ))return false;#define ct_alive (ct) \
@@ -1678,8 +1780,7 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) origin =FIELD_GET (GUC_HXG_MSG_0_ORIGIN , hxg[0 ]);if (unlikely (origin !=GUC_HXG_ORIGIN_GUC )) { -xe_gt_err (gt,"G2H channel broken on read, origin=%u, reset required\n" , - origin); +xe_gt_err (gt,"Invalid G2H origin=%u\n" , origin);CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_ORIGIN );return -EPROTO ;
@@ -1697,8 +1798,7 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) ret =parse_g2h_response (ct, msg, len);break ;default : -xe_gt_err (gt,"G2H channel broken on read, type=%u, reset required\n" , - type); +xe_gt_err (gt,"Unexpected G2H message type=%u\n" , type);CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_TYPE ); ret = -EOPNOTSUPP ;
@@ -1819,6 +1919,7 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)xe_gt_assert (gt,xe_guc_ct_initialized (ct));lockdep_assert_held (&ct->fast_lock); +/* Keep in sync with g2h_err_is_fatal() */ if (xe_device_wedged (xe))return -ENOTRECOVERABLE ;
@@ -1829,7 +1930,7 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)return -ECANCELED ;if (g2h->info.broken) -return -EPIPE ; +return -ECONNABORTED ;xe_gt_assert (gt,xe_guc_ct_enabled (ct));
@@ -1845,10 +1946,9 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path) desc_status &= ~GUC_CTB_STATUS_DISABLED ; } -if (desc_status) { -xe_gt_err (gt,"CT read: non-zero status: %u\n" , desc_status); - goto corrupted; - } +if (desc_status) +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"read: non-zero status: %u\n" , desc_status); }if (IS_ENABLED (CONFIG_DRM_XE_DEBUG )) {
@@ -1869,24 +1969,24 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)* if (g2h->info.head != desc_head) { desc_write(xe, g2h, status, desc_status | GUC_CTB_STATUS_MISMATCH); -xe_gt_err(gt, "CT read: head was modified %u != %u\n", -desc_head, g2h->info.head); -goto corrupted; +return ct_corrupted(ct, g2h, ct_error_id(G2H_READ), +"read: head was modified %u != %u\n", +desc_head, g2h->info.head); } */ if (g2h->info.head > g2h->info.size) {desc_write (xe, g2h, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT read: head out of range: %u vs %u\n" , - g2h->info.head, g2h->info.size); - goto corrupted; +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"read: head out of range: %u vs %u\n" , + g2h->info.head, g2h->info.size); }if (desc_tail >= g2h->info.size) {desc_write (xe, g2h, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT read: invalid tail offset %u >= %u)\n" , - desc_tail, g2h->info.size); - goto corrupted; +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"read: invalid tail offset %u >= %u)\n" , + desc_tail, g2h->info.size); } }
@@ -1903,11 +2003,10 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)xe_map_memcpy_from (xe, msg, &g2h->cmds,sizeof (u32) * g2h->info.head,sizeof (u32)); len =FIELD_GET (GUC_CTB_MSG_0_NUM_DWORDS , msg[0 ]) +GUC_CTB_MSG_MIN_LEN ; -if (len > avail) { -xe_gt_err (gt,"G2H channel broken on read, avail=%d, len=%d, reset required\n" , - avail, len); - goto corrupted; - } +if (len > avail) +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"G2H channel broken on read, avail=%d, len=%d\n" , + avail, len); head = (g2h->info.head +1 ) % g2h->info.size; avail = len -1 ;
@@ -1953,10 +2052,6 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path) action, len, g2h->info.head, tail);return len; - -corrupted: -CT_DEAD (ct, &ct->ctbs.g2h,G2H_READ ); -return -EPROTO ; }static void g2h_fast_path (struct xe_guc_ct *ct,u32 *msg,u32 len)
@@ -2048,6 +2143,27 @@ static int dequeue_one_g2h(struct xe_guc_ct *ct)return 1 ; } +/* +* Errors reported by dequeue_one_g2h() come in two flavours: either the channel +* is simply not available right now, which is expected and handled gracefully, +* or the channel state or the message itself is inconsistent, in which case the +* only way forward is to declare the CT dead and reset the GuC. Since the +* former is a short and well known list, check against that and treat anything +* else as fatal, so that new error codes don't silently escape the escalation. +*/ +static bool g2h_err_is_fatal (int err) +{ +switch (err) { +case -ENOTRECOVERABLE :/* device wedged */ +case -ENODEV :/* CT disabled */ +case -ECANCELED :/* CT stopped */ +case -ECONNABORTED :/* CT already declared broken */ +return false; +default : +return true; + } +} +static void receive_g2h (struct xe_guc_ct *ct) {bool ongoing;
@@ -2085,8 +2201,9 @@ static void receive_g2h(struct xe_guc_ct *ct) ret =dequeue_one_g2h (ct);mutex_unlock (&ct->lock); -if (unlikely (ret == -EPROTO || ret == -EOPNOTSUPP )) { -xe_gt_err (ct_to_gt (ct),"CT dequeue failed: %d\n" , ret); +if (unlikely (ret <0 &&g2h_err_is_fatal (ret))) { +xe_gt_err (ct_to_gt (ct),"CT dequeue failed, forcing GT reset(%pe)\n" , +ERR_PTR (ret));CT_DEAD (ct,NULL ,G2H_RECV );kick_reset (ct); }
Signature · 1 line
2.55.0
Re: [PATCH v7 4/7] drm/xe/guc: Cleanup error codes and handling for CT errors
Quoted 30 lines · Umesh Nerlige Ramappa
Instead of always returning
-EPROTOfor most errors, use different error codes based on the error type.-EPROTOis retained for the cases that are genuine protocol violations by the GuC. The remaining cases now report what actually went wrong.A CTB that has been flagged broken reports
-ECONNABORTEDrather than-EPERM. These errors are not contained within the driver: they reach userspace verbatim through the gt freq sysfs knobs (min_freq_store()->xe_guc_pc_set_min_freq()->xe_guc_ct_send()) and through the VFIO SR-IOV migration callbacks (xe_sriov_vfio_suspend_device()->xe_sriov_pf_control_pause_vf()->xe_guc_ct_send_block()).-EPERMreads as a privilege failure, so a user who hits a broken CT is told "Operation not permitted" and retries as root to no effect. Worse,xe_sriov_vfio.calready returns-EPERMfor its own "not a PF" check, so the two are indistinguishable to migration tooling.-ECONNABORTED("Software caused connection abort") says what actually
happened: the driver aborted the channel after detecting corruption.Note that
-ECONNABORTEDmust stay distinct from-EPIPE.-EPIPEmeans corruption was detected now and transitions the CTB to broken, whichg2h_err_is_fatal()classifies as fatal;-ECONNABORTEDmeans the CTB was already broken and is benign. Merging them would makereceive_g2h()re-declare the CT dead and re-kick a reset on every dequeue iteration.
receive_g2h()used to escalate toCT_DEAD+kick_reset()by matching the two error codes thatdequeue_one_g2h()could return on a fatal error. Invert the check to simplify reset handling.Signed-off-by Umesh Nerlige Ramappa <[email protected]>Assisted-by Claude:claude-opus-5
Quoted 7 lines
---
v2: (Daniele)
- Drop thexe_log_errorparagraph
- return EPIPE directly
- use h2g and g2h variables
- Add EPIPE comment back toxe_guc_ct_send
- s/ct_id/ct_error_id/ and s/ct_dead_capture/process_ct_dead/
nit: the previous rev of this patch had a changelog up to v6 which is now gone.
Quoted 126 lines
--- drivers/gpu/drm/xe/xe_guc_ct.c | 209 +++++++++++++++++++++++++-------- 1 file changed, 163 insertions(+), 46 deletions(-)drivers/gpu/drm/xe/xe_guc_ct.c +103
-0@@ -37,6 +37,93 @@#include "xe_sriov_vf.h" #include "xe_trace_guc.h" +/** +* DOC: GuC CT Error Codes +* +* Send path - xe_guc_ct_send(), xe_guc_ct_send_locked(), h2g_write() +* ------------------------------------------------------------------ +* +* Channel-state rejections - the message was never queued, nothing is corrupt: +* +* ``-ENOTRECOVERABLE``: the device is wedged. No CT traffic can make progress +* until the device is recovered. +* ``-ECONNABORTED``: the H2G CTB was flagged broken by an earlier corruption +* check, so the driver aborted the channel. It stays unusable until the CT is +* restarted, which clears the flag. +* ``-ENODEV``: the CT channel is disabled. Don't retry until it is enabled. +* ``-ECANCELED``: the CT channel is stopped or a GT recovery is pending, so the +* message was dropped. Often benign; retry after the reset/recovery completes. +* +* Internal flow control - never seen by callers, handled by the send helpers: +* +* ``-EBUSY``: not enough H2G room or G2H credits. Triggers a flush, a wait and +* a retry. +* ``-EAGAIN``: the message would wrap the H2G ring, so the tail was NOP-filled +* and reset to 0. The write is reissued immediately. +* +* Hard failures: +* +* ``-EPIPE``: H2G descriptor corruption found before writing - non-zero status, +* or head/tail out of range. Marks the CTB broken. +* ``-EDEADLK``: H2G credits never recovered after waiting ~1s. An async GT reset +* is requested before this is returned. +* ``-EPROTO``: the MMIO CT enable/disable handshake got an unexpected reply. +* ``-ENOMEM``: internal allocation failure (fence lookup under GFP_ATOMIC, or the +* G2H workqueue at init). The blocking path retries the allocation with +* GFP_KERNEL. +* +* Blocking send only (xe_guc_ct_send_recv()) - the H2G went out, the reply is the +* problem: +* +* ``-ETIME``: no G2H response within 1s, even after flushing the G2H worker. +* ``-EIO``: the GuC replied RESPONSE_FAILURE; error and hint codes are logged. +* ``-ELOOP``: the GuC kept replying NO_RESPONSE_RETRY until the request hit +* GUC_SEND_RETRY_LIMIT. (NO_RESPONSE_BUSY is not an error - the waiter re-arms.) +* ``-ECANCELED``: the pending fence was canceled while waiting, because the CT +* was stopped underneath the waiter. Retry after the reset completes. +* ``-ENOTRECOVERABLE``: same as above, but the device got wedged in the +* meantime, so there is nothing to retry. +* +* Receive path - g2h_read(), parse_g2h_msg(), dequeue_one_g2h() +* ------------------------------------------------------------- +* +* Channel-state rejections - the same four codes as the send path, checked against +* the G2H CTB. g2h_err_is_fatal() treats exactly these as benign; anything else +* declares the CT dead and kicks a reset: +* +* ``-ENOTRECOVERABLE``: device wedged. +* ``-ENODEV``: CT disabled. +* ``-ECANCELED``: CT stopped. +* ``-ECONNABORTED``: G2H CTB already flagged broken. +* +* Hard failures: +* +* ``-EPIPE``: G2H descriptor corruption - non-zero status, head/tail out of +* range, or a declared message length larger than the data actually available. +* ``-EPROTO``: HXG protocol violation. Either the G2H origin field is not the +* GuC, or a FAST_REQUEST H2G came back rejected. FAST_REQUEST fences aren't +* tracked, so there is no caller to report to and the failure is escalated to a +* reset instead. +* ``-EOPNOTSUPP``: G2H carried an HXG type this driver does not handle. +* +* Reported but not returned +* ------------------------- +* +* These never reach a caller: they are detected in a void path or in a G2H +* handler whose return value is swallowed. They are reported and the CT is +* declared dead, which is the only escalation available: +* +* ``-EHOSTDOWN``: the GuC sent a crash dump or an exception notification, i.e. +* the firmware itself died. A reset is kicked to reload it. +* ``-ETOOMANYREFS``: G2H credit accounting went wrong - a release would push +* the free space past the usable size of the CTB, or there was no outstanding +* G2H to release. Indicates a driver-side bookkeeping bug, not a GuC one. +* Any error from a G2H action handler: the handler for a given G2H failed while +* processing it. The code is whatever the handler returned and is reported +* along with the action and the raw message, from both the worker +* (process_g2h_msg()) and the IRQ fast path (g2h_fast_path()). +*/ +static void receive_g2h (struct xe_guc_ct *ct);static void g2h_worker_func (struct work_struct *w);static void safe_mode_worker_func (struct work_struct *w);@@ -931,6 +1018,22 @@ static bool vf_action_can_safely_fail(struct xe_device *xe, u32 action) action == XE_GUC_ACTION_REGISTER_CONTEXT); } +static int ct_corrupted (struct xe_guc_ct *ct,struct guc_ctb *ctb, +u32 reason_code,const char *msg, ...) +{ +struct va_format vaf; +va_list va_args; + +va_start (va_args, msg); + vaf.fmt = msg; + vaf.va = &va_args; +xe_gt_err (ct_to_gt (ct),"GUC: CT: %pV" , &vaf); +va_end (va_args); + +process_ct_dead (ct, ctb, reason_code); +return -EPIPE ; +} +#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,
drivers/gpu/drm/xe/xe_guc_ct.c static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len, · line 1062
Quoted 9 lines
drivers/gpu/drm/xe/xe_guc_ct.c +2
-4@@ -955,23 +1058,22 @@ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len,u32 desc_status; desc_status =desc_read (xe, h2g, status); -if (desc_status) { -xe_gt_err (gt,"CT write: non-zero status: %u\n" , desc_status); - goto corrupted; - } +if (desc_status) + return ct_corrupted(ct, h2g, ct_error_id(H2G_WRITE),
not sure if it's just my editor by I see 2 spaces before "h2g". Other calls to ct_corrupted (including the g2h ones) seem to have the same issue.
Everything else looks ok so with the spacing fixed:
Daniele
Quoted 224 lines
drivers/gpu/drm/xe/xe_guc_ct.c +58
-42+ "write: non-zero status: %u\n", desc_status);if (tail > h2g->info.size) {desc_write (xe, h2g, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT write: tail out of range: %u vs %u\n" , - tail, h2g->info.size); - goto corrupted; +return ct_corrupted (ct, h2g,ct_error_id (H2G_WRITE ), +"write: tail out of range: %u vs %u\n" , + tail, h2g->info.size); }if (desc_head >= h2g->info.size) {desc_write (xe, h2g, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT write: invalid head offset %u >= %u)\n" , - desc_head, h2g->info.size); - goto corrupted; +return ct_corrupted (ct, h2g,ct_error_id (H2G_WRITE ), +"write: invalid head offset %u >= %u)\n" , + desc_head, h2g->info.size); } }@@ -1036,10 +1138,6 @@ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len, desc_read(xe, h2g, head), h2g->info.tail);return 0 ; - -corrupted: -CT_DEAD (ct, &ct->ctbs.h2g,H2G_WRITE ); -return -EPIPE ; } static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,@@ -1063,7 +1161,7 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, }if (unlikely (ct->ctbs.h2g.info.broken)) { - ret = -EPIPE ; + ret = -ECONNABORTED ; goto out; }@@ -1215,7 +1313,7 @@ static int guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, u32 len,return ret; broken: -xe_gt_err (gt,"No forward process on H2G, reset required\n" ); +xe_gt_err (gt,"No forward progress on H2G\n" );CT_DEAD (ct, &ct->ctbs.h2g,DEADLOCK );return -EDEADLK ;@@ -1250,6 +1348,9 @@ static int guc_ct_send(struct xe_guc_ct *ct, const u32 *action, u32 len,* request cannot make progress until the device is recovered. * * -EPIPE: the H2G CTB is marked broken. The channel stays unusable until the * CT is restarted, which clears the broken flag. +* * -ECONNABORTED: the H2G CTB is marked broken, so the driver aborted the +* channel. It stays unusable until the CT is restarted, which clears the +* broken flag. * * -ENODEV: the CT channel is disabled, messages not expected in this state. * Don't retry until it is enabled again. * * -ECANCELED: the CT channel is stopped or a GT recovery is pending; the @@ -1373,7 +1474,8 @@ int xe_guc_ct_send_g2h_handler(struct xe_guc_ct *ct, const u32 *action, u32 len)*/ static bool retry_failure (struct xe_guc_ct *ct,int ret) { -if (!(ret == -EDEADLK || ret == -EPIPE || ret == -ENODEV )) +if (!(ret == -EDEADLK || ret == -EPIPE || ret == -ECONNABORTED || + ret == -ENODEV ))return false;#define ct_alive (ct) \@@ -1678,8 +1780,7 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) origin =FIELD_GET (GUC_HXG_MSG_0_ORIGIN , hxg[0 ]);if (unlikely (origin !=GUC_HXG_ORIGIN_GUC )) { -xe_gt_err (gt,"G2H channel broken on read, origin=%u, reset required\n" , - origin); +xe_gt_err (gt,"Invalid G2H origin=%u\n" , origin);CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_ORIGIN );return -EPROTO ;@@ -1697,8 +1798,7 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) ret =parse_g2h_response (ct, msg, len);break ;default : -xe_gt_err (gt,"G2H channel broken on read, type=%u, reset required\n" , - type); +xe_gt_err (gt,"Unexpected G2H message type=%u\n" , type);CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_TYPE ); ret = -EOPNOTSUPP ;@@ -1819,6 +1919,7 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)xe_gt_assert (gt,xe_guc_ct_initialized (ct));lockdep_assert_held (&ct->fast_lock); +/* Keep in sync with g2h_err_is_fatal() */ if (xe_device_wedged (xe))return -ENOTRECOVERABLE ;@@ -1829,7 +1930,7 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)return -ECANCELED ;if (g2h->info.broken) -return -EPIPE ; +return -ECONNABORTED ;xe_gt_assert (gt,xe_guc_ct_enabled (ct));@@ -1845,10 +1946,9 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path) desc_status &= ~GUC_CTB_STATUS_DISABLED ; } -if (desc_status) { -xe_gt_err (gt,"CT read: non-zero status: %u\n" , desc_status); - goto corrupted; - } +if (desc_status) +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"read: non-zero status: %u\n" , desc_status); }if (IS_ENABLED (CONFIG_DRM_XE_DEBUG )) {@@ -1869,24 +1969,24 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)* if (g2h->info.head != desc_head) { desc_write(xe, g2h, status, desc_status | GUC_CTB_STATUS_MISMATCH); -xe_gt_err(gt, "CT read: head was modified %u != %u\n", -desc_head, g2h->info.head); -goto corrupted; +return ct_corrupted(ct, g2h, ct_error_id(G2H_READ), +"read: head was modified %u != %u\n", +desc_head, g2h->info.head); } */ if (g2h->info.head > g2h->info.size) {desc_write (xe, g2h, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT read: head out of range: %u vs %u\n" , - g2h->info.head, g2h->info.size); - goto corrupted; +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"read: head out of range: %u vs %u\n" , + g2h->info.head, g2h->info.size); }if (desc_tail >= g2h->info.size) {desc_write (xe, g2h, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT read: invalid tail offset %u >= %u)\n" , - desc_tail, g2h->info.size); - goto corrupted; +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"read: invalid tail offset %u >= %u)\n" , + desc_tail, g2h->info.size); } }@@ -1903,11 +2003,10 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)xe_map_memcpy_from (xe, msg, &g2h->cmds,sizeof (u32) * g2h->info.head,sizeof (u32)); len =FIELD_GET (GUC_CTB_MSG_0_NUM_DWORDS , msg[0 ]) +GUC_CTB_MSG_MIN_LEN ; -if (len > avail) { -xe_gt_err (gt,"G2H channel broken on read, avail=%d, len=%d, reset required\n" , - avail, len); - goto corrupted; - } +if (len > avail) +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"G2H channel broken on read, avail=%d, len=%d\n" , + avail, len); head = (g2h->info.head +1 ) % g2h->info.size; avail = len -1 ;@@ -1953,10 +2052,6 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path) action, len, g2h->info.head, tail);return len; - -corrupted: -CT_DEAD (ct, &ct->ctbs.g2h,G2H_READ ); -return -EPROTO ; }static void g2h_fast_path (struct xe_guc_ct *ct,u32 *msg,u32 len)@@ -2048,6 +2143,27 @@ static int dequeue_one_g2h(struct xe_guc_ct *ct)return 1 ; } +/* +* Errors reported by dequeue_one_g2h() come in two flavours: either the channel +* is simply not available right now, which is expected and handled gracefully, +* or the channel state or the message itself is inconsistent, in which case the +* only way forward is to declare the CT dead and reset the GuC. Since the +* former is a short and well known list, check against that and treat anything +* else as fatal, so that new error codes don't silently escape the escalation. +*/ +static bool g2h_err_is_fatal (int err) +{ +switch (err) { +case -ENOTRECOVERABLE :/* device wedged */ +case -ENODEV :/* CT disabled */ +case -ECANCELED :/* CT stopped */ +case -ECONNABORTED :/* CT already declared broken */ +return false; +default : +return true; + } +} +static void receive_g2h (struct xe_guc_ct *ct) {bool ongoing;@@ -2085,8 +2201,9 @@ static void receive_g2h(struct xe_guc_ct *ct) ret =dequeue_one_g2h (ct);mutex_unlock (&ct->lock); -if (unlikely (ret == -EPROTO || ret == -EOPNOTSUPP )) { -xe_gt_err (ct_to_gt (ct),"CT dequeue failed: %d\n" , ret); +if (unlikely (ret <0 &&g2h_err_is_fatal (ret))) { +xe_gt_err (ct_to_gt (ct),"CT dequeue failed, forcing GT reset(%pe)\n" , +ERR_PTR (ret));CT_DEAD (ct,NULL ,G2H_RECV );kick_reset (ct); }
Re: [PATCH v7 4/7] drm/xe/guc: Cleanup error codes and handling for CT errors
Quoted 31 lines · Daniele Ceraolo Spurio
Quoted 28 lines · Umesh Nerlige Ramappa
Instead of always returning
-EPROTOfor most errors, use different error codes based on the error type.-EPROTOis retained for the cases that are genuine protocol violations by the GuC. The remaining cases now report what actually went wrong.A CTB that has been flagged broken reports
-ECONNABORTEDrather than-EPERM. These errors are not contained within the driver: they reach userspace verbatim through the gt freq sysfs knobs (min_freq_store()->xe_guc_pc_set_min_freq()->xe_guc_ct_send()) and through the VFIO SR-IOV migration callbacks (xe_sriov_vfio_suspend_device()->xe_sriov_pf_control_pause_vf()->xe_guc_ct_send_block()).-EPERMreads as a privilege failure, so a user who hits a broken CT is told "Operation not permitted" and retries as root to no effect. Worse,xe_sriov_vfio.calready returns-EPERMfor its own "not a PF" check, so the two are indistinguishable to migration tooling.-ECONNABORTED("Software caused connection abort") says what actually
happened: the driver aborted the channel after detecting corruption.Note that
-ECONNABORTEDmust stay distinct from-EPIPE.-EPIPEmeans corruption was detected now and transitions the CTB to broken, whichg2h_err_is_fatal()classifies as fatal;-ECONNABORTEDmeans the CTB was already broken and is benign. Merging them would makereceive_g2h()re-declare the CT dead and re-kick a reset on every dequeue iteration.
receive_g2h()used to escalate toCT_DEAD+kick_reset()by matching the two error codes thatdequeue_one_g2h()could return on a fatal error. Invert the check to simplify reset handling.
Quoted 11 lines
Quoted 9 lines
Signed-off-by Umesh Nerlige Ramappa <[email protected]>Assisted-by Claude:claude-opus-5---
v2: (Daniele)
- Drop thexe_log_errorparagraph
- return EPIPE directly
- use h2g and g2h variables
- Add EPIPE comment back toxe_guc_ct_send
- s/ct_id/ct_error_id/ and s/ct_dead_capture/process_ct_dead/nit: the previous rev of this patch had a changelog up to v6 which is now gone.
yikes, adding revision history below --- and then doing a git am messes with it. I will add it back for the next rev
Quoted 126 lines
Quoted 126 lines
--- drivers/gpu/drm/xe/xe_guc_ct.c | 209 +++++++++++++++++++++++++-------- 1 file changed, 163 insertions(+), 46 deletions(-)drivers/gpu/drm/xe/xe_guc_ct.c +103
-0@@ -37,6 +37,93 @@#include "xe_sriov_vf.h" #include "xe_trace_guc.h" +/** +* DOC: GuC CT Error Codes +* +* Send path - xe_guc_ct_send(), xe_guc_ct_send_locked(), h2g_write() +* ------------------------------------------------------------------ +* +* Channel-state rejections - the message was never queued, nothing is corrupt: +* +* ``-ENOTRECOVERABLE``: the device is wedged. No CT traffic can make progress +* until the device is recovered. +* ``-ECONNABORTED``: the H2G CTB was flagged broken by an earlier corruption +* check, so the driver aborted the channel. It stays unusable until the CT is +* restarted, which clears the flag. +* ``-ENODEV``: the CT channel is disabled. Don't retry until it is enabled. +* ``-ECANCELED``: the CT channel is stopped or a GT recovery is pending, so the +* message was dropped. Often benign; retry after the reset/recovery completes. +* +* Internal flow control - never seen by callers, handled by the send helpers: +* +* ``-EBUSY``: not enough H2G room or G2H credits. Triggers a flush, a wait and +* a retry. +* ``-EAGAIN``: the message would wrap the H2G ring, so the tail was NOP-filled +* and reset to 0. The write is reissued immediately. +* +* Hard failures: +* +* ``-EPIPE``: H2G descriptor corruption found before writing - non-zero status, +* or head/tail out of range. Marks the CTB broken. +* ``-EDEADLK``: H2G credits never recovered after waiting ~1s. An async GT reset +* is requested before this is returned. +* ``-EPROTO``: the MMIO CT enable/disable handshake got an unexpected reply. +* ``-ENOMEM``: internal allocation failure (fence lookup under GFP_ATOMIC, or the +* G2H workqueue at init). The blocking path retries the allocation with +* GFP_KERNEL. +* +* Blocking send only (xe_guc_ct_send_recv()) - the H2G went out, the reply is the +* problem: +* +* ``-ETIME``: no G2H response within 1s, even after flushing the G2H worker. +* ``-EIO``: the GuC replied RESPONSE_FAILURE; error and hint codes are logged. +* ``-ELOOP``: the GuC kept replying NO_RESPONSE_RETRY until the request hit +* GUC_SEND_RETRY_LIMIT. (NO_RESPONSE_BUSY is not an error - the waiter re-arms.) +* ``-ECANCELED``: the pending fence was canceled while waiting, because the CT +* was stopped underneath the waiter. Retry after the reset completes. +* ``-ENOTRECOVERABLE``: same as above, but the device got wedged in the +* meantime, so there is nothing to retry. +* +* Receive path - g2h_read(), parse_g2h_msg(), dequeue_one_g2h() +* ------------------------------------------------------------- +* +* Channel-state rejections - the same four codes as the send path, checked against +* the G2H CTB. g2h_err_is_fatal() treats exactly these as benign; anything else +* declares the CT dead and kicks a reset: +* +* ``-ENOTRECOVERABLE``: device wedged. +* ``-ENODEV``: CT disabled. +* ``-ECANCELED``: CT stopped. +* ``-ECONNABORTED``: G2H CTB already flagged broken. +* +* Hard failures: +* +* ``-EPIPE``: G2H descriptor corruption - non-zero status, head/tail out of +* range, or a declared message length larger than the data actually available. +* ``-EPROTO``: HXG protocol violation. Either the G2H origin field is not the +* GuC, or a FAST_REQUEST H2G came back rejected. FAST_REQUEST fences aren't +* tracked, so there is no caller to report to and the failure is escalated to a +* reset instead. +* ``-EOPNOTSUPP``: G2H carried an HXG type this driver does not handle. +* +* Reported but not returned +* ------------------------- +* +* These never reach a caller: they are detected in a void path or in a G2H +* handler whose return value is swallowed. They are reported and the CT is +* declared dead, which is the only escalation available: +* +* ``-EHOSTDOWN``: the GuC sent a crash dump or an exception notification, i.e. +* the firmware itself died. A reset is kicked to reload it. +* ``-ETOOMANYREFS``: G2H credit accounting went wrong - a release would push +* the free space past the usable size of the CTB, or there was no outstanding +* G2H to release. Indicates a driver-side bookkeeping bug, not a GuC one. +* Any error from a G2H action handler: the handler for a given G2H failed while +* processing it. The code is whatever the handler returned and is reported +* along with the action and the raw message, from both the worker +* (process_g2h_msg()) and the IRQ fast path (g2h_fast_path()). +*/ +static void receive_g2h (struct xe_guc_ct *ct);static void g2h_worker_func (struct work_struct *w);static void safe_mode_worker_func (struct work_struct *w);@@ -931,6 +1018,22 @@ static bool vf_action_can_safely_fail(struct xe_device *xe, u32 action) action == XE_GUC_ACTION_REGISTER_CONTEXT); } +static int ct_corrupted (struct xe_guc_ct *ct,struct guc_ctb *ctb, +u32 reason_code,const char *msg, ...) +{ +struct va_format vaf; +va_list va_args; + +va_start (va_args, msg); + vaf.fmt = msg; + vaf.va = &va_args; +xe_gt_err (ct_to_gt (ct),"GUC: CT: %pV" , &vaf); +va_end (va_args); + +process_ct_dead (ct, ctb, reason_code); +return -EPIPE ; +} +#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,@@ -955,23 +1058,22 @@ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len,u32 desc_status; desc_status =desc_read (xe, h2g, status);
Quoted 8 lines
drivers/gpu/drm/xe/xe_guc_ct.c static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len, · line 1062
Quoted 6 lines
drivers/gpu/drm/xe/xe_guc_ct.c +2
-4-if (desc_status) { -xe_gt_err (gt,"CT write: non-zero status: %u\n" , desc_status); - goto corrupted; - } +if (desc_status) + return ct_corrupted(ct, h2g, ct_error_id(H2G_WRITE),not sure if it's just my editor by I see 2 spaces before "h2g". Other calls to
ct_corrupted(including the g2h ones) seem to have the same issue.
will fix
Quoted 6 lines
Everything else looks ok so with the spacing fixed:
Reviewed-by Daniele Ceraolo Spurio <[email protected]>Daniele
Thanks,
Umesh
Quoted 198 lines
Quoted 197 lines
drivers/gpu/drm/xe/xe_guc_ct.c +58
-42+ "write: non-zero status: %u\n", desc_status);if (tail > h2g->info.size) {desc_write (xe, h2g, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT write: tail out of range: %u vs %u\n" , - tail, h2g->info.size); - goto corrupted; +return ct_corrupted (ct, h2g,ct_error_id (H2G_WRITE ), +"write: tail out of range: %u vs %u\n" , + tail, h2g->info.size); }if (desc_head >= h2g->info.size) {desc_write (xe, h2g, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT write: invalid head offset %u >= %u)\n" , - desc_head, h2g->info.size); - goto corrupted; +return ct_corrupted (ct, h2g,ct_error_id (H2G_WRITE ), +"write: invalid head offset %u >= %u)\n" , + desc_head, h2g->info.size); } }@@ -1036,10 +1138,6 @@ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len, desc_read(xe, h2g, head), h2g->info.tail);return 0 ; - -corrupted: -CT_DEAD (ct, &ct->ctbs.h2g,H2G_WRITE ); -return -EPIPE ; } static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,@@ -1063,7 +1161,7 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, }if (unlikely (ct->ctbs.h2g.info.broken)) { - ret = -EPIPE ; + ret = -ECONNABORTED ; goto out; }@@ -1215,7 +1313,7 @@ static int guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, u32 len,return ret; broken: -xe_gt_err (gt,"No forward process on H2G, reset required\n" ); +xe_gt_err (gt,"No forward progress on H2G\n" );CT_DEAD (ct, &ct->ctbs.h2g,DEADLOCK );return -EDEADLK ;@@ -1250,6 +1348,9 @@ static int guc_ct_send(struct xe_guc_ct *ct, const u32 *action, u32 len,* request cannot make progress until the device is recovered. * * -EPIPE: the H2G CTB is marked broken. The channel stays unusable until the * CT is restarted, which clears the broken flag. +* * -ECONNABORTED: the H2G CTB is marked broken, so the driver aborted the +* channel. It stays unusable until the CT is restarted, which clears the +* broken flag. * * -ENODEV: the CT channel is disabled, messages not expected in this state. * Don't retry until it is enabled again. * * -ECANCELED: the CT channel is stopped or a GT recovery is pending; the @@ -1373,7 +1474,8 @@ int xe_guc_ct_send_g2h_handler(struct xe_guc_ct *ct, const u32 *action, u32 len)*/ static bool retry_failure (struct xe_guc_ct *ct,int ret) { -if (!(ret == -EDEADLK || ret == -EPIPE || ret == -ENODEV )) +if (!(ret == -EDEADLK || ret == -EPIPE || ret == -ECONNABORTED || + ret == -ENODEV ))return false;#define ct_alive (ct) \@@ -1678,8 +1780,7 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) origin =FIELD_GET (GUC_HXG_MSG_0_ORIGIN , hxg[0 ]);if (unlikely (origin !=GUC_HXG_ORIGIN_GUC )) { -xe_gt_err (gt,"G2H channel broken on read, origin=%u, reset required\n" , - origin); +xe_gt_err (gt,"Invalid G2H origin=%u\n" , origin);CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_ORIGIN );return -EPROTO ;@@ -1697,8 +1798,7 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) ret =parse_g2h_response (ct, msg, len);break ;default : -xe_gt_err (gt,"G2H channel broken on read, type=%u, reset required\n" , - type); +xe_gt_err (gt,"Unexpected G2H message type=%u\n" , type);CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_TYPE ); ret = -EOPNOTSUPP ;@@ -1819,6 +1919,7 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)xe_gt_assert (gt,xe_guc_ct_initialized (ct));lockdep_assert_held (&ct->fast_lock); +/* Keep in sync with g2h_err_is_fatal() */ if (xe_device_wedged (xe))return -ENOTRECOVERABLE ;@@ -1829,7 +1930,7 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)return -ECANCELED ;if (g2h->info.broken) -return -EPIPE ; +return -ECONNABORTED ;xe_gt_assert (gt,xe_guc_ct_enabled (ct));@@ -1845,10 +1946,9 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path) desc_status &= ~GUC_CTB_STATUS_DISABLED ; } -if (desc_status) { -xe_gt_err (gt,"CT read: non-zero status: %u\n" , desc_status); - goto corrupted; - } +if (desc_status) +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"read: non-zero status: %u\n" , desc_status); }if (IS_ENABLED (CONFIG_DRM_XE_DEBUG )) {@@ -1869,24 +1969,24 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)* if (g2h->info.head != desc_head) { desc_write(xe, g2h, status, desc_status | GUC_CTB_STATUS_MISMATCH); -xe_gt_err(gt, "CT read: head was modified %u != %u\n", -desc_head, g2h->info.head); -goto corrupted; +return ct_corrupted(ct, g2h, ct_error_id(G2H_READ), +"read: head was modified %u != %u\n", +desc_head, g2h->info.head); } */ if (g2h->info.head > g2h->info.size) {desc_write (xe, g2h, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT read: head out of range: %u vs %u\n" , - g2h->info.head, g2h->info.size); - goto corrupted; +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"read: head out of range: %u vs %u\n" , + g2h->info.head, g2h->info.size); }if (desc_tail >= g2h->info.size) {desc_write (xe, g2h, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (gt,"CT read: invalid tail offset %u >= %u)\n" , - desc_tail, g2h->info.size); - goto corrupted; +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"read: invalid tail offset %u >= %u)\n" , + desc_tail, g2h->info.size); } }@@ -1903,11 +2003,10 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)xe_map_memcpy_from (xe, msg, &g2h->cmds,sizeof (u32) * g2h->info.head,sizeof (u32)); len =FIELD_GET (GUC_CTB_MSG_0_NUM_DWORDS , msg[0 ]) +GUC_CTB_MSG_MIN_LEN ; -if (len > avail) { -xe_gt_err (gt,"G2H channel broken on read, avail=%d, len=%d, reset required\n" , - avail, len); - goto corrupted; - } +if (len > avail) +return ct_corrupted (ct, g2h,ct_error_id (G2H_READ ), +"G2H channel broken on read, avail=%d, len=%d\n" , + avail, len); head = (g2h->info.head +1 ) % g2h->info.size; avail = len -1 ;@@ -1953,10 +2052,6 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path) action, len, g2h->info.head, tail);return len; - -corrupted: -CT_DEAD (ct, &ct->ctbs.g2h,G2H_READ ); -return -EPROTO ; }static void g2h_fast_path (struct xe_guc_ct *ct,u32 *msg,u32 len)@@ -2048,6 +2143,27 @@ static int dequeue_one_g2h(struct xe_guc_ct *ct)return 1 ; } +/* +* Errors reported by dequeue_one_g2h() come in two flavours: either the channel +* is simply not available right now, which is expected and handled gracefully, +* or the channel state or the message itself is inconsistent, in which case the +* only way forward is to declare the CT dead and reset the GuC. Since the +* former is a short and well known list, check against that and treat anything +* else as fatal, so that new error codes don't silently escape the escalation. +*/ +static bool g2h_err_is_fatal (int err) +{ +switch (err) { +case -ENOTRECOVERABLE :/* device wedged */ +case -ENODEV :/* CT disabled */ +case -ECANCELED :/* CT stopped */ +case -ECONNABORTED :/* CT already declared broken */ +return false; +default : +return true; + } +} +static void receive_g2h (struct xe_guc_ct *ct) {bool ongoing;@@ -2085,8 +2201,9 @@ static void receive_g2h(struct xe_guc_ct *ct) ret =dequeue_one_g2h (ct);mutex_unlock (&ct->lock); -if (unlikely (ret == -EPROTO || ret == -EOPNOTSUPP )) { -xe_gt_err (ct_to_gt (ct),"CT dequeue failed: %d\n" , ret); +if (unlikely (ret <0 &&g2h_err_is_fatal (ret))) { +xe_gt_err (ct_to_gt (ct),"CT dequeue failed, forcing GT reset(%pe)\n" , +ERR_PTR (ret));CT_DEAD (ct,NULL ,G2H_RECV );kick_reset (ct); }
PATCH v7 5/7 drm/xe/uc: Report DMA failure using SIGID
In reply to Umesh Nerlige RamappaFrom: Daniele Ceraolo Spurio <[email protected]>
Convert the uC DMA failure error to use the xe_log_err() helper.
--- drivers/gpu/drm/xe/xe_uc_fw.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_uc_fw.c +10 -3
@@ -18,6 +18,7 @@#include "xe_gt_sriov_vf.h" #include "xe_gt_types.h" #include "xe_guc.h" +#include "xe_log.h" #include "xe_map.h" #include "xe_mmio.h" #include "xe_module.h"
@@ -915,8 +916,12 @@ static int uc_fw_xfer(struct xe_uc_fw *uc_fw, u32 offset, u32 dma_flags)int xe_uc_fw_upload (struct xe_uc_fw *uc_fw,u32 offset,u32 dma_flags) {struct xe_device *xe =uc_fw_to_xe (uc_fw); +struct xe_gt *gt =uc_fw_to_gt (uc_fw);int err; +xe_gt_assert (gt, uc_fw->type ==XE_UC_FW_TYPE_GUC || + uc_fw->type ==XE_UC_FW_TYPE_HUC ); +/* make sure the status was cleared the last time we reset the uc */ xe_assert (xe, !xe_uc_fw_is_loaded (uc_fw));
@@ -932,9 +937,11 @@ int xe_uc_fw_upload(struct xe_uc_fw *uc_fw, u32 offset, u32 dma_flags)return 0 ; fail: -drm_err (&xe->drm,"Failed to load %s firmware %s (%d)\n" , -xe_uc_fw_type_repr (uc_fw->type), uc_fw->path, - err); +if (uc_fw->type ==XE_UC_FW_TYPE_GUC ) +xe_log_err (gt,GUC , err,"Failed to load firmware %s\n" , uc_fw->path); +else +xe_log_err (gt,HUC , err,"Failed to load firmware %s\n" , uc_fw->path); +xe_uc_fw_change_status (uc_fw,XE_UC_FIRMWARE_LOAD_FAIL );return err; }
Signature · 1 line
2.55.0
PATCH v7 6/7 drm/xe/guc: Report major GuC failures using SIGID
In reply to Umesh Nerlige RamappaFrom: Daniele Ceraolo Spurio <[email protected]>
Convert errors during critical GuC flows (init, load, reset, suspend) to use the xe_log_err() helper.
While at it, simplify the error log for the GuC load failure to use the cached frequency values instead of fetching them again.
--- drivers/gpu/drm/xe/xe_guc.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/gpu/drm/xe/xe_guc.c +9 -9
@@ -777,7 +777,7 @@ int xe_guc_init_noalloc(struct xe_guc *guc)return 0 ; out: -xe_gt_err (gt,"GuC init failed with %pe\n" ,ERR_PTR (ret)); +xe_log_err (gt,GUC , ret,"Early initialization error\n" );return ret; }
@@ -845,7 +845,7 @@ int xe_guc_init(struct xe_guc *guc)return 0 ; out: -xe_gt_err (gt,"GuC init failed with %pe\n" ,ERR_PTR (ret)); +xe_log_err (gt,GUC , ret,"Initialization error\n" );return ret; }
@@ -998,15 +998,15 @@ int xe_guc_reset(struct xe_guc *guc) ret =xe_mmio_wait32 (mmio,GDRST ,GRDOM_GUC ,0 ,5000 , &gdrst, false);if (ret) { -xe_gt_err (gt,"GuC reset timed out, GDRST=%#x\n" , gdrst); +xe_log_err (gt,GUC , ret,"Reset timeout, GDRST=%#x\n" , gdrst); goto err_out; } guc_status =xe_mmio_read32 (mmio,GUC_STATUS );if (!(guc_status &GS_MIA_IN_RESET )) { -xe_gt_err (gt,"GuC status: %#x, MIA core expected to be in reset\n" , - guc_status); ret = -EIO ; +xe_log_err (gt,GUC , ret,"MIA core not in reset, GUC_STATUS=%#x\n" , + guc_status); goto err_out; }
@@ -1224,9 +1224,9 @@ static int guc_wait_ucode(struct xe_guc *guc) cur_freq =xe_guc_pc_get_cur_freq_fw (guc_pc);if (ret || load_result) { -xe_gt_err (gt,"load failed: status = 0x%08X, time = %lldms, freq = %dMHz (req %dMHz)\n" , - status, delta_ms,xe_guc_pc_get_act_freq (guc_pc), -xe_guc_pc_get_cur_freq_fw (guc_pc)); +xe_log_err (gt,GUC , ret ?: load_result, +"Load failed, GUC_STATUS=%#x, time = %lldms, freq = %uMHz (req %uMHz)\n" , + status, delta_ms, act_freq, cur_freq);print_load_status_err (gt, status);return ret ?: load_result;
@@ -1463,7 +1463,7 @@ int xe_guc_suspend(struct xe_guc *guc) ret =xe_guc_softreset (guc);if (ret) { -xe_gt_err (gt,"GuC suspend failed: %pe\n" ,ERR_PTR (ret)); +xe_log_err (gt,GUC , ret,"Suspend aborted\n" );return ret; }
Signature · 1 line
2.55.0
PATCH v7 7/7 drm/xe/guc: Report errors that cause a CT shutdown using SIGID
In reply to Umesh Nerlige RamappaFrom: Daniele Ceraolo Spurio <[email protected]>
Convert any errors that can cause the CT to be declared as dead to use the xe_log_err() helper. Errors that are escalated to the callers are left for the caller to report with SIGID if needed. While at it, update some of the error messages to make what went wrong clearer.
---
v2: Use variable err for EPIPE in ct_corrupted
--- drivers/gpu/drm/xe/xe_guc_ct.c | 85 ++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 36 deletions(-)
drivers/gpu/drm/xe/xe_guc_ct.c +49 -36
@@ -30,6 +30,7 @@#include "xe_guc_relay.h" #include "xe_guc_submit.h" #include "xe_guc_tlb_inval.h" +#include "xe_log.h" #include "xe_map.h" #include "xe_page_reclaim.h" #include "xe_pm.h"
@@ -100,10 +101,12 @@* * ``-EPIPE``: G2H descriptor corruption - non-zero status, head/tail out of * range, or a declared message length larger than the data actually available. -* ``-EPROTO``: HXG protocol violation. Either the G2H origin field is not the -* GuC, or a FAST_REQUEST H2G came back rejected. FAST_REQUEST fences aren't -* tracked, so there is no caller to report to and the failure is escalated to a -* reset instead. +* ``-EBADMSG``: the G2H origin field is not the GuC. +* ``-EINVAL``: a FAST_REQUEST H2G came back rejected. FAST_REQUEST fences +* aren't tracked, so there is no caller to report to and the failure is +* escalated to a reset instead. +* ``-EPROTO``: a FAST_REQUEST H2G got a reply that is neither a rejection nor +* a valid response type. * ``-EOPNOTSUPP``: G2H carried an HXG type this driver does not handle. * * Reported but not returned
@@ -761,7 +764,7 @@ static int __xe_guc_ct_start(struct xe_guc_ct *ct, bool needs_register)return 0 ; err_out: -xe_gt_err (gt,"Failed to enable GuC CT (%pe)\n" ,ERR_PTR (err)); +xe_log_err (gt,GUC , err,"CT: Failed to enable\n" );CT_DEAD (ct,NULL ,SETUP );return err;
@@ -885,8 +888,9 @@ static bool h2g_has_room(struct xe_guc_ct *ct, u32 cmd_len)desc_write (xe, h2g, status, desc_status |GUC_CTB_STATUS_OVERFLOW ); -xe_gt_err (ct_to_gt (ct),"CT: invalid head offset %u >= %u)\n" , - h2g->info.head, h2g->info.size); +xe_log_err (ct_to_gt (ct),GUC , -EPIPE , +"CT: invalid head offset %u >= %u)\n" , + h2g->info.head, h2g->info.size);CT_DEAD (ct, h2g,H2G_HAS_ROOM );return false; }
@@ -955,12 +959,13 @@ static void __g2h_release_space(struct xe_guc_ct *ct, u32 g2h_len) bad |= !ct->g2h_outstanding;if (bad) { -xe_gt_err (ct_to_gt (ct),"Invalid G2H release: %d + %d vs %d - %d -> %d vs %d, outstanding = %d!\n" , - ct->ctbs.g2h.info.space, g2h_len, - ct->ctbs.g2h.info.size, ct->ctbs.g2h.info.resv_space, - ct->ctbs.g2h.info.space + g2h_len, - ct->ctbs.g2h.info.size - ct->ctbs.g2h.info.resv_space, - ct->g2h_outstanding); +xe_log_err (ct_to_gt (ct),GUC , -ETOOMANYREFS , +"CT: Invalid G2H release: %d + %d vs %d - %d -> %d vs %d, outstanding = %d!\n" , + ct->ctbs.g2h.info.space, g2h_len, + ct->ctbs.g2h.info.size, ct->ctbs.g2h.info.resv_space, + ct->ctbs.g2h.info.space + g2h_len, + ct->ctbs.g2h.info.size - ct->ctbs.g2h.info.resv_space, + ct->g2h_outstanding);CT_DEAD (ct, &ct->ctbs.g2h,G2H_RELEASE );return ; }
@@ -1023,15 +1028,16 @@ static int ct_corrupted(struct xe_guc_ct *ct, struct guc_ctb *ctb, {struct va_format vaf;va_list va_args; +int err = -EPIPE ;va_start (va_args, msg); vaf.fmt = msg; vaf.va = &va_args; -xe_gt_err (ct_to_gt (ct),"GUC: CT: %pV" , &vaf); +xe_log_err (ct_to_gt (ct),GUC , err,"CT: %pV" , &vaf);va_end (va_args);process_ct_dead (ct, ctb, reason_code); -return -EPIPE ; +return err; }#define H2G_CT_HEADERS (GUC_CTB_HDR_LEN + 1)/* one DW CTB header and one DW HxG header */
@@ -1313,7 +1319,7 @@ static int guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action, u32 len,return ret; broken: -xe_gt_err (gt,"No forward progress on H2G\n" ); +xe_log_err (gt,GUC , -EDEADLK ,"CT: No forward progress on H2G\n" );CT_DEAD (ct, &ct->ctbs.h2g,DEADLOCK );return -EDEADLK ;
@@ -1665,14 +1671,14 @@ static int parse_g2h_event(struct xe_guc_ct *ct, u32 *msg, u32 len)static void guc_handle_crash_dump_msg (struct xe_guc_ct *ct) { -xe_gt_err (ct_to_gt (ct),"GuC Crash dump notification\n" ); +xe_log_err (ct_to_gt (ct),GUC , -EHOSTDOWN ,"Crash dump notification\n" );CT_DEAD (ct,NULL ,CRASH );kick_reset (ct); }static void guc_handle_exception_msg (struct xe_guc_ct *ct) { -xe_gt_err (ct_to_gt (ct),"GuC Exception notification\n" ); +xe_log_err (ct_to_gt (ct),GUC , -EHOSTDOWN ,"Exception notification\n" );CT_DEAD (ct,NULL ,CRASH );kick_reset (ct); }
@@ -1697,14 +1703,21 @@ static int parse_g2h_response(struct xe_guc_ct *ct, u32 *msg, u32 len)* failure to trigger a reset. */ if (fence &CT_SEQNO_UNTRACKED ) { -if (type ==GUC_HXG_TYPE_RESPONSE_FAILURE ) -xe_gt_err (gt,"FAST_REQ H2G fence 0x%x failed! e=0x%x, h=%u\n" , - fence, -FIELD_GET (GUC_HXG_FAILURE_MSG_0_ERROR , hxg[0 ]), -FIELD_GET (GUC_HXG_FAILURE_MSG_0_HINT , hxg[0 ])); -else -xe_gt_err (gt,"unexpected response %u for FAST_REQ H2G fence 0x%x!\n" , - type, fence); +int err; + +if (type ==GUC_HXG_TYPE_RESPONSE_FAILURE ) { + err = -EINVAL ; +xe_log_err (gt,GUC , err, +"CT: FAST_REQ H2G fence 0x%x failed! e=0x%x, h=%u\n" , + fence, +FIELD_GET (GUC_HXG_FAILURE_MSG_0_ERROR , hxg[0 ]), +FIELD_GET (GUC_HXG_FAILURE_MSG_0_HINT , hxg[0 ])); + }else { + err = -EPROTO ; +xe_log_err (gt,GUC , err, +"CT: unexpected response %u for FAST_REQ H2G fence 0x%x!\n" , + type, fence); + }fast_req_report (ct, fence);
@@ -1714,7 +1727,7 @@ static int parse_g2h_response(struct xe_guc_ct *ct, u32 *msg, u32 len)CT_DEAD (ct,NULL ,PARSE_G2H_RESPONSE ); -return -EPROTO ; +return err; }/* don't erase as we still expect a final response with the same fence */
@@ -1780,10 +1793,12 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) origin =FIELD_GET (GUC_HXG_MSG_0_ORIGIN , hxg[0 ]);if (unlikely (origin !=GUC_HXG_ORIGIN_GUC )) { -xe_gt_err (gt,"Invalid G2H origin=%u\n" , origin); +int err = -EBADMSG ; + +xe_log_err (gt,GUC , err,"CT: Invalid G2H origin=%u\n" , origin);CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_ORIGIN ); -return -EPROTO ; +return err; } type =FIELD_GET (GUC_HXG_MSG_0_TYPE , hxg[0 ]);
@@ -1798,7 +1813,7 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) ret =parse_g2h_response (ct, msg, len);break ;default : -xe_gt_err (gt,"Unexpected G2H message type=%u\n" , type); +xe_log_err (gt,GUC , -EOPNOTSUPP ,"CT: Unexpected G2H message type %u\n" , type);CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_TYPE ); ret = -EOPNOTSUPP ;
@@ -1898,8 +1913,8 @@ static int process_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) }if (ret) { -xe_gt_err (gt,"G2H action %#04x failed (%pe) len %u msg %*ph\n" , - action,ERR_PTR (ret), hxg_len, (int )sizeof (u32) * hxg_len, hxg); +xe_log_err (gt,GUC , ret,"CT: G2H action %#04x failed len %u msg %*ph\n" , + action, hxg_len, (int )sizeof (u32) * hxg_len, hxg);CT_DEAD (ct,NULL ,PROCESS_FAILED ); }
@@ -2082,8 +2097,7 @@ static void g2h_fast_path(struct xe_guc_ct *ct, u32 *msg, u32 len) }if (ret) { -xe_gt_err (gt,"G2H action 0x%04x failed (%pe)\n" , - action,ERR_PTR (ret)); +xe_log_err (gt,GUC , ret,"CT: G2H action 0x%04x failed\n" , action);CT_DEAD (ct,NULL ,FAST_G2H ); } }
@@ -2202,8 +2216,7 @@ static void receive_g2h(struct xe_guc_ct *ct)mutex_unlock (&ct->lock);if (unlikely (ret <0 &&g2h_err_is_fatal (ret))) { -xe_gt_err (ct_to_gt (ct),"CT dequeue failed, forcing GT reset(%pe)\n" , -ERR_PTR (ret)); +xe_log_err (ct_to_gt (ct),GUC , ret,"CT: dequeue failed, forcing GT reset\n" );CT_DEAD (ct,NULL ,G2H_RECV );kick_reset (ct); }
Signature · 1 line
2.55.0
RE: [PATCH v7 7/7] drm/xe/guc: Report errors that cause a CT shutdown using SIGID
Quoted 15 lines
-----Original Message-----
From: Intel-xe <[email protected]> On Behalf Of Umesh Nerlige Ramappa
Sent: Tuesday, October 13, 2026 4:59 AM
To: [email protected]
Cc: Ceraolo Spurio, Daniele <[email protected]>; Iddamsetty, Aravind <[email protected]>; Koujalagi, Mallesh <[email protected]>; Teres Alexis, Alan Previn <[email protected]>; Filipchuk, Julia <[email protected]>; Wajdeczko, Michal <[email protected]>
Subject: [PATCH v7 7/7] drm/xe/guc: Report errors that cause a CT shutdown using SIGID
Quoted 7 lines
From: Daniele Ceraolo Spurio <[email protected]>
Convert any errors that can cause the CT to be declared as dead to use the
xe_log_err()helper. Errors that are escalated to the callers are left for the caller to report with SIGID if needed.
While at it, update some of the error messages to make what went wrong clearer.
Hi,
This patch-3 [1] of this series is having the conflict with latest xe from the commit [2].
[1] https://patchwork.freedesktop.org/patch/759595/?series=173177&rev=6
[2] 557d40cfae37 ("drm/xe/guc: Add dump_cache to optimize GuC CT/Log compression flow").zz
Quoted 2 lines
Signed-off-by Daniele Ceraolo Spurio <[email protected]>Signed-off-by Umesh Nerlige Ramappa <[email protected]>
The changes in current patch look good to me after resolving the conflict locally.
Dnyaneshwar
Quoted 250 lines
Assisted-by Claude:claude-opus-5---
v2: Use variable err for EPIPE inct_corrupted--- drivers/gpu/drm/xe/xe_guc_ct.c | 85 ++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 36 deletions(-)drivers/gpu/drm/xe/xe_guc_ct.c +1
-2@@ -30,6 +30,7 @@#include "xe_guc_relay.h" #include "xe_guc_submit.h" #include "xe_guc_tlb_inval.h" +#include "xe_log.h" #include "xe_map.h" #include "xe_page_reclaim.h" #include "xe_pm.h" @@ -100,10 +101,12 @@* * ``-EPIPE``: G2H descriptor corruption - non-zero status, head/tail out of * range, or a declared message length larger than the data actually available. -* ``-EPROTO``: HXG protocol violation. Either the G2H origin field is not the -* GuC, or a FAST_REQUEST H2G came back rejected. FAST_REQUEST fences aren't
- * tracked, so there is no caller to report to and the failure is escalated to a
- * reset instead.
+ * ``-EBADMSG``: the G2H origin field is not the GuC.
+ * ``-EINVAL``: aFAST_REQUESTH2G came back rejected.FAST_REQUESTfences
+ * aren't tracked, so there is no caller to report to and the failure is
+ * escalated to a reset instead.
+ * ``-EPROTO``: aFAST_REQUESTH2G got a reply that is neither a rejection nor
+ * a valid response type.
* ``-EOPNOTSUPP``: G2H carried an HXG type this driver does not handle. *
* Reported but not returneddrivers/gpu/drm/xe/xe_guc_ct.c +1
-1@@ -761,7 +764,7 @@ static int __xe_guc_ct_start(struct xe_guc_ct *ct, bool needs_register)return 0 ; err_out: -xe_gt_err (gt,"Failed to enable GuC CT (%pe)\n" ,ERR_PTR (err)); +xe_log_err (gt,GUC , err,"CT: Failed to enable\n" );CT_DEAD (ct,NULL ,SETUP );drivers/gpu/drm/xe/xe_guc_ct.c +3
-2return err;@@ -885,8 +888,9 @@ static bool h2g_has_room(struct xe_guc_ct *ct, u32 cmd_len) desc_write(xe, h2g, status, desc_status | GUC_CTB_STATUS_OVERFLOW); - xe_gt_err(ct_to_gt(ct), "CT: invalid head offset %u >= %u)\n", - h2g->info.head, h2g->info.size); + xe_log_err(ct_to_gt(ct), GUC, -EPIPE, +"CT: invalid head offset %u >= %u)\n" , + h2g->info.head, h2g->info.size);drivers/gpu/drm/xe/xe_guc_ct.c +10
-9CT_DEAD (ct, h2g,H2G_HAS_ROOM );return false; }@@ -955,12 +959,13 @@ static void __g2h_release_space(struct xe_guc_ct *ct, u32 g2h_len) bad |= !ct->g2h_outstanding;if (bad) { - xe_gt_err(ct_to_gt(ct), "Invalid G2H release: %d + %d vs %d - %d -> %d vs %d, outstanding = %d!\n", - ct->ctbs.g2h.info.space, g2h_len, - ct->ctbs.g2h.info.size, ct->ctbs.g2h.info.resv_space, - ct->ctbs.g2h.info.space + g2h_len, - ct->ctbs.g2h.info.size - ct->ctbs.g2h.info.resv_space, - ct->g2h_outstanding); +xe_log_err (ct_to_gt (ct),GUC , -ETOOMANYREFS , + "CT: Invalid G2H release: %d + %d vs %d - %d -> %d vs %d, outstanding = %d!\n", + ct->ctbs.g2h.info.space, g2h_len, + ct->ctbs.g2h.info.size, ct->ctbs.g2h.info.resv_space, + ct->ctbs.g2h.info.space + g2h_len, + ct->ctbs.g2h.info.size - ct->ctbs.g2h.info.resv_space, + ct->g2h_outstanding);CT_DEAD (ct, &ct->ctbs.g2h,G2H_RELEASE );return ; }@@ -1023,15 +1028,16 @@ static int ct_corrupted(struct xe_guc_ct *ct, struct guc_ctb *ctb, {struct va_format vaf;va_list va_args; +int err = -EPIPE ;va_start (va_args, msg); vaf.fmt = msg; vaf.va = &va_args; -xe_gt_err (ct_to_gt (ct),"GUC: CT: %pV" , &vaf); +xe_log_err (ct_to_gt (ct),GUC , err,"CT: %pV" , &vaf);va_end (va_args);process_ct_dead (ct, ctb, reason_code); -return -EPIPE ; +return err; }#define H2G_CT_HEADERS (GUC_CTB_HDR_LEN + 1)/* one DW CTB header and one DW HxG header */ @@ -1313,7 +1319,7 @@ static int guc_ct_send_locked(struct
xe_guc_ct*ct, const u32 *action, u32 len,drivers/gpu/drm/xe/xe_guc_ct.c +4
-10return ret; broken: -xe_gt_err (gt,"No forward progress on H2G\n" ); +xe_log_err (gt,GUC , -EDEADLK ,"CT: No forward progress on H2G\n" );CT_DEAD (ct, &ct->ctbs.h2g,DEADLOCK );return -EDEADLK ;@@ -1665,14 +1671,14 @@ static int parse_g2h_event(struct xe_guc_ct *ct, u32 *msg, u32 len)static void guc_handle_crash_dump_msg (struct xe_guc_ct *ct) { -xe_gt_err (ct_to_gt (ct),"GuC Crash dump notification\n" ); +xe_log_err (ct_to_gt (ct),GUC , -EHOSTDOWN ,"Crash dump +notification\n");CT_DEAD (ct,NULL ,CRASH );kick_reset (ct); }static void guc_handle_exception_msg (struct xe_guc_ct *ct) { -xe_gt_err (ct_to_gt (ct),"GuC Exception notification\n" ); +xe_log_err (ct_to_gt (ct),GUC , -EHOSTDOWN ,"Exception notification\n" );CT_DEAD (ct,NULL ,CRASH );kick_reset (ct); }@@ -1697,14 +1703,21 @@ static int parse_g2h_response(struct xe_guc_ct *ct,u32 *msg, u32 len) * failure to trigger a reset. */ if (fence &CT_SEQNO_UNTRACKED ) { -if (type ==GUC_HXG_TYPE_RESPONSE_FAILURE ) - xe_gt_err(gt, "FAST_REQ H2G fence 0x%x failed! e=0x%x, h=%u\n", - fence, -FIELD_GET (GUC_HXG_FAILURE_MSG_0_ERROR , hxg[0 ]), -FIELD_GET (GUC_HXG_FAILURE_MSG_0_HINT , hxg[0])); -else - xe_gt_err(gt, "unexpected response %u for FAST_REQH2G fence 0x%x!\n",
drivers/gpu/drm/xe/xe_guc_ct.c +6
-1- type, fence); +int err; + +if (type ==GUC_HXG_TYPE_RESPONSE_FAILURE ) { + err = -EINVAL ; + xe_log_err(gt, GUC, err, + "CT: FAST_REQ H2G fence 0x%x failed!e=0x%x, h=%u\n",
drivers/gpu/drm/xe/xe_guc_ct.c +2
-0+ fence, +
FIELD_GET(GUC_HXG_FAILURE_MSG_0_ERROR, hxg[0]),drivers/gpu/drm/xe/xe_guc_ct.c +1
-0+ FIELD_GET(GUC_HXG_FAILURE_MSG_0_HINT,hxg[0]));
drivers/gpu/drm/xe/xe_guc_ct.c +4
-0+ }else { + err = -EPROTO ; + xe_log_err(gt, GUC, err, + "CT: unexpected response %u for FAST_REQH2G fence 0x%x!\n",
drivers/gpu/drm/xe/xe_guc_ct.c +3
-1+ type, fence); + }fast_req_report (ct, fence);@@ -1714,7 +1727,7 @@ static int parse_g2h_response(struct xe_guc_ct *ct, u32 *msg, u32 len)CT_DEAD (ct ,NULL ,PARSE_G2H_RESPONSE ); -return -EPROTO ; +return err; }drivers/gpu/drm/xe/xe_guc_ct.c +4
-2/* don't erase as we still expect a final response with the same fence */ @@ -1780,10 +1793,12 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) origin =FIELD_GET (GUC_HXG_MSG_0_ORIGIN , hxg[0 ]);if (unlikely (origin !=GUC_HXG_ORIGIN_GUC )) { -xe_gt_err (gt,"Invalid G2H origin=%u\n" , origin); +int err = -EBADMSG ; + +xe_log_err (gt,GUC , err,"CT: Invalid G2H origin=%u\n" , origin);CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_ORIGIN ); -return -EPROTO ; +return err; }drivers/gpu/drm/xe/xe_guc_ct.c +2
-1type = FIELD_GET(GUC_HXG_MSG_0_TYPE, hxg[0]); @@ -1798,7 +1813,7 @@ static int parse_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) ret =parse_g2h_response (ct, msg, len);break ;default : -xe_gt_err (gt,"Unexpected G2H message type=%u\n" , type); + xe_log_err(gt, GUC, -EOPNOTSUPP, "CT: Unexpected G2Hmessage type
+%u\n", type);drivers/gpu/drm/xe/xe_guc_ct.c +1
-2CT_DEAD (ct, &ct->ctbs.g2h,PARSE_G2H_TYPE ); ret = -EOPNOTSUPP ;@@ -1898,8 +1913,8 @@ static int process_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len) }if (ret) { - xe_gt_err(gt, "G2H action %#04x failed (%pe) len %u msg %*ph\n", - action, ERR_PTR(ret), hxg_len, (int)sizeof(u32) * hxg_len, hxg); + xe_log_err(gt, GUC, ret, "CT: G2H action %#04x failed len %umsg %*ph\n",
drivers/gpu/drm/xe/xe_guc_ct.c +2
-2+ action, hxg_len, (int)sizeof(u32) * hxg_len, hxg);CT_DEAD (ct,NULL ,PROCESS_FAILED ); }@@ -2082,8 +2097,7 @@ static void g2h_fast_path(struct xe_guc_ct *ct, u32 *msg, u32 len) }if (ret) { -xe_gt_err (gt,"G2H action 0x%04x failed (%pe)\n" , - action,ERR_PTR (ret)); +xe_log_err (gt,GUC , ret,"CT: G2H action 0x%04x failed\n" , action);CT_DEAD (ct,NULL ,FAST_G2H );drivers/gpu/drm/xe/xe_guc_ct.c +1
-2} }@@ -2202,8 +2216,7 @@ static void receive_g2h(struct xe_guc_ct *ct)mutex_unlock (&ct->lock);if (unlikely (ret <0 &&g2h_err_is_fatal (ret))) { - xe_gt_err(ct_to_gt(ct), "CT dequeue failed, forcing GT reset(%pe)\n", - ERR_PTR(ret)); + xe_log_err(ct_to_gt(ct), GUC, ret, "CT: dequeue failed,forcing GT
drivers/gpu/drm/xe/xe_guc_ct.c +1
-1+reset\n");CT_DEAD (ct,NULL ,G2H_RECV );kick_reset (ct); } --2.55.0
Patchwork
CI✓ CI.KUnit: success for Use SIG_ID logs for GuC component (rev6)
In reply to Umesh Nerlige Ramappa== Series Details ==
== Series Details ==
Series: Use SIG_ID logs for GuC component (rev6)
URL : https://patchwork.freedesktop.org/series/173177/
State : success
== Summary ==
+ trap cleanup EXIT
+ kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig')
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig
[23:49:12] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [23:49:16] 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 [23:49:36] Starting KUnit Kernel (1/1)... [23:49:36] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [23:49:36] ================= gpu_buddy (14 subtests) ================== [23:49:36] [PASSED] gpu_test_buddy_alloc_limit [23:49:36] [PASSED] gpu_test_buddy_alloc_optimistic [23:49:36] [PASSED] gpu_test_buddy_alloc_pessimistic [23:49:36] [PASSED] gpu_test_buddy_alloc_pathological [23:49:36] [PASSED] gpu_test_buddy_alloc_contiguous [23:49:36] [PASSED] gpu_test_buddy_alloc_clear [23:49:36] [PASSED] gpu_test_buddy_alloc_range [23:49:37] [PASSED] gpu_test_buddy_alloc_range_bias [23:49:38] [PASSED] gpu_test_buddy_fragmentation_performance [23:49:38] [PASSED] gpu_test_buddy_dirty_tracker_performance [23:49:38] [PASSED] gpu_test_buddy_alloc_exceeds_max_order [23:49:38] [PASSED] gpu_test_buddy_offset_aligned_allocation [23:49:38] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress [23:49:38] [PASSED] gpu_test_buddy_addr_to_block [23:49:38] ==================== [PASSED] gpu_buddy ==================== [23:49:38] ============================================================ [23:49:38] Testing complete. Ran 14 tests: passed: 14 [23:49:38] Elapsed time: 26.502s total, 4.422s configuring, 20.163s building, 1.866s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [23:49:38] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [23:49:40] 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 [23:50:14] Starting KUnit Kernel (1/1)... [23:50:14] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [23:50:14] ================== guc_buf (11 subtests) =================== [23:50:14] [PASSED] test_smallest [23:50:14] [PASSED] test_largest [23:50:14] [PASSED] test_granular [23:50:14] [PASSED] test_unique [23:50:14] [PASSED] test_overlap [23:50:14] [PASSED] test_reusable [23:50:14] [PASSED] test_too_big [23:50:14] [PASSED] test_flush [23:50:14] [PASSED] test_lookup [23:50:14] [PASSED] test_data [23:50:14] [PASSED] test_class [23:50:14] ===================== [PASSED] guc_buf ===================== [23:50:14] =================== guc_dbm (7 subtests) =================== [23:50:14] [PASSED] test_empty [23:50:14] [PASSED] test_default [23:50:14] ======================== test_size ======================== [23:50:14] [PASSED] 4 [23:50:14] [PASSED] 8 [23:50:14] [PASSED] 32 [23:50:14] [PASSED] 256 [23:50:14] ==================== [PASSED] test_size ==================== [23:50:14] ======================= test_reuse ======================== [23:50:14] [PASSED] 4 [23:50:14] [PASSED] 8 [23:50:14] [PASSED] 32 [23:50:14] [PASSED] 256 [23:50:14] =================== [PASSED] test_reuse ==================== [23:50:14] =================== test_range_overlap ==================== [23:50:14] [PASSED] 4 [23:50:14] [PASSED] 8 [23:50:14] [PASSED] 32 [23:50:14] [PASSED] 256 [23:50:14] =============== [PASSED] test_range_overlap ================ [23:50:14] =================== test_range_compact ==================== [23:50:14] [PASSED] 4 [23:50:14] [PASSED] 8 [23:50:14] [PASSED] 32 [23:50:14] [PASSED] 256 [23:50:14] =============== [PASSED] test_range_compact ================ [23:50:14] ==================== test_range_spare ===================== [23:50:14] [PASSED] 4 [23:50:14] [PASSED] 8 [23:50:14] [PASSED] 32 [23:50:14] [PASSED] 256 [23:50:14] ================ [PASSED] test_range_spare ================= [23:50:14] ===================== [PASSED] guc_dbm ===================== [23:50:14] =================== guc_idm (6 subtests) =================== [23:50:14] [PASSED] bad_init [23:50:14] [PASSED] no_init [23:50:14] [PASSED] init_fini [23:50:14] [PASSED] check_used [23:50:14] [PASSED] check_quota [23:50:14] [PASSED] check_all [23:50:14] ===================== [PASSED] guc_idm ===================== [23:50:14] ============== guc_klv_helpers (13 subtests) =============== [23:50:14] [PASSED] test_count [23:50:14] [PASSED] test_encode_u32 [23:50:14] [PASSED] test_encode_u64 [23:50:14] [PASSED] test_encode_string [23:50:14] [PASSED] test_encode_object_raw [23:50:14] [PASSED] test_encode_object_klv [23:50:14] [PASSED] test_encode_object_nested [23:50:14] [PASSED] test_encode_object_basic [23:50:14] ===================== test_decode_u16 ===================== [23:50:14] [PASSED] empty [23:50:14] [PASSED] valid [23:50:14] [PASSED] max [23:50:14] [PASSED] big [23:50:14] [PASSED] long [23:50:14] ================= [PASSED] test_decode_u16 ================= [23:50:14] ===================== test_decode_u32 ===================== [23:50:14] [PASSED] empty [23:50:14] [PASSED] valid [23:50:14] [PASSED] max [23:50:14] [PASSED] long [23:50:14] ================= [PASSED] test_decode_u32 ================= [23:50:14] ===================== test_decode_u64 ===================== [23:50:14] [PASSED] empty [23:50:14] [PASSED] short [23:50:14] [PASSED] valid [23:50:14] [PASSED] max [23:50:14] [PASSED] long [23:50:14] ================= [PASSED] test_decode_u64 ================= [23:50:14] ===================== test_decode_str ===================== [23:50:14] [PASSED] empty [23:50:14] [PASSED] one [23:50:14] [PASSED] one_trash [23:50:14] [PASSED] two [23:50:14] [PASSED] two_trash [23:50:14] [PASSED] three [23:50:14] [PASSED] dword [23:50:14] [PASSED] four [23:50:14] [PASSED] five [23:50:14] [PASSED] six [23:50:14] [PASSED] seven [23:50:14] [PASSED] qword [23:50:14] ================= [PASSED] test_decode_str ================= [23:50:14] [PASSED] test_print [23:50:14] ================= [PASSED] guc_klv_helpers ================= [23:50:14] =================== xe_log (4 subtests) ==================== [23:50:14] [PASSED] demo_cper [23:50:14] [PASSED] demo_dmesg [23:50:14] ======================= test_dmesg ======================== [23:50:14] [PASSED] test_fatal [23:50:14] [PASSED] test_fatal_tile [23:50:14] [PASSED] test_fatal_gt [23:50:14] [PASSED] test_fatal_comp [23:50:14] [PASSED] test_fatal_comp_tile [23:50:14] [PASSED] test_fatal_comp_gt [23:50:14] [PASSED] test_fatal_all [23:50:14] [PASSED] test_recoverable [23:50:14] [PASSED] test_recoverable_tile [23:50:14] [PASSED] test_recoverable_gt [23:50:14] [PASSED] test_recoverable_comp [23:50:14] [PASSED] test_recoverable_comp_tile [23:50:14] [PASSED] test_recoverable_comp_gt [23:50:14] [PASSED] test_recoverable_all [23:50:14] [PASSED] test_info [23:50:14] [PASSED] test_info_tile [23:50:14] [PASSED] test_info_gt [23:50:14] [PASSED] test_info_err [23:50:14] [PASSED] test_info_comp [23:50:14] [PASSED] test_info_comp_tile [23:50:14] [PASSED] test_info_comp_gt [23:50:14] [PASSED] test_info_all [23:50:14] [PASSED] test_hw_fatal [23:50:14] [PASSED] test_hw_recoverable [23:50:14] [PASSED] test_hw_corrected [23:50:14] [PASSED] test_hw_informational [23:50:14] =================== [PASSED] test_dmesg ==================== [23:50:14] ====================== test_invalid ======================= [23:50:14] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG) [23:50:14] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG) [23:50:14] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG) [23:50:14] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG) [23:50:14] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG) [23:50:14] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG) [23:50:14] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG) [23:50:14] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG) [23:50:14] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG) [23:50:14] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG) [23:50:14] ================== [SKIPPED] test_invalid ================== [23:50:14] ===================== [PASSED] xe_log ====================== [23:50:14] ================== no_relay (3 subtests) =================== [23:50:14] [PASSED] xe_drops_guc2pf_if_not_ready [23:50:14] [PASSED] xe_drops_guc2vf_if_not_ready [23:50:14] [PASSED] xe_rejects_send_if_not_ready [23:50:14] ==================== [PASSED] no_relay ===================== [23:50:14] ================== pf_relay (14 subtests) ================== [23:50:14] [PASSED] pf_rejects_guc2pf_too_short [23:50:14] [PASSED] pf_rejects_guc2pf_too_long [23:50:14] [PASSED] pf_rejects_guc2pf_no_payload [23:50:14] [PASSED] pf_fails_no_payload [23:50:14] [PASSED] pf_fails_bad_origin [23:50:14] [PASSED] pf_fails_bad_type [23:50:14] [PASSED] pf_txn_reports_error [23:50:14] [PASSED] pf_txn_sends_pf2guc [23:50:14] [PASSED] pf_sends_pf2guc [23:50:14] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV) [23:50:14] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV) [23:50:14] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV) [23:50:14] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV) [23:50:14] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV) [23:50:14] ==================== [PASSED] pf_relay ===================== [23:50:14] ================== vf_relay (3 subtests) =================== [23:50:14] [PASSED] vf_rejects_guc2vf_too_short [23:50:14] [PASSED] vf_rejects_guc2vf_too_long [23:50:14] [PASSED] vf_rejects_guc2vf_no_payload [23:50:14] ==================== [PASSED] vf_relay ===================== [23:50:14] ================ pf_gt_config (9 subtests) ================= [23:50:14] [PASSED] fair_contexts_1vf [23:50:14] [PASSED] fair_doorbells_1vf [23:50:14] [PASSED] fair_ggtt_1vf [23:50:14] ====================== fair_vram_1vf ====================== [23:50:14] [PASSED] 3.50 GiB [23:50:14] [PASSED] 11.5 GiB [23:50:14] [PASSED] 15.5 GiB [23:50:14] [PASSED] 31.5 GiB [23:50:14] [PASSED] 63.5 GiB [23:50:14] [PASSED] 1.91 GiB [23:50:14] ================== [PASSED] fair_vram_1vf ================== [23:50:14] ================ fair_vram_1vf_admin_only ================= [23:50:14] [PASSED] 3.50 GiB [23:50:14] [PASSED] 11.5 GiB [23:50:14] [PASSED] 15.5 GiB [23:50:14] [PASSED] 31.5 GiB [23:50:14] [PASSED] 63.5 GiB [23:50:14] [PASSED] 1.91 GiB [23:50:14] ============ [PASSED] fair_vram_1vf_admin_only ============= [23:50:14] ====================== fair_contexts ====================== [23:50:14] [PASSED] 1 VF [23:50:14] [PASSED] 2 VFs [23:50:14] [PASSED] 3 VFs [23:50:14] [PASSED] 4 VFs [23:50:14] [PASSED] 5 VFs [23:50:14] [PASSED] 6 VFs [23:50:14] [PASSED] 7 VFs [23:50:14] [PASSED] 8 VFs [23:50:14] [PASSED] 9 VFs [23:50:14] [PASSED] 10 VFs [23:50:14] [PASSED] 11 VFs [23:50:14] [PASSED] 12 VFs [23:50:14] [PASSED] 13 VFs [23:50:14] [PASSED] 14 VFs [23:50:14] [PASSED] 15 VFs [23:50:14] [PASSED] 16 VFs [23:50:14] [PASSED] 17 VFs [23:50:14] [PASSED] 18 VFs [23:50:14] [PASSED] 19 VFs [23:50:14] [PASSED] 20 VFs [23:50:14] [PASSED] 21 VFs [23:50:14] [PASSED] 22 VFs [23:50:14] [PASSED] 23 VFs [23:50:14] [PASSED] 24 VFs [23:50:14] [PASSED] 25 VFs [23:50:14] [PASSED] 26 VFs [23:50:14] [PASSED] 27 VFs [23:50:14] [PASSED] 28 VFs [23:50:14] [PASSED] 29 VFs [23:50:14] [PASSED] 30 VFs [23:50:14] [PASSED] 31 VFs [23:50:14] [PASSED] 32 VFs [23:50:14] [PASSED] 33 VFs [23:50:14] [PASSED] 34 VFs [23:50:14] [PASSED] 35 VFs [23:50:14] [PASSED] 36 VFs [23:50:14] [PASSED] 37 VFs [23:50:14] [PASSED] 38 VFs [23:50:14] [PASSED] 39 VFs [23:50:14] [PASSED] 40 VFs [23:50:14] [PASSED] 41 VFs [23:50:14] [PASSED] 42 VFs [23:50:14] [PASSED] 43 VFs [23:50:14] [PASSED] 44 VFs [23:50:14] [PASSED] 45 VFs [23:50:14] [PASSED] 46 VFs [23:50:14] [PASSED] 47 VFs [23:50:14] [PASSED] 48 VFs [23:50:14] [PASSED] 49 VFs [23:50:14] [PASSED] 50 VFs [23:50:14] [PASSED] 51 VFs [23:50:14] [PASSED] 52 VFs [23:50:14] [PASSED] 53 VFs [23:50:14] [PASSED] 54 VFs [23:50:14] [PASSED] 55 VFs [23:50:14] [PASSED] 56 VFs [23:50:14] [PASSED] 57 VFs [23:50:14] [PASSED] 58 VFs [23:50:14] [PASSED] 59 VFs [23:50:14] [PASSED] 60 VFs [23:50:14] [PASSED] 61 VFs [23:50:14] [PASSED] 62 VFs [23:50:14] [PASSED] 63 VFs [23:50:14] ================== [PASSED] fair_contexts ================== [23:50:14] ===================== fair_doorbells ====================== [23:50:14] [PASSED] 1 VF [23:50:14] [PASSED] 2 VFs [23:50:14] [PASSED] 3 VFs [23:50:14] [PASSED] 4 VFs [23:50:14] [PASSED] 5 VFs [23:50:14] [PASSED] 6 VFs [23:50:14] [PASSED] 7 VFs [23:50:14] [PASSED] 8 VFs [23:50:14] [PASSED] 9 VFs [23:50:14] [PASSED] 10 VFs [23:50:14] [PASSED] 11 VFs [23:50:14] [PASSED] 12 VFs [23:50:14] [PASSED] 13 VFs [23:50:14] [PASSED] 14 VFs [23:50:14] [PASSED] 15 VFs [23:50:14] [PASSED] 16 VFs [23:50:14] [PASSED] 17 VFs [23:50:14] [PASSED] 18 VFs [23:50:14] [PASSED] 19 VFs [23:50:14] [PASSED] 20 VFs [23:50:14] [PASSED] 21 VFs [23:50:14] [PASSED] 22 VFs [23:50:14] [PASSED] 23 VFs [23:50:14] [PASSED] 24 VFs [23:50:14] [PASSED] 25 VFs [23:50:14] [PASSED] 26 VFs [23:50:14] [PASSED] 27 VFs [23:50:14] [PASSED] 28 VFs [23:50:14] [PASSED] 29 VFs [23:50:14] [PASSED] 30 VFs [23:50:14] [PASSED] 31 VFs [23:50:14] [PASSED] 32 VFs [23:50:14] [PASSED] 33 VFs [23:50:14] [PASSED] 34 VFs [23:50:14] [PASSED] 35 VFs [23:50:14] [PASSED] 36 VFs [23:50:14] [PASSED] 37 VFs [23:50:14] [PASSED] 38 VFs [23:50:14] [PASSED] 39 VFs [23:50:14] [PASSED] 40 VFs [23:50:14] [PASSED] 41 VFs [23:50:14] [PASSED] 42 VFs [23:50:14] [PASSED] 43 VFs [23:50:14] [PASSED] 44 VFs [23:50:14] [PASSED] 45 VFs [23:50:14] [PASSED] 46 VFs [23:50:14] [PASSED] 47 VFs [23:50:14] [PASSED] 48 VFs [23:50:14] [PASSED] 49 VFs [23:50:14] [PASSED] 50 VFs [23:50:14] [PASSED] 51 VFs [23:50:14] [PASSED] 52 VFs [23:50:14] [PASSED] 53 VFs [23:50:14] [PASSED] 54 VFs [23:50:14] [PASSED] 55 VFs [23:50:14] [PASSED] 56 VFs [23:50:14] [PASSED] 57 VFs [23:50:14] [PASSED] 58 VFs [23:50:14] [PASSED] 59 VFs [23:50:14] [PASSED] 60 VFs [23:50:14] [PASSED] 61 VFs [23:50:14] [PASSED] 62 VFs [23:50:14] [PASSED] 63 VFs [23:50:14] ================= [PASSED] fair_doorbells ================== [23:50:14] ======================== fair_ggtt ======================== [23:50:14] [PASSED] 1 VF [23:50:14] [PASSED] 2 VFs [23:50:14] [PASSED] 3 VFs [23:50:14] [PASSED] 4 VFs [23:50:14] [PASSED] 5 VFs [23:50:14] [PASSED] 6 VFs [23:50:14] [PASSED] 7 VFs [23:50:14] [PASSED] 8 VFs [23:50:14] [PASSED] 9 VFs [23:50:14] [PASSED] 10 VFs [23:50:14] [PASSED] 11 VFs [23:50:14] [PASSED] 12 VFs [23:50:14] [PASSED] 13 VFs [23:50:14] [PASSED] 14 VFs [23:50:14] [PASSED] 15 VFs [23:50:14] [PASSED] 16 VFs [23:50:14] [PASSED] 17 VFs [23:50:14] [PASSED] 18 VFs [23:50:14] [PASSED] 19 VFs [23:50:14] [PASSED] 20 VFs [23:50:14] [PASSED] 21 VFs [23:50:14] [PASSED] 22 VFs [23:50:14] [PASSED] 23 VFs [23:50:14] [PASSED] 24 VFs [23:50:14] [PASSED] 25 VFs [23:50:14] [PASSED] 26 VFs [23:50:14] [PASSED] 27 VFs [23:50:14] [PASSED] 28 VFs [23:50:14] [PASSED] 29 VFs [23:50:14] [PASSED] 30 VFs [23:50:14] [PASSED] 31 VFs [23:50:14] [PASSED] 32 VFs [23:50:14] [PASSED] 33 VFs [23:50:14] [PASSED] 34 VFs [23:50:14] [PASSED] 35 VFs [23:50:14] [PASSED] 36 VFs [23:50:14] [PASSED] 37 VFs [23:50:14] [PASSED] 38 VFs [23:50:14] [PASSED] 39 VFs [23:50:14] [PASSED] 40 VFs [23:50:14] [PASSED] 41 VFs [23:50:14] [PASSED] 42 VFs [23:50:14] [PASSED] 43 VFs [23:50:14] [PASSED] 44 VFs [23:50:14] [PASSED] 45 VFs [23:50:14] [PASSED] 46 VFs [23:50:14] [PASSED] 47 VFs [23:50:14] [PASSED] 48 VFs [23:50:14] [PASSED] 49 VFs [23:50:14] [PASSED] 50 VFs [23:50:14] [PASSED] 51 VFs [23:50:14] [PASSED] 52 VFs [23:50:14] [PASSED] 53 VFs [23:50:14] [PASSED] 54 VFs [23:50:14] [PASSED] 55 VFs [23:50:14] [PASSED] 56 VFs [23:50:14] [PASSED] 57 VFs [23:50:14] [PASSED] 58 VFs [23:50:14] [PASSED] 59 VFs [23:50:14] [PASSED] 60 VFs [23:50:14] [PASSED] 61 VFs [23:50:14] [PASSED] 62 VFs [23:50:14] [PASSED] 63 VFs [23:50:14] ==================== [PASSED] fair_ggtt ==================== [23:50:14] ======================== fair_vram ======================== [23:50:14] [PASSED] 1 VF [23:50:14] [PASSED] 2 VFs [23:50:14] [PASSED] 3 VFs [23:50:14] [PASSED] 4 VFs [23:50:14] [PASSED] 5 VFs [23:50:14] [PASSED] 6 VFs [23:50:14] [PASSED] 7 VFs [23:50:14] [PASSED] 8 VFs [23:50:14] [PASSED] 9 VFs [23:50:14] [PASSED] 10 VFs [23:50:14] [PASSED] 11 VFs [23:50:14] [PASSED] 12 VFs [23:50:14] [PASSED] 13 VFs [23:50:14] [PASSED] 14 VFs [23:50:14] [PASSED] 15 VFs [23:50:14] [PASSED] 16 VFs [23:50:14] [PASSED] 17 VFs [23:50:14] [PASSED] 18 VFs [23:50:14] [PASSED] 19 VFs [23:50:14] [PASSED] 20 VFs [23:50:14] [PASSED] 21 VFs [23:50:14] [PASSED] 22 VFs [23:50:14] [PASSED] 23 VFs [23:50:14] [PASSED] 24 VFs [23:50:14] [PASSED] 25 VFs [23:50:14] [PASSED] 26 VFs [23:50:14] [PASSED] 27 VFs [23:50:14] [PASSED] 28 VFs [23:50:14] [PASSED] 29 VFs [23:50:14] [PASSED] 30 VFs [23:50:14] [PASSED] 31 VFs [23:50:14] [PASSED] 32 VFs [23:50:14] [PASSED] 33 VFs [23:50:14] [PASSED] 34 VFs [23:50:14] [PASSED] 35 VFs [23:50:14] [PASSED] 36 VFs [23:50:15] [PASSED] 37 VFs [23:50:15] [PASSED] 38 VFs [23:50:15] [PASSED] 39 VFs [23:50:15] [PASSED] 40 VFs [23:50:15] [PASSED] 41 VFs [23:50:15] [PASSED] 42 VFs [23:50:15] [PASSED] 43 VFs [23:50:15] [PASSED] 44 VFs [23:50:15] [PASSED] 45 VFs [23:50:15] [PASSED] 46 VFs [23:50:15] [PASSED] 47 VFs [23:50:15] [PASSED] 48 VFs [23:50:15] [PASSED] 49 VFs [23:50:15] [PASSED] 50 VFs [23:50:15] [PASSED] 51 VFs [23:50:15] [PASSED] 52 VFs [23:50:15] [PASSED] 53 VFs [23:50:15] [PASSED] 54 VFs [23:50:15] [PASSED] 55 VFs [23:50:15] [PASSED] 56 VFs [23:50:15] [PASSED] 57 VFs [23:50:15] [PASSED] 58 VFs [23:50:15] [PASSED] 59 VFs [23:50:15] [PASSED] 60 VFs [23:50:15] [PASSED] 61 VFs [23:50:15] [PASSED] 62 VFs [23:50:15] [PASSED] 63 VFs [23:50:15] ==================== [PASSED] fair_vram ==================== [23:50:15] ================== [PASSED] pf_gt_config =================== [23:50:15] ===================== lmtt (1 subtest) ===================== [23:50:15] ======================== test_ops ========================= [23:50:15] [PASSED] 2-level [23:50:15] [PASSED] multi-level [23:50:15] ==================== [PASSED] test_ops ===================== [23:50:15] ====================== [PASSED] lmtt ======================= [23:50:15] ================= sriov_packet (1 subtest) ================= [23:50:15] [PASSED] test_descriptor_init [23:50:15] ================== [PASSED] sriov_packet =================== [23:50:15] ================= pf_service (11 subtests) ================= [23:50:15] [PASSED] pf_negotiate_any [23:50:15] [PASSED] pf_negotiate_base_match [23:50:15] [PASSED] pf_negotiate_base_newer [23:50:15] [PASSED] pf_negotiate_base_next [23:50:15] [SKIPPED] pf_negotiate_base_older (no older minor) [23:50:15] [PASSED] pf_negotiate_base_prev [23:50:15] [PASSED] pf_negotiate_latest_match [23:50:15] [PASSED] pf_negotiate_latest_newer [23:50:15] [PASSED] pf_negotiate_latest_next [23:50:15] [SKIPPED] pf_negotiate_latest_older (no older minor) [23:50:15] [SKIPPED] pf_negotiate_latest_prev (no prev major) [23:50:15] =================== [PASSED] pf_service ==================== [23:50:15] ================= xe_guc_g2g (2 subtests) ================== [23:50:15] ============== xe_live_guc_g2g_kunit_default ============== [23:50:15] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [23:50:15] ============== xe_live_guc_g2g_kunit_allmem =============== [23:50:15] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [23:50:15] =================== [SKIPPED] xe_guc_g2g =================== [23:50:15] =================== xe_mocs (2 subtests) =================== [23:50:15] ================ xe_live_mocs_kernel_kunit ================ [23:50:15] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [23:50:15] ================ xe_live_mocs_reset_kunit ================= [23:50:15] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [23:50:15] ==================== [SKIPPED] xe_mocs ===================== [23:50:15] ================= xe_migrate (2 subtests) ================== [23:50:15] ================= xe_migrate_sanity_kunit ================= [23:50:15] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [23:50:15] ================== xe_validate_ccs_kunit ================== [23:50:15] ============= [SKIPPED] xe_validate_ccs_kunit ============== [23:50:15] =================== [SKIPPED] xe_migrate =================== [23:50:15] ================== xe_dma_buf (1 subtest) ================== [23:50:15] ==================== xe_dma_buf_kunit ===================== [23:50:15] ================ [SKIPPED] xe_dma_buf_kunit ================ [23:50:15] =================== [SKIPPED] xe_dma_buf =================== [23:50:15] ================= xe_bo_shrink (1 subtest) ================= [23:50:15] =================== xe_bo_shrink_kunit ==================== [23:50:15] =============== [SKIPPED] xe_bo_shrink_kunit =============== [23:50:15] ================== [SKIPPED] xe_bo_shrink ================== [23:50:15] ==================== xe_bo (2 subtests) ==================== [23:50:15] ================== xe_ccs_migrate_kunit =================== [23:50:15] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [23:50:15] ==================== xe_bo_evict_kunit ==================== [23:50:15] =============== [SKIPPED] xe_bo_evict_kunit ================ [23:50:15] ===================== [SKIPPED] xe_bo ====================== [23:50:15] =================== xe_any (9 subtests) ==================== [23:50:15] [PASSED] test_to_xe [23:50:15] [PASSED] test_to_dev [23:50:15] [PASSED] test_to_pdev [23:50:15] [PASSED] test_to_drm [23:50:15] [PASSED] test_if_pdev [23:50:15] [PASSED] test_if_xe [23:50:15] [PASSED] test_if_tile [23:50:15] [PASSED] test_if_gt [23:50:15] [PASSED] test_to_id [23:50:15] ===================== [PASSED] xe_any ====================== [23:50:15] ==================== args (13 subtests) ==================== [23:50:15] [PASSED] count_args_test [23:50:15] [PASSED] call_args_example [23:50:15] [PASSED] call_args_test [23:50:15] [PASSED] drop_first_arg_example [23:50:15] [PASSED] drop_first_arg_test [23:50:15] [PASSED] first_arg_example [23:50:15] [PASSED] first_arg_test [23:50:15] [PASSED] last_arg_example [23:50:15] [PASSED] last_arg_test [23:50:15] [PASSED] pick_arg_example [23:50:15] [PASSED] if_args_example [23:50:15] [PASSED] if_args_test [23:50:15] [PASSED] sep_comma_example [23:50:15] ====================== [PASSED] args ======================= [23:50:15] =================== xe_pci (3 subtests) ==================== [23:50:15] ==================== check_graphics_ip ==================== [23:50:15] [PASSED] 12.00 Xe_LP [23:50:15] [PASSED] 12.10 Xe_LP+ [23:50:15] [PASSED] 12.55 Xe_HPG [23:50:15] [PASSED] 12.60 Xe_HPC [23:50:15] [PASSED] 12.70 Xe_LPG [23:50:15] [PASSED] 12.71 Xe_LPG [23:50:15] [PASSED] 12.74 Xe_LPG+ [23:50:15] [PASSED] 20.01 Xe2_HPG [23:50:15] [PASSED] 20.02 Xe2_HPG [23:50:15] [PASSED] 20.04 Xe2_LPG [23:50:15] [PASSED] 30.00 Xe3_LPG [23:50:15] [PASSED] 30.01 Xe3_LPG [23:50:15] [PASSED] 30.03 Xe3_LPG [23:50:15] [PASSED] 30.04 Xe3_LPG [23:50:15] [PASSED] 30.05 Xe3_LPG [23:50:15] [PASSED] 35.10 Xe3p_LPG [23:50:15] [PASSED] 35.11 Xe3p_XPC [23:50:15] ================ [PASSED] check_graphics_ip ================ [23:50:15] ===================== check_media_ip ====================== [23:50:15] [PASSED] 12.00 Xe_M [23:50:15] [PASSED] 12.55 Xe_HPM [23:50:15] [PASSED] 13.00 Xe_LPM+ [23:50:15] [PASSED] 13.01 Xe2_HPM [23:50:15] [PASSED] 20.00 Xe2_LPM [23:50:15] [PASSED] 30.00 Xe3_LPM [23:50:15] [PASSED] 30.02 Xe3_LPM [23:50:15] [PASSED] 35.00 Xe3p_LPM [23:50:15] [PASSED] 35.03 Xe3p_HPM [23:50:15] ================= [PASSED] check_media_ip ================== [23:50:15] =================== check_platform_desc =================== [23:50:15] [PASSED] 0x9A60 (TIGERLAKE) [23:50:15] [PASSED] 0x9A68 (TIGERLAKE) [23:50:15] [PASSED] 0x9A70 (TIGERLAKE) [23:50:15] [PASSED] 0x9A40 (TIGERLAKE) [23:50:15] [PASSED] 0x9A49 (TIGERLAKE) [23:50:15] [PASSED] 0x9A59 (TIGERLAKE) [23:50:15] [PASSED] 0x9A78 (TIGERLAKE) [23:50:15] [PASSED] 0x9AC0 (TIGERLAKE) [23:50:15] [PASSED] 0x9AC9 (TIGERLAKE) [23:50:15] [PASSED] 0x9AD9 (TIGERLAKE) [23:50:15] [PASSED] 0x9AF8 (TIGERLAKE) [23:50:15] [PASSED] 0x4C80 (ROCKETLAKE) [23:50:15] [PASSED] 0x4C8A (ROCKETLAKE) [23:50:15] [PASSED] 0x4C8B (ROCKETLAKE) [23:50:15] [PASSED] 0x4C8C (ROCKETLAKE) [23:50:15] [PASSED] 0x4C90 (ROCKETLAKE) [23:50:15] [PASSED] 0x4C9A (ROCKETLAKE) [23:50:15] [PASSED] 0x4680 (ALDERLAKE_S) [23:50:15] [PASSED] 0x4682 (ALDERLAKE_S) [23:50:15] [PASSED] 0x4688 (ALDERLAKE_S) [23:50:15] [PASSED] 0x468A (ALDERLAKE_S) [23:50:15] [PASSED] 0x468B (ALDERLAKE_S) [23:50:15] [PASSED] 0x4690 (ALDERLAKE_S) [23:50:15] [PASSED] 0x4692 (ALDERLAKE_S) [23:50:15] [PASSED] 0x4693 (ALDERLAKE_S) [23:50:15] [PASSED] 0x46A0 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46A1 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46A2 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46A3 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46A6 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46A8 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46AA (ALDERLAKE_P) [23:50:15] [PASSED] 0x462A (ALDERLAKE_P) [23:50:15] [PASSED] 0x4626 (ALDERLAKE_P) [23:50:15] [PASSED] 0x4628 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46B0 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46B1 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46B2 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46B3 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46C0 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46C1 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46C2 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46C3 (ALDERLAKE_P) [23:50:15] [PASSED] 0x46D0 (ALDERLAKE_N) [23:50:15] [PASSED] 0x46D1 (ALDERLAKE_N) [23:50:15] [PASSED] 0x46D2 (ALDERLAKE_N) [23:50:15] [PASSED] 0x46D3 (ALDERLAKE_N) [23:50:15] [PASSED] 0x46D4 (ALDERLAKE_N) [23:50:15] [PASSED] 0xA721 (ALDERLAKE_P) [23:50:15] [PASSED] 0xA7A1 (ALDERLAKE_P) [23:50:15] [PASSED] 0xA7A9 (ALDERLAKE_P) [23:50:15] [PASSED] 0xA7AC (ALDERLAKE_P) [23:50:15] [PASSED] 0xA7AD (ALDERLAKE_P) [23:50:15] [PASSED] 0xA720 (ALDERLAKE_P) [23:50:15] [PASSED] 0xA7A0 (ALDERLAKE_P) [23:50:15] [PASSED] 0xA7A8 (ALDERLAKE_P) [23:50:15] [PASSED] 0xA7AA (ALDERLAKE_P) [23:50:15] [PASSED] 0xA7AB (ALDERLAKE_P) [23:50:15] [PASSED] 0xA780 (ALDERLAKE_S) [23:50:15] [PASSED] 0xA781 (ALDERLAKE_S) [23:50:15] [PASSED] 0xA782 (ALDERLAKE_S) [23:50:15] [PASSED] 0xA783 (ALDERLAKE_S) [23:50:15] [PASSED] 0xA788 (ALDERLAKE_S) [23:50:15] [PASSED] 0xA789 (ALDERLAKE_S) [23:50:15] [PASSED] 0xA78A (ALDERLAKE_S) [23:50:15] [PASSED] 0xA78B (ALDERLAKE_S) [23:50:15] [PASSED] 0x4905 (DG1) [23:50:15] [PASSED] 0x4906 (DG1) [23:50:15] [PASSED] 0x4907 (DG1) [23:50:15] [PASSED] 0x4908 (DG1) [23:50:15] [PASSED] 0x4909 (DG1) [23:50:15] [PASSED] 0x56C0 (DG2) [23:50:15] [PASSED] 0x56C2 (DG2) [23:50:15] [PASSED] 0x56C1 (DG2) [23:50:15] [PASSED] 0x7D51 (METEORLAKE) [23:50:15] [PASSED] 0x7DD1 (METEORLAKE) [23:50:15] [PASSED] 0x7D41 (METEORLAKE) [23:50:15] [PASSED] 0x7D67 (METEORLAKE) [23:50:15] [PASSED] 0xB640 (METEORLAKE) [23:50:15] [PASSED] 0x56A0 (DG2) [23:50:15] [PASSED] 0x56A1 (DG2) [23:50:15] [PASSED] 0x56A2 (DG2) [23:50:15] [PASSED] 0x56BE (DG2) [23:50:15] [PASSED] 0x56BF (DG2) [23:50:15] [PASSED] 0x5690 (DG2) [23:50:15] [PASSED] 0x5691 (DG2) [23:50:15] [PASSED] 0x5692 (DG2) [23:50:15] [PASSED] 0x56A5 (DG2) [23:50:15] [PASSED] 0x56A6 (DG2) [23:50:15] [PASSED] 0x56B0 (DG2) [23:50:15] [PASSED] 0x56B1 (DG2) [23:50:15] [PASSED] 0x56BA (DG2) [23:50:15] [PASSED] 0x56BB (DG2) [23:50:15] [PASSED] 0x56BC (DG2) [23:50:15] [PASSED] 0x56BD (DG2) [23:50:15] [PASSED] 0x5693 (DG2) [23:50:15] [PASSED] 0x5694 (DG2) [23:50:15] [PASSED] 0x5695 (DG2) [23:50:15] [PASSED] 0x56A3 (DG2) [23:50:15] [PASSED] 0x56A4 (DG2) [23:50:15] [PASSED] 0x56B2 (DG2) [23:50:15] [PASSED] 0x56B3 (DG2) [23:50:15] [PASSED] 0x5696 (DG2) [23:50:15] [PASSED] 0x5697 (DG2) [23:50:15] [PASSED] 0xB69 (PVC) [23:50:15] [PASSED] 0xB6E (PVC) [23:50:15] [PASSED] 0xBD4 (PVC) [23:50:15] [PASSED] 0xBD5 (PVC) [23:50:15] [PASSED] 0xBD6 (PVC) [23:50:15] [PASSED] 0xBD7 (PVC) [23:50:15] [PASSED] 0xBD8 (PVC) [23:50:15] [PASSED] 0xBD9 (PVC) [23:50:15] [PASSED] 0xBDA (PVC) [23:50:15] [PASSED] 0xBDB (PVC) [23:50:15] [PASSED] 0xBE0 (PVC) [23:50:15] [PASSED] 0xBE1 (PVC) [23:50:15] [PASSED] 0xBE5 (PVC) [23:50:15] [PASSED] 0x7D40 (METEORLAKE) [23:50:15] [PASSED] 0x7D45 (METEORLAKE) [23:50:15] [PASSED] 0x7D55 (METEORLAKE) [23:50:15] [PASSED] 0x7D60 (METEORLAKE) [23:50:15] [PASSED] 0x7DD5 (METEORLAKE) [23:50:15] [PASSED] 0x6420 (LUNARLAKE) [23:50:15] [PASSED] 0x64A0 (LUNARLAKE) [23:50:15] [PASSED] 0x64B0 (LUNARLAKE) [23:50:15] [PASSED] 0xE202 (BATTLEMAGE) [23:50:15] [PASSED] 0xE209 (BATTLEMAGE) [23:50:15] [PASSED] 0xE20B (BATTLEMAGE) [23:50:15] [PASSED] 0xE20C (BATTLEMAGE) [23:50:15] [PASSED] 0xE20D (BATTLEMAGE) [23:50:15] [PASSED] 0xE210 (BATTLEMAGE) [23:50:15] [PASSED] 0xE211 (BATTLEMAGE) [23:50:15] [PASSED] 0xE212 (BATTLEMAGE) [23:50:15] [PASSED] 0xE216 (BATTLEMAGE) [23:50:15] [PASSED] 0xE220 (BATTLEMAGE) [23:50:15] [PASSED] 0xE221 (BATTLEMAGE) [23:50:15] [PASSED] 0xE222 (BATTLEMAGE) [23:50:15] [PASSED] 0xE223 (BATTLEMAGE) [23:50:15] [PASSED] 0xB080 (PANTHERLAKE) [23:50:15] [PASSED] 0xB081 (PANTHERLAKE) [23:50:15] [PASSED] 0xB082 (PANTHERLAKE) [23:50:15] [PASSED] 0xB083 (PANTHERLAKE) [23:50:15] [PASSED] 0xB084 (PANTHERLAKE) [23:50:15] [PASSED] 0xB085 (PANTHERLAKE) [23:50:15] [PASSED] 0xB086 (PANTHERLAKE) [23:50:15] [PASSED] 0xB087 (PANTHERLAKE) [23:50:15] [PASSED] 0xB08F (PANTHERLAKE) [23:50:15] [PASSED] 0xB090 (PANTHERLAKE) [23:50:15] [PASSED] 0xB0A0 (PANTHERLAKE) [23:50:15] [PASSED] 0xB0A1 (PANTHERLAKE) [23:50:15] [PASSED] 0xB0B0 (PANTHERLAKE) [23:50:15] [PASSED] 0xFD80 (PANTHERLAKE) [23:50:15] [PASSED] 0xFD81 (PANTHERLAKE) [23:50:15] [PASSED] 0xD740 (NOVALAKE_S) [23:50:15] [PASSED] 0xD741 (NOVALAKE_S) [23:50:15] [PASSED] 0xD742 (NOVALAKE_S) [23:50:15] [PASSED] 0xD743 (NOVALAKE_S) [23:50:15] [PASSED] 0xD745 (NOVALAKE_S) [23:50:15] [PASSED] 0xD74A (NOVALAKE_S) [23:50:15] [PASSED] 0xD74B (NOVALAKE_S) [23:50:15] [PASSED] 0x674C (CRESCENTISLAND) [23:50:15] [PASSED] 0x674D (CRESCENTISLAND) [23:50:15] [PASSED] 0x674E (CRESCENTISLAND) [23:50:15] [PASSED] 0x674F (CRESCENTISLAND) [23:50:15] [PASSED] 0x6750 (CRESCENTISLAND) [23:50:15] [PASSED] 0x6751 (CRESCENTISLAND) [23:50:15] [PASSED] 0xD750 (NOVALAKE_P) [23:50:15] [PASSED] 0xD751 (NOVALAKE_P) [23:50:15] [PASSED] 0xD752 (NOVALAKE_P) [23:50:15] [PASSED] 0xD753 (NOVALAKE_P) [23:50:15] [PASSED] 0xD754 (NOVALAKE_P) [23:50:15] [PASSED] 0xD755 (NOVALAKE_P) [23:50:15] [PASSED] 0xD756 (NOVALAKE_P) [23:50:15] [PASSED] 0xD757 (NOVALAKE_P) [23:50:15] [PASSED] 0xD75F (NOVALAKE_P) [23:50:15] =============== [PASSED] check_platform_desc =============== [23:50:15] ===================== [PASSED] xe_pci ====================== [23:50:15] ============= xe_rtp_tables_test (5 subtests) ============== [23:50:15] ================== xe_rtp_table_gt_test =================== [23:50:15] [PASSED] gt_was/14011060649 [23:50:15] [PASSED] gt_was/14011059788 [23:50:15] [PASSED] gt_was/14015795083 [23:50:15] [PASSED] gt_was/16021867713 [23:50:15] [PASSED] gt_was/14019449301 [23:50:15] [PASSED] gt_was/16028005424 [23:50:15] [PASSED] gt_was/14026578760 [23:50:15] [PASSED] gt_was/1409420604 [23:50:15] [PASSED] gt_was/1408615072 [23:50:15] [PASSED] gt_was/22010523718 [23:50:15] [PASSED] gt_was/14011006942 [23:50:15] [PASSED] gt_was/14014830051 [23:50:15] [PASSED] gt_was/18018781329 [23:50:15] [PASSED] gt_was/1509235366 [23:50:15] [PASSED] gt_was/18018781329 [23:50:15] [PASSED] gt_was/16016694945 [23:50:15] [PASSED] gt_was/14018575942 [23:50:15] [PASSED] gt_was/22016670082 [23:50:15] [PASSED] gt_was/22016670082 [23:50:15] [PASSED] gt_was/14017421178 [23:50:15] [PASSED] gt_was/16025250150 [23:50:15] [PASSED] gt_was/14021871409 [23:50:15] [PASSED] gt_was/16021865536 [23:50:15] [PASSED] gt_was/14021486841 [23:50:15] [PASSED] gt_was/14025160223 [23:50:15] [PASSED] gt_was/14026144927, 16029437861, 14026127056 [23:50:15] [PASSED] gt_was/14025635424 [23:50:15] [PASSED] gt_was/16028005424 [23:50:15] ============== [PASSED] xe_rtp_table_gt_test =============== [23:50:15] ================== xe_rtp_table_gt_test =================== [23:50:15] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable [23:50:15] [PASSED] gt_tunings/Tuning: 32B Access Enable [23:50:15] [PASSED] gt_tunings/Tuning: L3 cache [23:50:15] [PASSED] gt_tunings/Tuning: L3 cache - media [23:50:15] [PASSED] gt_tunings/Tuning: Compression Overfetch [23:50:15] [PASSED] gt_tunings/Tuning: Compression Overfetch - media [23:50:15] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 [23:50:15] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media [23:50:15] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only [23:50:15] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media [23:50:15] [PASSED] gt_tunings/Tuning: Stateless compression control [23:50:15] [PASSED] gt_tunings/Tuning: Stateless compression control - media [23:50:15] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache [23:50:15] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media [23:50:15] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB [23:50:15] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches [23:50:15] ============== [PASSED] xe_rtp_table_gt_test =============== [23:50:15] ================== xe_rtp_table_oob_test ================== [23:50:15] [PASSED] oob_was/1607983814 [23:50:15] [PASSED] oob_was/16010904313 [23:50:15] [PASSED] oob_was/18022495364 [23:50:15] [PASSED] oob_was/22012773006 [23:50:15] [PASSED] oob_was/14014475959 [23:50:15] [PASSED] oob_was/22011391025 [23:50:15] [PASSED] oob_was/22012727170 [23:50:15] [PASSED] oob_was/22012727685 [23:50:15] [PASSED] oob_was/22016596838 [23:50:15] [PASSED] oob_was/18020744125 [23:50:15] [PASSED] oob_was/1409600907 [23:50:15] [PASSED] oob_was/22014953428 [23:50:15] [PASSED] oob_was/16017236439 [23:50:15] [PASSED] oob_was/14019821291 [23:50:15] [PASSED] oob_was/14015076503 [23:50:15] [PASSED] oob_was/22016122933 [23:50:15] [PASSED] oob_was/14018913170 [23:50:15] [PASSED] oob_was/14018094691 [23:50:15] [PASSED] oob_was/18024947630 [23:50:15] [PASSED] oob_was/16022287689 [23:50:15] [PASSED] oob_was/13011645652 [23:50:15] [PASSED] oob_was/14022293748 [23:50:15] [PASSED] oob_was/22019794406 [23:50:15] [PASSED] oob_was/22019338487 [23:50:15] [PASSED] oob_was/16023588340 [23:50:15] [PASSED] oob_was/14019789679 [23:50:15] [PASSED] oob_was/14022866841 [23:50:15] [PASSED] oob_was/16021333562 [23:50:15] [PASSED] oob_was/14016712196 [23:50:15] [PASSED] oob_was/14015568240 [23:50:15] [PASSED] oob_was/18013179988 [23:50:15] [PASSED] oob_was/1508761755 [23:50:15] [PASSED] oob_was/16023105232 [23:50:15] [PASSED] oob_was/16026508708 [23:50:15] [PASSED] oob_was/14020001231 [23:50:15] [PASSED] oob_was/16023683509 [23:50:15] [PASSED] oob_was/14025515070 [23:50:15] [PASSED] oob_was/15015404425_disable [23:50:15] [PASSED] oob_was/16026007364 [23:50:15] [PASSED] oob_was/14020316580 [23:50:15] [PASSED] oob_was/14025883347 [23:50:15] [PASSED] oob_was/16029380221 [23:50:15] [PASSED] oob_was/22022079272 [23:50:15] [PASSED] oob_was/16029897822 [23:50:15] [PASSED] oob_was/14027054324 [23:50:15] [PASSED] oob_was/14025941587 [23:50:15] [PASSED] oob_was/16030224309 [23:50:15] ============== [PASSED] xe_rtp_table_oob_test ============== [23:50:15] ================ xe_rtp_table_dev_oob_test ================ [23:50:15] [PASSED] device_oob_was/22010954014 [23:50:15] [PASSED] device_oob_was/15015404425 [23:50:15] [PASSED] device_oob_was/22019338487_display [23:50:15] [PASSED] device_oob_was/14022085890 [23:50:15] [PASSED] device_oob_was/14026539277 [23:50:15] [PASSED] device_oob_was/14026633728 [23:50:15] [PASSED] device_oob_was/14026746987 [23:50:15] [PASSED] device_oob_was/14026779378 [23:50:15] ============ [PASSED] xe_rtp_table_dev_oob_test ============ [23:50:15] ========== xe_rtp_table_missing_upper_bound_test ========== [23:50:15] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865 [23:50:15] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037 [23:50:15] [PASSED] register_whitelist/1806527549 [23:50:15] [PASSED] register_whitelist/allow_read_ctx_timestamp [23:50:15] [PASSED] register_whitelist/allow_read_queue_timestamp [23:50:15] [PASSED] register_whitelist/16014440446 [23:50:15] [PASSED] register_whitelist/16017236439 [23:50:15] [PASSED] register_whitelist/16020183090 [23:50:15] [PASSED] register_whitelist/14024997852 [23:50:15] [PASSED] register_whitelist/14024997852 [23:50:15] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ====== [23:50:15] =============== [PASSED] xe_rtp_tables_test ================ [23:50:15] =================== xe_rtp (3 subtests) ==================== [23:50:15] =================== xe_rtp_rules_tests ==================== [23:50:15] [PASSED] no [23:50:15] [PASSED] yes [23:50:15] [PASSED] no-and-no [23:50:15] [PASSED] no-and-yes [23:50:15] [PASSED] yes-and-no [23:50:15] [PASSED] yes-and-yes [23:50:15] [PASSED] no-or-no [23:50:15] [PASSED] no-or-yes [23:50:15] [PASSED] yes-or-no [23:50:15] [PASSED] yes-or-yes [23:50:15] [PASSED] no-yes-or-yes-no [23:50:15] [PASSED] no-yes-or-yes-yes [23:50:15] [PASSED] yes-yes-or-no-yes [23:50:15] [PASSED] yes-yes-or-yes-yes [23:50:15] [PASSED] no-no-or-yes-or-no [23:50:15] [PASSED] or [23:50:15] [PASSED] or-yes [23:50:15] [PASSED] or-no [23:50:15] [PASSED] yes-or [23:50:15] [PASSED] no-or [23:50:15] [PASSED] no-or-or-yes [23:50:15] [PASSED] yes-or-or-no [23:50:15] [PASSED] no-or-or-no [23:50:15] [PASSED] missing-context-engine-class [23:50:15] [PASSED] missing-context-engine-class-or-yes [23:50:15] [PASSED] missing-context-engine-class-or-or-yes [23:50:15] =============== [PASSED] xe_rtp_rules_tests ================ [23:50:15] =============== xe_rtp_process_to_sr_tests ================ [23:50:15] [PASSED] coalesce-same-reg [23:50:15] [PASSED] coalesce-same-reg-literal-and-func [23:50:15] [PASSED] no-match-no-add [23:50:15] [PASSED] two-regs-two-entries [23:50:15] [PASSED] clr-one-set-other [23:50:15] [PASSED] set-field [23:50:15] [PASSED] conflict-duplicate [23:50:15] [PASSED] conflict-not-disjoint [23:50:15] [PASSED] conflict-not-disjoint-literal-and-func [23:50:15] [PASSED] conflict-reg-type [23:50:15] [PASSED] bad-mcr-reg-forced-to-regular [23:50:15] [PASSED] bad-regular-reg-forced-to-mcr [23:50:15] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [23:50:15] ================== xe_rtp_process_tests =================== [23:50:15] [PASSED] active1 [23:50:15] [PASSED] active2 [23:50:15] [PASSED] active-inactive [23:50:15] [PASSED] inactive-active [23:50:15] [PASSED] inactive-active-inactive [23:50:15] [PASSED] inactive-inactive-inactive [23:50:15] ============== [PASSED] xe_rtp_process_tests =============== [23:50:15] ===================== [PASSED] xe_rtp ====================== [23:50:15] ==================== xe_wa (1 subtest) ===================== [23:50:15] ======================== xe_wa_gt ========================= [23:50:15] [PASSED] TIGERLAKE B0 [23:50:15] [PASSED] DG1 A0 [23:50:15] [PASSED] DG1 B0 [23:50:15] [PASSED] ALDERLAKE_S A0 [23:50:15] [PASSED] ALDERLAKE_S B0 [23:50:15] [PASSED] ALDERLAKE_S C0 [23:50:15] [PASSED] ALDERLAKE_S D0 [23:50:15] [PASSED] ALDERLAKE_P A0 [23:50:15] [PASSED] ALDERLAKE_P B0 [23:50:15] [PASSED] ALDERLAKE_P C0 [23:50:15] [PASSED] ALDERLAKE_S RPLS D0 [23:50:15] [PASSED] ALDERLAKE_P RPLU E0 [23:50:15] [PASSED] DG2 G10 C0 [23:50:15] [PASSED] DG2 G11 B1 [23:50:15] [PASSED] DG2 G12 A1 [23:50:15] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [23:50:15] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [23:50:15] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [23:50:15] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [23:50:15] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [23:50:15] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [23:50:15] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [23:50:15] ==================== [PASSED] xe_wa_gt ===================== [23:50:15] ====================== [PASSED] xe_wa ====================== [23:50:15] ============================================================ [23:50:15] Testing complete. Ran 821 tests: passed: 793, skipped: 28 [23:50:15] Elapsed time: 36.257s total, 1.882s configuring, 33.659s building, 0.706s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [23:50:15] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [23:50:17] 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 [23:50:42] Starting KUnit Kernel (1/1)... [23:50:42] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [23:50:42] ============ drm_test_pick_cmdline (2 subtests) ============ [23:50:42] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [23:50:42] =============== drm_test_pick_cmdline_named =============== [23:50:42] [PASSED] NTSC [23:50:42] [PASSED] NTSC-J [23:50:42] [PASSED] PAL [23:50:42] [PASSED] PAL-M [23:50:42] =========== [PASSED] drm_test_pick_cmdline_named =========== [23:50:42] ============== [PASSED] drm_test_pick_cmdline ============== [23:50:42] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [23:50:42] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [23:50:42] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [23:50:42] =========== drm_validate_clone_mode (2 subtests) =========== [23:50:42] ============== drm_test_check_in_clone_mode =============== [23:50:42] [PASSED] in_clone_mode [23:50:42] [PASSED] not_in_clone_mode [23:50:42] ========== [PASSED] drm_test_check_in_clone_mode =========== [23:50:42] =============== drm_test_check_valid_clones =============== [23:50:42] [PASSED] not_in_clone_mode [23:50:42] [PASSED] valid_clone [23:50:42] [PASSED] invalid_clone [23:50:42] =========== [PASSED] drm_test_check_valid_clones =========== [23:50:42] ============= [PASSED] drm_validate_clone_mode ============= [23:50:42] ============= drm_validate_modeset (1 subtest) ============= [23:50:42] [PASSED] drm_test_check_connector_changed_modeset [23:50:42] ============== [PASSED] drm_validate_modeset =============== [23:50:42] ====== drm_test_bridge_get_current_state (1 subtest) ======= [23:50:42] [PASSED] drm_test_drm_bridge_get_current_state_atomic [23:50:42] ======== [PASSED] drm_test_bridge_get_current_state ======== [23:50:42] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [23:50:42] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [23:50:42] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [23:50:42] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts [23:50:42] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [23:50:42] ============== drm_bridge_alloc (2 subtests) =============== [23:50:42] [PASSED] drm_test_drm_bridge_alloc_basic [23:50:42] [PASSED] drm_test_drm_bridge_alloc_get_put [23:50:42] ================ [PASSED] drm_bridge_alloc ================= [23:50:42] ============= drm_bridge_bus_fmt (5 subtests) ============== [23:50:42] [PASSED] drm_test_bridge_rgb_yuv_rgb [23:50:42] [PASSED] drm_test_bridge_must_convert_to_yuv444 [23:50:42] [PASSED] drm_test_bridge_hdmi_auto_rgb [23:50:42] [PASSED] drm_test_bridge_auto_first [23:50:42] [PASSED] drm_test_bridge_rgb_yuv_no_path [23:50:42] =============== [PASSED] drm_bridge_bus_fmt ================ [23:50:42] ============= drm_cmdline_parser (40 subtests) ============= [23:50:42] [PASSED] drm_test_cmdline_force_d_only [23:50:42] [PASSED] drm_test_cmdline_force_D_only_dvi [23:50:42] [PASSED] drm_test_cmdline_force_D_only_hdmi [23:50:42] [PASSED] drm_test_cmdline_force_D_only_not_digital [23:50:42] [PASSED] drm_test_cmdline_force_e_only [23:50:42] [PASSED] drm_test_cmdline_res [23:50:42] [PASSED] drm_test_cmdline_res_vesa [23:50:42] [PASSED] drm_test_cmdline_res_vesa_rblank [23:50:42] [PASSED] drm_test_cmdline_res_rblank [23:50:42] [PASSED] drm_test_cmdline_res_bpp [23:50:42] [PASSED] drm_test_cmdline_res_refresh [23:50:42] [PASSED] drm_test_cmdline_res_bpp_refresh [23:50:42] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [23:50:42] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [23:50:42] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [23:50:42] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [23:50:42] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [23:50:42] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [23:50:42] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [23:50:42] [PASSED] drm_test_cmdline_res_margins_force_on [23:50:42] [PASSED] drm_test_cmdline_res_vesa_margins [23:50:42] [PASSED] drm_test_cmdline_name [23:50:42] [PASSED] drm_test_cmdline_name_bpp [23:50:42] [PASSED] drm_test_cmdline_name_option [23:50:42] [PASSED] drm_test_cmdline_name_bpp_option [23:50:42] [PASSED] drm_test_cmdline_rotate_0 [23:50:42] [PASSED] drm_test_cmdline_rotate_90 [23:50:42] [PASSED] drm_test_cmdline_rotate_180 [23:50:42] [PASSED] drm_test_cmdline_rotate_270 [23:50:42] [PASSED] drm_test_cmdline_hmirror [23:50:42] [PASSED] drm_test_cmdline_vmirror [23:50:42] [PASSED] drm_test_cmdline_margin_options [23:50:42] [PASSED] drm_test_cmdline_multiple_options [23:50:42] [PASSED] drm_test_cmdline_bpp_extra_and_option [23:50:42] [PASSED] drm_test_cmdline_extra_and_option [23:50:42] [PASSED] drm_test_cmdline_freestanding_options [23:50:42] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [23:50:42] [PASSED] drm_test_cmdline_panel_orientation [23:50:42] ================ drm_test_cmdline_invalid ================= [23:50:42] [PASSED] margin_only [23:50:42] [PASSED] interlace_only [23:50:42] [PASSED] res_missing_x [23:50:42] [PASSED] res_missing_y [23:50:42] [PASSED] res_bad_y [23:50:42] [PASSED] res_missing_y_bpp [23:50:42] [PASSED] res_bad_bpp [23:50:42] [PASSED] res_bad_refresh [23:50:42] [PASSED] res_bpp_refresh_force_on_off [23:50:42] [PASSED] res_invalid_mode [23:50:42] [PASSED] res_bpp_wrong_place_mode [23:50:42] [PASSED] name_bpp_refresh [23:50:42] [PASSED] name_refresh [23:50:42] [PASSED] name_refresh_wrong_mode [23:50:42] [PASSED] name_refresh_invalid_mode [23:50:42] [PASSED] rotate_multiple [23:50:42] [PASSED] rotate_invalid_val [23:50:42] [PASSED] rotate_truncated [23:50:42] [PASSED] invalid_option [23:50:42] [PASSED] invalid_tv_option [23:50:42] [PASSED] truncated_tv_option [23:50:42] ============ [PASSED] drm_test_cmdline_invalid ============= [23:50:42] =============== drm_test_cmdline_tv_options =============== [23:50:42] [PASSED] NTSC [23:50:42] [PASSED] NTSC_443 [23:50:42] [PASSED] NTSC_J [23:50:42] [PASSED] PAL [23:50:42] [PASSED] PAL_M [23:50:42] [PASSED] PAL_N [23:50:42] [PASSED] SECAM [23:50:42] [PASSED] MONO_525 [23:50:42] [PASSED] MONO_625 [23:50:42] =========== [PASSED] drm_test_cmdline_tv_options =========== [23:50:42] =============== [PASSED] drm_cmdline_parser ================ [23:50:42] ========== drmm_connector_hdmi_init (20 subtests) ========== [23:50:42] [PASSED] drm_test_connector_hdmi_init_valid [23:50:42] [PASSED] drm_test_connector_hdmi_init_bpc_8 [23:50:42] [PASSED] drm_test_connector_hdmi_init_bpc_10 [23:50:42] [PASSED] drm_test_connector_hdmi_init_bpc_12 [23:50:42] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [23:50:42] [PASSED] drm_test_connector_hdmi_init_bpc_null [23:50:42] [PASSED] drm_test_connector_hdmi_init_formats_empty [23:50:42] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [23:50:42] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [23:50:42] [PASSED] supported_formats=0x9 yuv420_allowed=1 [23:50:42] [PASSED] supported_formats=0x9 yuv420_allowed=0 [23:50:42] [PASSED] supported_formats=0x5 yuv420_allowed=1 [23:50:42] [PASSED] supported_formats=0x5 yuv420_allowed=0 [23:50:42] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [23:50:42] [PASSED] drm_test_connector_hdmi_init_null_ddc [23:50:42] [PASSED] drm_test_connector_hdmi_init_null_product [23:50:42] [PASSED] drm_test_connector_hdmi_init_null_vendor [23:50:42] [PASSED] drm_test_connector_hdmi_init_product_length_exact [23:50:42] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [23:50:42] [PASSED] drm_test_connector_hdmi_init_product_valid [23:50:42] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [23:50:42] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [23:50:42] [PASSED] drm_test_connector_hdmi_init_vendor_valid [23:50:42] ========= drm_test_connector_hdmi_init_type_valid ========= [23:50:42] [PASSED] HDMI-A [23:50:42] [PASSED] HDMI-B [23:50:42] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [23:50:42] ======== drm_test_connector_hdmi_init_type_invalid ======== [23:50:42] [PASSED] Unknown [23:50:42] [PASSED] VGA [23:50:42] [PASSED] DVI-I [23:50:42] [PASSED] DVI-D [23:50:42] [PASSED] DVI-A [23:50:42] [PASSED] Composite [23:50:42] [PASSED] SVIDEO [23:50:42] [PASSED] LVDS [23:50:42] [PASSED] Component [23:50:42] [PASSED] DIN [23:50:42] [PASSED] DP [23:50:42] [PASSED] TV [23:50:42] [PASSED] eDP [23:50:42] [PASSED] Virtual [23:50:42] [PASSED] DSI [23:50:42] [PASSED] DPI [23:50:42] [PASSED] Writeback [23:50:42] [PASSED] SPI [23:50:42] [PASSED] USB [23:50:42] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [23:50:42] ============ [PASSED] drmm_connector_hdmi_init ============= [23:50:42] ============= drmm_connector_init (3 subtests) ============= [23:50:42] [PASSED] drm_test_drmm_connector_init [23:50:42] [PASSED] drm_test_drmm_connector_init_null_ddc [23:50:42] ========= drm_test_drmm_connector_init_type_valid ========= [23:50:42] [PASSED] Unknown [23:50:42] [PASSED] VGA [23:50:42] [PASSED] DVI-I [23:50:42] [PASSED] DVI-D [23:50:42] [PASSED] DVI-A [23:50:42] [PASSED] Composite [23:50:42] [PASSED] SVIDEO [23:50:42] [PASSED] LVDS [23:50:42] [PASSED] Component [23:50:42] [PASSED] DIN [23:50:42] [PASSED] DP [23:50:42] [PASSED] HDMI-A [23:50:42] [PASSED] HDMI-B [23:50:42] [PASSED] TV [23:50:42] [PASSED] eDP [23:50:42] [PASSED] Virtual [23:50:42] [PASSED] DSI [23:50:42] [PASSED] DPI [23:50:42] [PASSED] Writeback [23:50:42] [PASSED] SPI [23:50:42] [PASSED] USB [23:50:42] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [23:50:42] =============== [PASSED] drmm_connector_init =============== [23:50:42] ========= drm_connector_dynamic_init (6 subtests) ========== [23:50:42] [PASSED] drm_test_drm_connector_dynamic_init [23:50:42] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [23:50:42] [PASSED] drm_test_drm_connector_dynamic_init_not_added [23:50:42] [PASSED] drm_test_drm_connector_dynamic_init_properties [23:50:42] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [23:50:42] [PASSED] Unknown [23:50:42] [PASSED] VGA [23:50:42] [PASSED] DVI-I [23:50:42] [PASSED] DVI-D [23:50:42] [PASSED] DVI-A [23:50:42] [PASSED] Composite [23:50:42] [PASSED] SVIDEO [23:50:42] [PASSED] LVDS [23:50:42] [PASSED] Component [23:50:42] [PASSED] DIN [23:50:42] [PASSED] DP [23:50:42] [PASSED] HDMI-A [23:50:42] [PASSED] HDMI-B [23:50:42] [PASSED] TV [23:50:42] [PASSED] eDP [23:50:42] [PASSED] Virtual [23:50:42] [PASSED] DSI [23:50:42] [PASSED] DPI [23:50:42] [PASSED] Writeback [23:50:42] [PASSED] SPI [23:50:42] [PASSED] USB [23:50:42] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [23:50:42] ======== drm_test_drm_connector_dynamic_init_name ========= [23:50:42] [PASSED] Unknown [23:50:42] [PASSED] VGA [23:50:42] [PASSED] DVI-I [23:50:42] [PASSED] DVI-D [23:50:42] [PASSED] DVI-A [23:50:42] [PASSED] Composite [23:50:42] [PASSED] SVIDEO [23:50:42] [PASSED] LVDS [23:50:42] [PASSED] Component [23:50:42] [PASSED] DIN [23:50:42] [PASSED] DP [23:50:42] [PASSED] HDMI-A [23:50:42] [PASSED] HDMI-B [23:50:42] [PASSED] TV [23:50:42] [PASSED] eDP [23:50:42] [PASSED] Virtual [23:50:42] [PASSED] DSI [23:50:42] [PASSED] DPI [23:50:42] [PASSED] Writeback [23:50:42] [PASSED] SPI [23:50:42] [PASSED] USB [23:50:42] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [23:50:42] =========== [PASSED] drm_connector_dynamic_init ============ [23:50:42] ==== drm_connector_dynamic_register_early (4 subtests) ===== [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [23:50:42] ====== [PASSED] drm_connector_dynamic_register_early ======= [23:50:42] ======= drm_connector_dynamic_register (7 subtests) ======== [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_on_list [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_no_init [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [23:50:42] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [23:50:42] ========= [PASSED] drm_connector_dynamic_register ========== [23:50:42] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [23:50:42] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [23:50:42] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [23:50:42] === [PASSED] drm_connector_attach_broadcast_rgb_property === [23:50:42] ========== drm_get_tv_mode_from_name (2 subtests) ========== [23:50:42] ========== drm_test_get_tv_mode_from_name_valid =========== [23:50:42] [PASSED] NTSC [23:50:42] [PASSED] NTSC-443 [23:50:42] [PASSED] NTSC-J [23:50:42] [PASSED] PAL [23:50:42] [PASSED] PAL-M [23:50:42] [PASSED] PAL-N [23:50:42] [PASSED] SECAM [23:50:42] [PASSED] Mono [23:50:42] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [23:50:42] [PASSED] drm_test_get_tv_mode_from_name_truncated [23:50:42] ============ [PASSED] drm_get_tv_mode_from_name ============ [23:50:42] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [23:50:42] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [23:50:42] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [23:50:42] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [23:50:42] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [23:50:42] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [23:50:42] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [23:50:42] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [23:50:42] [PASSED] VIC 96 [23:50:42] [PASSED] VIC 97 [23:50:42] [PASSED] VIC 101 [23:50:42] [PASSED] VIC 102 [23:50:42] [PASSED] VIC 106 [23:50:42] [PASSED] VIC 107 [23:50:42] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [23:50:42] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [23:50:42] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [23:50:42] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [23:50:42] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [23:50:42] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [23:50:42] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [23:50:42] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [23:50:42] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [23:50:42] [PASSED] Automatic [23:50:42] [PASSED] Full [23:50:42] [PASSED] Limited 16:235 [23:50:42] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [23:50:42] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [23:50:42] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [23:50:42] == drm_hdmi_connector_get_output_format_name (2 subtests) == [23:50:42] === drm_test_drm_hdmi_connector_get_output_format_name ==== [23:50:42] [PASSED] RGB [23:50:42] [PASSED] YUV 4:2:0 [23:50:42] [PASSED] YUV 4:2:2 [23:50:42] [PASSED] YUV 4:4:4 [23:50:42] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [23:50:42] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [23:50:42] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [23:50:42] ============= drm_damage_helper (21 subtests) ============== [23:50:42] [PASSED] drm_test_damage_iter_no_damage [23:50:42] [PASSED] drm_test_damage_iter_no_damage_fractional_src [23:50:42] [PASSED] drm_test_damage_iter_no_damage_src_moved [23:50:42] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [23:50:42] [PASSED] drm_test_damage_iter_no_damage_not_visible [23:50:42] [PASSED] drm_test_damage_iter_no_damage_no_crtc [23:50:42] [PASSED] drm_test_damage_iter_no_damage_no_fb [23:50:42] [PASSED] drm_test_damage_iter_simple_damage [23:50:42] [PASSED] drm_test_damage_iter_single_damage [23:50:42] [PASSED] drm_test_damage_iter_single_damage_intersect_src [23:50:42] [PASSED] drm_test_damage_iter_single_damage_outside_src [23:50:42] [PASSED] drm_test_damage_iter_single_damage_fractional_src [23:50:42] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [23:50:42] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [23:50:42] [PASSED] drm_test_damage_iter_single_damage_src_moved [23:50:42] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [23:50:42] [PASSED] drm_test_damage_iter_damage [23:50:42] [PASSED] drm_test_damage_iter_damage_one_intersect [23:50:42] [PASSED] drm_test_damage_iter_damage_one_outside [23:50:42] [PASSED] drm_test_damage_iter_damage_src_moved [23:50:42] [PASSED] drm_test_damage_iter_damage_not_visible [23:50:42] ================ [PASSED] drm_damage_helper ================ [23:50:42] ============== drm_dp_mst_helper (3 subtests) ============== [23:50:42] ============== drm_test_dp_mst_calc_pbn_mode ============== [23:50:42] [PASSED] Clock 154000 BPP 30 DSC disabled [23:50:42] [PASSED] Clock 234000 BPP 30 DSC disabled [23:50:42] [PASSED] Clock 297000 BPP 24 DSC disabled [23:50:42] [PASSED] Clock 332880 BPP 24 DSC enabled [23:50:42] [PASSED] Clock 324540 BPP 24 DSC enabled [23:50:42] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [23:50:42] ============== drm_test_dp_mst_calc_pbn_div =============== [23:50:42] [PASSED] Link rate 2000000 lane count 4 [23:50:42] [PASSED] Link rate 2000000 lane count 2 [23:50:42] [PASSED] Link rate 2000000 lane count 1 [23:50:42] [PASSED] Link rate 1350000 lane count 4 [23:50:42] [PASSED] Link rate 1350000 lane count 2 [23:50:42] [PASSED] Link rate 1350000 lane count 1 [23:50:42] [PASSED] Link rate 1000000 lane count 4 [23:50:42] [PASSED] Link rate 1000000 lane count 2 [23:50:42] [PASSED] Link rate 1000000 lane count 1 [23:50:42] [PASSED] Link rate 810000 lane count 4 [23:50:42] [PASSED] Link rate 810000 lane count 2 [23:50:42] [PASSED] Link rate 810000 lane count 1 [23:50:42] [PASSED] Link rate 540000 lane count 4 [23:50:42] [PASSED] Link rate 540000 lane count 2 [23:50:42] [PASSED] Link rate 540000 lane count 1 [23:50:42] [PASSED] Link rate 270000 lane count 4 [23:50:42] [PASSED] Link rate 270000 lane count 2 [23:50:42] [PASSED] Link rate 270000 lane count 1 [23:50:42] [PASSED] Link rate 162000 lane count 4 [23:50:42] [PASSED] Link rate 162000 lane count 2 [23:50:42] [PASSED] Link rate 162000 lane count 1 [23:50:42] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [23:50:42] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [23:50:42] [PASSED] DP_ENUM_PATH_RESOURCES with port number [23:50:42] [PASSED] DP_POWER_UP_PHY with port number [23:50:42] [PASSED] DP_POWER_DOWN_PHY with port number [23:50:42] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [23:50:42] [PASSED] DP_ALLOCATE_PAYLOAD with port number [23:50:42] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [23:50:42] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [23:50:42] [PASSED] DP_QUERY_PAYLOAD with port number [23:50:42] [PASSED] DP_QUERY_PAYLOAD with VCPI [23:50:42] [PASSED] DP_REMOTE_DPCD_READ with port number [23:50:42] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [23:50:42] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [23:50:42] [PASSED] DP_REMOTE_DPCD_WRITE with port number [23:50:42] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [23:50:42] [PASSED] DP_REMOTE_DPCD_WRITE with data array [23:50:42] [PASSED] DP_REMOTE_I2C_READ with port number [23:50:42] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [23:50:42] [PASSED] DP_REMOTE_I2C_READ with transactions array [23:50:42] [PASSED] DP_REMOTE_I2C_WRITE with port number [23:50:42] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [23:50:42] [PASSED] DP_REMOTE_I2C_WRITE with data array [23:50:42] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [23:50:42] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [23:50:42] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [23:50:42] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [23:50:42] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [23:50:42] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [23:50:42] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [23:50:42] ================ [PASSED] drm_dp_mst_helper ================ [23:50:42] ================== drm_exec (7 subtests) =================== [23:50:42] [PASSED] sanitycheck [23:50:42] [PASSED] test_lock [23:50:42] [PASSED] test_lock_unlock [23:50:42] [PASSED] test_duplicates [23:50:42] [PASSED] test_prepare [23:50:42] [PASSED] test_prepare_array [23:50:42] [PASSED] test_multiple_loops [23:50:42] ==================== [PASSED] drm_exec ===================== [23:50:42] =========== drm_format_helper_test (17 subtests) =========== [23:50:42] ============== drm_test_fb_xrgb8888_to_gray8 ============== [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [23:50:42] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [23:50:42] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [23:50:42] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [23:50:42] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [23:50:42] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [23:50:42] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [23:50:42] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [23:50:42] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [23:50:42] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [23:50:42] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [23:50:42] ============== drm_test_fb_xrgb8888_to_mono =============== [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [23:50:42] ==================== drm_test_fb_swab ===================== [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ================ [PASSED] drm_test_fb_swab ================= [23:50:42] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [23:50:42] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [23:50:42] [PASSED] single_pixel_source_buffer [23:50:42] [PASSED] single_pixel_clip_rectangle [23:50:42] [PASSED] well_known_colors [23:50:42] [PASSED] destination_pitch [23:50:42] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [23:50:42] ================= drm_test_fb_clip_offset ================= [23:50:42] [PASSED] pass through [23:50:42] [PASSED] horizontal offset [23:50:42] [PASSED] vertical offset [23:50:42] [PASSED] horizontal and vertical offset [23:50:42] [PASSED] horizontal offset (custom pitch) [23:50:42] [PASSED] vertical offset (custom pitch) [23:50:42] [PASSED] horizontal and vertical offset (custom pitch) [23:50:42] ============= [PASSED] drm_test_fb_clip_offset ============= [23:50:42] =================== drm_test_fb_memcpy ==================== [23:50:42] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [23:50:42] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [23:50:42] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [23:50:42] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [23:50:42] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [23:50:42] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [23:50:42] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [23:50:42] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [23:50:42] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [23:50:42] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [23:50:42] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [23:50:42] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [23:50:42] =============== [PASSED] drm_test_fb_memcpy ================ [23:50:42] ============= [PASSED] drm_format_helper_test ============== [23:50:42] ================= drm_format (18 subtests) ================= [23:50:42] [PASSED] drm_test_format_block_width_invalid [23:50:42] [PASSED] drm_test_format_block_width_one_plane [23:50:42] [PASSED] drm_test_format_block_width_two_plane [23:50:42] [PASSED] drm_test_format_block_width_three_plane [23:50:42] [PASSED] drm_test_format_block_width_tiled [23:50:42] [PASSED] drm_test_format_block_height_invalid [23:50:42] [PASSED] drm_test_format_block_height_one_plane [23:50:42] [PASSED] drm_test_format_block_height_two_plane [23:50:42] [PASSED] drm_test_format_block_height_three_plane [23:50:42] [PASSED] drm_test_format_block_height_tiled [23:50:42] [PASSED] drm_test_format_min_pitch_invalid [23:50:42] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [23:50:42] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [23:50:42] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [23:50:42] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [23:50:42] [PASSED] drm_test_format_min_pitch_two_plane [23:50:42] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [23:50:42] [PASSED] drm_test_format_min_pitch_tiled [23:50:42] =================== [PASSED] drm_format ==================== [23:50:42] ============== drm_framebuffer (10 subtests) =============== [23:50:42] ========== drm_test_framebuffer_check_src_coords ========== [23:50:42] [PASSED] Success: source fits into fb [23:50:42] [PASSED] Fail: overflowing fb with x-axis coordinate [23:50:42] [PASSED] Fail: overflowing fb with y-axis coordinate [23:50:42] [PASSED] Fail: overflowing fb with source width [23:50:42] [PASSED] Fail: overflowing fb with source height [23:50:42] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [23:50:42] [PASSED] drm_test_framebuffer_cleanup [23:50:42] =============== drm_test_framebuffer_create =============== [23:50:42] [PASSED] ABGR8888 normal sizes [23:50:42] [PASSED] ABGR8888 max sizes [23:50:42] [PASSED] ABGR8888 pitch greater than min required [23:50:42] [PASSED] ABGR8888 pitch less than min required [23:50:42] [PASSED] ABGR8888 Invalid width [23:50:42] [PASSED] ABGR8888 Invalid buffer handle [23:50:42] [PASSED] No pixel format [23:50:42] [PASSED] ABGR8888 Width 0 [23:50:42] [PASSED] ABGR8888 Height 0 [23:50:42] [PASSED] ABGR8888 Out of bound height * pitch combination [23:50:42] [PASSED] ABGR8888 Large buffer offset [23:50:42] [PASSED] ABGR8888 Buffer offset for inexistent plane [23:50:42] [PASSED] ABGR8888 Invalid flag [23:50:42] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [23:50:42] [PASSED] ABGR8888 Valid buffer modifier [23:50:42] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [23:50:42] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [23:50:42] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [23:50:42] [PASSED] NV12 Normal sizes [23:50:42] [PASSED] NV12 Max sizes [23:50:42] [PASSED] NV12 Invalid pitch [23:50:42] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [23:50:42] [PASSED] NV12 different modifier per-plane [23:50:42] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [23:50:42] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [23:50:42] [PASSED] NV12 Modifier for inexistent plane [23:50:42] [PASSED] NV12 Handle for inexistent plane [23:50:42] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [23:50:42] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [23:50:42] [PASSED] YVU420 Normal sizes [23:50:42] [PASSED] YVU420 Max sizes [23:50:42] [PASSED] YVU420 Invalid pitch [23:50:42] [PASSED] YVU420 Different pitches [23:50:42] [PASSED] YVU420 Different buffer offsets/pitches [23:50:42] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [23:50:42] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [23:50:42] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [23:50:42] [PASSED] YVU420 Valid modifier [23:50:42] [PASSED] YVU420 Different modifiers per plane [23:50:42] [PASSED] YVU420 Modifier for inexistent plane [23:50:42] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [23:50:42] [PASSED] X0L2 Normal sizes [23:50:42] [PASSED] X0L2 Max sizes [23:50:42] [PASSED] X0L2 Invalid pitch [23:50:42] [PASSED] X0L2 Pitch greater than minimum required [23:50:42] [PASSED] X0L2 Handle for inexistent plane [23:50:42] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [23:50:42] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [23:50:42] [PASSED] X0L2 Valid modifier [23:50:42] [PASSED] X0L2 Modifier for inexistent plane [23:50:42] =========== [PASSED] drm_test_framebuffer_create =========== [23:50:42] [PASSED] drm_test_framebuffer_free [23:50:42] [PASSED] drm_test_framebuffer_init [23:50:42] [PASSED] drm_test_framebuffer_init_bad_format [23:50:42] [PASSED] drm_test_framebuffer_init_dev_mismatch [23:50:42] [PASSED] drm_test_framebuffer_lookup [23:50:42] [PASSED] drm_test_framebuffer_lookup_inexistent [23:50:42] [PASSED] drm_test_framebuffer_modifiers_not_supported [23:50:42] ================= [PASSED] drm_framebuffer ================= [23:50:42] ================ drm_gem_shmem (8 subtests) ================ [23:50:42] [PASSED] drm_gem_shmem_test_obj_create [23:50:42] [PASSED] drm_gem_shmem_test_obj_create_private [23:50:42] [PASSED] drm_gem_shmem_test_pin_pages [23:50:42] [PASSED] drm_gem_shmem_test_vmap [23:50:42] [PASSED] drm_gem_shmem_test_get_sg_table [23:50:42] [PASSED] drm_gem_shmem_test_get_pages_sgt [23:50:42] [PASSED] drm_gem_shmem_test_madvise [23:50:42] [PASSED] drm_gem_shmem_test_purge [23:50:42] ================== [PASSED] drm_gem_shmem ================== [23:50:42] === drm_atomic_helper_connector_hdmi_check (29 subtests) === [23:50:42] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [23:50:42] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [23:50:42] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [23:50:42] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [23:50:42] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [23:50:42] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [23:50:42] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [23:50:42] [PASSED] Automatic [23:50:42] [PASSED] Full [23:50:42] [PASSED] Limited 16:235 [23:50:42] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [23:50:42] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [23:50:42] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [23:50:42] [PASSED] drm_test_check_disable_connector [23:50:42] [PASSED] drm_test_check_hdmi_funcs_reject_rate [23:50:42] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [23:50:42] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [23:50:42] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [23:50:42] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [23:50:42] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [23:50:42] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [23:50:42] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [23:50:42] [PASSED] drm_test_check_output_bpc_dvi [23:50:42] [PASSED] drm_test_check_output_bpc_format_vic_1 [23:50:42] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [23:50:42] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [23:50:42] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [23:50:42] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [23:50:42] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [23:50:42] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [23:50:42] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [23:50:42] ============ drm_test_check_hdmi_color_format ============= [23:50:42] [PASSED] AUTO -> RGB [23:50:42] [PASSED] YCBCR422 -> YUV422 [23:50:42] [PASSED] YCBCR420 -> YUV420 [23:50:42] [PASSED] YCBCR444 -> YUV444 [23:50:42] [PASSED] RGB -> RGB [23:50:42] ======== [PASSED] drm_test_check_hdmi_color_format ========= [23:50:42] ======== drm_test_check_hdmi_color_format_420_only ======== [23:50:42] [PASSED] RGB should fail [23:50:42] [PASSED] YUV444 should fail [23:50:42] [PASSED] YUV422 should fail [23:50:42] [PASSED] YUV420 should work [23:50:42] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ==== [23:50:42] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [23:50:42] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [23:50:42] [PASSED] drm_test_check_broadcast_rgb_value [23:50:42] [PASSED] drm_test_check_bpc_8_value [23:50:42] [PASSED] drm_test_check_bpc_10_value [23:50:42] [PASSED] drm_test_check_bpc_12_value [23:50:42] [PASSED] drm_test_check_format_value [23:50:42] [PASSED] drm_test_check_tmds_char_value [23:50:42] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [23:50:42] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) = [23:50:42] [PASSED] drm_test_check_mode_valid [23:50:42] [PASSED] drm_test_check_mode_valid_reject [23:50:42] [PASSED] drm_test_check_mode_valid_reject_rate [23:50:42] [PASSED] drm_test_check_mode_valid_reject_max_clock [23:50:42] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock [23:50:42] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector [23:50:42] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb [23:50:42] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [23:50:42] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) = [23:50:42] [PASSED] drm_test_check_infoframes [23:50:42] [PASSED] drm_test_check_reject_avi_infoframe [23:50:42] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8 [23:50:42] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10 [23:50:42] [PASSED] drm_test_check_reject_audio_infoframe [23:50:42] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes === [23:50:42] ================= drm_managed (2 subtests) ================= [23:50:42] [PASSED] drm_test_managed_release_action [23:50:42] [PASSED] drm_test_managed_run_action [23:50:42] =================== [PASSED] drm_managed =================== [23:50:42] =================== drm_mm (6 subtests) ==================== [23:50:42] [PASSED] drm_test_mm_init [23:50:42] [PASSED] drm_test_mm_debug [23:50:42] [PASSED] drm_test_mm_align32 [23:50:42] [PASSED] drm_test_mm_align64 [23:50:42] [PASSED] drm_test_mm_lowest [23:50:42] [PASSED] drm_test_mm_highest [23:50:42] ===================== [PASSED] drm_mm ====================== [23:50:42] ============= drm_modes_analog_tv (5 subtests) ============= [23:50:42] [PASSED] drm_test_modes_analog_tv_mono_576i [23:50:42] [PASSED] drm_test_modes_analog_tv_ntsc_480i [23:50:42] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [23:50:42] [PASSED] drm_test_modes_analog_tv_pal_576i [23:50:42] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [23:50:42] =============== [PASSED] drm_modes_analog_tv =============== [23:50:42] ============== drm_panic_helper (3 subtests) =============== [23:50:42] ============= drm_test_panic_screen_user_map ============== [23:50:42] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [23:50:42] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [23:50:42] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [23:50:42] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [23:50:42] ========= [PASSED] drm_test_panic_screen_user_map ========== [23:50:42] ============= drm_test_panic_screen_user_page ============= [23:50:42] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [23:50:42] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [23:50:42] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [23:50:42] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [23:50:42] ========= [PASSED] drm_test_panic_screen_user_page ========= [23:50:42] ========== drm_test_panic_screen_user_set_pixel =========== [23:50:42] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [23:50:42] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [23:50:42] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [23:50:42] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [23:50:42] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [23:50:42] ====== [PASSED] drm_test_panic_screen_user_set_pixel ======= [23:50:42] ================ [PASSED] drm_panic_helper ================= [23:50:42] ============== drm_plane_helper (2 subtests) =============== [23:50:42] =============== drm_test_check_plane_state ================ [23:50:42] [PASSED] clipping_simple [23:50:42] [PASSED] clipping_rotate_reflect [23:50:42] [PASSED] positioning_simple [23:50:42] [PASSED] upscaling [23:50:42] [PASSED] downscaling [23:50:42] [PASSED] rounding1 [23:50:42] [PASSED] rounding2 [23:50:42] [PASSED] rounding3 [23:50:42] [PASSED] rounding4 [23:50:42] =========== [PASSED] drm_test_check_plane_state ============ [23:50:42] =========== drm_test_check_invalid_plane_state ============ [23:50:42] [PASSED] positioning_invalid [23:50:42] [PASSED] upscaling_invalid [23:50:42] [PASSED] downscaling_invalid [23:50:42] ======= [PASSED] drm_test_check_invalid_plane_state ======== [23:50:42] ================ [PASSED] drm_plane_helper ================= [23:50:42] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [23:50:42] ====== drm_test_connector_helper_tv_get_modes_check ======= [23:50:42] [PASSED] None [23:50:42] [PASSED] PAL [23:50:42] [PASSED] NTSC [23:50:42] [PASSED] Both, NTSC Default [23:50:42] [PASSED] Both, PAL Default [23:50:42] [PASSED] Both, NTSC Default, with PAL on command-line [23:50:42] [PASSED] Both, PAL Default, with NTSC on command-line [23:50:42] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [23:50:42] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [23:50:42] ================== drm_rect (9 subtests) =================== [23:50:42] [PASSED] drm_test_rect_clip_scaled_div_by_zero [23:50:42] [PASSED] drm_test_rect_clip_scaled_not_clipped [23:50:42] [PASSED] drm_test_rect_clip_scaled_clipped [23:50:42] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [23:50:42] ================= drm_test_rect_intersect ================= [23:50:42] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [23:50:42] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [23:50:42] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [23:50:42] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [23:50:42] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [23:50:42] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [23:50:42] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [23:50:42] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [23:50:42] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [23:50:42] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [23:50:42] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [23:50:42] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [23:50:42] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [23:50:42] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [23:50:42] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [23:50:42] ============= [PASSED] drm_test_rect_intersect ============= [23:50:42] ================ drm_test_rect_calc_hscale ================ [23:50:42] [PASSED] normal use [23:50:42] [PASSED] out of max range [23:50:42] [PASSED] out of min range [23:50:42] [PASSED] zero dst [23:50:42] [PASSED] negative src [23:50:42] [PASSED] negative dst [23:50:42] ============ [PASSED] drm_test_rect_calc_hscale ============ [23:50:42] ================ drm_test_rect_calc_vscale ================ [23:50:42] [PASSED] normal use [23:50:42] [PASSED] out of max range [23:50:42] [PASSED] out of min range [23:50:42] [PASSED] zero dst [23:50:42] [PASSED] negative src [23:50:42] [PASSED] negative dst [23:50:42] ============ [PASSED] drm_test_rect_calc_vscale ============ [23:50:42] ================== drm_test_rect_rotate =================== [23:50:42] [PASSED] reflect-x [23:50:42] [PASSED] reflect-y [23:50:42] [PASSED] rotate-0 [23:50:42] [PASSED] rotate-90 [23:50:42] [PASSED] rotate-180 [23:50:42] [PASSED] rotate-270 [23:50:42] ============== [PASSED] drm_test_rect_rotate =============== [23:50:42] ================ drm_test_rect_rotate_inv ================= [23:50:42] [PASSED] reflect-x [23:50:42] [PASSED] reflect-y [23:50:42] [PASSED] rotate-0 [23:50:42] [PASSED] rotate-90 [23:50:42] [PASSED] rotate-180 [23:50:42] [PASSED] rotate-270 [23:50:42] ============ [PASSED] drm_test_rect_rotate_inv ============= [23:50:42] ==================== [PASSED] drm_rect ===================== [23:50:42] ============ drm_sysfb_modeset_test (1 subtest) ============ [23:50:42] ============ drm_test_sysfb_build_fourcc_list ============= [23:50:42] [PASSED] no native formats [23:50:42] [PASSED] XRGB8888 as native format [23:50:42] [PASSED] remove duplicates [23:50:42] [PASSED] convert alpha formats [23:50:42] [PASSED] random formats [23:50:42] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [23:50:42] ============= [PASSED] drm_sysfb_modeset_test ============== [23:50:42] ================== drm_fixp (2 subtests) =================== [23:50:42] [PASSED] drm_test_int2fixp [23:50:42] [PASSED] drm_test_sm2fixp [23:50:42] ==================== [PASSED] drm_fixp ===================== [23:50:42] ============================================================ [23:50:42] Testing complete. Ran 667 tests: passed: 667 [23:50:42] Elapsed time: 27.325s total, 1.882s configuring, 25.028s building, 0.403s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [23:50:42] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [23:50:44] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [23:50:54] Starting KUnit Kernel (1/1)... [23:50:54] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [23:50:54] ================= ttm_device (5 subtests) ================== [23:50:54] [PASSED] ttm_device_init_basic [23:50:54] [PASSED] ttm_device_init_multiple [23:50:54] [PASSED] ttm_device_fini_basic [23:50:54] [PASSED] ttm_device_init_no_vma_man [23:50:54] ================== ttm_device_init_pools ================== [23:50:54] [PASSED] No DMA allocations, no DMA32 required [23:50:54] [PASSED] DMA allocations, DMA32 required [23:50:54] [PASSED] No DMA allocations, DMA32 required [23:50:54] [PASSED] DMA allocations, no DMA32 required [23:50:54] ============== [PASSED] ttm_device_init_pools ============== [23:50:54] =================== [PASSED] ttm_device ==================== [23:50:54] ================== ttm_pool (8 subtests) =================== [23:50:54] ================== ttm_pool_alloc_basic =================== [23:50:54] [PASSED] One page [23:50:54] [PASSED] More than one page [23:50:54] [PASSED] Above the allocation limit [23:50:54] [PASSED] One page, with coherent DMA mappings enabled [23:50:54] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [23:50:54] ============== [PASSED] ttm_pool_alloc_basic =============== [23:50:54] ============== ttm_pool_alloc_basic_dma_addr ============== [23:50:54] [PASSED] One page [23:50:54] [PASSED] More than one page [23:50:54] [PASSED] Above the allocation limit [23:50:54] [PASSED] One page, with coherent DMA mappings enabled [23:50:54] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [23:50:54] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [23:50:54] [PASSED] ttm_pool_alloc_order_caching_match [23:50:54] [PASSED] ttm_pool_alloc_caching_mismatch [23:50:54] [PASSED] ttm_pool_alloc_order_mismatch [23:50:54] [PASSED] ttm_pool_free_dma_alloc [23:50:54] [PASSED] ttm_pool_free_no_dma_alloc [23:50:54] [PASSED] ttm_pool_fini_basic [23:50:54] ==================== [PASSED] ttm_pool ===================== [23:50:54] ================ ttm_resource (8 subtests) ================= [23:50:54] ================= ttm_resource_init_basic ================= [23:50:54] [PASSED] Init resource in TTM_PL_SYSTEM [23:50:54] [PASSED] Init resource in TTM_PL_VRAM [23:50:54] [PASSED] Init resource in a private placement [23:50:54] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [23:50:54] ============= [PASSED] ttm_resource_init_basic ============= [23:50:54] [PASSED] ttm_resource_init_pinned [23:50:54] [PASSED] ttm_resource_fini_basic [23:50:54] [PASSED] ttm_resource_manager_init_basic [23:50:54] [PASSED] ttm_resource_manager_usage_basic [23:50:54] [PASSED] ttm_resource_manager_set_used_basic [23:50:54] [PASSED] ttm_sys_man_alloc_basic [23:50:54] [PASSED] ttm_sys_man_free_basic [23:50:54] ================== [PASSED] ttm_resource =================== [23:50:54] =================== ttm_tt (15 subtests) =================== [23:50:54] ==================== ttm_tt_init_basic ==================== [23:50:54] [PASSED] Page-aligned size [23:50:54] [PASSED] Extra pages requested [23:50:54] ================ [PASSED] ttm_tt_init_basic ================ [23:50:54] [PASSED] ttm_tt_init_misaligned [23:50:54] [PASSED] ttm_tt_fini_basic [23:50:54] [PASSED] ttm_tt_fini_sg [23:50:54] [PASSED] ttm_tt_fini_shmem [23:50:54] [PASSED] ttm_tt_create_basic [23:50:54] [PASSED] ttm_tt_create_invalid_bo_type [23:50:54] [PASSED] ttm_tt_create_ttm_exists [23:50:54] [PASSED] ttm_tt_create_failed [23:50:54] [PASSED] ttm_tt_destroy_basic [23:50:54] [PASSED] ttm_tt_populate_null_ttm [23:50:54] [PASSED] ttm_tt_populate_populated_ttm [23:50:54] [PASSED] ttm_tt_unpopulate_basic [23:50:54] [PASSED] ttm_tt_unpopulate_empty_ttm [23:50:54] [PASSED] ttm_tt_swapin_basic [23:50:54] ===================== [PASSED] ttm_tt ====================== [23:50:54] =================== ttm_bo (14 subtests) =================== [23:50:54] =========== ttm_bo_reserve_optimistic_no_ticket =========== [23:50:54] [PASSED] Cannot be interrupted and sleeps [23:50:54] [PASSED] Cannot be interrupted, locks straight away [23:50:54] [PASSED] Can be interrupted, sleeps [23:50:54] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [23:50:54] [PASSED] ttm_bo_reserve_locked_no_sleep [23:50:54] [PASSED] ttm_bo_reserve_no_wait_ticket [23:50:54] [PASSED] ttm_bo_reserve_double_resv [23:50:54] [PASSED] ttm_bo_reserve_interrupted [23:50:54] [PASSED] ttm_bo_reserve_deadlock [23:50:54] [PASSED] ttm_bo_unreserve_basic [23:50:54] [PASSED] ttm_bo_unreserve_pinned [23:50:54] [PASSED] ttm_bo_unreserve_bulk [23:50:54] [PASSED] ttm_bo_fini_basic [23:50:54] [PASSED] ttm_bo_fini_shared_resv [23:50:54] [PASSED] ttm_bo_pin_basic [23:50:54] [PASSED] ttm_bo_pin_unpin_resource [23:50:54] [PASSED] ttm_bo_multiple_pin_one_unpin [23:50:54] ===================== [PASSED] ttm_bo ====================== [23:50:54] ============== ttm_bo_validate (22 subtests) =============== [23:50:54] ============== ttm_bo_init_reserved_sys_man =============== [23:50:54] [PASSED] Buffer object for userspace [23:50:54] [PASSED] Kernel buffer object [23:50:54] [PASSED] Shared buffer object [23:50:54] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [23:50:54] ============== ttm_bo_init_reserved_mock_man ============== [23:50:54] [PASSED] Buffer object for userspace [23:50:54] [PASSED] Kernel buffer object [23:50:54] [PASSED] Shared buffer object [23:50:54] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [23:50:54] [PASSED] ttm_bo_init_reserved_resv [23:50:54] ================== ttm_bo_validate_basic ================== [23:50:54] [PASSED] Buffer object for userspace [23:50:54] [PASSED] Kernel buffer object [23:50:54] [PASSED] Shared buffer object [23:50:54] ============== [PASSED] ttm_bo_validate_basic ============== [23:50:54] [PASSED] ttm_bo_validate_invalid_placement [23:50:54] ============= ttm_bo_validate_same_placement ============== [23:50:54] [PASSED] System manager [23:50:54] [PASSED] VRAM manager [23:50:54] ========= [PASSED] ttm_bo_validate_same_placement ========== [23:50:54] [PASSED] ttm_bo_validate_failed_alloc [23:50:54] [PASSED] ttm_bo_validate_pinned [23:50:54] [PASSED] ttm_bo_validate_busy_placement [23:50:54] ================ ttm_bo_validate_multihop ================= [23:50:54] [PASSED] Buffer object for userspace [23:50:54] [PASSED] Kernel buffer object [23:50:54] [PASSED] Shared buffer object [23:50:54] ============ [PASSED] ttm_bo_validate_multihop ============= [23:50:54] ========== ttm_bo_validate_no_placement_signaled ========== [23:50:54] [PASSED] Buffer object in system domain, no page vector [23:50:54] [PASSED] Buffer object in system domain with an existing page vector [23:50:54] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [23:50:54] ======== ttm_bo_validate_no_placement_not_signaled ======== [23:50:54] [PASSED] Buffer object for userspace [23:50:54] [PASSED] Kernel buffer object [23:50:54] [PASSED] Shared buffer object [23:50:54] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [23:50:54] [PASSED] ttm_bo_validate_move_fence_signaled [23:50:54] ========= ttm_bo_validate_move_fence_not_signaled ========= [23:50:54] [PASSED] Waits for GPU [23:50:54] [PASSED] Tries to lock straight away [23:50:54] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [23:50:54] [PASSED] ttm_bo_validate_swapout [23:50:54] [PASSED] ttm_bo_validate_happy_evict [23:50:54] [PASSED] ttm_bo_validate_all_pinned_evict [23:50:54] [PASSED] ttm_bo_validate_allowed_only_evict [23:50:54] [PASSED] ttm_bo_validate_deleted_evict [23:50:54] [PASSED] ttm_bo_validate_busy_domain_evict [23:50:54] [PASSED] ttm_bo_validate_evict_gutting [23:50:54] [PASSED] ttm_bo_validate_recrusive_evict [23:50:54] ================= [PASSED] ttm_bo_validate ================= [23:50:54] ============================================================ [23:50:54] Testing complete. Ran 102 tests: passed: 102 [23:50:54] Elapsed time: 12.094s total, 1.873s configuring, 10.006s building, 0.186s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig [23:50:54] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [23:50:56] 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 [23:51:05] Starting KUnit Kernel (1/1)... [23:51:05] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [23:51:05] =============== dma-buf-fence (12 subtests) ================ [23:51:05] [PASSED] test_sanitycheck [23:51:05] [PASSED] test_signaling [23:51:05] [PASSED] test_add_callback [23:51:05] [PASSED] test_late_add_callback [23:51:05] [PASSED] test_rm_callback [23:51:05] [PASSED] test_late_rm_callback [23:51:05] [PASSED] test_status [23:51:05] [PASSED] test_error [23:51:05] [PASSED] test_wait [23:51:05] [PASSED] test_wait_timeout [23:51:05] [PASSED] test_stub [23:51:05] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs) [23:51:05] ================== [PASSED] dma-buf-fence ================== [23:51:05] ============ dma-buf-fence-chain (11 subtests) ============= [23:51:05] [PASSED] test_sanitycheck [23:51:05] [PASSED] test_find_seqno [23:51:05] [PASSED] test_find_signaled [23:51:05] [PASSED] test_find_out_of_order [23:51:10] [PASSED] test_find_gap [23:51:10] [PASSED] test_find_race [23:51:10] [PASSED] test_signal_forward [23:51:10] [PASSED] test_signal_backward [23:51:10] [PASSED] test_wait_forward [23:51:10] [PASSED] test_wait_backward [23:51:10] [PASSED] test_wait_random [23:51:10] =============== [PASSED] dma-buf-fence-chain =============== [23:51:10] ============ dma-buf-fence-unwrap (10 subtests) ============ [23:51:10] [PASSED] test_sanitycheck [23:51:10] [PASSED] test_unwrap_array [23:51:10] [PASSED] test_unwrap_chain [23:51:10] [PASSED] test_unwrap_chain_array [23:51:10] [PASSED] test_unwrap_merge [23:51:10] [PASSED] test_unwrap_merge_duplicate [23:51:10] [PASSED] test_unwrap_merge_seqno [23:51:10] [PASSED] test_unwrap_merge_order [23:51:10] [PASSED] test_unwrap_merge_complex [23:51:10] [PASSED] test_unwrap_merge_complex_seqno [23:51:10] ============== [PASSED] dma-buf-fence-unwrap =============== [23:51:10] ================ dma-buf-resv (5 subtests) ================= [23:51:10] [PASSED] test_sanitycheck [23:51:10] ===================== test_signaling ====================== [23:51:10] [PASSED] kernel [23:51:10] [PASSED] write [23:51:10] [PASSED] read [23:51:10] [PASSED] bookkeep [23:51:10] ================= [PASSED] test_signaling ================== [23:51:10] ====================== test_for_each ====================== [23:51:10] [PASSED] kernel [23:51:10] [PASSED] write [23:51:10] [PASSED] read [23:51:10] [PASSED] bookkeep [23:51:10] ================== [PASSED] test_for_each ================== [23:51:10] ================= test_for_each_unlocked ================== [23:51:10] [PASSED] kernel [23:51:10] [PASSED] write [23:51:10] [PASSED] read [23:51:10] [PASSED] bookkeep [23:51:10] ============= [PASSED] test_for_each_unlocked ============== [23:51:10] ===================== test_get_fences ===================== [23:51:10] [PASSED] kernel [23:51:10] [PASSED] write [23:51:10] [PASSED] read [23:51:10] [PASSED] bookkeep [23:51:10] ================= [PASSED] test_get_fences ================= [23:51:10] ================== [PASSED] dma-buf-resv =================== [23:51:10] ============================================================ [23:51:10] Testing complete. Ran 50 tests: passed: 49, skipped: 1 [23:51:10] Elapsed time: 15.930s total, 1.867s configuring, 8.792s building, 5.253s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✓ Xe.CI.BAT: success for Use SIG_ID logs for GuC component (rev6)
In reply to Umesh Nerlige Ramappa== Series Details ==
== Series Details ==
Series: Use SIG_ID logs for GuC component (rev6)
URL : https://patchwork.freedesktop.org/series/173177/
State : success
== Summary ==
CI Bug Log - changes from xe-5936-882b0f966d25236f00d6ec0c349f7948d2ed1376_BAT -> xe-pw-173177v6_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (15 -> 15)
------------------------------
No changes in participating hosts
Changes
-------
No changes found
Build changes
-------------
* Linux: xe-5936-882b0f966d25236f00d6ec0c349f7948d2ed1376 -> xe-pw-173177v6
IGT_9140: 3b0daa274edb520204660fa1e15424b66ce0aea0 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-5936-882b0f966d25236f00d6ec0c349f7948d2ed1376: 882b0f966d25236f00d6ec0c349f7948d2ed1376
xe-pw-173177v6: 173177v6
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-173177v6/index.html
Patchwork
CI✗ Xe.CI.FULL: failure for Use SIG_ID logs for GuC component (rev6)
In reply to Umesh Nerlige Ramappa== Series Details ==
== Series Details ==
Series: Use SIG_ID logs for GuC component (rev6)
URL : https://patchwork.freedesktop.org/series/173177/
State : failure
== Summary ==
ERROR: The runconfig 'xe-5936-882b0f966d25236f00d6ec0c349f7948d2ed1376_FULL' does not exist in the database
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-173177v6/index.html