Skip to contentSkip to conversation

new engine discovery interface

PATCH In review Andi Shyti 4 participants 33 messages May 13, 2019 – May 23, 2019

Subsystems (2)
lore
Share & tools
lore

Andi Shyti

author
#0 lore raw

v24 cover new engine discovery interface

Hi,

In this patchset I propose an alternative way of engine discovery thanks to the new interfaces developed by Tvrtko and Chris[4].

Thanks Tvrtko, Chris, Antonio and Petri for your comments in the previous RFCs.

Andi

v22 --> v24
===========
fixet the reviews from Tvrtko and Chris (thank you, guys):

- perf_pmu: restored the 'const' and context creation in cpu-hotplug, frequency and interrupts* subtests.
- gem_exec_parallel: used __for_each_physical_engine also in all() that I forgot in the previous version.
- added Tvrtko's reviewed-by (thanks a lot Tvrtko!)
- few other changes with little relevance.

v22 --> v23
===========
updated the following tests to the new APIs:

gem_busy
gem_cs_tlb
gem_ctx_exec
gem_exec_basic
gem_exec_parallel
gem_exec_store
gem_wait
i915_hangman

v21 --> v22
===========
- just removed context creation and deletion from engine_topology and fixed perf_pmu accordingly.

v20 --> v21
===========
- removed Tvrtko's debug messages
- few fixes from Chris last review

v19 --> v20
===========
- added some debugs from Tvrtko to get more info about gem_wait failure.
- few fixes in gem_engine_topology.c from Tvrtko's comments, including a bigger fix about an uncontrolled variable increment in the _next function

v18 --> v19
===========
- integrated Tvrtko's fixup patch [17]. From this patch some changes have been moved to gem_engine_topology as a new helper for getting the engine's properties.

v17 --> v18
===========
- three patches have been applied (the ones that add gem_context_has_engine() function)
- few cosmetic fixes
- and some changes coming from Tvrtko's review on v17

v16 --> v17
===========
amongst many little things, three main changes:
- improved perf_pmu adaptation to gem_engine_topology
- removed the exec-ctx test, perf_pmu will be the flag test
- when creating the engine list, now the for_each_engine_physical can be executed safely during subtest listing

v15 --> v16
===========
- few changes to the gem_engine_topology stuff
- added une more dummy test which loops through the physical engines, as well.
- changes to test/perf_pmu required some more changes than expected (the 3 last patches)

v14 --> v15
===========
PATCH v14: [16]

- virtual engines will be called "virtual" like unrecognised engines will be called "unknown"

- renamed the for_each loops to more meaningful names (__for_each_static_engine and for_each_context_engine) and moved into gem_engine_topology.h

- minor changes about data types.

v13 --> v14
===========
PATCH v13: [15]
minor changes this time:
- squashed patch 2 and 3 (from v13) with a little rename and added Chris r-b

- fixed some index issues and string assignement leaks

- squashed patches 5, 6, 7 and 8 from v13

v12 --> v13
===========
PATCH v12: [14]
This patch is also very different from the previous other than some reorganization of the code these are the main changes:

- the previous version lacked the case when the context had its engines mapped. checks in the following order

if the driver doesn't have the new API
-> get the engines from the static list
if the driver has the API but the context has nothing mapped
-> get the engines from "query" and map them
if the driver has the API and the context has engines mapped
-> get the engines from the context

- the helper functions have been removed as they were of no use.

v11 --> v12
===========
PATCH v11: [13]
This 12th version starts from a completely different thought. Here's the main differences:

- The list of engines is provided in an engine_data structure which contains an index (useful for looping through and for engine/context index mapping) instead of an array of engines.

- The list of engines is generated every time the init function is called and nothing is allocated in heap memory.

- The ioctl check is done already during the initialization part and if the new ioctls are not implemented, then the init function still stores only those present in the GPU.

- The for_each loop is implemented by re-using the previous 'for_each_engine_class_instance()' implemented by Tvrtko.

- The gem_topology library offers few helper functions for checking the engine presence, checking the implementation of the ioctls and executing the buffer, in order to be completely unaware of the driver implementation.

Thanks Tvrtko for all your inputs.

v10 --> v11
===========
RFC v10: [12]
few cosmetic changes in v11 and minor architectural details. Thanks Tvrtko.

- the 'query_engines()' functions are static as no one is using them yet.

- removed the 'gem_has_engine_topology()' function because it's very little used, 'get_active_engines()' can be used instead.

- a minor ring -> engine renaming coming from Chris.

v9 --> v10
==========
RFC v9: [11]
also this time quite many changes, thanks Chris for the reviews, here the most relevant of them.

- gem_query.[ch] have been renamed to gem_engine_topology.[ch] and all the functions ended up there as they are referring to the topology of the engines.

- the functions 'get_active_engines()', 'gem_set_context_get_engines()' and 'igt_require_gem_engine_list()' will be the main interface to the gem_engine_topology library, refer to patch 2 for details.

- the define 'for_each_engine2()' doesn't expose anymore the iterator.

- 'gem_context_has_engine()' has been moved from ioctl_wrappers.c to gem_context.c.

- the gem_exec_basic exec-ctx subtest does not abort if the new getparam/setparam and query apis are not implemented as it can work with both (as it was done at the beginning).

v8 --> v9
=========
RFC v8: [10]
quite many changes, please refer to the review in [10]. Thanks Chris for the review. These are the most relevant:

- all the allocation in gem_query have been made in stack, not anymore allocated dynamically.

- removed get/set_context as it was already implemented and I didn't know.

- renamed some functions and variables to hopefully more meaningful names.

V7 --> v8
=========
RFC v7: [9]

- all functions have been moved from lib/igt_gt.{c,h} and lib/ioctl_wrappers.{c,h} to lib/i916/gem_query.{c,h}. (thanks Chris)

- 'for_each_engine_ctx' has been renamed to 'for_each_engine2' to be consistent with the '2' that indicates the new 'struct intel_execution_engine2' data structure.

V6 --> V7
=========
RFC v6: [8]

- a new patch has been added (patch 3) which adds a new requirement check through the igt_require_gem_engine_list() function. (thanks Chris) This function will initialize the engine list instead of the instead of igt_require_gem() as it was in v6

- all the ioctls have been wrapped (thanks Chris and Antonio) and new library functions have been added and assert the ioctls

- gem_init_engine_list() function returns the errno from the GETPARAM ioctl in order to be used as a requirement. (thanks Chris)

- fixed few requires/asserts

- The engine list "intel_active_engines2" is allocated of the number of engines instead of a political 64 (thanks Antonio).

- some parameter renaming in gem_has_ring_by_idx(). (thanks Chris).

- the original "intel_execution_engines2" has not been renamed, because it is used to create subtests before even executing any test/ioctl. By renaming it, some subtest generations failed. (thanks Petri)

V5 --> V6
=========
RFC v5: [7]
- Chris implemented the getparam ioctl which allows to the test to figure otu whether the new interface has been implemented. This way the for_each_engine_ctx() is able to work with new and old kernel uapi (thanks Chris)

V4 --> V5
=========
RFC v4: [6]

- the engine list is now built in 'igt_require_gem()' instead of '__open_driver()' so that we keep this discovery method specific to the i915 driver (thanks Chris).

- All the query/setparam structures dynamic allocation based on the number of engines, now are politically allocated 64 times, to avoid extra ioctl calls that retrieve the engine number (thanks Chris)

- use igt_ioctl instead of ioctl (thanks Chris)

- allocate intel_execution_engines2 dynamically instead of statically (thanks Tvrtko)

- simplify the test in 'gem_exec_basic()' so that simply checks the presence of the engine instead of executing a buffer (thank Chris)

- a new patch has been added (patch 3) that extends the 'gem_has_ring()' boolean function. The new version sets the index as it's mapped in the kernel.The previous function is now a wrapper to the new function.

V3 --> V4
=========
PATCH v3: [3]

- re-architectured the discovery mechanism based on Tvrtko's sugestion and reviews.. In this version the discovery is done during the device opening and stored in a NULL terminated array, which replaces the existing intel_execution_engines2 that is mainly used as a reference.

V2 --> V3
=========
RFC v2: [2]

- removed a standalone gem_query_engines_demo test and added the exec-ctx subtest inside gem_exec_basic (thanks Tvrtko).

- fixed most of Tvrtko's comments in [5], which consist in putting the mallocs igt_assert and ictls in igt_require and few refactoring (thanks Tvrtko).

V1 --> V2
=========
RFC v1: [1]

- added a demo test that simply queries the driver about the engines and executes a buffer (thanks Tvrtko)

- refactored the for_each_engine_ctx() macro so that what in the previous version was done by the "bind" function, now it's done in the first iteration. (Thanks Crhis)

- removed the "gem_has_ring_ctx()" because it was out of the scope.

- rename functions to more meaningful names

[1] RFC v1: https://lists.freedesktop.org/archives/igt-dev/2018-November/007025.html
[2] RFC v2: https://lists.freedesktop.org/archives/igt-dev/2018-November/007079.html
[3] PATCH v3: https://lists.freedesktop.org/archives/igt-dev/2018-November/007148.html
[4] https://cgit.freedesktop.org/~tursulin/drm-intel/log/?h=media
[5] https://lists.freedesktop.org/archives/igt-dev/2018-November/007100.html
[6] https://lists.freedesktop.org/archives/igt-dev/2019-January/008029.html
[7] https://lists.freedesktop.org/archives/igt-dev/2019-January/008165.html
[8] https://lists.freedesktop.org/archives/igt-dev/2019-February/008902.html
[9] https://lists.freedesktop.org/archives/igt-dev/2019-February/009185.html
[10] https://lists.freedesktop.org/archives/igt-dev/2019-February/009205.html
[11] https://lists.freedesktop.org/archives/igt-dev/2019-February/009277.html
[12] https://lists.freedesktop.org/archives/igt-dev/2019-March/010197.html
[13] https://lists.freedesktop.org/archives/igt-dev/2019-March/010467.html
[14] https://lists.freedesktop.org/archives/igt-dev/2019-March/010776.html
[15] https://lists.freedesktop.org/archives/igt-dev/2019-March/010827.html
[16] https://lists.freedesktop.org/archives/igt-dev/2019-March/010916.html
[17] https://lists.freedesktop.org/archives/igt-dev/2019-April/011821.html

Andi Shyti (14):
include/drm-uapi: import i915_drm.h header file
lib/i915: add gem_engine_topology library and for_each loop definition
lib: igt_gt: add execution buffer flags to class helper
lib: igt_gt: make gem_engine_can_store_dword() check engine class
lib: igt_dummyload: use for_each_context_engine()
test: perf_pmu: use the gem_engine_topology library test/i915: gem_busy: use the gem_engine_topology library test/i915: gem_cs_tlb: use the gem_engine_topology library test/i915: gem_ctx_exec: use the gem_engine_topology library test/i915: gem_exec_basic: use the gem_engine_topology library test/i915: gem_exec_parallel: use the gem_engine_topology library test/i915: gem_exec_store: use the gem_engine_topology library test/i915: gem_wait: use the gem_engine_topology library test/i915: i915_hangman: use the gem_engine_topology library

 include/drm-uapi/i915_drm.h    | 209 +++++++++++++++++++++++-
 lib/Makefile.sources           |   2 +
 lib/i915/gem_engine_topology.c | 282 +++++++++++++++++++++++++++++++++
 lib/i915/gem_engine_topology.h |  79 +++++++++
 lib/igt.h                      |   1 +
 lib/igt_dummyload.c            |  29 ++--
 lib/igt_gt.c                   |  30 +++-
 lib/igt_gt.h                   |  12 +-
 lib/meson.build                |   1 +
 tests/i915/gem_busy.c          | 128 ++++++---------
 tests/i915/gem_cs_tlb.c        |   8 +-
 tests/i915/gem_ctx_exec.c      |  16 +-
 tests/i915/gem_exec_basic.c    |  28 ++--
 tests/i915/gem_exec_parallel.c |  26 +--
 tests/i915/gem_exec_store.c    |  36 ++---
 tests/i915/gem_wait.c          |  24 +--
 tests/i915/i915_hangman.c      |  15 +-
 tests/perf_pmu.c               | 102 ++++++------
 18 files changed, 800 insertions(+), 228 deletions(-)
 create mode 100644 lib/i915/gem_engine_topology.c
 create mode 100644 lib/i915/gem_engine_topology.h
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#1 lore raw

PATCH v24 1/14 include/drm-uapi: import i915_drm.h header file

This header file is imported in order to include the two new ioctls DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM, DRM_IOCTL_I915_GEM_CONTEXT_GETPARAM and DRM_IOCTL_I915_QUERY.

---
 include/drm-uapi/i915_drm.h | 209 +++++++++++++++++++++++++++++++++++-
 1 file changed, 206 insertions(+), 3 deletions(-)
