* [PATCH v3 1/4] drm/xe/vf: React to MIGRATED interrupt
2024-09-26 22:20 [PATCH v3 0/4] drm/xe/vf: Post-migration recovery worker basis Tomasz Lis
@ 2024-09-26 22:20 ` Tomasz Lis
2024-09-26 22:20 ` [PATCH v3 2/4] drm/xe/vf: Send RESFIX_DONE message at end of VF restore Tomasz Lis
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Tomasz Lis @ 2024-09-26 22:20 UTC (permalink / raw)
To: intel-xe; +Cc: Michał Winiarski, Michał Wajdeczko
To properly support VF Save/Restore procedure, fixups need to be
applied after PF driver finishes its part of VF Restore. Those
fixups are applied by the VF driver within a VM.
A VF driver gets informed that it was migrated by receiving an
interrupt from each GuC. That should be the trigger for fixups.
The VF can safely do post-migration fixups on resources associated
to each GuC only after that GuC issued the MIGRATED interrupt.
This change introduces a worker to be used for post-migration fixups,
and a mechanism to schedule said worker when all GuCs sent the irq.
v2: renamed and moved functions, updated logged messages, removed
unused includes, used anon struct (Michal)
v3: ordering, kerneldoc, asserts, debug messages,
on_all_tiles -> on_all_gts (Michal)
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
---
drivers/gpu/drm/xe/Makefile | 3 +-
drivers/gpu/drm/xe/xe_device_types.h | 2 +
drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 20 ++++++++
drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 1 +
drivers/gpu/drm/xe/xe_guc.c | 11 ++++
drivers/gpu/drm/xe/xe_memirq.c | 3 ++
drivers/gpu/drm/xe/xe_sriov.c | 4 ++
drivers/gpu/drm/xe/xe_sriov_types.h | 16 ++++++
drivers/gpu/drm/xe/xe_sriov_vf.c | 76 ++++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_sriov_vf.h | 14 +++++
10 files changed, 149 insertions(+), 1 deletion(-)
create mode 100644 drivers/gpu/drm/xe/xe_sriov_vf.c
create mode 100644 drivers/gpu/drm/xe/xe_sriov_vf.h
diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index 1122765c711d..36890222dd59 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -123,7 +123,8 @@ xe-y += \
xe_gt_sriov_vf.o \
xe_guc_relay.o \
xe_memirq.o \
- xe_sriov.o
+ xe_sriov.o \
+ xe_sriov_vf.o
xe-$(CONFIG_PCI_IOV) += \
xe_gt_sriov_pf.o \
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 85bede4dd646..e86b5ca047c8 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -374,6 +374,8 @@ struct xe_device {
/** @sriov.pf: PF specific data */
struct xe_device_pf pf;
+ /** @sriov.vf: VF specific data */
+ struct xe_device_vf vf;
/** @sriov.wq: workqueue used by the virtualization workers */
struct workqueue_struct *wq;
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
index d3baba50f085..8b8074e8e949 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
@@ -27,6 +27,7 @@
#include "xe_guc_relay.h"
#include "xe_mmio.h"
#include "xe_sriov.h"
+#include "xe_sriov_vf.h"
#include "xe_uc_fw.h"
#include "xe_wopcm.h"
@@ -692,6 +693,25 @@ int xe_gt_sriov_vf_connect(struct xe_gt *gt)
return err;
}
+/**
+ * xe_gt_sriov_vf_migrated_event_handler - Start a VF migration recovery,
+ * or just mark that a GuC is ready for it.
+ * @gt: the &xe_gt struct instance linked to target GuC
+ *
+ * This function shall be called only by VF.
+ */
+void xe_gt_sriov_vf_migrated_event_handler(struct xe_gt *gt)
+{
+ struct xe_device *xe = gt_to_xe(gt);
+
+ xe_gt_assert(gt, IS_SRIOV_VF(xe));
+
+ set_bit(gt->info.id, &xe->sriov.vf.migration.gt_flags);
+ smp_mb__after_atomic();
+ xe_gt_sriov_info(gt, "ready for recovery after migration\n");
+ xe_sriov_vf_start_migration_recovery(xe);
+}
+
static bool vf_is_negotiated(struct xe_gt *gt, u16 major, u16 minor)
{
xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt)));
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
index e541ce57bec2..9959a296b221 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
@@ -17,6 +17,7 @@ int xe_gt_sriov_vf_query_config(struct xe_gt *gt);
int xe_gt_sriov_vf_connect(struct xe_gt *gt);
int xe_gt_sriov_vf_query_runtime(struct xe_gt *gt);
int xe_gt_sriov_vf_prepare_ggtt(struct xe_gt *gt);
+void xe_gt_sriov_vf_migrated_event_handler(struct xe_gt *gt);
u32 xe_gt_sriov_vf_gmdid(struct xe_gt *gt);
u16 xe_gt_sriov_vf_guc_ids(struct xe_gt *gt);
diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index c2ddf883702b..fb5704526954 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -1093,10 +1093,21 @@ int xe_guc_self_cfg64(struct xe_guc *guc, u16 key, u64 val)
return guc_self_cfg(guc, key, 2, val);
}
+static void xe_guc_sw_0_irq_handler(struct xe_guc *guc)
+{
+ struct xe_gt *gt = guc_to_gt(guc);
+
+ if (IS_SRIOV_VF(gt_to_xe(gt)))
+ xe_gt_sriov_vf_migrated_event_handler(gt);
+}
+
void xe_guc_irq_handler(struct xe_guc *guc, const u16 iir)
{
if (iir & GUC_INTR_GUC2HOST)
xe_guc_ct_irq_handler(&guc->ct);
+
+ if (iir & GUC_INTR_SW_INT_0)
+ xe_guc_sw_0_irq_handler(guc);
}
void xe_guc_sanitize(struct xe_guc *guc)
diff --git a/drivers/gpu/drm/xe/xe_memirq.c b/drivers/gpu/drm/xe/xe_memirq.c
index e3610cb90bb9..8dcb2f5558f6 100644
--- a/drivers/gpu/drm/xe/xe_memirq.c
+++ b/drivers/gpu/drm/xe/xe_memirq.c
@@ -435,6 +435,9 @@ static void memirq_dispatch_guc(struct xe_memirq *memirq, struct iosys_map *stat
if (memirq_received(memirq, status, ilog2(GUC_INTR_GUC2HOST), name))
xe_guc_irq_handler(guc, GUC_INTR_GUC2HOST);
+
+ if (memirq_received(memirq, status, ilog2(GUC_INTR_SW_INT_0), name))
+ xe_guc_irq_handler(guc, GUC_INTR_SW_INT_0);
}
/**
diff --git a/drivers/gpu/drm/xe/xe_sriov.c b/drivers/gpu/drm/xe/xe_sriov.c
index 69a066ef20c0..2f4c3ae24f6e 100644
--- a/drivers/gpu/drm/xe/xe_sriov.c
+++ b/drivers/gpu/drm/xe/xe_sriov.c
@@ -12,6 +12,7 @@
#include "xe_mmio.h"
#include "xe_sriov.h"
#include "xe_sriov_pf.h"
+#include "xe_sriov_vf.h"
/**
* xe_sriov_mode_to_string - Convert enum value to string.
@@ -112,6 +113,9 @@ int xe_sriov_init(struct xe_device *xe)
return err;
}
+ if (IS_SRIOV_VF(xe))
+ xe_sriov_vf_init_early(xe);
+
xe_assert(xe, !xe->sriov.wq);
xe->sriov.wq = alloc_workqueue("xe-sriov-wq", 0, 0);
if (!xe->sriov.wq)
diff --git a/drivers/gpu/drm/xe/xe_sriov_types.h b/drivers/gpu/drm/xe/xe_sriov_types.h
index c7b7ad4af5c8..23d1edecb8e5 100644
--- a/drivers/gpu/drm/xe/xe_sriov_types.h
+++ b/drivers/gpu/drm/xe/xe_sriov_types.h
@@ -56,4 +56,20 @@ struct xe_device_pf {
struct mutex master_lock;
};
+/**
+ * struct xe_device_pv - Xe Virtual Function related data
+ *
+ * The data in this structure is valid only if driver is running in the
+ * @XE_SRIOV_MODE_VF mode.
+ */
+struct xe_device_vf {
+ /** @migration: VF Migration state data */
+ struct {
+ /** @migration.worker: VF migration recovery worker */
+ struct work_struct worker;
+ /** @migration.gt_flags: Per-GT request flags for VF migration recovery */
+ unsigned long gt_flags;
+ } migration;
+};
+
#endif
diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c
new file mode 100644
index 000000000000..0192b9a0ef7a
--- /dev/null
+++ b/drivers/gpu/drm/xe/xe_sriov_vf.c
@@ -0,0 +1,76 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2023-2024 Intel Corporation
+ */
+
+#include <drm/drm_managed.h>
+
+#include "xe_assert.h"
+#include "xe_device.h"
+#include "xe_gt_sriov_printk.h"
+#include "xe_sriov.h"
+#include "xe_sriov_vf.h"
+#include "xe_sriov_printk.h"
+
+static void migration_worker_func(struct work_struct *w);
+
+/**
+ * xe_sriov_vf_init_early - Initialize SR-IOV VF specific data.
+ * @xe: the &xe_device to initialize
+ */
+void xe_sriov_vf_init_early(struct xe_device *xe)
+{
+ INIT_WORK(&xe->sriov.vf.migration.worker, migration_worker_func);
+}
+
+static void vf_post_migration_recovery(struct xe_device *xe)
+{
+ drm_dbg(&xe->drm, "migration recovery in progress\n");
+ /* FIXME: add the recovery steps */
+ drm_notice(&xe->drm, "migration recovery ended\n");
+}
+
+static void migration_worker_func(struct work_struct *w)
+{
+ struct xe_device *xe = container_of(w, struct xe_device,
+ sriov.vf.migration.worker);
+
+ vf_post_migration_recovery(xe);
+}
+
+static bool vf_ready_to_recovery_on_all_gts(struct xe_device *xe)
+{
+ struct xe_gt *gt;
+ unsigned int id;
+
+ for_each_gt(gt, xe, id) {
+ if (!test_bit(id, &xe->sriov.vf.migration.gt_flags)) {
+ xe_gt_sriov_dbg_verbose(gt, "still not ready to recover\n");
+ return false;
+ }
+ }
+ return true;
+}
+
+/**
+ * xe_sriov_vf_start_migration_recovery - Start VF migration recovery.
+ * @xe: the &xe_device to start recovery on
+ *
+ * This function shall be called only by VF.
+ */
+void xe_sriov_vf_start_migration_recovery(struct xe_device *xe)
+{
+ bool started;
+
+ xe_assert(xe, IS_SRIOV_VF(xe));
+
+ if (!vf_ready_to_recovery_on_all_gts(xe))
+ return;
+
+ WRITE_ONCE(xe->sriov.vf.migration.gt_flags, 0);
+ smp_mb();
+
+ started = queue_work(xe->sriov.wq, &xe->sriov.vf.migration.worker);
+ drm_info(&xe->drm, "VF migration recovery %s\n", started ?
+ "scheduled" : "already in progress");
+}
diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.h b/drivers/gpu/drm/xe/xe_sriov_vf.h
new file mode 100644
index 000000000000..7b8622cff2b7
--- /dev/null
+++ b/drivers/gpu/drm/xe/xe_sriov_vf.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2023-2024 Intel Corporation
+ */
+
+#ifndef _XE_SRIOV_VF_H_
+#define _XE_SRIOV_VF_H_
+
+struct xe_device;
+
+void xe_sriov_vf_init_early(struct xe_device *xe);
+void xe_sriov_vf_start_migration_recovery(struct xe_device *xe);
+
+#endif
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v3 2/4] drm/xe/vf: Send RESFIX_DONE message at end of VF restore
2024-09-26 22:20 [PATCH v3 0/4] drm/xe/vf: Post-migration recovery worker basis Tomasz Lis
2024-09-26 22:20 ` [PATCH v3 1/4] drm/xe/vf: React to MIGRATED interrupt Tomasz Lis
@ 2024-09-26 22:20 ` Tomasz Lis
2024-09-26 22:20 ` [PATCH v3 3/4] drm/xe/vf: Start post-migration fixups with provisinoning query Tomasz Lis
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Tomasz Lis @ 2024-09-26 22:20 UTC (permalink / raw)
To: intel-xe; +Cc: Michał Winiarski, Michał Wajdeczko
After restore, GuC will not answer to any messages from VF KMD until
fixups are applied. When that is done, VF KMD sends RESFIX_DONE
message to GuC, at which point GuC resumes normal operation.
This patch implements sending the RESFIX_DONE message at end of
post-migration recovery.
v2: keep pm ref during whole recovery, style fixes (Michal)
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
---
.../gpu/drm/xe/abi/guc_actions_sriov_abi.h | 38 +++++++++++++++++++
drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 36 ++++++++++++++++++
drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 1 +
drivers/gpu/drm/xe/xe_guc.c | 3 +-
drivers/gpu/drm/xe/xe_sriov_vf.c | 23 +++++++++++
5 files changed, 100 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/abi/guc_actions_sriov_abi.h b/drivers/gpu/drm/xe/abi/guc_actions_sriov_abi.h
index b6a1852749dd..0b28659d94e9 100644
--- a/drivers/gpu/drm/xe/abi/guc_actions_sriov_abi.h
+++ b/drivers/gpu/drm/xe/abi/guc_actions_sriov_abi.h
@@ -501,6 +501,44 @@
#define VF2GUC_VF_RESET_RESPONSE_MSG_LEN GUC_HXG_RESPONSE_MSG_MIN_LEN
#define VF2GUC_VF_RESET_RESPONSE_MSG_0_MBZ GUC_HXG_RESPONSE_MSG_0_DATA0
+/**
+ * DOC: VF2GUC_NOTIFY_RESFIX_DONE
+ *
+ * This action is used by VF to notify the GuC that the VF KMD has completed
+ * post-migration recovery steps.
+ *
+ * This message must be sent as `MMIO HXG Message`_.
+ *
+ * +---+-------+--------------------------------------------------------------+
+ * | | Bits | Description |
+ * +===+=======+==============================================================+
+ * | 0 | 31 | ORIGIN = GUC_HXG_ORIGIN_HOST_ |
+ * | +-------+--------------------------------------------------------------+
+ * | | 30:28 | TYPE = GUC_HXG_TYPE_REQUEST_ |
+ * | +-------+--------------------------------------------------------------+
+ * | | 27:16 | DATA0 = MBZ |
+ * | +-------+--------------------------------------------------------------+
+ * | | 15:0 | ACTION = _`GUC_ACTION_VF2GUC_NOTIFY_RESFIX_DONE` = 0x5508 |
+ * +---+-------+--------------------------------------------------------------+
+ *
+ * +---+-------+--------------------------------------------------------------+
+ * | | Bits | Description |
+ * +===+=======+==============================================================+
+ * | 0 | 31 | ORIGIN = GUC_HXG_ORIGIN_GUC_ |
+ * | +-------+--------------------------------------------------------------+
+ * | | 30:28 | TYPE = GUC_HXG_TYPE_RESPONSE_SUCCESS_ |
+ * | +-------+--------------------------------------------------------------+
+ * | | 27:0 | DATA0 = MBZ |
+ * +---+-------+--------------------------------------------------------------+
+ */
+#define GUC_ACTION_VF2GUC_NOTIFY_RESFIX_DONE 0x5508u
+
+#define VF2GUC_NOTIFY_RESFIX_DONE_REQUEST_MSG_LEN GUC_HXG_REQUEST_MSG_MIN_LEN
+#define VF2GUC_NOTIFY_RESFIX_DONE_REQUEST_MSG_0_MBZ GUC_HXG_REQUEST_MSG_0_DATA0
+
+#define VF2GUC_NOTIFY_RESFIX_DONE_RESPONSE_MSG_LEN GUC_HXG_RESPONSE_MSG_MIN_LEN
+#define VF2GUC_NOTIFY_RESFIX_DONE_RESPONSE_MSG_0_MBZ GUC_HXG_RESPONSE_MSG_0_DATA0
+
/**
* DOC: VF2GUC_QUERY_SINGLE_KLV
*
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
index 8b8074e8e949..88cf3ca3e75d 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
@@ -224,6 +224,42 @@ int xe_gt_sriov_vf_bootstrap(struct xe_gt *gt)
return 0;
}
+static int guc_action_vf_notify_resfix_done(struct xe_guc *guc)
+{
+ u32 request[GUC_HXG_REQUEST_MSG_MIN_LEN] = {
+ FIELD_PREP(GUC_HXG_MSG_0_ORIGIN, GUC_HXG_ORIGIN_HOST) |
+ FIELD_PREP(GUC_HXG_MSG_0_TYPE, GUC_HXG_TYPE_REQUEST) |
+ FIELD_PREP(GUC_HXG_REQUEST_MSG_0_ACTION, GUC_ACTION_VF2GUC_NOTIFY_RESFIX_DONE),
+ };
+ int ret;
+
+ ret = xe_guc_mmio_send(guc, request, ARRAY_SIZE(request));
+
+ return ret > 0 ? -EPROTO : ret;
+}
+
+/**
+ * xe_gt_sriov_vf_notify_resfix_done - Notify GuC about resource fixups apply completed.
+ * @gt: the &xe_gt struct instance linked to target GuC
+ *
+ * Returns: 0 if the operation completed successfully, or a negative error
+ * code otherwise.
+ */
+int xe_gt_sriov_vf_notify_resfix_done(struct xe_gt *gt)
+{
+ struct xe_guc *guc = >->uc.guc;
+ int err;
+
+ xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt)));
+
+ err = guc_action_vf_notify_resfix_done(guc);
+ if (unlikely(err))
+ xe_gt_sriov_err(gt, "Failed to notify GuC about resource fixup done (%pe)\n",
+ ERR_PTR(err));
+
+ return err;
+}
+
static int guc_action_query_single_klv(struct xe_guc *guc, u32 key,
u32 *value, u32 value_len)
{
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
index 9959a296b221..912d20814261 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
@@ -17,6 +17,7 @@ int xe_gt_sriov_vf_query_config(struct xe_gt *gt);
int xe_gt_sriov_vf_connect(struct xe_gt *gt);
int xe_gt_sriov_vf_query_runtime(struct xe_gt *gt);
int xe_gt_sriov_vf_prepare_ggtt(struct xe_gt *gt);
+int xe_gt_sriov_vf_notify_resfix_done(struct xe_gt *gt);
void xe_gt_sriov_vf_migrated_event_handler(struct xe_gt *gt);
u32 xe_gt_sriov_vf_gmdid(struct xe_gt *gt);
diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index fb5704526954..e563fd2f818f 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -939,7 +939,8 @@ int xe_guc_mmio_send_recv(struct xe_guc *guc, const u32 *request,
BUILD_BUG_ON(VF_SW_FLAG_COUNT != MED_VF_SW_FLAG_COUNT);
- xe_assert(xe, !xe_guc_ct_enabled(&guc->ct));
+ /* this call can happen with CTB enabled during VF migration */
+ xe_assert(xe, IS_SRIOV_VF(xe) || !xe_guc_ct_enabled(&guc->ct));
xe_assert(xe, len);
xe_assert(xe, len <= VF_SW_FLAG_COUNT);
xe_assert(xe, len <= MED_VF_SW_FLAG_COUNT);
diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c
index 0192b9a0ef7a..bb3eab30cd43 100644
--- a/drivers/gpu/drm/xe/xe_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_sriov_vf.c
@@ -8,6 +8,8 @@
#include "xe_assert.h"
#include "xe_device.h"
#include "xe_gt_sriov_printk.h"
+#include "xe_gt_sriov_vf.h"
+#include "xe_pm.h"
#include "xe_sriov.h"
#include "xe_sriov_vf.h"
#include "xe_sriov_printk.h"
@@ -23,10 +25,31 @@ void xe_sriov_vf_init_early(struct xe_device *xe)
INIT_WORK(&xe->sriov.vf.migration.worker, migration_worker_func);
}
+/*
+ * vf_post_migration_notify_resfix_done - Notify all GuCs about resource fixups apply finished.
+ * @xe: the &xe_device struct instance
+ */
+static void vf_post_migration_notify_resfix_done(struct xe_device *xe)
+{
+ struct xe_gt *gt;
+ unsigned int id;
+ int err, num_sent = 0;
+
+ for_each_gt(gt, xe, id) {
+ err = xe_gt_sriov_vf_notify_resfix_done(gt);
+ if (!err)
+ num_sent++;
+ }
+ drm_dbg(&xe->drm, "sent %d VF resource fixups done notifications\n", num_sent);
+}
+
static void vf_post_migration_recovery(struct xe_device *xe)
{
drm_dbg(&xe->drm, "migration recovery in progress\n");
+ xe_pm_runtime_get(xe);
/* FIXME: add the recovery steps */
+ vf_post_migration_notify_resfix_done(xe);
+ xe_pm_runtime_put(xe);
drm_notice(&xe->drm, "migration recovery ended\n");
}
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v3 3/4] drm/xe/vf: Start post-migration fixups with provisinoning query
2024-09-26 22:20 [PATCH v3 0/4] drm/xe/vf: Post-migration recovery worker basis Tomasz Lis
2024-09-26 22:20 ` [PATCH v3 1/4] drm/xe/vf: React to MIGRATED interrupt Tomasz Lis
2024-09-26 22:20 ` [PATCH v3 2/4] drm/xe/vf: Send RESFIX_DONE message at end of VF restore Tomasz Lis
@ 2024-09-26 22:20 ` Tomasz Lis
2024-09-26 22:20 ` [PATCH v3 4/4] drm/xe/vf: Defer fixups if migrated twice fast Tomasz Lis
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Tomasz Lis @ 2024-09-26 22:20 UTC (permalink / raw)
To: intel-xe; +Cc: Michał Winiarski, Michał Wajdeczko
During post-migration recovery, only MMIO communication to GuC is
allowed. The VF KMD needs to use that channel to ask for the new
provisioning, which includes a new GGTT range assigned to the VF.
v2: query config only instead of handshake; no need to get pm ref as
it's now kept through whole recovery (Michal)
v3: switched names of 'err' and 'ret' (Michal)
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
---
drivers/gpu/drm/xe/xe_sriov_vf.c | 36 ++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c
index bb3eab30cd43..457380ca9636 100644
--- a/drivers/gpu/drm/xe/xe_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_sriov_vf.c
@@ -25,6 +25,31 @@ void xe_sriov_vf_init_early(struct xe_device *xe)
INIT_WORK(&xe->sriov.vf.migration.worker, migration_worker_func);
}
+/**
+ * vf_post_migration_requery_guc - Re-query GuC for current VF provisioning.
+ * @xe: the &xe_device struct instance
+ *
+ * After migration, we need to re-query all VF configuration to make sure
+ * they match previous provisioning. Note that most of VF provisioning
+ * shall be the same, except GGTT range, since GGTT is not virtualized per-VF.
+ *
+ * Returns: 0 if the operation completed successfully, or a negative error
+ * code otherwise.
+ */
+static int vf_post_migration_requery_guc(struct xe_device *xe)
+{
+ struct xe_gt *gt;
+ unsigned int id;
+ int err, ret = 0;
+
+ for_each_gt(gt, xe, id) {
+ err = xe_gt_sriov_vf_query_config(gt);
+ ret = ret ?: err;
+ }
+
+ return ret;
+}
+
/*
* vf_post_migration_notify_resfix_done - Notify all GuCs about resource fixups apply finished.
* @xe: the &xe_device struct instance
@@ -45,12 +70,23 @@ static void vf_post_migration_notify_resfix_done(struct xe_device *xe)
static void vf_post_migration_recovery(struct xe_device *xe)
{
+ int err;
+
drm_dbg(&xe->drm, "migration recovery in progress\n");
xe_pm_runtime_get(xe);
+ err = vf_post_migration_requery_guc(xe);
+ if (unlikely(err))
+ goto fail;
+
/* FIXME: add the recovery steps */
vf_post_migration_notify_resfix_done(xe);
xe_pm_runtime_put(xe);
drm_notice(&xe->drm, "migration recovery ended\n");
+ return;
+fail:
+ xe_pm_runtime_put(xe);
+ drm_err(&xe->drm, "migration recovery failed (%pe)\n", ERR_PTR(err));
+ xe_device_declare_wedged(xe);
}
static void migration_worker_func(struct work_struct *w)
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v3 4/4] drm/xe/vf: Defer fixups if migrated twice fast
2024-09-26 22:20 [PATCH v3 0/4] drm/xe/vf: Post-migration recovery worker basis Tomasz Lis
` (2 preceding siblings ...)
2024-09-26 22:20 ` [PATCH v3 3/4] drm/xe/vf: Start post-migration fixups with provisinoning query Tomasz Lis
@ 2024-09-26 22:20 ` Tomasz Lis
2024-09-26 22:26 ` ✓ CI.Patch_applied: success for drm/xe/vf: Post-migration recovery worker basis (rev3) Patchwork
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Tomasz Lis @ 2024-09-26 22:20 UTC (permalink / raw)
To: intel-xe; +Cc: Michał Winiarski, Michał Wajdeczko
If another VF migration happened during post-migration recovery,
then the current worker should be finished to allow the next
one start swiftly and cleanly.
Check for defer in two places: before fixups, and before
sending RESFIX_DONE.
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
---
drivers/gpu/drm/xe/xe_sriov_vf.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c
index 457380ca9636..06fdc1201a0c 100644
--- a/drivers/gpu/drm/xe/xe_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_sriov_vf.c
@@ -50,6 +50,19 @@ static int vf_post_migration_requery_guc(struct xe_device *xe)
return ret;
}
+/*
+ * vf_post_migration_imminent - Check if post-restore recovery is coming.
+ * @xe: the &xe_device struct instance
+ *
+ * Return: True if migration recovery worker will soon be running. Any worker currently
+ * executing does not affect the result.
+ */
+static bool vf_post_migration_imminent(struct xe_device *xe)
+{
+ return xe->sriov.vf.migration.gt_flags != 0 ||
+ work_pending(&xe->sriov.vf.migration.worker);
+}
+
/*
* vf_post_migration_notify_resfix_done - Notify all GuCs about resource fixups apply finished.
* @xe: the &xe_device struct instance
@@ -61,11 +74,17 @@ static void vf_post_migration_notify_resfix_done(struct xe_device *xe)
int err, num_sent = 0;
for_each_gt(gt, xe, id) {
+ if (vf_post_migration_imminent(xe))
+ goto skip;
err = xe_gt_sriov_vf_notify_resfix_done(gt);
if (!err)
num_sent++;
}
drm_dbg(&xe->drm, "sent %d VF resource fixups done notifications\n", num_sent);
+ return;
+
+skip:
+ drm_dbg(&xe->drm, "another recovery imminent, skipping notifications\n");
}
static void vf_post_migration_recovery(struct xe_device *xe)
@@ -75,6 +94,8 @@ static void vf_post_migration_recovery(struct xe_device *xe)
drm_dbg(&xe->drm, "migration recovery in progress\n");
xe_pm_runtime_get(xe);
err = vf_post_migration_requery_guc(xe);
+ if (vf_post_migration_imminent(xe))
+ goto defer;
if (unlikely(err))
goto fail;
@@ -83,6 +104,10 @@ static void vf_post_migration_recovery(struct xe_device *xe)
xe_pm_runtime_put(xe);
drm_notice(&xe->drm, "migration recovery ended\n");
return;
+defer:
+ xe_pm_runtime_put(xe);
+ drm_dbg(&xe->drm, "migration recovery deferred\n");
+ return;
fail:
xe_pm_runtime_put(xe);
drm_err(&xe->drm, "migration recovery failed (%pe)\n", ERR_PTR(err));
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* ✓ CI.Patch_applied: success for drm/xe/vf: Post-migration recovery worker basis (rev3)
2024-09-26 22:20 [PATCH v3 0/4] drm/xe/vf: Post-migration recovery worker basis Tomasz Lis
` (3 preceding siblings ...)
2024-09-26 22:20 ` [PATCH v3 4/4] drm/xe/vf: Defer fixups if migrated twice fast Tomasz Lis
@ 2024-09-26 22:26 ` Patchwork
2024-09-26 22:26 ` ✗ CI.checkpatch: warning " Patchwork
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2024-09-26 22:26 UTC (permalink / raw)
To: Tomasz Lis; +Cc: intel-xe
== Series Details ==
Series: drm/xe/vf: Post-migration recovery worker basis (rev3)
URL : https://patchwork.freedesktop.org/series/138935/
State : success
== Summary ==
=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 6bd25f521573 drm-tip: 2024y-09m-26d-20h-45m-03s UTC integration manifest
=== git am output follows ===
Applying: drm/xe/vf: React to MIGRATED interrupt
Applying: drm/xe/vf: Send RESFIX_DONE message at end of VF restore
Applying: drm/xe/vf: Start post-migration fixups with provisinoning query
Applying: drm/xe/vf: Defer fixups if migrated twice fast
^ permalink raw reply [flat|nested] 9+ messages in thread* ✗ CI.checkpatch: warning for drm/xe/vf: Post-migration recovery worker basis (rev3)
2024-09-26 22:20 [PATCH v3 0/4] drm/xe/vf: Post-migration recovery worker basis Tomasz Lis
` (4 preceding siblings ...)
2024-09-26 22:26 ` ✓ CI.Patch_applied: success for drm/xe/vf: Post-migration recovery worker basis (rev3) Patchwork
@ 2024-09-26 22:26 ` Patchwork
2024-09-26 22:27 ` ✓ CI.KUnit: success " Patchwork
2024-09-26 22:32 ` ✗ CI.Build: failure " Patchwork
7 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2024-09-26 22:26 UTC (permalink / raw)
To: Tomasz Lis; +Cc: intel-xe
== Series Details ==
Series: drm/xe/vf: Post-migration recovery worker basis (rev3)
URL : https://patchwork.freedesktop.org/series/138935/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
30ab6715fc09baee6cc14cb3c89ad8858688d474
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit da92b506149df3a8d1ad45cc0a074ef9afcb0e91
Author: Tomasz Lis <tomasz.lis@intel.com>
Date: Fri Sep 27 00:20:04 2024 +0200
drm/xe/vf: Defer fixups if migrated twice fast
If another VF migration happened during post-migration recovery,
then the current worker should be finished to allow the next
one start swiftly and cleanly.
Check for defer in two places: before fixups, and before
sending RESFIX_DONE.
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
+ /mt/dim checkpatch 6bd25f52157328ac4b7b09a3946281957afe3bfd drm-intel
40f0c9197c33 drm/xe/vf: React to MIGRATED interrupt
-:83: WARNING:MEMORY_BARRIER: memory barrier without comment
#83: FILE: drivers/gpu/drm/xe/xe_gt_sriov_vf.c:710:
+ smp_mb__after_atomic();
-:191: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#191:
new file mode 100644
-:266: WARNING:MEMORY_BARRIER: memory barrier without comment
#266: FILE: drivers/gpu/drm/xe/xe_sriov_vf.c:71:
+ smp_mb();
total: 0 errors, 3 warnings, 0 checks, 212 lines checked
4318bdd8c061 drm/xe/vf: Send RESFIX_DONE message at end of VF restore
315a8f8d8d80 drm/xe/vf: Start post-migration fixups with provisinoning query
da92b506149d drm/xe/vf: Defer fixups if migrated twice fast
^ permalink raw reply [flat|nested] 9+ messages in thread* ✓ CI.KUnit: success for drm/xe/vf: Post-migration recovery worker basis (rev3)
2024-09-26 22:20 [PATCH v3 0/4] drm/xe/vf: Post-migration recovery worker basis Tomasz Lis
` (5 preceding siblings ...)
2024-09-26 22:26 ` ✗ CI.checkpatch: warning " Patchwork
@ 2024-09-26 22:27 ` Patchwork
2024-09-26 22:32 ` ✗ CI.Build: failure " Patchwork
7 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2024-09-26 22:27 UTC (permalink / raw)
To: Tomasz Lis; +Cc: intel-xe
== Series Details ==
Series: drm/xe/vf: Post-migration recovery worker basis (rev3)
URL : https://patchwork.freedesktop.org/series/138935/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[22:26:43] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[22:26:47] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
156 | u64 ioread64_lo_hi(const void __iomem *addr)
| ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
163 | u64 ioread64_hi_lo(const void __iomem *addr)
| ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
170 | u64 ioread64be_lo_hi(const void __iomem *addr)
| ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
178 | u64 ioread64be_hi_lo(const void __iomem *addr)
| ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~~~
[22:27:15] Starting KUnit Kernel (1/1)...
[22:27:15] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[22:27:15] =================== guc_dbm (7 subtests) ===================
[22:27:15] [PASSED] test_empty
[22:27:15] [PASSED] test_default
[22:27:15] ======================== test_size ========================
[22:27:15] [PASSED] 4
[22:27:15] [PASSED] 8
[22:27:15] [PASSED] 32
[22:27:15] [PASSED] 256
[22:27:15] ==================== [PASSED] test_size ====================
[22:27:15] ======================= test_reuse ========================
[22:27:15] [PASSED] 4
[22:27:15] [PASSED] 8
[22:27:15] [PASSED] 32
[22:27:15] [PASSED] 256
[22:27:15] =================== [PASSED] test_reuse ====================
[22:27:15] =================== test_range_overlap ====================
[22:27:15] [PASSED] 4
[22:27:15] [PASSED] 8
[22:27:15] [PASSED] 32
[22:27:15] [PASSED] 256
[22:27:15] =============== [PASSED] test_range_overlap ================
[22:27:15] =================== test_range_compact ====================
[22:27:15] [PASSED] 4
[22:27:15] [PASSED] 8
[22:27:15] [PASSED] 32
[22:27:15] [PASSED] 256
[22:27:15] =============== [PASSED] test_range_compact ================
[22:27:15] ==================== test_range_spare =====================
[22:27:15] [PASSED] 4
[22:27:15] [PASSED] 8
[22:27:15] [PASSED] 32
[22:27:15] [PASSED] 256
[22:27:15] ================ [PASSED] test_range_spare =================
[22:27:15] ===================== [PASSED] guc_dbm =====================
[22:27:15] =================== guc_idm (6 subtests) ===================
[22:27:15] [PASSED] bad_init
[22:27:15] [PASSED] no_init
[22:27:15] [PASSED] init_fini
[22:27:15] [PASSED] check_used
[22:27:15] [PASSED] check_quota
[22:27:15] [PASSED] check_all
[22:27:15] ===================== [PASSED] guc_idm =====================
[22:27:15] ================== no_relay (3 subtests) ===================
[22:27:15] [PASSED] xe_drops_guc2pf_if_not_ready
[22:27:15] [PASSED] xe_drops_guc2vf_if_not_ready
[22:27:15] [PASSED] xe_rejects_send_if_not_ready
[22:27:15] ==================== [PASSED] no_relay =====================
[22:27:15] ================== pf_relay (14 subtests) ==================
[22:27:15] [PASSED] pf_rejects_guc2pf_too_short
[22:27:15] [PASSED] pf_rejects_guc2pf_too_long
[22:27:15] [PASSED] pf_rejects_guc2pf_no_payload
[22:27:15] [PASSED] pf_fails_no_payload
[22:27:15] [PASSED] pf_fails_bad_origin
[22:27:15] [PASSED] pf_fails_bad_type
[22:27:15] [PASSED] pf_txn_reports_error
[22:27:15] [PASSED] pf_txn_sends_pf2guc
[22:27:15] [PASSED] pf_sends_pf2guc
[22:27:15] [SKIPPED] pf_loopback_nop
[22:27:15] [SKIPPED] pf_loopback_echo
[22:27:15] [SKIPPED] pf_loopback_fail
[22:27:15] [SKIPPED] pf_loopback_busy
[22:27:15] [SKIPPED] pf_loopback_retry
[22:27:15] ==================== [PASSED] pf_relay =====================
[22:27:15] ================== vf_relay (3 subtests) ===================
[22:27:15] [PASSED] vf_rejects_guc2vf_too_short
[22:27:15] [PASSED] vf_rejects_guc2vf_too_long
[22:27:15] [PASSED] vf_rejects_guc2vf_no_payload
[22:27:15] ==================== [PASSED] vf_relay =====================
[22:27:15] ================= pf_service (11 subtests) =================
[22:27:15] [PASSED] pf_negotiate_any
[22:27:15] [PASSED] pf_negotiate_base_match
[22:27:15] [PASSED] pf_negotiate_base_newer
[22:27:15] [PASSED] pf_negotiate_base_next
[22:27:15] [SKIPPED] pf_negotiate_base_older
[22:27:15] [PASSED] pf_negotiate_base_prev
[22:27:15] [PASSED] pf_negotiate_latest_match
[22:27:15] [PASSED] pf_negotiate_latest_newer
[22:27:15] [PASSED] pf_negotiate_latest_next
[22:27:15] [SKIPPED] pf_negotiate_latest_older
[22:27:15] [SKIPPED] pf_negotiate_latest_prev
[22:27:15] =================== [PASSED] pf_service ====================
[22:27:15] ===================== lmtt (1 subtest) =====================
[22:27:15] ======================== test_ops =========================
[22:27:15] [PASSED] 2-level
[22:27:15] [PASSED] multi-level
[22:27:15] ==================== [PASSED] test_ops =====================
[22:27:15] ====================== [PASSED] lmtt =======================
[22:27:15] =================== xe_mocs (2 subtests) ===================
[22:27:15] ================ xe_live_mocs_kernel_kunit ================
[22:27:15] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[22:27:15] ================ xe_live_mocs_reset_kunit =================
[22:27:15] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[22:27:15] ==================== [SKIPPED] xe_mocs =====================
[22:27:15] ================= xe_migrate (2 subtests) ==================
[22:27:15] ================= xe_migrate_sanity_kunit =================
[22:27:15] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[22:27:15] ================== xe_validate_ccs_kunit ==================
[22:27:15] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[22:27:15] =================== [SKIPPED] xe_migrate ===================
[22:27:15] ================== xe_dma_buf (1 subtest) ==================
[22:27:15] ==================== xe_dma_buf_kunit =====================
[22:27:15] ================ [SKIPPED] xe_dma_buf_kunit ================
[22:27:15] =================== [SKIPPED] xe_dma_buf ===================
[22:27:15] ==================== xe_bo (3 subtests) ====================
[22:27:15] ================== xe_ccs_migrate_kunit ===================
[22:27:15] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[22:27:15] ==================== xe_bo_evict_kunit ====================
[22:27:15] =============== [SKIPPED] xe_bo_evict_kunit ================
[22:27:15] =================== xe_bo_shrink_kunit ====================
[22:27:15] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[22:27:15] ===================== [SKIPPED] xe_bo ======================
[22:27:15] ==================== args (11 subtests) ====================
[22:27:15] [PASSED] count_args_test
[22:27:15] [PASSED] call_args_example
[22:27:15] [PASSED] call_args_test
[22:27:15] [PASSED] drop_first_arg_example
[22:27:15] [PASSED] drop_first_arg_test
[22:27:15] [PASSED] first_arg_example
[22:27:15] [PASSED] first_arg_test
[22:27:15] [PASSED] last_arg_example
[22:27:15] [PASSED] last_arg_test
[22:27:15] [PASSED] pick_arg_example
[22:27:15] [PASSED] sep_comma_example
stty: 'standard input': Inappropriate ioctl for device
[22:27:15] ====================== [PASSED] args =======================
[22:27:15] =================== xe_pci (2 subtests) ====================
[22:27:15] [PASSED] xe_gmdid_graphics_ip
[22:27:15] [PASSED] xe_gmdid_media_ip
[22:27:15] ===================== [PASSED] xe_pci ======================
[22:27:15] =================== xe_rtp (2 subtests) ====================
[22:27:15] =============== xe_rtp_process_to_sr_tests ================
[22:27:15] [PASSED] coalesce-same-reg
[22:27:15] [PASSED] no-match-no-add
[22:27:15] [PASSED] match-or
[22:27:15] [PASSED] match-or-xfail
[22:27:15] [PASSED] no-match-no-add-multiple-rules
[22:27:15] [PASSED] two-regs-two-entries
[22:27:15] [PASSED] clr-one-set-other
[22:27:15] [PASSED] set-field
[22:27:15] [PASSED] conflict-duplicate
[22:27:15] [PASSED] conflict-not-disjoint
[22:27:15] [PASSED] conflict-reg-type
[22:27:15] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[22:27:15] ================== xe_rtp_process_tests ===================
[22:27:15] [PASSED] active1
[22:27:15] [PASSED] active2
[22:27:15] [PASSED] active-inactive
[22:27:15] [PASSED] inactive-active
[22:27:15] [PASSED] inactive-1st_or_active-inactive
[22:27:15] [PASSED] inactive-2nd_or_active-inactive
[22:27:15] [PASSED] inactive-last_or_active-inactive
[22:27:15] [PASSED] inactive-no_or_active-inactive
[22:27:15] ============== [PASSED] xe_rtp_process_tests ===============
[22:27:15] ===================== [PASSED] xe_rtp ======================
[22:27:15] ==================== xe_wa (1 subtest) =====================
[22:27:15] ======================== xe_wa_gt =========================
[22:27:15] [PASSED] TIGERLAKE (B0)
[22:27:15] [PASSED] DG1 (A0)
[22:27:15] [PASSED] DG1 (B0)
[22:27:15] [PASSED] ALDERLAKE_S (A0)
[22:27:15] [PASSED] ALDERLAKE_S (B0)
[22:27:15] [PASSED] ALDERLAKE_S (C0)
[22:27:15] [PASSED] ALDERLAKE_S (D0)
[22:27:15] [PASSED] ALDERLAKE_P (A0)
[22:27:15] [PASSED] ALDERLAKE_P (B0)
[22:27:15] [PASSED] ALDERLAKE_P (C0)
[22:27:15] [PASSED] ALDERLAKE_S_RPLS (D0)
[22:27:15] [PASSED] ALDERLAKE_P_RPLU (E0)
[22:27:15] [PASSED] DG2_G10 (C0)
[22:27:15] [PASSED] DG2_G11 (B1)
[22:27:15] [PASSED] DG2_G12 (A1)
[22:27:15] [PASSED] METEORLAKE (g:A0, m:A0)
[22:27:15] [PASSED] METEORLAKE (g:A0, m:A0)
[22:27:15] [PASSED] METEORLAKE (g:A0, m:A0)
[22:27:15] [PASSED] LUNARLAKE (g:A0, m:A0)
[22:27:15] [PASSED] LUNARLAKE (g:B0, m:A0)
[22:27:15] [PASSED] BATTLEMAGE (g:A0, m:A1)
[22:27:15] ==================== [PASSED] xe_wa_gt =====================
[22:27:15] ====================== [PASSED] xe_wa ======================
[22:27:15] ============================================================
[22:27:15] Testing complete. Ran 122 tests: passed: 106, skipped: 16
[22:27:15] Elapsed time: 32.145s total, 4.187s configuring, 27.691s building, 0.215s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig
[22:27:15] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[22:27:17] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes]
156 | u64 ioread64_lo_hi(const void __iomem *addr)
| ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
163 | u64 ioread64_hi_lo(const void __iomem *addr)
| ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
170 | u64 ioread64be_lo_hi(const void __iomem *addr)
| ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
178 | u64 ioread64be_hi_lo(const void __iomem *addr)
| ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
| ^~~~~~~~~~~~~~~~~
[22:27:38] Starting KUnit Kernel (1/1)...
[22:27:38] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[22:27:38] ============ drm_test_pick_cmdline (2 subtests) ============
[22:27:38] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[22:27:38] =============== drm_test_pick_cmdline_named ===============
[22:27:38] [PASSED] NTSC
[22:27:38] [PASSED] NTSC-J
[22:27:38] [PASSED] PAL
[22:27:38] [PASSED] PAL-M
[22:27:38] =========== [PASSED] drm_test_pick_cmdline_named ===========
[22:27:38] ============== [PASSED] drm_test_pick_cmdline ==============
[22:27:38] ================== drm_buddy (7 subtests) ==================
[22:27:38] [PASSED] drm_test_buddy_alloc_limit
[22:27:38] [PASSED] drm_test_buddy_alloc_optimistic
[22:27:38] [PASSED] drm_test_buddy_alloc_pessimistic
[22:27:38] [PASSED] drm_test_buddy_alloc_pathological
[22:27:38] [PASSED] drm_test_buddy_alloc_contiguous
[22:27:38] [PASSED] drm_test_buddy_alloc_clear
[22:27:38] [PASSED] drm_test_buddy_alloc_range_bias
[22:27:38] ==================== [PASSED] drm_buddy ====================
[22:27:38] ============= drm_cmdline_parser (40 subtests) =============
[22:27:38] [PASSED] drm_test_cmdline_force_d_only
[22:27:38] [PASSED] drm_test_cmdline_force_D_only_dvi
[22:27:38] [PASSED] drm_test_cmdline_force_D_only_hdmi
[22:27:38] [PASSED] drm_test_cmdline_force_D_only_not_digital
[22:27:38] [PASSED] drm_test_cmdline_force_e_only
[22:27:38] [PASSED] drm_test_cmdline_res
[22:27:38] [PASSED] drm_test_cmdline_res_vesa
[22:27:38] [PASSED] drm_test_cmdline_res_vesa_rblank
[22:27:38] [PASSED] drm_test_cmdline_res_rblank
[22:27:38] [PASSED] drm_test_cmdline_res_bpp
[22:27:38] [PASSED] drm_test_cmdline_res_refresh
[22:27:38] [PASSED] drm_test_cmdline_res_bpp_refresh
[22:27:38] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[22:27:38] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[22:27:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[22:27:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[22:27:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[22:27:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[22:27:38] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[22:27:38] [PASSED] drm_test_cmdline_res_margins_force_on
[22:27:38] [PASSED] drm_test_cmdline_res_vesa_margins
[22:27:38] [PASSED] drm_test_cmdline_name
[22:27:38] [PASSED] drm_test_cmdline_name_bpp
[22:27:38] [PASSED] drm_test_cmdline_name_option
[22:27:38] [PASSED] drm_test_cmdline_name_bpp_option
[22:27:38] [PASSED] drm_test_cmdline_rotate_0
[22:27:38] [PASSED] drm_test_cmdline_rotate_90
[22:27:38] [PASSED] drm_test_cmdline_rotate_180
[22:27:38] [PASSED] drm_test_cmdline_rotate_270
[22:27:38] [PASSED] drm_test_cmdline_hmirror
[22:27:38] [PASSED] drm_test_cmdline_vmirror
[22:27:38] [PASSED] drm_test_cmdline_margin_options
[22:27:38] [PASSED] drm_test_cmdline_multiple_options
[22:27:38] [PASSED] drm_test_cmdline_bpp_extra_and_option
[22:27:38] [PASSED] drm_test_cmdline_extra_and_option
[22:27:38] [PASSED] drm_test_cmdline_freestanding_options
[22:27:38] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[22:27:38] [PASSED] drm_test_cmdline_panel_orientation
[22:27:38] ================ drm_test_cmdline_invalid =================
[22:27:38] [PASSED] margin_only
[22:27:38] [PASSED] interlace_only
[22:27:38] [PASSED] res_missing_x
[22:27:38] [PASSED] res_missing_y
[22:27:38] [PASSED] res_bad_y
[22:27:38] [PASSED] res_missing_y_bpp
[22:27:38] [PASSED] res_bad_bpp
[22:27:38] [PASSED] res_bad_refresh
[22:27:38] [PASSED] res_bpp_refresh_force_on_off
[22:27:38] [PASSED] res_invalid_mode
[22:27:38] [PASSED] res_bpp_wrong_place_mode
[22:27:38] [PASSED] name_bpp_refresh
[22:27:38] [PASSED] name_refresh
[22:27:38] [PASSED] name_refresh_wrong_mode
[22:27:38] [PASSED] name_refresh_invalid_mode
[22:27:38] [PASSED] rotate_multiple
[22:27:38] [PASSED] rotate_invalid_val
[22:27:38] [PASSED] rotate_truncated
[22:27:38] [PASSED] invalid_option
[22:27:38] [PASSED] invalid_tv_option
[22:27:38] [PASSED] truncated_tv_option
[22:27:38] ============ [PASSED] drm_test_cmdline_invalid =============
[22:27:38] =============== drm_test_cmdline_tv_options ===============
[22:27:38] [PASSED] NTSC
[22:27:38] [PASSED] NTSC_443
[22:27:38] [PASSED] NTSC_J
[22:27:38] [PASSED] PAL
[22:27:38] [PASSED] PAL_M
[22:27:38] [PASSED] PAL_N
[22:27:38] [PASSED] SECAM
[22:27:38] [PASSED] MONO_525
[22:27:38] [PASSED] MONO_625
[22:27:38] =========== [PASSED] drm_test_cmdline_tv_options ===========
[22:27:38] =============== [PASSED] drm_cmdline_parser ================
[22:27:38] ========== drmm_connector_hdmi_init (19 subtests) ==========
[22:27:38] [PASSED] drm_test_connector_hdmi_init_valid
[22:27:38] [PASSED] drm_test_connector_hdmi_init_bpc_8
[22:27:38] [PASSED] drm_test_connector_hdmi_init_bpc_10
[22:27:38] [PASSED] drm_test_connector_hdmi_init_bpc_12
[22:27:38] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[22:27:38] [PASSED] drm_test_connector_hdmi_init_bpc_null
[22:27:38] [PASSED] drm_test_connector_hdmi_init_formats_empty
[22:27:38] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[22:27:38] [PASSED] drm_test_connector_hdmi_init_null_ddc
[22:27:38] [PASSED] drm_test_connector_hdmi_init_null_product
[22:27:38] [PASSED] drm_test_connector_hdmi_init_null_vendor
[22:27:38] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[22:27:38] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[22:27:38] [PASSED] drm_test_connector_hdmi_init_product_valid
[22:27:38] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[22:27:38] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[22:27:38] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[22:27:38] ========= drm_test_connector_hdmi_init_type_valid =========
[22:27:38] [PASSED] HDMI-A
[22:27:38] [PASSED] HDMI-B
[22:27:38] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[22:27:38] ======== drm_test_connector_hdmi_init_type_invalid ========
[22:27:38] [PASSED] Unknown
[22:27:38] [PASSED] VGA
[22:27:38] [PASSED] DVI-I
[22:27:38] [PASSED] DVI-D
[22:27:38] [PASSED] DVI-A
[22:27:38] [PASSED] Composite
[22:27:38] [PASSED] SVIDEO
[22:27:38] [PASSED] LVDS
[22:27:38] [PASSED] Component
[22:27:38] [PASSED] DIN
[22:27:38] [PASSED] DP
[22:27:38] [PASSED] TV
[22:27:38] [PASSED] eDP
[22:27:38] [PASSED] Virtual
[22:27:38] [PASSED] DSI
[22:27:38] [PASSED] DPI
[22:27:38] [PASSED] Writeback
[22:27:38] [PASSED] SPI
[22:27:38] [PASSED] USB
[22:27:38] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[22:27:38] ============ [PASSED] drmm_connector_hdmi_init =============
[22:27:38] ============= drmm_connector_init (3 subtests) =============
[22:27:38] [PASSED] drm_test_drmm_connector_init
[22:27:38] [PASSED] drm_test_drmm_connector_init_null_ddc
[22:27:38] ========= drm_test_drmm_connector_init_type_valid =========
[22:27:38] [PASSED] Unknown
[22:27:38] [PASSED] VGA
[22:27:38] [PASSED] DVI-I
[22:27:38] [PASSED] DVI-D
[22:27:38] [PASSED] DVI-A
[22:27:38] [PASSED] Composite
[22:27:38] [PASSED] SVIDEO
[22:27:38] [PASSED] LVDS
[22:27:38] [PASSED] Component
[22:27:38] [PASSED] DIN
[22:27:38] [PASSED] DP
[22:27:38] [PASSED] HDMI-A
[22:27:38] [PASSED] HDMI-B
[22:27:38] [PASSED] TV
[22:27:38] [PASSED] eDP
[22:27:38] [PASSED] Virtual
[22:27:38] [PASSED] DSI
[22:27:38] [PASSED] DPI
[22:27:38] [PASSED] Writeback
[22:27:38] [PASSED] SPI
[22:27:38] [PASSED] USB
[22:27:38] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[22:27:38] =============== [PASSED] drmm_connector_init ===============
[22:27:38] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[22:27:38] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[22:27:38] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[22:27:38] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[22:27:38] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[22:27:38] ========== drm_test_get_tv_mode_from_name_valid ===========
[22:27:38] [PASSED] NTSC
[22:27:38] [PASSED] NTSC-443
[22:27:38] [PASSED] NTSC-J
[22:27:38] [PASSED] PAL
[22:27:38] [PASSED] PAL-M
[22:27:38] [PASSED] PAL-N
[22:27:38] [PASSED] SECAM
[22:27:38] [PASSED] Mono
[22:27:38] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[22:27:38] [PASSED] drm_test_get_tv_mode_from_name_truncated
[22:27:38] ============ [PASSED] drm_get_tv_mode_from_name ============
[22:27:38] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[22:27:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[22:27:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[22:27:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[22:27:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[22:27:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[22:27:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[22:27:38] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid =
[22:27:38] [PASSED] VIC 96
[22:27:38] [PASSED] VIC 97
[22:27:38] [PASSED] VIC 101
[22:27:38] [PASSED] VIC 102
[22:27:38] [PASSED] VIC 106
[22:27:38] [PASSED] VIC 107
[22:27:38] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[22:27:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[22:27:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[22:27:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[22:27:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[22:27:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[22:27:38] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[22:27:38] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[22:27:38] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ====
[22:27:38] [PASSED] Automatic
[22:27:38] [PASSED] Full
[22:27:38] [PASSED] Limited 16:235
[22:27:38] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[22:27:38] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[22:27:38] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[22:27:38] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[22:27:38] === drm_test_drm_hdmi_connector_get_output_format_name ====
[22:27:38] [PASSED] RGB
[22:27:38] [PASSED] YUV 4:2:0
[22:27:38] [PASSED] YUV 4:2:2
[22:27:38] [PASSED] YUV 4:4:4
[22:27:38] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[22:27:38] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[22:27:38] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[22:27:38] ============= drm_damage_helper (21 subtests) ==============
[22:27:38] [PASSED] drm_test_damage_iter_no_damage
[22:27:38] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[22:27:38] [PASSED] drm_test_damage_iter_no_damage_src_moved
[22:27:38] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[22:27:38] [PASSED] drm_test_damage_iter_no_damage_not_visible
[22:27:38] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[22:27:38] [PASSED] drm_test_damage_iter_no_damage_no_fb
[22:27:38] [PASSED] drm_test_damage_iter_simple_damage
[22:27:38] [PASSED] drm_test_damage_iter_single_damage
[22:27:38] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[22:27:38] [PASSED] drm_test_damage_iter_single_damage_outside_src
[22:27:38] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[22:27:38] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[22:27:38] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[22:27:38] [PASSED] drm_test_damage_iter_single_damage_src_moved
[22:27:38] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[22:27:38] [PASSED] drm_test_damage_iter_damage
[22:27:38] [PASSED] drm_test_damage_iter_damage_one_intersect
[22:27:38] [PASSED] drm_test_damage_iter_damage_one_outside
[22:27:38] [PASSED] drm_test_damage_iter_damage_src_moved
[22:27:38] [PASSED] drm_test_damage_iter_damage_not_visible
[22:27:38] ================ [PASSED] drm_damage_helper ================
[22:27:38] ============== drm_dp_mst_helper (3 subtests) ==============
[22:27:38] ============== drm_test_dp_mst_calc_pbn_mode ==============
[22:27:38] [PASSED] Clock 154000 BPP 30 DSC disabled
[22:27:38] [PASSED] Clock 234000 BPP 30 DSC disabled
[22:27:38] [PASSED] Clock 297000 BPP 24 DSC disabled
[22:27:38] [PASSED] Clock 332880 BPP 24 DSC enabled
[22:27:38] [PASSED] Clock 324540 BPP 24 DSC enabled
[22:27:38] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[22:27:38] ============== drm_test_dp_mst_calc_pbn_div ===============
[22:27:38] [PASSED] Link rate 2000000 lane count 4
[22:27:38] [PASSED] Link rate 2000000 lane count 2
[22:27:38] [PASSED] Link rate 2000000 lane count 1
[22:27:38] [PASSED] Link rate 1350000 lane count 4
[22:27:38] [PASSED] Link rate 1350000 lane count 2
[22:27:38] [PASSED] Link rate 1350000 lane count 1
[22:27:38] [PASSED] Link rate 1000000 lane count 4
[22:27:38] [PASSED] Link rate 1000000 lane count 2
[22:27:38] [PASSED] Link rate 1000000 lane count 1
[22:27:38] [PASSED] Link rate 810000 lane count 4
[22:27:38] [PASSED] Link rate 810000 lane count 2
[22:27:38] [PASSED] Link rate 810000 lane count 1
[22:27:38] [PASSED] Link rate 540000 lane count 4
[22:27:38] [PASSED] Link rate 540000 lane count 2
[22:27:38] [PASSED] Link rate 540000 lane count 1
[22:27:38] [PASSED] Link rate 270000 lane count 4
[22:27:38] [PASSED] Link rate 270000 lane count 2
[22:27:38] [PASSED] Link rate 270000 lane count 1
[22:27:38] [PASSED] Link rate 162000 lane count 4
[22:27:38] [PASSED] Link rate 162000 lane count 2
[22:27:38] [PASSED] Link rate 162000 lane count 1
[22:27:38] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[22:27:38] ========= drm_test_dp_mst_sideband_msg_req_decode =========
[22:27:38] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[22:27:38] [PASSED] DP_POWER_UP_PHY with port number
[22:27:38] [PASSED] DP_POWER_DOWN_PHY with port number
[22:27:38] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[22:27:38] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[22:27:38] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[22:27:38] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[22:27:38] [PASSED] DP_QUERY_PAYLOAD with port number
[22:27:38] [PASSED] DP_QUERY_PAYLOAD with VCPI
[22:27:38] [PASSED] DP_REMOTE_DPCD_READ with port number
[22:27:38] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[22:27:38] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[22:27:38] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[22:27:38] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[22:27:38] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[22:27:38] [PASSED] DP_REMOTE_I2C_READ with port number
[22:27:38] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[22:27:38] [PASSED] DP_REMOTE_I2C_READ with transactions array
[22:27:38] [PASSED] DP_REMOTE_I2C_WRITE with port number
[22:27:38] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[22:27:38] [PASSED] DP_REMOTE_I2C_WRITE with data array
[22:27:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[22:27:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[22:27:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[22:27:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[22:27:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[22:27:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[22:27:38] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[22:27:38] ================ [PASSED] drm_dp_mst_helper ================
[22:27:38] ================== drm_exec (7 subtests) ===================
[22:27:38] [PASSED] sanitycheck
[22:27:38] [PASSED] test_lock
[22:27:38] [PASSED] test_lock_unlock
[22:27:38] [PASSED] test_duplicates
[22:27:38] [PASSED] test_prepare
[22:27:38] [PASSED] test_prepare_array
[22:27:38] [PASSED] test_multiple_loops
[22:27:38] ==================== [PASSED] drm_exec =====================
[22:27:38] =========== drm_format_helper_test (17 subtests) ===========
[22:27:38] ============== drm_test_fb_xrgb8888_to_gray8 ==============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[22:27:38] ============= drm_test_fb_xrgb8888_to_rgb332 ==============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[22:27:38] ============= drm_test_fb_xrgb8888_to_rgb565 ==============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[22:27:38] ============ drm_test_fb_xrgb8888_to_xrgb1555 =============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[22:27:38] ============ drm_test_fb_xrgb8888_to_argb1555 =============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[22:27:38] ============ drm_test_fb_xrgb8888_to_rgba5551 =============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[22:27:38] ============= drm_test_fb_xrgb8888_to_rgb888 ==============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[22:27:38] ============ drm_test_fb_xrgb8888_to_argb8888 =============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[22:27:38] =========== drm_test_fb_xrgb8888_to_xrgb2101010 ===========
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[22:27:38] =========== drm_test_fb_xrgb8888_to_argb2101010 ===========
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[22:27:38] ============== drm_test_fb_xrgb8888_to_mono ===============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[22:27:38] ==================== drm_test_fb_swab =====================
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ================ [PASSED] drm_test_fb_swab =================
[22:27:38] ============ drm_test_fb_xrgb8888_to_xbgr8888 =============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[22:27:38] ============ drm_test_fb_xrgb8888_to_abgr8888 =============
[22:27:38] [PASSED] single_pixel_source_buffer
[22:27:38] [PASSED] single_pixel_clip_rectangle
[22:27:38] [PASSED] well_known_colors
[22:27:38] [PASSED] destination_pitch
[22:27:38] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[22:27:38] ================= drm_test_fb_clip_offset =================
[22:27:38] [PASSED] pass through
[22:27:38] [PASSED] horizontal offset
[22:27:38] [PASSED] vertical offset
[22:27:38] [PASSED] horizontal and vertical offset
[22:27:38] [PASSED] horizontal offset (custom pitch)
[22:27:38] [PASSED] vertical offset (custom pitch)
[22:27:38] [PASSED] horizontal and vertical offset (custom pitch)
[22:27:38] ============= [PASSED] drm_test_fb_clip_offset =============
[22:27:38] ============== drm_test_fb_build_fourcc_list ==============
[22:27:38] [PASSED] no native formats
[22:27:38] [PASSED] XRGB8888 as native format
[22:27:38] [PASSED] remove duplicates
[22:27:38] [PASSED] convert alpha formats
[22:27:38] [PASSED] random formats
[22:27:38] ========== [PASSED] drm_test_fb_build_fourcc_list ==========
[22:27:38] =================== drm_test_fb_memcpy ====================
[22:27:38] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[22:27:38] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[22:27:38] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[22:27:38] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[22:27:38] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[22:27:38] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[22:27:38] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[22:27:38] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[22:27:38] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[22:27:38] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[22:27:38] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[22:27:38] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[22:27:38] =============== [PASSED] drm_test_fb_memcpy ================
[22:27:38] ============= [PASSED] drm_format_helper_test ==============
[22:27:38] ================= drm_format (18 subtests) =================
[22:27:38] [PASSED] drm_test_format_block_width_invalid
[22:27:38] [PASSED] drm_test_format_block_width_one_plane
[22:27:38] [PASSED] drm_test_format_block_width_two_plane
[22:27:38] [PASSED] drm_test_format_block_width_three_plane
[22:27:38] [PASSED] drm_test_format_block_width_tiled
[22:27:38] [PASSED] drm_test_format_block_height_invalid
[22:27:38] [PASSED] drm_test_format_block_height_one_plane
[22:27:38] [PASSED] drm_test_format_block_height_two_plane
[22:27:38] [PASSED] drm_test_format_block_height_three_plane
[22:27:38] [PASSED] drm_test_format_block_height_tiled
[22:27:38] [PASSED] drm_test_format_min_pitch_invalid
[22:27:38] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[22:27:38] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[22:27:38] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[22:27:38] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[22:27:38] [PASSED] drm_test_format_min_pitch_two_plane
[22:27:38] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[22:27:38] [PASSED] drm_test_format_min_pitch_tiled
[22:27:38] =================== [PASSED] drm_format ====================
[22:27:38] ============== drm_framebuffer (10 subtests) ===============
[22:27:38] ========== drm_test_framebuffer_check_src_coords ==========
[22:27:38] [PASSED] Success: source fits into fb
[22:27:38] [PASSED] Fail: overflowing fb with x-axis coordinate
[22:27:38] [PASSED] Fail: overflowing fb with y-axis coordinate
[22:27:38] [PASSED] Fail: overflowing fb with source width
[22:27:38] [PASSED] Fail: overflowing fb with source height
[22:27:38] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[22:27:38] [PASSED] drm_test_framebuffer_cleanup
[22:27:38] =============== drm_test_framebuffer_create ===============
[22:27:38] [PASSED] ABGR8888 normal sizes
[22:27:38] [PASSED] ABGR8888 max sizes
[22:27:38] [PASSED] ABGR8888 pitch greater than min required
[22:27:38] [PASSED] ABGR8888 pitch less than min required
[22:27:38] [PASSED] ABGR8888 Invalid width
[22:27:38] [PASSED] ABGR8888 Invalid buffer handle
[22:27:38] [PASSED] No pixel format
[22:27:38] [PASSED] ABGR8888 Width 0
[22:27:38] [PASSED] ABGR8888 Height 0
[22:27:38] [PASSED] ABGR8888 Out of bound height * pitch combination
[22:27:38] [PASSED] ABGR8888 Large buffer offset
[22:27:38] [PASSED] ABGR8888 Buffer offset for inexistent plane
[22:27:38] [PASSED] ABGR8888 Invalid flag
[22:27:38] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[22:27:38] [PASSED] ABGR8888 Valid buffer modifier
[22:27:38] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[22:27:38] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[22:27:38] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[22:27:38] [PASSED] NV12 Normal sizes
[22:27:38] [PASSED] NV12 Max sizes
[22:27:38] [PASSED] NV12 Invalid pitch
[22:27:38] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[22:27:38] [PASSED] NV12 different modifier per-plane
[22:27:38] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[22:27:38] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[22:27:38] [PASSED] NV12 Modifier for inexistent plane
[22:27:38] [PASSED] NV12 Handle for inexistent plane
[22:27:38] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[22:27:38] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[22:27:38] [PASSED] YVU420 Normal sizes
[22:27:38] [PASSED] YVU420 Max sizes
[22:27:38] [PASSED] YVU420 Invalid pitch
[22:27:38] [PASSED] YVU420 Different pitches
[22:27:38] [PASSED] YVU420 Different buffer offsets/pitches
[22:27:38] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[22:27:38] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[22:27:38] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[22:27:38] [PASSED] YVU420 Valid modifier
[22:27:38] [PASSED] YVU420 Different modifiers per plane
[22:27:38] [PASSED] YVU420 Modifier for inexistent plane
[22:27:38] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[22:27:38] [PASSED] X0L2 Normal sizes
[22:27:38] [PASSED] X0L2 Max sizes
[22:27:38] [PASSED] X0L2 Invalid pitch
[22:27:38] [PASSED] X0L2 Pitch greater than minimum required
[22:27:38] [PASSED] X0L2 Handle for inexistent plane
[22:27:38] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[22:27:38] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[22:27:38] [PASSED] X0L2 Valid modifier
[22:27:38] [PASSED] X0L2 Modifier for inexistent plane
[22:27:38] =========== [PASSED] drm_test_framebuffer_create ===========
[22:27:38] [PASSED] drm_test_framebuffer_free
[22:27:38] [PASSED] drm_test_framebuffer_init
[22:27:38] [PASSED] drm_test_framebuffer_init_bad_format
[22:27:38] [PASSED] drm_test_framebuffer_init_dev_mismatch
[22:27:38] [PASSED] drm_test_framebuffer_lookup
[22:27:38] [PASSED] drm_test_framebuffer_lookup_inexistent
[22:27:38] [PASSED] drm_test_framebuffer_modifiers_not_supported
[22:27:38] ================= [PASSED] drm_framebuffer =================
[22:27:38] ================ drm_gem_shmem (8 subtests) ================
[22:27:38] [PASSED] drm_gem_shmem_test_obj_create
[22:27:38] [PASSED] drm_gem_shmem_test_obj_create_private
[22:27:38] [PASSED] drm_gem_shmem_test_pin_pages
[22:27:38] [PASSED] drm_gem_shmem_test_vmap
[22:27:38] [PASSED] drm_gem_shmem_test_get_pages_sgt
[22:27:38] [PASSED] drm_gem_shmem_test_get_sg_table
[22:27:38] [PASSED] drm_gem_shmem_test_madvise
[22:27:38] [PASSED] drm_gem_shmem_test_purge
[22:27:38] ================== [PASSED] drm_gem_shmem ==================
[22:27:38] === drm_atomic_helper_connector_hdmi_check (22 subtests) ===
[22:27:38] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[22:27:38] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[22:27:38] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[22:27:38] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[22:27:38] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[22:27:38] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[22:27:38] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[22:27:38] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[22:27:38] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[22:27:38] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback
[22:27:38] [PASSED] drm_test_check_max_tmds_rate_format_fallback
[22:27:38] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[22:27:38] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[22:27:38] [PASSED] drm_test_check_output_bpc_dvi
[22:27:38] [PASSED] drm_test_check_output_bpc_format_vic_1
[22:27:38] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[22:27:38] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[22:27:38] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[22:27:38] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[22:27:38] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[22:27:38] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[22:27:38] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[22:27:38] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[22:27:38] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[22:27:38] [PASSED] drm_test_check_broadcast_rgb_value
[22:27:38] [PASSED] drm_test_check_bpc_8_value
[22:27:38] [PASSED] drm_test_check_bpc_10_value
[22:27:38] [PASSED] drm_test_check_bpc_12_value
[22:27:38] [PASSED] drm_test_check_format_value
[22:27:38] [PASSED] drm_test_check_tmds_char_value
[22:27:38] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[22:27:38] ================= drm_managed (2 subtests) =================
[22:27:38] [PASSED] drm_test_managed_release_action
[22:27:38] [PASSED] drm_test_managed_run_action
[22:27:38] =================== [PASSED] drm_managed ===================
[22:27:38] =================== drm_mm (6 subtests) ====================
[22:27:38] [PASSED] drm_test_mm_init
[22:27:38] [PASSED] drm_test_mm_debug
[22:27:38] [PASSED] drm_test_mm_align32
[22:27:38] [PASSED] drm_test_mm_align64
[22:27:38] [PASSED] drm_test_mm_lowest
[22:27:38] [PASSED] drm_test_mm_highest
[22:27:38] ===================== [PASSED] drm_mm ======================
[22:27:38] ============= drm_modes_analog_tv (5 subtests) =============
stty: 'standard input': Inappropriate ioctl for device
[22:27:38] [PASSED] drm_test_modes_analog_tv_mono_576i
[22:27:38] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[22:27:38] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[22:27:38] [PASSED] drm_test_modes_analog_tv_pal_576i
[22:27:38] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[22:27:38] =============== [PASSED] drm_modes_analog_tv ===============
[22:27:38] ============== drm_plane_helper (2 subtests) ===============
[22:27:38] =============== drm_test_check_plane_state ================
[22:27:38] [PASSED] clipping_simple
[22:27:38] [PASSED] clipping_rotate_reflect
[22:27:38] [PASSED] positioning_simple
[22:27:38] [PASSED] upscaling
[22:27:38] [PASSED] downscaling
[22:27:38] [PASSED] rounding1
[22:27:38] [PASSED] rounding2
[22:27:38] [PASSED] rounding3
[22:27:38] [PASSED] rounding4
[22:27:38] =========== [PASSED] drm_test_check_plane_state ============
[22:27:38] =========== drm_test_check_invalid_plane_state ============
[22:27:38] [PASSED] positioning_invalid
[22:27:38] [PASSED] upscaling_invalid
[22:27:38] [PASSED] downscaling_invalid
[22:27:38] ======= [PASSED] drm_test_check_invalid_plane_state ========
[22:27:38] ================ [PASSED] drm_plane_helper =================
[22:27:38] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[22:27:38] ====== drm_test_connector_helper_tv_get_modes_check =======
[22:27:38] [PASSED] None
[22:27:38] [PASSED] PAL
[22:27:38] [PASSED] NTSC
[22:27:38] [PASSED] Both, NTSC Default
[22:27:38] [PASSED] Both, PAL Default
[22:27:38] [PASSED] Both, NTSC Default, with PAL on command-line
[22:27:38] [PASSED] Both, PAL Default, with NTSC on command-line
[22:27:38] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[22:27:38] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[22:27:38] ================== drm_rect (9 subtests) ===================
[22:27:38] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[22:27:38] [PASSED] drm_test_rect_clip_scaled_not_clipped
[22:27:38] [PASSED] drm_test_rect_clip_scaled_clipped
[22:27:38] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[22:27:38] ================= drm_test_rect_intersect =================
[22:27:38] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[22:27:38] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[22:27:38] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[22:27:38] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[22:27:38] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[22:27:38] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[22:27:38] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[22:27:38] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[22:27:38] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[22:27:38] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[22:27:38] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[22:27:38] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[22:27:38] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[22:27:38] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[22:27:38] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[22:27:38] ============= [PASSED] drm_test_rect_intersect =============
[22:27:38] ================ drm_test_rect_calc_hscale ================
[22:27:38] [PASSED] normal use
[22:27:38] [PASSED] out of max range
[22:27:38] [PASSED] out of min range
[22:27:38] [PASSED] zero dst
[22:27:38] [PASSED] negative src
[22:27:38] [PASSED] negative dst
[22:27:38] ============ [PASSED] drm_test_rect_calc_hscale ============
[22:27:38] ================ drm_test_rect_calc_vscale ================
[22:27:38] [PASSED] normal use
[22:27:38] [PASSED] out of max range
[22:27:38] [PASSED] out of min range
[22:27:38] [PASSED] zero dst
[22:27:38] [PASSED] negative src
[22:27:38] [PASSED] negative dst
[22:27:38] ============ [PASSED] drm_test_rect_calc_vscale ============
[22:27:38] ================== drm_test_rect_rotate ===================
[22:27:38] [PASSED] reflect-x
[22:27:38] [PASSED] reflect-y
[22:27:38] [PASSED] rotate-0
[22:27:38] [PASSED] rotate-90
[22:27:38] [PASSED] rotate-180
[22:27:38] [PASSED] rotate-270
[22:27:38] ============== [PASSED] drm_test_rect_rotate ===============
[22:27:38] ================ drm_test_rect_rotate_inv =================
[22:27:38] [PASSED] reflect-x
[22:27:38] [PASSED] reflect-y
[22:27:38] [PASSED] rotate-0
[22:27:38] [PASSED] rotate-90
[22:27:38] [PASSED] rotate-180
[22:27:38] [PASSED] rotate-270
[22:27:38] ============ [PASSED] drm_test_rect_rotate_inv =============
[22:27:38] ==================== [PASSED] drm_rect =====================
[22:27:38] ============================================================
[22:27:38] Testing complete. Ran 531 tests: passed: 531
[22:27:38] Elapsed time: 23.206s total, 1.362s configuring, 21.674s building, 0.168s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig
[22:27:38] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[22:27:40] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
[22:27:47] Starting KUnit Kernel (1/1)...
[22:27:47] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[22:27:47] ================= ttm_device (5 subtests) ==================
[22:27:47] [PASSED] ttm_device_init_basic
[22:27:47] [PASSED] ttm_device_init_multiple
[22:27:47] [PASSED] ttm_device_fini_basic
[22:27:47] [PASSED] ttm_device_init_no_vma_man
[22:27:47] ================== ttm_device_init_pools ==================
[22:27:47] [PASSED] No DMA allocations, no DMA32 required
[22:27:47] [PASSED] DMA allocations, DMA32 required
[22:27:47] [PASSED] No DMA allocations, DMA32 required
[22:27:47] [PASSED] DMA allocations, no DMA32 required
[22:27:47] ============== [PASSED] ttm_device_init_pools ==============
[22:27:47] =================== [PASSED] ttm_device ====================
[22:27:47] ================== ttm_pool (8 subtests) ===================
[22:27:47] ================== ttm_pool_alloc_basic ===================
[22:27:47] [PASSED] One page
[22:27:47] [PASSED] More than one page
[22:27:47] [PASSED] Above the allocation limit
[22:27:47] [PASSED] One page, with coherent DMA mappings enabled
[22:27:47] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[22:27:47] ============== [PASSED] ttm_pool_alloc_basic ===============
[22:27:47] ============== ttm_pool_alloc_basic_dma_addr ==============
[22:27:47] [PASSED] One page
[22:27:47] [PASSED] More than one page
[22:27:47] [PASSED] Above the allocation limit
[22:27:47] [PASSED] One page, with coherent DMA mappings enabled
[22:27:47] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[22:27:47] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[22:27:47] [PASSED] ttm_pool_alloc_order_caching_match
[22:27:47] [PASSED] ttm_pool_alloc_caching_mismatch
[22:27:47] [PASSED] ttm_pool_alloc_order_mismatch
[22:27:47] [PASSED] ttm_pool_free_dma_alloc
[22:27:47] [PASSED] ttm_pool_free_no_dma_alloc
[22:27:47] [PASSED] ttm_pool_fini_basic
[22:27:47] ==================== [PASSED] ttm_pool =====================
[22:27:47] ================ ttm_resource (8 subtests) =================
[22:27:47] ================= ttm_resource_init_basic =================
[22:27:47] [PASSED] Init resource in TTM_PL_SYSTEM
[22:27:47] [PASSED] Init resource in TTM_PL_VRAM
[22:27:47] [PASSED] Init resource in a private placement
[22:27:47] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[22:27:47] ============= [PASSED] ttm_resource_init_basic =============
[22:27:47] [PASSED] ttm_resource_init_pinned
[22:27:47] [PASSED] ttm_resource_fini_basic
[22:27:47] [PASSED] ttm_resource_manager_init_basic
[22:27:47] [PASSED] ttm_resource_manager_usage_basic
[22:27:47] [PASSED] ttm_resource_manager_set_used_basic
[22:27:47] [PASSED] ttm_sys_man_alloc_basic
[22:27:47] [PASSED] ttm_sys_man_free_basic
[22:27:47] ================== [PASSED] ttm_resource ===================
[22:27:47] =================== ttm_tt (15 subtests) ===================
[22:27:47] ==================== ttm_tt_init_basic ====================
[22:27:47] [PASSED] Page-aligned size
[22:27:47] [PASSED] Extra pages requested
[22:27:47] ================ [PASSED] ttm_tt_init_basic ================
[22:27:47] [PASSED] ttm_tt_init_misaligned
[22:27:47] [PASSED] ttm_tt_fini_basic
[22:27:47] [PASSED] ttm_tt_fini_sg
[22:27:47] [PASSED] ttm_tt_fini_shmem
[22:27:47] [PASSED] ttm_tt_create_basic
[22:27:47] [PASSED] ttm_tt_create_invalid_bo_type
[22:27:47] [PASSED] ttm_tt_create_ttm_exists
[22:27:47] [PASSED] ttm_tt_create_failed
[22:27:47] [PASSED] ttm_tt_destroy_basic
[22:27:47] [PASSED] ttm_tt_populate_null_ttm
[22:27:47] [PASSED] ttm_tt_populate_populated_ttm
[22:27:47] [PASSED] ttm_tt_unpopulate_basic
[22:27:47] [PASSED] ttm_tt_unpopulate_empty_ttm
[22:27:47] [PASSED] ttm_tt_swapin_basic
[22:27:47] ===================== [PASSED] ttm_tt ======================
[22:27:47] =================== ttm_bo (14 subtests) ===================
[22:27:47] =========== ttm_bo_reserve_optimistic_no_ticket ===========
[22:27:47] [PASSED] Cannot be interrupted and sleeps
[22:27:47] [PASSED] Cannot be interrupted, locks straight away
[22:27:47] [PASSED] Can be interrupted, sleeps
[22:27:47] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[22:27:47] [PASSED] ttm_bo_reserve_locked_no_sleep
[22:27:47] [PASSED] ttm_bo_reserve_no_wait_ticket
[22:27:47] [PASSED] ttm_bo_reserve_double_resv
[22:27:47] [PASSED] ttm_bo_reserve_interrupted
[22:27:47] [PASSED] ttm_bo_reserve_deadlock
[22:27:47] [PASSED] ttm_bo_unreserve_basic
[22:27:47] [PASSED] ttm_bo_unreserve_pinned
[22:27:47] [PASSED] ttm_bo_unreserve_bulk
[22:27:47] [PASSED] ttm_bo_put_basic
[22:27:47] [PASSED] ttm_bo_put_shared_resv
[22:27:47] [PASSED] ttm_bo_pin_basic
[22:27:47] [PASSED] ttm_bo_pin_unpin_resource
[22:27:47] [PASSED] ttm_bo_multiple_pin_one_unpin
[22:27:47] ===================== [PASSED] ttm_bo ======================
[22:27:47] ============== ttm_bo_validate (22 subtests) ===============
[22:27:47] ============== ttm_bo_init_reserved_sys_man ===============
[22:27:47] [PASSED] Buffer object for userspace
[22:27:47] [PASSED] Kernel buffer object
[22:27:47] [PASSED] Shared buffer object
[22:27:47] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[22:27:47] ============== ttm_bo_init_reserved_mock_man ==============
[22:27:47] [PASSED] Buffer object for userspace
[22:27:47] [PASSED] Kernel buffer object
[22:27:47] [PASSED] Shared buffer object
[22:27:47] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[22:27:47] [PASSED] ttm_bo_init_reserved_resv
[22:27:47] ================== ttm_bo_validate_basic ==================
[22:27:47] [PASSED] Buffer object for userspace
[22:27:47] [PASSED] Kernel buffer object
[22:27:47] [PASSED] Shared buffer object
[22:27:47] ============== [PASSED] ttm_bo_validate_basic ==============
[22:27:47] [PASSED] ttm_bo_validate_invalid_placement
[22:27:47] ============= ttm_bo_validate_same_placement ==============
[22:27:47] [PASSED] System manager
[22:27:47] [PASSED] VRAM manager
[22:27:47] ========= [PASSED] ttm_bo_validate_same_placement ==========
[22:27:47] [PASSED] ttm_bo_validate_failed_alloc
[22:27:47] [PASSED] ttm_bo_validate_pinned
[22:27:47] [PASSED] ttm_bo_validate_busy_placement
[22:27:47] ================ ttm_bo_validate_multihop =================
[22:27:47] [PASSED] Buffer object for userspace
[22:27:47] [PASSED] Kernel buffer object
[22:27:47] [PASSED] Shared buffer object
[22:27:47] ============ [PASSED] ttm_bo_validate_multihop =============
[22:27:47] ========== ttm_bo_validate_no_placement_signaled ==========
[22:27:47] [PASSED] Buffer object in system domain, no page vector
[22:27:47] [PASSED] Buffer object in system domain with an existing page vector
[22:27:47] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[22:27:47] ======== ttm_bo_validate_no_placement_not_signaled ========
[22:27:47] [PASSED] Buffer object for userspace
[22:27:47] [PASSED] Kernel buffer object
[22:27:47] [PASSED] Shared buffer object
[22:27:47] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[22:27:47] [PASSED] ttm_bo_validate_move_fence_signaled
[22:27:47] ========= ttm_bo_validate_move_fence_not_signaled =========
[22:27:47] [PASSED] Waits for GPU
[22:27:47] [PASSED] Tries to lock straight away
[22:27:48] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[22:27:48] [PASSED] ttm_bo_validate_swapout
[22:27:48] [PASSED] ttm_bo_validate_happy_evict
[22:27:48] [PASSED] ttm_bo_validate_all_pinned_evict
[22:27:48] [PASSED] ttm_bo_validate_allowed_only_evict
[22:27:48] [PASSED] ttm_bo_validate_deleted_evict
[22:27:48] [PASSED] ttm_bo_validate_busy_domain_evict
[22:27:48] [PASSED] ttm_bo_validate_evict_gutting
[22:27:48] [PASSED] ttm_bo_validate_recrusive_evict
stty: 'standard input': Inappropriate ioctl for device
[22:27:48] ================= [PASSED] ttm_bo_validate =================
[22:27:48] ============================================================
[22:27:48] Testing complete. Ran 102 tests: passed: 102
[22:27:48] Elapsed time: 9.203s total, 1.403s configuring, 7.082s building, 0.610s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 9+ messages in thread* ✗ CI.Build: failure for drm/xe/vf: Post-migration recovery worker basis (rev3)
2024-09-26 22:20 [PATCH v3 0/4] drm/xe/vf: Post-migration recovery worker basis Tomasz Lis
` (6 preceding siblings ...)
2024-09-26 22:27 ` ✓ CI.KUnit: success " Patchwork
@ 2024-09-26 22:32 ` Patchwork
7 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2024-09-26 22:32 UTC (permalink / raw)
To: Tomasz Lis; +Cc: intel-xe
== Series Details ==
Series: drm/xe/vf: Post-migration recovery worker basis (rev3)
URL : https://patchwork.freedesktop.org/series/138935/
State : failure
== Summary ==
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_dc_resource_mgmt.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_mall_phantom.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml_display_rq_dlg_calc.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_top/dml_top.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_top/dml_top_mcache.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_top/dml2_top_optimization.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/inc/dml2_debug.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_factory.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_dpmm/dml2_dpmm_factory.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_mcg/dml2_mcg_dcn4.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_mcg/dml2_mcg_factory.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_factory.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_standalone_libraries/lib_float_math.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/dml21_translation_helper.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/dml21_wrapper.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/dml21_utils.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_timing_generator.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_compressor.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_timing_generator.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_compressor.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_opp_regamma_v.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_opp_csc_v.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_timing_generator_v.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_mem_input_v.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_opp_v.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_transform_v.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_timing_generator.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_timing_generator.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_hw_sequencer.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/hdcp/hdcp_msg.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/spl/dc_spl.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/spl/dc_spl_scl_filters.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/spl/dc_spl_scl_easf_filters.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/spl/dc_spl_isharp_filters.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/spl/dc_spl_filters.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/spl/spl_fixpt31_32.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/spl/spl_custom_float.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stat.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_hw_sequencer.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_sink.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_surface.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_enc_cfg.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_exports.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_state.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_vm_helper.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dc_edid_parser.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dc_spl_translate.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_table.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/info_packet/info_packet.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv_stat.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn20.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn21.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn30.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn301.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn302.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn303.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn31.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn314.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn315.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn316.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn32.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn35.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn351.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn401.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp_ddc.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp_log.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp_psp.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp1_execution.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp1_transition.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_execution.o
CC [M] drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_transition.o
LD [M] drivers/gpu/drm/amd/amdgpu/amdgpu.o
make[5]: *** [../scripts/Makefile.build:485: drivers/gpu/drm] Error 2
make[4]: *** [../scripts/Makefile.build:485: drivers/gpu] Error 2
make[3]: *** [../scripts/Makefile.build:485: drivers] Error 2
make[2]: *** [/kernel/Makefile:1926: .] Error 2
make[1]: Leaving directory '/kernel/build64-default'
make[1]: *** [/kernel/Makefile:224: __sub-make] Error 2
make: *** [Makefile:224: __sub-make] Error 2
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 9+ messages in thread