include/drm-uapi/i915_drm.h +206 -3
index e01b3e1fd6d6..761517f15368 100644
@@ -136,6 +136,8 @@ enum drm_i915_gem_engine_class {
 struct i915_engine_class_instance {
 	__u16 engine_class; /* see enum drm_i915_gem_engine_class */
 	__u16 engine_instance;
+#define I915_ENGINE_CLASS_INVALID_NONE -1
+#define I915_ENGINE_CLASS_INVALID_VIRTUAL -2
 };
 
 /**
@@ -355,6 +357,8 @@ typedef struct _drm_i915_sarea {
 #define DRM_I915_PERF_ADD_CONFIG	0x37
 #define DRM_I915_PERF_REMOVE_CONFIG	0x38
 #define DRM_I915_QUERY			0x39
+#define DRM_I915_GEM_VM_CREATE		0x3a
+#define DRM_I915_GEM_VM_DESTROY		0x3b
 /* Must be kept compact -- no holes */
 
 #define DRM_IOCTL_I915_INIT		DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t)
@@ -415,6 +419,8 @@ typedef struct _drm_i915_sarea {
 #define DRM_IOCTL_I915_PERF_ADD_CONFIG	DRM_IOW(DRM_COMMAND_BASE + DRM_I915_PERF_ADD_CONFIG, struct drm_i915_perf_oa_config)
 #define DRM_IOCTL_I915_PERF_REMOVE_CONFIG	DRM_IOW(DRM_COMMAND_BASE + DRM_I915_PERF_REMOVE_CONFIG, __u64)
 #define DRM_IOCTL_I915_QUERY			DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_QUERY, struct drm_i915_query)
+#define DRM_IOCTL_I915_GEM_VM_CREATE	DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_VM_CREATE, struct drm_i915_gem_vm_control)
+#define DRM_IOCTL_I915_GEM_VM_DESTROY	DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_VM_DESTROY, struct drm_i915_gem_vm_control)
 
 /* Allow drivers to submit batchbuffers directly to hardware, relying
  * on the security mechanisms provided by hardware.
@@ -598,6 +604,12 @@ typedef struct drm_i915_irq_wait {
  */
 #define I915_PARAM_MMAP_GTT_COHERENT	52
 
+/*
+ * Query whether DRM_I915_GEM_EXECBUFFER2 supports coordination of parallel
+ * execution through use of explicit fence support.
+ * See I915_EXEC_FENCE_OUT and I915_EXEC_FENCE_SUBMIT.
+ */
+#define I915_PARAM_HAS_EXEC_SUBMIT_FENCE 53
 /* Must be kept compact -- no holes and well documented */
 
 typedef struct drm_i915_getparam {
@@ -1120,7 +1132,16 @@ struct drm_i915_gem_execbuffer2 {
  */
 #define I915_EXEC_FENCE_ARRAY   (1<<19)
 
-#define __I915_EXEC_UNKNOWN_FLAGS (-(I915_EXEC_FENCE_ARRAY<<1))
+/*
+ * Setting I915_EXEC_FENCE_SUBMIT implies that lower_32_bits(rsvd2) represent
+ * a sync_file fd to wait upon (in a nonblocking manner) prior to executing
+ * the batch.
+ *
+ * Returns -EINVAL if the sync_file fd cannot be found.
+ */
+#define I915_EXEC_FENCE_SUBMIT		(1 << 20)
+
+#define __I915_EXEC_UNKNOWN_FLAGS (-(I915_EXEC_FENCE_SUBMIT << 1))
 
 #define I915_EXEC_CONTEXT_ID_MASK	(0xffffffff)
 #define i915_execbuffer2_set_context_id(eb2, context) \
@@ -1464,8 +1485,9 @@ struct drm_i915_gem_context_create_ext {
 	__u32 ctx_id; /* output: id of new context*/
 	__u32 flags;
 #define I915_CONTEXT_CREATE_FLAGS_USE_EXTENSIONS	(1u << 0)
+#define I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE	(1u << 1)
 #define I915_CONTEXT_CREATE_FLAGS_UNKNOWN \
-	(-(I915_CONTEXT_CREATE_FLAGS_USE_EXTENSIONS << 1))
+	(-(I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE << 1))
 	__u64 extensions;
 };
 
@@ -1507,6 +1529,41 @@ struct drm_i915_gem_context_param {
  * On creation, all new contexts are marked as recoverable.
  */
 #define I915_CONTEXT_PARAM_RECOVERABLE	0x8
+
+	/*
+	 * The id of the associated virtual memory address space (ppGTT) of
+	 * this context. Can be retrieved and passed to another context
+	 * (on the same fd) for both to use the same ppGTT and so share
+	 * address layouts, and avoid reloading the page tables on context
+	 * switches between themselves.
+	 *
+	 * See DRM_I915_GEM_VM_CREATE and DRM_I915_GEM_VM_DESTROY.
+	 */
+#define I915_CONTEXT_PARAM_VM		0x9
+
+/*
+ * I915_CONTEXT_PARAM_ENGINES:
+ *
+ * Bind this context to operate on this subset of available engines. Henceforth,
+ * the I915_EXEC_RING selector for DRM_IOCTL_I915_GEM_EXECBUFFER2 operates as
+ * an index into this array of engines; I915_EXEC_DEFAULT selecting engine[0]
+ * and upwards. Slots 0...N are filled in using the specified (class, instance).
+ * Use
+ *	engine_class: I915_ENGINE_CLASS_INVALID,
+ *	engine_instance: I915_ENGINE_CLASS_INVALID_NONE
+ * to specify a gap in the array that can be filled in later, e.g. by a
+ * virtual engine used for load balancing.
+ *
+ * Setting the number of engines bound to the context to 0, by passing a zero
+ * sized argument, will revert back to default settings.
+ *
+ * See struct i915_context_param_engines.
+ *
+ * Extensions:
+ *   i915_context_engines_load_balance (I915_CONTEXT_ENGINES_EXT_LOAD_BALANCE)
+ *   i915_context_engines_bond (I915_CONTEXT_ENGINES_EXT_BOND)
+ */
+#define I915_CONTEXT_PARAM_ENGINES	0xa
 /* Must be kept compact -- no holes and well documented */
 
 	__u64 value;
@@ -1540,9 +1597,10 @@ struct drm_i915_gem_context_param_sseu {
 	struct i915_engine_class_instance engine;
 
 	/*
-	 * Unused for now. Must be cleared to zero.
+	 * Unknown flags must be cleared to zero.
 	 */
 	__u32 flags;
+#define I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX (1u << 0)
 
 	/*
 	 * Mask of slices to enable for the context. Valid values are a subset
@@ -1570,12 +1628,115 @@ struct drm_i915_gem_context_param_sseu {
 	__u32 rsvd;
 };
 
+/*
+ * i915_context_engines_load_balance:
+ *
+ * Enable load balancing across this set of engines.
+ *
+ * Into the I915_EXEC_DEFAULT slot [0], a virtual engine is created that when
+ * used will proxy the execbuffer request onto one of the set of engines
+ * in such a way as to distribute the load evenly across the set.
+ *
+ * The set of engines must be compatible (e.g. the same HW class) as they
+ * will share the same logical GPU context and ring.
+ *
+ * To intermix rendering with the virtual engine and direct rendering onto
+ * the backing engines (bypassing the load balancing proxy), the context must
+ * be defined to use a single timeline for all engines.
+ */
+struct i915_context_engines_load_balance {
+	struct i915_user_extension base;
+
+	__u16 engine_index;
+	__u16 num_siblings;
+	__u32 flags; /* all undefined flags must be zero */
+
+	__u64 mbz64; /* reserved for future use; must be zero */
+
+	struct i915_engine_class_instance engines[0];
+} __attribute__((packed));
+
+#define I915_DEFINE_CONTEXT_ENGINES_LOAD_BALANCE(name__, N__) struct { \
+	struct i915_user_extension base; \
+	__u16 engine_index; \
+	__u16 num_siblings; \
+	__u32 flags; \
+	__u64 mbz64; \
+	struct i915_engine_class_instance engines[N__]; \
+} __attribute__((packed)) name__
+
+/*
+ * i915_context_engines_bond:
+ *
+ * Constructed bonded pairs for execution within a virtual engine.
+ *
+ * All engines are equal, but some are more equal than others. Given
+ * the distribution of resources in the HW, it may be preferable to run
+ * a request on a given subset of engines in parallel to a request on a
+ * specific engine. We enable this selection of engines within a virtual
+ * engine by specifying bonding pairs, for any given master engine we will
+ * only execute on one of the corresponding siblings within the virtual engine.
+ *
+ * To execute a request in parallel on the master engine and a sibling requires
+ * coordination with a I915_EXEC_FENCE_SUBMIT.
+ */
+struct i915_context_engines_bond {
+	struct i915_user_extension base;
+
+	struct i915_engine_class_instance master;
+
+	__u16 virtual_index; /* index of virtual engine in ctx->engines[] */
+	__u16 num_bonds;
+
+	__u64 flags; /* all undefined flags must be zero */
+	__u64 mbz64[4]; /* reserved for future use; must be zero */
+
+	struct i915_engine_class_instance engines[0];
+} __attribute__((packed));
+
+#define I915_DEFINE_CONTEXT_ENGINES_BOND(name__, N__) struct { \
+	struct i915_user_extension base; \
+	struct i915_engine_class_instance master; \
+	__u16 virtual_index; \
+	__u16 num_bonds; \
+	__u64 flags; \
+	__u64 mbz64[4]; \
+	struct i915_engine_class_instance engines[N__]; \
+} __attribute__((packed)) name__
+
+struct i915_context_param_engines {
+	__u64 extensions; /* linked chain of extension blocks, 0 terminates */
+#define I915_CONTEXT_ENGINES_EXT_LOAD_BALANCE 0 /* see i915_context_engines_load_balance */
+#define I915_CONTEXT_ENGINES_EXT_BOND 1 /* see i915_context_engines_bond */
+	struct i915_engine_class_instance engines[0];
+} __attribute__((packed));
+
+#define I915_DEFINE_CONTEXT_PARAM_ENGINES(name__, N__) struct { \
+	__u64 extensions; \
+	struct i915_engine_class_instance engines[N__]; \
+} __attribute__((packed)) name__
+
 struct drm_i915_gem_context_create_ext_setparam {
 #define I915_CONTEXT_CREATE_EXT_SETPARAM 0
 	struct i915_user_extension base;
 	struct drm_i915_gem_context_param param;
 };
 
+struct drm_i915_gem_context_create_ext_clone {
+#define I915_CONTEXT_CREATE_EXT_CLONE 1
+	struct i915_user_extension base;
+	__u32 clone_id;
+	__u32 flags;
+#define I915_CONTEXT_CLONE_ENGINES	(1u << 0)
+#define I915_CONTEXT_CLONE_FLAGS	(1u << 1)
+#define I915_CONTEXT_CLONE_SCHEDATTR	(1u << 2)
+#define I915_CONTEXT_CLONE_SSEU		(1u << 3)
+#define I915_CONTEXT_CLONE_TIMELINE	(1u << 4)
+#define I915_CONTEXT_CLONE_VM		(1u << 5)
+#define I915_CONTEXT_CLONE_UNKNOWN -(I915_CONTEXT_CLONE_VM << 1)
+	__u64 rsvd;
+};
+
 struct drm_i915_gem_context_destroy {
 	__u32 ctx_id;
 	__u32 pad;
@@ -1821,6 +1982,7 @@ struct drm_i915_perf_oa_config {
 struct drm_i915_query_item {
 	__u64 query_id;
 #define DRM_I915_QUERY_TOPOLOGY_INFO    1
+#define DRM_I915_QUERY_ENGINE_INFO	2
 /* Must be kept compact -- no holes and well documented */
 
 	/*
@@ -1919,6 +2081,47 @@ struct drm_i915_query_topology_info {
 	__u8 data[];
 };
 
+/**
+ * struct drm_i915_engine_info
+ *
+ * Describes one engine and it's capabilities as known to the driver.
+ */
+struct drm_i915_engine_info {
+	/** Engine class and instance. */
+	struct i915_engine_class_instance engine;
+
+	/** Reserved field. */
+	__u32 rsvd0;
+
+	/** Engine flags. */
+	__u64 flags;
+
+	/** Capabilities of this engine. */
+	__u64 capabilities;
+#define I915_VIDEO_CLASS_CAPABILITY_HEVC		(1 << 0)
+#define I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC	(1 << 1)
+
+	/** Reserved fields. */
+	__u64 rsvd1[4];
+};
+
+/**
+ * struct drm_i915_query_engine_info
+ *
+ * Engine info query enumerates all engines known to the driver by filling in
+ * an array of struct drm_i915_engine_info structures.
+ */
+struct drm_i915_query_engine_info {
+	/** Number of struct drm_i915_engine_info structs following. */
+	__u32 num_engines;
+
+	/** MBZ */
+	__u32 rsvd[3];
+
+	/** Marker for drm_i915_engine_info structures. */
+	struct drm_i915_engine_info engines[];
+};
+
 #if defined(__cplusplus)
 }
 #endif
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#2 lore raw

PATCH v24 2/14 lib/i915: add gem_engine_topology library and for_each loop definition

In reply to Andi Shyti

The gem_engine_topology library is a set of functions that interface with the query and getparam/setparam ioctls.

The library's access point is the 'intel_init_engine_list()' function that, everytime is called, generates the list of active engines and returns them in a 'struct intel_engine_data'. The structure contains only the engines that are actively present in the GPU.

The function can work in both the cases that the query and getparam ioctls are implemented or not by the running kernel. In case they are implemented, a query is made to the driver to fetch the list of active engines. In case they are not implemented, the list is taken from the 'intel_execution_engines2' array and stored only after checking their presence.

The gem_engine_topology library provides some iteration helpers:

- intel_get_current_engine(): provides the current engine in the iteration.

- intel_get_current_physical_engine(): provides the current physical engine, if the current engine is a virtual engine, it moves forward until it finds a physical engine.

- intel_next_engine() it just increments the counter so that it points to the next engine.

Extend the 'for_each_engine_class_instance' so that it can loop using the new 'intel_init_engine_list()' and rename it to 'for_each_context_engine'.

Move '__for_each_engine_class_instance' to gem_engine_topology.h and rename it to '__for_each_static_engine'.

Update accordingly tests/perf_pmu.c to use correctly the new for_each loops.

---
 lib/Makefile.sources           |   2 +
 lib/i915/gem_engine_topology.c | 282 +++++++++++++++++++++++++++++++++
 lib/i915/gem_engine_topology.h |  79 +++++++++
 lib/igt.h                      |   1 +
 lib/igt_gt.h                   |   2 +
 lib/meson.build                |   1 +
 6 files changed, 367 insertions(+)
 create mode 100644 lib/i915/gem_engine_topology.c
 create mode 100644 lib/i915/gem_engine_topology.h
lib/Makefile.sources +2 -0
index 97685823894b..ef96bd09d049 100644
@@ -13,6 +13,8 @@ lib_source_list =	 	\
 	i915/gem_ring.c	\
 	i915/gem_mman.c	\
 	i915/gem_mman.h	\
+	i915/gem_engine_topology.c	\
+	i915/gem_engine_topology.h	\
 	i915_3d.h		\
 	i915_reg.h		\
 	i915_pciids.h		\
lib/i915/gem_engine_topology.c new file +282 -0

282 lines not on this page · raw message

lib/i915/gem_engine_topology.h new file +79 -0

79 lines not on this page · raw message

lib/igt.h +1 -0
index 5852d5571f8b..a3d3edc2d5ac 100644
@@ -54,5 +54,6 @@
 #include "media_spin.h"
 #include "rendercopy.h"
 #include "i915/gem_mman.h"
+#include "i915/gem_engine_topology.h"
 
 #endif /* IGT_H */
lib/igt_gt.h +2 -0
index 475c0b3c3cc6..52b2f1ea95a5 100644
@@ -95,6 +95,8 @@ extern const struct intel_execution_engine2 {
 	const char *name;
 	int class;
 	int instance;
+	uint64_t flags;
+	bool is_virtual;
 } intel_execution_engines2[];
 
 unsigned int
lib/meson.build +1 -0
index 8073686867d4..b6d8e6ca5a7e 100644
@@ -5,6 +5,7 @@ lib_sources = [
 	'i915/gem_submission.c',
 	'i915/gem_ring.c',
 	'i915/gem_mman.c',
+	'i915/gem_engine_topology.c',
 	'igt_color_encoding.c',
 	'igt_debugfs.c',
 	'igt_device.c',
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#3 lore raw

Re: [igt-dev] [PATCH v24 02/14] lib/i915: add gem_engine_topology library and for_each loop definition

Quoted 32 lines · Andi Shyti

The gem_engine_topology library is a set of functions that interface with the query and getparam/setparam ioctls.

The library's access point is the 'intel_init_engine_list()' function that, everytime is called, generates the list of active engines and returns them in a 'struct intel_engine_data'. The structure contains only the engines that are actively present in the GPU.

The function can work in both the cases that the query and getparam ioctls are implemented or not by the running kernel. In case they are implemented, a query is made to the driver to fetch the list of active engines. In case they are not implemented, the list is taken from the 'intel_execution_engines2' array and stored only after checking their presence.

The gem_engine_topology library provides some iteration helpers:

- intel_get_current_engine(): provides the current engine in the iteration.

- intel_get_current_physical_engine(): provides the current physical engine, if the current engine is a virtual engine, it moves forward until it finds a physical engine.

- intel_next_engine() it just increments the counter so that it points to the next engine.

Extend the 'for_each_engine_class_instance' so that it can loop using the new 'intel_init_engine_list()' and rename it to 'for_each_context_engine'.

Quoted 7 lines

Move '__for_each_engine_class_instance' to gem_engine_topology.h and rename it to '__for_each_static_engine'.

Update accordingly tests/perf_pmu.c to use correctly the new for_each loops.

Found one without r-b.

Quoted 49 lines
---
  lib/Makefile.sources           |   2 +
  lib/i915/gem_engine_topology.c | 282 +++++++++++++++++++++++++++++++++
  lib/i915/gem_engine_topology.h |  79 +++++++++
  lib/igt.h                      |   1 +
  lib/igt_gt.h                   |   2 +
  lib/meson.build                |   1 +
  6 files changed, 367 insertions(+)

create mode 100644 lib/i915/gem_engine_topology.c create mode 100644 lib/i915/gem_engine_topology.h

lib/Makefile.sources +2 -0
index 97685823894b..ef96bd09d049 100644
@@ -13,6 +13,8 @@ lib_source_list =	 	\
  	i915/gem_ring.c	\
  	i915/gem_mman.c	\
  	i915/gem_mman.h	\
+	i915/gem_engine_topology.c	\
+	i915/gem_engine_topology.h	\
  	i915_3d.h		\
  	i915_reg.h		\
  	i915_pciids.h		\
lib/i915/gem_engine_topology.c new file +19 -0
new file mode 100644
index 000000000000..7a4a17605d32
@@ -0,0 +1,282 @@
+/*
+ * Copyright © 2019 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

lib/i915/gem_engine_topology.c line 29

Quoted 10 lines
lib/i915/gem_engine_topology.c new file +10 -0
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "drmtest.h"
+#include "ioctl_wrappers.h"
+
+#include "i915/gem_engine_topology.h"
+
+#define DEFINE_CONTEXT_PARAM(e__, p__, c__, N__) \

Maybe DEFINE_CONTEXT_ENGINES_PARAM for more clarity?

Quoted 64 lines
lib/i915/gem_engine_topology.c new file +64 -0
+		I915_DEFINE_CONTEXT_PARAM_ENGINES(e__, N__); \
+		struct drm_i915_gem_context_param p__ = { \
+			.param = I915_CONTEXT_PARAM_ENGINES, \
+			.ctx_id = c__, \
+			.size = SIZEOF_CTX_PARAM, \
+			.value = to_user_pointer(&e__), \
+		}
+
+static int __gem_query(int fd, struct drm_i915_query *q)
+{
+	int err = 0;
+
+	if (igt_ioctl(fd, DRM_IOCTL_I915_QUERY, q))
+		err = -errno;
+
+	errno = 0;
+	return err;
+}
+
+static void gem_query(int fd, struct drm_i915_query *q)
+{
+	igt_assert_eq(__gem_query(fd, q), 0);
+}
+
+static void query_engines(int fd,
+			  struct drm_i915_query_engine_info *query_engines,
+			  int length)
+{
+	struct drm_i915_query_item item = { };
+	struct drm_i915_query query = { };
+
+	item.query_id = DRM_I915_QUERY_ENGINE_INFO;
+	query.items_ptr = to_user_pointer(&item);
+	query.num_items = 1;
+	item.length = length;
+
+	item.data_ptr = to_user_pointer(query_engines);
+
+	gem_query(fd, &query);
+}
+
+static void ctx_map_engines(int fd, struct intel_engine_data *ed,
+			    struct drm_i915_gem_context_param *param)
+{
+	struct i915_context_param_engines *engines =
+			(struct i915_context_param_engines *) param->value;
+	int i = 0;
+
+	for (typeof(engines->engines[0]) *p =
+	     &engines->engines[0];
+	     i < ed->nengines; i++, p++) {
+		p->engine_class = ed->engines[i].class;
+		p->engine_instance = ed->engines[i].instance;
+	}
+
+	param->size = offsetof(typeof(*engines), engines[i]);
+	engines->extensions = 0;
+
+	gem_context_set_param(fd, param);
+}
+
+static void init_engine(struct intel_execution_engine2 *e2,
+			int class, int instance, uint64_t flags)
+{

lib/i915/gem_engine_topology.c line 103

Quoted 10 lines
lib/i915/gem_engine_topology.c new file +10 -0
+	const struct intel_execution_engine2 *__e2;
+	static const char *unknown_name = "unknown",
+			  *virtual_name = "virtual";
+
+	e2->class    = class;
+	e2->instance = instance;
+	e2->flags    = flags;
+
+	/* engine is a virtual engine */
+	if (class == I915_ENGINE_CLASS_INVALID) {

This needs to be tweaked to class == I915_ENGINE_CLASS_INVALID && instance == I915_ENGINE_CLASS_INVALID_VIRTUAL.

Otherwise if class is just -1 assert.

Quoted 4 lines
lib/i915/gem_engine_topology.c new file +4 -0
+		e2->name = virtual_name;
+		e2->is_virtual = true;
+		return;
+	}

lib/i915/gem_engine_topology.c line 117

Quoted 10 lines
lib/i915/gem_engine_topology.c new file +10 -0
+
+	__for_each_static_engine(__e2)
+		if (__e2->class == class && __e2->instance == instance)
+			break;
+
+	if (__e2->name) {
+		e2->name = __e2->name;
+	} else {
+		igt_warn("found unknown engine (%d, %d)", class, instance);
+		e2->name = unknown_name;

e2->flags = -1 for more robustness?

Quoted 64 lines
lib/i915/gem_engine_topology.c new file +64 -0
+	}
+
+	/* just to remark it */
+	e2->is_virtual = false;
+}
+
+static void query_engine_list(int fd, struct intel_engine_data *ed)
+{
+	uint8_t buff[SIZEOF_QUERY] = { };
+	struct drm_i915_query_engine_info *query_engine =
+			(struct drm_i915_query_engine_info *) buff;
+	int i;
+
+	query_engines(fd, query_engine, SIZEOF_QUERY);
+
+	for (i = 0; i < query_engine->num_engines; i++)
+		init_engine(&ed->engines[i],
+			    query_engine->engines[i].engine.engine_class,
+			    query_engine->engines[i].engine.engine_instance, i);
+
+	ed->nengines = query_engine->num_engines;
+}
+
+struct intel_execution_engine2 *
+intel_get_current_engine(struct intel_engine_data *ed)
+{
+	if (!ed->n)
+		ed->current_engine = &ed->engines[0];
+	else if (ed->n >= ed->nengines)
+		ed->current_engine = NULL;
+
+	return ed->current_engine;
+}
+
+void intel_next_engine(struct intel_engine_data *ed)
+{
+	if (ed->n + 1 < ed->nengines) {
+		ed->n++;
+		ed->current_engine = &ed->engines[ed->n];
+	} else {
+		ed->n = ed->nengines;
+		ed->current_engine = NULL;
+	}
+}
+
+struct intel_execution_engine2 *
+intel_get_current_physical_engine(struct intel_engine_data *ed)
+{
+	struct intel_execution_engine2 *e;
+
+	for (e = intel_get_current_engine(ed);
+	     e && e->is_virtual;
+	     intel_next_engine(ed))
+		;
+
+	return e;
+}
+
+static int gem_topology_get_param(int fd,
+				  struct drm_i915_gem_context_param *p)
+{
+	if (igt_only_list_subtests())
+		return -ENODEV;
+

lib/i915/gem_engine_topology.c line 191

Quoted 10 lines
lib/i915/gem_engine_topology.c new file +10 -0
+	if (__gem_context_get_param(fd, p))
+		return -1; /* using default engine map */
+
+	if (!p->size)
+		return 0;
+
+	p->size = (p->size - sizeof(struct i915_context_param_engines)) /
+		  (offsetof(struct i915_context_param_engines,
+			    engines[1]) -
+		  sizeof(struct i915_context_param_engines));

So param.size starts with number of bytes, but then becomes number of engines? It's a bit evil and non-obvious, because a line below confused me:

Quoted 37 lines
lib/i915/gem_engine_topology.c new file +37 -0
+
+	igt_assert_f(p->size <= GEM_MAX_ENGINES, "unsupported engine count\n");
+
+	return 0;
+}
+
+struct intel_engine_data intel_init_engine_list(int fd, uint32_t ctx_id)
+{
+	DEFINE_CONTEXT_PARAM(engines, param, ctx_id, GEM_MAX_ENGINES);
+	struct intel_engine_data engine_data = { };
+	int i;
+
+	if (gem_topology_get_param(fd, &param)) {
+		/* if kernel does not support engine/context mapping */
+		const struct intel_execution_engine2 *e2;
+
+		igt_debug("using pre-allocated engine list\n");
+
+		__for_each_static_engine(e2) {
+			struct intel_execution_engine2 *__e2 =
+				&engine_data.engines[engine_data.nengines];
+
+			if (!igt_only_list_subtests()) {
+				__e2->flags = gem_class_instance_to_eb_flags(fd,
+						e2->class, e2->instance);
+
+				if (!gem_has_ring(fd, __e2->flags))
+					continue;
+			} else {
+				__e2->flags = -1; /* 0xfff... */
+			}
+
+			__e2->name       = e2->name;
+			__e2->instance   = e2->instance;
+			__e2->class      = e2->class;
+			__e2->is_virtual = false;
+

lib/i915/gem_engine_topology.c line 238

Quoted 10 lines
lib/i915/gem_engine_topology.c new file +10 -0
+			engine_data.nengines++;
+		}
+		return engine_data;
+	}
+
+	if (!param.size) {
+		query_engine_list(fd, &engine_data);
+		ctx_map_engines(fd, &engine_data, &param);
+	} else {
+		for (i = 0; i < param.size; i++)

This one. It is an apparent mismatch between indices and bytes.

Put a comment with this block saying in what case we get here and the trick with param.size you play.

Quoted 7 lines
lib/i915/gem_engine_topology.c new file +7 -0
+			init_engine(&engine_data.engines[i],
+				    engines.engines[i].engine_class,
+				    engines.engines[i].engine_instance,
+				    i);
+
+		engine_data.nengines = i;
+	}

lib/i915/gem_engine_topology.c line 255

Quoted 10 lines
lib/i915/gem_engine_topology.c new file +10 -0
+
+	return engine_data;
+}
+
+int gem_context_lookup_engine(int fd, uint64_t engine, uint32_t ctx_id,
+			      struct intel_execution_engine2 *e)
+{
+	DEFINE_CONTEXT_PARAM(engines, param, ctx_id, GEM_MAX_ENGINES);
+
+	if (!e || gem_topology_get_param(fd, &param) || !param.size)

You expect a NULL e here and to what purpose? Best to just disallow it I think.

Also param.size == 0? It can't be possible due how you define the structure a line above it.

Quoted 60 lines
lib/i915/gem_engine_topology.c new file +27 -0
+		return -EINVAL;
+
+	e->class = engines.engines[engine].engine_class;
+	e->instance = engines.engines[engine].engine_instance;
+
+	return 0;
+}
+
+void gem_context_set_all_engines(int fd, uint32_t ctx)
+{
+	DEFINE_CONTEXT_PARAM(engines, param, ctx, GEM_MAX_ENGINES);
+	struct intel_engine_data engine_data = { };
+
+	if (!gem_topology_get_param(fd, &param) && !param.size) {
+		query_engine_list(fd, &engine_data);
+		ctx_map_engines(fd, &engine_data, &param);
+	}
+}
+
+bool gem_has_engine_topology(int fd)
+{
+	struct drm_i915_gem_context_param param = {
+		.param = I915_CONTEXT_PARAM_ENGINES,
+	};
+
+	return !__gem_context_get_param(fd, &param);
+}
lib/i915/gem_engine_topology.h new file +27 -0
new file mode 100644
index 000000000000..b40204b15068
@@ -0,0 +1,79 @@
+/*
+ * Copyright © 2019 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#ifndef GEM_ENGINE_TOPOLOGY_H
+#define GEM_ENGINE_TOPOLOGY_H
+
+#include "igt_gt.h"

lib/i915/gem_engine_topology.h line 37

Quoted 10 lines
lib/i915/gem_engine_topology.h new file +10 -0
+#include "i915_drm.h"
+
+/*
+ * Limit what we support for simplicity due limitation in how much we
+ * can address via execbuf2.
+ */
+#define SIZEOF_CTX_PARAM	offsetof(struct i915_context_param_engines, \
+					 engines[GEM_MAX_ENGINES])
+#define SIZEOF_QUERY		offsetof(struct drm_i915_query_engine_info, \
+					 engines[GEM_MAX_ENGINES])

Move these two into .c I think.

Quoted 72 lines
lib/i915/gem_engine_topology.h new file +42 -0
+
+#define GEM_MAX_ENGINES		I915_EXEC_RING_MASK + 1
+
+struct intel_engine_data {
+	uint32_t nengines;
+	uint32_t n;
+	struct intel_execution_engine2 *current_engine;
+	struct intel_execution_engine2 engines[GEM_MAX_ENGINES];
+};
+
+bool gem_has_engine_topology(int fd);
+struct intel_engine_data intel_init_engine_list(int fd, uint32_t ctx_id);
+
+/* iteration functions */
+struct intel_execution_engine2 *
+intel_get_current_engine(struct intel_engine_data *ed);
+
+struct intel_execution_engine2 *
+intel_get_current_physical_engine(struct intel_engine_data *ed);
+
+void intel_next_engine(struct intel_engine_data *ed);
+
+int gem_context_lookup_engine(int fd, uint64_t engine, uint32_t ctx_id,
+			      struct intel_execution_engine2 *e);
+
+void gem_context_set_all_engines(int fd, uint32_t ctx);
+
+#define __for_each_static_engine(e__) \
+	for ((e__) = intel_execution_engines2; (e__)->name; (e__)++)
+
+#define for_each_context_engine(fd__, ctx__, e__) \
+	for (struct intel_engine_data i__ = intel_init_engine_list(fd__, ctx__); \
+	     ((e__) = intel_get_current_engine(&i__)); \
+	     intel_next_engine(&i__))
+
+/* needs to replace "for_each_physical_engine" when conflicts are fixed */
+#define __for_each_physical_engine(fd__, e__) \
+	for (struct intel_engine_data i__ = intel_init_engine_list(fd__, 0); \
+	     ((e__) = intel_get_current_physical_engine(&i__)); \
+	     intel_next_engine(&i__))
+
+#endif /* GEM_ENGINE_TOPOLOGY_H */
lib/igt.h +1 -0
index 5852d5571f8b..a3d3edc2d5ac 100644
@@ -54,5 +54,6 @@
  #include "media_spin.h"
  #include "rendercopy.h"
  #include "i915/gem_mman.h"
+#include "i915/gem_engine_topology.h"
 
  #endif /* IGT_H */
lib/igt_gt.h +2 -0
index 475c0b3c3cc6..52b2f1ea95a5 100644
@@ -95,6 +95,8 @@ extern const struct intel_execution_engine2 {
  	const char *name;
  	int class;
  	int instance;
+	uint64_t flags;
+	bool is_virtual;
  } intel_execution_engines2[];
 
  unsigned int
lib/meson.build +0 -0
index 8073686867d4..b6d8e6ca5a7e 100644

lib/meson.build lib_sources = [ · line 11

Quoted 7 lines
lib/meson.build +1 -0
@@ -5,6 +5,7 @@ lib_sources = [
  	'i915/gem_submission.c',
  	'i915/gem_ring.c',
  	'i915/gem_mman.c',
+	'i915/gem_engine_topology.c',
  	'igt_color_encoding.c',
  	'igt_debugfs.c',
  	'igt_device.c',

And please put a follow up to add API docs on your TODO list shortly after we merge this.

Regards,

Tvrtko
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

author
#4 lore raw

Re: [igt-dev] [PATCH v24 02/14] lib/i915: add gem_engine_topology library and for_each loop definition

Quoted 7 lines

lib/i915/gem_engine_topology.c line 191

Quoted 4 lines
lib/i915/gem_engine_topology.c new file +4 -0
+	p->size = (p->size - sizeof(struct i915_context_param_engines)) /
+		  (offsetof(struct i915_context_param_engines,
+			    engines[1]) -
+		  sizeof(struct i915_context_param_engines));

So param.size starts with number of bytes, but then becomes number of engines? It's a bit evil and non-obvious, because a line below confused me:

this was a review from Chris and later on I use indeed size as engine count.

I understand it's a bit unclear given that in the kernel it has a slightly different meaning.

Quoted 1 line
Quoted 1 line
lib/i915/gem_engine_topology.c new file +1 -0
+	igt_assert_f(p->size <= GEM_MAX_ENGINES, "unsupported engine count\n");

[...]

Quoted 10 lines

lib/i915/gem_engine_topology.c line 238

Quoted 5 lines
lib/i915/gem_engine_topology.c new file +5 -0
+	if (!param.size) {
+		query_engine_list(fd, &engine_data);
+		ctx_map_engines(fd, &engine_data, &param);
+	} else {
+		for (i = 0; i < param.size; i++)

This one. It is an apparent mismatch between indices and bytes.

Put a comment with this block saying in what case we get here and the trick with param.size you play.

I will add a few comments to make it more clear.

Quoted 8 lines

lib/i915/gem_engine_topology.c line 255

Quoted 6 lines
lib/i915/gem_engine_topology.c new file +6 -0
+int gem_context_lookup_engine(int fd, uint64_t engine, uint32_t ctx_id,
+			      struct intel_execution_engine2 *e)
+{
+	DEFINE_CONTEXT_PARAM(engines, param, ctx_id, GEM_MAX_ENGINES);
+
+	if (!e || gem_topology_get_param(fd, &param) || !param.size)

You expect a NULL e here and to what purpose?

just to be a bit paranoic, besides I wouldn't like a segfault in my function :)

Quoted 1 line

Best to just disallow it I think.

isn't 'return -EINVAL' enough? igt_assert?

Quoted 2 lines

Also param.size == 0? It can't be possible due how you define the structure a line above it.

yes, but before I call 'gem_topology_get_param()' where size might get overridden.

[...]

Quoted 2 lines

And please put a follow up to add API docs on your TODO list shortly after we merge this.

OK.

Andi
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#5 lore raw

Re: [igt-dev] [PATCH v24 02/14] lib/i915: add gem_engine_topology library and for_each loop definition

Quoted 40 lines · Andi Shyti
Quoted 7 lines

lib/i915/gem_engine_topology.c line 191

Quoted 4 lines
lib/i915/gem_engine_topology.c new file +4 -0
+	p->size = (p->size - sizeof(struct i915_context_param_engines)) /
+		  (offsetof(struct i915_context_param_engines,
+			    engines[1]) -
+		  sizeof(struct i915_context_param_engines));

So param.size starts with number of bytes, but then becomes number of engines? It's a bit evil and non-obvious, because a line below confused me:

this was a review from Chris and later on I use indeed size as engine count.

I understand it's a bit unclear given that in the kernel it has a slightly different meaning.

Quoted 1 line
Quoted 1 line
lib/i915/gem_engine_topology.c new file +1 -0
+	igt_assert_f(p->size <= GEM_MAX_ENGINES, "unsupported engine count\n");

[...]

Quoted 10 lines

lib/i915/gem_engine_topology.c line 238

Quoted 5 lines
lib/i915/gem_engine_topology.c new file +5 -0
+	if (!param.size) {
+		query_engine_list(fd, &engine_data);
+		ctx_map_engines(fd, &engine_data, &param);
+	} else {
+		for (i = 0; i < param.size; i++)

This one. It is an apparent mismatch between indices and bytes.

Put a comment with this block saying in what case we get here and the trick with param.size you play.

I will add a few comments to make it more clear.

Quoted 8 lines

lib/i915/gem_engine_topology.c line 255

Quoted 6 lines
lib/i915/gem_engine_topology.c new file +6 -0
+int gem_context_lookup_engine(int fd, uint64_t engine, uint32_t ctx_id,
+			      struct intel_execution_engine2 *e)
+{
+	DEFINE_CONTEXT_PARAM(engines, param, ctx_id, GEM_MAX_ENGINES);
+
+	if (!e || gem_topology_get_param(fd, &param) || !param.size)

You expect a NULL e here and to what purpose?

Quoted 6 lines

just to be a bit paranoic, besides I wouldn't like a segfault in my function :)

Quoted 1 line

Best to just disallow it I think.

isn't 'return -EINVAL' enough? igt_assert?

igt_assert(e) I think would be a better fit.

Quoted 5 lines
Quoted 2 lines

Also param.size == 0? It can't be possible due how you define the structure a line above it.

yes, but before I call 'gem_topology_get_param()' where size might get overridden

Yeah, I got fooled by the same trick.

Regards,

Tvrtko

.

Quoted 10 lines

[...]

Quoted 2 lines

And please put a follow up to add API docs on your TODO list shortly after we merge this.

OK.

Andi

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

author
#6 lore raw

PATCH v25 2/14 lib/i915: add gem_engine_topology library and for_each loop definition

In reply to Tvrtko Ursulin

The gem_engine_topology library is a set of functions that interface with the query and getparam/setparam ioctls.

The library's access point is the 'intel_init_engine_list()' function that, everytime is called, generates the list of active engines and returns them in a 'struct intel_engine_data'. The structure contains only the engines that are actively present in the GPU.

The function can work in both the cases that the query and getparam ioctls are implemented or not by the running kernel. In case they are implemented, a query is made to the driver to fetch the list of active engines. In case they are not implemented, the list is taken from the 'intel_execution_engines2' array and stored only after checking their presence.

The gem_engine_topology library provides some iteration helpers:

- intel_get_current_engine(): provides the current engine in the iteration.

- intel_get_current_physical_engine(): provides the current physical engine, if the current engine is a virtual engine, it moves forward until it finds a physical engine.

- intel_next_engine() it just increments the counter so that it points to the next engine.

Extend the 'for_each_engine_class_instance' so that it can loop using the new 'intel_init_engine_list()' and rename it to 'for_each_context_engine'.

Move '__for_each_engine_class_instance' to gem_engine_topology.h and rename it to '__for_each_static_engine'.

Update accordingly tests/perf_pmu.c to use correctly the new for_each loops.

---
Hi,

this comes from the last reviews from Tvrtko, thanks, Tvrtko!

changes from patch 24:
- SIZEOF_CTX_PARAM and SIZEOF_QUERY defines have been moved in the .c file from the .h

- added comment to specify that .size from "struct drm_i915_gem_context_param" contains the engine count instead of the data structure size

- virtual engines need to be checked against
"class == I915_ENGINE_CLASS_INVALID" and
"instance == I915_ENGINE_CLASS_INVALID_VIRTUAL"

- when an engine unknown is found, flags are set to -1.

Thanks,
Andi

 lib/Makefile.sources           |   2 +
 lib/i915/gem_engine_topology.c | 298 +++++++++++++++++++++++++++++++++
 lib/i915/gem_engine_topology.h |  70 ++++++++
 lib/igt.h                      |   1 +
 lib/igt_gt.h                   |   2 +
 lib/meson.build                |   1 +
 6 files changed, 374 insertions(+)
 create mode 100644 lib/i915/gem_engine_topology.c
 create mode 100644 lib/i915/gem_engine_topology.h
lib/Makefile.sources +2 -0
index 97685823894b..ef96bd09d049 100644
@@ -13,6 +13,8 @@ lib_source_list =	 	\
 	i915/gem_ring.c	\
 	i915/gem_mman.c	\
 	i915/gem_mman.h	\
+	i915/gem_engine_topology.c	\
+	i915/gem_engine_topology.h	\
 	i915_3d.h		\
 	i915_reg.h		\
 	i915_pciids.h		\
lib/i915/gem_engine_topology.c new file +298 -0

298 lines not on this page · raw message

lib/i915/gem_engine_topology.h new file +70 -0

70 lines not on this page · raw message

lib/igt.h +1 -0
index 5852d5571f8b..a3d3edc2d5ac 100644
@@ -54,5 +54,6 @@
 #include "media_spin.h"
 #include "rendercopy.h"
 #include "i915/gem_mman.h"
+#include "i915/gem_engine_topology.h"
 
 #endif /* IGT_H */
lib/igt_gt.h +2 -0
index 475c0b3c3cc6..52b2f1ea95a5 100644
@@ -95,6 +95,8 @@ extern const struct intel_execution_engine2 {
 	const char *name;
 	int class;
 	int instance;
+	uint64_t flags;
+	bool is_virtual;
 } intel_execution_engines2[];
 
 unsigned int
lib/meson.build +1 -0
index 8073686867d4..b6d8e6ca5a7e 100644
@@ -5,6 +5,7 @@ lib_sources = [
 	'i915/gem_submission.c',
 	'i915/gem_ring.c',
 	'i915/gem_mman.c',
+	'i915/gem_engine_topology.c',
 	'igt_color_encoding.c',
 	'igt_debugfs.c',
 	'igt_device.c',
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Reviewed-by on v25 2/14
#7 lore raw

Re: [igt-dev] [PATCH v25 02/14] lib/i915: add gem_engine_topology library and for_each loop definition

Quoted 494 lines · Andi Shyti

The gem_engine_topology library is a set of functions that interface with the query and getparam/setparam ioctls.

The library's access point is the 'intel_init_engine_list()' function that, everytime is called, generates the list of active engines and returns them in a 'struct intel_engine_data'. The structure contains only the engines that are actively present in the GPU.

The function can work in both the cases that the query and getparam ioctls are implemented or not by the running kernel. In case they are implemented, a query is made to the driver to fetch the list of active engines. In case they are not implemented, the list is taken from the 'intel_execution_engines2' array and stored only after checking their presence.

The gem_engine_topology library provides some iteration helpers:

- intel_get_current_engine(): provides the current engine in the iteration.

- intel_get_current_physical_engine(): provides the current physical engine, if the current engine is a virtual engine, it moves forward until it finds a physical engine.

- intel_next_engine() it just increments the counter so that it points to the next engine.

Extend the 'for_each_engine_class_instance' so that it can loop using the new 'intel_init_engine_list()' and rename it to 'for_each_context_engine'.

Move '__for_each_engine_class_instance' to gem_engine_topology.h and rename it to '__for_each_static_engine'.

Update accordingly tests/perf_pmu.c to use correctly the new for_each loops.

---
Hi,

this comes from the last reviews from Tvrtko, thanks, Tvrtko!

changes from patch 24:
- SIZEOF_CTX_PARAM and SIZEOF_QUERY defines have been moved in the .c file from the .h

- added comment to specify that .size from "struct drm_i915_gem_context_param" contains the engine count instead of the data structure size

- virtual engines need to be checked against "class == I915_ENGINE_CLASS_INVALID" and "instance == I915_ENGINE_CLASS_INVALID_VIRTUAL"

- when an engine unknown is found, flags are set to -1.

Thanks,
Andi

  lib/Makefile.sources           |   2 +
  lib/i915/gem_engine_topology.c | 298 +++++++++++++++++++++++++++++++++
  lib/i915/gem_engine_topology.h |  70 ++++++++
  lib/igt.h                      |   1 +
  lib/igt_gt.h                   |   2 +
  lib/meson.build                |   1 +
  6 files changed, 374 insertions(+)

create mode 100644 lib/i915/gem_engine_topology.c create mode 100644 lib/i915/gem_engine_topology.h

lib/Makefile.sources +2 -0
index 97685823894b..ef96bd09d049 100644
@@ -13,6 +13,8 @@ lib_source_list =	 	\
  	i915/gem_ring.c	\
  	i915/gem_mman.c	\
  	i915/gem_mman.h	\
+	i915/gem_engine_topology.c	\
+	i915/gem_engine_topology.h	\
  	i915_3d.h		\
  	i915_reg.h		\
  	i915_pciids.h		\
lib/i915/gem_engine_topology.c new file +298 -0
new file mode 100644
index 000000000000..dd26fae00853
@@ -0,0 +1,298 @@
+/*
+ * Copyright © 2019 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "drmtest.h"
+#include "ioctl_wrappers.h"
+
+#include "i915/gem_engine_topology.h"
+
+/*
+ * Limit what we support for simplicity due limitation in how much we
+ * can address via execbuf2.
+ */
+#define SIZEOF_CTX_PARAM	offsetof(struct i915_context_param_engines, \
+					 engines[GEM_MAX_ENGINES])
+#define SIZEOF_QUERY		offsetof(struct drm_i915_query_engine_info, \
+					 engines[GEM_MAX_ENGINES])
+
+#define DEFINE_CONTEXT_ENGINES_PARAM(e__, p__, c__, N__) \
+		I915_DEFINE_CONTEXT_PARAM_ENGINES(e__, N__); \
+		struct drm_i915_gem_context_param p__ = { \
+			.param = I915_CONTEXT_PARAM_ENGINES, \
+			.ctx_id = c__, \
+			.size = SIZEOF_CTX_PARAM, \
+			.value = to_user_pointer(&e__), \
+		}
+
+static int __gem_query(int fd, struct drm_i915_query *q)
+{
+	int err = 0;
+
+	if (igt_ioctl(fd, DRM_IOCTL_I915_QUERY, q))
+		err = -errno;
+
+	errno = 0;
+	return err;
+}
+
+static void gem_query(int fd, struct drm_i915_query *q)
+{
+	igt_assert_eq(__gem_query(fd, q), 0);
+}
+
+static void query_engines(int fd,
+			  struct drm_i915_query_engine_info *query_engines,
+			  int length)
+{
+	struct drm_i915_query_item item = { };
+	struct drm_i915_query query = { };
+
+	item.query_id = DRM_I915_QUERY_ENGINE_INFO;
+	query.items_ptr = to_user_pointer(&item);
+	query.num_items = 1;
+	item.length = length;
+
+	item.data_ptr = to_user_pointer(query_engines);
+
+	gem_query(fd, &query);
+}
+
+static void ctx_map_engines(int fd, struct intel_engine_data *ed,
+			    struct drm_i915_gem_context_param *param)
+{
+	struct i915_context_param_engines *engines =
+			(struct i915_context_param_engines *) param->value;
+	int i = 0;
+
+	for (typeof(engines->engines[0]) *p =
+	     &engines->engines[0];
+	     i < ed->nengines; i++, p++) {
+		p->engine_class = ed->engines[i].class;
+		p->engine_instance = ed->engines[i].instance;
+	}
+
+	param->size = offsetof(typeof(*engines), engines[i]);
+	engines->extensions = 0;
+
+	gem_context_set_param(fd, param);
+}
+
+static void init_engine(struct intel_execution_engine2 *e2,
+			int class, int instance, uint64_t flags)
+{
+	const struct intel_execution_engine2 *__e2;
+	static const char *unknown_name = "unknown",
+			  *virtual_name = "virtual";
+
+	e2->class    = class;
+	e2->instance = instance;
+	e2->flags    = flags;
+
+	/* engine is a virtual engine */
+	if (class == I915_ENGINE_CLASS_INVALID &&
+	    instance == I915_ENGINE_CLASS_INVALID_VIRTUAL) {
+		e2->name = virtual_name;
+		e2->is_virtual = true;
+		return;
+	}
+
+	__for_each_static_engine(__e2)
+		if (__e2->class == class && __e2->instance == instance)
+			break;
+
+	if (__e2->name) {
+		e2->name = __e2->name;
+	} else {
+		igt_warn("found unknown engine (%d, %d)", class, instance);
+		e2->name = unknown_name;
+		e2->flags = -1;
+	}
+
+	/* just to remark it */
+	e2->is_virtual = false;
+}
+
+static void query_engine_list(int fd, struct intel_engine_data *ed)
+{
+	uint8_t buff[SIZEOF_QUERY] = { };
+	struct drm_i915_query_engine_info *query_engine =
+			(struct drm_i915_query_engine_info *) buff;
+	int i;
+
+	query_engines(fd, query_engine, SIZEOF_QUERY);
+
+	for (i = 0; i < query_engine->num_engines; i++)
+		init_engine(&ed->engines[i],
+			    query_engine->engines[i].engine.engine_class,
+			    query_engine->engines[i].engine.engine_instance, i);
+
+	ed->nengines = query_engine->num_engines;
+}
+
+struct intel_execution_engine2 *
+intel_get_current_engine(struct intel_engine_data *ed)
+{
+	if (!ed->n)
+		ed->current_engine = &ed->engines[0];
+	else if (ed->n >= ed->nengines)
+		ed->current_engine = NULL;
+
+	return ed->current_engine;
+}
+
+void intel_next_engine(struct intel_engine_data *ed)
+{
+	if (ed->n + 1 < ed->nengines) {
+		ed->n++;
+		ed->current_engine = &ed->engines[ed->n];
+	} else {
+		ed->n = ed->nengines;
+		ed->current_engine = NULL;
+	}
+}
+
+struct intel_execution_engine2 *
+intel_get_current_physical_engine(struct intel_engine_data *ed)
+{
+	struct intel_execution_engine2 *e;
+
+	for (e = intel_get_current_engine(ed);
+	     e && e->is_virtual;
+	     intel_next_engine(ed))
+		;
+
+	return e;
+}
+
+static int gem_topology_get_param(int fd,
+				  struct drm_i915_gem_context_param *p)
+{
+	if (igt_only_list_subtests())
+		return -ENODEV;
+
+	if (__gem_context_get_param(fd, p))
+		return -1; /* using default engine map */
+
+	if (!p->size)
+		return 0;
+
+	/* size will store the engine count */
+	p->size = (p->size - sizeof(struct i915_context_param_engines)) /
+		  (offsetof(struct i915_context_param_engines,
+			    engines[1]) -
+		  sizeof(struct i915_context_param_engines));
+
+	igt_assert_f(p->size <= GEM_MAX_ENGINES, "unsupported engine count\n");
+
+	return 0;
+}
+
+struct intel_engine_data intel_init_engine_list(int fd, uint32_t ctx_id)
+{
+	DEFINE_CONTEXT_ENGINES_PARAM(engines, param, ctx_id, GEM_MAX_ENGINES);
+	struct intel_engine_data engine_data = { };
+	int i;
+
+	if (gem_topology_get_param(fd, &param)) {
+		/* if kernel does not support engine/context mapping */
+		const struct intel_execution_engine2 *e2;
+
+		igt_debug("using pre-allocated engine list\n");
+
+		__for_each_static_engine(e2) {
+			struct intel_execution_engine2 *__e2 =
+				&engine_data.engines[engine_data.nengines];
+
+			if (!igt_only_list_subtests()) {
+				__e2->flags = gem_class_instance_to_eb_flags(fd,
+						e2->class, e2->instance);
+
+				if (!gem_has_ring(fd, __e2->flags))
+					continue;
+			} else {
+				__e2->flags = -1; /* 0xfff... */
+			}
+
+			__e2->name       = e2->name;
+			__e2->instance   = e2->instance;
+			__e2->class      = e2->class;
+			__e2->is_virtual = false;
+
+			engine_data.nengines++;
+		}
+		return engine_data;
+	}
+
+	if (!param.size) {
+		query_engine_list(fd, &engine_data);
+		ctx_map_engines(fd, &engine_data, &param);
+	} else {
+		/* param.size contains the engine count */
+		for (i = 0; i < param.size; i++)
+			init_engine(&engine_data.engines[i],
+				    engines.engines[i].engine_class,
+				    engines.engines[i].engine_instance,
+				    i);
+
+		engine_data.nengines = i;
+	}
+
+	return engine_data;
+}
+
+int gem_context_lookup_engine(int fd, uint64_t engine, uint32_t ctx_id,
+			      struct intel_execution_engine2 *e)
+{
+	DEFINE_CONTEXT_ENGINES_PARAM(engines, param, ctx_id, GEM_MAX_ENGINES);
+
+	/* a bit paranoic */
+	igt_assert(e);
+
+	if (gem_topology_get_param(fd, &param) || !param.size)
+		return -EINVAL;
+
+	e->class = engines.engines[engine].engine_class;
+	e->instance = engines.engines[engine].engine_instance;
+
+	return 0;
+}
+
+void gem_context_set_all_engines(int fd, uint32_t ctx)
+{
+	DEFINE_CONTEXT_ENGINES_PARAM(engines, param, ctx, GEM_MAX_ENGINES);
+	struct intel_engine_data engine_data = { };
+
+	if (!gem_topology_get_param(fd, &param) && !param.size) {
+		query_engine_list(fd, &engine_data);
+		ctx_map_engines(fd, &engine_data, &param);
+	}
+}
+
+bool gem_has_engine_topology(int fd)
+{
+	struct drm_i915_gem_context_param param = {
+		.param = I915_CONTEXT_PARAM_ENGINES,
+	};
+
+	return !__gem_context_get_param(fd, &param);
+}
lib/i915/gem_engine_topology.h new file +70 -0
new file mode 100644
index 000000000000..2415fd1e379b
@@ -0,0 +1,70 @@
+/*
+ * Copyright © 2019 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#ifndef GEM_ENGINE_TOPOLOGY_H
+#define GEM_ENGINE_TOPOLOGY_H
+
+#include "igt_gt.h"
+#include "i915_drm.h"
+
+#define GEM_MAX_ENGINES		I915_EXEC_RING_MASK + 1
+
+struct intel_engine_data {
+	uint32_t nengines;
+	uint32_t n;
+	struct intel_execution_engine2 *current_engine;
+	struct intel_execution_engine2 engines[GEM_MAX_ENGINES];
+};
+
+bool gem_has_engine_topology(int fd);
+struct intel_engine_data intel_init_engine_list(int fd, uint32_t ctx_id);
+
+/* iteration functions */
+struct intel_execution_engine2 *
+intel_get_current_engine(struct intel_engine_data *ed);
+
+struct intel_execution_engine2 *
+intel_get_current_physical_engine(struct intel_engine_data *ed);
+
+void intel_next_engine(struct intel_engine_data *ed);
+
+int gem_context_lookup_engine(int fd, uint64_t engine, uint32_t ctx_id,
+			      struct intel_execution_engine2 *e);
+
+void gem_context_set_all_engines(int fd, uint32_t ctx);
+
+#define __for_each_static_engine(e__) \
+	for ((e__) = intel_execution_engines2; (e__)->name; (e__)++)
+
+#define for_each_context_engine(fd__, ctx__, e__) \
+	for (struct intel_engine_data i__ = intel_init_engine_list(fd__, ctx__); \
+	     ((e__) = intel_get_current_engine(&i__)); \
+	     intel_next_engine(&i__))
+
+/* needs to replace "for_each_physical_engine" when conflicts are fixed */
+#define __for_each_physical_engine(fd__, e__) \
+	for (struct intel_engine_data i__ = intel_init_engine_list(fd__, 0); \
+	     ((e__) = intel_get_current_physical_engine(&i__)); \
+	     intel_next_engine(&i__))
+
+#endif /* GEM_ENGINE_TOPOLOGY_H */
lib/igt.h +1 -0
index 5852d5571f8b..a3d3edc2d5ac 100644
@@ -54,5 +54,6 @@
  #include "media_spin.h"
  #include "rendercopy.h"
  #include "i915/gem_mman.h"
+#include "i915/gem_engine_topology.h"
 
  #endif /* IGT_H */
lib/igt_gt.h +2 -0
index 475c0b3c3cc6..52b2f1ea95a5 100644
@@ -95,6 +95,8 @@ extern const struct intel_execution_engine2 {
  	const char *name;
  	int class;
  	int instance;
+	uint64_t flags;
+	bool is_virtual;
  } intel_execution_engines2[];
 
  unsigned int
lib/meson.build +0 -0
index 8073686867d4..b6d8e6ca5a7e 100644

lib/meson.build lib_sources = [ · line 11

Quoted 7 lines
lib/meson.build +1 -0
@@ -5,6 +5,7 @@ lib_sources = [
  	'i915/gem_submission.c',
  	'i915/gem_ring.c',
  	'i915/gem_mman.c',
+	'i915/gem_engine_topology.c',
  	'igt_color_encoding.c',
  	'igt_debugfs.c',
  	'igt_device.c',

Regards,

Tvrtko
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

author
#8 lore raw

PATCH v24 3/14 lib: igt_gt: add execution buffer flags to class helper

In reply to Andi Shyti

we have a "class/instance to eb flags" helper but not the opposite, add it.

---
 lib/igt_gt.c | 18 ++++++++++++++++++
 lib/igt_gt.h |  2 ++
 2 files changed, 20 insertions(+)
lib/igt_gt.c +18 -0
index a2eaadf5cc8e..59b62242749e 100644
@@ -41,6 +41,7 @@
 #include "intel_reg.h"
 #include "intel_chipset.h"
 #include "igt_dummyload.h"
+#include "i915/gem_engine_topology.h"
 
 /**
  * SECTION:igt_gt
@@ -586,6 +587,23 @@ const struct intel_execution_engine2 intel_execution_engines2[] = {
 	{ }
 };
 
+int gem_execbuf_flags_to_engine_class(unsigned int flags)
+{
+	switch (flags & 0x3f) {
+	case I915_EXEC_DEFAULT:
+	case I915_EXEC_RENDER:
+		return I915_ENGINE_CLASS_RENDER;
+	case I915_EXEC_BLT:
+		return I915_ENGINE_CLASS_COPY;
+	case I915_EXEC_BSD:
+		return I915_ENGINE_CLASS_VIDEO;
+	case I915_EXEC_VEBOX:
+		return I915_ENGINE_CLASS_VIDEO_ENHANCE;
+	default:
+		igt_assert(0);
+	}
+}
+
 unsigned int
 gem_class_instance_to_eb_flags(int gem_fd,
 			       enum drm_i915_gem_engine_class class,
lib/igt_gt.h +2 -0
index 52b2f1ea95a5..8ceed14288c7 100644
@@ -99,6 +99,8 @@ extern const struct intel_execution_engine2 {
 	bool is_virtual;
 } intel_execution_engines2[];
 
+int gem_execbuf_flags_to_engine_class(unsigned int flags);
+
 unsigned int
 gem_class_instance_to_eb_flags(int gem_fd,
 			       enum drm_i915_gem_engine_class class,
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#9 lore raw

PATCH v24 4/14 lib: igt_gt: make gem_engine_can_store_dword() check engine class

In reply to Andi Shyti

Engines referred by class and instance are getting more popular, gem_engine_can_store_dword() should handle the situation.

---
 lib/igt_gt.c | 12 +++++++++---
 lib/igt_gt.h |  1 +
 2 files changed, 10 insertions(+), 3 deletions(-)
lib/igt_gt.c +9 -3
index 59b62242749e..5e5b9bef03dc 100644
@@ -557,7 +557,7 @@ const struct intel_execution_engine intel_execution_engines[] = {
 	{ NULL, 0, 0 }
 };
 
-bool gem_can_store_dword(int fd, unsigned int engine)
+bool gem_class_can_store_dword(int fd, int class)
 {
 	uint16_t devid = intel_get_drm_devid(fd);
 	const struct intel_device_info *info = intel_get_device_info(devid);
@@ -569,8 +569,8 @@ bool gem_can_store_dword(int fd, unsigned int engine)
 	if (gen == 3 && (info->is_grantsdale || info->is_alviso))
 		return false; /* only supports physical addresses */
 
-	if (gen == 6 && ((engine & 0x3f) == I915_EXEC_BSD))
-		return false; /* kills the machine! */
+	if (gen == 6 && class == I915_ENGINE_CLASS_VIDEO)
+		return false;
 
 	if (info->is_broadwater)
 		return false; /* Not sure yet... */
@@ -578,6 +578,12 @@ bool gem_can_store_dword(int fd, unsigned int engine)
 	return true;
 }
 
+bool gem_can_store_dword(int fd, unsigned int engine)
+{
+	return gem_class_can_store_dword(fd,
+				gem_execbuf_flags_to_engine_class(engine));
+}
+
 const struct intel_execution_engine2 intel_execution_engines2[] = {
 	{ "rcs0", I915_ENGINE_CLASS_RENDER, 0 },
 	{ "bcs0", I915_ENGINE_CLASS_COPY, 0 },
lib/igt_gt.h +1 -0
index 8ceed14288c7..0b5c7fcb4c3c 100644
@@ -90,6 +90,7 @@ bool gem_ring_is_physical_engine(int fd, unsigned int ring);
 bool gem_ring_has_physical_engine(int fd, unsigned int ring);
 
 bool gem_can_store_dword(int fd, unsigned int engine);
+bool gem_class_can_store_dword(int fd, int class);
 
 extern const struct intel_execution_engine2 {
 	const char *name;
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#10 lore raw

Re: [igt-dev] [PATCH v24 04/14] lib: igt_gt: make gem_engine_can_store_dword() check engine class

Quoting Andi Shyti (2019-05-13 18:56:03)

lib/igt_gt.c bool gem_can_store_dword(int fd, unsigned int engine) · line 573

Quoted 13 lines
lib/igt_gt.c +3 -3
-bool gem_can_store_dword(int fd, unsigned int engine)
+bool gem_class_can_store_dword(int fd, int class)
 {
        uint16_t devid = intel_get_drm_devid(fd);
        const struct intel_device_info *info = intel_get_device_info(devid);
@@ -569,8 +569,8 @@ bool gem_can_store_dword(int fd, unsigned int engine)
        if (gen == 3 && (info->is_grantsdale || info->is_alviso))
                return false; /* only supports physical addresses */
 
-       if (gen == 6 && ((engine & 0x3f) == I915_EXEC_BSD))
-               return false; /* kills the machine! */
+       if (gen == 6 && class == I915_ENGINE_CLASS_VIDEO)
+               return false;

Probably wise to keep the note about why it is excluded. It's a nasty surprise.
-Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

author
#11 lore raw

Re: [igt-dev] [PATCH v24 04/14] lib: igt_gt: make gem_engine_can_store_dword() check engine class

Hi Chris,

Quoted 10 lines · Chris Wilson

Quoting Andi Shyti (2019-05-13 18:56:03)

Quoted 9 lines
lib/igt_gt.c +1 -1
-bool gem_can_store_dword(int fd, unsigned int engine)
+bool gem_class_can_store_dword(int fd, int class)
 {
        uint16_t devid = intel_get_drm_devid(fd);
        const struct intel_device_info *info = intel_get_device_info(devid);
@@ -569,8 +569,8 @@ bool gem_can_store_dword(int fd, unsigned int engine)
        if (gen == 3 && (info->is_grantsdale || info->is_alviso))
                return false; /* only supports physical addresses */
 
Quoted 7 lines

lib/igt_gt.c bool gem_can_store_dword(int fd, unsigned int engine) · line 573

Quoted 4 lines
lib/igt_gt.c +2 -2
-       if (gen == 6 && ((engine & 0x3f) == I915_EXEC_BSD))
-               return false; /* kills the machine! */
+       if (gen == 6 && class == I915_ENGINE_CLASS_VIDEO)
+               return false;

Probably wise to keep the note about why it is excluded. It's a nasty surprise.

I have another patch ready on this one with one of your Suggested-by that I will send later in a different patchset.

Andi
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

author
#12 lore raw

PATCH v24 5/14 lib: igt_dummyload: use for_each_context_engine()

In reply to Andi Shyti

With the new getparam/setparam api, engines are mapped to context. Use for_each_context_engine() to loop through existing engines.

---
 lib/igt_dummyload.c | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)
lib/igt_dummyload.c +20 -9
index 15d64fadc115..1e11ccd3de33 100644
@@ -39,6 +39,7 @@
 #include "ioctl_wrappers.h"
 #include "sw_sync.h"
 #include "igt_vgem.h"
+#include "i915/gem_engine_topology.h"
 #include "i915/gem_mman.h"
 
 /**
@@ -77,7 +78,7 @@ emit_recursive_batch(igt_spin_t *spin,
 	struct drm_i915_gem_relocation_entry relocs[2], *r;
 	struct drm_i915_gem_execbuffer2 *execbuf;
 	struct drm_i915_gem_exec_object2 *obj;
-	unsigned int engines[16];
+	unsigned int flags[GEM_MAX_ENGINES];
 	unsigned int nengine;
 	int fence_fd = -1;
 	uint32_t *cs, *batch;
@@ -85,17 +86,17 @@ emit_recursive_batch(igt_spin_t *spin,
 
 	nengine = 0;
 	if (opts->engine == ALL_ENGINES) {
-		unsigned int engine;
+		struct intel_execution_engine2 *engine;
 
-		for_each_physical_engine(fd, engine) {
+		for_each_context_engine(fd, opts->ctx, engine) {
 			if (opts->flags & IGT_SPIN_POLL_RUN &&
-			    !gem_can_store_dword(fd, engine))
+			    !gem_class_can_store_dword(fd, engine->class))
 				continue;
 
-			engines[nengine++] = engine;
+			flags[nengine++] = engine->flags;
 		}
 	} else {
-		engines[nengine++] = opts->engine;
+		flags[nengine++] = opts->engine;
 	}
 	igt_require(nengine);
 
@@ -237,7 +238,7 @@ emit_recursive_batch(igt_spin_t *spin,
 
 	for (i = 0; i < nengine; i++) {
 		execbuf->flags &= ~ENGINE_MASK;
-		execbuf->flags |= engines[i];
+		execbuf->flags |= flags[i];
 
 		gem_execbuf_wr(fd, execbuf);
 
@@ -316,9 +317,19 @@ igt_spin_factory(int fd, const struct igt_spin_factory *opts)
 	igt_require_gem(fd);
 
 	if (opts->engine != ALL_ENGINES) {
-		gem_require_ring(fd, opts->engine);
+		struct intel_execution_engine2 e;
+		int class;
+
+		if (!gem_context_lookup_engine(fd, opts->engine,
+					       opts->ctx, &e)) {
+			class = e.class;
+		} else {
+			gem_require_ring(fd, opts->engine);
+			class = gem_execbuf_flags_to_engine_class(opts->engine);
+		}
+
 		if (opts->flags & IGT_SPIN_POLL_RUN)
-			igt_require(gem_can_store_dword(fd, opts->engine));
+			igt_require(gem_class_can_store_dword(fd, class));
 	}
 
 	spin = spin_create(fd, opts);
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#13 lore raw

PATCH v24 6/14 test: perf_pmu: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

Use whenever possible gem_engine_can_store_dword() that checks class instead of flags.

Now the __for_each_engine_class_instance and for_each_engine_class_instance are unused, remove them.

---
 lib/igt_gt.h     |   7 ----
 tests/perf_pmu.c | 102 ++++++++++++++++++++++++++---------------------
 2 files changed, 56 insertions(+), 53 deletions(-)
lib/igt_gt.h +0 -7
index 0b5c7fcb4c3c..77318e2a82b8 100644
@@ -119,11 +119,4 @@ void gem_require_engine(int gem_fd,
 	igt_require(gem_has_engine(gem_fd, class, instance));
 }
 
-#define __for_each_engine_class_instance(e__) \
-	for ((e__) = intel_execution_engines2; (e__)->name; (e__)++)
-
-#define for_each_engine_class_instance(fd__, e__) \
-	for ((e__) = intel_execution_engines2; (e__)->name; (e__)++) \
-		for_if (gem_has_engine((fd__), (e__)->class, (e__)->instance))
-
 #endif /* IGT_GT_H */
tests/perf_pmu.c +56 -46

309 lines not on this page · raw message

Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#14 lore raw

Re: [igt-dev] [PATCH v24 06/14] test: perf_pmu: use the gem_engine_topology library

Hi,

Quoted 13 lines · Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

Use whenever possible gem_engine_can_store_dword() that checks class instead of flags.

Now the __for_each_engine_class_instance and for_each_engine_class_instance are unused, remove them.

[snip]

tests/perf_pmu.c test_frequency(int gem_fd) · line 1315

Quoted 6 lines
tests/perf_pmu.c +1 -1
@@ -1301,7 +1312,7 @@ test_frequency(int gem_fd)
  	igt_require(igt_sysfs_get_u32(sysfs, "gt_boost_freq_mhz") == min_freq);
 
  	gem_quiescent_gpu(gem_fd); /* Idle to be sure the change takes effect */
-	spin = spin_sync(gem_fd, 0, I915_EXEC_RENDER);
+	spin = spin_sync_flags(gem_fd, 0, I915_EXEC_RENDER);

You didn't need to change hotplug/frequency&interrupts to use I915_EXEC_DEFAULT? Does it work on patches kernel? It doesn't execute on engine index 1 from the map, which is not rcs0?

Regards,

Tvrtko
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

author
#15 lore raw

Re: [igt-dev] [PATCH v24 06/14] test: perf_pmu: use the gem_engine_topology library

Quoted 9 lines

tests/perf_pmu.c test_frequency(int gem_fd) · line 1314

Quoted 5 lines
tests/perf_pmu.c +1 -1
@@ -1301,7 +1312,7 @@ test_frequency(int gem_fd)
  	igt_require(igt_sysfs_get_u32(sysfs, "gt_boost_freq_mhz") == min_freq);
  	gem_quiescent_gpu(gem_fd); /* Idle to be sure the change takes effect */
-	spin = spin_sync(gem_fd, 0, I915_EXEC_RENDER);
+	spin = spin_sync_flags(gem_fd, 0, I915_EXEC_RENDER);

You didn't need to change hotplug/frequency&interrupts to use I915_EXEC_DEFAULT? Does it work on patches kernel? It doesn't execute on engine index 1 from the map, which is not rcs0?

you know... that's an oversight, I was testing if it works with RENDER and then squashed everything... I will post the real patch as reply to this e-mail.

Andi
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

author
#16 lore raw

PATCH v25 6/14 test: perf_pmu: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

Use whenever possible gem_engine_can_store_dword() that checks class instead of flags.

Now the __for_each_engine_class_instance and for_each_engine_class_instance are unused, remove them.

---
v24 --> v25 changelog
---------------------
in cpu_hotplug(), test_interrupts() and test_frequency() I915_EXEC_RENDER has been replaced by I915_EXEC_DEFAULT.

 lib/igt_gt.h     |   7 ---
 tests/perf_pmu.c | 110 ++++++++++++++++++++++++++---------------------
 2 files changed, 60 insertions(+), 57 deletions(-)
lib/igt_gt.h +0 -7
index 0b5c7fcb4c3c..77318e2a82b8 100644
@@ -119,11 +119,4 @@ void gem_require_engine(int gem_fd,
 	igt_require(gem_has_engine(gem_fd, class, instance));
 }
 
-#define __for_each_engine_class_instance(e__) \
-	for ((e__) = intel_execution_engines2; (e__)->name; (e__)++)
-
-#define for_each_engine_class_instance(fd__, e__) \
-	for ((e__) = intel_execution_engines2; (e__)->name; (e__)++) \
-		for_if (gem_has_engine((fd__), (e__)->class, (e__)->instance))
-
 #endif /* IGT_GT_H */
tests/perf_pmu.c +60 -50

335 lines not on this page · raw message

Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#17 lore raw

PATCH v24 7/14 test/i915: gem_busy: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

---
 tests/i915/gem_busy.c | 128 ++++++++++++++++--------------------------
 1 file changed, 48 insertions(+), 80 deletions(-)
tests/i915/gem_busy.c +48 -80
index c120faf10983..2872e7b7be62 100644
@@ -66,22 +66,9 @@ static void __gem_busy(int fd,
 	*read = busy.busy >> 16;
 }
 
-static uint32_t ring_to_class(unsigned int ring)
-{
-	uint32_t class[] = {
-		[I915_EXEC_DEFAULT] = I915_ENGINE_CLASS_RENDER,
-		[I915_EXEC_RENDER]  = I915_ENGINE_CLASS_RENDER,
-		[I915_EXEC_BLT]     = I915_ENGINE_CLASS_COPY,
-		[I915_EXEC_BSD]     = I915_ENGINE_CLASS_VIDEO,
-		[I915_EXEC_VEBOX]   = I915_ENGINE_CLASS_VIDEO_ENHANCE,
-	};
-	igt_assert(ring < ARRAY_SIZE(class));
-	return class[ring];
-}
-
 static bool exec_noop(int fd,
 		      uint32_t *handles,
-		      unsigned ring,
+		      unsigned flags,
 		      bool write)
 {
 	struct drm_i915_gem_execbuffer2 execbuf;
@@ -97,9 +84,9 @@ static bool exec_noop(int fd,
 	memset(&execbuf, 0, sizeof(execbuf));
 	execbuf.buffers_ptr = to_user_pointer(exec);
 	execbuf.buffer_count = 3;
-	execbuf.flags = ring;
-	igt_debug("Queuing handle for %s on ring %d\n",
-		  write ? "writing" : "reading", ring & 0x7);
+	execbuf.flags = flags;
+	igt_debug("Queuing handle for %s on engine %d\n",
+		  write ? "writing" : "reading", flags);
 	return __gem_execbuf(fd, &execbuf) == 0;
 }
 
@@ -110,18 +97,17 @@ static bool still_busy(int fd, uint32_t handle)
 	return write;
 }
 
-static void semaphore(int fd, unsigned ring, uint32_t flags)
+static void semaphore(int fd, const struct intel_execution_engine2 *e)
 {
+	struct intel_execution_engine2 *__e;
 	uint32_t bbe = MI_BATCH_BUFFER_END;
-	const unsigned uabi = ring_to_class(ring & 63);
+	const unsigned uabi = e->class;
 	igt_spin_t *spin;
 	uint32_t handle[3];
 	uint32_t read, write;
 	uint32_t active;
 	unsigned i;
 
-	gem_require_ring(fd, ring | flags);
-
 	handle[TEST] = gem_create(fd, 4096);
 	handle[BATCH] = gem_create(fd, 4096);
 	gem_write(fd, handle[BATCH], 0, &bbe, sizeof(bbe));
@@ -129,18 +115,18 @@ static void semaphore(int fd, unsigned ring, uint32_t flags)
 	/* Create a long running batch which we can use to hog the GPU */
 	handle[BUSY] = gem_create(fd, 4096);
 	spin = igt_spin_new(fd,
-			    .engine = ring,
+			    .engine = e->flags,
 			    .dependency = handle[BUSY]);
 
 	/* Queue a batch after the busy, it should block and remain "busy" */
-	igt_assert(exec_noop(fd, handle, ring | flags, false));
+	igt_assert(exec_noop(fd, handle, e->flags, false));
 	igt_assert(still_busy(fd, handle[BUSY]));
 	__gem_busy(fd, handle[TEST], &read, &write);
 	igt_assert_eq(read, 1 << uabi);
 	igt_assert_eq(write, 0);
 
 	/* Requeue with a write */
-	igt_assert(exec_noop(fd, handle, ring | flags, true));
+	igt_assert(exec_noop(fd, handle, e->flags, true));
 	igt_assert(still_busy(fd, handle[BUSY]));
 	__gem_busy(fd, handle[TEST], &read, &write);
 	igt_assert_eq(read, 1 << uabi);
@@ -148,9 +134,9 @@ static void semaphore(int fd, unsigned ring, uint32_t flags)
 
 	/* Now queue it for a read across all available rings */
 	active = 0;
-	for (i = I915_EXEC_RENDER; i <= I915_EXEC_VEBOX; i++) {
-		if (exec_noop(fd, handle, i | flags, false))
-			active |= 1 << ring_to_class(i);
+	__for_each_physical_engine(fd, __e) {
+		if (exec_noop(fd, handle, __e->flags, false))
+			active |= 1 << __e->class;
 	}
 	igt_assert(still_busy(fd, handle[BUSY]));
 	__gem_busy(fd, handle[TEST], &read, &write);
@@ -173,7 +159,7 @@ static void semaphore(int fd, unsigned ring, uint32_t flags)
 
 #define PARALLEL 1
 #define HANG 2
-static void one(int fd, unsigned ring, unsigned test_flags)
+static void one(int fd, const struct intel_execution_engine2 *e, unsigned test_flags)
 {
 	const int gen = intel_gen(intel_get_drm_devid(fd));
 	struct drm_i915_gem_exec_object2 obj[2];
@@ -182,7 +168,7 @@ static void one(int fd, unsigned ring, unsigned test_flags)
 	struct drm_i915_gem_relocation_entry store[1024+1];
 	struct drm_i915_gem_execbuffer2 execbuf;
 	unsigned size = ALIGN(ARRAY_SIZE(store)*16 + 4, 4096);
-	const unsigned uabi = ring_to_class(ring & 63);
+	const unsigned uabi = e->class;
 	uint32_t read[2], write[2];
 	struct timespec tv;
 	uint32_t *batch, *bbe;
@@ -191,7 +177,7 @@ static void one(int fd, unsigned ring, unsigned test_flags)
 	memset(&execbuf, 0, sizeof(execbuf));
 	execbuf.buffers_ptr = to_user_pointer(obj);
 	execbuf.buffer_count = 2;
-	execbuf.flags = ring;
+	execbuf.flags = e->flags;
 	if (gen < 6)
 		execbuf.flags |= I915_EXEC_SECURE;
 
@@ -263,17 +249,18 @@ static void one(int fd, unsigned ring, unsigned test_flags)
 	__gem_busy(fd, obj[BATCH].handle, &read[BATCH], &write[BATCH]);
 
 	if (test_flags & PARALLEL) {
-		unsigned other;
+		struct intel_execution_engine2 *e2;
 
-		for_each_physical_engine(fd, other) {
-			if (other == ring)
+		__for_each_physical_engine(fd, e2) {
+			if (e2->class == e->class &&
+			    e2->instance == e->instance)
 				continue;
 
-			if (!gem_can_store_dword(fd, other))
+			if (!gem_class_can_store_dword(fd, e->class))
 				continue;
 
-			igt_debug("Testing %s in parallel\n", e__->name);
-			one(fd, other, 0);
+			igt_debug("Testing %s in parallel\n", e2->name);
+			one(fd, e2, 0);
 		}
 	}
 
@@ -439,11 +426,11 @@ static bool has_extended_busy_ioctl(int fd)
 	return read != 0;
 }
 
-static void basic(int fd, unsigned ring, unsigned flags)
+static void basic(int fd, const struct intel_execution_engine2 *e, unsigned flags)
 {
 	igt_spin_t *spin =
 		igt_spin_new(fd,
-			     .engine = ring,
+			     .engine = e->flags,
 			     .flags = IGT_SPIN_NO_PREEMPTION);
 	struct timespec tv;
 	int timeout;
@@ -475,13 +462,14 @@ static void basic(int fd, unsigned ring, unsigned flags)
 
 igt_main
 {
-	const struct intel_execution_engine *e;
+	const struct intel_execution_engine2 *e;
 	int fd = -1;
 
 	igt_fixture {
 		fd = drm_open_driver_master(DRIVER_INTEL);
 		igt_require_gem(fd);
-		igt_require(gem_can_store_dword(fd, 0));
+		igt_require(gem_class_can_store_dword(fd,
+						     I915_ENGINE_CLASS_RENDER));
 	}
 
 	igt_subtest_group {
@@ -489,14 +477,13 @@ igt_main
 			igt_fork_hang_detector(fd);
 		}
 
-		for (e = intel_execution_engines; e->name; e++) {
+		__for_each_physical_engine(fd, e) {
 			igt_subtest_group {
 				igt_subtest_f("%sbusy-%s",
-					      e->exec_id == 0 ? "basic-" : "",
-					      e->name) {
-					igt_require(gem_has_ring(fd, e->exec_id | e->flags));
+					      e->class == I915_ENGINE_CLASS_RENDER
+					      ? "basic-" : "", e->name) {
 					gem_quiescent_gpu(fd);
-					basic(fd, e->exec_id | e->flags, 0);
+					basic(fd, e, false);
 				}
 			}
 		}
@@ -507,31 +494,22 @@ igt_main
 				gem_require_mmap_wc(fd);
 			}
 
-			for (e = intel_execution_engines; e->name; e++) {
-				/* default exec-id is purely symbolic */
-				if (e->exec_id == 0)
-					continue;
-
+			__for_each_physical_engine(fd, e) {
 				igt_subtest_f("extended-%s", e->name) {
-					igt_require(gem_ring_has_physical_engine(fd, e->exec_id | e->flags));
-					igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
+					igt_require(gem_class_can_store_dword(fd,
+						     e->class));
 					gem_quiescent_gpu(fd);
-					one(fd, e->exec_id | e->flags, 0);
+					one(fd, e, 0);
 					gem_quiescent_gpu(fd);
 				}
 			}
 
-			for (e = intel_execution_engines; e->name; e++) {
-				/* default exec-id is purely symbolic */
-				if (e->exec_id == 0)
-					continue;
-
+			__for_each_physical_engine(fd, e) {
 				igt_subtest_f("extended-parallel-%s", e->name) {
-					igt_require(gem_ring_has_physical_engine(fd, e->exec_id | e->flags));
-					igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
+					igt_require(gem_class_can_store_dword(fd, e->class));
 
 					gem_quiescent_gpu(fd);
-					one(fd, e->exec_id | e->flags, PARALLEL);
+					one(fd, e, PARALLEL);
 					gem_quiescent_gpu(fd);
 				}
 			}
@@ -543,13 +521,9 @@ igt_main
 				igt_require(has_semaphores(fd));
 			}
 
-			for (e = intel_execution_engines; e->name; e++) {
-				/* default exec-id is purely symbolic */
-				if (e->exec_id == 0)
-					continue;
-
+			__for_each_physical_engine(fd, e) {
 				igt_subtest_f("extended-semaphore-%s", e->name)
-					semaphore(fd, e->exec_id, e->flags);
+					semaphore(fd, e);
 			}
 		}
 
@@ -568,14 +542,13 @@ igt_main
 			hang = igt_allow_hang(fd, 0, 0);
 		}
 
-		for (e = intel_execution_engines; e->name; e++) {
+		__for_each_physical_engine(fd, e) {
 			igt_subtest_f("%shang-%s",
-				      e->exec_id == 0 ? "basic-" : "",
-				      e->name) {
+				      e->class == I915_ENGINE_CLASS_RENDER
+				      ? "basic-" : "", e->name) {
 				igt_skip_on_simulation();
-				igt_require(gem_has_ring(fd, e->exec_id | e->flags));
 				gem_quiescent_gpu(fd);
-				basic(fd, e->exec_id | e->flags, HANG);
+				basic(fd, e, true);
 			}
 		}
 
@@ -585,18 +558,13 @@ igt_main
 				gem_require_mmap_wc(fd);
 			}
 
-			for (e = intel_execution_engines; e->name; e++) {
-				/* default exec-id is purely symbolic */
-				if (e->exec_id == 0)
-					continue;
-
+			__for_each_physical_engine(fd, e) {
 				igt_subtest_f("extended-hang-%s", e->name) {
 					igt_skip_on_simulation();
-					igt_require(gem_ring_has_physical_engine(fd, e->exec_id | e->flags));
-					igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
+					igt_require(gem_class_can_store_dword(fd, e->class));
 
 					gem_quiescent_gpu(fd);
-					one(fd, e->exec_id | e->flags, HANG);
+					one(fd, e, HANG);
 					gem_quiescent_gpu(fd);
 				}
 			}
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#18 lore raw

PATCH v24 8/14 test/i915: gem_cs_tlb: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

---
 tests/i915/gem_cs_tlb.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
tests/i915/gem_cs_tlb.c +4 -4
index 51e1c4e19930..13de5499f1c7 100644
@@ -140,7 +140,7 @@ static void run_on_ring(int fd, unsigned ring_id, const char *ring_name)
 
 igt_main
 {
-	const struct intel_execution_engine *e;
+	const struct intel_execution_engine2 *e;
 	int fd = -1;
 
 	igt_skip_on_simulation();
@@ -150,9 +150,9 @@ igt_main
 		igt_require_gem(fd);
 	}
 
-	for (e = intel_execution_engines; e->name; e++)
-		igt_subtest_f("%s%s", e->exec_id ? "" : "basic-", e->name)
-			run_on_ring(fd, e->exec_id | e->flags, e->name);
+	__for_each_physical_engine(fd, e)
+		igt_subtest_f("%s", e->name)
+			run_on_ring(fd, e->flags, e->name);
 
 	igt_fixture
 		close(fd);
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#19 lore raw

PATCH v24 9/14 test/i915: gem_ctx_exec: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

Cc Chris Wilson <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Daniel Vetter <[email protected]>
---
 tests/i915/gem_ctx_exec.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)
tests/i915/gem_ctx_exec.c +7 -9
index b8e0e0743892..614a9f401931 100644
@@ -111,7 +111,8 @@ static void big_exec(int fd, uint32_t handle, int ring)
 	gem_sync(fd, handle);
 }
 
-static void invalid_context(int fd, unsigned ring, uint32_t handle)
+static void invalid_context(int fd, const struct intel_execution_engine2 *e,
+			    uint32_t handle)
 {
 	struct drm_i915_gem_exec_object2 obj = {
 		.handle = handle,
@@ -119,7 +120,7 @@ static void invalid_context(int fd, unsigned ring, uint32_t handle)
 	struct drm_i915_gem_execbuffer2 execbuf = {
 		.buffers_ptr = to_user_pointer(&obj),
 		.buffer_count = 1,
-		.flags = ring,
+		.flags = e->flags,
 	};
 	unsigned int i;
 	uint32_t ctx;
@@ -198,7 +199,7 @@ static void norecovery(int i915)
 igt_main
 {
 	const uint32_t batch[2] = { 0, MI_BATCH_BUFFER_END };
-	const struct intel_execution_engine *e;
+	const struct intel_execution_engine2 *e;
 	uint32_t handle;
 	uint32_t ctx_id;
 	int fd;
@@ -228,12 +229,9 @@ igt_main
 		gem_sync(fd, handle);
 	}
 
-	for (e = intel_execution_engines; e->name; e++) {
-		igt_subtest_f("basic-invalid-context-%s", e->name) {
-			gem_require_ring(fd, e->exec_id | e->flags);
-			invalid_context(fd, e->exec_id | e->flags, handle);
-		}
-	}
+	__for_each_physical_engine(fd, e)
+		igt_subtest_f("basic-invalid-context-%s", e->name)
+			invalid_context(fd, e, handle);
 
 	igt_subtest("eviction")
 		big_exec(fd, handle, 0);
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#20 lore raw

PATCH v24 10/14 test/i915: gem_exec_basic: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

---
 tests/i915/gem_exec_basic.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
tests/i915/gem_exec_basic.c +14 -14
index dcb83864b1c1..140cbdbc66a5 100644
@@ -42,12 +42,12 @@ static void batch_fini(int fd, uint32_t handle)
 	gem_close(fd, handle);
 }
 
-static void noop(int fd, unsigned ring)
+static void noop(int fd, uint64_t flags)
 {
 	struct drm_i915_gem_execbuffer2 execbuf;
 	struct drm_i915_gem_exec_object2 exec;
 
-	gem_require_ring(fd, ring);
+	gem_require_ring(fd, flags);
 
 	memset(&exec, 0, sizeof(exec));
 
@@ -56,18 +56,18 @@ static void noop(int fd, unsigned ring)
 	memset(&execbuf, 0, sizeof(execbuf));
 	execbuf.buffers_ptr = to_user_pointer(&exec);
 	execbuf.buffer_count = 1;
-	execbuf.flags = ring;
+	execbuf.flags = flags;
 	gem_execbuf(fd, &execbuf);
 
 	batch_fini(fd, exec.handle);
 }
 
-static void readonly(int fd, unsigned ring)
+static void readonly(int fd, uint64_t flags)
 {
 	struct drm_i915_gem_execbuffer2 *execbuf;
 	struct drm_i915_gem_exec_object2 exec;
 
-	gem_require_ring(fd, ring);
+	gem_require_ring(fd, flags);
 
 	memset(&exec, 0, sizeof(exec));
 	exec.handle = batch_create(fd);
@@ -77,7 +77,7 @@ static void readonly(int fd, unsigned ring)
 
 	execbuf->buffers_ptr = to_user_pointer(&exec);
 	execbuf->buffer_count = 1;
-	execbuf->flags = ring;
+	execbuf->flags = flags;
 	igt_assert(mprotect(execbuf, 4096, PROT_READ) == 0);
 
 	gem_execbuf(fd, execbuf);
@@ -87,13 +87,13 @@ static void readonly(int fd, unsigned ring)
 	batch_fini(fd, exec.handle);
 }
 
-static void gtt(int fd, unsigned ring)
+static void gtt(int fd, uint64_t flags)
 {
 	struct drm_i915_gem_execbuffer2 *execbuf;
 	struct drm_i915_gem_exec_object2 *exec;
 	uint32_t handle;
 
-	gem_require_ring(fd, ring);
+	gem_require_ring(fd, flags);
 
 	handle = gem_create(fd, 4096);
 
@@ -106,7 +106,7 @@ static void gtt(int fd, unsigned ring)
 
 	execbuf->buffers_ptr = to_user_pointer(exec);
 	execbuf->buffer_count = 1;
-	execbuf->flags = ring;
+	execbuf->flags = flags;
 
 	gem_execbuf(fd, execbuf);
 
@@ -116,7 +116,7 @@ static void gtt(int fd, unsigned ring)
 
 igt_main
 {
-	const struct intel_execution_engine *e;
+	const struct intel_execution_engine2 *e;
 	int fd = -1;
 
 	igt_fixture {
@@ -126,13 +126,13 @@ igt_main
 		igt_fork_hang_detector(fd);
 	}
 
-	for (e = intel_execution_engines; e->name; e++) {
+	__for_each_physical_engine(fd, e) {
 		igt_subtest_f("basic-%s", e->name)
-			noop(fd, e->exec_id | e->flags);
+			noop(fd, e->flags);
 		igt_subtest_f("readonly-%s", e->name)
-			readonly(fd, e->exec_id | e->flags);
+			readonly(fd, e->flags);
 		igt_subtest_f("gtt-%s", e->name)
-			gtt(fd, e->exec_id | e->flags);
+			gtt(fd, e->flags);
 	}
 
 	igt_fixture {
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#21 lore raw

PATCH v24 11/14 test/i915: gem_exec_parallel: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

---
 tests/i915/gem_exec_parallel.c | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)
tests/i915/gem_exec_parallel.c +14 -12
index 7597befb0b39..8a4482e52a6e 100644
@@ -149,7 +149,7 @@ static void *thread(void *data)
 	return NULL;
 }
 
-static void all(int fd, unsigned engine, unsigned flags)
+static void all(int fd, struct intel_execution_engine2 *engine, unsigned flags)
 {
 	const int gen = intel_gen(intel_get_drm_devid(fd));
 	pthread_mutex_t mutex;
@@ -170,15 +170,15 @@ static void all(int fd, unsigned engine, unsigned flags)
 	}
 
 	nengine = 0;
-	if (engine == ALL_ENGINES) {
-		for_each_physical_engine(fd, engine) {
-			if (gem_can_store_dword(fd, engine))
-				engines[nengine++] = engine;
+	if (!engine) {
+		struct intel_execution_engine2 *e;
+		__for_each_physical_engine(fd, e) {
+			if (gem_class_can_store_dword(fd, e->class))
+				engines[nengine++] = e->flags;
 		}
 	} else {
-		igt_require(gem_has_ring(fd, engine));
-		igt_require(gem_can_store_dword(fd, engine));
-		engines[nengine++] = engine;
+		igt_require(gem_class_can_store_dword(fd, engine->class));
+		engines[nengine++] = engine->flags;
 	}
 	igt_require(nengine);
 
@@ -229,6 +229,8 @@ static void all(int fd, unsigned engine, unsigned flags)
 
 igt_main
 {
+	struct intel_execution_engine2 *e;
+
 	const struct mode {
 		const char *name;
 		unsigned flags;
@@ -249,16 +251,16 @@ igt_main
 
 	for (const struct mode *m = modes; m->name; m++)
 		igt_subtest_f("%s", *m->name ? m->name : "basic")
-			all(fd, ALL_ENGINES, m->flags);
+			/* NULL value means all engines */
+			all(fd, NULL, m->flags);
 
-	for (const struct intel_execution_engine *e = intel_execution_engines;
-	     e->name; e++) {
+	__for_each_physical_engine(fd, e) {
 		for (const struct mode *m = modes; m->name; m++)
 			igt_subtest_f("%s%s%s",
 				      e->name,
 				      *m->name ? "-" : "",
 				      m->name)
-				all(fd, e->exec_id | e->flags, m->flags);
+				all(fd, e, m->flags);
 	}
 
 	igt_fixture {
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Reviewed-by on v24 11/14
#22 lore raw

Re: [igt-dev] [PATCH v24 11/14] test/i915: gem_exec_parallel: use the gem_engine_topology library

Quoting Andi Shyti (2019-05-13 18:56:10)

Quoted 55 lines

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

---
 tests/i915/gem_exec_parallel.c | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)
tests/i915/gem_exec_parallel.c +10 -8
index 7597befb0b39..8a4482e52a6e 100644
@@ -149,7 +149,7 @@ static void *thread(void *data)
        return NULL;
 }
 
-static void all(int fd, unsigned engine, unsigned flags)
+static void all(int fd, struct intel_execution_engine2 *engine, unsigned flags)
 {
        const int gen = intel_gen(intel_get_drm_devid(fd));
        pthread_mutex_t mutex;
@@ -170,15 +170,15 @@ static void all(int fd, unsigned engine, unsigned flags)
        }
 
        nengine = 0;
-       if (engine == ALL_ENGINES) {
-               for_each_physical_engine(fd, engine) {
-                       if (gem_can_store_dword(fd, engine))
-                               engines[nengine++] = engine;
+       if (!engine) {
+               struct intel_execution_engine2 *e;
+               __for_each_physical_engine(fd, e) {
+                       if (gem_class_can_store_dword(fd, e->class))
+                               engines[nengine++] = e->flags;
                }
        } else {
-               igt_require(gem_has_ring(fd, engine));
-               igt_require(gem_can_store_dword(fd, engine));
-               engines[nengine++] = engine;
+               igt_require(gem_class_can_store_dword(fd, engine->class));
+               engines[nengine++] = engine->flags;
        }
        igt_require(nengine);
 
@@ -229,6 +229,8 @@ static void all(int fd, unsigned engine, unsigned flags)
 
 igt_main
 {
+       struct intel_execution_engine2 *e;
+
        const struct mode {
                const char *name;
                unsigned flags;

tests/i915/gem_exec_parallel.c igt_main · line 254

Quoted 5 lines
tests/i915/gem_exec_parallel.c +1 -1
@@ -249,16 +251,16 @@ igt_main
 
        for (const struct mode *m = modes; m->name; m++)
                igt_subtest_f("%s", *m->name ? m->name : "basic")
-                       all(fd, ALL_ENGINES, m->flags);
+                       /* NULL value means all engines */

Shrug. Seems easy enough to infer.

tests/i915/gem_exec_parallel.c igt_main · line 264

Quoted 13 lines
tests/i915/gem_exec_parallel.c +3 -3
+                       all(fd, NULL, m->flags);
 
-       for (const struct intel_execution_engine *e = intel_execution_engines;
-            e->name; e++) {
+       __for_each_physical_engine(fd, e) {
                for (const struct mode *m = modes; m->name; m++)
                        igt_subtest_f("%s%s%s",
                                      e->name,
                                      *m->name ? "-" : "",
                                      m->name)
-                               all(fd, e->exec_id | e->flags, m->flags);
+                               all(fd, e, m->flags);
        }

-Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

author
#23 lore raw

PATCH v24 12/14 test/i915: gem_exec_store: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

---
 tests/i915/gem_exec_store.c | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)
tests/i915/gem_exec_store.c +18 -18
index a767348933ac..b74c3d84bcc2 100644
@@ -37,7 +37,7 @@
 
 #define ENGINE_MASK  (I915_EXEC_RING_MASK | LOCAL_I915_EXEC_BSD_MASK)
 
-static void store_dword(int fd, unsigned ring)
+static void store_dword(int fd, const struct intel_execution_engine2 *e)
 {
 	const int gen = intel_gen(intel_get_drm_devid(fd));
 	struct drm_i915_gem_exec_object2 obj[2];
@@ -46,14 +46,13 @@ static void store_dword(int fd, unsigned ring)
 	uint32_t batch[16];
 	int i;
 
-	gem_require_ring(fd, ring);
-	igt_require(gem_can_store_dword(fd, ring));
+	igt_require(gem_class_can_store_dword(fd, e->class));
 
 	intel_detect_and_clear_missed_interrupts(fd);
 	memset(&execbuf, 0, sizeof(execbuf));
 	execbuf.buffers_ptr = to_user_pointer(obj);
 	execbuf.buffer_count = 2;
-	execbuf.flags = ring;
+	execbuf.flags = e->flags;
 	if (gen > 3 && gen < 6)
 		execbuf.flags |= I915_EXEC_SECURE;
 
@@ -97,7 +96,8 @@ static void store_dword(int fd, unsigned ring)
 }
 
 #define PAGES 1
-static void store_cachelines(int fd, unsigned ring, unsigned int flags)
+static void store_cachelines(int fd, const struct intel_execution_engine2 *e,
+			     unsigned int flags)
 {
 	const int gen = intel_gen(intel_get_drm_devid(fd));
 	struct drm_i915_gem_exec_object2 *obj;
@@ -110,13 +110,12 @@ static void store_cachelines(int fd, unsigned ring, unsigned int flags)
 	reloc = calloc(NCACHELINES, sizeof(*reloc));
 	igt_assert(reloc);
 
-	gem_require_ring(fd, ring);
-	igt_require(gem_can_store_dword(fd, ring));
+	igt_require(gem_class_can_store_dword(fd, e->class));
 
 	intel_detect_and_clear_missed_interrupts(fd);
 	memset(&execbuf, 0, sizeof(execbuf));
 	execbuf.buffer_count = flags & PAGES ? NCACHELINES + 1 : 2;
-	execbuf.flags = ring;
+	execbuf.flags = e->flags;
 	if (gen > 3 && gen < 6)
 		execbuf.flags |= I915_EXEC_SECURE;
 
@@ -180,12 +179,13 @@ static void store_all(int fd)
 {
 	const int gen = intel_gen(intel_get_drm_devid(fd));
 	struct drm_i915_gem_exec_object2 obj[2];
+	struct intel_execution_engine2 *engine;
 	struct drm_i915_gem_relocation_entry reloc[32];
 	struct drm_i915_gem_execbuffer2 execbuf;
 	unsigned engines[16], permuted[16];
 	uint32_t batch[16];
 	uint64_t offset;
-	unsigned engine, nengine;
+	unsigned nengine;
 	int value;
 	int i, j;
 
@@ -220,14 +220,14 @@ static void store_all(int fd)
 
 	nengine = 0;
 	intel_detect_and_clear_missed_interrupts(fd);
-	for_each_physical_engine(fd, engine) {
-		if (!gem_can_store_dword(fd, engine))
+	__for_each_physical_engine(fd, engine) {
+		if (!gem_class_can_store_dword(fd, engine->class))
 			continue;
 
 		igt_assert(2*(nengine+1)*sizeof(batch) <= 4096);
 
 		execbuf.flags &= ~ENGINE_MASK;
-		execbuf.flags |= engine;
+		execbuf.flags |= engine->flags;
 
 		j = 2*nengine;
 		reloc[j].target_handle = obj[0].handle;
@@ -259,7 +259,7 @@ static void store_all(int fd)
 		execbuf.batch_start_offset = j*sizeof(batch);
 		gem_execbuf(fd, &execbuf);
 
-		engines[nengine++] = engine;
+		engines[nengine++] = engine->flags;
 	}
 	gem_sync(fd, obj[1].handle);
 
@@ -311,7 +311,7 @@ static int print_welcome(int fd)
 
 igt_main
 {
-	const struct intel_execution_engine *e;
+	const struct intel_execution_engine2 *e;
 	int fd;
 
 	igt_fixture {
@@ -329,15 +329,15 @@ igt_main
 		igt_fork_hang_detector(fd);
 	}
 
-	for (e = intel_execution_engines; e->name; e++) {
+	__for_each_physical_engine(fd, e) {
 		igt_subtest_f("basic-%s", e->name)
-			store_dword(fd, e->exec_id | e->flags);
+			store_dword(fd, e);
 
 		igt_subtest_f("cachelines-%s", e->name)
-			store_cachelines(fd, e->exec_id | e->flags, 0);
+			store_cachelines(fd, e, 0);
 
 		igt_subtest_f("pages-%s", e->name)
-			store_cachelines(fd, e->exec_id | e->flags, PAGES);
+			store_cachelines(fd, e, PAGES);
 	}
 
 	igt_subtest("basic-all")
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#24 lore raw

PATCH v24 13/14 test/i915: gem_wait: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

---
 tests/i915/gem_wait.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
tests/i915/gem_wait.c +12 -12
index ee2ecfa0d056..b5e32219d77b 100644
@@ -134,7 +134,7 @@ static void basic(int fd, unsigned engine, unsigned flags)
 
 igt_main
 {
-	const struct intel_execution_engine *e;
+	const struct intel_execution_engine2 *e;
 	int fd = -1;
 
 	igt_skip_on_simulation();
@@ -177,27 +177,27 @@ igt_main
 			basic(fd, ALL_ENGINES, WRITE);
 		}
 
-		for (e = intel_execution_engines; e->name; e++) {
+		__for_each_physical_engine(fd, e) {
 			igt_subtest_group {
 				igt_subtest_f("busy-%s", e->name) {
 					gem_quiescent_gpu(fd);
-					basic(fd, e->exec_id | e->flags, BUSY);
+					basic(fd, e->flags, BUSY);
 				}
 				igt_subtest_f("wait-%s", e->name) {
 					gem_quiescent_gpu(fd);
-					basic(fd, e->exec_id | e->flags, 0);
+					basic(fd, e->flags, 0);
 				}
 				igt_subtest_f("await-%s", e->name) {
 					gem_quiescent_gpu(fd);
-					basic(fd, e->exec_id | e->flags, AWAIT);
+					basic(fd, e->flags, AWAIT);
 				}
 				igt_subtest_f("write-busy-%s", e->name) {
 					gem_quiescent_gpu(fd);
-					basic(fd, e->exec_id | e->flags, BUSY | WRITE);
+					basic(fd, e->flags, BUSY | WRITE);
 				}
 				igt_subtest_f("write-wait-%s", e->name) {
 					gem_quiescent_gpu(fd);
-					basic(fd, e->exec_id | e->flags, WRITE);
+					basic(fd, e->flags, WRITE);
 				}
 			}
 		}
@@ -234,22 +234,22 @@ igt_main
 			basic(fd, ALL_ENGINES, WRITE | HANG);
 		}
 
-		for (e = intel_execution_engines; e->name; e++) {
+		__for_each_physical_engine(fd, e) {
 			igt_subtest_f("hang-busy-%s", e->name) {
 				gem_quiescent_gpu(fd);
-				basic(fd, e->exec_id | e->flags, HANG | BUSY);
+				basic(fd, e->flags, HANG | BUSY);
 			}
 			igt_subtest_f("hang-wait-%s", e->name) {
 				gem_quiescent_gpu(fd);
-				basic(fd, e->exec_id | e->flags, HANG);
+				basic(fd, e->flags, HANG);
 			}
 			igt_subtest_f("hang-busy-write-%s", e->name) {
 				gem_quiescent_gpu(fd);
-				basic(fd, e->exec_id | e->flags, HANG | WRITE | BUSY);
+				basic(fd, e->flags, HANG | WRITE | BUSY);
 			}
 			igt_subtest_f("hang-wait-write-%s", e->name) {
 				gem_quiescent_gpu(fd);
-				basic(fd, e->exec_id | e->flags, HANG | WRITE);
+				basic(fd, e->flags, HANG | WRITE);
 			}
 		}
 
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
author
#25 lore raw

PATCH v24 14/14 test/i915: i915_hangman: use the gem_engine_topology library

In reply to Andi Shyti

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

---
 tests/i915/i915_hangman.c | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)
tests/i915/i915_hangman.c +4 -11
index 9a1d58897ca1..bb5521e03dd3 100644
@@ -256,7 +256,7 @@ static void hangcheck_unterminated(void)
 
 igt_main
 {
-	const struct intel_execution_engine *e;
+	const struct intel_execution_engine2 *e;
 	igt_hang_t hang = {};
 
 	igt_skip_on_simulation();
@@ -276,16 +276,9 @@ igt_main
 	igt_subtest("error-state-basic")
 		test_error_state_basic();
 
-	for (e = intel_execution_engines; e->name; e++) {
-		if (e->exec_id == 0)
-			continue;
-
-		igt_subtest_f("error-state-capture-%s", e->name) {
-			igt_require(gem_ring_has_physical_engine(device, e->exec_id | e->flags));
-			test_error_state_capture(e->exec_id | e->flags,
-						 e->full_name);
-		}
-	}
+	__for_each_physical_engine(device, e)
+		igt_subtest_f("error-state-capture-%s", e->name)
+			test_error_state_capture(e->flags, e->name);
 
 	igt_subtest("hangcheck-unterminated")
 		hangcheck_unterminated();
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#26 lore raw

Re: [igt-dev] [PATCH v24 14/14] test/i915: i915_hangman: use the gem_engine_topology library

Quoting Andi Shyti (2019-05-13 18:56:13)

Quoted 2 lines

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

I was hoping the last patch was to remove struct intel_execution_engine after all the conversion to engine2 (and possibly rename). :) -Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

author
#27 lore raw

Re: [igt-dev] [PATCH v24 14/14] test/i915: i915_hangman: use the gem_engine_topology library

Quoted 6 lines · Chris Wilson

Quoting Andi Shyti (2019-05-13 18:56:13)

Quoted 2 lines

Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library.

I was hoping the last patch was to remove struct intel_execution_engine after all the conversion to engine2 (and possibly rename). :)

same here, I have another patches as well
We will get it removed at some point (soon?) :)

Andi
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#28 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for new engine discovery interface

In reply to Andi Shyti
== Series Details ==

== Series Details ==

Series: new engine discovery interface
URL : https://patchwork.freedesktop.org/series/60595/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6077 -> IGTPW_2975
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/60595/revisions/1/mbox/

Known issues
------------

Here are the changes found in IGTPW_2975 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_suspend@basic-s4-devices:
- fi-kbl-7500u: [PASS][1] -> [DMESG-WARN][2] ([fdo#105128] / [fdo#107139])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/fi-kbl-7500u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/fi-kbl-7500u/igt@[email protected]

* igt@i915_pm_rpm@module-reload:
- fi-skl-6770hq: [PASS][3] -> [FAIL][4] ([fdo#108511])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/fi-skl-6770hq/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/fi-skl-6770hq/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [PASS][5] -> [DMESG-WARN][6] ([fdo#102614])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/fi-hsw-peppy/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/fi-hsw-peppy/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- fi-ilk-650: [PASS][7] -> [DMESG-WARN][8] ([fdo#106387])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/fi-ilk-650/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/fi-ilk-650/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live_hangcheck:
- {fi-icl-y}: [INCOMPLETE][9] ([fdo#107713] / [fdo#108569]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/fi-icl-y/igt@i915_selftest@live_hangcheck.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/fi-icl-y/igt@i915_selftest@live_hangcheck.html

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#105128]: https://bugs.freedesktop.org/show_bug.cgi?id=105128
[fdo#106387]: https://bugs.freedesktop.org/show_bug.cgi?id=106387
[fdo#107139]: https://bugs.freedesktop.org/show_bug.cgi?id=107139
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108511]: https://bugs.freedesktop.org/show_bug.cgi?id=108511
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569

Participating hosts (53 -> 45)
------------------------------

Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-icl-u2 fi-bsw-cyan fi-byt-clapper fi-bdw-samus

Build changes
-------------

* IGT: IGT_4984 -> IGTPW_2975

CI_DRM_6077: f175074b17cfeb7d64cfcfd6b2641641a10d4deb @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2975: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/
IGT_4984: 66c887d2f7a92a4a97acd9611d5342afc5d4f815 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Testlist changes ==

+++ 135 lines
--- 184 lines

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#29 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for new engine discovery interface

In reply to Andi Shyti
== Series Details ==

== Series Details ==

Series: new engine discovery interface
URL : https://patchwork.freedesktop.org/series/60595/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6077_full -> IGTPW_2975_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/60595/revisions/1/mbox/

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_2975_full:

### IGT changes ###

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* {igt@kms_cursor_crc@pipe-c-cursor-suspend}:
- shard-apl: [PASS][1] -> [DMESG-WARN][2] +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-apl6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-apl6/igt@[email protected]

New tests
---------

New tests have been introduced between CI_DRM_6077_full and IGTPW_2975_full:

### New IGT tests (106) ###

* igt@gem_busy@basic-busy-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.00] s

* igt@gem_busy@basic-hang-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.01, 0.04] s

* igt@gem_busy@busy-bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_busy@busy-vcs0:
- Statuses : 6 pass(s)
- Exec time: [0.00] s

* igt@gem_busy@busy-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.00] s

* igt@gem_busy@busy-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.00] s

* igt@gem_busy@extended-bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.01, 0.04] s

* igt@gem_busy@extended-parallel-bcs0:
- Statuses : 1 incomplete(s) 5 pass(s)
- Exec time: [0.0, 0.04] s

* igt@gem_busy@extended-parallel-rcs0:
- Statuses : 1 incomplete(s) 5 pass(s)
- Exec time: [0.0, 0.04] s

* igt@gem_busy@extended-parallel-vcs0:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 0.04] s

* igt@gem_busy@extended-parallel-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.03] s

* igt@gem_busy@extended-parallel-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.02, 0.04] s

* igt@gem_busy@extended-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.01, 0.04] s

* igt@gem_busy@extended-semaphore-bcs0:
- Statuses : 4 pass(s) 2 skip(s)
- Exec time: [0.0, 0.00] s

* igt@gem_busy@extended-semaphore-rcs0:
- Statuses : 4 pass(s) 2 skip(s)
- Exec time: [0.0, 0.00] s

* igt@gem_busy@extended-semaphore-vcs0:
- Statuses : 4 pass(s) 2 skip(s)
- Exec time: [0.0, 0.01] s

* igt@gem_busy@extended-semaphore-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.00] s

* igt@gem_busy@extended-semaphore-vecs0:
- Statuses : 4 pass(s) 1 skip(s)
- Exec time: [0.0, 0.00] s

* igt@gem_busy@extended-vcs0:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 0.03] s

* igt@gem_busy@extended-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.03] s

* igt@gem_busy@extended-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.03] s

* igt@gem_cs_tlb@bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.72, 4.67] s

* igt@gem_cs_tlb@rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.74, 5.52] s

* igt@gem_cs_tlb@vcs0:
- Statuses : 6 pass(s)
- Exec time: [0.72, 4.54] s

* igt@gem_cs_tlb@vcs1:
- Statuses : 1 pass(s)
- Exec time: [1.59] s

* igt@gem_cs_tlb@vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.72, 4.70] s

* igt@gem_ctx_exec@basic-invalid-context-bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_ctx_exec@basic-invalid-context-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.00] s

* igt@gem_ctx_exec@basic-invalid-context-vcs0:
- Statuses : 6 pass(s)
- Exec time: [0.00] s

* igt@gem_ctx_exec@basic-invalid-context-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.00] s

* igt@gem_ctx_exec@basic-invalid-context-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@basic-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@basic-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@basic-vcs0:
- Statuses : 6 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@basic-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.0] s

* igt@gem_exec_basic@basic-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@gtt-bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@gtt-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@gtt-vcs0:
- Statuses : 6 pass(s)
- Exec time: [0.00] s

* igt@gem_exec_basic@gtt-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.0] s

* igt@gem_exec_basic@gtt-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@readonly-bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@readonly-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@readonly-vcs0:
- Statuses : 6 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@readonly-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.0] s

* igt@gem_exec_basic@readonly-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_parallel@bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.84, 2.70] s

* igt@gem_exec_parallel@bcs0-contexts:
- Statuses : 6 pass(s)
- Exec time: [1.27, 4.84] s

* igt@gem_exec_parallel@bcs0-fds:
- Statuses : 6 pass(s)
- Exec time: [1.27, 4.88] s

* igt@gem_exec_parallel@rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.78, 2.78] s

* igt@gem_exec_parallel@rcs0-contexts:
- Statuses : 6 pass(s)
- Exec time: [1.42, 5.21] s

* igt@gem_exec_parallel@rcs0-fds:
- Statuses : 6 pass(s)
- Exec time: [1.46, 5.78] s

* igt@gem_exec_parallel@vcs0:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 2.48] s

* igt@gem_exec_parallel@vcs0-contexts:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 4.81] s

* igt@gem_exec_parallel@vcs0-fds:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 4.86] s

* igt@gem_exec_parallel@vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.84] s

* igt@gem_exec_parallel@vcs1-contexts:
- Statuses : 1 pass(s)
- Exec time: [1.56] s

* igt@gem_exec_parallel@vcs1-fds:
- Statuses : 1 pass(s)
- Exec time: [1.63] s

* igt@gem_exec_parallel@vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.78, 2.64] s

* igt@gem_exec_parallel@vecs0-contexts:
- Statuses : 5 pass(s)
- Exec time: [1.34, 4.78] s

* igt@gem_exec_parallel@vecs0-fds:
- Statuses : 5 pass(s)
- Exec time: [1.63, 5.02] s

* igt@gem_exec_store@basic-bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.01, 0.02] s

* igt@gem_exec_store@basic-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.01] s

* igt@gem_exec_store@basic-vcs0:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 0.01] s

* igt@gem_exec_store@basic-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.01] s

* igt@gem_exec_store@basic-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.02] s

* igt@gem_exec_store@cachelines-bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.01] s

* igt@gem_exec_store@cachelines-rcs0:
- Statuses : 4 pass(s)
- Exec time: [0.01] s

* igt@gem_exec_store@cachelines-vcs0:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 0.01] s

* igt@gem_exec_store@cachelines-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.01] s

* igt@gem_exec_store@cachelines-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.02] s

* igt@gem_exec_store@pages-bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.01, 0.02] s

* igt@gem_exec_store@pages-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.01, 0.02] s

* igt@gem_exec_store@pages-vcs0:
- Statuses : 5 pass(s) 1 skip(s)
- Exec time: [0.0, 0.03] s

* igt@gem_exec_store@pages-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.01] s

* igt@gem_exec_store@pages-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.04] s

* igt@gem_wait@await-bcs0:
- Statuses : 6 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@await-rcs0:
- Statuses : 6 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@await-vcs0:
- Statuses : 6 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@await-vcs1:
- Statuses : 1 pass(s)
- Exec time: [1.02] s

* igt@gem_wait@await-vecs0:
- Statuses : 5 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@busy-bcs0:
- Statuses : 6 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@busy-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@busy-vcs0:
- Statuses : 6 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@busy-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@busy-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@wait-bcs0:
- Statuses : 6 pass(s)
- Exec time: [1.00, 1.02] s

* igt@gem_wait@wait-rcs0:
- Statuses : 6 pass(s)
- Exec time: [1.00, 1.02] s

* igt@gem_wait@wait-vcs0:
- Statuses : 6 pass(s)
- Exec time: [1.00, 1.01] s

* igt@gem_wait@wait-vcs1:
- Statuses : 1 pass(s)
- Exec time: [1.01] s

* igt@gem_wait@wait-vecs0:
- Statuses : 5 pass(s)
- Exec time: [1.00, 1.02] s

* igt@gem_wait@write-busy-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.50, 0.51] s

* igt@gem_wait@write-busy-rcs0:
- Statuses : 6 pass(s)
- Exec time: [0.50, 0.51] s

* igt@gem_wait@write-busy-vcs0:
- Statuses : 6 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@write-busy-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@write-busy-vecs0:
- Statuses : 5 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@write-wait-bcs0:
- Statuses : 6 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@write-wait-rcs0:
- Statuses : 6 pass(s)
- Exec time: [1.01, 1.05] s

* igt@gem_wait@write-wait-vcs0:
- Statuses : 6 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@write-wait-vcs1:
- Statuses : 1 pass(s)
- Exec time: [1.02] s

* igt@gem_wait@write-wait-vecs0:
- Statuses : 5 pass(s)
- Exec time: [1.01, 1.02] s

* igt@i915_hangman@error-state-capture-bcs0:
- Statuses : 6 pass(s)
- Exec time: [13.49, 15.77] s

* igt@i915_hangman@error-state-capture-rcs0:
- Statuses : 6 pass(s)
- Exec time: [12.43, 15.70] s

* igt@i915_hangman@error-state-capture-vcs0:
- Statuses : 6 pass(s)
- Exec time: [6.15, 14.53] s

* igt@i915_hangman@error-state-capture-vcs1:
- Statuses : 1 pass(s)
- Exec time: [14.13] s

* igt@i915_hangman@error-state-capture-vecs0:
- Statuses : 5 pass(s)
- Exec time: [13.32, 15.65] s

Known issues
------------

Here are the changes found in IGTPW_2975_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_tiled_swapping@non-threaded:
- shard-glk: [PASS][3] -> [DMESG-WARN][4] ([fdo#108686])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-glk7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-glk5/igt@[email protected]

* igt@i915_pm_rpm@i2c:
- shard-iclb: [PASS][5] -> [FAIL][6] ([fdo#104097])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-iclb8/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-iclb1/igt@[email protected]

* igt@i915_suspend@debugfs-reader:
- shard-apl: [PASS][7] -> [DMESG-WARN][8] ([fdo#108566]) +3 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-apl3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-apl2/igt@[email protected]

* igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic:
- shard-glk: [PASS][9] -> [FAIL][10] ([fdo#106509] / [fdo#107409])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-glk3/igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-glk1/igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic.html

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-render:
- shard-glk: [PASS][11] -> [FAIL][12] ([fdo#103167])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-glk9/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-render.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-glk6/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-render.html

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-msflip-blt:
- shard-iclb: [PASS][13] -> [FAIL][14] ([fdo#103167]) +3 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-iclb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-msflip-blt.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-iclb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-msflip-blt.html

* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: [PASS][15] -> [FAIL][16] ([fdo#103166])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-iclb4/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-iclb1/igt@[email protected]

* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][17] -> [SKIP][18] ([fdo#109441]) +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-iclb1/igt@kms_psr@psr2_cursor_render.html

#### Possible fixes ####

* igt@i915_pm_rps@waitboost:
- shard-apl: [FAIL][19] ([fdo#102250]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-apl6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-apl1/igt@[email protected]

* igt@i915_suspend@fence-restore-untiled:
- shard-apl: [DMESG-WARN][21] ([fdo#108566]) -> [PASS][22] +2 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-apl5/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-apl8/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [FAIL][23] ([fdo#103167]) -> [PASS][24] +3 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html

* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [SKIP][25] ([fdo#109441]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-iclb6/igt@kms_psr@psr2_no_drrs.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-iclb2/igt@kms_psr@psr2_no_drrs.html

* igt@kms_setmode@basic:
- shard-kbl: [FAIL][27] ([fdo#99912]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-kbl7/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-kbl3/igt@[email protected]

* igt@kms_sysfs_edid_timing:
- shard-iclb: [FAIL][29] ([fdo#100047]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6077/shard-iclb3/igt@kms_sysfs_edid_timing.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/shard-iclb7/igt@kms_sysfs_edid_timing.html

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#100047]: https://bugs.freedesktop.org/show_bug.cgi?id=100047
[fdo#102250]: https://bugs.freedesktop.org/show_bug.cgi?id=102250
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#104097]: https://bugs.freedesktop.org/show_bug.cgi?id=104097
[fdo#106509]: https://bugs.freedesktop.org/show_bug.cgi?id=106509
[fdo#107409]: https://bugs.freedesktop.org/show_bug.cgi?id=107409
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912

Participating hosts (10 -> 6)
------------------------------

Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005

Build changes
-------------

* IGT: IGT_4984 -> IGTPW_2975
* Piglit: piglit_4509 -> None

CI_DRM_6077: f175074b17cfeb7d64cfcfd6b2641641a10d4deb @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2975: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/
IGT_4984: 66c887d2f7a92a4a97acd9611d5342afc5d4f815 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2975/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#30 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for new engine discovery interface (rev2)

In reply to Andi Shyti
== Series Details ==

== Series Details ==

Series: new engine discovery interface (rev2)
URL : https://patchwork.freedesktop.org/series/60595/
State : failure

== Summary ==

CI Bug Log - changes from IGT_4989 -> IGTPW_2986
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_2986 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_2986, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://patchwork.freedesktop.org/api/1.0/series/60595/revisions/2/mbox/

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_2986:

### IGT changes ###

#### Possible regressions ####

* igt@prime_busy@basic-after-default:
- fi-apl-guc: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2986/fi-apl-guc/igt@[email protected]

Known issues
------------

Here are the changes found in IGTPW_2986 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live_contexts:
- fi-skl-gvtdvm: [PASS][2] -> [DMESG-FAIL][3] ([fdo#110235])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_4989/fi-skl-gvtdvm/igt@i915_selftest@live_contexts.html
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2986/fi-skl-gvtdvm/igt@i915_selftest@live_contexts.html

* igt@kms_chamelium@dp-edid-read:
- fi-kbl-7500u: [PASS][4] -> [WARN][5] ([fdo#109483])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_4989/fi-kbl-7500u/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2986/fi-kbl-7500u/igt@[email protected]

#### Possible fixes ####

* igt@amdgpu/amd_basic@userptr:
- fi-kbl-8809g: [DMESG-WARN][6] ([fdo#108965]) -> [PASS][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_4989/fi-kbl-8809g/igt@amdgpu/[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2986/fi-kbl-8809g/igt@amdgpu/[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#108965]: https://bugs.freedesktop.org/show_bug.cgi?id=108965
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#110235]: https://bugs.freedesktop.org/show_bug.cgi?id=110235
[fdo#110627]: https://bugs.freedesktop.org/show_bug.cgi?id=110627

Participating hosts (51 -> 46)
------------------------------

Additional (3): fi-byt-j1900 fi-apl-guc fi-pnv-d510
Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus

Build changes
-------------

* IGT: IGT_4989 -> IGTPW_2986

CI_DRM_6085: 48d8cf5cc0aadd21924d05ad3e86b08d8e0e1c50 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2986: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2986/
IGT_4989: 5b941737519c170c4710d1ec7823866ee080a67e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Testlist changes ==

+++ 135 lines
--- 184 lines

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2986/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#31 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for new engine discovery interface (rev3)

In reply to Andi Shyti
== Series Details ==

== Series Details ==

Series: new engine discovery interface (rev3)
URL : https://patchwork.freedesktop.org/series/60595/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6121 -> IGTPW_3027
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/60595/revisions/3/mbox/

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_3027:

### IGT changes ###

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@gem_exec_parallel@basic:
- {fi-icl-dsi}: [PASS][1] -> [FAIL][2] +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-icl-dsi/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-icl-dsi/igt@[email protected]

* igt@gem_exec_store@basic-all:
- {fi-icl-u2}: [PASS][3] -> [FAIL][4] +3 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-icl-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-icl-u2/igt@[email protected]

* igt@gem_wait@basic-await-all:
- {fi-icl-u3}: [PASS][5] -> [DMESG-FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-icl-u3/igt@[email protected]
- {fi-icl-u2}: [PASS][7] -> [DMESG-FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-icl-u2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-icl-u2/igt@[email protected]

* igt@gem_wait@basic-busy-all:
- {fi-icl-u3}: [PASS][9] -> [FAIL][10] +3 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-icl-u3/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-icl-u3/igt@[email protected]

* igt@runner@aborted:
- {fi-icl-u2}: NOTRUN -> [FAIL][11]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-icl-u2/igt@[email protected]
- {fi-icl-dsi}: NOTRUN -> [FAIL][12]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-icl-dsi/igt@[email protected]

Known issues
------------

Here are the changes found in IGTPW_3027 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live_hangcheck:
- fi-skl-iommu: [PASS][13] -> [INCOMPLETE][14] ([fdo#108602] / [fdo#108744])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-skl-iommu/igt@i915_selftest@live_hangcheck.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-skl-iommu/igt@i915_selftest@live_hangcheck.html
- fi-apl-guc: [PASS][15] -> [DMESG-FAIL][16] ([fdo#110620])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-apl-guc/igt@i915_selftest@live_hangcheck.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-apl-guc/igt@i915_selftest@live_hangcheck.html

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][17] -> [FAIL][18] ([fdo#109485])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-kbl-7500u/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-kbl-7500u/igt@[email protected]

* igt@kms_flip@basic-flip-vs-dpms:
- fi-bxt-dsi: [PASS][19] -> [INCOMPLETE][20] ([fdo#103927])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-bxt-dsi/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-bxt-dsi/igt@[email protected]

#### Possible fixes ####

* igt@gem_cpu_reloc@basic:
- {fi-icl-y}: [INCOMPLETE][21] ([fdo#107713] / [fdo#110246]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-icl-y/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-icl-y/igt@[email protected]

* igt@gem_mmap_gtt@basic-read-write-distinct:
- {fi-icl-u3}: [DMESG-WARN][23] ([fdo#107724]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-icl-u3/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-icl-u3/igt@[email protected]

* igt@i915_selftest@live_contexts:
- fi-skl-gvtdvm: [DMESG-FAIL][25] ([fdo#110235]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-skl-gvtdvm/igt@i915_selftest@live_contexts.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-skl-gvtdvm/igt@i915_selftest@live_contexts.html

* igt@i915_selftest@live_execlists:
- fi-apl-guc: [INCOMPLETE][27] ([fdo#103927] / [fdo#109720]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-apl-guc/igt@i915_selftest@live_execlists.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-apl-guc/igt@i915_selftest@live_execlists.html

* igt@prime_vgem@basic-fence-flip:
- fi-ilk-650: [DMESG-WARN][29] ([fdo#106387]) -> [PASS][30] +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-ilk-650/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-ilk-650/igt@[email protected]

#### Warnings ####

* igt@runner@aborted:
- fi-apl-guc: [FAIL][31] ([fdo#108622] / [fdo#109720]) -> [FAIL][32] ([fdo#110622])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/fi-apl-guc/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/fi-apl-guc/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#106387]: https://bugs.freedesktop.org/show_bug.cgi?id=106387
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108602]: https://bugs.freedesktop.org/show_bug.cgi?id=108602
[fdo#108622]: https://bugs.freedesktop.org/show_bug.cgi?id=108622
[fdo#108744]: https://bugs.freedesktop.org/show_bug.cgi?id=108744
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#109720]: https://bugs.freedesktop.org/show_bug.cgi?id=109720
[fdo#110235]: https://bugs.freedesktop.org/show_bug.cgi?id=110235
[fdo#110246]: https://bugs.freedesktop.org/show_bug.cgi?id=110246
[fdo#110620]: https://bugs.freedesktop.org/show_bug.cgi?id=110620
[fdo#110622]: https://bugs.freedesktop.org/show_bug.cgi?id=110622

Participating hosts (53 -> 46)
------------------------------

Missing (7): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus

Build changes
-------------

* IGT: IGT_5003 -> IGTPW_3027

CI_DRM_6121: 0a029524f22ca287ec7e515edc1258e7f806750c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3027: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/
IGT_5003: 54e6d651d1122dfb6578b8179f782d335fe15864 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Testlist changes ==

+++ 135 lines
--- 184 lines

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#32 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for new engine discovery interface (rev3)

In reply to Andi Shyti
== Series Details ==

== Series Details ==

Series: new engine discovery interface (rev3)
URL : https://patchwork.freedesktop.org/series/60595/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6121_full -> IGTPW_3027_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/60595/revisions/3/mbox/

New tests
---------

New tests have been introduced between CI_DRM_6121_full and IGTPW_3027_full:

### New IGT tests (106) ###

* igt@gem_busy@basic-busy-rcs0:
- Statuses : 4 pass(s)
- Exec time: [0.00] s

* igt@gem_busy@basic-hang-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.03] s

* igt@gem_busy@busy-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.00] s

* igt@gem_busy@busy-vcs0:
- Statuses : 5 pass(s)
- Exec time: [0.00, 0.01] s

* igt@gem_busy@busy-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.00] s

* igt@gem_busy@busy-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_busy@extended-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.03] s

* igt@gem_busy@extended-parallel-bcs0:
- Statuses : 1 incomplete(s) 4 pass(s)
- Exec time: [0.0, 0.04] s

* igt@gem_busy@extended-parallel-rcs0:
- Statuses : 1 incomplete(s) 4 pass(s)
- Exec time: [0.0, 0.03] s

* igt@gem_busy@extended-parallel-vcs0:
- Statuses : 4 pass(s) 1 skip(s)
- Exec time: [0.0, 0.04] s

* igt@gem_busy@extended-parallel-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.03] s

* igt@gem_busy@extended-parallel-vecs0:
- Statuses : 3 pass(s)
- Exec time: [0.03, 0.04] s

* igt@gem_busy@extended-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.03] s

* igt@gem_busy@extended-semaphore-bcs0:
- Statuses : 3 pass(s) 2 skip(s)
- Exec time: [0.0, 0.01] s

* igt@gem_busy@extended-semaphore-rcs0:
- Statuses : 3 pass(s) 2 skip(s)
- Exec time: [0.0, 0.01] s

* igt@gem_busy@extended-semaphore-vcs0:
- Statuses : 3 pass(s) 2 skip(s)
- Exec time: [0.0, 0.01] s

* igt@gem_busy@extended-semaphore-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.00] s

* igt@gem_busy@extended-semaphore-vecs0:
- Statuses : 3 pass(s) 1 skip(s)
- Exec time: [0.0, 0.01] s

* igt@gem_busy@extended-vcs0:
- Statuses : 4 pass(s) 1 skip(s)
- Exec time: [0.0, 0.04] s

* igt@gem_busy@extended-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.03] s

* igt@gem_busy@extended-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.01, 0.03] s

* igt@gem_cs_tlb@bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.74, 4.64] s

* igt@gem_cs_tlb@rcs0:
- Statuses : 4 pass(s)
- Exec time: [0.94, 5.15] s

* igt@gem_cs_tlb@vcs0:
- Statuses : 5 pass(s)
- Exec time: [0.90, 5.19] s

* igt@gem_cs_tlb@vcs1:
- Statuses : 1 pass(s)
- Exec time: [1.65] s

* igt@gem_cs_tlb@vecs0:
- Statuses : 4 pass(s)
- Exec time: [1.43, 24.49] s

* igt@gem_ctx_exec@basic-invalid-context-bcs0:
- Statuses : 4 pass(s)
- Exec time: [0.00] s

* igt@gem_ctx_exec@basic-invalid-context-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.00] s

* igt@gem_ctx_exec@basic-invalid-context-vcs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_ctx_exec@basic-invalid-context-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.00] s

* igt@gem_ctx_exec@basic-invalid-context-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@basic-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@basic-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@basic-vcs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@basic-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.0] s

* igt@gem_exec_basic@basic-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.00] s

* igt@gem_exec_basic@gtt-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.00] s

* igt@gem_exec_basic@gtt-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.00] s

* igt@gem_exec_basic@gtt-vcs0:
- Statuses : 4 pass(s)
- Exec time: [0.00] s

* igt@gem_exec_basic@gtt-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.00] s

* igt@gem_exec_basic@gtt-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@readonly-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@readonly-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@readonly-vcs0:
- Statuses : 5 pass(s)
- Exec time: [0.0, 0.00] s

* igt@gem_exec_basic@readonly-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.00] s

* igt@gem_exec_basic@readonly-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.00] s

* igt@gem_exec_parallel@bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.84, 2.27] s

* igt@gem_exec_parallel@bcs0-contexts:
- Statuses : 5 pass(s)
- Exec time: [1.41, 5.27] s

* igt@gem_exec_parallel@bcs0-fds:
- Statuses : 5 pass(s)
- Exec time: [1.43, 5.32] s

* igt@gem_exec_parallel@rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.77, 2.31] s

* igt@gem_exec_parallel@rcs0-contexts:
- Statuses :
- Exec time: [None] s

* igt@gem_exec_parallel@rcs0-fds:
- Statuses : 5 pass(s)
- Exec time: [1.42, 5.57] s

* igt@gem_exec_parallel@vcs0:
- Statuses : 3 pass(s) 1 skip(s)
- Exec time: [0.0, 2.28] s

* igt@gem_exec_parallel@vcs0-contexts:
- Statuses : 4 pass(s) 1 skip(s)
- Exec time: [0.0, 4.40] s

* igt@gem_exec_parallel@vcs0-fds:
- Statuses : 4 pass(s)
- Exec time: [1.69, 7.00] s

* igt@gem_exec_parallel@vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.83] s

* igt@gem_exec_parallel@vcs1-contexts:
- Statuses : 1 pass(s)
- Exec time: [1.55] s

* igt@gem_exec_parallel@vcs1-fds:
- Statuses : 1 pass(s)
- Exec time: [1.65] s

* igt@gem_exec_parallel@vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.78, 2.29] s

* igt@gem_exec_parallel@vecs0-contexts:
- Statuses : 4 pass(s)
- Exec time: [1.27, 4.42] s

* igt@gem_exec_parallel@vecs0-fds:
- Statuses : 4 pass(s)
- Exec time: [1.29, 4.45] s

* igt@gem_exec_store@basic-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.03] s

* igt@gem_exec_store@basic-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.02] s

* igt@gem_exec_store@basic-vcs0:
- Statuses : 4 pass(s) 1 skip(s)
- Exec time: [0.0, 0.03] s

* igt@gem_exec_store@basic-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.01] s

* igt@gem_exec_store@basic-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.01, 0.02] s

* igt@gem_exec_store@cachelines-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.02] s

* igt@gem_exec_store@cachelines-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.04] s

* igt@gem_exec_store@cachelines-vcs0:
- Statuses : 4 pass(s) 1 skip(s)
- Exec time: [0.0, 0.03] s

* igt@gem_exec_store@cachelines-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.01] s

* igt@gem_exec_store@cachelines-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.01, 0.02] s

* igt@gem_exec_store@pages-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.02, 0.04] s

* igt@gem_exec_store@pages-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.04] s

* igt@gem_exec_store@pages-vcs0:
- Statuses : 3 pass(s) 1 skip(s)
- Exec time: [0.0, 0.02] s

* igt@gem_exec_store@pages-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.01] s

* igt@gem_exec_store@pages-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.02, 0.04] s

* igt@gem_wait@await-bcs0:
- Statuses : 5 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@await-rcs0:
- Statuses : 5 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@await-vcs0:
- Statuses : 5 pass(s)
- Exec time: [1.01, 1.06] s

* igt@gem_wait@await-vcs1:
- Statuses : 1 pass(s)
- Exec time: [1.02] s

* igt@gem_wait@await-vecs0:
- Statuses : 4 pass(s)
- Exec time: [1.00, 1.02] s

* igt@gem_wait@busy-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@busy-rcs0:
- Statuses : 4 pass(s)
- Exec time: [0.50, 0.51] s

* igt@gem_wait@busy-vcs0:
- Statuses : 5 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@busy-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@busy-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@wait-bcs0:
- Statuses : 5 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@wait-rcs0:
- Statuses : 5 pass(s)
- Exec time: [1.00, 1.01] s

* igt@gem_wait@wait-vcs0:
- Statuses : 5 pass(s)
- Exec time: [1.00, 1.02] s

* igt@gem_wait@wait-vcs1:
- Statuses : 1 pass(s)
- Exec time: [1.01] s

* igt@gem_wait@wait-vecs0:
- Statuses : 4 pass(s)
- Exec time: [1.00, 1.08] s

* igt@gem_wait@write-busy-bcs0:
- Statuses : 5 pass(s)
- Exec time: [0.50, 0.52] s

* igt@gem_wait@write-busy-rcs0:
- Statuses : 5 pass(s)
- Exec time: [0.50, 0.54] s

* igt@gem_wait@write-busy-vcs0:
- Statuses : 5 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@write-busy-vcs1:
- Statuses : 1 pass(s)
- Exec time: [0.50] s

* igt@gem_wait@write-busy-vecs0:
- Statuses : 4 pass(s)
- Exec time: [0.50, 0.51] s

* igt@gem_wait@write-wait-bcs0:
- Statuses : 5 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@write-wait-rcs0:
- Statuses : 5 pass(s)
- Exec time: [1.01, 1.05] s

* igt@gem_wait@write-wait-vcs0:
- Statuses : 5 pass(s)
- Exec time: [1.01, 1.02] s

* igt@gem_wait@write-wait-vcs1:
- Statuses : 1 pass(s)
- Exec time: [1.02] s

* igt@gem_wait@write-wait-vecs0:
- Statuses : 4 pass(s)
- Exec time: [1.01, 1.03] s

* igt@i915_hangman@error-state-capture-bcs0:
- Statuses : 5 pass(s)
- Exec time: [6.07, 14.34] s

* igt@i915_hangman@error-state-capture-rcs0:
- Statuses : 4 pass(s)
- Exec time: [14.36, 16.48] s

* igt@i915_hangman@error-state-capture-vcs0:
- Statuses : 5 pass(s)
- Exec time: [12.05, 14.93] s

* igt@i915_hangman@error-state-capture-vcs1:
- Statuses : 1 pass(s)
- Exec time: [13.62] s

* igt@i915_hangman@error-state-capture-vecs0:
- Statuses : 4 pass(s)
- Exec time: [7.73, 16.36] s

Known issues
------------

Here are the changes found in IGTPW_3027_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_switch@basic-all-light:
- shard-apl: [PASS][1] -> [INCOMPLETE][2] ([fdo#103927])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-apl6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-apl1/igt@[email protected]

* igt@i915_suspend@fence-restore-untiled:
- shard-apl: [PASS][3] -> [DMESG-WARN][4] ([fdo#108566]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-apl2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-apl1/igt@[email protected]

* igt@kms_flip@flip-vs-suspend:
- shard-hsw: [PASS][5] -> [INCOMPLETE][6] ([fdo#103540]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-hsw7/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-hsw1/igt@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-glk: [PASS][7] -> [INCOMPLETE][8] ([fdo#103359] / [k.org#198133])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-glk1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-glk8/igt@[email protected]

* igt@kms_setmode@basic:
- shard-apl: [PASS][9] -> [FAIL][10] ([fdo#99912])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-apl4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-apl8/igt@[email protected]
- shard-kbl: [PASS][11] -> [FAIL][12] ([fdo#99912])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-kbl4/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-kbl1/igt@[email protected]

* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-kbl: [PASS][13] -> [INCOMPLETE][14] ([fdo#103665]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-kbl4/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-kbl4/igt@[email protected]

#### Possible fixes ####

* {igt@kms_cursor_crc@pipe-a-cursor-128x128-random}:
- shard-kbl: [FAIL][15] ([fdo#103232]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-kbl1/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-kbl4/igt@[email protected]

* {igt@kms_cursor_crc@pipe-b-cursor-dpms}:
- shard-apl: [FAIL][17] ([fdo#103232]) -> [PASS][18] +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-apl6/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-apl8/igt@[email protected]

* igt@kms_lease@lease-uevent:
- shard-apl: [DMESG-WARN][19] ([fdo#103558] / [fdo#105602]) -> [PASS][20] +10 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-apl6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-apl8/igt@[email protected]

* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-apl: [DMESG-WARN][21] ([fdo#108566]) -> [PASS][22] +5 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-apl4/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-apl8/igt@[email protected]

* igt@perf_pmu@rc6:
- shard-kbl: [SKIP][23] ([fdo#109271]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-kbl7/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-kbl3/igt@[email protected]

#### Warnings ####

* igt@kms_busy@extended-modeset-hang-oldfb-render-d:
- shard-apl: [SKIP][25] ([fdo#105602] / [fdo#109271] / [fdo#109278]) -> [SKIP][26] ([fdo#109271] / [fdo#109278])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-apl6/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-apl4/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-shrfb-plflip-blt:
- shard-apl: [SKIP][27] ([fdo#105602] / [fdo#109271]) -> [SKIP][28] ([fdo#109271]) +3 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-apl6/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-apl1/igt@[email protected]

* igt@prime_nv_api@i915_nv_import_twice:
- shard-hsw: [INCOMPLETE][29] ([fdo#103540]) -> [SKIP][30] ([fdo#109271])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6121/shard-hsw7/igt@prime_nv_api@i915_nv_import_twice.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/shard-hsw6/igt@prime_nv_api@i915_nv_import_twice.html

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133

Participating hosts (10 -> 5)
------------------------------

Missing (5): shard-skl pig-hsw-4770r pig-glk-j5005 shard-iclb pig-skl-6260u

Build changes
-------------

* IGT: IGT_5003 -> IGTPW_3027
* Piglit: piglit_4509 -> None

CI_DRM_6121: 0a029524f22ca287ec7e515edc1258e7f806750c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3027: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/
IGT_5003: 54e6d651d1122dfb6578b8179f782d335fe15864 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3027/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev