Initial Xe test suite
Subsystems (2)
v3 cover Initial Xe test suite
This is continuation of https://patchwork.freedesktop.org/series/112191/
Series doesn't contain KUnit changes as they are not upstream IGT ready yet. Functional changes (library, tests, etc.) were squashed to dedicated patch to make review easier.
v3: address review comments (Kamil, Mauro)
Rodrigo Vivi (1):
lib/igt_pm: Add a helper to query the runtime_usage.
Zbigniew Kempczyński (7):
drm-uapi/xe_drm: Add Xe uAPI
lib/xe: Introduce Xe library
tests/xe: Add Xe IGT tests
tools/xe_reg: Add Xe register read/write tool intel-ci/xe-fast-feedback: Introduce xe-fast-feedback list docs/testplan: Introduce new way for documenting IGT runner/job_list: return error on crashes while running --list-subtests
docs/meson.build | 1 + docs/testplan/meson.build | 28 + docs/testplan/testplan.css | 7 + include/drm-uapi/xe_drm.h | 807 +++++++++++ lib/drmtest.c | 3 + lib/drmtest.h | 1 + lib/igt_pm.c | 18 + lib/igt_pm.h | 1 + lib/meson.build | 4 + lib/xe/xe_compute.c | 402 ++++++ lib/xe/xe_compute.h | 29 + lib/xe/xe_ioctl.c | 434 ++++++ lib/xe/xe_ioctl.h | 89 ++ lib/xe/xe_query.c | 465 +++++++ lib/xe/xe_query.h | 64 + lib/xe/xe_spin.c | 139 ++ lib/xe/xe_spin.h | 48 + meson.build | 8 + meson_options.txt | 4 + runner/job_list.c | 1 + scripts/igt_doc.py | 490 ++++++- scripts/meson.build | 2 + tests/intel-ci/xe-fast-feedback.testlist | 140 ++ tests/meson.build | 1 + tests/xe/meson.build | 33 + tests/xe/xe_compute.c | 148 ++ tests/xe/xe_debugfs.c | 257 ++++ tests/xe/xe_dma_buf_sync.c | 262 ++++ tests/xe/xe_evict.c | 623 +++++++++ tests/xe/xe_exec_balancer.c | 714 ++++++++++ tests/xe/xe_exec_basic.c | 350 +++++ tests/xe/xe_exec_compute_mode.c | 364 +++++ tests/xe/xe_exec_fault_mode.c | 575 ++++++++ tests/xe/xe_exec_reset.c | 817 +++++++++++ tests/xe/xe_exec_threads.c | 1159 ++++++++++++++++ tests/xe/xe_guc_pc.c | 425 ++++++ tests/xe/xe_huc_copy.c | 205 +++ tests/xe/xe_mmap.c | 79 ++ tests/xe/xe_mmio.c | 94 ++ tests/xe/xe_pm.c | 385 ++++++ tests/xe/xe_prime_self_import.c | 489 +++++++ tests/xe/xe_query.c | 475 +++++++ tests/xe/xe_test_config.json | 133 ++ tests/xe/xe_vm.c | 1604 ++++++++++++++++++++++ tests/xe/xe_waitfence.c | 103 ++ tools/meson.build | 1 + tools/xe_reg.c | 366 +++++ 47 files changed, 12794 insertions(+), 53 deletions(-) create mode 100644 docs/testplan/meson.build create mode 100644 docs/testplan/testplan.css create mode 100644 include/drm-uapi/xe_drm.h create mode 100644 lib/xe/xe_compute.c create mode 100644 lib/xe/xe_compute.h create mode 100644 lib/xe/xe_ioctl.c create mode 100644 lib/xe/xe_ioctl.h create mode 100644 lib/xe/xe_query.c create mode 100644 lib/xe/xe_query.h create mode 100644 lib/xe/xe_spin.c create mode 100644 lib/xe/xe_spin.h create mode 100644 tests/intel-ci/xe-fast-feedback.testlist create mode 100644 tests/xe/meson.build create mode 100644 tests/xe/xe_compute.c create mode 100644 tests/xe/xe_debugfs.c create mode 100644 tests/xe/xe_dma_buf_sync.c create mode 100644 tests/xe/xe_evict.c create mode 100644 tests/xe/xe_exec_balancer.c create mode 100644 tests/xe/xe_exec_basic.c create mode 100644 tests/xe/xe_exec_compute_mode.c create mode 100644 tests/xe/xe_exec_fault_mode.c create mode 100644 tests/xe/xe_exec_reset.c create mode 100644 tests/xe/xe_exec_threads.c create mode 100644 tests/xe/xe_guc_pc.c create mode 100644 tests/xe/xe_huc_copy.c create mode 100644 tests/xe/xe_mmap.c create mode 100644 tests/xe/xe_mmio.c create mode 100644 tests/xe/xe_pm.c create mode 100644 tests/xe/xe_prime_self_import.c create mode 100644 tests/xe/xe_query.c create mode 100644 tests/xe/xe_test_config.json create mode 100644 tests/xe/xe_vm.c create mode 100644 tests/xe/xe_waitfence.c create mode 100644 tools/xe_reg.c
Signature · 1 line
2.34.1
PATCH v3 1/8 drm-uapi/xe_drm: Add Xe uAPI
Introduce uAPI contract for Xe IGT.
--- include/drm-uapi/xe_drm.h | 807 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 807 insertions(+) create mode 100644 include/drm-uapi/xe_drm.h
include/drm-uapi/xe_drm.h new file +807 -0
@@ -0,0 +1,807 @@ +/* +* Copyright 2021 Intel Corporation. All Rights Reserved. +* +* 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, sub license, 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 NON-INFRINGEMENT. +* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS 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 _UAPI_XE_DRM_H_ +#define _UAPI_XE_DRM_H_ + +#include "drm.h" + +#if defined(__cplusplus) +extern "C" { +#endif + +/* Please note that modifications to all structs defined here are +* subject to backwards-compatibility constraints. +*/ + +/** +* struct i915_user_extension - Base class for defining a chain of extensions +* +* Many interfaces need to grow over time. In most cases we can simply +* extend the struct and have userspace pass in more data. Another option, +* as demonstrated by Vulkan's approach to providing extensions for forward +* and backward compatibility, is to use a list of optional structs to +* provide those extra details. +* +* The key advantage to using an extension chain is that it allows us to +* redefine the interface more easily than an ever growing struct of +* increasing complexity, and for large parts of that interface to be +* entirely optional. The downside is more pointer chasing; chasing across +* the __user boundary with pointers encapsulated inside u64. +* +* Example chaining: +* +* .. code-block:: C +* +* struct i915_user_extension ext3 { +* .next_extension = 0, // end +* .name = ..., +* }; +* struct i915_user_extension ext2 { +* .next_extension = (uintptr_t)&ext3, +* .name = ..., +* }; +* struct i915_user_extension ext1 { +* .next_extension = (uintptr_t)&ext2, +* .name = ..., +* }; +* +* Typically the struct i915_user_extension would be embedded in some uAPI +* struct, and in this case we would feed it the head of the chain(i.e ext1), +* which would then apply all of the above extensions. +* +*/ +struct xe_user_extension { +/** +* @next_extension: +* +* Pointer to the next struct i915_user_extension, or zero if the end. +*/ +__u64 next_extension; +/** +* @name: Name of the extension. +* +* Note that the name here is just some integer. +* +* Also note that the name space for this is not global for the whole +* driver, but rather its scope/meaning is limited to the specific piece +* of uAPI which has embedded the struct i915_user_extension. +*/ +__u32 name; +/** +* @flags: MBZ +* +* All undefined bits must be zero. +*/ +__u32 pad; +}; + +/* +* i915 specific ioctls. +* +* The device specific ioctl range is [DRM_COMMAND_BASE, DRM_COMMAND_END) ie +* [0x40, 0xa0) (a0 is excluded). The numbers below are defined as offset +* against DRM_COMMAND_BASE and should be between [0x0, 0x60). +*/ +#define DRM_XE_DEVICE_QUERY 0x00 +#define DRM_XE_GEM_CREATE 0x01 +#define DRM_XE_GEM_MMAP_OFFSET 0x02 +#define DRM_XE_VM_CREATE 0x03 +#define DRM_XE_VM_DESTROY 0x04 +#define DRM_XE_VM_BIND 0x05 +#define DRM_XE_ENGINE_CREATE 0x06 +#define DRM_XE_ENGINE_DESTROY 0x07 +#define DRM_XE_EXEC 0x08 +#define DRM_XE_MMIO 0x09 +#define DRM_XE_ENGINE_SET_PROPERTY 0x0a +#define DRM_XE_WAIT_USER_FENCE 0x0b +#define DRM_XE_VM_MADVISE 0x0c +#define DRM_XE_ENGINE_GET_PROPERTY 0x0d + +/* Must be kept compact -- no holes */ +#define DRM_IOCTL_XE_DEVICE_QUERY DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_DEVICE_QUERY, struct drm_xe_device_query) +#define DRM_IOCTL_XE_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_GEM_CREATE, struct drm_xe_gem_create) +#define DRM_IOCTL_XE_GEM_MMAP_OFFSET DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_GEM_MMAP_OFFSET, struct drm_xe_gem_mmap_offset) +#define DRM_IOCTL_XE_VM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_VM_CREATE, struct drm_xe_vm_create) +#define DRM_IOCTL_XE_VM_DESTROY DRM_IOW( DRM_COMMAND_BASE + DRM_XE_VM_DESTROY, struct drm_xe_vm_destroy) +#define DRM_IOCTL_XE_VM_BIND DRM_IOW( DRM_COMMAND_BASE + DRM_XE_VM_BIND, struct drm_xe_vm_bind) +#define DRM_IOCTL_XE_ENGINE_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_ENGINE_CREATE, struct drm_xe_engine_create) +#define DRM_IOCTL_XE_ENGINE_GET_PROPERTY DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_ENGINE_GET_PROPERTY, struct drm_xe_engine_get_property) +#define DRM_IOCTL_XE_ENGINE_DESTROY DRM_IOW( DRM_COMMAND_BASE + DRM_XE_ENGINE_DESTROY, struct drm_xe_engine_destroy) +#define DRM_IOCTL_XE_EXEC DRM_IOW( DRM_COMMAND_BASE + DRM_XE_EXEC, struct drm_xe_exec) +#define DRM_IOCTL_XE_MMIO DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_MMIO, struct drm_xe_mmio) +#define DRM_IOCTL_XE_ENGINE_SET_PROPERTY DRM_IOW( DRM_COMMAND_BASE + DRM_XE_ENGINE_SET_PROPERTY, struct drm_xe_engine_set_property) +#define DRM_IOCTL_XE_WAIT_USER_FENCE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_WAIT_USER_FENCE, struct drm_xe_wait_user_fence) +#define DRM_IOCTL_XE_VM_MADVISE DRM_IOW( DRM_COMMAND_BASE + DRM_XE_VM_MADVISE, struct drm_xe_vm_madvise) + +struct drm_xe_engine_class_instance { +__u16 engine_class; + +#define DRM_XE_ENGINE_CLASS_RENDER 0 +#define DRM_XE_ENGINE_CLASS_COPY 1 +#define DRM_XE_ENGINE_CLASS_VIDEO_DECODE 2 +#define DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE 3 +#define DRM_XE_ENGINE_CLASS_COMPUTE 4 +/* +* Kernel only class (not actual hardware engine class). Used for +* creating ordered queues of VM bind operations. +*/ +#define DRM_XE_ENGINE_CLASS_VM_BIND 5 + +__u16 engine_instance; +__u16 gt_id; +}; + +#define XE_MEM_REGION_CLASS_SYSMEM 0 +#define XE_MEM_REGION_CLASS_VRAM 1 + +struct drm_xe_query_mem_usage { +__u32 num_regions; +__u32 pad; + +struct drm_xe_query_mem_region { +__u16 mem_class; +__u16 instance;/* unique ID even among different classes */ +__u32 pad; +__u32 min_page_size; +__u32 max_page_size; +__u64 total_size; +__u64 used; +__u64 reserved[8 ]; + } regions[]; +}; + +struct drm_xe_query_config { +__u32 num_params; +__u32 pad; +#define XE_QUERY_CONFIG_REV_AND_DEVICE_ID 0 +#define XE_QUERY_CONFIG_FLAGS 1 +#define XE_QUERY_CONFIG_FLAGS_HAS_VRAM (0x1 << 0) +#define XE_QUERY_CONFIG_FLAGS_USE_GUC (0x1 << 1) +#define XE_QUERY_CONFIG_MIN_ALIGNEMENT 2 +#define XE_QUERY_CONFIG_VA_BITS 3 +#define XE_QUERY_CONFIG_GT_COUNT 4 +#define XE_QUERY_CONFIG_MEM_REGION_COUNT 5 +#define XE_QUERY_CONFIG_NUM_PARAM XE_QUERY_CONFIG_MEM_REGION_COUNT + 1 +__u64 info[]; +}; + +struct drm_xe_query_gts { +__u32 num_gt; +__u32 pad; + +/* +* TODO: Perhaps info about every mem region relative to this GT? e.g. +* bandwidth between this GT and remote region? +*/ + +struct drm_xe_query_gt { +#define XE_QUERY_GT_TYPE_MAIN 0 +#define XE_QUERY_GT_TYPE_REMOTE 1 +#define XE_QUERY_GT_TYPE_MEDIA 2 +__u16 type; +__u16 instance; +__u32 clock_freq; +__u64 features; +__u64 native_mem_regions;/* bit mask of instances from drm_xe_query_mem_usage */ +__u64 slow_mem_regions;/* bit mask of instances from drm_xe_query_mem_usage */ +__u64 inaccessible_mem_regions;/* bit mask of instances from drm_xe_query_mem_usage */ +__u64 reserved[8 ]; + } gts[]; +}; + +struct drm_xe_query_topology_mask { +/** @gt_id: GT ID the mask is associated with */ +__u16 gt_id; + +/** @type: type of mask */ +__u16 type; +#define XE_TOPO_DSS_GEOMETRY (1 << 0) +#define XE_TOPO_DSS_COMPUTE (1 << 1) +#define XE_TOPO_EU_PER_DSS (1 << 2) + +/** @num_bytes: number of bytes in requested mask */ +__u32 num_bytes; + +/** @mask: little-endian mask of @num_bytes */ +__u8 mask[]; +}; + +struct drm_xe_device_query { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @query: The type of data to query */ +__u32 query; + +#define DRM_XE_DEVICE_QUERY_ENGINES 0 +#define DRM_XE_DEVICE_QUERY_MEM_USAGE 1 +#define DRM_XE_DEVICE_QUERY_CONFIG 2 +#define DRM_XE_DEVICE_QUERY_GTS 3 +#define DRM_XE_DEVICE_QUERY_HWCONFIG 4 +#define DRM_XE_DEVICE_QUERY_GT_TOPOLOGY 5 + +/** @size: Size of the queried data */ +__u32 size; + +/** @data: Queried data is placed here */ +__u64 data; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_gem_create { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** +* @size: Requested size for the object +* +* The (page-aligned) allocated size for the object will be returned. +*/ +__u64 size; + +/** +* @flags: Flags, currently a mask of memory instances of where BO can +* be placed +*/ +#define XE_GEM_CREATE_FLAG_DEFER_BACKING (0x1 << 24) +#define XE_GEM_CREATE_FLAG_SCANOUT (0x1 << 25) +__u32 flags; + +/** +* @vm_id: Attached VM, if any +* +* If a VM is specified, this BO must: +* +* 1. Only ever be bound to that VM. +* +* 2. Cannot be exported as a PRIME fd. +*/ +__u32 vm_id; + +/** +* @handle: Returned handle for the object. +* +* Object handles are nonzero. +*/ +__u32 handle; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_gem_mmap_offset { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @handle: Handle for the object being mapped. */ +__u32 handle; + +/** @flags: Must be zero */ +__u32 flags; + +/** @offset: The fake offset to use for subsequent mmap call */ +__u64 offset; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +/** +* struct drm_xe_vm_bind_op_error_capture - format of VM bind op error capture +*/ +struct drm_xe_vm_bind_op_error_capture { +/** @error: errno that occured */ +__s32 error; +/** @op: operation that encounter an error */ +__u32 op; +/** @addr: address of bind op */ +__u64 addr; +/** @size: size of bind */ +__u64 size; +}; + +/** struct drm_xe_ext_vm_set_property - VM set property extension */ +struct drm_xe_ext_vm_set_property { +/** @base: base user extension */ +struct xe_user_extension base; + +/** @property: property to set */ +#define XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS 0 +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_create { +/** @extensions: Pointer to the first extension struct, if any */ +#define XE_VM_EXTENSION_SET_PROPERTY 0 +__u64 extensions; + +/** @flags: Flags */ +__u32 flags; + +#define DRM_XE_VM_CREATE_SCRATCH_PAGE (0x1 << 0) +#define DRM_XE_VM_CREATE_COMPUTE_MODE (0x1 << 1) +#define DRM_XE_VM_CREATE_ASYNC_BIND_OPS (0x1 << 2) +#define DRM_XE_VM_CREATE_FAULT_MODE (0x1 << 3) + +/** @vm_id: Returned VM ID */ +__u32 vm_id; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_destroy { +/** @vm_id: VM ID */ +__u32 vm_id; + +/** @pad: MBZ */ +__u32 pad; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_bind_op { +/** +* @obj: GEM object to operate on, MBZ for MAP_USERPTR, MBZ for UNMAP +*/ +__u32 obj; + +union { +/** +* @obj_offset: Offset into the object, MBZ for CLEAR_RANGE, +* ignored for unbind +*/ +__u64 obj_offset; +/** @userptr: user pointer to bind on */ +__u64 userptr; + }; + +/** +* @range: Number of bytes from the object to bind to addr, MBZ for UNMAP_ALL +*/ +__u64 range; + +/** @addr: Address to operate on, MBZ for UNMAP_ALL */ +__u64 addr; + +/** +* @gt_mask: Mask for which GTs to create binds for, 0 == All GTs, +* only applies to creating new VMAs +*/ +__u64 gt_mask; + +/** @op: Operation to perform (lower 16 bits) and flags (upper 16 bits) */ +__u32 op; + +/** @mem_region: Memory region to prefetch VMA to, instance not a mask */ +__u32 region; + +#define XE_VM_BIND_OP_MAP 0x0 +#define XE_VM_BIND_OP_UNMAP 0x1 +#define XE_VM_BIND_OP_MAP_USERPTR 0x2 +#define XE_VM_BIND_OP_RESTART 0x3 +#define XE_VM_BIND_OP_UNMAP_ALL 0x4 +#define XE_VM_BIND_OP_PREFETCH 0x5 + +#define XE_VM_BIND_FLAG_READONLY (0x1 << 16) +/* +* A bind ops completions are always async, hence the support for out +* sync. This flag indicates the allocation of the memory for new page +* tables and the job to program the pages tables is asynchronous +* relative to the IOCTL. That part of a bind operation can fail under +* memory pressure, the job in practice can't fail unless the system is +* totally shot. +* +* If this flag is clear and the IOCTL doesn't return an error, in +* practice the bind op is good and will complete. +* +* If this flag is set and doesn't return return an error, the bind op +* can still fail and recovery is needed. If configured, the bind op that +* caused the error will be captured in drm_xe_vm_bind_op_error_capture. +* Once the user sees the error (via a ufence + +* XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS), it should free memory +* via non-async unbinds, and then restart all queue'd async binds op via +* XE_VM_BIND_OP_RESTART. Or alternatively the user should destroy the +* VM. +* +* This flag is only allowed when DRM_XE_VM_CREATE_ASYNC_BIND_OPS is +* configured in the VM and must be set if the VM is configured with +* DRM_XE_VM_CREATE_ASYNC_BIND_OPS and not in an error state. +*/ +#define XE_VM_BIND_FLAG_ASYNC (0x1 << 17) +/* +* Valid on a faulting VM only, do the MAP operation immediately rather +* than differing the MAP to the page fault handler. +*/ +#define XE_VM_BIND_FLAG_IMMEDIATE (0x1 << 18) + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_bind { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @vm_id: The ID of the VM to bind to */ +__u32 vm_id; + +/** +* @engine_id: engine_id, must be of class DRM_XE_ENGINE_CLASS_VM_BIND +* and engine must have same vm_id. If zero, the default VM bind engine +* is used. +*/ +__u32 engine_id; + +/** @num_binds: number of binds in this IOCTL */ +__u32 num_binds; + +union { +/** @bind: used if num_binds == 1 */ +struct drm_xe_vm_bind_op bind; +/** +* @vector_of_binds: userptr to array of struct +* drm_xe_vm_bind_op if num_binds > 1 +*/ +__u64 vector_of_binds; + }; + +/** @num_syncs: amount of syncs to wait on */ +__u32 num_syncs; + +/** @syncs: pointer to struct drm_xe_sync array */ +__u64 syncs; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +/** struct drm_xe_ext_engine_set_property - engine set property extension */ +struct drm_xe_ext_engine_set_property { +/** @base: base user extension */ +struct xe_user_extension base; + +/** @property: property to set */ +__u32 property; + +/** @value: property value */ +__u64 value; +}; + +/** +* struct drm_xe_engine_set_property - engine set property +* +* Same namespace for extensions as drm_xe_engine_create +*/ +struct drm_xe_engine_set_property { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @engine_id: Engine ID */ +__u32 engine_id; + +/** @property: property to set */ +#define XE_ENGINE_SET_PROPERTY_PRIORITY 0 +#define XE_ENGINE_SET_PROPERTY_TIMESLICE 1 +#define XE_ENGINE_SET_PROPERTY_PREEMPTION_TIMEOUT 2 +/* +* Long running or ULLS engine mode. DMA fences not allowed in this +* mode. Must match the value of DRM_XE_VM_CREATE_COMPUTE_MODE, serves +* as a sanity check the UMD knows what it is doing. Can only be set at +* engine create time. +*/ +#define XE_ENGINE_SET_PROPERTY_COMPUTE_MODE 3 +#define XE_ENGINE_SET_PROPERTY_PERSISTENCE 4 +#define XE_ENGINE_SET_PROPERTY_JOB_TIMEOUT 5 +#define XE_ENGINE_SET_PROPERTY_ACC_TRIGGER 6 +#define XE_ENGINE_SET_PROPERTY_ACC_NOTIFY 7 +#define XE_ENGINE_SET_PROPERTY_ACC_GRANULARITY 8 +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_engine_create { +/** @extensions: Pointer to the first extension struct, if any */ +#define XE_ENGINE_EXTENSION_SET_PROPERTY 0 +__u64 extensions; + +/** @width: submission width (number BB per exec) for this engine */ +__u16 width; + +/** @num_placements: number of valid placements for this engine */ +__u16 num_placements; + +/** @vm_id: VM to use for this engine */ +__u32 vm_id; + +/** @flags: MBZ */ +__u32 flags; + +/** @engine_id: Returned engine ID */ +__u32 engine_id; + +/** +* @instances: user pointer to a 2-d array of struct +* drm_xe_engine_class_instance +* +* length = width (i) * num_placements (j) +* index = j + i * width +*/ +__u64 instances; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_engine_get_property { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @engine_id: Engine ID */ +__u32 engine_id; + +/** @property: property to get */ +#define XE_ENGINE_GET_PROPERTY_BAN 0 +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_engine_destroy { +/** @engine_id: Engine ID */ +__u32 engine_id; + +/** @pad: MBZ */ +__u32 pad; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_sync { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +__u32 flags; + +#define DRM_XE_SYNC_SYNCOBJ 0x0 +#define DRM_XE_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_XE_SYNC_DMA_BUF 0x2 +#define DRM_XE_SYNC_USER_FENCE 0x3 +#define DRM_XE_SYNC_SIGNAL 0x10 + +union { +__u32 handle; +/** +* @addr: Address of user fence. When sync passed in via exec +* IOCTL this a GPU address in the VM. When sync passed in via +* VM bind IOCTL this is a user pointer. In either case, it is +* the users responsibility that this address is present and +* mapped when the user fence is signalled. Must be qword +* aligned. +*/ +__u64 addr; + }; + +__u64 timeline_value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_exec { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @vm_id: VM ID to run batch buffer in */ +__u32 engine_id; + +/** @num_syncs: Amount of struct drm_xe_sync in array. */ +__u32 num_syncs; + +/** @syncs: Pointer to struct drm_xe_sync array. */ +__u64 syncs; + +/** +* @address: address of batch buffer if num_batch_buffer == 1 or an +* array of batch buffer addresses +*/ +__u64 address; + +/** +* @num_batch_buffer: number of batch buffer in this exec, must match +* the width of the engine +*/ +__u16 num_batch_buffer; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_mmio { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +__u32 addr; + +__u32 flags; + +#define DRM_XE_MMIO_8BIT 0x0 +#define DRM_XE_MMIO_16BIT 0x1 +#define DRM_XE_MMIO_32BIT 0x2 +#define DRM_XE_MMIO_64BIT 0x3 +#define DRM_XE_MMIO_BITS_MASK 0x3 +#define DRM_XE_MMIO_READ 0x4 +#define DRM_XE_MMIO_WRITE 0x8 + +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +/** +* struct drm_xe_wait_user_fence - wait user fence +* +* Wait on user fence, XE will wakeup on every HW engine interrupt in the +* instances list and check if user fence is complete: +* (*addr & MASK) OP (VALUE & MASK) +* +* Returns to user on user fence completion or timeout. +*/ +struct drm_xe_wait_user_fence { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; +union { +/** +* @addr: user pointer address to wait on, must qword aligned +*/ +__u64 addr; +/** +* @vm_id: The ID of the VM which encounter an error used with +* DRM_XE_UFENCE_WAIT_VM_ERROR. Upper 32 bits must be clear. +*/ +__u64 vm_id; + }; +/** @op: wait operation (type of comparison) */ +#define DRM_XE_UFENCE_WAIT_EQ 0 +#define DRM_XE_UFENCE_WAIT_NEQ 1 +#define DRM_XE_UFENCE_WAIT_GT 2 +#define DRM_XE_UFENCE_WAIT_GTE 3 +#define DRM_XE_UFENCE_WAIT_LT 4 +#define DRM_XE_UFENCE_WAIT_LTE 5 +__u16 op; +/** @flags: wait flags */ +#define DRM_XE_UFENCE_WAIT_SOFT_OP (1 << 0)/* e.g. Wait on VM bind */ +#define DRM_XE_UFENCE_WAIT_ABSTIME (1 << 1) +#define DRM_XE_UFENCE_WAIT_VM_ERROR (1 << 2) +__u16 flags; +/** @value: compare value */ +__u64 value; +/** @mask: comparison mask */ +#define DRM_XE_UFENCE_WAIT_U8 0xffu +#define DRM_XE_UFENCE_WAIT_U16 0xffffu +#define DRM_XE_UFENCE_WAIT_U32 0xffffffffu +#define DRM_XE_UFENCE_WAIT_U64 0xffffffffffffffffu +__u64 mask; +/** @timeout: how long to wait before bailing, value in jiffies */ +__s64 timeout; +/** +* @num_engines: number of engine instances to wait on, must be zero +* when DRM_XE_UFENCE_WAIT_SOFT_OP set +*/ +__u64 num_engines; +/** +* @instances: user pointer to array of drm_xe_engine_class_instance to +* wait on, must be NULL when DRM_XE_UFENCE_WAIT_SOFT_OP set +*/ +__u64 instances; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_madvise { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @vm_id: The ID VM in which the VMA exists */ +__u32 vm_id; + +/** @range: Number of bytes in the VMA */ +__u64 range; + +/** @addr: Address of the VMA to operation on */ +__u64 addr; + +/* +* Setting the preferred location will trigger a migrate of the VMA +* backing store to new location if the backing store is already +* allocated. +*/ +#define DRM_XE_VM_MADVISE_PREFERRED_MEM_CLASS 0 +#define DRM_XE_VM_MADVISE_PREFERRED_GT 1 +/* +* In this case lower 32 bits are mem class, upper 32 are GT. +* Combination provides a single IOCTL plus migrate VMA to preferred +* location. +*/ +#define DRM_XE_VM_MADVISE_PREFERRED_MEM_CLASS_GT 2 +/* +* The CPU will do atomic memory operations to this VMA. Must be set on +* some devices for atomics to behave correctly. +*/ +#define DRM_XE_VM_MADVISE_CPU_ATOMIC 3 +/* +* The device will do atomic memory operations to this VMA. Must be set +* on some devices for atomics to behave correctly. +*/ +#define DRM_XE_VM_MADVISE_DEVICE_ATOMIC 4 +/* +* Priority WRT to eviction (moving from preferred memory location due +* to memory pressure). The lower the priority, the more likely to be +* evicted. +*/ +#define DRM_XE_VM_MADVISE_PRIORITY 5 +#define DRM_XE_VMA_PRIORITY_LOW 0 +#define DRM_XE_VMA_PRIORITY_NORMAL 1/* Default */ +#define DRM_XE_VMA_PRIORITY_HIGH 2/* Must be elevated user */ +/* Pin the VMA in memory, must be elevated user */ +#define DRM_XE_VM_MADVISE_PIN 6 + +/** @property: property to set */ +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +#if defined(__cplusplus) +} +#endif + +#endif /* _UAPI_XE_DRM_H_ */
Signature · 1 line
2.34.1
Re: [igt-dev] [PATCH i-g-t v3 1/8] drm-uapi/xe_drm: Add Xe uAPI
Quoted 11 lines · Zbigniew Kempczyński
Introduce uAPI contract for Xe IGT.
Signed-off-by Jason Ekstrand <[email protected]>Signed-off-by Maarten Lankhorst <[email protected]>Signed-off-by Matthew Brost <[email protected]>Signed-off-by Philippe Lecluse <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>--- include/drm-uapi/xe_drm.h | 807 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 807 insertions(+) create mode 100644 include/drm-uapi/xe_drm.h
is it really necessary to copy this buggy header to IGT right now?
maybe we can wait until this header will be properly reviewed and cleaned up in the kernel repo first ?
Michal
Quoted 814 lines
include/drm-uapi/xe_drm.h new file +807
-0@@ -0,0 +1,807 @@ +/* +* Copyright 2021 Intel Corporation. All Rights Reserved. +* +* 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, sub license, 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 NON-INFRINGEMENT. +* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS 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 _UAPI_XE_DRM_H_ +#define _UAPI_XE_DRM_H_ + +#include "drm.h" + +#if defined(__cplusplus) +extern "C" { +#endif + +/* Please note that modifications to all structs defined here are +* subject to backwards-compatibility constraints. +*/ + +/** +* struct i915_user_extension - Base class for defining a chain of extensions +* +* Many interfaces need to grow over time. In most cases we can simply +* extend the struct and have userspace pass in more data. Another option, +* as demonstrated by Vulkan's approach to providing extensions for forward +* and backward compatibility, is to use a list of optional structs to +* provide those extra details. +* +* The key advantage to using an extension chain is that it allows us to +* redefine the interface more easily than an ever growing struct of +* increasing complexity, and for large parts of that interface to be +* entirely optional. The downside is more pointer chasing; chasing across +* the __user boundary with pointers encapsulated inside u64. +* +* Example chaining: +* +* .. code-block:: C +* +* struct i915_user_extension ext3 { +* .next_extension = 0, // end +* .name = ..., +* }; +* struct i915_user_extension ext2 { +* .next_extension = (uintptr_t)&ext3, +* .name = ..., +* }; +* struct i915_user_extension ext1 { +* .next_extension = (uintptr_t)&ext2, +* .name = ..., +* }; +* +* Typically the struct i915_user_extension would be embedded in some uAPI +* struct, and in this case we would feed it the head of the chain(i.e ext1), +* which would then apply all of the above extensions. +* +*/ +struct xe_user_extension { +/** +* @next_extension: +* +* Pointer to the next struct i915_user_extension, or zero if the end. +*/ +__u64 next_extension; +/** +* @name: Name of the extension. +* +* Note that the name here is just some integer. +* +* Also note that the name space for this is not global for the whole +* driver, but rather its scope/meaning is limited to the specific piece +* of uAPI which has embedded the struct i915_user_extension. +*/ +__u32 name; +/** +* @flags: MBZ +* +* All undefined bits must be zero. +*/ +__u32 pad; +}; + +/* +* i915 specific ioctls. +* +* The device specific ioctl range is [DRM_COMMAND_BASE, DRM_COMMAND_END) ie +* [0x40, 0xa0) (a0 is excluded). The numbers below are defined as offset +* against DRM_COMMAND_BASE and should be between [0x0, 0x60). +*/ +#define DRM_XE_DEVICE_QUERY 0x00 +#define DRM_XE_GEM_CREATE 0x01 +#define DRM_XE_GEM_MMAP_OFFSET 0x02 +#define DRM_XE_VM_CREATE 0x03 +#define DRM_XE_VM_DESTROY 0x04 +#define DRM_XE_VM_BIND 0x05 +#define DRM_XE_ENGINE_CREATE 0x06 +#define DRM_XE_ENGINE_DESTROY 0x07 +#define DRM_XE_EXEC 0x08 +#define DRM_XE_MMIO 0x09 +#define DRM_XE_ENGINE_SET_PROPERTY 0x0a +#define DRM_XE_WAIT_USER_FENCE 0x0b +#define DRM_XE_VM_MADVISE 0x0c +#define DRM_XE_ENGINE_GET_PROPERTY 0x0d + +/* Must be kept compact -- no holes */ +#define DRM_IOCTL_XE_DEVICE_QUERY DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_DEVICE_QUERY, struct drm_xe_device_query) +#define DRM_IOCTL_XE_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_GEM_CREATE, struct drm_xe_gem_create) +#define DRM_IOCTL_XE_GEM_MMAP_OFFSET DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_GEM_MMAP_OFFSET, struct drm_xe_gem_mmap_offset) +#define DRM_IOCTL_XE_VM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_VM_CREATE, struct drm_xe_vm_create) +#define DRM_IOCTL_XE_VM_DESTROY DRM_IOW( DRM_COMMAND_BASE + DRM_XE_VM_DESTROY, struct drm_xe_vm_destroy) +#define DRM_IOCTL_XE_VM_BIND DRM_IOW( DRM_COMMAND_BASE + DRM_XE_VM_BIND, struct drm_xe_vm_bind) +#define DRM_IOCTL_XE_ENGINE_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_ENGINE_CREATE, struct drm_xe_engine_create) +#define DRM_IOCTL_XE_ENGINE_GET_PROPERTY DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_ENGINE_GET_PROPERTY, struct drm_xe_engine_get_property) +#define DRM_IOCTL_XE_ENGINE_DESTROY DRM_IOW( DRM_COMMAND_BASE + DRM_XE_ENGINE_DESTROY, struct drm_xe_engine_destroy) +#define DRM_IOCTL_XE_EXEC DRM_IOW( DRM_COMMAND_BASE + DRM_XE_EXEC, struct drm_xe_exec) +#define DRM_IOCTL_XE_MMIO DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_MMIO, struct drm_xe_mmio) +#define DRM_IOCTL_XE_ENGINE_SET_PROPERTY DRM_IOW( DRM_COMMAND_BASE + DRM_XE_ENGINE_SET_PROPERTY, struct drm_xe_engine_set_property) +#define DRM_IOCTL_XE_WAIT_USER_FENCE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_WAIT_USER_FENCE, struct drm_xe_wait_user_fence) +#define DRM_IOCTL_XE_VM_MADVISE DRM_IOW( DRM_COMMAND_BASE + DRM_XE_VM_MADVISE, struct drm_xe_vm_madvise) + +struct drm_xe_engine_class_instance { +__u16 engine_class; + +#define DRM_XE_ENGINE_CLASS_RENDER 0 +#define DRM_XE_ENGINE_CLASS_COPY 1 +#define DRM_XE_ENGINE_CLASS_VIDEO_DECODE 2 +#define DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE 3 +#define DRM_XE_ENGINE_CLASS_COMPUTE 4 +/* +* Kernel only class (not actual hardware engine class). Used for +* creating ordered queues of VM bind operations. +*/ +#define DRM_XE_ENGINE_CLASS_VM_BIND 5 + +__u16 engine_instance; +__u16 gt_id; +}; + +#define XE_MEM_REGION_CLASS_SYSMEM 0 +#define XE_MEM_REGION_CLASS_VRAM 1 + +struct drm_xe_query_mem_usage { +__u32 num_regions; +__u32 pad; + +struct drm_xe_query_mem_region { +__u16 mem_class; +__u16 instance;/* unique ID even among different classes */ +__u32 pad; +__u32 min_page_size; +__u32 max_page_size; +__u64 total_size; +__u64 used; +__u64 reserved[8 ]; + } regions[]; +}; + +struct drm_xe_query_config { +__u32 num_params; +__u32 pad; +#define XE_QUERY_CONFIG_REV_AND_DEVICE_ID 0 +#define XE_QUERY_CONFIG_FLAGS 1 +#define XE_QUERY_CONFIG_FLAGS_HAS_VRAM (0x1 << 0) +#define XE_QUERY_CONFIG_FLAGS_USE_GUC (0x1 << 1) +#define XE_QUERY_CONFIG_MIN_ALIGNEMENT 2 +#define XE_QUERY_CONFIG_VA_BITS 3 +#define XE_QUERY_CONFIG_GT_COUNT 4 +#define XE_QUERY_CONFIG_MEM_REGION_COUNT 5 +#define XE_QUERY_CONFIG_NUM_PARAM XE_QUERY_CONFIG_MEM_REGION_COUNT + 1 +__u64 info[]; +}; + +struct drm_xe_query_gts { +__u32 num_gt; +__u32 pad; + +/* +* TODO: Perhaps info about every mem region relative to this GT? e.g. +* bandwidth between this GT and remote region? +*/ + +struct drm_xe_query_gt { +#define XE_QUERY_GT_TYPE_MAIN 0 +#define XE_QUERY_GT_TYPE_REMOTE 1 +#define XE_QUERY_GT_TYPE_MEDIA 2 +__u16 type; +__u16 instance; +__u32 clock_freq; +__u64 features; +__u64 native_mem_regions;/* bit mask of instances from drm_xe_query_mem_usage */ +__u64 slow_mem_regions;/* bit mask of instances from drm_xe_query_mem_usage */ +__u64 inaccessible_mem_regions;/* bit mask of instances from drm_xe_query_mem_usage */ +__u64 reserved[8 ]; + } gts[]; +}; + +struct drm_xe_query_topology_mask { +/** @gt_id: GT ID the mask is associated with */ +__u16 gt_id; + +/** @type: type of mask */ +__u16 type; +#define XE_TOPO_DSS_GEOMETRY (1 << 0) +#define XE_TOPO_DSS_COMPUTE (1 << 1) +#define XE_TOPO_EU_PER_DSS (1 << 2) + +/** @num_bytes: number of bytes in requested mask */ +__u32 num_bytes; + +/** @mask: little-endian mask of @num_bytes */ +__u8 mask[]; +}; + +struct drm_xe_device_query { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @query: The type of data to query */ +__u32 query; + +#define DRM_XE_DEVICE_QUERY_ENGINES 0 +#define DRM_XE_DEVICE_QUERY_MEM_USAGE 1 +#define DRM_XE_DEVICE_QUERY_CONFIG 2 +#define DRM_XE_DEVICE_QUERY_GTS 3 +#define DRM_XE_DEVICE_QUERY_HWCONFIG 4 +#define DRM_XE_DEVICE_QUERY_GT_TOPOLOGY 5 + +/** @size: Size of the queried data */ +__u32 size; + +/** @data: Queried data is placed here */ +__u64 data; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_gem_create { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** +* @size: Requested size for the object +* +* The (page-aligned) allocated size for the object will be returned. +*/ +__u64 size; + +/** +* @flags: Flags, currently a mask of memory instances of where BO can +* be placed +*/ +#define XE_GEM_CREATE_FLAG_DEFER_BACKING (0x1 << 24) +#define XE_GEM_CREATE_FLAG_SCANOUT (0x1 << 25) +__u32 flags; + +/** +* @vm_id: Attached VM, if any +* +* If a VM is specified, this BO must: +* +* 1. Only ever be bound to that VM. +* +* 2. Cannot be exported as a PRIME fd. +*/ +__u32 vm_id; + +/** +* @handle: Returned handle for the object. +* +* Object handles are nonzero. +*/ +__u32 handle; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_gem_mmap_offset { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @handle: Handle for the object being mapped. */ +__u32 handle; + +/** @flags: Must be zero */ +__u32 flags; + +/** @offset: The fake offset to use for subsequent mmap call */ +__u64 offset; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +/** +* struct drm_xe_vm_bind_op_error_capture - format of VM bind op error capture +*/ +struct drm_xe_vm_bind_op_error_capture { +/** @error: errno that occured */ +__s32 error; +/** @op: operation that encounter an error */ +__u32 op; +/** @addr: address of bind op */ +__u64 addr; +/** @size: size of bind */ +__u64 size; +}; + +/** struct drm_xe_ext_vm_set_property - VM set property extension */ +struct drm_xe_ext_vm_set_property { +/** @base: base user extension */ +struct xe_user_extension base; + +/** @property: property to set */ +#define XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS 0 +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_create { +/** @extensions: Pointer to the first extension struct, if any */ +#define XE_VM_EXTENSION_SET_PROPERTY 0 +__u64 extensions; + +/** @flags: Flags */ +__u32 flags; + +#define DRM_XE_VM_CREATE_SCRATCH_PAGE (0x1 << 0) +#define DRM_XE_VM_CREATE_COMPUTE_MODE (0x1 << 1) +#define DRM_XE_VM_CREATE_ASYNC_BIND_OPS (0x1 << 2) +#define DRM_XE_VM_CREATE_FAULT_MODE (0x1 << 3) + +/** @vm_id: Returned VM ID */ +__u32 vm_id; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_destroy { +/** @vm_id: VM ID */ +__u32 vm_id; + +/** @pad: MBZ */ +__u32 pad; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_bind_op { +/** +* @obj: GEM object to operate on, MBZ for MAP_USERPTR, MBZ for UNMAP +*/ +__u32 obj; + +union { +/** +* @obj_offset: Offset into the object, MBZ for CLEAR_RANGE, +* ignored for unbind +*/ +__u64 obj_offset; +/** @userptr: user pointer to bind on */ +__u64 userptr; + }; + +/** +* @range: Number of bytes from the object to bind to addr, MBZ for UNMAP_ALL +*/ +__u64 range; + +/** @addr: Address to operate on, MBZ for UNMAP_ALL */ +__u64 addr; + +/** +* @gt_mask: Mask for which GTs to create binds for, 0 == All GTs, +* only applies to creating new VMAs +*/ +__u64 gt_mask; + +/** @op: Operation to perform (lower 16 bits) and flags (upper 16 bits) */ +__u32 op; + +/** @mem_region: Memory region to prefetch VMA to, instance not a mask */ +__u32 region; + +#define XE_VM_BIND_OP_MAP 0x0 +#define XE_VM_BIND_OP_UNMAP 0x1 +#define XE_VM_BIND_OP_MAP_USERPTR 0x2 +#define XE_VM_BIND_OP_RESTART 0x3 +#define XE_VM_BIND_OP_UNMAP_ALL 0x4 +#define XE_VM_BIND_OP_PREFETCH 0x5 + +#define XE_VM_BIND_FLAG_READONLY (0x1 << 16) +/* +* A bind ops completions are always async, hence the support for out +* sync. This flag indicates the allocation of the memory for new page +* tables and the job to program the pages tables is asynchronous +* relative to the IOCTL. That part of a bind operation can fail under +* memory pressure, the job in practice can't fail unless the system is +* totally shot. +* +* If this flag is clear and the IOCTL doesn't return an error, in +* practice the bind op is good and will complete. +* +* If this flag is set and doesn't return return an error, the bind op +* can still fail and recovery is needed. If configured, the bind op that +* caused the error will be captured in drm_xe_vm_bind_op_error_capture. +* Once the user sees the error (via a ufence + +* XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS), it should free memory +* via non-async unbinds, and then restart all queue'd async binds op via +* XE_VM_BIND_OP_RESTART. Or alternatively the user should destroy the +* VM. +* +* This flag is only allowed when DRM_XE_VM_CREATE_ASYNC_BIND_OPS is +* configured in the VM and must be set if the VM is configured with +* DRM_XE_VM_CREATE_ASYNC_BIND_OPS and not in an error state. +*/ +#define XE_VM_BIND_FLAG_ASYNC (0x1 << 17) +/* +* Valid on a faulting VM only, do the MAP operation immediately rather +* than differing the MAP to the page fault handler. +*/ +#define XE_VM_BIND_FLAG_IMMEDIATE (0x1 << 18) + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_bind { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @vm_id: The ID of the VM to bind to */ +__u32 vm_id; + +/** +* @engine_id: engine_id, must be of class DRM_XE_ENGINE_CLASS_VM_BIND +* and engine must have same vm_id. If zero, the default VM bind engine +* is used. +*/ +__u32 engine_id; + +/** @num_binds: number of binds in this IOCTL */ +__u32 num_binds; + +union { +/** @bind: used if num_binds == 1 */ +struct drm_xe_vm_bind_op bind; +/** +* @vector_of_binds: userptr to array of struct +* drm_xe_vm_bind_op if num_binds > 1 +*/ +__u64 vector_of_binds; + }; + +/** @num_syncs: amount of syncs to wait on */ +__u32 num_syncs; + +/** @syncs: pointer to struct drm_xe_sync array */ +__u64 syncs; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +/** struct drm_xe_ext_engine_set_property - engine set property extension */ +struct drm_xe_ext_engine_set_property { +/** @base: base user extension */ +struct xe_user_extension base; + +/** @property: property to set */ +__u32 property; + +/** @value: property value */ +__u64 value; +}; + +/** +* struct drm_xe_engine_set_property - engine set property +* +* Same namespace for extensions as drm_xe_engine_create +*/ +struct drm_xe_engine_set_property { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @engine_id: Engine ID */ +__u32 engine_id; + +/** @property: property to set */ +#define XE_ENGINE_SET_PROPERTY_PRIORITY 0 +#define XE_ENGINE_SET_PROPERTY_TIMESLICE 1 +#define XE_ENGINE_SET_PROPERTY_PREEMPTION_TIMEOUT 2 +/* +* Long running or ULLS engine mode. DMA fences not allowed in this +* mode. Must match the value of DRM_XE_VM_CREATE_COMPUTE_MODE, serves +* as a sanity check the UMD knows what it is doing. Can only be set at +* engine create time. +*/ +#define XE_ENGINE_SET_PROPERTY_COMPUTE_MODE 3 +#define XE_ENGINE_SET_PROPERTY_PERSISTENCE 4 +#define XE_ENGINE_SET_PROPERTY_JOB_TIMEOUT 5 +#define XE_ENGINE_SET_PROPERTY_ACC_TRIGGER 6 +#define XE_ENGINE_SET_PROPERTY_ACC_NOTIFY 7 +#define XE_ENGINE_SET_PROPERTY_ACC_GRANULARITY 8 +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_engine_create { +/** @extensions: Pointer to the first extension struct, if any */ +#define XE_ENGINE_EXTENSION_SET_PROPERTY 0 +__u64 extensions; + +/** @width: submission width (number BB per exec) for this engine */ +__u16 width; + +/** @num_placements: number of valid placements for this engine */ +__u16 num_placements; + +/** @vm_id: VM to use for this engine */ +__u32 vm_id; + +/** @flags: MBZ */ +__u32 flags; + +/** @engine_id: Returned engine ID */ +__u32 engine_id; + +/** +* @instances: user pointer to a 2-d array of struct +* drm_xe_engine_class_instance +* +* length = width (i) * num_placements (j) +* index = j + i * width +*/ +__u64 instances; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_engine_get_property { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @engine_id: Engine ID */ +__u32 engine_id; + +/** @property: property to get */ +#define XE_ENGINE_GET_PROPERTY_BAN 0 +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_engine_destroy { +/** @engine_id: Engine ID */ +__u32 engine_id; + +/** @pad: MBZ */ +__u32 pad; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_sync { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +__u32 flags; + +#define DRM_XE_SYNC_SYNCOBJ 0x0 +#define DRM_XE_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_XE_SYNC_DMA_BUF 0x2 +#define DRM_XE_SYNC_USER_FENCE 0x3 +#define DRM_XE_SYNC_SIGNAL 0x10 + +union { +__u32 handle; +/** +* @addr: Address of user fence. When sync passed in via exec +* IOCTL this a GPU address in the VM. When sync passed in via +* VM bind IOCTL this is a user pointer. In either case, it is +* the users responsibility that this address is present and +* mapped when the user fence is signalled. Must be qword +* aligned. +*/ +__u64 addr; + }; + +__u64 timeline_value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_exec { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @vm_id: VM ID to run batch buffer in */ +__u32 engine_id; + +/** @num_syncs: Amount of struct drm_xe_sync in array. */ +__u32 num_syncs; + +/** @syncs: Pointer to struct drm_xe_sync array. */ +__u64 syncs; + +/** +* @address: address of batch buffer if num_batch_buffer == 1 or an +* array of batch buffer addresses +*/ +__u64 address; + +/** +* @num_batch_buffer: number of batch buffer in this exec, must match +* the width of the engine +*/ +__u16 num_batch_buffer; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_mmio { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +__u32 addr; + +__u32 flags; + +#define DRM_XE_MMIO_8BIT 0x0 +#define DRM_XE_MMIO_16BIT 0x1 +#define DRM_XE_MMIO_32BIT 0x2 +#define DRM_XE_MMIO_64BIT 0x3 +#define DRM_XE_MMIO_BITS_MASK 0x3 +#define DRM_XE_MMIO_READ 0x4 +#define DRM_XE_MMIO_WRITE 0x8 + +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +/** +* struct drm_xe_wait_user_fence - wait user fence +* +* Wait on user fence, XE will wakeup on every HW engine interrupt in the +* instances list and check if user fence is complete: +* (*addr & MASK) OP (VALUE & MASK) +* +* Returns to user on user fence completion or timeout. +*/ +struct drm_xe_wait_user_fence { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; +union { +/** +* @addr: user pointer address to wait on, must qword aligned +*/ +__u64 addr; +/** +* @vm_id: The ID of the VM which encounter an error used with +* DRM_XE_UFENCE_WAIT_VM_ERROR. Upper 32 bits must be clear. +*/ +__u64 vm_id; + }; +/** @op: wait operation (type of comparison) */ +#define DRM_XE_UFENCE_WAIT_EQ 0 +#define DRM_XE_UFENCE_WAIT_NEQ 1 +#define DRM_XE_UFENCE_WAIT_GT 2 +#define DRM_XE_UFENCE_WAIT_GTE 3 +#define DRM_XE_UFENCE_WAIT_LT 4 +#define DRM_XE_UFENCE_WAIT_LTE 5 +__u16 op; +/** @flags: wait flags */ +#define DRM_XE_UFENCE_WAIT_SOFT_OP (1 << 0)/* e.g. Wait on VM bind */ +#define DRM_XE_UFENCE_WAIT_ABSTIME (1 << 1) +#define DRM_XE_UFENCE_WAIT_VM_ERROR (1 << 2) +__u16 flags; +/** @value: compare value */ +__u64 value; +/** @mask: comparison mask */ +#define DRM_XE_UFENCE_WAIT_U8 0xffu +#define DRM_XE_UFENCE_WAIT_U16 0xffffu +#define DRM_XE_UFENCE_WAIT_U32 0xffffffffu +#define DRM_XE_UFENCE_WAIT_U64 0xffffffffffffffffu +__u64 mask; +/** @timeout: how long to wait before bailing, value in jiffies */ +__s64 timeout; +/** +* @num_engines: number of engine instances to wait on, must be zero +* when DRM_XE_UFENCE_WAIT_SOFT_OP set +*/ +__u64 num_engines; +/** +* @instances: user pointer to array of drm_xe_engine_class_instance to +* wait on, must be NULL when DRM_XE_UFENCE_WAIT_SOFT_OP set +*/ +__u64 instances; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_madvise { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @vm_id: The ID VM in which the VMA exists */ +__u32 vm_id; + +/** @range: Number of bytes in the VMA */ +__u64 range; + +/** @addr: Address of the VMA to operation on */ +__u64 addr; + +/* +* Setting the preferred location will trigger a migrate of the VMA +* backing store to new location if the backing store is already +* allocated. +*/ +#define DRM_XE_VM_MADVISE_PREFERRED_MEM_CLASS 0 +#define DRM_XE_VM_MADVISE_PREFERRED_GT 1 +/* +* In this case lower 32 bits are mem class, upper 32 are GT. +* Combination provides a single IOCTL plus migrate VMA to preferred +* location. +*/ +#define DRM_XE_VM_MADVISE_PREFERRED_MEM_CLASS_GT 2 +/* +* The CPU will do atomic memory operations to this VMA. Must be set on +* some devices for atomics to behave correctly. +*/ +#define DRM_XE_VM_MADVISE_CPU_ATOMIC 3 +/* +* The device will do atomic memory operations to this VMA. Must be set +* on some devices for atomics to behave correctly. +*/ +#define DRM_XE_VM_MADVISE_DEVICE_ATOMIC 4 +/* +* Priority WRT to eviction (moving from preferred memory location due +* to memory pressure). The lower the priority, the more likely to be +* evicted. +*/ +#define DRM_XE_VM_MADVISE_PRIORITY 5 +#define DRM_XE_VMA_PRIORITY_LOW 0 +#define DRM_XE_VMA_PRIORITY_NORMAL 1/* Default */ +#define DRM_XE_VMA_PRIORITY_HIGH 2/* Must be elevated user */ +/* Pin the VMA in memory, must be elevated user */ +#define DRM_XE_VM_MADVISE_PIN 6 + +/** @property: property to set */ +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +#if defined(__cplusplus) +} +#endif + +#endif /* _UAPI_XE_DRM_H_ */
Re: [igt-dev] [PATCH i-g-t v3 1/8] drm-uapi/xe_drm: Add Xe uAPI
Quoted 15 lines · Michal Wajdeczko
Quoted 11 lines · Zbigniew Kempczyński
Introduce uAPI contract for Xe IGT.
Signed-off-by Jason Ekstrand <[email protected]>Signed-off-by Maarten Lankhorst <[email protected]>Signed-off-by Matthew Brost <[email protected]>Signed-off-by Philippe Lecluse <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>--- include/drm-uapi/xe_drm.h | 807 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 807 insertions(+) create mode 100644 include/drm-uapi/xe_drm.h
Quoted 4 lines
is it really necessary to copy this buggy header to IGT right now?
maybe we can wait until this header will be properly reviewed and cleaned up in the kernel repo first ?
+Lucas
We discussed yesterday about this header - from IGT perspective it is not a blocker, after fixing in xe kernel we'll copy it here. Xe-igt repository had sense during early development stage, but now we want to migrate it here. Code still requires fixups and cleanup but we may do it here. Otherwise workflow would require sending to igt ml (squashed patches with some of them removed [kunit]), then fixup to xe-igt and repeat squash/send. Very time consuming we want to avoid. Fixing that later in igt is acceptable for us as xe driver is not production ready.
--
Zbigniew
Quoted 817 lines
Michal
Quoted 814 lines
include/drm-uapi/xe_drm.h new file +807
-0@@ -0,0 +1,807 @@ +/* +* Copyright 2021 Intel Corporation. All Rights Reserved. +* +* 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, sub license, 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 NON-INFRINGEMENT. +* IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS 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 _UAPI_XE_DRM_H_ +#define _UAPI_XE_DRM_H_ + +#include "drm.h" + +#if defined(__cplusplus) +extern "C" { +#endif + +/* Please note that modifications to all structs defined here are +* subject to backwards-compatibility constraints. +*/ + +/** +* struct i915_user_extension - Base class for defining a chain of extensions +* +* Many interfaces need to grow over time. In most cases we can simply +* extend the struct and have userspace pass in more data. Another option, +* as demonstrated by Vulkan's approach to providing extensions for forward +* and backward compatibility, is to use a list of optional structs to +* provide those extra details. +* +* The key advantage to using an extension chain is that it allows us to +* redefine the interface more easily than an ever growing struct of +* increasing complexity, and for large parts of that interface to be +* entirely optional. The downside is more pointer chasing; chasing across +* the __user boundary with pointers encapsulated inside u64. +* +* Example chaining: +* +* .. code-block:: C +* +* struct i915_user_extension ext3 { +* .next_extension = 0, // end +* .name = ..., +* }; +* struct i915_user_extension ext2 { +* .next_extension = (uintptr_t)&ext3, +* .name = ..., +* }; +* struct i915_user_extension ext1 { +* .next_extension = (uintptr_t)&ext2, +* .name = ..., +* }; +* +* Typically the struct i915_user_extension would be embedded in some uAPI +* struct, and in this case we would feed it the head of the chain(i.e ext1), +* which would then apply all of the above extensions. +* +*/ +struct xe_user_extension { +/** +* @next_extension: +* +* Pointer to the next struct i915_user_extension, or zero if the end. +*/ +__u64 next_extension; +/** +* @name: Name of the extension. +* +* Note that the name here is just some integer. +* +* Also note that the name space for this is not global for the whole +* driver, but rather its scope/meaning is limited to the specific piece +* of uAPI which has embedded the struct i915_user_extension. +*/ +__u32 name; +/** +* @flags: MBZ +* +* All undefined bits must be zero. +*/ +__u32 pad; +}; + +/* +* i915 specific ioctls. +* +* The device specific ioctl range is [DRM_COMMAND_BASE, DRM_COMMAND_END) ie +* [0x40, 0xa0) (a0 is excluded). The numbers below are defined as offset +* against DRM_COMMAND_BASE and should be between [0x0, 0x60). +*/ +#define DRM_XE_DEVICE_QUERY 0x00 +#define DRM_XE_GEM_CREATE 0x01 +#define DRM_XE_GEM_MMAP_OFFSET 0x02 +#define DRM_XE_VM_CREATE 0x03 +#define DRM_XE_VM_DESTROY 0x04 +#define DRM_XE_VM_BIND 0x05 +#define DRM_XE_ENGINE_CREATE 0x06 +#define DRM_XE_ENGINE_DESTROY 0x07 +#define DRM_XE_EXEC 0x08 +#define DRM_XE_MMIO 0x09 +#define DRM_XE_ENGINE_SET_PROPERTY 0x0a +#define DRM_XE_WAIT_USER_FENCE 0x0b +#define DRM_XE_VM_MADVISE 0x0c +#define DRM_XE_ENGINE_GET_PROPERTY 0x0d + +/* Must be kept compact -- no holes */ +#define DRM_IOCTL_XE_DEVICE_QUERY DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_DEVICE_QUERY, struct drm_xe_device_query) +#define DRM_IOCTL_XE_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_GEM_CREATE, struct drm_xe_gem_create) +#define DRM_IOCTL_XE_GEM_MMAP_OFFSET DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_GEM_MMAP_OFFSET, struct drm_xe_gem_mmap_offset) +#define DRM_IOCTL_XE_VM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_VM_CREATE, struct drm_xe_vm_create) +#define DRM_IOCTL_XE_VM_DESTROY DRM_IOW( DRM_COMMAND_BASE + DRM_XE_VM_DESTROY, struct drm_xe_vm_destroy) +#define DRM_IOCTL_XE_VM_BIND DRM_IOW( DRM_COMMAND_BASE + DRM_XE_VM_BIND, struct drm_xe_vm_bind) +#define DRM_IOCTL_XE_ENGINE_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_ENGINE_CREATE, struct drm_xe_engine_create) +#define DRM_IOCTL_XE_ENGINE_GET_PROPERTY DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_ENGINE_GET_PROPERTY, struct drm_xe_engine_get_property) +#define DRM_IOCTL_XE_ENGINE_DESTROY DRM_IOW( DRM_COMMAND_BASE + DRM_XE_ENGINE_DESTROY, struct drm_xe_engine_destroy) +#define DRM_IOCTL_XE_EXEC DRM_IOW( DRM_COMMAND_BASE + DRM_XE_EXEC, struct drm_xe_exec) +#define DRM_IOCTL_XE_MMIO DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_MMIO, struct drm_xe_mmio) +#define DRM_IOCTL_XE_ENGINE_SET_PROPERTY DRM_IOW( DRM_COMMAND_BASE + DRM_XE_ENGINE_SET_PROPERTY, struct drm_xe_engine_set_property) +#define DRM_IOCTL_XE_WAIT_USER_FENCE DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_WAIT_USER_FENCE, struct drm_xe_wait_user_fence) +#define DRM_IOCTL_XE_VM_MADVISE DRM_IOW( DRM_COMMAND_BASE + DRM_XE_VM_MADVISE, struct drm_xe_vm_madvise) + +struct drm_xe_engine_class_instance { +__u16 engine_class; + +#define DRM_XE_ENGINE_CLASS_RENDER 0 +#define DRM_XE_ENGINE_CLASS_COPY 1 +#define DRM_XE_ENGINE_CLASS_VIDEO_DECODE 2 +#define DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE 3 +#define DRM_XE_ENGINE_CLASS_COMPUTE 4 +/* +* Kernel only class (not actual hardware engine class). Used for +* creating ordered queues of VM bind operations. +*/ +#define DRM_XE_ENGINE_CLASS_VM_BIND 5 + +__u16 engine_instance; +__u16 gt_id; +}; + +#define XE_MEM_REGION_CLASS_SYSMEM 0 +#define XE_MEM_REGION_CLASS_VRAM 1 + +struct drm_xe_query_mem_usage { +__u32 num_regions; +__u32 pad; + +struct drm_xe_query_mem_region { +__u16 mem_class; +__u16 instance;/* unique ID even among different classes */ +__u32 pad; +__u32 min_page_size; +__u32 max_page_size; +__u64 total_size; +__u64 used; +__u64 reserved[8 ]; + } regions[]; +}; + +struct drm_xe_query_config { +__u32 num_params; +__u32 pad; +#define XE_QUERY_CONFIG_REV_AND_DEVICE_ID 0 +#define XE_QUERY_CONFIG_FLAGS 1 +#define XE_QUERY_CONFIG_FLAGS_HAS_VRAM (0x1 << 0) +#define XE_QUERY_CONFIG_FLAGS_USE_GUC (0x1 << 1) +#define XE_QUERY_CONFIG_MIN_ALIGNEMENT 2 +#define XE_QUERY_CONFIG_VA_BITS 3 +#define XE_QUERY_CONFIG_GT_COUNT 4 +#define XE_QUERY_CONFIG_MEM_REGION_COUNT 5 +#define XE_QUERY_CONFIG_NUM_PARAM XE_QUERY_CONFIG_MEM_REGION_COUNT + 1 +__u64 info[]; +}; + +struct drm_xe_query_gts { +__u32 num_gt; +__u32 pad; + +/* +* TODO: Perhaps info about every mem region relative to this GT? e.g. +* bandwidth between this GT and remote region? +*/ + +struct drm_xe_query_gt { +#define XE_QUERY_GT_TYPE_MAIN 0 +#define XE_QUERY_GT_TYPE_REMOTE 1 +#define XE_QUERY_GT_TYPE_MEDIA 2 +__u16 type; +__u16 instance; +__u32 clock_freq; +__u64 features; +__u64 native_mem_regions;/* bit mask of instances from drm_xe_query_mem_usage */ +__u64 slow_mem_regions;/* bit mask of instances from drm_xe_query_mem_usage */ +__u64 inaccessible_mem_regions;/* bit mask of instances from drm_xe_query_mem_usage */ +__u64 reserved[8 ]; + } gts[]; +}; + +struct drm_xe_query_topology_mask { +/** @gt_id: GT ID the mask is associated with */ +__u16 gt_id; + +/** @type: type of mask */ +__u16 type; +#define XE_TOPO_DSS_GEOMETRY (1 << 0) +#define XE_TOPO_DSS_COMPUTE (1 << 1) +#define XE_TOPO_EU_PER_DSS (1 << 2) + +/** @num_bytes: number of bytes in requested mask */ +__u32 num_bytes; + +/** @mask: little-endian mask of @num_bytes */ +__u8 mask[]; +}; + +struct drm_xe_device_query { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @query: The type of data to query */ +__u32 query; + +#define DRM_XE_DEVICE_QUERY_ENGINES 0 +#define DRM_XE_DEVICE_QUERY_MEM_USAGE 1 +#define DRM_XE_DEVICE_QUERY_CONFIG 2 +#define DRM_XE_DEVICE_QUERY_GTS 3 +#define DRM_XE_DEVICE_QUERY_HWCONFIG 4 +#define DRM_XE_DEVICE_QUERY_GT_TOPOLOGY 5 + +/** @size: Size of the queried data */ +__u32 size; + +/** @data: Queried data is placed here */ +__u64 data; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_gem_create { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** +* @size: Requested size for the object +* +* The (page-aligned) allocated size for the object will be returned. +*/ +__u64 size; + +/** +* @flags: Flags, currently a mask of memory instances of where BO can +* be placed +*/ +#define XE_GEM_CREATE_FLAG_DEFER_BACKING (0x1 << 24) +#define XE_GEM_CREATE_FLAG_SCANOUT (0x1 << 25) +__u32 flags; + +/** +* @vm_id: Attached VM, if any +* +* If a VM is specified, this BO must: +* +* 1. Only ever be bound to that VM. +* +* 2. Cannot be exported as a PRIME fd. +*/ +__u32 vm_id; + +/** +* @handle: Returned handle for the object. +* +* Object handles are nonzero. +*/ +__u32 handle; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_gem_mmap_offset { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @handle: Handle for the object being mapped. */ +__u32 handle; + +/** @flags: Must be zero */ +__u32 flags; + +/** @offset: The fake offset to use for subsequent mmap call */ +__u64 offset; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +/** +* struct drm_xe_vm_bind_op_error_capture - format of VM bind op error capture +*/ +struct drm_xe_vm_bind_op_error_capture { +/** @error: errno that occured */ +__s32 error; +/** @op: operation that encounter an error */ +__u32 op; +/** @addr: address of bind op */ +__u64 addr; +/** @size: size of bind */ +__u64 size; +}; + +/** struct drm_xe_ext_vm_set_property - VM set property extension */ +struct drm_xe_ext_vm_set_property { +/** @base: base user extension */ +struct xe_user_extension base; + +/** @property: property to set */ +#define XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS 0 +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_create { +/** @extensions: Pointer to the first extension struct, if any */ +#define XE_VM_EXTENSION_SET_PROPERTY 0 +__u64 extensions; + +/** @flags: Flags */ +__u32 flags; + +#define DRM_XE_VM_CREATE_SCRATCH_PAGE (0x1 << 0) +#define DRM_XE_VM_CREATE_COMPUTE_MODE (0x1 << 1) +#define DRM_XE_VM_CREATE_ASYNC_BIND_OPS (0x1 << 2) +#define DRM_XE_VM_CREATE_FAULT_MODE (0x1 << 3) + +/** @vm_id: Returned VM ID */ +__u32 vm_id; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_destroy { +/** @vm_id: VM ID */ +__u32 vm_id; + +/** @pad: MBZ */ +__u32 pad; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_bind_op { +/** +* @obj: GEM object to operate on, MBZ for MAP_USERPTR, MBZ for UNMAP +*/ +__u32 obj; + +union { +/** +* @obj_offset: Offset into the object, MBZ for CLEAR_RANGE, +* ignored for unbind +*/ +__u64 obj_offset; +/** @userptr: user pointer to bind on */ +__u64 userptr; + }; + +/** +* @range: Number of bytes from the object to bind to addr, MBZ for UNMAP_ALL +*/ +__u64 range; + +/** @addr: Address to operate on, MBZ for UNMAP_ALL */ +__u64 addr; + +/** +* @gt_mask: Mask for which GTs to create binds for, 0 == All GTs, +* only applies to creating new VMAs +*/ +__u64 gt_mask; + +/** @op: Operation to perform (lower 16 bits) and flags (upper 16 bits) */ +__u32 op; + +/** @mem_region: Memory region to prefetch VMA to, instance not a mask */ +__u32 region; + +#define XE_VM_BIND_OP_MAP 0x0 +#define XE_VM_BIND_OP_UNMAP 0x1 +#define XE_VM_BIND_OP_MAP_USERPTR 0x2 +#define XE_VM_BIND_OP_RESTART 0x3 +#define XE_VM_BIND_OP_UNMAP_ALL 0x4 +#define XE_VM_BIND_OP_PREFETCH 0x5 + +#define XE_VM_BIND_FLAG_READONLY (0x1 << 16) +/* +* A bind ops completions are always async, hence the support for out +* sync. This flag indicates the allocation of the memory for new page +* tables and the job to program the pages tables is asynchronous +* relative to the IOCTL. That part of a bind operation can fail under +* memory pressure, the job in practice can't fail unless the system is +* totally shot. +* +* If this flag is clear and the IOCTL doesn't return an error, in +* practice the bind op is good and will complete. +* +* If this flag is set and doesn't return return an error, the bind op +* can still fail and recovery is needed. If configured, the bind op that +* caused the error will be captured in drm_xe_vm_bind_op_error_capture. +* Once the user sees the error (via a ufence + +* XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS), it should free memory +* via non-async unbinds, and then restart all queue'd async binds op via +* XE_VM_BIND_OP_RESTART. Or alternatively the user should destroy the +* VM. +* +* This flag is only allowed when DRM_XE_VM_CREATE_ASYNC_BIND_OPS is +* configured in the VM and must be set if the VM is configured with +* DRM_XE_VM_CREATE_ASYNC_BIND_OPS and not in an error state. +*/ +#define XE_VM_BIND_FLAG_ASYNC (0x1 << 17) +/* +* Valid on a faulting VM only, do the MAP operation immediately rather +* than differing the MAP to the page fault handler. +*/ +#define XE_VM_BIND_FLAG_IMMEDIATE (0x1 << 18) + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_bind { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @vm_id: The ID of the VM to bind to */ +__u32 vm_id; + +/** +* @engine_id: engine_id, must be of class DRM_XE_ENGINE_CLASS_VM_BIND +* and engine must have same vm_id. If zero, the default VM bind engine +* is used. +*/ +__u32 engine_id; + +/** @num_binds: number of binds in this IOCTL */ +__u32 num_binds; + +union { +/** @bind: used if num_binds == 1 */ +struct drm_xe_vm_bind_op bind; +/** +* @vector_of_binds: userptr to array of struct +* drm_xe_vm_bind_op if num_binds > 1 +*/ +__u64 vector_of_binds; + }; + +/** @num_syncs: amount of syncs to wait on */ +__u32 num_syncs; + +/** @syncs: pointer to struct drm_xe_sync array */ +__u64 syncs; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +/** struct drm_xe_ext_engine_set_property - engine set property extension */ +struct drm_xe_ext_engine_set_property { +/** @base: base user extension */ +struct xe_user_extension base; + +/** @property: property to set */ +__u32 property; + +/** @value: property value */ +__u64 value; +}; + +/** +* struct drm_xe_engine_set_property - engine set property +* +* Same namespace for extensions as drm_xe_engine_create +*/ +struct drm_xe_engine_set_property { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @engine_id: Engine ID */ +__u32 engine_id; + +/** @property: property to set */ +#define XE_ENGINE_SET_PROPERTY_PRIORITY 0 +#define XE_ENGINE_SET_PROPERTY_TIMESLICE 1 +#define XE_ENGINE_SET_PROPERTY_PREEMPTION_TIMEOUT 2 +/* +* Long running or ULLS engine mode. DMA fences not allowed in this +* mode. Must match the value of DRM_XE_VM_CREATE_COMPUTE_MODE, serves +* as a sanity check the UMD knows what it is doing. Can only be set at +* engine create time. +*/ +#define XE_ENGINE_SET_PROPERTY_COMPUTE_MODE 3 +#define XE_ENGINE_SET_PROPERTY_PERSISTENCE 4 +#define XE_ENGINE_SET_PROPERTY_JOB_TIMEOUT 5 +#define XE_ENGINE_SET_PROPERTY_ACC_TRIGGER 6 +#define XE_ENGINE_SET_PROPERTY_ACC_NOTIFY 7 +#define XE_ENGINE_SET_PROPERTY_ACC_GRANULARITY 8 +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_engine_create { +/** @extensions: Pointer to the first extension struct, if any */ +#define XE_ENGINE_EXTENSION_SET_PROPERTY 0 +__u64 extensions; + +/** @width: submission width (number BB per exec) for this engine */ +__u16 width; + +/** @num_placements: number of valid placements for this engine */ +__u16 num_placements; + +/** @vm_id: VM to use for this engine */ +__u32 vm_id; + +/** @flags: MBZ */ +__u32 flags; + +/** @engine_id: Returned engine ID */ +__u32 engine_id; + +/** +* @instances: user pointer to a 2-d array of struct +* drm_xe_engine_class_instance +* +* length = width (i) * num_placements (j) +* index = j + i * width +*/ +__u64 instances; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_engine_get_property { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @engine_id: Engine ID */ +__u32 engine_id; + +/** @property: property to get */ +#define XE_ENGINE_GET_PROPERTY_BAN 0 +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_engine_destroy { +/** @engine_id: Engine ID */ +__u32 engine_id; + +/** @pad: MBZ */ +__u32 pad; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_sync { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +__u32 flags; + +#define DRM_XE_SYNC_SYNCOBJ 0x0 +#define DRM_XE_SYNC_TIMELINE_SYNCOBJ 0x1 +#define DRM_XE_SYNC_DMA_BUF 0x2 +#define DRM_XE_SYNC_USER_FENCE 0x3 +#define DRM_XE_SYNC_SIGNAL 0x10 + +union { +__u32 handle; +/** +* @addr: Address of user fence. When sync passed in via exec +* IOCTL this a GPU address in the VM. When sync passed in via +* VM bind IOCTL this is a user pointer. In either case, it is +* the users responsibility that this address is present and +* mapped when the user fence is signalled. Must be qword +* aligned. +*/ +__u64 addr; + }; + +__u64 timeline_value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_exec { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @vm_id: VM ID to run batch buffer in */ +__u32 engine_id; + +/** @num_syncs: Amount of struct drm_xe_sync in array. */ +__u32 num_syncs; + +/** @syncs: Pointer to struct drm_xe_sync array. */ +__u64 syncs; + +/** +* @address: address of batch buffer if num_batch_buffer == 1 or an +* array of batch buffer addresses +*/ +__u64 address; + +/** +* @num_batch_buffer: number of batch buffer in this exec, must match +* the width of the engine +*/ +__u16 num_batch_buffer; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_mmio { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +__u32 addr; + +__u32 flags; + +#define DRM_XE_MMIO_8BIT 0x0 +#define DRM_XE_MMIO_16BIT 0x1 +#define DRM_XE_MMIO_32BIT 0x2 +#define DRM_XE_MMIO_64BIT 0x3 +#define DRM_XE_MMIO_BITS_MASK 0x3 +#define DRM_XE_MMIO_READ 0x4 +#define DRM_XE_MMIO_WRITE 0x8 + +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +/** +* struct drm_xe_wait_user_fence - wait user fence +* +* Wait on user fence, XE will wakeup on every HW engine interrupt in the +* instances list and check if user fence is complete: +* (*addr & MASK) OP (VALUE & MASK) +* +* Returns to user on user fence completion or timeout. +*/ +struct drm_xe_wait_user_fence { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; +union { +/** +* @addr: user pointer address to wait on, must qword aligned +*/ +__u64 addr; +/** +* @vm_id: The ID of the VM which encounter an error used with +* DRM_XE_UFENCE_WAIT_VM_ERROR. Upper 32 bits must be clear. +*/ +__u64 vm_id; + }; +/** @op: wait operation (type of comparison) */ +#define DRM_XE_UFENCE_WAIT_EQ 0 +#define DRM_XE_UFENCE_WAIT_NEQ 1 +#define DRM_XE_UFENCE_WAIT_GT 2 +#define DRM_XE_UFENCE_WAIT_GTE 3 +#define DRM_XE_UFENCE_WAIT_LT 4 +#define DRM_XE_UFENCE_WAIT_LTE 5 +__u16 op; +/** @flags: wait flags */ +#define DRM_XE_UFENCE_WAIT_SOFT_OP (1 << 0)/* e.g. Wait on VM bind */ +#define DRM_XE_UFENCE_WAIT_ABSTIME (1 << 1) +#define DRM_XE_UFENCE_WAIT_VM_ERROR (1 << 2) +__u16 flags; +/** @value: compare value */ +__u64 value; +/** @mask: comparison mask */ +#define DRM_XE_UFENCE_WAIT_U8 0xffu +#define DRM_XE_UFENCE_WAIT_U16 0xffffu +#define DRM_XE_UFENCE_WAIT_U32 0xffffffffu +#define DRM_XE_UFENCE_WAIT_U64 0xffffffffffffffffu +__u64 mask; +/** @timeout: how long to wait before bailing, value in jiffies */ +__s64 timeout; +/** +* @num_engines: number of engine instances to wait on, must be zero +* when DRM_XE_UFENCE_WAIT_SOFT_OP set +*/ +__u64 num_engines; +/** +* @instances: user pointer to array of drm_xe_engine_class_instance to +* wait on, must be NULL when DRM_XE_UFENCE_WAIT_SOFT_OP set +*/ +__u64 instances; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +struct drm_xe_vm_madvise { +/** @extensions: Pointer to the first extension struct, if any */ +__u64 extensions; + +/** @vm_id: The ID VM in which the VMA exists */ +__u32 vm_id; + +/** @range: Number of bytes in the VMA */ +__u64 range; + +/** @addr: Address of the VMA to operation on */ +__u64 addr; + +/* +* Setting the preferred location will trigger a migrate of the VMA +* backing store to new location if the backing store is already +* allocated. +*/ +#define DRM_XE_VM_MADVISE_PREFERRED_MEM_CLASS 0 +#define DRM_XE_VM_MADVISE_PREFERRED_GT 1 +/* +* In this case lower 32 bits are mem class, upper 32 are GT. +* Combination provides a single IOCTL plus migrate VMA to preferred +* location. +*/ +#define DRM_XE_VM_MADVISE_PREFERRED_MEM_CLASS_GT 2 +/* +* The CPU will do atomic memory operations to this VMA. Must be set on +* some devices for atomics to behave correctly. +*/ +#define DRM_XE_VM_MADVISE_CPU_ATOMIC 3 +/* +* The device will do atomic memory operations to this VMA. Must be set +* on some devices for atomics to behave correctly. +*/ +#define DRM_XE_VM_MADVISE_DEVICE_ATOMIC 4 +/* +* Priority WRT to eviction (moving from preferred memory location due +* to memory pressure). The lower the priority, the more likely to be +* evicted. +*/ +#define DRM_XE_VM_MADVISE_PRIORITY 5 +#define DRM_XE_VMA_PRIORITY_LOW 0 +#define DRM_XE_VMA_PRIORITY_NORMAL 1/* Default */ +#define DRM_XE_VMA_PRIORITY_HIGH 2/* Must be elevated user */ +/* Pin the VMA in memory, must be elevated user */ +#define DRM_XE_VM_MADVISE_PIN 6 + +/** @property: property to set */ +__u32 property; + +/** @value: property value */ +__u64 value; + +/** @reserved: Reserved */ +__u64 reserved[2 ]; +}; + +#if defined(__cplusplus) +} +#endif + +#endif /* _UAPI_XE_DRM_H_ */
Lucas De Marchi
Acked-byRe: [igt-dev] [PATCH i-g-t v3 1/8] drm-uapi/xe_drm: Add Xe uAPI
Quoted 23 lines · Zbigniew Kempczyński
Quoted 15 lines · Michal Wajdeczko
Quoted 11 lines · Zbigniew Kempczyński
Introduce uAPI contract for Xe IGT.
Signed-off-by Jason Ekstrand <[email protected]>Signed-off-by Maarten Lankhorst <[email protected]>Signed-off-by Matthew Brost <[email protected]>Signed-off-by Philippe Lecluse <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>--- include/drm-uapi/xe_drm.h | 807 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 807 insertions(+) create mode 100644 include/drm-uapi/xe_drm.hQuoted 4 lines
is it really necessary to copy this buggy header to IGT right now?
maybe we can wait until this header will be properly reviewed and cleaned up in the kernel repo first ?
+Lucas
Quoted 9 lines
We discussed yesterday about this header - from IGT perspective it is not a blocker, after fixing in xe kernel we'll copy it here. Xe-igt repository had sense during early development stage, but now we want to migrate it here. Code still requires fixups and cleanup but we may do it here. Otherwise workflow would require sending to igt ml (squashed patches with some of them removed [kunit]), then fixup to xe-igt and repeat squash/send. Very time consuming we want to avoid. Fixing that later in igt is acceptable for us as xe driver is not production ready.
yep, any fix to this file should be done in the kernel side. igt only copies this file so it doesn't depend on any kernel-headers package.
The obvious issues I see are in the comments/docs where we have leftovers from i915. Michal, is this what you are referring to or there is something else? If you can send a patch cleaning that up or creating an issue in gitlab it would be appreciated
Lucas De Marchi
Mauro Carvalho Chehab
Acked-byRe: [igt-dev] [PATCH i-g-t v3 1/8] drm-uapi/xe_drm: Add Xe uAPI
Quoted 34 lines · On Tue, 28 Feb 2023 07:08:52 -0800 Lucas De Marchi <[email protected]>…
Quoted 23 lines · Zbigniew Kempczyński
Quoted 15 lines · Michal Wajdeczko
Quoted 11 lines · Zbigniew Kempczyński
Introduce uAPI contract for Xe IGT.
Signed-off-by Jason Ekstrand <[email protected]>Signed-off-by Maarten Lankhorst <[email protected]>Signed-off-by Matthew Brost <[email protected]>Signed-off-by Philippe Lecluse <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>--- include/drm-uapi/xe_drm.h | 807 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 807 insertions(+) create mode 100644 include/drm-uapi/xe_drm.hQuoted 4 lines
is it really necessary to copy this buggy header to IGT right now?
maybe we can wait until this header will be properly reviewed and cleaned up in the kernel repo first ?
+Lucas
Quoted 9 lines
We discussed yesterday about this header - from IGT perspective it is not a blocker, after fixing in xe kernel we'll copy it here. Xe-igt repository had sense during early development stage, but now we want to migrate it here. Code still requires fixups and cleanup but we may do it here. Otherwise workflow would require sending to igt ml (squashed patches with some of them removed [kunit]), then fixup to xe-igt and repeat squash/send. Very time consuming we want to avoid. Fixing that later in igt is acceptable for us as xe driver is not production ready.
Quoted 2 lines
yep, any fix to this file should be done in the kernel side. igt only copies this file so it doesn't depend on any kernel-headers package.
Agreed.
Quoted 10 lines
The obvious issues I see are in the comments/docs where we have leftovers from i915. Michal, is this what you are referring to or there is something else? If you can send a patch cleaning that up or creating an issue in gitlab it would be appreciated
Acked-by Lucas De Marchi <[email protected]>Lucas De Marchi
PATCH v3 2/8 lib/xe: Introduce Xe library
In reply to Zbigniew KempczyńskiXe, is a new driver for Intel GPUs that supports both integrated and discrete platforms starting with Tiger Lake (first Intel Xe Architecture).
Series was split to allow easier review. Library, drm uapi, tests, tools and other were squashed according to code subject.
This patch introduces library used for Xe tests. As there's not too trivial to calculate credits for squashed subjects full series credits are:
--- lib/drmtest.c | 3 + lib/drmtest.h | 1 + lib/meson.build | 4 + lib/xe/xe_compute.c | 402 ++++++++++++++++++++++++++++++++++++++ lib/xe/xe_compute.h | 29 +++ lib/xe/xe_ioctl.c | 434 +++++++++++++++++++++++++++++++++++++++++ lib/xe/xe_ioctl.h | 89 +++++++++ lib/xe/xe_query.c | 465 ++++++++++++++++++++++++++++++++++++++++++++ lib/xe/xe_query.h | 64 ++++++ lib/xe/xe_spin.c | 139 +++++++++++++ lib/xe/xe_spin.h | 48 +++++ meson.build | 8 + 12 files changed, 1686 insertions(+) create mode 100644 lib/xe/xe_compute.c create mode 100644 lib/xe/xe_compute.h create mode 100644 lib/xe/xe_ioctl.c create mode 100644 lib/xe/xe_ioctl.h create mode 100644 lib/xe/xe_query.c create mode 100644 lib/xe/xe_query.h create mode 100644 lib/xe/xe_spin.c create mode 100644 lib/xe/xe_spin.h
lib/drmtest.c +3 -0
@@ -189,6 +189,7 @@ static const struct module { { DRIVER_V3D, "v3d" }, { DRIVER_VC4, "vc4" }, { DRIVER_VGEM, "vgem" }, + { DRIVER_XE, "xe" }, {} };
@@ -547,6 +548,8 @@ static const char *chipset_to_str(int chipset)return "panfrost" ;case DRIVER_MSM :return "msm" ; +case DRIVER_XE : +return "xe" ;case DRIVER_ANY :return "any" ;default :
lib/drmtest.h +1 -0
@@ -51,6 +51,7 @@#define DRIVER_V3D (1 << 4)#define DRIVER_PANFROST (1 << 5)#define DRIVER_MSM (1 << 6) +#define DRIVER_XE (1 << 7)/* * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system
lib/meson.build +4 -0
@@ -98,6 +98,10 @@ lib_sources = [ 'veboxcopy_gen12.c', 'igt_msm.c', 'igt_dsc.c', + 'xe/xe_compute.c', + 'xe/xe_ioctl.c', + 'xe/xe_query.c', + 'xe/xe_spin.c' ] lib_deps = [
lib/xe/xe_compute.c new file +402 -0
402 lines not on this page · raw message
lib/xe/xe_compute.h new file +29 -0
@@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Francois Dugast <[email protected]> +*/ + +#ifndef XE_COMPUTE_H +#define XE_COMPUTE_H + +#include <stdint.h> + +void tgllp_create_indirect_data (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output); +void tgllp_create_surface_state (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output); +void tgllp_create_dynamic_state (uint32_t *addr_bo_buffer_batch, +uint64_t offset_kernel); +void tgllp_create_batch_compute (uint32_t *addr_bo_buffer_batch, +uint64_t addr_surface_state_base, +uint64_t addr_dynamic_state_base, +uint64_t addr_indirect_object_base, +uint64_t offset_indirect_data_start); + +extern unsigned char tgllp_kernel_square_bin[]; +extern unsigned int tgllp_kernel_square_length; + +#endif /* XE_COMPUTE_H */
lib/xe/xe_ioctl.c new file +434 -0
434 lines not on this page · raw message
lib/xe/xe_ioctl.h new file +89 -0
89 lines not on this page · raw message
lib/xe/xe_query.c new file +465 -0
465 lines not on this page · raw message
lib/xe/xe_query.h new file +64 -0
64 lines not on this page · raw message
lib/xe/xe_spin.c new file +139 -0
139 lines not on this page · raw message
lib/xe/xe_spin.h new file +48 -0
48 lines not on this page · raw message
meson.build +8 -0
@@ -261,6 +261,7 @@ libexecdir = join_paths(get_option('libexecdir'), 'igt-gpu-tools') amdgpudir = join_paths(libexecdir, 'amdgpu') v3ddir = join_paths(libexecdir, 'v3d') vc4dir = join_paths(libexecdir, 'vc4') +xedir = join_paths(libexecdir, 'xe') mandir = get_option('mandir') pkgconfigdir = join_paths(libdir, 'pkgconfig') python3 = find_program('python3', required : true)
@@ -308,12 +309,19 @@ if get_option('use_rpath') vc4_rpathdir = join_paths(vc4_rpathdir, '..') endforeach vc4_rpathdir = join_paths(vc4_rpathdir, libdir) + + xedir_rpathdir = '$ORIGIN' + foreach p : xedir.split('/') + xedir_rpathdir = join_paths(xedir_rpathdir, '..') + endforeach + xedir_rpathdir = join_paths(xedir_rpathdir, libdir) else bindir_rpathdir = '' libexecdir_rpathdir = '' amdgpudir_rpathdir = '' v3d_rpathdir = '' vc4_rpathdir = '' + xedir_rpathdir = '' endif subdir('lib')
Signature · 1 line
2.34.1
Re: [igt-dev] [PATCH i-g-t v3 2/8] lib/xe: Introduce Xe library
Quoted 123 lines · Zbigniew Kempczyński
Xe, is a new driver for Intel GPUs that supports both integrated and discrete platforms starting with Tiger Lake (first Intel Xe Architecture).
Series was split to allow easier review. Library, drm uapi, tests, tools and other were squashed according to code subject.
This patch introduces library used for Xe tests. As there's not too trivial to calculate credits for squashed subjects full series credits are:
Co-developed-by Matthew Brost[commits: 90 / lines changed: 12574]Co-developed-by Mauro Carvalho Chehab[commits: 28 / lines changed: 1873]Co-developed-by Rodrigo Vivi[commits: 15 / lines changed: 1317]Co-developed-by Jason Ekstrand[commits: 14 / lines changed: 1418]Co-developed-by Francois Dugast[commits: 8 / lines changed: 1082]Co-developed-by Philippe Lecluse[commits: 6 / lines changed: 560]Co-developed-by Zbigniew Kempczyński[commits: 4 / lines changed: 1091]Co-developed-by Matthew Auld[commits: 3 / lines changed: 35]Co-developed-by Niranjana Vishwanathapura[commits: 2 / lines changed: 66]Co-developed-by Maarten Lankhorst[commits: 2 / lines changed: 774]Co-developed-by Ryszard Knop[commits: 1 / lines changed: 12]Co-developed-by Thomas Hellström[commits: 1 / lines changed: 12]Signed-off-by Rodrigo Vivi <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>--- lib/drmtest.c | 3 + lib/drmtest.h | 1 + lib/meson.build | 4 + lib/xe/xe_compute.c | 402 ++++++++++++++++++++++++++++++++++++++ lib/xe/xe_compute.h | 29 +++ lib/xe/xe_ioctl.c | 434 +++++++++++++++++++++++++++++++++++++++++ lib/xe/xe_ioctl.h | 89 +++++++++ lib/xe/xe_query.c | 465 ++++++++++++++++++++++++++++++++++++++++++++ lib/xe/xe_query.h | 64 ++++++ lib/xe/xe_spin.c | 139 +++++++++++++ lib/xe/xe_spin.h | 48 +++++ meson.build | 8 + 12 files changed, 1686 insertions(+) create mode 100644 lib/xe/xe_compute.c create mode 100644 lib/xe/xe_compute.h create mode 100644 lib/xe/xe_ioctl.c create mode 100644 lib/xe/xe_ioctl.h create mode 100644 lib/xe/xe_query.c create mode 100644 lib/xe/xe_query.h create mode 100644 lib/xe/xe_spin.c create mode 100644 lib/xe/xe_spin.hlib/drmtest.c +3
-0@@ -189,6 +189,7 @@ static const struct module { { DRIVER_V3D, "v3d" }, { DRIVER_VC4, "vc4" }, { DRIVER_VGEM, "vgem" }, + { DRIVER_XE, "xe" }, {} };@@ -547,6 +548,8 @@ static const char *chipset_to_str(int chipset)return "panfrost" ;case DRIVER_MSM :return "msm" ; +case DRIVER_XE : +return "xe" ;case DRIVER_ANY :return "any" ;default :lib/drmtest.h +1
-0@@ -51,6 +51,7 @@#define DRIVER_V3D (1 << 4)#define DRIVER_PANFROST (1 << 5)#define DRIVER_MSM (1 << 6) +#define DRIVER_XE (1 << 7)/* * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system lib/meson.build +4
-0@@ -98,6 +98,10 @@ lib_sources = [ 'veboxcopy_gen12.c', 'igt_msm.c', 'igt_dsc.c', + 'xe/xe_compute.c', + 'xe/xe_ioctl.c', + 'xe/xe_query.c', + 'xe/xe_spin.c' ] lib_deps = [lib/xe/xe_compute.c new file +9
-0@@ -0,0 +1,402 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Francois Dugast <[email protected]> +*/ + +#include "xe_compute.h"
lib/xe/xe_compute.c line 19
Quoted 10 lines
lib/xe/xe_compute.c new file +10
-0+ +#define PIPE_CONTROL 0x7a000004 +#define MI_LOAD_REGISTER_IMM 0x11000001 +#define PIPELINE_SELECT 0x69040302 +#define MEDIA_VFE_STATE 0x70000007 +#define STATE_BASE_ADDRESS 0x61010014 +#define MEDIA_STATE_FLUSH 0x0 +#define MEDIA_INTERFACE_DESCRIPTOR_LOAD 0x70020002 +#define GPGPU_WALKER 0x7105000d +#define MI_BATCH_BUFFER_END (0xA << 23)
what criteria was used to select only above cmds to have their friendly mnemonics ?
lib/xe/xe_compute.c line 21
Quoted 2 lines
lib/xe/xe_compute.c new file +2
-0+ +// generated with: ocloc -file kernel.cl -device tgllp && xxd -i kernel_Gen12LPlp.gen
is this kernel.cl available somewhere ?
lib/xe/xe_compute.c line 22
Quoted 1 line
lib/xe/xe_compute.c new file +1
-0+unsigned char tgllp_kernel_square_bin[] = {
static const ?
Quoted 40 lines
lib/xe/xe_compute.c new file +40
-0+0x61 ,0x00 ,0x03 ,0x80 ,0x20 ,0x02 ,0x05 ,0x03 ,0x04 ,0x00 ,0x10 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x66 ,0x01 ,0x00 ,0x80 ,0x20 ,0x82 ,0x01 ,0x80 , +0x00 ,0x80 ,0x00 ,0x01 ,0xc0 ,0x04 ,0xc0 ,0x04 ,0x41 ,0x01 ,0x20 ,0x22 , +0x16 ,0x09 ,0x11 ,0x03 ,0x49 ,0x00 ,0x04 ,0xa2 ,0x12 ,0x09 ,0x11 ,0x03 , +0x40 ,0x01 ,0x04 ,0x00 ,0x60 ,0x06 ,0x05 ,0x05 ,0x04 ,0x04 ,0x00 ,0x01 , +0x05 ,0x01 ,0x58 ,0x00 ,0x40 ,0x00 ,0x24 ,0x00 ,0x60 ,0x06 ,0x05 ,0x0a , +0x04 ,0x04 ,0x00 ,0x01 ,0x05 ,0x02 ,0x58 ,0x00 ,0x40 ,0x02 ,0x0c ,0xa0 , +0x02 ,0x05 ,0x10 ,0x07 ,0x40 ,0x02 ,0x0e ,0xa6 ,0x02 ,0x0a ,0x10 ,0x07 , +0x70 ,0x02 ,0x04 ,0x00 ,0x60 ,0x02 ,0x01 ,0x00 ,0x05 ,0x0c ,0x46 ,0x52 , +0x84 ,0x08 ,0x00 ,0x00 ,0x70 ,0x02 ,0x24 ,0x00 ,0x60 ,0x02 ,0x01 ,0x00 , +0x05 ,0x0e ,0x46 ,0x52 ,0x84 ,0x08 ,0x00 ,0x00 ,0x72 ,0x00 ,0x02 ,0x80 , +0x50 ,0x0d ,0x04 ,0x00 ,0x05 ,0x00 ,0x05 ,0x1d ,0x05 ,0x00 ,0x05 ,0x00 , +0x22 ,0x00 ,0x05 ,0x01 ,0x00 ,0xc0 ,0x00 ,0x00 ,0x90 ,0x00 ,0x00 ,0x00 , +0x90 ,0x00 ,0x00 ,0x00 ,0x69 ,0x00 ,0x10 ,0x60 ,0x02 ,0x0c ,0x20 ,0x00 , +0x69 ,0x00 ,0x12 ,0x66 ,0x02 ,0x0e ,0x20 ,0x00 ,0x40 ,0x02 ,0x14 ,0xa0 , +0x32 ,0x10 ,0x10 ,0x08 ,0x40 ,0x02 ,0x16 ,0xa6 ,0x32 ,0x12 ,0x10 ,0x08 , +0x31 ,0xa0 ,0x04 ,0x00 ,0x00 ,0x00 ,0x14 ,0x18 ,0x14 ,0x14 ,0x00 ,0xcc , +0x00 ,0x00 ,0x16 ,0x00 ,0x31 ,0x91 ,0x24 ,0x00 ,0x00 ,0x00 ,0x14 ,0x1a , +0x14 ,0x16 ,0x00 ,0xcc ,0x00 ,0x00 ,0x16 ,0x00 ,0x40 ,0x00 ,0x10 ,0xa0 , +0x4a ,0x10 ,0x10 ,0x08 ,0x40 ,0x00 ,0x12 ,0xa6 ,0x4a ,0x12 ,0x10 ,0x08 , +0x41 ,0x20 ,0x18 ,0x20 ,0x00 ,0x18 ,0x00 ,0x18 ,0x41 ,0x21 ,0x1a ,0x26 , +0x00 ,0x1a ,0x00 ,0x1a ,0x31 ,0xa2 ,0x04 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x14 ,0x10 ,0x02 ,0xcc ,0x14 ,0x18 ,0x96 ,0x00 ,0x31 ,0x93 ,0x24 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x14 ,0x12 ,0x02 ,0xcc ,0x14 ,0x1a ,0x96 ,0x00 , +0x25 ,0x00 ,0x05 ,0x00 ,0x00 ,0x40 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x10 ,0x00 ,0x00 ,0x00 ,0x61 ,0x00 ,0x7f ,0x64 ,0x00 ,0x03 ,0x10 ,0x00 , +0x31 ,0x44 ,0x03 ,0x80 ,0x00 ,0x00 ,0x0c ,0x1c ,0x0c ,0x03 ,0x00 ,0xa0 , +0x00 ,0x00 ,0x78 ,0x02 ,0x61 ,0x24 ,0x03 ,0x80 ,0x20 ,0x02 ,0x01 ,0x00 , +0x05 ,0x1c ,0x46 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x61 ,0x00 ,0x04 ,0x80 , +0xa0 ,0x4a ,0x01 ,0x20 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x31 ,0x01 ,0x03 ,0x80 ,0x04 ,0x00 ,0x00 ,0x00 ,0x0c ,0x7f ,0x20 ,0x70 , +0x00 ,0x00 ,0x00 ,0x00 ,0x60 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
lib/xe/xe_compute.c line 72
Quoted 10 lines
lib/xe/xe_compute.c new file +10
-0+0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 +}; +unsigned int tgllp_kernel_square_length =sizeof (tgllp_kernel_square_bin);
static const ?
lib/xe/xe_compute.c line 85
Quoted 13 lines
lib/xe/xe_compute.c new file +13
-0+ +/** +* tgllp_create_indirect_data: +* @addr_bo_buffer_batch: pointer to batch buffer +* @addr_input: input buffer gpu offset +* @addr_output: output buffer gpu offset +* +* Prepares indirect data for compute pipeline. +*/ +void tgllp_create_indirect_data (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output) +{ +int b =0 ;
nit: pls add separation line for clarity
Quoted 340 lines
lib/xe/xe_compute.c new file +317
-0+ addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000200 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] = addr_input &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_input >>32 ; + addr_bo_buffer_batch[b++] = addr_output &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_output >>32 ; + addr_bo_buffer_batch[b++] =0x00000400 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000200 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00010000 ; + addr_bo_buffer_batch[b++] =0x00030002 ; + addr_bo_buffer_batch[b++] =0x00050004 ; + addr_bo_buffer_batch[b++] =0x00070006 ; + addr_bo_buffer_batch[b++] =0x00090008 ; + addr_bo_buffer_batch[b++] =0x000B000A ; + addr_bo_buffer_batch[b++] =0x000D000C ; + addr_bo_buffer_batch[b++] =0x000F000E ; + addr_bo_buffer_batch[b++] =0x00110010 ; + addr_bo_buffer_batch[b++] =0x00130012 ; + addr_bo_buffer_batch[b++] =0x00150014 ; + addr_bo_buffer_batch[b++] =0x00170016 ; + addr_bo_buffer_batch[b++] =0x00190018 ; + addr_bo_buffer_batch[b++] =0x001B001A ; + addr_bo_buffer_batch[b++] =0x001D001C ; + addr_bo_buffer_batch[b++] =0x001F001E ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00210020 ; + addr_bo_buffer_batch[b++] =0x00230022 ; + addr_bo_buffer_batch[b++] =0x00250024 ; + addr_bo_buffer_batch[b++] =0x00270026 ; + addr_bo_buffer_batch[b++] =0x00290028 ; + addr_bo_buffer_batch[b++] =0x002B002A ; + addr_bo_buffer_batch[b++] =0x002D002C ; + addr_bo_buffer_batch[b++] =0x002F002E ; + addr_bo_buffer_batch[b++] =0x00310030 ; + addr_bo_buffer_batch[b++] =0x00330032 ; + addr_bo_buffer_batch[b++] =0x00350034 ; + addr_bo_buffer_batch[b++] =0x00370036 ; + addr_bo_buffer_batch[b++] =0x00390038 ; + addr_bo_buffer_batch[b++] =0x003B003A ; + addr_bo_buffer_batch[b++] =0x003D003C ; + addr_bo_buffer_batch[b++] =0x003F003E ; +} + +/** +* tgllp_create_surface_state: +* @addr_bo_buffer_batch: pointer to batch buffer +* @addr_input: input buffer gpu offset +* @addr_output: output buffer gpu offset +* +* Prepares surface state for compute pipeline. +*/ +void tgllp_create_surface_state (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output) +{ +int b =0 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x87FD4000 ; + addr_bo_buffer_batch[b++] =0x04000000 ; + addr_bo_buffer_batch[b++] =0x001F007F ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00004000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] = addr_input &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_input >>32 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x87FD4000 ; + addr_bo_buffer_batch[b++] =0x04000000 ; + addr_bo_buffer_batch[b++] =0x001F007F ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00004000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] = addr_output &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_output >>32 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000040 ; + addr_bo_buffer_batch[b++] =0x00000080 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; +} + +/** +* tgllp_create_dynamic_state: +* @addr_bo_buffer_batch: pointer to batch buffer +* @offset_kernel: gpu offset of the shader +* +* Prepares dynamic state for compute pipeline. +*/ +void tgllp_create_dynamic_state (uint32_t *addr_bo_buffer_batch, +uint64_t offset_kernel) +{ +int b =0 ; + addr_bo_buffer_batch[b++] = offset_kernel; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00180000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x000000C0 ; + addr_bo_buffer_batch[b++] =0x00060000 ; + addr_bo_buffer_batch[b++] =0x00000010 ; + addr_bo_buffer_batch[b++] =0x00000003 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; +} + +/** +* tgllp_create_batch_compute: +* @addr_bo_buffer_batch: pointer to batch buffer +* @addr_surface_state_base: gpu offset of surface state data +* @addr_dynamic_state_base: gpu offset of dynamic state data +* @addr_indirect_object_base: gpu offset of indirect object data +* @offset_indirect_data_start: gpu offset of indirect data start +* +* Prepares compute pipeline. +*/ +void tgllp_create_batch_compute (uint32_t *addr_bo_buffer_batch, +uint64_t addr_surface_state_base, +uint64_t addr_dynamic_state_base, +uint64_t addr_indirect_object_base, +uint64_t offset_indirect_data_start) +{ +int b =0 ; + addr_bo_buffer_batch[b++] =MI_LOAD_REGISTER_IMM ; + addr_bo_buffer_batch[b++] =0x00002580 ; + addr_bo_buffer_batch[b++] =0x00060002 ; + addr_bo_buffer_batch[b++] =PIPELINE_SELECT ; + addr_bo_buffer_batch[b++] =MI_LOAD_REGISTER_IMM ; + addr_bo_buffer_batch[b++] =0x00007034 ; + addr_bo_buffer_batch[b++] =0x60000321 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MI_LOAD_REGISTER_IMM ; + addr_bo_buffer_batch[b++] =0x0000E404 ; + addr_bo_buffer_batch[b++] =0x00000100 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00101021 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MEDIA_VFE_STATE ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00A70100 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x07820000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100420 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =STATE_BASE_ADDRESS ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00040000 ; + addr_bo_buffer_batch[b++] = (addr_surface_state_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = addr_surface_state_base >>32 ; + addr_bo_buffer_batch[b++] = (addr_dynamic_state_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = addr_dynamic_state_base >>32 ; + addr_bo_buffer_batch[b++] = (addr_indirect_object_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = (addr_indirect_object_base >>32 ) |0xffff0000 ; + addr_bo_buffer_batch[b++] = (addr_indirect_object_base &0xffffffff ) |0x41 ; + addr_bo_buffer_batch[b++] = addr_indirect_object_base >>32 ; + addr_bo_buffer_batch[b++] =0xFFFFF001 ; + addr_bo_buffer_batch[b++] =0x00010001 ; + addr_bo_buffer_batch[b++] =0xFFFFF001 ; + addr_bo_buffer_batch[b++] =0xFFFFF001 ; + addr_bo_buffer_batch[b++] = (addr_surface_state_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = addr_surface_state_base >>32 ; + addr_bo_buffer_batch[b++] =0x003BF000 ; + addr_bo_buffer_batch[b++] =0x00000041 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MEDIA_STATE_FLUSH ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MEDIA_INTERFACE_DESCRIPTOR_LOAD ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000020 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =GPGPU_WALKER ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000c80 ; + addr_bo_buffer_batch[b++] = offset_indirect_data_start; + addr_bo_buffer_batch[b++] =0x8000000f ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000002 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0xffffffff ; + addr_bo_buffer_batch[b++] =0xffffffff ; + addr_bo_buffer_batch[b++] =MEDIA_STATE_FLUSH ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100120 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MI_BATCH_BUFFER_END ; +}lib/xe/xe_compute.h new file +17
-0@@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Francois Dugast <[email protected]> +*/ + +#ifndef XE_COMPUTE_H +#define XE_COMPUTE_H + +#include <stdint.h> + +void tgllp_create_indirect_data (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output); +void tgllp_create_surface_state (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output);
lib/xe/xe_compute.h line 27
Quoted 10 lines
lib/xe/xe_compute.h new file +10
-0+void tgllp_create_dynamic_state (uint32_t *addr_bo_buffer_batch, +uint64_t offset_kernel); +void tgllp_create_batch_compute (uint32_t *addr_bo_buffer_batch, +uint64_t addr_surface_state_base, +uint64_t addr_dynamic_state_base, +uint64_t addr_indirect_object_base, +uint64_t offset_indirect_data_start); + +extern unsigned char tgllp_kernel_square_bin[]; +extern unsigned int tgllp_kernel_square_length;
do we need to expose this as raw data ? maybe as function:
const char* tgllp_kernel_square(uint32_t *out_length);
Quoted 32 lines
lib/xe/xe_compute.h new file +2
-0+ +#endif /* XE_COMPUTE_H */ lib/xe/xe_ioctl.c new file +24
-0@@ -0,0 +1,434 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Jason Ekstrand <[email protected]> +* Maarten Lankhorst <[email protected]> +* Matthew Brost <[email protected]> +*/ + +#ifdef HAVE_LIBGEN_H +#include <libgen.h> +#endif + +#include <errno.h> +#include <fcntl.h> +#include <getopt.h> +#include <pciaccess.h> +#include <signal.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <termios.h> +#include <unistd.h>
lib/xe/xe_ioctl.c line 34
Quoted 10 lines
lib/xe/xe_ioctl.c new file +10
-0+#include <sys/ioctl.h> +#include <sys/mman.h> +#include <sys/stat.h> +#include <sys/syscall.h> +#include <sys/types.h> +#include <sys/utsname.h> +#include <sys/wait.h> + +#include "drmtest.h" +#include "config.h"
nit: wrong include order
lib/xe/xe_ioctl.c line 43
Quoted 9 lines
lib/xe/xe_ioctl.c new file +9
-0+ +#ifdef HAVE_VALGRIND +#include <valgrind/valgrind.h> +#include <valgrind/memcheck.h> + +#define VG (x) x +#else +#define VG (x) do {} while (0) +#endif
VG seems unused, drop it ?
Quoted 365 lines
lib/xe/xe_ioctl.c new file +365
-0+ +#include "xe_ioctl.h" +#include "xe_query.h" +#include "igt_syncobj.h" +#include "ioctl_wrappers.h" + +uint32_t xe_cs_prefetch_size (int fd) +{ +return 512 ; +} + +uint32_t xe_vm_create (int fd,uint32_t flags,uint64_t ext) +{ +struct drm_xe_vm_create create = { + .extensions = ext, + .flags = flags, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_CREATE , &create),0 ); + +return create.vm_id; +} + +void xe_vm_unbind_all_async (int fd,uint32_t vm,uint32_t engine, +uint32_t bo,struct drm_xe_sync *sync, +uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine, bo,0 ,0 ,0 , +XE_VM_BIND_OP_UNMAP_ALL |XE_VM_BIND_FLAG_ASYNC , + sync, num_syncs,0 ,0 ); +} + +void xe_vm_bind_array (int fd,uint32_t vm,uint32_t engine, +struct drm_xe_vm_bind_op *bind_ops, +uint32_t num_bind,struct drm_xe_sync *sync, +uint32_t num_syncs) +{ +struct drm_xe_vm_bind bind = { + .vm_id = vm, + .num_binds = num_bind, + .vector_of_binds = (uintptr_t )bind_ops, + .num_syncs = num_syncs, + .syncs = (uintptr_t )sync, + .engine_id = engine, + }; + +igt_assert (num_bind >1 ); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_BIND , &bind),0 ); +} + +int __xe_vm_bind (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size,uint32_t op, +struct drm_xe_sync *sync,uint32_t num_syncs,uint32_t region, +uint64_t ext) +{ +struct drm_xe_vm_bind bind = { + .extensions = ext, + .vm_id = vm, + .num_binds =1 , + .bind.obj = bo, + .bind.obj_offset = offset, + .bind.range = size, + .bind.addr = addr, + .bind.op = op, + .bind.region = region, + .num_syncs = num_syncs, + .syncs = (uintptr_t )sync, + .engine_id = engine, + }; + +if (igt_ioctl (fd,DRM_IOCTL_XE_VM_BIND , &bind)) +return -errno; + +return 0 ; +} + +void __xe_vm_bind_assert (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +uint32_t op,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t region,uint64_t ext) +{ +igt_assert_eq (__xe_vm_bind (fd, vm, engine, bo, offset, addr, size, + op, sync, num_syncs, region, ext),0 ); +} + +void xe_vm_bind (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm,0 , bo, offset, addr, size, +XE_VM_BIND_OP_MAP , sync, num_syncs,0 ,0 ); +} + +void xe_vm_unbind (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm,0 ,0 , offset, addr, size, +XE_VM_BIND_OP_UNMAP , sync, num_syncs,0 ,0 ); +} + +void xe_vm_prefetch_async (int fd,uint32_t vm,uint32_t engine,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t region) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , offset, addr, size, +XE_VM_BIND_OP_PREFETCH |XE_VM_BIND_FLAG_ASYNC , + sync, num_syncs, region,0 ); +} + +void xe_vm_bind_async (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine, bo, offset, addr, size, +XE_VM_BIND_OP_MAP |XE_VM_BIND_FLAG_ASYNC , sync, + num_syncs,0 ,0 ); +} + +void xe_vm_bind_async_flags (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t flags) +{ +__xe_vm_bind_assert (fd, vm, engine, bo, offset, addr, size, +XE_VM_BIND_OP_MAP |XE_VM_BIND_FLAG_ASYNC | flags, + sync, num_syncs,0 ,0 ); +} + +void xe_vm_bind_userptr_async (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , userptr, addr, size, +XE_VM_BIND_OP_MAP_USERPTR |XE_VM_BIND_FLAG_ASYNC , + sync, num_syncs,0 ,0 ); +} + +void xe_vm_bind_userptr_async_flags (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr, +uint64_t size,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t flags) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , userptr, addr, size, +XE_VM_BIND_OP_MAP_USERPTR |XE_VM_BIND_FLAG_ASYNC | + flags, sync, num_syncs,0 ,0 ); +} + +void xe_vm_unbind_async (int fd,uint32_t vm,uint32_t engine, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , offset, addr, size, +XE_VM_BIND_OP_UNMAP |XE_VM_BIND_FLAG_ASYNC , sync, + num_syncs,0 ,0 ); +} + +static void __xe_vm_bind_sync (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size,uint32_t op) +{ +struct drm_xe_sync sync = { + .flags =DRM_XE_SYNC_SYNCOBJ |DRM_XE_SYNC_SIGNAL , + .handle =syncobj_create (fd,0 ), + }; + +__xe_vm_bind_assert (fd, vm,0 , bo, offset, addr, size, op, &sync,1 ,0 , +0 ); + +igt_assert (syncobj_wait (fd, &sync.handle,1 ,INT64_MAX ,0 ,NULL )); +syncobj_destroy (fd, sync.handle); +} + +void xe_vm_bind_sync (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size) +{ +__xe_vm_bind_sync (fd, vm, bo, offset, addr, size,XE_VM_BIND_OP_MAP ); +} + +void xe_vm_unbind_sync (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size) +{ +__xe_vm_bind_sync (fd, vm,0 , offset, addr, size,XE_VM_BIND_OP_UNMAP ); +} + +void xe_vm_destroy (int fd,uint32_t vm) +{ +struct drm_xe_vm_destroy destroy = { + .vm_id = vm, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_DESTROY , &destroy),0 ); +} + +uint32_t xe_bo_create_flags (int fd,uint32_t vm,uint64_t size,uint32_t flags) +{ +struct drm_xe_gem_create create = { + .vm_id = vm, + .size = size, + .flags = flags, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_GEM_CREATE , &create),0 ); + +return create.handle; +} + +uint32_t xe_bo_create (int fd,int gt,uint32_t vm,uint64_t size) +{ +struct drm_xe_gem_create create = { + .vm_id = vm, + .size = size, + .flags =vram_if_possible (fd, gt), + }; +int err; + + err =igt_ioctl (fd,DRM_IOCTL_XE_GEM_CREATE , &create); +igt_assert_eq (err,0 ); + +return create.handle; +} + +uint32_t xe_bind_engine_create (int fd,uint32_t vm,uint64_t ext) +{ +struct drm_xe_engine_class_instance instance = { + .engine_class =DRM_XE_ENGINE_CLASS_VM_BIND , + }; +struct drm_xe_engine_create create = { + .extensions = ext, + .vm_id = vm, + .width =1 , + .num_placements =1 , + .instances =to_user_pointer (&instance), + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_CREATE , &create),0 ); + +return create.engine_id; +} + +uint32_t xe_engine_create (int fd,uint32_t vm, +struct drm_xe_engine_class_instance *instance, +uint64_t ext) +{ +struct drm_xe_engine_create create = { + .extensions = ext, + .vm_id = vm, + .width =1 , + .num_placements =1 , + .instances =to_user_pointer (instance), + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_CREATE , &create),0 ); + +return create.engine_id; +} + +uint32_t xe_engine_create_class (int fd,uint32_t vm,uint16_t class) +{ +struct drm_xe_engine_class_instance instance = { + .engine_class = class, + .engine_instance =0 , + .gt_id =0 , + }; +struct drm_xe_engine_create create = { + .vm_id = vm, + .width =1 , + .num_placements =1 , + .instances =to_user_pointer (&instance), + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_CREATE , &create),0 ); + +return create.engine_id; +} + +void xe_engine_destroy (int fd,uint32_t engine) +{ +struct drm_xe_engine_destroy destroy = { + .engine_id = engine, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_DESTROY , &destroy),0 ); +} + +uint64_t xe_bo_mmap_offset (int fd,uint32_t bo) +{ +struct drm_xe_gem_mmap_offset mmo = { + .handle = bo, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_GEM_MMAP_OFFSET , &mmo),0 ); + +return mmo.offset; +} + +void *xe_bo_map (int fd,uint32_t bo,size_t size) +{ +uint64_t mmo; +void *map; + + mmo =xe_bo_mmap_offset (fd, bo); + map =mmap (NULL , size,PROT_WRITE ,MAP_SHARED , fd, mmo); +igt_assert (map !=MAP_FAILED ); + +return map; +} + +static int __xe_exec (int fd,struct drm_xe_exec *exec) +{ +int err =0 ; + +if (igt_ioctl (fd,DRM_IOCTL_XE_EXEC , exec)) { + err = -errno; +igt_assume (err !=0 ); + } + errno =0 ; +return err; +} + +void xe_exec (int fd,struct drm_xe_exec *exec) +{ +igt_assert_eq (__xe_exec (fd, exec),0 ); +} + +void xe_exec_sync (int fd,uint32_t engine,uint64_t addr, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +struct drm_xe_exec exec = { + .engine_id = engine, + .syncs = (uintptr_t )sync, + .num_syncs = num_syncs, + .address = addr, + .num_batch_buffer =1 , + }; + +igt_assert_eq (__xe_exec (fd, &exec),0 ); +} + +void xe_exec_wait (int fd,uint32_t engine,uint64_t addr) +{ +struct drm_xe_sync sync = { + .flags =DRM_XE_SYNC_SYNCOBJ |DRM_XE_SYNC_SIGNAL , + .handle =syncobj_create (fd,0 ), + }; + +xe_exec_sync (fd, engine, addr, &sync,1 ); + +igt_assert (syncobj_wait (fd, &sync.handle,1 ,INT64_MAX ,0 ,NULL )); +syncobj_destroy (fd, sync.handle); +} + +void xe_wait_ufence (int fd,uint64_t *addr,uint64_t value, +struct drm_xe_engine_class_instance *eci, +int64_t timeout) +{ +struct drm_xe_wait_user_fence wait = { + .addr =to_user_pointer (addr), + .op =DRM_XE_UFENCE_WAIT_EQ , + .flags = !eci ?DRM_XE_UFENCE_WAIT_SOFT_OP :0 , + .value = value, + .mask =DRM_XE_UFENCE_WAIT_U64 , + .timeout = timeout, + .num_engines = eci ?1 :0 , + .instances = eci ?to_user_pointer (eci) :0 ,
lib/xe/xe_ioctl.c line 418
Quoted 10 lines
lib/xe/xe_ioctl.c new file +10
-0+ }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_WAIT_USER_FENCE , &wait),0 ); +} + +void xe_force_gt_reset (int fd,int gt) +{ +char reset_string[128 ]; + +sprintf (reset_string,"cat /sys/kernel/debug/dri/0/gt%d/force_reset" , gt);
this seems wrong: you can't assume Xe will be always dri 0
(another topic is why reset is triggered by reading debugfs, but that's not your fault)
Quoted 29 lines
lib/xe/xe_ioctl.c new file +16
-0+system (reset_string); +} + +void xe_vm_madvise (int fd,uint32_t vm,uint64_t addr,uint64_t size, +uint32_t property,uint32_t value) +{ +struct drm_xe_vm_madvise madvise = { + .vm_id = vm, + .range = size, + .addr = addr, + .property = property, + .value = value, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_MADVISE , &madvise),0 ); +}lib/xe/xe_ioctl.h new file +7
-0@@ -0,0 +1,89 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Jason Ekstrand <[email protected]> +* Maarten Lankhorst <[email protected]>
lib/xe/xe_ioctl.h line 17
Quoted 10 lines
lib/xe/xe_ioctl.h new file +10
-0+* Matthew Brost <[email protected]> +*/ + +#ifndef XE_IOCTL_H +#define XE_IOCTL_H + +#include <stdint.h> +#include <stdbool.h> +#include <sys/mman.h> +#include <xe_drm.h>
do you really need all these headers in this file ?
Quoted 189 lines
lib/xe/xe_ioctl.h new file +72
-0+ +uint32_t xe_cs_prefetch_size (int fd); +uint32_t xe_vm_create (int fd,uint32_t flags,uint64_t ext); +int __xe_vm_bind (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size,uint32_t op, +struct drm_xe_sync *sync,uint32_t num_syncs,uint32_t region, +uint64_t ext); +void __xe_vm_bind_assert (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +uint32_t op,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t region,uint64_t ext); +void xe_vm_bind (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_unbind (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_prefetch_async (int fd,uint32_t vm,uint32_t engine, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t region); +void xe_vm_bind_async (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_bind_userptr_async (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_bind_async_flags (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t flags); +void xe_vm_bind_userptr_async_flags (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr, +uint64_t size,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t flags); +void xe_vm_unbind_async (int fd,uint32_t vm,uint32_t engine, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_bind_sync (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size); +void xe_vm_unbind_sync (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size); +void xe_vm_bind_array (int fd,uint32_t vm,uint32_t engine, +struct drm_xe_vm_bind_op *bind_ops, +uint32_t num_bind,struct drm_xe_sync *sync, +uint32_t num_syncs); +void xe_vm_unbind_all_async (int fd,uint32_t vm,uint32_t engine, +uint32_t bo,struct drm_xe_sync *sync, +uint32_t num_syncs); +void xe_vm_destroy (int fd,uint32_t vm); +uint32_t xe_bo_create_flags (int fd,uint32_t vm,uint64_t size,uint32_t flags); +uint32_t xe_bo_create (int fd,int gt,uint32_t vm,uint64_t size); +uint32_t xe_engine_create (int fd,uint32_t vm, +struct drm_xe_engine_class_instance *instance, +uint64_t ext); +uint32_t xe_bind_engine_create (int fd,uint32_t vm,uint64_t ext); +uint32_t xe_engine_create_class (int fd,uint32_t vm,uint16_t class); +void xe_engine_destroy (int fd,uint32_t engine); +uint64_t xe_bo_mmap_offset (int fd,uint32_t bo); +void *xe_bo_map (int fd,uint32_t bo,size_t size); +void xe_exec (int fd,struct drm_xe_exec *exec); +void xe_exec_sync (int fd,uint32_t engine,uint64_t addr, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_exec_wait (int fd,uint32_t engine,uint64_t addr); +void xe_wait_ufence (int fd,uint64_t *addr,uint64_t value, +struct drm_xe_engine_class_instance *eci, +int64_t timeout); +void xe_force_gt_reset (int fd,int gt); +void xe_vm_madvise (int fd,uint32_t vm,uint64_t addr,uint64_t size, +uint32_t property,uint32_t value); + +#endif /* XE_IOCTL_H */ lib/xe/xe_query.c new file +111
-0@@ -0,0 +1,465 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ + +#include <stdlib.h> +#include <pthread.h> + +#include "drmtest.h" +#include "ioctl_wrappers.h" +#include "igt_map.h" + +#include "xe_query.h" +#include "xe_ioctl.h" + +static struct drm_xe_query_config *xe_query_config_new (int fd) +{ +struct drm_xe_query_config *config; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_CONFIG , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + config =malloc (query.size); +igt_assert (config); + + query.data =to_user_pointer (config); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + +igt_assert (config->num_params >0 ); + +return config; +} + +static struct drm_xe_query_gts *xe_query_gts_new (int fd) +{ +struct drm_xe_query_gts *gts; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_GTS , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + gts =malloc (query.size); +igt_assert (gts); + + query.data =to_user_pointer (gts); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + +return gts; +} + +static uint64_t __memory_regions (const struct drm_xe_query_gts *gts) +{ +uint64_t regions =0 ; +int i; + +for (i =0 ; i < gts->num_gt; i++) + regions |= gts->gts[i].native_mem_regions | + gts->gts[i].slow_mem_regions; + +return regions; +} + +static struct drm_xe_engine_class_instance * +xe_query_engines_new (int fd,int *num_engines) +{ +struct drm_xe_engine_class_instance *hw_engines; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_ENGINES , + .size =0 , + .data =0 , + }; + +igt_assert (num_engines); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + hw_engines =malloc (query.size); +igt_assert (hw_engines); + + query.data =to_user_pointer (hw_engines); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + *num_engines = query.size /sizeof (*hw_engines); + +return hw_engines; +} + +static struct drm_xe_query_mem_usage *xe_query_mem_usage_new (int fd) +{ +struct drm_xe_query_mem_usage *mem_usage; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_MEM_USAGE , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); +
lib/xe/xe_query.c line 121
Quoted 10 lines
lib/xe/xe_query.c new file +10
-0+ mem_usage =malloc (query.size); +igt_assert (mem_usage); + + query.data =to_user_pointer (mem_usage); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + +return mem_usage; +} + +/* FIXME: Make generic / multi-GT aware */
why can't it be fixed right now ?
Quoted 57 lines
lib/xe/xe_query.c new file +57
-0+static uint64_t __mem_vram_size (struct drm_xe_query_mem_usage *mem_usage) +{ +for (int i =0 ; i < mem_usage->num_regions; i++) +if (mem_usage->regions[i].mem_class ==XE_MEM_REGION_CLASS_VRAM ) +return mem_usage->regions[i].total_size; + +return 0 ; +} + +static bool __mem_has_vram (struct drm_xe_query_mem_usage *mem_usage) +{ +for (int i =0 ; i < mem_usage->num_regions; i++) +if (mem_usage->regions[i].mem_class ==XE_MEM_REGION_CLASS_VRAM ) +return true; + +return false; +} + +static uint32_t __mem_default_alignment (struct drm_xe_query_mem_usage *mem_usage) +{ +uint32_t alignment =XE_DEFAULT_ALIGNMENT ; + +for (int i =0 ; i < mem_usage->num_regions; i++) +if (alignment < mem_usage->regions[i].min_page_size) + alignment = mem_usage->regions[i].min_page_size; + +return alignment; +} + +static bool xe_check_supports_faults (int fd) +{ +bool supports_faults; + +struct drm_xe_vm_create create = { + .flags =DRM_XE_VM_CREATE_ASYNC_BIND_OPS | +DRM_XE_VM_CREATE_FAULT_MODE , + }; + + supports_faults = !igt_ioctl (fd,DRM_IOCTL_XE_VM_CREATE , &create); + +if (supports_faults) +xe_vm_destroy (fd, create.vm_id); + +return supports_faults; +} + +/** +* xe_engine_class_string: +* @engine_class: engine class +* +* Returns engine class name or 'unknown class engine' otherwise. +*/ +const char *xe_engine_class_string (uint32_t engine_class) +{ +switch (engine_class) { +case DRM_XE_ENGINE_CLASS_RENDER : +return "DRM_XE_ENGINE_CLASS_RENDER" ;
lib/xe/xe_query.c line 188
Quoted 10 lines
lib/xe/xe_query.c new file +10
-0+case DRM_XE_ENGINE_CLASS_COPY : +return "DRM_XE_ENGINE_CLASS_COPY" ; +case DRM_XE_ENGINE_CLASS_VIDEO_DECODE : +return "DRM_XE_ENGINE_CLASS_VIDEO_DECODE" ; +case DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE : +return "DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE" ; +case DRM_XE_ENGINE_CLASS_COMPUTE : +return "DRM_XE_ENGINE_CLASS_COMPUTE" ; +default : +igt_warn ("Engine class %x unknown\n" , engine_class);
%x without 0x prefix might be misleading
Quoted 100 lines
lib/xe/xe_query.c new file +100
-0+return "unknown engine class" ; + } +} + +static struct xe_device_cache { +pthread_mutex_t cache_mutex; +struct igt_map *map; +} cache; + +static struct xe_device *find_in_cache_unlocked (int fd) +{ +return igt_map_search (cache.map, &fd); +} + +static struct xe_device *find_in_cache (int fd) +{ +struct xe_device *xe_dev; + +pthread_mutex_lock (&cache.cache_mutex); + xe_dev =find_in_cache_unlocked (fd); +pthread_mutex_unlock (&cache.cache_mutex); + +return xe_dev; +} + +/** +* xe_device_get: +* @fd: xe device fd +* +* Function creates and caches xe_device struct which contains configuration +* data returned in few queries. Subsequent calls returns previously +* created xe_device. To remove this from cache xe_device_put() must be +* called. +*/ +struct xe_device *xe_device_get (int fd) +{ +struct xe_device *xe_dev; + + xe_dev =find_in_cache (fd); +if (xe_dev) +return xe_dev; + + xe_dev =calloc (1 ,sizeof (*xe_dev)); +igt_assert (xe_dev); + + xe_dev->fd = fd; + xe_dev->config =xe_query_config_new (fd); + xe_dev->number_gt = xe_dev->config->info[XE_QUERY_CONFIG_GT_COUNT ]; + xe_dev->va_bits = xe_dev->config->info[XE_QUERY_CONFIG_VA_BITS ]; + xe_dev->gts =xe_query_gts_new (fd); + xe_dev->memory_regions =__memory_regions (xe_dev->gts); + xe_dev->hw_engines =xe_query_engines_new (fd, &xe_dev->number_hw_engines); + xe_dev->mem_usage =xe_query_mem_usage_new (fd); + xe_dev->vram_size =__mem_vram_size (xe_dev->mem_usage); + xe_dev->default_alignment =__mem_default_alignment (xe_dev->mem_usage); + xe_dev->has_vram =__mem_has_vram (xe_dev->mem_usage); + xe_dev->supports_faults =xe_check_supports_faults (fd); + +igt_map_insert (cache.map, &xe_dev->fd, xe_dev); + +return xe_dev; +} + +static void xe_device_free (struct xe_device *xe_dev) +{ +free (xe_dev->config); +free (xe_dev->gts); +free (xe_dev->hw_engines); +free (xe_dev->mem_usage); +free (xe_dev); +} + +static void delete_in_cache (struct igt_map_entry *entry) +{ +xe_device_free ((struct xe_device *)entry->data); +} + +/** +* xe_device_put: +* @fd: xe device fd +* +* Remove previously allocated and cached xe_device (if any). +*/ +void xe_device_put (int fd) +{ +pthread_mutex_lock (&cache.cache_mutex); +if (find_in_cache_unlocked (fd)) +igt_map_remove (cache.map, &fd, delete_in_cache); +pthread_mutex_unlock (&cache.cache_mutex); +} + +static void xe_device_destroy_cache (void ) +{ +pthread_mutex_lock (&cache.cache_mutex); +igt_map_destroy (cache.map, delete_in_cache); +pthread_mutex_unlock (&cache.cache_mutex); +} + +static void xe_device_cache_init (void ) +{
lib/xe/xe_query.c line 298
Quoted 10 lines
lib/xe/xe_query.c new file +10
-0+pthread_mutex_init (&cache.cache_mutex,NULL ); +xe_device_destroy_cache (); + cache.map =igt_map_create (igt_map_hash_32, igt_map_equal_32); +} + +#define RETV (__v) \ + struct xe_device *xe_dev;\ + xe_dev = find_in_cache(fd);\ + igt_assert(xe_dev);\ + return xe_dev->__v
return from within macro is rather not welcomed
can't we just define full function template instead? (if we really need to have a macro?)
#define xe_dev_XXX(_X, _T) \
_T xe_dev_##_X(int fd) \
{ \
struct xe_device *xe_dev; \
\
xe_dev = find_in_cache(fd); \
igt_assert(xe_dev); \
return xe_dev->_X; \
}xe_dev_XXX(number_gt, int) xe_dev_XXX(memory_regions, uint64_t) xe_dev_XXX(hw_engines, struct drm_xe_engine_class_instance*)
...
Quoted 180 lines
lib/xe/xe_query.c new file +167
-0+ +/** +* xe_number_gt: +* @fd: xe device fd +* +* Return number of gts for xe device fd. +*/ +int xe_number_gt (int fd) +{ +RETV (number_gt); +} + +/** +* all_memory_regions: +* @fd: xe device fd +* +* Returns memory regions bitmask for xe device @fd. +*/ +uint64_t all_memory_regions (int fd) +{ +RETV (memory_regions); +} + +/** +* system_memory: +* @fd: xe device fd +* +* Returns system memory bitmask for xe device @fd. +*/ +uint64_t system_memory (int fd) +{ +uint64_t regions =all_memory_regions (fd); + +return regions &0x1 ; +} + +/** +* vram_memory: +* @fd: xe device fd +* @gt: gt id +* +* Returns vram memory bitmask for xe device @fd and @gt id. +*/ +uint64_t vram_memory (int fd,int gt) +{ +uint64_t regions =all_memory_regions (fd); + +return regions & (0x2 << gt); +} + +/** +* vram_if_possible: +* @fd: xe device fd +* @gt: gt id +* +* Returns vram memory bitmask for xe device @fd and @gt id or system memory +* if there's no vram memory available for @gt. +*/ +uint64_t vram_if_possible (int fd,int gt) +{ +uint64_t regions =all_memory_regions (fd); +uint64_t system_memory = regions &0x1 ; +uint64_t vram = regions & (0x2 << gt); + +return vram ? vram : system_memory; +} + +/** +* xe_hw_engines: +* @fd: xe device fd +* +* Returns engines array of xe device @fd. +*/ +struct drm_xe_engine_class_instance *xe_hw_engines (int fd) +{ +RETV (hw_engines); +} + +/** +* xe_hw_engine: +* @fd: xe device fd +* @idx: engine index +* +* Returns engine instance of xe device @fd and @idx. +*/ +struct drm_xe_engine_class_instance *xe_hw_engine (int fd,int idx) +{ +struct xe_device *xe_dev; + + xe_dev =find_in_cache (fd); +igt_assert (xe_dev); +igt_assert (idx >=0 && idx < xe_dev->number_hw_engines); + +return &xe_dev->hw_engines[idx]; +} + +/** +* xe_number_hw_engine: +* @fd: xe device fd +* +* Returns number of hw engines of xe device @fd. +*/ +int xe_number_hw_engines (int fd) +{ +RETV (number_hw_engines); +} + +/** +* xe_has_vram: +* @fd: xe device fd +* +* Returns true if xe device @fd has vram otherwise false. +*/ +bool xe_has_vram (int fd) +{ +RETV (has_vram); +} + +/** +* xe_vram_size: +* @fd: xe device fd +* +* Returns size of vram of xe device @fd. +*/ +uint64_t xe_vram_size (int fd) +{ +RETV (vram_size); +} + +/** +* xe_get_default_alignment: +* @fd: xe device fd +* +* Returns default alignment of objects for xe device @fd. +*/ +uint32_t xe_get_default_alignment (int fd) +{ +RETV (default_alignment); +} + +/** +* xe_supports_faults: +* @fd: xe device fd +* +* Returns true if xe device @fd allows creating vm in fault mode otherwise +* false. +*/ +bool xe_supports_faults (int fd) +{ +RETV (supports_faults); +} + +/** +* xe_va_bits: +* @fd: xe device fd +* +* Returns number of virtual address bits used in xe device @fd. +*/ +uint32_t xe_va_bits (int fd) +{ +RETV (va_bits); +} + +igt_constructor +{ +xe_device_cache_init (); +}lib/xe/xe_query.h new file +7
-0@@ -0,0 +1,64 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/
lib/xe/xe_query.h line 17
Quoted 10 lines
lib/xe/xe_query.h new file +10
-0+ +#ifndef XE_QUERY_H +#define XE_QUERY_H + +#include <stdint.h> +#include <xe_drm.h> +#include "igt_list.h" + +#define XE_DEFAULT_ALIGNMENT 0x1000 +#define XE_DEFAULT_ALIGNMENT_64K 0x10000
nit: maybe time to define SZ_xxx
lib/xe/xe_query.h line 19
Quoted 2 lines
lib/xe/xe_query.h new file +2
-0+ +struct xe_device {
shouldn't we document all struct members ?
lib/xe/xe_query.h line 26
Quoted 7 lines
lib/xe/xe_query.h new file +7
-0+int fd; + +struct drm_xe_query_config *config; +struct drm_xe_query_gts *gts; +uint64_t memory_regions; +struct drm_xe_engine_class_instance *hw_engines; +int number_hw_engines;
unsigned int ?
lib/xe/xe_query.h line 33
Quoted 7 lines
lib/xe/xe_query.h new file +7
-0+struct drm_xe_query_mem_usage *mem_usage; +uint64_t vram_size; +uint32_t default_alignment; +bool has_vram; +bool supports_faults; + +int number_gt;
unsigned int ?
Quoted 7 lines
lib/xe/xe_query.h new file +7
-0+uint32_t va_bits; +}; + +#define for_each_hw_engine (__fd, __hwe) \ + for (int __i = 0; __i < xe_number_hw_engines(__fd) && \ + (__hwe = xe_hw_engine(__fd, __i)); ++__i) +#define for_each_hw_engine_class (__class) \
lib/xe/xe_query.h line 50
Quoted 10 lines
lib/xe/xe_query.h new file +10
-0+for (__class =0 ; __class <DRM_XE_ENGINE_CLASS_COMPUTE +1 ; \ + ++__class) +#define for_each_gt (__fd, __gt) \ + for (__gt = 0; __gt < xe_number_gt(__fd); ++__gt) + +int xe_number_gt (int fd); +uint64_t all_memory_regions (int fd); +uint64_t system_memory (int fd); +uint64_t vram_memory (int fd,int gt); +uint64_t vram_if_possible (int fd,int gt);
any reason why above function don't have any common prefix like "xe" ?
Quoted 28 lines
lib/xe/xe_query.h new file +14
-0+struct drm_xe_engine_class_instance *xe_hw_engines (int fd); +struct drm_xe_engine_class_instance *xe_hw_engine (int fd,int idx); +int xe_number_hw_engines (int fd); +bool xe_has_vram (int fd); +uint64_t xe_vram_size (int fd); +uint32_t xe_get_default_alignment (int fd); +uint32_t xe_va_bits (int fd); +bool xe_supports_faults (int fd); +const char *xe_engine_class_string (uint32_t engine_class); + +struct xe_device *xe_device_get (int fd); +void xe_device_put (int fd); + +#endif /* XE_QUERY_H */ lib/xe/xe_spin.c new file +8
-0@@ -0,0 +1,139 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ +
lib/xe/xe_spin.c line 18
Quoted 10 lines
lib/xe/xe_spin.c new file +10
-0+#include <string.h> + +#include "drmtest.h" +#include "igt.h" +#include "igt_core.h" +#include "igt_syncobj.h" +#include "intel_reg.h" +#include "xe_ioctl.h" +#include "xe_spin.h" +
in other file even trivial getter functions were documented,
why spin functions here are all undocumented ?
Quoted 207 lines
lib/xe/xe_spin.c new file +121
-0+void xe_spin_init (struct xe_spin *spin,uint64_t addr,bool preempt) +{ +uint64_t batch_offset = (char *)&spin->batch - (char *)spin; +uint64_t batch_addr = addr + batch_offset; +uint64_t start_offset = (char *)&spin->start - (char *)spin; +uint64_t start_addr = addr + start_offset; +uint64_t end_offset = (char *)&spin->end - (char *)spin; +uint64_t end_addr = addr + end_offset; +int b =0 ; + + spin->start =0 ; + spin->end =0xffffffff ; + + spin->batch[b++] =MI_STORE_DWORD_IMM ; + spin->batch[b++] = start_addr; + spin->batch[b++] = start_addr >>32 ; + spin->batch[b++] =0xc0ffee ; + +if (preempt) + spin->batch[b++] = (0x5 <<23 ); + + spin->batch[b++] =MI_COND_BATCH_BUFFER_END |MI_DO_COMPARE |2 ; + spin->batch[b++] =0 ; + spin->batch[b++] = end_addr; + spin->batch[b++] = end_addr >>32 ; + + spin->batch[b++] =MI_BATCH_BUFFER_START |1 <<8 |1 ; + spin->batch[b++] = batch_addr; + spin->batch[b++] = batch_addr >>32 ; + +igt_assert (b <=ARRAY_SIZE (spin->batch)); +} + +bool xe_spin_started (struct xe_spin *spin) +{ +return spin->start !=0 ; +} + +void xe_spin_wait_started (struct xe_spin *spin) +{ +while (!xe_spin_started (spin)); +} + +void xe_spin_end (struct xe_spin *spin) +{ + spin->end =0 ; +} + +void xe_cork_init (int fd,struct drm_xe_engine_class_instance *hwe, +struct xe_cork *cork) +{ +uint64_t addr =xe_get_default_alignment (fd); +size_t bo_size =xe_get_default_alignment (fd); +uint32_t vm, bo, engine, syncobj; +struct xe_spin *spin; +struct drm_xe_sync sync = { + .flags =DRM_XE_SYNC_SYNCOBJ |DRM_XE_SYNC_SIGNAL , + }; +struct drm_xe_exec exec = { + .num_batch_buffer =1 , + .num_syncs =1 , + .syncs =to_user_pointer (&sync), + }; + + vm =xe_vm_create (fd,0 ,0 ); + + bo =xe_bo_create (fd, hwe->gt_id, vm, bo_size); + spin =xe_bo_map (fd, bo,0x1000 ); + +xe_vm_bind_sync (fd, vm, bo,0 , addr, bo_size); + + engine =xe_engine_create (fd, vm, hwe,0 ); + syncobj =syncobj_create (fd,0 ); + +xe_spin_init (spin, addr, true); + exec.engine_id = engine; + exec.address = addr; + sync.handle = syncobj; +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_EXEC , &exec),0 ); + + cork->spin = spin; + cork->fd = fd; + cork->vm = vm; + cork->bo = bo; + cork->engine = engine; + cork->syncobj = syncobj; +} + +bool xe_cork_started (struct xe_cork *cork) +{ +return xe_spin_started (cork->spin); +} + +void xe_cork_wait_started (struct xe_cork *cork) +{ +xe_spin_wait_started (cork->spin); +} + +void xe_cork_end (struct xe_cork *cork) +{ +xe_spin_end (cork->spin); +} + +void xe_cork_wait_done (struct xe_cork *cork) +{ +igt_assert (syncobj_wait (cork->fd, &cork->syncobj,1 ,INT64_MAX ,0 , +NULL )); +} + +void xe_cork_fini (struct xe_cork *cork) +{ +syncobj_destroy (cork->fd, cork->syncobj); +xe_engine_destroy (cork->fd, cork->engine); +xe_vm_destroy (cork->fd, cork->vm); +gem_close (cork->fd, cork->bo); +} + +uint32_t xe_cork_sync_handle (struct xe_cork *cork) +{ +return cork->syncobj; +}lib/xe/xe_spin.h new file +48
-0@@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ + +#ifndef XE_SPIN_H +#define XE_SPIN_H + +#include <stdint.h> +#include <stdbool.h> + +#include "xe_query.h" + +/* Mapped GPU object */ +struct xe_spin { +uint32_t batch[16 ]; +uint64_t pad; +uint32_t start; +uint32_t end; +}; + +void xe_spin_init (struct xe_spin *spin,uint64_t addr,bool preempt); +bool xe_spin_started (struct xe_spin *spin); +void xe_spin_wait_started (struct xe_spin *spin); +void xe_spin_end (struct xe_spin *spin); + +struct xe_cork { +struct xe_spin *spin; +int fd; +uint32_t vm; +uint32_t bo; +uint32_t engine; +uint32_t syncobj; +}; + +void xe_cork_init (int fd,struct drm_xe_engine_class_instance *hwe, +struct xe_cork *cork); +bool xe_cork_started (struct xe_cork *cork); +void xe_cork_wait_started (struct xe_cork *cork); +void xe_cork_end (struct xe_cork *cork); +void xe_cork_wait_done (struct xe_cork *cork); +void xe_cork_fini (struct xe_cork *cork); +uint32_t xe_cork_sync_handle (struct xe_cork *cork); + +#endif /* XE_SPIN_H */ meson.build +8
-0@@ -261,6 +261,7 @@ libexecdir = join_paths(get_option('libexecdir'), 'igt-gpu-tools') amdgpudir = join_paths(libexecdir, 'amdgpu') v3ddir = join_paths(libexecdir, 'v3d') vc4dir = join_paths(libexecdir, 'vc4') +xedir = join_paths(libexecdir, 'xe') mandir = get_option('mandir') pkgconfigdir = join_paths(libdir, 'pkgconfig') python3 = find_program('python3', required : true)@@ -308,12 +309,19 @@ if get_option('use_rpath') vc4_rpathdir = join_paths(vc4_rpathdir, '..') endforeach vc4_rpathdir = join_paths(vc4_rpathdir, libdir) + + xedir_rpathdir = '$ORIGIN' + foreach p : xedir.split('/') + xedir_rpathdir = join_paths(xedir_rpathdir, '..') + endforeach + xedir_rpathdir = join_paths(xedir_rpathdir, libdir) else bindir_rpathdir = '' libexecdir_rpathdir = '' amdgpudir_rpathdir = '' v3d_rpathdir = '' vc4_rpathdir = '' + xedir_rpathdir = '' endif subdir('lib')
Re: [igt-dev] [PATCH i-g-t v3 2/8] lib/xe: Introduce Xe library
Quoted 131 lines · Michal Wajdeczko
Quoted 128 lines · Zbigniew Kempczyński
Xe, is a new driver for Intel GPUs that supports both integrated and discrete platforms starting with Tiger Lake (first Intel Xe Architecture).
Series was split to allow easier review. Library, drm uapi, tests, tools and other were squashed according to code subject.
This patch introduces library used for Xe tests. As there's not too trivial to calculate credits for squashed subjects full series credits are:
Co-developed-by Matthew Brost[commits: 90 / lines changed: 12574]Co-developed-by Mauro Carvalho Chehab[commits: 28 / lines changed: 1873]Co-developed-by Rodrigo Vivi[commits: 15 / lines changed: 1317]Co-developed-by Jason Ekstrand[commits: 14 / lines changed: 1418]Co-developed-by Francois Dugast[commits: 8 / lines changed: 1082]Co-developed-by Philippe Lecluse[commits: 6 / lines changed: 560]Co-developed-by Zbigniew Kempczyński[commits: 4 / lines changed: 1091]Co-developed-by Matthew Auld[commits: 3 / lines changed: 35]Co-developed-by Niranjana Vishwanathapura[commits: 2 / lines changed: 66]Co-developed-by Maarten Lankhorst[commits: 2 / lines changed: 774]Co-developed-by Ryszard Knop[commits: 1 / lines changed: 12]Co-developed-by Thomas Hellström[commits: 1 / lines changed: 12]Signed-off-by Rodrigo Vivi <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>--- lib/drmtest.c | 3 + lib/drmtest.h | 1 + lib/meson.build | 4 + lib/xe/xe_compute.c | 402 ++++++++++++++++++++++++++++++++++++++ lib/xe/xe_compute.h | 29 +++ lib/xe/xe_ioctl.c | 434 +++++++++++++++++++++++++++++++++++++++++ lib/xe/xe_ioctl.h | 89 +++++++++ lib/xe/xe_query.c | 465 ++++++++++++++++++++++++++++++++++++++++++++ lib/xe/xe_query.h | 64 ++++++ lib/xe/xe_spin.c | 139 +++++++++++++ lib/xe/xe_spin.h | 48 +++++ meson.build | 8 + 12 files changed, 1686 insertions(+) create mode 100644 lib/xe/xe_compute.c create mode 100644 lib/xe/xe_compute.h create mode 100644 lib/xe/xe_ioctl.c create mode 100644 lib/xe/xe_ioctl.h create mode 100644 lib/xe/xe_query.c create mode 100644 lib/xe/xe_query.h create mode 100644 lib/xe/xe_spin.c create mode 100644 lib/xe/xe_spin.hlib/drmtest.c +3
-0@@ -189,6 +189,7 @@ static const struct module { { DRIVER_V3D, "v3d" }, { DRIVER_VC4, "vc4" }, { DRIVER_VGEM, "vgem" }, + { DRIVER_XE, "xe" }, {} };@@ -547,6 +548,8 @@ static const char *chipset_to_str(int chipset)return "panfrost" ;case DRIVER_MSM :return "msm" ; +case DRIVER_XE : +return "xe" ;case DRIVER_ANY :return "any" ;default :lib/drmtest.h +1
-0@@ -51,6 +51,7 @@#define DRIVER_V3D (1 << 4)#define DRIVER_PANFROST (1 << 5)#define DRIVER_MSM (1 << 6) +#define DRIVER_XE (1 << 7)/* * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system lib/meson.build +4
-0@@ -98,6 +98,10 @@ lib_sources = [ 'veboxcopy_gen12.c', 'igt_msm.c', 'igt_dsc.c', + 'xe/xe_compute.c', + 'xe/xe_ioctl.c', + 'xe/xe_query.c', + 'xe/xe_spin.c' ] lib_deps = [lib/xe/xe_compute.c new file +14
-0@@ -0,0 +1,402 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Francois Dugast <[email protected]> +*/ + +#include "xe_compute.h" + +#define PIPE_CONTROL 0x7a000004 +#define MI_LOAD_REGISTER_IMM 0x11000001 +#define PIPELINE_SELECT 0x69040302 +#define MEDIA_VFE_STATE 0x70000007
Quoted 9 lines
lib/xe/xe_compute.c line 19
Quoted 5 lines
lib/xe/xe_compute.c new file +5
-0+#define STATE_BASE_ADDRESS 0x61010014 +#define MEDIA_STATE_FLUSH 0x0 +#define MEDIA_INTERFACE_DESCRIPTOR_LOAD 0x70020002 +#define GPGPU_WALKER 0x7105000d +#define MI_BATCH_BUFFER_END (0xA << 23)what criteria was used to select only above cmds to have their friendly mnemonics ?
+Francois
Could you provide some comment + kernel.cl?
Quoted 5 lines
lib/xe/xe_compute.c line 21
Quoted 2 lines
lib/xe/xe_compute.c new file +2
-0+ +// generated with: ocloc -file kernel.cl -device tgllp && xxd -i kernel_Gen12LPlp.gen is this kernel.cl available somewhere ?
Agree, I would also like to include it here.
Quoted 3 lines
lib/xe/xe_compute.c line 22
Quoted 1 line
lib/xe/xe_compute.c new file +1
-0+unsigned char tgllp_kernel_square_bin[] = {static const ?
It cannot be static, it is copied to kernel bo in test (tests/xe/xe_compute.c)
Quoted 45 lines
Quoted 45 lines
lib/xe/xe_compute.c new file +44
-0+0x61 ,0x00 ,0x03 ,0x80 ,0x20 ,0x02 ,0x05 ,0x03 ,0x04 ,0x00 ,0x10 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x66 ,0x01 ,0x00 ,0x80 ,0x20 ,0x82 ,0x01 ,0x80 , +0x00 ,0x80 ,0x00 ,0x01 ,0xc0 ,0x04 ,0xc0 ,0x04 ,0x41 ,0x01 ,0x20 ,0x22 , +0x16 ,0x09 ,0x11 ,0x03 ,0x49 ,0x00 ,0x04 ,0xa2 ,0x12 ,0x09 ,0x11 ,0x03 , +0x40 ,0x01 ,0x04 ,0x00 ,0x60 ,0x06 ,0x05 ,0x05 ,0x04 ,0x04 ,0x00 ,0x01 , +0x05 ,0x01 ,0x58 ,0x00 ,0x40 ,0x00 ,0x24 ,0x00 ,0x60 ,0x06 ,0x05 ,0x0a , +0x04 ,0x04 ,0x00 ,0x01 ,0x05 ,0x02 ,0x58 ,0x00 ,0x40 ,0x02 ,0x0c ,0xa0 , +0x02 ,0x05 ,0x10 ,0x07 ,0x40 ,0x02 ,0x0e ,0xa6 ,0x02 ,0x0a ,0x10 ,0x07 , +0x70 ,0x02 ,0x04 ,0x00 ,0x60 ,0x02 ,0x01 ,0x00 ,0x05 ,0x0c ,0x46 ,0x52 , +0x84 ,0x08 ,0x00 ,0x00 ,0x70 ,0x02 ,0x24 ,0x00 ,0x60 ,0x02 ,0x01 ,0x00 , +0x05 ,0x0e ,0x46 ,0x52 ,0x84 ,0x08 ,0x00 ,0x00 ,0x72 ,0x00 ,0x02 ,0x80 , +0x50 ,0x0d ,0x04 ,0x00 ,0x05 ,0x00 ,0x05 ,0x1d ,0x05 ,0x00 ,0x05 ,0x00 , +0x22 ,0x00 ,0x05 ,0x01 ,0x00 ,0xc0 ,0x00 ,0x00 ,0x90 ,0x00 ,0x00 ,0x00 , +0x90 ,0x00 ,0x00 ,0x00 ,0x69 ,0x00 ,0x10 ,0x60 ,0x02 ,0x0c ,0x20 ,0x00 , +0x69 ,0x00 ,0x12 ,0x66 ,0x02 ,0x0e ,0x20 ,0x00 ,0x40 ,0x02 ,0x14 ,0xa0 , +0x32 ,0x10 ,0x10 ,0x08 ,0x40 ,0x02 ,0x16 ,0xa6 ,0x32 ,0x12 ,0x10 ,0x08 , +0x31 ,0xa0 ,0x04 ,0x00 ,0x00 ,0x00 ,0x14 ,0x18 ,0x14 ,0x14 ,0x00 ,0xcc , +0x00 ,0x00 ,0x16 ,0x00 ,0x31 ,0x91 ,0x24 ,0x00 ,0x00 ,0x00 ,0x14 ,0x1a , +0x14 ,0x16 ,0x00 ,0xcc ,0x00 ,0x00 ,0x16 ,0x00 ,0x40 ,0x00 ,0x10 ,0xa0 , +0x4a ,0x10 ,0x10 ,0x08 ,0x40 ,0x00 ,0x12 ,0xa6 ,0x4a ,0x12 ,0x10 ,0x08 , +0x41 ,0x20 ,0x18 ,0x20 ,0x00 ,0x18 ,0x00 ,0x18 ,0x41 ,0x21 ,0x1a ,0x26 , +0x00 ,0x1a ,0x00 ,0x1a ,0x31 ,0xa2 ,0x04 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x14 ,0x10 ,0x02 ,0xcc ,0x14 ,0x18 ,0x96 ,0x00 ,0x31 ,0x93 ,0x24 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x14 ,0x12 ,0x02 ,0xcc ,0x14 ,0x1a ,0x96 ,0x00 , +0x25 ,0x00 ,0x05 ,0x00 ,0x00 ,0x40 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x10 ,0x00 ,0x00 ,0x00 ,0x61 ,0x00 ,0x7f ,0x64 ,0x00 ,0x03 ,0x10 ,0x00 , +0x31 ,0x44 ,0x03 ,0x80 ,0x00 ,0x00 ,0x0c ,0x1c ,0x0c ,0x03 ,0x00 ,0xa0 , +0x00 ,0x00 ,0x78 ,0x02 ,0x61 ,0x24 ,0x03 ,0x80 ,0x20 ,0x02 ,0x01 ,0x00 , +0x05 ,0x1c ,0x46 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x61 ,0x00 ,0x04 ,0x80 , +0xa0 ,0x4a ,0x01 ,0x20 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x31 ,0x01 ,0x03 ,0x80 ,0x04 ,0x00 ,0x00 ,0x00 ,0x0c ,0x7f ,0x20 ,0x70 , +0x00 ,0x00 ,0x00 ,0x00 ,0x60 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Quoted 8 lines
lib/xe/xe_compute.c line 72
Quoted 6 lines
lib/xe/xe_compute.c new file +6
-0+0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 +}; +unsigned int tgllp_kernel_square_length =sizeof (tgllp_kernel_square_bin);static const ?
Same as above.
Quoted 17 lines
Quoted 4 lines
lib/xe/xe_compute.c new file +3
-0+ +/** +* tgllp_create_indirect_data: lib/xe/xe_compute.c line 85
Quoted 10 lines
lib/xe/xe_compute.c new file +10
-0+* @addr_bo_buffer_batch: pointer to batch buffer +* @addr_input: input buffer gpu offset +* @addr_output: output buffer gpu offset +* +* Prepares indirect data for compute pipeline. +*/ +void tgllp_create_indirect_data (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output) +{ +int b =0 ;nit: pls add separation line for clarity
Agree, I will send in v4 (for other functions too).
Quoted 353 lines
Quoted 340 lines
lib/xe/xe_compute.c new file +317
-0+ addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000200 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] = addr_input &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_input >>32 ; + addr_bo_buffer_batch[b++] = addr_output &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_output >>32 ; + addr_bo_buffer_batch[b++] =0x00000400 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000200 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00010000 ; + addr_bo_buffer_batch[b++] =0x00030002 ; + addr_bo_buffer_batch[b++] =0x00050004 ; + addr_bo_buffer_batch[b++] =0x00070006 ; + addr_bo_buffer_batch[b++] =0x00090008 ; + addr_bo_buffer_batch[b++] =0x000B000A ; + addr_bo_buffer_batch[b++] =0x000D000C ; + addr_bo_buffer_batch[b++] =0x000F000E ; + addr_bo_buffer_batch[b++] =0x00110010 ; + addr_bo_buffer_batch[b++] =0x00130012 ; + addr_bo_buffer_batch[b++] =0x00150014 ; + addr_bo_buffer_batch[b++] =0x00170016 ; + addr_bo_buffer_batch[b++] =0x00190018 ; + addr_bo_buffer_batch[b++] =0x001B001A ; + addr_bo_buffer_batch[b++] =0x001D001C ; + addr_bo_buffer_batch[b++] =0x001F001E ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00210020 ; + addr_bo_buffer_batch[b++] =0x00230022 ; + addr_bo_buffer_batch[b++] =0x00250024 ; + addr_bo_buffer_batch[b++] =0x00270026 ; + addr_bo_buffer_batch[b++] =0x00290028 ; + addr_bo_buffer_batch[b++] =0x002B002A ; + addr_bo_buffer_batch[b++] =0x002D002C ; + addr_bo_buffer_batch[b++] =0x002F002E ; + addr_bo_buffer_batch[b++] =0x00310030 ; + addr_bo_buffer_batch[b++] =0x00330032 ; + addr_bo_buffer_batch[b++] =0x00350034 ; + addr_bo_buffer_batch[b++] =0x00370036 ; + addr_bo_buffer_batch[b++] =0x00390038 ; + addr_bo_buffer_batch[b++] =0x003B003A ; + addr_bo_buffer_batch[b++] =0x003D003C ; + addr_bo_buffer_batch[b++] =0x003F003E ; +} + +/** +* tgllp_create_surface_state: +* @addr_bo_buffer_batch: pointer to batch buffer +* @addr_input: input buffer gpu offset +* @addr_output: output buffer gpu offset +* +* Prepares surface state for compute pipeline. +*/ +void tgllp_create_surface_state (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output) +{ +int b =0 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x87FD4000 ; + addr_bo_buffer_batch[b++] =0x04000000 ; + addr_bo_buffer_batch[b++] =0x001F007F ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00004000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] = addr_input &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_input >>32 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x87FD4000 ; + addr_bo_buffer_batch[b++] =0x04000000 ; + addr_bo_buffer_batch[b++] =0x001F007F ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00004000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] = addr_output &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_output >>32 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000040 ; + addr_bo_buffer_batch[b++] =0x00000080 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; +} + +/** +* tgllp_create_dynamic_state: +* @addr_bo_buffer_batch: pointer to batch buffer +* @offset_kernel: gpu offset of the shader +* +* Prepares dynamic state for compute pipeline. +*/ +void tgllp_create_dynamic_state (uint32_t *addr_bo_buffer_batch, +uint64_t offset_kernel) +{ +int b =0 ; + addr_bo_buffer_batch[b++] = offset_kernel; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00180000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x000000C0 ; + addr_bo_buffer_batch[b++] =0x00060000 ; + addr_bo_buffer_batch[b++] =0x00000010 ; + addr_bo_buffer_batch[b++] =0x00000003 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; +} + +/** +* tgllp_create_batch_compute: +* @addr_bo_buffer_batch: pointer to batch buffer +* @addr_surface_state_base: gpu offset of surface state data +* @addr_dynamic_state_base: gpu offset of dynamic state data +* @addr_indirect_object_base: gpu offset of indirect object data +* @offset_indirect_data_start: gpu offset of indirect data start +* +* Prepares compute pipeline. +*/ +void tgllp_create_batch_compute (uint32_t *addr_bo_buffer_batch, +uint64_t addr_surface_state_base, +uint64_t addr_dynamic_state_base, +uint64_t addr_indirect_object_base, +uint64_t offset_indirect_data_start) +{ +int b =0 ; + addr_bo_buffer_batch[b++] =MI_LOAD_REGISTER_IMM ; + addr_bo_buffer_batch[b++] =0x00002580 ; + addr_bo_buffer_batch[b++] =0x00060002 ; + addr_bo_buffer_batch[b++] =PIPELINE_SELECT ; + addr_bo_buffer_batch[b++] =MI_LOAD_REGISTER_IMM ; + addr_bo_buffer_batch[b++] =0x00007034 ; + addr_bo_buffer_batch[b++] =0x60000321 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MI_LOAD_REGISTER_IMM ; + addr_bo_buffer_batch[b++] =0x0000E404 ; + addr_bo_buffer_batch[b++] =0x00000100 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00101021 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MEDIA_VFE_STATE ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00A70100 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x07820000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100420 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =STATE_BASE_ADDRESS ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00040000 ; + addr_bo_buffer_batch[b++] = (addr_surface_state_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = addr_surface_state_base >>32 ; + addr_bo_buffer_batch[b++] = (addr_dynamic_state_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = addr_dynamic_state_base >>32 ; + addr_bo_buffer_batch[b++] = (addr_indirect_object_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = (addr_indirect_object_base >>32 ) |0xffff0000 ; + addr_bo_buffer_batch[b++] = (addr_indirect_object_base &0xffffffff ) |0x41 ; + addr_bo_buffer_batch[b++] = addr_indirect_object_base >>32 ; + addr_bo_buffer_batch[b++] =0xFFFFF001 ; + addr_bo_buffer_batch[b++] =0x00010001 ; + addr_bo_buffer_batch[b++] =0xFFFFF001 ; + addr_bo_buffer_batch[b++] =0xFFFFF001 ; + addr_bo_buffer_batch[b++] = (addr_surface_state_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = addr_surface_state_base >>32 ; + addr_bo_buffer_batch[b++] =0x003BF000 ; + addr_bo_buffer_batch[b++] =0x00000041 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MEDIA_STATE_FLUSH ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MEDIA_INTERFACE_DESCRIPTOR_LOAD ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000020 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =GPGPU_WALKER ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000c80 ; + addr_bo_buffer_batch[b++] = offset_indirect_data_start; + addr_bo_buffer_batch[b++] =0x8000000f ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000002 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0xffffffff ; + addr_bo_buffer_batch[b++] =0xffffffff ; + addr_bo_buffer_batch[b++] =MEDIA_STATE_FLUSH ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100120 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MI_BATCH_BUFFER_END ; +}lib/xe/xe_compute.h new file +17
-0@@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Francois Dugast <[email protected]> +*/ + +#ifndef XE_COMPUTE_H +#define XE_COMPUTE_H + +#include <stdint.h> + +void tgllp_create_indirect_data (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output); +void tgllp_create_surface_state (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output);lib/xe/xe_compute.h line 27
Quoted 10 lines
lib/xe/xe_compute.h new file +10
-0+void tgllp_create_dynamic_state (uint32_t *addr_bo_buffer_batch, +uint64_t offset_kernel); +void tgllp_create_batch_compute (uint32_t *addr_bo_buffer_batch, +uint64_t addr_surface_state_base, +uint64_t addr_dynamic_state_base, +uint64_t addr_indirect_object_base, +uint64_t offset_indirect_data_start); + +extern unsigned char tgllp_kernel_square_bin[]; +extern unsigned int tgllp_kernel_square_length;do we need to expose this as raw data ? maybe as function:
Quoted 2 lines
const char*
tgllp_kernel_square(uint32_t *out_length);
May we do this refactor later? I think we will add compute pipelines for other platforms so this would be good time to clean this.
Quoted 36 lines
Quoted 36 lines
lib/xe/xe_compute.h new file +2
-0+ +#endif /* XE_COMPUTE_H */ lib/xe/xe_ioctl.c new file +28
-0@@ -0,0 +1,434 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Jason Ekstrand <[email protected]> +* Maarten Lankhorst <[email protected]> +* Matthew Brost <[email protected]> +*/ + +#ifdef HAVE_LIBGEN_H +#include <libgen.h> +#endif + +#include <errno.h> +#include <fcntl.h> +#include <getopt.h> +#include <pciaccess.h> +#include <signal.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <termios.h> +#include <unistd.h> +#include <sys/ioctl.h> +#include <sys/mman.h> +#include <sys/stat.h> +#include <sys/syscall.h>
Quoted 9 lines
lib/xe/xe_ioctl.c line 34
Quoted 6 lines
lib/xe/xe_ioctl.c new file +6
-0+#include <sys/types.h> +#include <sys/utsname.h> +#include <sys/wait.h> + +#include "drmtest.h" +#include "config.h" nit: wrong include order
You mean sorting local headers?
Quoted 12 lines
lib/xe/xe_ioctl.c line 43
Quoted 9 lines
lib/xe/xe_ioctl.c new file +9
-0+ +#ifdef HAVE_VALGRIND +#include <valgrind/valgrind.h> +#include <valgrind/memcheck.h> + +#define VG (x) x +#else +#define VG (x) do {} while (0) +#endif VG seems unused, drop it ?
Agree, looks like copy-paste code from i915.
Quoted 369 lines
Quoted 369 lines
lib/xe/xe_ioctl.c new file +369
-0+ +#include "xe_ioctl.h" +#include "xe_query.h" +#include "igt_syncobj.h" +#include "ioctl_wrappers.h" + +uint32_t xe_cs_prefetch_size (int fd) +{ +return 512 ; +} + +uint32_t xe_vm_create (int fd,uint32_t flags,uint64_t ext) +{ +struct drm_xe_vm_create create = { + .extensions = ext, + .flags = flags, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_CREATE , &create),0 ); + +return create.vm_id; +} + +void xe_vm_unbind_all_async (int fd,uint32_t vm,uint32_t engine, +uint32_t bo,struct drm_xe_sync *sync, +uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine, bo,0 ,0 ,0 , +XE_VM_BIND_OP_UNMAP_ALL |XE_VM_BIND_FLAG_ASYNC , + sync, num_syncs,0 ,0 ); +} + +void xe_vm_bind_array (int fd,uint32_t vm,uint32_t engine, +struct drm_xe_vm_bind_op *bind_ops, +uint32_t num_bind,struct drm_xe_sync *sync, +uint32_t num_syncs) +{ +struct drm_xe_vm_bind bind = { + .vm_id = vm, + .num_binds = num_bind, + .vector_of_binds = (uintptr_t )bind_ops, + .num_syncs = num_syncs, + .syncs = (uintptr_t )sync, + .engine_id = engine, + }; + +igt_assert (num_bind >1 ); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_BIND , &bind),0 ); +} + +int __xe_vm_bind (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size,uint32_t op, +struct drm_xe_sync *sync,uint32_t num_syncs,uint32_t region, +uint64_t ext) +{ +struct drm_xe_vm_bind bind = { + .extensions = ext, + .vm_id = vm, + .num_binds =1 , + .bind.obj = bo, + .bind.obj_offset = offset, + .bind.range = size, + .bind.addr = addr, + .bind.op = op, + .bind.region = region, + .num_syncs = num_syncs, + .syncs = (uintptr_t )sync, + .engine_id = engine, + }; + +if (igt_ioctl (fd,DRM_IOCTL_XE_VM_BIND , &bind)) +return -errno; + +return 0 ; +} + +void __xe_vm_bind_assert (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +uint32_t op,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t region,uint64_t ext) +{ +igt_assert_eq (__xe_vm_bind (fd, vm, engine, bo, offset, addr, size, + op, sync, num_syncs, region, ext),0 ); +} + +void xe_vm_bind (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm,0 , bo, offset, addr, size, +XE_VM_BIND_OP_MAP , sync, num_syncs,0 ,0 ); +} + +void xe_vm_unbind (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm,0 ,0 , offset, addr, size, +XE_VM_BIND_OP_UNMAP , sync, num_syncs,0 ,0 ); +} + +void xe_vm_prefetch_async (int fd,uint32_t vm,uint32_t engine,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t region) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , offset, addr, size, +XE_VM_BIND_OP_PREFETCH |XE_VM_BIND_FLAG_ASYNC , + sync, num_syncs, region,0 ); +} + +void xe_vm_bind_async (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine, bo, offset, addr, size, +XE_VM_BIND_OP_MAP |XE_VM_BIND_FLAG_ASYNC , sync, + num_syncs,0 ,0 ); +} + +void xe_vm_bind_async_flags (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t flags) +{ +__xe_vm_bind_assert (fd, vm, engine, bo, offset, addr, size, +XE_VM_BIND_OP_MAP |XE_VM_BIND_FLAG_ASYNC | flags, + sync, num_syncs,0 ,0 ); +} + +void xe_vm_bind_userptr_async (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , userptr, addr, size, +XE_VM_BIND_OP_MAP_USERPTR |XE_VM_BIND_FLAG_ASYNC , + sync, num_syncs,0 ,0 ); +} + +void xe_vm_bind_userptr_async_flags (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr, +uint64_t size,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t flags) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , userptr, addr, size, +XE_VM_BIND_OP_MAP_USERPTR |XE_VM_BIND_FLAG_ASYNC | + flags, sync, num_syncs,0 ,0 ); +} + +void xe_vm_unbind_async (int fd,uint32_t vm,uint32_t engine, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , offset, addr, size, +XE_VM_BIND_OP_UNMAP |XE_VM_BIND_FLAG_ASYNC , sync, + num_syncs,0 ,0 ); +} + +static void __xe_vm_bind_sync (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size,uint32_t op) +{ +struct drm_xe_sync sync = { + .flags =DRM_XE_SYNC_SYNCOBJ |DRM_XE_SYNC_SIGNAL , + .handle =syncobj_create (fd,0 ), + }; + +__xe_vm_bind_assert (fd, vm,0 , bo, offset, addr, size, op, &sync,1 ,0 , +0 ); + +igt_assert (syncobj_wait (fd, &sync.handle,1 ,INT64_MAX ,0 ,NULL )); +syncobj_destroy (fd, sync.handle); +} + +void xe_vm_bind_sync (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size) +{ +__xe_vm_bind_sync (fd, vm, bo, offset, addr, size,XE_VM_BIND_OP_MAP ); +} + +void xe_vm_unbind_sync (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size) +{ +__xe_vm_bind_sync (fd, vm,0 , offset, addr, size,XE_VM_BIND_OP_UNMAP ); +} + +void xe_vm_destroy (int fd,uint32_t vm) +{ +struct drm_xe_vm_destroy destroy = { + .vm_id = vm, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_DESTROY , &destroy),0 ); +} + +uint32_t xe_bo_create_flags (int fd,uint32_t vm,uint64_t size,uint32_t flags) +{ +struct drm_xe_gem_create create = { + .vm_id = vm, + .size = size, + .flags = flags, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_GEM_CREATE , &create),0 ); + +return create.handle; +} + +uint32_t xe_bo_create (int fd,int gt,uint32_t vm,uint64_t size) +{ +struct drm_xe_gem_create create = { + .vm_id = vm, + .size = size, + .flags =vram_if_possible (fd, gt), + }; +int err; + + err =igt_ioctl (fd,DRM_IOCTL_XE_GEM_CREATE , &create); +igt_assert_eq (err,0 ); + +return create.handle; +} + +uint32_t xe_bind_engine_create (int fd,uint32_t vm,uint64_t ext) +{ +struct drm_xe_engine_class_instance instance = { + .engine_class =DRM_XE_ENGINE_CLASS_VM_BIND , + }; +struct drm_xe_engine_create create = { + .extensions = ext, + .vm_id = vm, + .width =1 , + .num_placements =1 , + .instances =to_user_pointer (&instance), + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_CREATE , &create),0 ); + +return create.engine_id; +} + +uint32_t xe_engine_create (int fd,uint32_t vm, +struct drm_xe_engine_class_instance *instance, +uint64_t ext) +{ +struct drm_xe_engine_create create = { + .extensions = ext, + .vm_id = vm, + .width =1 , + .num_placements =1 , + .instances =to_user_pointer (instance), + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_CREATE , &create),0 ); + +return create.engine_id; +} + +uint32_t xe_engine_create_class (int fd,uint32_t vm,uint16_t class) +{ +struct drm_xe_engine_class_instance instance = { + .engine_class = class, + .engine_instance =0 , + .gt_id =0 , + }; +struct drm_xe_engine_create create = { + .vm_id = vm, + .width =1 , + .num_placements =1 , + .instances =to_user_pointer (&instance), + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_CREATE , &create),0 ); + +return create.engine_id; +} + +void xe_engine_destroy (int fd,uint32_t engine) +{ +struct drm_xe_engine_destroy destroy = { + .engine_id = engine, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_DESTROY , &destroy),0 ); +} + +uint64_t xe_bo_mmap_offset (int fd,uint32_t bo) +{ +struct drm_xe_gem_mmap_offset mmo = { + .handle = bo, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_GEM_MMAP_OFFSET , &mmo),0 ); + +return mmo.offset; +} + +void *xe_bo_map (int fd,uint32_t bo,size_t size) +{ +uint64_t mmo; +void *map; + + mmo =xe_bo_mmap_offset (fd, bo); + map =mmap (NULL , size,PROT_WRITE ,MAP_SHARED , fd, mmo); +igt_assert (map !=MAP_FAILED ); + +return map; +} + +static int __xe_exec (int fd,struct drm_xe_exec *exec) +{ +int err =0 ; + +if (igt_ioctl (fd,DRM_IOCTL_XE_EXEC , exec)) { + err = -errno; +igt_assume (err !=0 ); + } + errno =0 ; +return err; +} + +void xe_exec (int fd,struct drm_xe_exec *exec) +{ +igt_assert_eq (__xe_exec (fd, exec),0 ); +} + +void xe_exec_sync (int fd,uint32_t engine,uint64_t addr, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +struct drm_xe_exec exec = { + .engine_id = engine, + .syncs = (uintptr_t )sync, + .num_syncs = num_syncs, + .address = addr, + .num_batch_buffer =1 , + }; + +igt_assert_eq (__xe_exec (fd, &exec),0 ); +} + +void xe_exec_wait (int fd,uint32_t engine,uint64_t addr) +{ +struct drm_xe_sync sync = { + .flags =DRM_XE_SYNC_SYNCOBJ |DRM_XE_SYNC_SIGNAL , + .handle =syncobj_create (fd,0 ), + }; + +xe_exec_sync (fd, engine, addr, &sync,1 ); + +igt_assert (syncobj_wait (fd, &sync.handle,1 ,INT64_MAX ,0 ,NULL )); +syncobj_destroy (fd, sync.handle); +} + +void xe_wait_ufence (int fd,uint64_t *addr,uint64_t value, +struct drm_xe_engine_class_instance *eci, +int64_t timeout) +{ +struct drm_xe_wait_user_fence wait = { + .addr =to_user_pointer (addr), + .op =DRM_XE_UFENCE_WAIT_EQ , + .flags = !eci ?DRM_XE_UFENCE_WAIT_SOFT_OP :0 , + .value = value, + .mask =DRM_XE_UFENCE_WAIT_U64 , + .timeout = timeout, + .num_engines = eci ?1 :0 , + .instances = eci ?to_user_pointer (eci) :0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_WAIT_USER_FENCE , &wait),0 ); +}
Quoted 9 lines
lib/xe/xe_ioctl.c line 418
Quoted 6 lines
lib/xe/xe_ioctl.c new file +6
-0+ +void xe_force_gt_reset (int fd,int gt) +{ +char reset_string[128 ]; + +sprintf (reset_string,"cat /sys/kernel/debug/dri/0/gt%d/force_reset" , gt);this seems wrong: you can't assume Xe will be always dri 0
Agree, dri/n should be get from fd open path. I will fix it.
Quoted 36 lines
(another topic is why reset is triggered by reading debugfs, but that's not your fault)
Quoted 33 lines
lib/xe/xe_ioctl.c new file +16
-0+system (reset_string); +} + +void xe_vm_madvise (int fd,uint32_t vm,uint64_t addr,uint64_t size, +uint32_t property,uint32_t value) +{ +struct drm_xe_vm_madvise madvise = { + .vm_id = vm, + .range = size, + .addr = addr, + .property = property, + .value = value, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_MADVISE , &madvise),0 ); +}lib/xe/xe_ioctl.h new file +11
-0@@ -0,0 +1,89 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Jason Ekstrand <[email protected]> +* Maarten Lankhorst <[email protected]> +* Matthew Brost <[email protected]> +*/ + +#ifndef XE_IOCTL_H
Quoted 9 lines
lib/xe/xe_ioctl.h line 17
Quoted 6 lines
lib/xe/xe_ioctl.h new file +6
-0+#define XE_IOCTL_H + +#include <stdint.h> +#include <stdbool.h> +#include <sys/mman.h> +#include <xe_drm.h> do you really need all these headers in this file ?
Ok, stdint.h and xe_drm.h are enough.
Quoted 193 lines
Quoted 193 lines
lib/xe/xe_ioctl.h new file +72
-0+ +uint32_t xe_cs_prefetch_size (int fd); +uint32_t xe_vm_create (int fd,uint32_t flags,uint64_t ext); +int __xe_vm_bind (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size,uint32_t op, +struct drm_xe_sync *sync,uint32_t num_syncs,uint32_t region, +uint64_t ext); +void __xe_vm_bind_assert (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +uint32_t op,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t region,uint64_t ext); +void xe_vm_bind (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_unbind (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_prefetch_async (int fd,uint32_t vm,uint32_t engine, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t region); +void xe_vm_bind_async (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_bind_userptr_async (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_bind_async_flags (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t flags); +void xe_vm_bind_userptr_async_flags (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr, +uint64_t size,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t flags); +void xe_vm_unbind_async (int fd,uint32_t vm,uint32_t engine, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_bind_sync (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size); +void xe_vm_unbind_sync (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size); +void xe_vm_bind_array (int fd,uint32_t vm,uint32_t engine, +struct drm_xe_vm_bind_op *bind_ops, +uint32_t num_bind,struct drm_xe_sync *sync, +uint32_t num_syncs); +void xe_vm_unbind_all_async (int fd,uint32_t vm,uint32_t engine, +uint32_t bo,struct drm_xe_sync *sync, +uint32_t num_syncs); +void xe_vm_destroy (int fd,uint32_t vm); +uint32_t xe_bo_create_flags (int fd,uint32_t vm,uint64_t size,uint32_t flags); +uint32_t xe_bo_create (int fd,int gt,uint32_t vm,uint64_t size); +uint32_t xe_engine_create (int fd,uint32_t vm, +struct drm_xe_engine_class_instance *instance, +uint64_t ext); +uint32_t xe_bind_engine_create (int fd,uint32_t vm,uint64_t ext); +uint32_t xe_engine_create_class (int fd,uint32_t vm,uint16_t class); +void xe_engine_destroy (int fd,uint32_t engine); +uint64_t xe_bo_mmap_offset (int fd,uint32_t bo); +void *xe_bo_map (int fd,uint32_t bo,size_t size); +void xe_exec (int fd,struct drm_xe_exec *exec); +void xe_exec_sync (int fd,uint32_t engine,uint64_t addr, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_exec_wait (int fd,uint32_t engine,uint64_t addr); +void xe_wait_ufence (int fd,uint64_t *addr,uint64_t value, +struct drm_xe_engine_class_instance *eci, +int64_t timeout); +void xe_force_gt_reset (int fd,int gt); +void xe_vm_madvise (int fd,uint32_t vm,uint64_t addr,uint64_t size, +uint32_t property,uint32_t value); + +#endif /* XE_IOCTL_H */ lib/xe/xe_query.c new file +115
-0@@ -0,0 +1,465 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ + +#include <stdlib.h> +#include <pthread.h> + +#include "drmtest.h" +#include "ioctl_wrappers.h" +#include "igt_map.h" + +#include "xe_query.h" +#include "xe_ioctl.h" + +static struct drm_xe_query_config *xe_query_config_new (int fd) +{ +struct drm_xe_query_config *config; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_CONFIG , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + config =malloc (query.size); +igt_assert (config); + + query.data =to_user_pointer (config); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + +igt_assert (config->num_params >0 ); + +return config; +} + +static struct drm_xe_query_gts *xe_query_gts_new (int fd) +{ +struct drm_xe_query_gts *gts; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_GTS , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + gts =malloc (query.size); +igt_assert (gts); + + query.data =to_user_pointer (gts); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + +return gts; +} + +static uint64_t __memory_regions (const struct drm_xe_query_gts *gts) +{ +uint64_t regions =0 ; +int i; + +for (i =0 ; i < gts->num_gt; i++) + regions |= gts->gts[i].native_mem_regions | + gts->gts[i].slow_mem_regions; + +return regions; +} + +static struct drm_xe_engine_class_instance * +xe_query_engines_new (int fd,int *num_engines) +{ +struct drm_xe_engine_class_instance *hw_engines; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_ENGINES , + .size =0 , + .data =0 , + }; + +igt_assert (num_engines); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + hw_engines =malloc (query.size); +igt_assert (hw_engines); + + query.data =to_user_pointer (hw_engines); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + *num_engines = query.size /sizeof (*hw_engines); + +return hw_engines; +} + +static struct drm_xe_query_mem_usage *xe_query_mem_usage_new (int fd) +{ +struct drm_xe_query_mem_usage *mem_usage; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_MEM_USAGE , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + mem_usage =malloc (query.size); +igt_assert (mem_usage); + + query.data =to_user_pointer (mem_usage);
Quoted 9 lines
lib/xe/xe_query.c line 121
Quoted 6 lines
lib/xe/xe_query.c new file +6
-0+igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + +return mem_usage; +} + +/* FIXME: Make generic / multi-GT aware */ why can't it be fixed right now ?
Ok, I'm going to fix it so it will be in v4.
Quoted 61 lines
Quoted 61 lines
lib/xe/xe_query.c new file +61
-0+static uint64_t __mem_vram_size (struct drm_xe_query_mem_usage *mem_usage) +{ +for (int i =0 ; i < mem_usage->num_regions; i++) +if (mem_usage->regions[i].mem_class ==XE_MEM_REGION_CLASS_VRAM ) +return mem_usage->regions[i].total_size; + +return 0 ; +} + +static bool __mem_has_vram (struct drm_xe_query_mem_usage *mem_usage) +{ +for (int i =0 ; i < mem_usage->num_regions; i++) +if (mem_usage->regions[i].mem_class ==XE_MEM_REGION_CLASS_VRAM ) +return true; + +return false; +} + +static uint32_t __mem_default_alignment (struct drm_xe_query_mem_usage *mem_usage) +{ +uint32_t alignment =XE_DEFAULT_ALIGNMENT ; + +for (int i =0 ; i < mem_usage->num_regions; i++) +if (alignment < mem_usage->regions[i].min_page_size) + alignment = mem_usage->regions[i].min_page_size; + +return alignment; +} + +static bool xe_check_supports_faults (int fd) +{ +bool supports_faults; + +struct drm_xe_vm_create create = { + .flags =DRM_XE_VM_CREATE_ASYNC_BIND_OPS | +DRM_XE_VM_CREATE_FAULT_MODE , + }; + + supports_faults = !igt_ioctl (fd,DRM_IOCTL_XE_VM_CREATE , &create); + +if (supports_faults) +xe_vm_destroy (fd, create.vm_id); + +return supports_faults; +} + +/** +* xe_engine_class_string: +* @engine_class: engine class +* +* Returns engine class name or 'unknown class engine' otherwise. +*/ +const char *xe_engine_class_string (uint32_t engine_class) +{ +switch (engine_class) { +case DRM_XE_ENGINE_CLASS_RENDER : +return "DRM_XE_ENGINE_CLASS_RENDER" ; +case DRM_XE_ENGINE_CLASS_COPY : +return "DRM_XE_ENGINE_CLASS_COPY" ; +case DRM_XE_ENGINE_CLASS_VIDEO_DECODE : +return "DRM_XE_ENGINE_CLASS_VIDEO_DECODE" ;
Quoted 9 lines
lib/xe/xe_query.c line 188
Quoted 6 lines
lib/xe/xe_query.c new file +6
-0+case DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE : +return "DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE" ; +case DRM_XE_ENGINE_CLASS_COMPUTE : +return "DRM_XE_ENGINE_CLASS_COMPUTE" ; +default : +igt_warn ("Engine class %x unknown\n" , engine_class);%x without 0x prefix might be misleading
Ok, fixed.
Quoted 126 lines
Quoted 100 lines
lib/xe/xe_query.c new file +100
-0+return "unknown engine class" ; + } +} + +static struct xe_device_cache { +pthread_mutex_t cache_mutex; +struct igt_map *map; +} cache; + +static struct xe_device *find_in_cache_unlocked (int fd) +{ +return igt_map_search (cache.map, &fd); +} + +static struct xe_device *find_in_cache (int fd) +{ +struct xe_device *xe_dev; + +pthread_mutex_lock (&cache.cache_mutex); + xe_dev =find_in_cache_unlocked (fd); +pthread_mutex_unlock (&cache.cache_mutex); + +return xe_dev; +} + +/** +* xe_device_get: +* @fd: xe device fd +* +* Function creates and caches xe_device struct which contains configuration +* data returned in few queries. Subsequent calls returns previously +* created xe_device. To remove this from cache xe_device_put() must be +* called. +*/ +struct xe_device *xe_device_get (int fd) +{ +struct xe_device *xe_dev; + + xe_dev =find_in_cache (fd); +if (xe_dev) +return xe_dev; + + xe_dev =calloc (1 ,sizeof (*xe_dev)); +igt_assert (xe_dev); + + xe_dev->fd = fd; + xe_dev->config =xe_query_config_new (fd); + xe_dev->number_gt = xe_dev->config->info[XE_QUERY_CONFIG_GT_COUNT ]; + xe_dev->va_bits = xe_dev->config->info[XE_QUERY_CONFIG_VA_BITS ]; + xe_dev->gts =xe_query_gts_new (fd); + xe_dev->memory_regions =__memory_regions (xe_dev->gts); + xe_dev->hw_engines =xe_query_engines_new (fd, &xe_dev->number_hw_engines); + xe_dev->mem_usage =xe_query_mem_usage_new (fd); + xe_dev->vram_size =__mem_vram_size (xe_dev->mem_usage); + xe_dev->default_alignment =__mem_default_alignment (xe_dev->mem_usage); + xe_dev->has_vram =__mem_has_vram (xe_dev->mem_usage); + xe_dev->supports_faults =xe_check_supports_faults (fd); + +igt_map_insert (cache.map, &xe_dev->fd, xe_dev); + +return xe_dev; +} + +static void xe_device_free (struct xe_device *xe_dev) +{ +free (xe_dev->config); +free (xe_dev->gts); +free (xe_dev->hw_engines); +free (xe_dev->mem_usage); +free (xe_dev); +} + +static void delete_in_cache (struct igt_map_entry *entry) +{ +xe_device_free ((struct xe_device *)entry->data); +} + +/** +* xe_device_put: +* @fd: xe device fd +* +* Remove previously allocated and cached xe_device (if any). +*/ +void xe_device_put (int fd) +{ +pthread_mutex_lock (&cache.cache_mutex); +if (find_in_cache_unlocked (fd)) +igt_map_remove (cache.map, &fd, delete_in_cache); +pthread_mutex_unlock (&cache.cache_mutex); +} + +static void xe_device_destroy_cache (void ) +{ +pthread_mutex_lock (&cache.cache_mutex); +igt_map_destroy (cache.map, delete_in_cache); +pthread_mutex_unlock (&cache.cache_mutex); +} + +static void xe_device_cache_init (void ) +{lib/xe/xe_query.c line 298
Quoted 10 lines
lib/xe/xe_query.c new file +10
-0+pthread_mutex_init (&cache.cache_mutex,NULL ); +xe_device_destroy_cache (); + cache.map =igt_map_create (igt_map_hash_32, igt_map_equal_32); +} + +#define RETV (__v) \ + struct xe_device *xe_dev;\ + xe_dev = find_in_cache(fd);\ + igt_assert(xe_dev);\ + return xe_dev->__vreturn from within macro is rather not welcomed
can't we just define full function template instead? (if we really need to have a macro?)
#define
xe_dev_XXX(_X, _T)\
_T xe_dev_##_X(int fd) \{ \ struct xe_device *xe_dev; \ \ xe_dev = find_in_cache(fd); \ igt_assert(xe_dev); \ return xe_dev->_X; \ }
Quoted 6 lines
xe_dev_XXX(number_gt, int)xe_dev_XXX(memory_regions, uint64_t)xe_dev_XXX(hw_engines, struct drm_xe_engine_class_instance*)
...
Macro was interoduced as I didn't wanted to touch most xe-igt tests which uses such getters. But define template looks better than my RETV() macro so I'll use it.
Quoted 184 lines
Quoted 184 lines
lib/xe/xe_query.c new file +167
-0+ +/** +* xe_number_gt: +* @fd: xe device fd +* +* Return number of gts for xe device fd. +*/ +int xe_number_gt (int fd) +{ +RETV (number_gt); +} + +/** +* all_memory_regions: +* @fd: xe device fd +* +* Returns memory regions bitmask for xe device @fd. +*/ +uint64_t all_memory_regions (int fd) +{ +RETV (memory_regions); +} + +/** +* system_memory: +* @fd: xe device fd +* +* Returns system memory bitmask for xe device @fd. +*/ +uint64_t system_memory (int fd) +{ +uint64_t regions =all_memory_regions (fd); + +return regions &0x1 ; +} + +/** +* vram_memory: +* @fd: xe device fd +* @gt: gt id +* +* Returns vram memory bitmask for xe device @fd and @gt id. +*/ +uint64_t vram_memory (int fd,int gt) +{ +uint64_t regions =all_memory_regions (fd); + +return regions & (0x2 << gt); +} + +/** +* vram_if_possible: +* @fd: xe device fd +* @gt: gt id +* +* Returns vram memory bitmask for xe device @fd and @gt id or system memory +* if there's no vram memory available for @gt. +*/ +uint64_t vram_if_possible (int fd,int gt) +{ +uint64_t regions =all_memory_regions (fd); +uint64_t system_memory = regions &0x1 ; +uint64_t vram = regions & (0x2 << gt); + +return vram ? vram : system_memory; +} + +/** +* xe_hw_engines: +* @fd: xe device fd +* +* Returns engines array of xe device @fd. +*/ +struct drm_xe_engine_class_instance *xe_hw_engines (int fd) +{ +RETV (hw_engines); +} + +/** +* xe_hw_engine: +* @fd: xe device fd +* @idx: engine index +* +* Returns engine instance of xe device @fd and @idx. +*/ +struct drm_xe_engine_class_instance *xe_hw_engine (int fd,int idx) +{ +struct xe_device *xe_dev; + + xe_dev =find_in_cache (fd); +igt_assert (xe_dev); +igt_assert (idx >=0 && idx < xe_dev->number_hw_engines); + +return &xe_dev->hw_engines[idx]; +} + +/** +* xe_number_hw_engine: +* @fd: xe device fd +* +* Returns number of hw engines of xe device @fd. +*/ +int xe_number_hw_engines (int fd) +{ +RETV (number_hw_engines); +} + +/** +* xe_has_vram: +* @fd: xe device fd +* +* Returns true if xe device @fd has vram otherwise false. +*/ +bool xe_has_vram (int fd) +{ +RETV (has_vram); +} + +/** +* xe_vram_size: +* @fd: xe device fd +* +* Returns size of vram of xe device @fd. +*/ +uint64_t xe_vram_size (int fd) +{ +RETV (vram_size); +} + +/** +* xe_get_default_alignment: +* @fd: xe device fd +* +* Returns default alignment of objects for xe device @fd. +*/ +uint32_t xe_get_default_alignment (int fd) +{ +RETV (default_alignment); +} + +/** +* xe_supports_faults: +* @fd: xe device fd +* +* Returns true if xe device @fd allows creating vm in fault mode otherwise +* false. +*/ +bool xe_supports_faults (int fd) +{ +RETV (supports_faults); +} + +/** +* xe_va_bits: +* @fd: xe device fd +* +* Returns number of virtual address bits used in xe device @fd. +*/ +uint32_t xe_va_bits (int fd) +{ +RETV (va_bits); +} + +igt_constructor +{ +xe_device_cache_init (); +}lib/xe/xe_query.h new file +11
-0@@ -0,0 +1,64 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ + +#ifndef XE_QUERY_H +#define XE_QUERY_H +
Quoted 9 lines
lib/xe/xe_query.h line 17
Quoted 6 lines
lib/xe/xe_query.h new file +6
-0+#include <stdint.h> +#include <xe_drm.h> +#include "igt_list.h" + +#define XE_DEFAULT_ALIGNMENT 0x1000 +#define XE_DEFAULT_ALIGNMENT_64K 0x10000nit: maybe time to define
SZ_xxx
Agree.
Quoted 5 lines
lib/xe/xe_query.h line 19
Quoted 2 lines
lib/xe/xe_query.h new file +2
-0+ +struct xe_device {shouldn't we document all struct members ?
You're right, this is widely used in tests so definitely it should be documented.
Quoted 10 lines
lib/xe/xe_query.h line 26
Quoted 7 lines
lib/xe/xe_query.h new file +7
-0+int fd; + +struct drm_xe_query_config *config; +struct drm_xe_query_gts *gts; +uint64_t memory_regions; +struct drm_xe_engine_class_instance *hw_engines; +int number_hw_engines;unsigned int ?
Ack.
Quoted 10 lines
lib/xe/xe_query.h line 33
Quoted 7 lines
lib/xe/xe_query.h new file +7
-0+struct drm_xe_query_mem_usage *mem_usage; +uint64_t vram_size; +uint32_t default_alignment; +bool has_vram; +bool supports_faults; + +int number_gt;unsigned int ?
Ack.
Quoted 11 lines
Quoted 11 lines
lib/xe/xe_query.h new file +11
-0+uint32_t va_bits; +}; + +#define for_each_hw_engine (__fd, __hwe) \ + for (int __i = 0; __i < xe_number_hw_engines(__fd) && \ + (__hwe = xe_hw_engine(__fd, __i)); ++__i) +#define for_each_hw_engine_class (__class) \ + for (__class = 0; __class < DRM_XE_ENGINE_CLASS_COMPUTE + 1; \ + ++__class) +#define for_each_gt (__fd, __gt) \ + for (__gt = 0; __gt < xe_number_gt(__fd); ++__gt)
Quoted 9 lines
lib/xe/xe_query.h line 50
Quoted 6 lines
lib/xe/xe_query.h new file +6
-0+ +int xe_number_gt (int fd); +uint64_t all_memory_regions (int fd); +uint64_t system_memory (int fd); +uint64_t vram_memory (int fd,int gt); +uint64_t vram_if_possible (int fd,int gt);any reason why above function don't have any common prefix like "xe" ?
I didn't want to touch all tests at this moment (I tried to minimize number of changes in xe-igt where all that variables were globals).
Quoted 41 lines
Quoted 28 lines
lib/xe/xe_query.h new file +14
-0+struct drm_xe_engine_class_instance *xe_hw_engines (int fd); +struct drm_xe_engine_class_instance *xe_hw_engine (int fd,int idx); +int xe_number_hw_engines (int fd); +bool xe_has_vram (int fd); +uint64_t xe_vram_size (int fd); +uint32_t xe_get_default_alignment (int fd); +uint32_t xe_va_bits (int fd); +bool xe_supports_faults (int fd); +const char *xe_engine_class_string (uint32_t engine_class); + +struct xe_device *xe_device_get (int fd); +void xe_device_put (int fd); + +#endif /* XE_QUERY_H */ lib/xe/xe_spin.c new file +8
-0@@ -0,0 +1,139 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ +lib/xe/xe_spin.c line 18
Quoted 10 lines
lib/xe/xe_spin.c new file +10
-0+#include <string.h> + +#include "drmtest.h" +#include "igt.h" +#include "igt_core.h" +#include "igt_syncobj.h" +#include "intel_reg.h" +#include "xe_ioctl.h" +#include "xe_spin.h" +in other file even trivial getter functions were documented,
Quoted 2 lines
why spin functions here are all undocumented ?
I think because code was developed in the xe-igt repo and noone previously asked. And I didn't want to make too much changes to avoid same work again if I would need to squash this series one more time.
Thanks for the review.
All things which I think might be addressed in v4 will be sent soon.
--
Zbigniew
Quoted 207 lines
Quoted 207 lines
lib/xe/xe_spin.c new file +121
-0+void xe_spin_init (struct xe_spin *spin,uint64_t addr,bool preempt) +{ +uint64_t batch_offset = (char *)&spin->batch - (char *)spin; +uint64_t batch_addr = addr + batch_offset; +uint64_t start_offset = (char *)&spin->start - (char *)spin; +uint64_t start_addr = addr + start_offset; +uint64_t end_offset = (char *)&spin->end - (char *)spin; +uint64_t end_addr = addr + end_offset; +int b =0 ; + + spin->start =0 ; + spin->end =0xffffffff ; + + spin->batch[b++] =MI_STORE_DWORD_IMM ; + spin->batch[b++] = start_addr; + spin->batch[b++] = start_addr >>32 ; + spin->batch[b++] =0xc0ffee ; + +if (preempt) + spin->batch[b++] = (0x5 <<23 ); + + spin->batch[b++] =MI_COND_BATCH_BUFFER_END |MI_DO_COMPARE |2 ; + spin->batch[b++] =0 ; + spin->batch[b++] = end_addr; + spin->batch[b++] = end_addr >>32 ; + + spin->batch[b++] =MI_BATCH_BUFFER_START |1 <<8 |1 ; + spin->batch[b++] = batch_addr; + spin->batch[b++] = batch_addr >>32 ; + +igt_assert (b <=ARRAY_SIZE (spin->batch)); +} + +bool xe_spin_started (struct xe_spin *spin) +{ +return spin->start !=0 ; +} + +void xe_spin_wait_started (struct xe_spin *spin) +{ +while (!xe_spin_started (spin)); +} + +void xe_spin_end (struct xe_spin *spin) +{ + spin->end =0 ; +} + +void xe_cork_init (int fd,struct drm_xe_engine_class_instance *hwe, +struct xe_cork *cork) +{ +uint64_t addr =xe_get_default_alignment (fd); +size_t bo_size =xe_get_default_alignment (fd); +uint32_t vm, bo, engine, syncobj; +struct xe_spin *spin; +struct drm_xe_sync sync = { + .flags =DRM_XE_SYNC_SYNCOBJ |DRM_XE_SYNC_SIGNAL , + }; +struct drm_xe_exec exec = { + .num_batch_buffer =1 , + .num_syncs =1 , + .syncs =to_user_pointer (&sync), + }; + + vm =xe_vm_create (fd,0 ,0 ); + + bo =xe_bo_create (fd, hwe->gt_id, vm, bo_size); + spin =xe_bo_map (fd, bo,0x1000 ); + +xe_vm_bind_sync (fd, vm, bo,0 , addr, bo_size); + + engine =xe_engine_create (fd, vm, hwe,0 ); + syncobj =syncobj_create (fd,0 ); + +xe_spin_init (spin, addr, true); + exec.engine_id = engine; + exec.address = addr; + sync.handle = syncobj; +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_EXEC , &exec),0 ); + + cork->spin = spin; + cork->fd = fd; + cork->vm = vm; + cork->bo = bo; + cork->engine = engine; + cork->syncobj = syncobj; +} + +bool xe_cork_started (struct xe_cork *cork) +{ +return xe_spin_started (cork->spin); +} + +void xe_cork_wait_started (struct xe_cork *cork) +{ +xe_spin_wait_started (cork->spin); +} + +void xe_cork_end (struct xe_cork *cork) +{ +xe_spin_end (cork->spin); +} + +void xe_cork_wait_done (struct xe_cork *cork) +{ +igt_assert (syncobj_wait (cork->fd, &cork->syncobj,1 ,INT64_MAX ,0 , +NULL )); +} + +void xe_cork_fini (struct xe_cork *cork) +{ +syncobj_destroy (cork->fd, cork->syncobj); +xe_engine_destroy (cork->fd, cork->engine); +xe_vm_destroy (cork->fd, cork->vm); +gem_close (cork->fd, cork->bo); +} + +uint32_t xe_cork_sync_handle (struct xe_cork *cork) +{ +return cork->syncobj; +}lib/xe/xe_spin.h new file +48
-0@@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ + +#ifndef XE_SPIN_H +#define XE_SPIN_H + +#include <stdint.h> +#include <stdbool.h> + +#include "xe_query.h" + +/* Mapped GPU object */ +struct xe_spin { +uint32_t batch[16 ]; +uint64_t pad; +uint32_t start; +uint32_t end; +}; + +void xe_spin_init (struct xe_spin *spin,uint64_t addr,bool preempt); +bool xe_spin_started (struct xe_spin *spin); +void xe_spin_wait_started (struct xe_spin *spin); +void xe_spin_end (struct xe_spin *spin); + +struct xe_cork { +struct xe_spin *spin; +int fd; +uint32_t vm; +uint32_t bo; +uint32_t engine; +uint32_t syncobj; +}; + +void xe_cork_init (int fd,struct drm_xe_engine_class_instance *hwe, +struct xe_cork *cork); +bool xe_cork_started (struct xe_cork *cork); +void xe_cork_wait_started (struct xe_cork *cork); +void xe_cork_end (struct xe_cork *cork); +void xe_cork_wait_done (struct xe_cork *cork); +void xe_cork_fini (struct xe_cork *cork); +uint32_t xe_cork_sync_handle (struct xe_cork *cork); + +#endif /* XE_SPIN_H */ meson.build +8
-0@@ -261,6 +261,7 @@ libexecdir = join_paths(get_option('libexecdir'), 'igt-gpu-tools') amdgpudir = join_paths(libexecdir, 'amdgpu') v3ddir = join_paths(libexecdir, 'v3d') vc4dir = join_paths(libexecdir, 'vc4') +xedir = join_paths(libexecdir, 'xe') mandir = get_option('mandir') pkgconfigdir = join_paths(libdir, 'pkgconfig') python3 = find_program('python3', required : true)@@ -308,12 +309,19 @@ if get_option('use_rpath') vc4_rpathdir = join_paths(vc4_rpathdir, '..') endforeach vc4_rpathdir = join_paths(vc4_rpathdir, libdir) + + xedir_rpathdir = '$ORIGIN' + foreach p : xedir.split('/') + xedir_rpathdir = join_paths(xedir_rpathdir, '..') + endforeach + xedir_rpathdir = join_paths(xedir_rpathdir, libdir) else bindir_rpathdir = '' libexecdir_rpathdir = '' amdgpudir_rpathdir = '' v3d_rpathdir = '' vc4_rpathdir = '' + xedir_rpathdir = '' endif subdir('lib')
Re: [igt-dev] [PATCH i-g-t v3 2/8] lib/xe: Introduce Xe library
Quoted 142 lines · Zbigniew Kempczyński
Quoted 131 lines · Michal Wajdeczko
Quoted 128 lines · Zbigniew Kempczyński
Xe, is a new driver for Intel GPUs that supports both integrated and discrete platforms starting with Tiger Lake (first Intel Xe Architecture).
Series was split to allow easier review. Library, drm uapi, tests, tools and other were squashed according to code subject.
This patch introduces library used for Xe tests. As there's not too trivial to calculate credits for squashed subjects full series credits are:
Co-developed-by Matthew Brost[commits: 90 / lines changed: 12574]Co-developed-by Mauro Carvalho Chehab[commits: 28 / lines changed: 1873]Co-developed-by Rodrigo Vivi[commits: 15 / lines changed: 1317]Co-developed-by Jason Ekstrand[commits: 14 / lines changed: 1418]Co-developed-by Francois Dugast[commits: 8 / lines changed: 1082]Co-developed-by Philippe Lecluse[commits: 6 / lines changed: 560]Co-developed-by Zbigniew Kempczyński[commits: 4 / lines changed: 1091]Co-developed-by Matthew Auld[commits: 3 / lines changed: 35]Co-developed-by Niranjana Vishwanathapura[commits: 2 / lines changed: 66]Co-developed-by Maarten Lankhorst[commits: 2 / lines changed: 774]Co-developed-by Ryszard Knop[commits: 1 / lines changed: 12]Co-developed-by Thomas Hellström[commits: 1 / lines changed: 12]Signed-off-by Rodrigo Vivi <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>--- lib/drmtest.c | 3 + lib/drmtest.h | 1 + lib/meson.build | 4 + lib/xe/xe_compute.c | 402 ++++++++++++++++++++++++++++++++++++++ lib/xe/xe_compute.h | 29 +++ lib/xe/xe_ioctl.c | 434 +++++++++++++++++++++++++++++++++++++++++ lib/xe/xe_ioctl.h | 89 +++++++++ lib/xe/xe_query.c | 465 ++++++++++++++++++++++++++++++++++++++++++++ lib/xe/xe_query.h | 64 ++++++ lib/xe/xe_spin.c | 139 +++++++++++++ lib/xe/xe_spin.h | 48 +++++ meson.build | 8 + 12 files changed, 1686 insertions(+) create mode 100644 lib/xe/xe_compute.c create mode 100644 lib/xe/xe_compute.h create mode 100644 lib/xe/xe_ioctl.c create mode 100644 lib/xe/xe_ioctl.h create mode 100644 lib/xe/xe_query.c create mode 100644 lib/xe/xe_query.h create mode 100644 lib/xe/xe_spin.c create mode 100644 lib/xe/xe_spin.hlib/drmtest.c +3
-0@@ -189,6 +189,7 @@ static const struct module { { DRIVER_V3D, "v3d" }, { DRIVER_VC4, "vc4" }, { DRIVER_VGEM, "vgem" }, + { DRIVER_XE, "xe" }, {} };@@ -547,6 +548,8 @@ static const char *chipset_to_str(int chipset)return "panfrost" ;case DRIVER_MSM :return "msm" ; +case DRIVER_XE : +return "xe" ;case DRIVER_ANY :return "any" ;default :lib/drmtest.h +1
-0@@ -51,6 +51,7 @@#define DRIVER_V3D (1 << 4)#define DRIVER_PANFROST (1 << 5)#define DRIVER_MSM (1 << 6) +#define DRIVER_XE (1 << 7)/* * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system lib/meson.build +4
-0@@ -98,6 +98,10 @@ lib_sources = [ 'veboxcopy_gen12.c', 'igt_msm.c', 'igt_dsc.c', + 'xe/xe_compute.c', + 'xe/xe_ioctl.c', + 'xe/xe_query.c', + 'xe/xe_spin.c' ] lib_deps = [lib/xe/xe_compute.c new file +14
-0@@ -0,0 +1,402 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Francois Dugast <[email protected]> +*/ + +#include "xe_compute.h" + +#define PIPE_CONTROL 0x7a000004 +#define MI_LOAD_REGISTER_IMM 0x11000001 +#define PIPELINE_SELECT 0x69040302 +#define MEDIA_VFE_STATE 0x70000007Quoted 9 lines
lib/xe/xe_compute.c line 19
Quoted 5 lines
lib/xe/xe_compute.c new file +5
-0+#define STATE_BASE_ADDRESS 0x61010014 +#define MEDIA_STATE_FLUSH 0x0 +#define MEDIA_INTERFACE_DESCRIPTOR_LOAD 0x70020002 +#define GPGPU_WALKER 0x7105000d +#define MI_BATCH_BUFFER_END (0xA << 23)what criteria was used to select only above cmds to have their friendly mnemonics ?
Quoted 3 lines
+Francois
Could you provide some comment + kernel.cl?
Identified batch commands have been extracted for clarity and potentially for reuse. Values for which there is no define are command parameters or unidentified commands.
Below is the OpenCL kernel used to generate tgllp_kernel_square_bin:
__kernel void square(__global float* input, __global float* output, const unsigned int count) {
int i = get_global_id(0);
if(i < count)
output[i] = input[i] * input[i]; }
Quoted 1,877 lines
Quoted 6 lines
lib/xe/xe_compute.c line 21
Quoted 3 lines
lib/xe/xe_compute.c new file +2
-0+ +// generated with: ocloc -file kernel.cl -device tgllp && xxd -i kernel_Gen12LPlp.gen is this kernel.cl available somewhere ?
Agree, I would also like to include it here.
Quoted 3 lines
lib/xe/xe_compute.c line 22
Quoted 1 line
lib/xe/xe_compute.c new file +1
-0+unsigned char tgllp_kernel_square_bin[] = {static const ?
It cannot be static, it is copied to kernel bo in test (
tests/xe/xe_compute.c)Quoted 45 lines
Quoted 45 lines
lib/xe/xe_compute.c new file +44
-0+0x61 ,0x00 ,0x03 ,0x80 ,0x20 ,0x02 ,0x05 ,0x03 ,0x04 ,0x00 ,0x10 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x66 ,0x01 ,0x00 ,0x80 ,0x20 ,0x82 ,0x01 ,0x80 , +0x00 ,0x80 ,0x00 ,0x01 ,0xc0 ,0x04 ,0xc0 ,0x04 ,0x41 ,0x01 ,0x20 ,0x22 , +0x16 ,0x09 ,0x11 ,0x03 ,0x49 ,0x00 ,0x04 ,0xa2 ,0x12 ,0x09 ,0x11 ,0x03 , +0x40 ,0x01 ,0x04 ,0x00 ,0x60 ,0x06 ,0x05 ,0x05 ,0x04 ,0x04 ,0x00 ,0x01 , +0x05 ,0x01 ,0x58 ,0x00 ,0x40 ,0x00 ,0x24 ,0x00 ,0x60 ,0x06 ,0x05 ,0x0a , +0x04 ,0x04 ,0x00 ,0x01 ,0x05 ,0x02 ,0x58 ,0x00 ,0x40 ,0x02 ,0x0c ,0xa0 , +0x02 ,0x05 ,0x10 ,0x07 ,0x40 ,0x02 ,0x0e ,0xa6 ,0x02 ,0x0a ,0x10 ,0x07 , +0x70 ,0x02 ,0x04 ,0x00 ,0x60 ,0x02 ,0x01 ,0x00 ,0x05 ,0x0c ,0x46 ,0x52 , +0x84 ,0x08 ,0x00 ,0x00 ,0x70 ,0x02 ,0x24 ,0x00 ,0x60 ,0x02 ,0x01 ,0x00 , +0x05 ,0x0e ,0x46 ,0x52 ,0x84 ,0x08 ,0x00 ,0x00 ,0x72 ,0x00 ,0x02 ,0x80 , +0x50 ,0x0d ,0x04 ,0x00 ,0x05 ,0x00 ,0x05 ,0x1d ,0x05 ,0x00 ,0x05 ,0x00 , +0x22 ,0x00 ,0x05 ,0x01 ,0x00 ,0xc0 ,0x00 ,0x00 ,0x90 ,0x00 ,0x00 ,0x00 , +0x90 ,0x00 ,0x00 ,0x00 ,0x69 ,0x00 ,0x10 ,0x60 ,0x02 ,0x0c ,0x20 ,0x00 , +0x69 ,0x00 ,0x12 ,0x66 ,0x02 ,0x0e ,0x20 ,0x00 ,0x40 ,0x02 ,0x14 ,0xa0 , +0x32 ,0x10 ,0x10 ,0x08 ,0x40 ,0x02 ,0x16 ,0xa6 ,0x32 ,0x12 ,0x10 ,0x08 , +0x31 ,0xa0 ,0x04 ,0x00 ,0x00 ,0x00 ,0x14 ,0x18 ,0x14 ,0x14 ,0x00 ,0xcc , +0x00 ,0x00 ,0x16 ,0x00 ,0x31 ,0x91 ,0x24 ,0x00 ,0x00 ,0x00 ,0x14 ,0x1a , +0x14 ,0x16 ,0x00 ,0xcc ,0x00 ,0x00 ,0x16 ,0x00 ,0x40 ,0x00 ,0x10 ,0xa0 , +0x4a ,0x10 ,0x10 ,0x08 ,0x40 ,0x00 ,0x12 ,0xa6 ,0x4a ,0x12 ,0x10 ,0x08 , +0x41 ,0x20 ,0x18 ,0x20 ,0x00 ,0x18 ,0x00 ,0x18 ,0x41 ,0x21 ,0x1a ,0x26 , +0x00 ,0x1a ,0x00 ,0x1a ,0x31 ,0xa2 ,0x04 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x14 ,0x10 ,0x02 ,0xcc ,0x14 ,0x18 ,0x96 ,0x00 ,0x31 ,0x93 ,0x24 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x14 ,0x12 ,0x02 ,0xcc ,0x14 ,0x1a ,0x96 ,0x00 , +0x25 ,0x00 ,0x05 ,0x00 ,0x00 ,0x40 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x10 ,0x00 ,0x00 ,0x00 ,0x61 ,0x00 ,0x7f ,0x64 ,0x00 ,0x03 ,0x10 ,0x00 , +0x31 ,0x44 ,0x03 ,0x80 ,0x00 ,0x00 ,0x0c ,0x1c ,0x0c ,0x03 ,0x00 ,0xa0 , +0x00 ,0x00 ,0x78 ,0x02 ,0x61 ,0x24 ,0x03 ,0x80 ,0x20 ,0x02 ,0x01 ,0x00 , +0x05 ,0x1c ,0x46 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x61 ,0x00 ,0x04 ,0x80 , +0xa0 ,0x4a ,0x01 ,0x20 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x31 ,0x01 ,0x03 ,0x80 ,0x04 ,0x00 ,0x00 ,0x00 ,0x0c ,0x7f ,0x20 ,0x70 , +0x00 ,0x00 ,0x00 ,0x00 ,0x60 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,Quoted 8 lines
lib/xe/xe_compute.c line 72
Quoted 6 lines
lib/xe/xe_compute.c new file +6
-0+0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 +}; +unsigned int tgllp_kernel_square_length =sizeof (tgllp_kernel_square_bin);static const ?
Same as above.
Quoted 17 lines
Quoted 4 lines
lib/xe/xe_compute.c new file +3
-0+ +/** +* tgllp_create_indirect_data: lib/xe/xe_compute.c line 85
Quoted 10 lines
lib/xe/xe_compute.c new file +10
-0+* @addr_bo_buffer_batch: pointer to batch buffer +* @addr_input: input buffer gpu offset +* @addr_output: output buffer gpu offset +* +* Prepares indirect data for compute pipeline. +*/ +void tgllp_create_indirect_data (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output) +{ +int b =0 ;nit: pls add separation line for clarity
Agree, I will send in v4 (for other functions too).
Quoted 353 lines
Quoted 340 lines
lib/xe/xe_compute.c new file +317
-0+ addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000200 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] = addr_input &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_input >>32 ; + addr_bo_buffer_batch[b++] = addr_output &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_output >>32 ; + addr_bo_buffer_batch[b++] =0x00000400 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000200 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00010000 ; + addr_bo_buffer_batch[b++] =0x00030002 ; + addr_bo_buffer_batch[b++] =0x00050004 ; + addr_bo_buffer_batch[b++] =0x00070006 ; + addr_bo_buffer_batch[b++] =0x00090008 ; + addr_bo_buffer_batch[b++] =0x000B000A ; + addr_bo_buffer_batch[b++] =0x000D000C ; + addr_bo_buffer_batch[b++] =0x000F000E ; + addr_bo_buffer_batch[b++] =0x00110010 ; + addr_bo_buffer_batch[b++] =0x00130012 ; + addr_bo_buffer_batch[b++] =0x00150014 ; + addr_bo_buffer_batch[b++] =0x00170016 ; + addr_bo_buffer_batch[b++] =0x00190018 ; + addr_bo_buffer_batch[b++] =0x001B001A ; + addr_bo_buffer_batch[b++] =0x001D001C ; + addr_bo_buffer_batch[b++] =0x001F001E ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00210020 ; + addr_bo_buffer_batch[b++] =0x00230022 ; + addr_bo_buffer_batch[b++] =0x00250024 ; + addr_bo_buffer_batch[b++] =0x00270026 ; + addr_bo_buffer_batch[b++] =0x00290028 ; + addr_bo_buffer_batch[b++] =0x002B002A ; + addr_bo_buffer_batch[b++] =0x002D002C ; + addr_bo_buffer_batch[b++] =0x002F002E ; + addr_bo_buffer_batch[b++] =0x00310030 ; + addr_bo_buffer_batch[b++] =0x00330032 ; + addr_bo_buffer_batch[b++] =0x00350034 ; + addr_bo_buffer_batch[b++] =0x00370036 ; + addr_bo_buffer_batch[b++] =0x00390038 ; + addr_bo_buffer_batch[b++] =0x003B003A ; + addr_bo_buffer_batch[b++] =0x003D003C ; + addr_bo_buffer_batch[b++] =0x003F003E ; +} + +/** +* tgllp_create_surface_state: +* @addr_bo_buffer_batch: pointer to batch buffer +* @addr_input: input buffer gpu offset +* @addr_output: output buffer gpu offset +* +* Prepares surface state for compute pipeline. +*/ +void tgllp_create_surface_state (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output) +{ +int b =0 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x87FD4000 ; + addr_bo_buffer_batch[b++] =0x04000000 ; + addr_bo_buffer_batch[b++] =0x001F007F ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00004000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] = addr_input &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_input >>32 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x87FD4000 ; + addr_bo_buffer_batch[b++] =0x04000000 ; + addr_bo_buffer_batch[b++] =0x001F007F ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00004000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] = addr_output &0xffffffff ; + addr_bo_buffer_batch[b++] = addr_output >>32 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000040 ; + addr_bo_buffer_batch[b++] =0x00000080 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; +} + +/** +* tgllp_create_dynamic_state: +* @addr_bo_buffer_batch: pointer to batch buffer +* @offset_kernel: gpu offset of the shader +* +* Prepares dynamic state for compute pipeline. +*/ +void tgllp_create_dynamic_state (uint32_t *addr_bo_buffer_batch, +uint64_t offset_kernel) +{ +int b =0 ; + addr_bo_buffer_batch[b++] = offset_kernel; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00180000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x000000C0 ; + addr_bo_buffer_batch[b++] =0x00060000 ; + addr_bo_buffer_batch[b++] =0x00000010 ; + addr_bo_buffer_batch[b++] =0x00000003 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; +} + +/** +* tgllp_create_batch_compute: +* @addr_bo_buffer_batch: pointer to batch buffer +* @addr_surface_state_base: gpu offset of surface state data +* @addr_dynamic_state_base: gpu offset of dynamic state data +* @addr_indirect_object_base: gpu offset of indirect object data +* @offset_indirect_data_start: gpu offset of indirect data start +* +* Prepares compute pipeline. +*/ +void tgllp_create_batch_compute (uint32_t *addr_bo_buffer_batch, +uint64_t addr_surface_state_base, +uint64_t addr_dynamic_state_base, +uint64_t addr_indirect_object_base, +uint64_t offset_indirect_data_start) +{ +int b =0 ; + addr_bo_buffer_batch[b++] =MI_LOAD_REGISTER_IMM ; + addr_bo_buffer_batch[b++] =0x00002580 ; + addr_bo_buffer_batch[b++] =0x00060002 ; + addr_bo_buffer_batch[b++] =PIPELINE_SELECT ; + addr_bo_buffer_batch[b++] =MI_LOAD_REGISTER_IMM ; + addr_bo_buffer_batch[b++] =0x00007034 ; + addr_bo_buffer_batch[b++] =0x60000321 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MI_LOAD_REGISTER_IMM ; + addr_bo_buffer_batch[b++] =0x0000E404 ; + addr_bo_buffer_batch[b++] =0x00000100 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00101021 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MEDIA_VFE_STATE ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00A70100 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x07820000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100420 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =STATE_BASE_ADDRESS ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00040000 ; + addr_bo_buffer_batch[b++] = (addr_surface_state_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = addr_surface_state_base >>32 ; + addr_bo_buffer_batch[b++] = (addr_dynamic_state_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = addr_dynamic_state_base >>32 ; + addr_bo_buffer_batch[b++] = (addr_indirect_object_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = (addr_indirect_object_base >>32 ) |0xffff0000 ; + addr_bo_buffer_batch[b++] = (addr_indirect_object_base &0xffffffff ) |0x41 ; + addr_bo_buffer_batch[b++] = addr_indirect_object_base >>32 ; + addr_bo_buffer_batch[b++] =0xFFFFF001 ; + addr_bo_buffer_batch[b++] =0x00010001 ; + addr_bo_buffer_batch[b++] =0xFFFFF001 ; + addr_bo_buffer_batch[b++] =0xFFFFF001 ; + addr_bo_buffer_batch[b++] = (addr_surface_state_base &0xffffffff ) |0x1 ; + addr_bo_buffer_batch[b++] = addr_surface_state_base >>32 ; + addr_bo_buffer_batch[b++] =0x003BF000 ; + addr_bo_buffer_batch[b++] =0x00000041 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MEDIA_STATE_FLUSH ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MEDIA_INTERFACE_DESCRIPTOR_LOAD ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000020 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =GPGPU_WALKER ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000c80 ; + addr_bo_buffer_batch[b++] = offset_indirect_data_start; + addr_bo_buffer_batch[b++] =0x8000000f ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000002 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000001 ; + addr_bo_buffer_batch[b++] =0xffffffff ; + addr_bo_buffer_batch[b++] =0xffffffff ; + addr_bo_buffer_batch[b++] =MEDIA_STATE_FLUSH ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =PIPE_CONTROL ; + addr_bo_buffer_batch[b++] =0x00100120 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =0x00000000 ; + addr_bo_buffer_batch[b++] =MI_BATCH_BUFFER_END ; +}lib/xe/xe_compute.h new file +17
-0@@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Francois Dugast <[email protected]> +*/ + +#ifndef XE_COMPUTE_H +#define XE_COMPUTE_H + +#include <stdint.h> + +void tgllp_create_indirect_data (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output); +void tgllp_create_surface_state (uint32_t *addr_bo_buffer_batch, +uint64_t addr_input,uint64_t addr_output);lib/xe/xe_compute.h line 27
Quoted 10 lines
lib/xe/xe_compute.h new file +10
-0+void tgllp_create_dynamic_state (uint32_t *addr_bo_buffer_batch, +uint64_t offset_kernel); +void tgllp_create_batch_compute (uint32_t *addr_bo_buffer_batch, +uint64_t addr_surface_state_base, +uint64_t addr_dynamic_state_base, +uint64_t addr_indirect_object_base, +uint64_t offset_indirect_data_start); + +extern unsigned char tgllp_kernel_square_bin[]; +extern unsigned int tgllp_kernel_square_length;do we need to expose this as raw data ? maybe as function:
Quoted 2 lines
const char*
tgllp_kernel_square(uint32_t *out_length);May we do this refactor later? I think we will add compute pipelines for other platforms so this would be good time to clean this.
Quoted 36 lines
Quoted 36 lines
lib/xe/xe_compute.h new file +2
-0+ +#endif /* XE_COMPUTE_H */ lib/xe/xe_ioctl.c new file +28
-0@@ -0,0 +1,434 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Jason Ekstrand <[email protected]> +* Maarten Lankhorst <[email protected]> +* Matthew Brost <[email protected]> +*/ + +#ifdef HAVE_LIBGEN_H +#include <libgen.h> +#endif + +#include <errno.h> +#include <fcntl.h> +#include <getopt.h> +#include <pciaccess.h> +#include <signal.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <termios.h> +#include <unistd.h> +#include <sys/ioctl.h> +#include <sys/mman.h> +#include <sys/stat.h> +#include <sys/syscall.h> Quoted 9 lines
lib/xe/xe_ioctl.c line 34
Quoted 6 lines
lib/xe/xe_ioctl.c new file +6
-0+#include <sys/types.h> +#include <sys/utsname.h> +#include <sys/wait.h> + +#include "drmtest.h" +#include "config.h" nit: wrong include order
You mean sorting local headers?
Quoted 12 lines
lib/xe/xe_ioctl.c line 43
Quoted 9 lines
lib/xe/xe_ioctl.c new file +9
-0+ +#ifdef HAVE_VALGRIND +#include <valgrind/valgrind.h> +#include <valgrind/memcheck.h> + +#define VG (x) x +#else +#define VG (x) do {} while (0) +#endif VG seems unused, drop it ?
Agree, looks like copy-paste code from i915.
Quoted 369 lines
Quoted 369 lines
lib/xe/xe_ioctl.c new file +369
-0+ +#include "xe_ioctl.h" +#include "xe_query.h" +#include "igt_syncobj.h" +#include "ioctl_wrappers.h" + +uint32_t xe_cs_prefetch_size (int fd) +{ +return 512 ; +} + +uint32_t xe_vm_create (int fd,uint32_t flags,uint64_t ext) +{ +struct drm_xe_vm_create create = { + .extensions = ext, + .flags = flags, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_CREATE , &create),0 ); + +return create.vm_id; +} + +void xe_vm_unbind_all_async (int fd,uint32_t vm,uint32_t engine, +uint32_t bo,struct drm_xe_sync *sync, +uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine, bo,0 ,0 ,0 , +XE_VM_BIND_OP_UNMAP_ALL |XE_VM_BIND_FLAG_ASYNC , + sync, num_syncs,0 ,0 ); +} + +void xe_vm_bind_array (int fd,uint32_t vm,uint32_t engine, +struct drm_xe_vm_bind_op *bind_ops, +uint32_t num_bind,struct drm_xe_sync *sync, +uint32_t num_syncs) +{ +struct drm_xe_vm_bind bind = { + .vm_id = vm, + .num_binds = num_bind, + .vector_of_binds = (uintptr_t )bind_ops, + .num_syncs = num_syncs, + .syncs = (uintptr_t )sync, + .engine_id = engine, + }; + +igt_assert (num_bind >1 ); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_BIND , &bind),0 ); +} + +int __xe_vm_bind (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size,uint32_t op, +struct drm_xe_sync *sync,uint32_t num_syncs,uint32_t region, +uint64_t ext) +{ +struct drm_xe_vm_bind bind = { + .extensions = ext, + .vm_id = vm, + .num_binds =1 , + .bind.obj = bo, + .bind.obj_offset = offset, + .bind.range = size, + .bind.addr = addr, + .bind.op = op, + .bind.region = region, + .num_syncs = num_syncs, + .syncs = (uintptr_t )sync, + .engine_id = engine, + }; + +if (igt_ioctl (fd,DRM_IOCTL_XE_VM_BIND , &bind)) +return -errno; + +return 0 ; +} + +void __xe_vm_bind_assert (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +uint32_t op,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t region,uint64_t ext) +{ +igt_assert_eq (__xe_vm_bind (fd, vm, engine, bo, offset, addr, size, + op, sync, num_syncs, region, ext),0 ); +} + +void xe_vm_bind (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm,0 , bo, offset, addr, size, +XE_VM_BIND_OP_MAP , sync, num_syncs,0 ,0 ); +} + +void xe_vm_unbind (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm,0 ,0 , offset, addr, size, +XE_VM_BIND_OP_UNMAP , sync, num_syncs,0 ,0 ); +} + +void xe_vm_prefetch_async (int fd,uint32_t vm,uint32_t engine,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t region) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , offset, addr, size, +XE_VM_BIND_OP_PREFETCH |XE_VM_BIND_FLAG_ASYNC , + sync, num_syncs, region,0 ); +} + +void xe_vm_bind_async (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine, bo, offset, addr, size, +XE_VM_BIND_OP_MAP |XE_VM_BIND_FLAG_ASYNC , sync, + num_syncs,0 ,0 ); +} + +void xe_vm_bind_async_flags (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t flags) +{ +__xe_vm_bind_assert (fd, vm, engine, bo, offset, addr, size, +XE_VM_BIND_OP_MAP |XE_VM_BIND_FLAG_ASYNC | flags, + sync, num_syncs,0 ,0 ); +} + +void xe_vm_bind_userptr_async (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , userptr, addr, size, +XE_VM_BIND_OP_MAP_USERPTR |XE_VM_BIND_FLAG_ASYNC , + sync, num_syncs,0 ,0 ); +} + +void xe_vm_bind_userptr_async_flags (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr, +uint64_t size,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t flags) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , userptr, addr, size, +XE_VM_BIND_OP_MAP_USERPTR |XE_VM_BIND_FLAG_ASYNC | + flags, sync, num_syncs,0 ,0 ); +} + +void xe_vm_unbind_async (int fd,uint32_t vm,uint32_t engine, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +__xe_vm_bind_assert (fd, vm, engine,0 , offset, addr, size, +XE_VM_BIND_OP_UNMAP |XE_VM_BIND_FLAG_ASYNC , sync, + num_syncs,0 ,0 ); +} + +static void __xe_vm_bind_sync (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size,uint32_t op) +{ +struct drm_xe_sync sync = { + .flags =DRM_XE_SYNC_SYNCOBJ |DRM_XE_SYNC_SIGNAL , + .handle =syncobj_create (fd,0 ), + }; + +__xe_vm_bind_assert (fd, vm,0 , bo, offset, addr, size, op, &sync,1 ,0 , +0 ); + +igt_assert (syncobj_wait (fd, &sync.handle,1 ,INT64_MAX ,0 ,NULL )); +syncobj_destroy (fd, sync.handle); +} + +void xe_vm_bind_sync (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size) +{ +__xe_vm_bind_sync (fd, vm, bo, offset, addr, size,XE_VM_BIND_OP_MAP ); +} + +void xe_vm_unbind_sync (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size) +{ +__xe_vm_bind_sync (fd, vm,0 , offset, addr, size,XE_VM_BIND_OP_UNMAP ); +} + +void xe_vm_destroy (int fd,uint32_t vm) +{ +struct drm_xe_vm_destroy destroy = { + .vm_id = vm, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_DESTROY , &destroy),0 ); +} + +uint32_t xe_bo_create_flags (int fd,uint32_t vm,uint64_t size,uint32_t flags) +{ +struct drm_xe_gem_create create = { + .vm_id = vm, + .size = size, + .flags = flags, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_GEM_CREATE , &create),0 ); + +return create.handle; +} + +uint32_t xe_bo_create (int fd,int gt,uint32_t vm,uint64_t size) +{ +struct drm_xe_gem_create create = { + .vm_id = vm, + .size = size, + .flags =vram_if_possible (fd, gt), + }; +int err; + + err =igt_ioctl (fd,DRM_IOCTL_XE_GEM_CREATE , &create); +igt_assert_eq (err,0 ); + +return create.handle; +} + +uint32_t xe_bind_engine_create (int fd,uint32_t vm,uint64_t ext) +{ +struct drm_xe_engine_class_instance instance = { + .engine_class =DRM_XE_ENGINE_CLASS_VM_BIND , + }; +struct drm_xe_engine_create create = { + .extensions = ext, + .vm_id = vm, + .width =1 , + .num_placements =1 , + .instances =to_user_pointer (&instance), + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_CREATE , &create),0 ); + +return create.engine_id; +} + +uint32_t xe_engine_create (int fd,uint32_t vm, +struct drm_xe_engine_class_instance *instance, +uint64_t ext) +{ +struct drm_xe_engine_create create = { + .extensions = ext, + .vm_id = vm, + .width =1 , + .num_placements =1 , + .instances =to_user_pointer (instance), + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_CREATE , &create),0 ); + +return create.engine_id; +} + +uint32_t xe_engine_create_class (int fd,uint32_t vm,uint16_t class) +{ +struct drm_xe_engine_class_instance instance = { + .engine_class = class, + .engine_instance =0 , + .gt_id =0 , + }; +struct drm_xe_engine_create create = { + .vm_id = vm, + .width =1 , + .num_placements =1 , + .instances =to_user_pointer (&instance), + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_CREATE , &create),0 ); + +return create.engine_id; +} + +void xe_engine_destroy (int fd,uint32_t engine) +{ +struct drm_xe_engine_destroy destroy = { + .engine_id = engine, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_ENGINE_DESTROY , &destroy),0 ); +} + +uint64_t xe_bo_mmap_offset (int fd,uint32_t bo) +{ +struct drm_xe_gem_mmap_offset mmo = { + .handle = bo, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_GEM_MMAP_OFFSET , &mmo),0 ); + +return mmo.offset; +} + +void *xe_bo_map (int fd,uint32_t bo,size_t size) +{ +uint64_t mmo; +void *map; + + mmo =xe_bo_mmap_offset (fd, bo); + map =mmap (NULL , size,PROT_WRITE ,MAP_SHARED , fd, mmo); +igt_assert (map !=MAP_FAILED ); + +return map; +} + +static int __xe_exec (int fd,struct drm_xe_exec *exec) +{ +int err =0 ; + +if (igt_ioctl (fd,DRM_IOCTL_XE_EXEC , exec)) { + err = -errno; +igt_assume (err !=0 ); + } + errno =0 ; +return err; +} + +void xe_exec (int fd,struct drm_xe_exec *exec) +{ +igt_assert_eq (__xe_exec (fd, exec),0 ); +} + +void xe_exec_sync (int fd,uint32_t engine,uint64_t addr, +struct drm_xe_sync *sync,uint32_t num_syncs) +{ +struct drm_xe_exec exec = { + .engine_id = engine, + .syncs = (uintptr_t )sync, + .num_syncs = num_syncs, + .address = addr, + .num_batch_buffer =1 , + }; + +igt_assert_eq (__xe_exec (fd, &exec),0 ); +} + +void xe_exec_wait (int fd,uint32_t engine,uint64_t addr) +{ +struct drm_xe_sync sync = { + .flags =DRM_XE_SYNC_SYNCOBJ |DRM_XE_SYNC_SIGNAL , + .handle =syncobj_create (fd,0 ), + }; + +xe_exec_sync (fd, engine, addr, &sync,1 ); + +igt_assert (syncobj_wait (fd, &sync.handle,1 ,INT64_MAX ,0 ,NULL )); +syncobj_destroy (fd, sync.handle); +} + +void xe_wait_ufence (int fd,uint64_t *addr,uint64_t value, +struct drm_xe_engine_class_instance *eci, +int64_t timeout) +{ +struct drm_xe_wait_user_fence wait = { + .addr =to_user_pointer (addr), + .op =DRM_XE_UFENCE_WAIT_EQ , + .flags = !eci ?DRM_XE_UFENCE_WAIT_SOFT_OP :0 , + .value = value, + .mask =DRM_XE_UFENCE_WAIT_U64 , + .timeout = timeout, + .num_engines = eci ?1 :0 , + .instances = eci ?to_user_pointer (eci) :0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_WAIT_USER_FENCE , &wait),0 ); +}Quoted 9 lines
lib/xe/xe_ioctl.c line 418
Quoted 6 lines
lib/xe/xe_ioctl.c new file +6
-0+ +void xe_force_gt_reset (int fd,int gt) +{ +char reset_string[128 ]; + +sprintf (reset_string,"cat /sys/kernel/debug/dri/0/gt%d/force_reset" , gt);this seems wrong: you can't assume Xe will be always dri 0
Agree, dri/n should be get from fd open path. I will fix it.
Quoted 36 lines
(another topic is why reset is triggered by reading debugfs, but that's not your fault)
Quoted 33 lines
lib/xe/xe_ioctl.c new file +16
-0+system (reset_string); +} + +void xe_vm_madvise (int fd,uint32_t vm,uint64_t addr,uint64_t size, +uint32_t property,uint32_t value) +{ +struct drm_xe_vm_madvise madvise = { + .vm_id = vm, + .range = size, + .addr = addr, + .property = property, + .value = value, + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_VM_MADVISE , &madvise),0 ); +}lib/xe/xe_ioctl.h new file +11
-0@@ -0,0 +1,89 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Jason Ekstrand <[email protected]> +* Maarten Lankhorst <[email protected]> +* Matthew Brost <[email protected]> +*/ + +#ifndef XE_IOCTL_H Quoted 9 lines
lib/xe/xe_ioctl.h line 17
Quoted 6 lines
lib/xe/xe_ioctl.h new file +6
-0+#define XE_IOCTL_H + +#include <stdint.h> +#include <stdbool.h> +#include <sys/mman.h> +#include <xe_drm.h> do you really need all these headers in this file ?
Ok,
stdint.handxe_drm.hare enough.Quoted 193 lines
Quoted 193 lines
lib/xe/xe_ioctl.h new file +72
-0+ +uint32_t xe_cs_prefetch_size (int fd); +uint32_t xe_vm_create (int fd,uint32_t flags,uint64_t ext); +int __xe_vm_bind (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size,uint32_t op, +struct drm_xe_sync *sync,uint32_t num_syncs,uint32_t region, +uint64_t ext); +void __xe_vm_bind_assert (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +uint32_t op,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t region,uint64_t ext); +void xe_vm_bind (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_unbind (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_prefetch_async (int fd,uint32_t vm,uint32_t engine, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t region); +void xe_vm_bind_async (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_bind_userptr_async (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_bind_async_flags (int fd,uint32_t vm,uint32_t engine,uint32_t bo, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs, +uint32_t flags); +void xe_vm_bind_userptr_async_flags (int fd,uint32_t vm,uint32_t engine, +uint64_t userptr,uint64_t addr, +uint64_t size,struct drm_xe_sync *sync, +uint32_t num_syncs,uint32_t flags); +void xe_vm_unbind_async (int fd,uint32_t vm,uint32_t engine, +uint64_t offset,uint64_t addr,uint64_t size, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_vm_bind_sync (int fd,uint32_t vm,uint32_t bo,uint64_t offset, +uint64_t addr,uint64_t size); +void xe_vm_unbind_sync (int fd,uint32_t vm,uint64_t offset, +uint64_t addr,uint64_t size); +void xe_vm_bind_array (int fd,uint32_t vm,uint32_t engine, +struct drm_xe_vm_bind_op *bind_ops, +uint32_t num_bind,struct drm_xe_sync *sync, +uint32_t num_syncs); +void xe_vm_unbind_all_async (int fd,uint32_t vm,uint32_t engine, +uint32_t bo,struct drm_xe_sync *sync, +uint32_t num_syncs); +void xe_vm_destroy (int fd,uint32_t vm); +uint32_t xe_bo_create_flags (int fd,uint32_t vm,uint64_t size,uint32_t flags); +uint32_t xe_bo_create (int fd,int gt,uint32_t vm,uint64_t size); +uint32_t xe_engine_create (int fd,uint32_t vm, +struct drm_xe_engine_class_instance *instance, +uint64_t ext); +uint32_t xe_bind_engine_create (int fd,uint32_t vm,uint64_t ext); +uint32_t xe_engine_create_class (int fd,uint32_t vm,uint16_t class); +void xe_engine_destroy (int fd,uint32_t engine); +uint64_t xe_bo_mmap_offset (int fd,uint32_t bo); +void *xe_bo_map (int fd,uint32_t bo,size_t size); +void xe_exec (int fd,struct drm_xe_exec *exec); +void xe_exec_sync (int fd,uint32_t engine,uint64_t addr, +struct drm_xe_sync *sync,uint32_t num_syncs); +void xe_exec_wait (int fd,uint32_t engine,uint64_t addr); +void xe_wait_ufence (int fd,uint64_t *addr,uint64_t value, +struct drm_xe_engine_class_instance *eci, +int64_t timeout); +void xe_force_gt_reset (int fd,int gt); +void xe_vm_madvise (int fd,uint32_t vm,uint64_t addr,uint64_t size, +uint32_t property,uint32_t value); + +#endif /* XE_IOCTL_H */ lib/xe/xe_query.c new file +115
-0@@ -0,0 +1,465 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ + +#include <stdlib.h> +#include <pthread.h> + +#include "drmtest.h" +#include "ioctl_wrappers.h" +#include "igt_map.h" + +#include "xe_query.h" +#include "xe_ioctl.h" + +static struct drm_xe_query_config *xe_query_config_new (int fd) +{ +struct drm_xe_query_config *config; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_CONFIG , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + config =malloc (query.size); +igt_assert (config); + + query.data =to_user_pointer (config); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + +igt_assert (config->num_params >0 ); + +return config; +} + +static struct drm_xe_query_gts *xe_query_gts_new (int fd) +{ +struct drm_xe_query_gts *gts; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_GTS , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + gts =malloc (query.size); +igt_assert (gts); + + query.data =to_user_pointer (gts); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + +return gts; +} + +static uint64_t __memory_regions (const struct drm_xe_query_gts *gts) +{ +uint64_t regions =0 ; +int i; + +for (i =0 ; i < gts->num_gt; i++) + regions |= gts->gts[i].native_mem_regions | + gts->gts[i].slow_mem_regions; + +return regions; +} + +static struct drm_xe_engine_class_instance * +xe_query_engines_new (int fd,int *num_engines) +{ +struct drm_xe_engine_class_instance *hw_engines; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_ENGINES , + .size =0 , + .data =0 , + }; + +igt_assert (num_engines); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + hw_engines =malloc (query.size); +igt_assert (hw_engines); + + query.data =to_user_pointer (hw_engines); +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + *num_engines = query.size /sizeof (*hw_engines); + +return hw_engines; +} + +static struct drm_xe_query_mem_usage *xe_query_mem_usage_new (int fd) +{ +struct drm_xe_query_mem_usage *mem_usage; +struct drm_xe_device_query query = { + .extensions =0 , + .query =DRM_XE_DEVICE_QUERY_MEM_USAGE , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + + mem_usage =malloc (query.size); +igt_assert (mem_usage); + + query.data =to_user_pointer (mem_usage);Quoted 9 lines
lib/xe/xe_query.c line 121
Quoted 6 lines
lib/xe/xe_query.c new file +6
-0+igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),0 ); + +return mem_usage; +} + +/* FIXME: Make generic / multi-GT aware */ why can't it be fixed right now ?
Ok, I'm going to fix it so it will be in v4.
Quoted 61 lines
Quoted 61 lines
lib/xe/xe_query.c new file +61
-0+static uint64_t __mem_vram_size (struct drm_xe_query_mem_usage *mem_usage) +{ +for (int i =0 ; i < mem_usage->num_regions; i++) +if (mem_usage->regions[i].mem_class ==XE_MEM_REGION_CLASS_VRAM ) +return mem_usage->regions[i].total_size; + +return 0 ; +} + +static bool __mem_has_vram (struct drm_xe_query_mem_usage *mem_usage) +{ +for (int i =0 ; i < mem_usage->num_regions; i++) +if (mem_usage->regions[i].mem_class ==XE_MEM_REGION_CLASS_VRAM ) +return true; + +return false; +} + +static uint32_t __mem_default_alignment (struct drm_xe_query_mem_usage *mem_usage) +{ +uint32_t alignment =XE_DEFAULT_ALIGNMENT ; + +for (int i =0 ; i < mem_usage->num_regions; i++) +if (alignment < mem_usage->regions[i].min_page_size) + alignment = mem_usage->regions[i].min_page_size; + +return alignment; +} + +static bool xe_check_supports_faults (int fd) +{ +bool supports_faults; + +struct drm_xe_vm_create create = { + .flags =DRM_XE_VM_CREATE_ASYNC_BIND_OPS | +DRM_XE_VM_CREATE_FAULT_MODE , + }; + + supports_faults = !igt_ioctl (fd,DRM_IOCTL_XE_VM_CREATE , &create); + +if (supports_faults) +xe_vm_destroy (fd, create.vm_id); + +return supports_faults; +} + +/** +* xe_engine_class_string: +* @engine_class: engine class +* +* Returns engine class name or 'unknown class engine' otherwise. +*/ +const char *xe_engine_class_string (uint32_t engine_class) +{ +switch (engine_class) { +case DRM_XE_ENGINE_CLASS_RENDER : +return "DRM_XE_ENGINE_CLASS_RENDER" ; +case DRM_XE_ENGINE_CLASS_COPY : +return "DRM_XE_ENGINE_CLASS_COPY" ; +case DRM_XE_ENGINE_CLASS_VIDEO_DECODE : +return "DRM_XE_ENGINE_CLASS_VIDEO_DECODE" ;Quoted 9 lines
lib/xe/xe_query.c line 188
Quoted 6 lines
lib/xe/xe_query.c new file +6
-0+case DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE : +return "DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE" ; +case DRM_XE_ENGINE_CLASS_COMPUTE : +return "DRM_XE_ENGINE_CLASS_COMPUTE" ; +default : +igt_warn ("Engine class %x unknown\n" , engine_class);%x without 0x prefix might be misleading
Ok, fixed.
Quoted 126 lines
Quoted 100 lines
lib/xe/xe_query.c new file +100
-0+return "unknown engine class" ; + } +} + +static struct xe_device_cache { +pthread_mutex_t cache_mutex; +struct igt_map *map; +} cache; + +static struct xe_device *find_in_cache_unlocked (int fd) +{ +return igt_map_search (cache.map, &fd); +} + +static struct xe_device *find_in_cache (int fd) +{ +struct xe_device *xe_dev; + +pthread_mutex_lock (&cache.cache_mutex); + xe_dev =find_in_cache_unlocked (fd); +pthread_mutex_unlock (&cache.cache_mutex); + +return xe_dev; +} + +/** +* xe_device_get: +* @fd: xe device fd +* +* Function creates and caches xe_device struct which contains configuration +* data returned in few queries. Subsequent calls returns previously +* created xe_device. To remove this from cache xe_device_put() must be +* called. +*/ +struct xe_device *xe_device_get (int fd) +{ +struct xe_device *xe_dev; + + xe_dev =find_in_cache (fd); +if (xe_dev) +return xe_dev; + + xe_dev =calloc (1 ,sizeof (*xe_dev)); +igt_assert (xe_dev); + + xe_dev->fd = fd; + xe_dev->config =xe_query_config_new (fd); + xe_dev->number_gt = xe_dev->config->info[XE_QUERY_CONFIG_GT_COUNT ]; + xe_dev->va_bits = xe_dev->config->info[XE_QUERY_CONFIG_VA_BITS ]; + xe_dev->gts =xe_query_gts_new (fd); + xe_dev->memory_regions =__memory_regions (xe_dev->gts); + xe_dev->hw_engines =xe_query_engines_new (fd, &xe_dev->number_hw_engines); + xe_dev->mem_usage =xe_query_mem_usage_new (fd); + xe_dev->vram_size =__mem_vram_size (xe_dev->mem_usage); + xe_dev->default_alignment =__mem_default_alignment (xe_dev->mem_usage); + xe_dev->has_vram =__mem_has_vram (xe_dev->mem_usage); + xe_dev->supports_faults =xe_check_supports_faults (fd); + +igt_map_insert (cache.map, &xe_dev->fd, xe_dev); + +return xe_dev; +} + +static void xe_device_free (struct xe_device *xe_dev) +{ +free (xe_dev->config); +free (xe_dev->gts); +free (xe_dev->hw_engines); +free (xe_dev->mem_usage); +free (xe_dev); +} + +static void delete_in_cache (struct igt_map_entry *entry) +{ +xe_device_free ((struct xe_device *)entry->data); +} + +/** +* xe_device_put: +* @fd: xe device fd +* +* Remove previously allocated and cached xe_device (if any). +*/ +void xe_device_put (int fd) +{ +pthread_mutex_lock (&cache.cache_mutex); +if (find_in_cache_unlocked (fd)) +igt_map_remove (cache.map, &fd, delete_in_cache); +pthread_mutex_unlock (&cache.cache_mutex); +} + +static void xe_device_destroy_cache (void ) +{ +pthread_mutex_lock (&cache.cache_mutex); +igt_map_destroy (cache.map, delete_in_cache); +pthread_mutex_unlock (&cache.cache_mutex); +} + +static void xe_device_cache_init (void ) +{lib/xe/xe_query.c line 298
Quoted 10 lines
lib/xe/xe_query.c new file +10
-0+pthread_mutex_init (&cache.cache_mutex,NULL ); +xe_device_destroy_cache (); + cache.map =igt_map_create (igt_map_hash_32, igt_map_equal_32); +} + +#define RETV (__v) \ + struct xe_device *xe_dev;\ + xe_dev = find_in_cache(fd);\ + igt_assert(xe_dev);\ + return xe_dev->__vreturn from within macro is rather not welcomed
can't we just define full function template instead? (if we really need to have a macro?)
#define
xe_dev_XXX(_X, _T)\
_T xe_dev_##_X(int fd) \{ \ struct xe_device *xe_dev; \ \ xe_dev = find_in_cache(fd); \ igt_assert(xe_dev); \ return xe_dev->_X; \ }Quoted 6 lines
xe_dev_XXX(number_gt, int)xe_dev_XXX(memory_regions, uint64_t)xe_dev_XXX(hw_engines, struct drm_xe_engine_class_instance*)
...Macro was interoduced as I didn't wanted to touch most xe-igt tests which uses such getters. But define template looks better than my
RETV()macro so I'll use it.Quoted 184 lines
Quoted 184 lines
lib/xe/xe_query.c new file +167
-0+ +/** +* xe_number_gt: +* @fd: xe device fd +* +* Return number of gts for xe device fd. +*/ +int xe_number_gt (int fd) +{ +RETV (number_gt); +} + +/** +* all_memory_regions: +* @fd: xe device fd +* +* Returns memory regions bitmask for xe device @fd. +*/ +uint64_t all_memory_regions (int fd) +{ +RETV (memory_regions); +} + +/** +* system_memory: +* @fd: xe device fd +* +* Returns system memory bitmask for xe device @fd. +*/ +uint64_t system_memory (int fd) +{ +uint64_t regions =all_memory_regions (fd); + +return regions &0x1 ; +} + +/** +* vram_memory: +* @fd: xe device fd +* @gt: gt id +* +* Returns vram memory bitmask for xe device @fd and @gt id. +*/ +uint64_t vram_memory (int fd,int gt) +{ +uint64_t regions =all_memory_regions (fd); + +return regions & (0x2 << gt); +} + +/** +* vram_if_possible: +* @fd: xe device fd +* @gt: gt id +* +* Returns vram memory bitmask for xe device @fd and @gt id or system memory +* if there's no vram memory available for @gt. +*/ +uint64_t vram_if_possible (int fd,int gt) +{ +uint64_t regions =all_memory_regions (fd); +uint64_t system_memory = regions &0x1 ; +uint64_t vram = regions & (0x2 << gt); + +return vram ? vram : system_memory; +} + +/** +* xe_hw_engines: +* @fd: xe device fd +* +* Returns engines array of xe device @fd. +*/ +struct drm_xe_engine_class_instance *xe_hw_engines (int fd) +{ +RETV (hw_engines); +} + +/** +* xe_hw_engine: +* @fd: xe device fd +* @idx: engine index +* +* Returns engine instance of xe device @fd and @idx. +*/ +struct drm_xe_engine_class_instance *xe_hw_engine (int fd,int idx) +{ +struct xe_device *xe_dev; + + xe_dev =find_in_cache (fd); +igt_assert (xe_dev); +igt_assert (idx >=0 && idx < xe_dev->number_hw_engines); + +return &xe_dev->hw_engines[idx]; +} + +/** +* xe_number_hw_engine: +* @fd: xe device fd +* +* Returns number of hw engines of xe device @fd. +*/ +int xe_number_hw_engines (int fd) +{ +RETV (number_hw_engines); +} + +/** +* xe_has_vram: +* @fd: xe device fd +* +* Returns true if xe device @fd has vram otherwise false. +*/ +bool xe_has_vram (int fd) +{ +RETV (has_vram); +} + +/** +* xe_vram_size: +* @fd: xe device fd +* +* Returns size of vram of xe device @fd. +*/ +uint64_t xe_vram_size (int fd) +{ +RETV (vram_size); +} + +/** +* xe_get_default_alignment: +* @fd: xe device fd +* +* Returns default alignment of objects for xe device @fd. +*/ +uint32_t xe_get_default_alignment (int fd) +{ +RETV (default_alignment); +} + +/** +* xe_supports_faults: +* @fd: xe device fd +* +* Returns true if xe device @fd allows creating vm in fault mode otherwise +* false. +*/ +bool xe_supports_faults (int fd) +{ +RETV (supports_faults); +} + +/** +* xe_va_bits: +* @fd: xe device fd +* +* Returns number of virtual address bits used in xe device @fd. +*/ +uint32_t xe_va_bits (int fd) +{ +RETV (va_bits); +} + +igt_constructor +{ +xe_device_cache_init (); +}lib/xe/xe_query.h new file +11
-0@@ -0,0 +1,64 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ + +#ifndef XE_QUERY_H +#define XE_QUERY_H +Quoted 9 lines
lib/xe/xe_query.h line 17
Quoted 6 lines
lib/xe/xe_query.h new file +6
-0+#include <stdint.h> +#include <xe_drm.h> +#include "igt_list.h" + +#define XE_DEFAULT_ALIGNMENT 0x1000 +#define XE_DEFAULT_ALIGNMENT_64K 0x10000nit: maybe time to define
SZ_xxxAgree.
Quoted 5 lines
lib/xe/xe_query.h line 19
Quoted 2 lines
lib/xe/xe_query.h new file +2
-0+ +struct xe_device {shouldn't we document all struct members ?
You're right, this is widely used in tests so definitely it should be documented.
Quoted 10 lines
lib/xe/xe_query.h line 26
Quoted 7 lines
lib/xe/xe_query.h new file +7
-0+int fd; + +struct drm_xe_query_config *config; +struct drm_xe_query_gts *gts; +uint64_t memory_regions; +struct drm_xe_engine_class_instance *hw_engines; +int number_hw_engines;unsigned int ?
Ack.
Quoted 10 lines
lib/xe/xe_query.h line 33
Quoted 7 lines
lib/xe/xe_query.h new file +7
-0+struct drm_xe_query_mem_usage *mem_usage; +uint64_t vram_size; +uint32_t default_alignment; +bool has_vram; +bool supports_faults; + +int number_gt;unsigned int ?
Ack.
Quoted 11 lines
Quoted 11 lines
lib/xe/xe_query.h new file +11
-0+uint32_t va_bits; +}; + +#define for_each_hw_engine (__fd, __hwe) \ + for (int __i = 0; __i < xe_number_hw_engines(__fd) && \ + (__hwe = xe_hw_engine(__fd, __i)); ++__i) +#define for_each_hw_engine_class (__class) \ + for (__class = 0; __class < DRM_XE_ENGINE_CLASS_COMPUTE + 1; \ + ++__class) +#define for_each_gt (__fd, __gt) \ + for (__gt = 0; __gt < xe_number_gt(__fd); ++__gt)Quoted 9 lines
lib/xe/xe_query.h line 50
Quoted 6 lines
lib/xe/xe_query.h new file +6
-0+ +int xe_number_gt (int fd); +uint64_t all_memory_regions (int fd); +uint64_t system_memory (int fd); +uint64_t vram_memory (int fd,int gt); +uint64_t vram_if_possible (int fd,int gt);any reason why above function don't have any common prefix like "xe" ?
I didn't want to touch all tests at this moment (I tried to minimize number of changes in xe-igt where all that variables were globals).
Quoted 41 lines
Quoted 28 lines
lib/xe/xe_query.h new file +14
-0+struct drm_xe_engine_class_instance *xe_hw_engines (int fd); +struct drm_xe_engine_class_instance *xe_hw_engine (int fd,int idx); +int xe_number_hw_engines (int fd); +bool xe_has_vram (int fd); +uint64_t xe_vram_size (int fd); +uint32_t xe_get_default_alignment (int fd); +uint32_t xe_va_bits (int fd); +bool xe_supports_faults (int fd); +const char *xe_engine_class_string (uint32_t engine_class); + +struct xe_device *xe_device_get (int fd); +void xe_device_put (int fd); + +#endif /* XE_QUERY_H */ lib/xe/xe_spin.c new file +8
-0@@ -0,0 +1,139 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ +lib/xe/xe_spin.c line 18
Quoted 10 lines
lib/xe/xe_spin.c new file +10
-0+#include <string.h> + +#include "drmtest.h" +#include "igt.h" +#include "igt_core.h" +#include "igt_syncobj.h" +#include "intel_reg.h" +#include "xe_ioctl.h" +#include "xe_spin.h" +in other file even trivial getter functions were documented,
Quoted 2 lines
why spin functions here are all undocumented ?
I think because code was developed in the xe-igt repo and noone previously asked. And I didn't want to make too much changes to avoid same work again if I would need to squash this series one more time.
Thanks for the review.
All things which I think might be addressed in v4 will be sent soon.--
ZbigniewQuoted 207 lines
Quoted 207 lines
lib/xe/xe_spin.c new file +121
-0+void xe_spin_init (struct xe_spin *spin,uint64_t addr,bool preempt) +{ +uint64_t batch_offset = (char *)&spin->batch - (char *)spin; +uint64_t batch_addr = addr + batch_offset; +uint64_t start_offset = (char *)&spin->start - (char *)spin; +uint64_t start_addr = addr + start_offset; +uint64_t end_offset = (char *)&spin->end - (char *)spin; +uint64_t end_addr = addr + end_offset; +int b =0 ; + + spin->start =0 ; + spin->end =0xffffffff ; + + spin->batch[b++] =MI_STORE_DWORD_IMM ; + spin->batch[b++] = start_addr; + spin->batch[b++] = start_addr >>32 ; + spin->batch[b++] =0xc0ffee ; + +if (preempt) + spin->batch[b++] = (0x5 <<23 ); + + spin->batch[b++] =MI_COND_BATCH_BUFFER_END |MI_DO_COMPARE |2 ; + spin->batch[b++] =0 ; + spin->batch[b++] = end_addr; + spin->batch[b++] = end_addr >>32 ; + + spin->batch[b++] =MI_BATCH_BUFFER_START |1 <<8 |1 ; + spin->batch[b++] = batch_addr; + spin->batch[b++] = batch_addr >>32 ; + +igt_assert (b <=ARRAY_SIZE (spin->batch)); +} + +bool xe_spin_started (struct xe_spin *spin) +{ +return spin->start !=0 ; +} + +void xe_spin_wait_started (struct xe_spin *spin) +{ +while (!xe_spin_started (spin)); +} + +void xe_spin_end (struct xe_spin *spin) +{ + spin->end =0 ; +} + +void xe_cork_init (int fd,struct drm_xe_engine_class_instance *hwe, +struct xe_cork *cork) +{ +uint64_t addr =xe_get_default_alignment (fd); +size_t bo_size =xe_get_default_alignment (fd); +uint32_t vm, bo, engine, syncobj; +struct xe_spin *spin; +struct drm_xe_sync sync = { + .flags =DRM_XE_SYNC_SYNCOBJ |DRM_XE_SYNC_SIGNAL , + }; +struct drm_xe_exec exec = { + .num_batch_buffer =1 , + .num_syncs =1 , + .syncs =to_user_pointer (&sync), + }; + + vm =xe_vm_create (fd,0 ,0 ); + + bo =xe_bo_create (fd, hwe->gt_id, vm, bo_size); + spin =xe_bo_map (fd, bo,0x1000 ); + +xe_vm_bind_sync (fd, vm, bo,0 , addr, bo_size); + + engine =xe_engine_create (fd, vm, hwe,0 ); + syncobj =syncobj_create (fd,0 ); + +xe_spin_init (spin, addr, true); + exec.engine_id = engine; + exec.address = addr; + sync.handle = syncobj; +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_EXEC , &exec),0 ); + + cork->spin = spin; + cork->fd = fd; + cork->vm = vm; + cork->bo = bo; + cork->engine = engine; + cork->syncobj = syncobj; +} + +bool xe_cork_started (struct xe_cork *cork) +{ +return xe_spin_started (cork->spin); +} + +void xe_cork_wait_started (struct xe_cork *cork) +{ +xe_spin_wait_started (cork->spin); +} + +void xe_cork_end (struct xe_cork *cork) +{ +xe_spin_end (cork->spin); +} + +void xe_cork_wait_done (struct xe_cork *cork) +{ +igt_assert (syncobj_wait (cork->fd, &cork->syncobj,1 ,INT64_MAX ,0 , +NULL )); +} + +void xe_cork_fini (struct xe_cork *cork) +{ +syncobj_destroy (cork->fd, cork->syncobj); +xe_engine_destroy (cork->fd, cork->engine); +xe_vm_destroy (cork->fd, cork->vm); +gem_close (cork->fd, cork->bo); +} + +uint32_t xe_cork_sync_handle (struct xe_cork *cork) +{ +return cork->syncobj; +}lib/xe/xe_spin.h new file +48
-0@@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +* +* Authors: +* Matthew Brost <[email protected]> +*/ + +#ifndef XE_SPIN_H +#define XE_SPIN_H + +#include <stdint.h> +#include <stdbool.h> + +#include "xe_query.h" + +/* Mapped GPU object */ +struct xe_spin { +uint32_t batch[16 ]; +uint64_t pad; +uint32_t start; +uint32_t end; +}; + +void xe_spin_init (struct xe_spin *spin,uint64_t addr,bool preempt); +bool xe_spin_started (struct xe_spin *spin); +void xe_spin_wait_started (struct xe_spin *spin); +void xe_spin_end (struct xe_spin *spin); + +struct xe_cork { +struct xe_spin *spin; +int fd; +uint32_t vm; +uint32_t bo; +uint32_t engine; +uint32_t syncobj; +}; + +void xe_cork_init (int fd,struct drm_xe_engine_class_instance *hwe, +struct xe_cork *cork); +bool xe_cork_started (struct xe_cork *cork); +void xe_cork_wait_started (struct xe_cork *cork); +void xe_cork_end (struct xe_cork *cork); +void xe_cork_wait_done (struct xe_cork *cork); +void xe_cork_fini (struct xe_cork *cork); +uint32_t xe_cork_sync_handle (struct xe_cork *cork); + +#endif /* XE_SPIN_H */ meson.build +8
-0@@ -261,6 +261,7 @@ libexecdir = join_paths(get_option('libexecdir'), 'igt-gpu-tools') amdgpudir = join_paths(libexecdir, 'amdgpu') v3ddir = join_paths(libexecdir, 'v3d') vc4dir = join_paths(libexecdir, 'vc4') +xedir = join_paths(libexecdir, 'xe') mandir = get_option('mandir') pkgconfigdir = join_paths(libdir, 'pkgconfig') python3 = find_program('python3', required : true)@@ -308,12 +309,19 @@ if get_option('use_rpath') vc4_rpathdir = join_paths(vc4_rpathdir, '..') endforeach vc4_rpathdir = join_paths(vc4_rpathdir, libdir) + + xedir_rpathdir = '$ORIGIN' + foreach p : xedir.split('/') + xedir_rpathdir = join_paths(xedir_rpathdir, '..') + endforeach + xedir_rpathdir = join_paths(xedir_rpathdir, libdir) else bindir_rpathdir = '' libexecdir_rpathdir = '' amdgpudir_rpathdir = '' v3d_rpathdir = '' vc4_rpathdir = '' + xedir_rpathdir = '' endif subdir('lib')
PATCH v3 3/8 lib/igt_pm: Add a helper to query the runtime_usage.
In reply to Zbigniew KempczyńskiFrom: Rodrigo Vivi <[email protected]>
It will be useful so the tests can assert the expected usage counter movement depending on the operation.
--- lib/igt_pm.c | 18 ++++++++++++++++++ lib/igt_pm.h | 1 + 2 files changed, 19 insertions(+)
lib/igt_pm.c +18 -0
@@ -1355,3 +1355,21 @@ int igt_pm_get_runtime_suspended_time(struct pci_device *pci_dev)return -1 ; } + +/** +* igt_pm_get_runtime_usage: +* @pci_dev: pci device +* +* Reports the runtime PM usage count of a device. +*/ +int igt_pm_get_runtime_usage (struct pci_device *pci_dev) +{ +char usage_str[64 ]; +int usage, fd; + + fd =igt_pm_get_power_attr_fd_rdonly (pci_dev,"runtime_usage" ); +if (igt_pm_read_power_attr (fd, usage_str,64 , true)) +igt_assert (sscanf (usage_str,"%d" , &usage) >0 ); + +return usage; +}
lib/igt_pm.h +1 -0
@@ -86,5 +86,6 @@ void igt_pm_restore_pci_card_runtime_pm(void);void igt_pm_print_pci_card_runtime_status (void );bool i915_is_slpc_enabled (int fd);int igt_pm_get_runtime_suspended_time (struct pci_device *pci_dev); +int igt_pm_get_runtime_usage (struct pci_device *pci_dev);#endif /* IGT_PM_H */
Signature · 1 line
2.34.1
PATCH v3 4/8 tests/xe: Add Xe IGT tests
In reply to Zbigniew KempczyńskiCollaborative change of IGT Xe tests.
--- tests/meson.build | 1 + tests/xe/meson.build | 33 + tests/xe/xe_compute.c | 148 +++ tests/xe/xe_debugfs.c | 257 +++++ tests/xe/xe_dma_buf_sync.c | 262 +++++ tests/xe/xe_evict.c | 623 ++++++++++++ tests/xe/xe_exec_balancer.c | 714 ++++++++++++++ tests/xe/xe_exec_basic.c | 350 +++++++ tests/xe/xe_exec_compute_mode.c | 364 +++++++ tests/xe/xe_exec_fault_mode.c | 575 +++++++++++ tests/xe/xe_exec_reset.c | 817 ++++++++++++++++ tests/xe/xe_exec_threads.c | 1159 ++++++++++++++++++++++ tests/xe/xe_guc_pc.c | 425 ++++++++ tests/xe/xe_huc_copy.c | 205 ++++ tests/xe/xe_mmap.c | 79 ++ tests/xe/xe_mmio.c | 94 ++ tests/xe/xe_pm.c | 385 ++++++++ tests/xe/xe_prime_self_import.c | 489 ++++++++++ tests/xe/xe_query.c | 475 +++++++++ tests/xe/xe_test_config.json | 133 +++ tests/xe/xe_vm.c | 1604 +++++++++++++++++++++++++++++++ tests/xe/xe_waitfence.c | 103 ++ 22 files changed, 9295 insertions(+) create mode 100644 tests/xe/meson.build create mode 100644 tests/xe/xe_compute.c create mode 100644 tests/xe/xe_debugfs.c create mode 100644 tests/xe/xe_dma_buf_sync.c create mode 100644 tests/xe/xe_evict.c create mode 100644 tests/xe/xe_exec_balancer.c create mode 100644 tests/xe/xe_exec_basic.c create mode 100644 tests/xe/xe_exec_compute_mode.c create mode 100644 tests/xe/xe_exec_fault_mode.c create mode 100644 tests/xe/xe_exec_reset.c create mode 100644 tests/xe/xe_exec_threads.c create mode 100644 tests/xe/xe_guc_pc.c create mode 100644 tests/xe/xe_huc_copy.c create mode 100644 tests/xe/xe_mmap.c create mode 100644 tests/xe/xe_mmio.c create mode 100644 tests/xe/xe_pm.c create mode 100644 tests/xe/xe_prime_self_import.c create mode 100644 tests/xe/xe_query.c create mode 100644 tests/xe/xe_test_config.json create mode 100644 tests/xe/xe_vm.c create mode 100644 tests/xe/xe_waitfence.c
tests/meson.build +1 -0
@@ -470,6 +470,7 @@ test_executables += executable('sw_sync', 'sw_sync.c', test_list += 'sw_sync' subdir('amdgpu') +subdir('xe') subdir('v3d')
tests/xe/meson.build new file +33 -0
@@ -0,0 +1,33 @@ +xe_progs = [ + 'xe_compute', + 'xe_dma_buf_sync', + 'xe_debugfs', + 'xe_evict', + 'xe_exec_balancer', + 'xe_exec_basic', + 'xe_exec_compute_mode', + 'xe_exec_fault_mode', + 'xe_exec_reset', + 'xe_exec_threads', + 'xe_guc_pc', + 'xe_huc_copy', + 'xe_mmap', + 'xe_mmio', + 'xe_pm', + 'xe_prime_self_import', + 'xe_query', + 'xe_vm', + 'xe_waitfence', +] +xe_deps = test_deps + +xe_test_config = meson.current_source_dir() + '/xe_test_config.json' + +foreach prog : xe_progs + test_executables += executable(prog, prog + '.c', + dependencies : xe_deps, + install_dir : xedir, + install_rpath : xedir_rpathdir, + install : true) + test_list += join_paths('xe', prog) +endforeach
tests/xe/xe_compute.c new file +148 -0
148 lines not on this page · raw message
tests/xe/xe_debugfs.c new file +257 -0
257 lines not on this page · raw message
tests/xe/xe_dma_buf_sync.c new file +262 -0
262 lines not on this page · raw message
tests/xe/xe_evict.c new file +623 -0
623 lines not on this page · raw message
tests/xe/xe_exec_balancer.c new file +714 -0
714 lines not on this page · raw message
tests/xe/xe_exec_basic.c new file +350 -0
350 lines not on this page · raw message
tests/xe/xe_exec_compute_mode.c new file +364 -0
364 lines not on this page · raw message
tests/xe/xe_exec_fault_mode.c new file +575 -0
242 lines not on this page · raw message
tests/xe/xe_exec_reset.c new file +817 -0
817 lines not on this page · raw message
tests/xe/xe_exec_threads.c new file +1159 -0
1,159 lines not on this page · raw message
tests/xe/xe_guc_pc.c new file +425 -0
425 lines not on this page · raw message
tests/xe/xe_huc_copy.c new file +205 -0
205 lines not on this page · raw message
tests/xe/xe_mmap.c new file +79 -0
79 lines not on this page · raw message
tests/xe/xe_mmio.c new file +94 -0
94 lines not on this page · raw message
tests/xe/xe_pm.c new file +385 -0
385 lines not on this page · raw message
tests/xe/xe_prime_self_import.c new file +489 -0
489 lines not on this page · raw message
tests/xe/xe_query.c new file +475 -0
475 lines not on this page · raw message
tests/xe/xe_test_config.json new file +133 -0
133 lines not on this page · raw message
tests/xe/xe_vm.c new file +1604 -0
1,604 lines not on this page · raw message
tests/xe/xe_waitfence.c new file +103 -0
103 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.34.1
Part of the diff is not shown here. View the raw message.
PATCH v3 5/8 tools/xe_reg: Add Xe register read/write tool
In reply to Zbigniew KempczyńskiAdd xe_reg tool which allows to manipulate Xe registers.
Sample use:
./xe_reg read --ring rcs0 --all
./xe_reg read --ring rcs0 EXECLIST_STATUS
At this moment rings rcs0 and bcs0 are supported.
--- tools/meson.build | 1 + tools/xe_reg.c | 366 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 367 insertions(+) create mode 100644 tools/xe_reg.c
tools/meson.build +1 -0
@@ -42,6 +42,7 @@ tools_progs = [ 'intel_gvtg_test', 'dpcd_reg', 'lsgpu', + 'xe_reg', ] tool_deps = igt_deps tool_deps += zlib
tools/xe_reg.c new file +366 -0
366 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v3 6/8 intel-ci/xe-fast-feedback: Introduce xe-fast-feedback list
In reply to Zbigniew KempczyńskiLet's start with something simple that runs very quickly and is currently passing reliably.
--- tests/intel-ci/xe-fast-feedback.testlist | 140 +++++++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 tests/intel-ci/xe-fast-feedback.testlist
tests/intel-ci/xe-fast-feedback.testlist new file +140 -0
@@ -0,0 +1,140 @@ +igt@xe/xe_compute@compute +igt@xe/xe_debugfs@base +igt@xe/xe_debugfs@gt0 +igt@xe/xe_debugfs@gt1 +igt@xe/xe_debugfs@forcewake +igt@xe/xe_dma_buf_sync@export-dma-buf-once +igt@xe/xe_dma_buf_sync@export-dma-buf-once-read-sync +igt@xe/xe_exec_balancer@twice-virtual-basic +igt@xe/xe_exec_balancer@no-exec-virtual-basic +igt@xe/xe_exec_balancer@twice-cm-virtual-basic +igt@xe/xe_exec_balancer@no-exec-cm-virtual-basic +igt@xe/xe_exec_balancer@twice-virtual-userptr +igt@xe/xe_exec_balancer@no-exec-virtual-userptr +igt@xe/xe_exec_balancer@twice-cm-virtual-userptr +igt@xe/xe_exec_balancer@no-exec-cm-virtual-userptr +igt@xe/xe_exec_balancer@twice-virtual-rebind +igt@xe/xe_exec_balancer@no-exec-virtual-rebind +igt@xe/xe_exec_balancer@twice-cm-virtual-rebind +igt@xe/xe_exec_balancer@no-exec-cm-virtual-rebind +igt@xe/xe_exec_balancer@twice-virtual-userptr-rebind +igt@xe/xe_exec_balancer@no-exec-virtual-userptr-rebind +igt@xe/xe_exec_balancer@twice-cm-virtual-userptr-rebind +igt@xe/xe_exec_balancer@no-exec-cm-virtual-userptr-rebind +igt@xe/xe_exec_balancer@twice-virtual-userptr-invalidate +igt@xe/xe_exec_balancer@no-exec-virtual-userptr-invalidate +igt@xe/xe_exec_balancer@twice-cm-virtual-userptr-invalidate +igt@xe/xe_exec_balancer@no-exec-cm-virtual-userptr-invalidate +igt@xe/xe_exec_balancer@twice-virtual-userptr-invalidate-race +igt@xe/xe_exec_balancer@no-exec-virtual-userptr-invalidate-race +igt@xe/xe_exec_balancer@twice-cm-virtual-userptr-invalidate-race +igt@xe/xe_exec_balancer@no-exec-cm-virtual-userptr-invalidate-race +igt@xe/xe_exec_balancer@twice-parallel-basic +igt@xe/xe_exec_balancer@no-exec-parallel-basic +igt@xe/xe_exec_balancer@twice-parallel-userptr +igt@xe/xe_exec_balancer@no-exec-parallel-userptr +igt@xe/xe_exec_balancer@twice-parallel-rebind +igt@xe/xe_exec_balancer@no-exec-parallel-rebind +igt@xe/xe_exec_balancer@twice-parallel-userptr-rebind +igt@xe/xe_exec_balancer@no-exec-parallel-userptr-rebind +igt@xe/xe_exec_balancer@twice-parallel-userptr-invalidate +igt@xe/xe_exec_balancer@no-exec-parallel-userptr-invalidate +igt@xe/xe_exec_balancer@twice-parallel-userptr-invalidate-race +igt@xe/xe_exec_balancer@no-exec-parallel-userptr-invalidate-race +igt@xe/xe_exec_basic@twice-basic +igt@xe/xe_exec_basic@no-exec-basic +igt@xe/xe_exec_basic@twice-basic-defer-mmap +igt@xe/xe_exec_basic@no-exec-basic-defer-mmap +igt@xe/xe_exec_basic@twice-basic-defer-bind +igt@xe/xe_exec_basic@no-exec-basic-defer-bind +igt@xe/xe_exec_basic@twice-userptr +igt@xe/xe_exec_basic@no-exec-userptr +igt@xe/xe_exec_basic@twice-rebind +igt@xe/xe_exec_basic@no-exec-rebind +igt@xe/xe_exec_basic@twice-userptr-rebind +igt@xe/xe_exec_basic@no-exec-userptr-rebind +igt@xe/xe_exec_basic@twice-userptr-invalidate +igt@xe/xe_exec_basic@no-exec-userptr-invalidate +igt@xe/xe_exec_basic@twice-userptr-invalidate-race +igt@xe/xe_exec_basic@no-exec-userptr-invalidate-race +igt@xe/xe_exec_basic@twice-bindengine +igt@xe/xe_exec_basic@no-exec-bindengine +igt@xe/xe_exec_basic@twice-bindengine-userptr +igt@xe/xe_exec_basic@no-exec-bindengine-userptr +igt@xe/xe_exec_basic@twice-bindengine-rebind +igt@xe/xe_exec_basic@no-exec-bindengine-rebind +igt@xe/xe_exec_basic@twice-bindengine-userptr-rebind +igt@xe/xe_exec_basic@no-exec-bindengine-userptr-rebind +igt@xe/xe_exec_basic@twice-bindengine-userptr-invalidate +igt@xe/xe_exec_basic@no-exec-bindengine-userptr-invalidate +igt@xe/xe_exec_basic@twice-bindengine-userptr-invalidate-race +igt@xe/xe_exec_basic@no-exec-bindengine-userptr-invalidate-race +igt@xe/xe_exec_compute_mode@twice-basic +igt@xe/xe_exec_compute_mode@twice-preempt-fence-early +igt@xe/xe_exec_compute_mode@twice-userptr +igt@xe/xe_exec_compute_mode@twice-rebind +igt@xe/xe_exec_compute_mode@twice-userptr-rebind +igt@xe/xe_exec_compute_mode@twice-userptr-invalidate +igt@xe/xe_exec_compute_mode@twice-userptr-invalidate-race +igt@xe/xe_exec_compute_mode@twice-bindengine +igt@xe/xe_exec_compute_mode@twice-bindengine-userptr +igt@xe/xe_exec_compute_mode@twice-bindengine-rebind +igt@xe/xe_exec_compute_mode@twice-bindengine-userptr-rebind +igt@xe/xe_exec_compute_mode@twice-bindengine-userptr-invalidate +igt@xe/xe_exec_compute_mode@twice-bindengine-userptr-invalidate-race +igt@xe/xe_exec_reset@close-fd-no-exec +igt@xe/xe_exec_reset@cm-close-fd-no-exec +igt@xe/xe_exec_reset@virtual-close-fd-no-exec +#igt@xe/xe_exec_threads@threads-basic +igt@xe/xe_exec_threads@threads-shared-vm-basic +igt@xe/xe_exec_threads@threads-fd-basic +#igt@xe/xe_exec_threads@threads-hang-basic +igt@xe/xe_exec_threads@threads-bal-basic +igt@xe/xe_exec_threads@threads-cm-basic +igt@xe/xe_exec_threads@threads-cm-fd-basic +igt@xe/xe_exec_threads@threads-mixed-basic +igt@xe/xe_exec_threads@threads-mixed-shared-vm-basic +igt@xe/xe_exec_threads@threads-mixed-fd-basic +igt@xe/xe_exec_threads@threads-bal-mixed-basic +igt@xe/xe_exec_threads@threads-bal-mixed-shared-vm-basic +igt@xe/xe_exec_threads@threads-bal-mixed-fd-basic +igt@xe/xe_guc_pc@freq_basic_api +igt@xe/xe_guc_pc@freq_fixed_idle +igt@xe/xe_guc_pc@freq_range_idle +igt@xe/xe_guc_pc@rc6_on_idle +igt@xe/xe_guc_pc@rc0_on_exec +igt@xe/xe_huc_copy@huc_copy +igt@xe/xe_mmap@system +igt@xe/xe_mmap@vram +igt@xe/xe_mmap@vram-system +igt@xe/xe_mmio@mmio-timestamp +igt@xe/xe_mmio@mmio-invalid +igt@xe/xe_prime_self_import@basic-with_one_bo +igt@xe/xe_prime_self_import@basic-with_fd_dup +igt@xe/xe_prime_self_import@export-vs-gem_close-race +igt@xe/xe_prime_self_import@reimport-vs-gem_close-race +#igt@xe/xe_prime_self_import@basic-llseek-size +igt@xe/xe_query@query-engines +igt@xe/xe_query@query-mem-usage +igt@xe/xe_query@query-gts +igt@xe/xe_query@query-config +igt@xe/xe_query@query-hwconfig +igt@xe/xe_query@query-topology +igt@xe/xe_query@query-invalid-query +igt@xe/xe_query@query-invalid-size +#igt@xe/xe_vm@bind-once +#igt@xe/xe_vm@scratch +igt@xe/xe_vm@shared-pte-page +igt@xe/xe_vm@shared-pde-page +igt@xe/xe_vm@shared-pde2-page +igt@xe/xe_vm@shared-pde3-page +igt@xe/xe_vm@bind-engines-independent +igt@xe/xe_vm@munmap-style-unbind-one-partial +igt@xe/xe_vm@munmap-style-unbind-end +igt@xe/xe_vm@munmap-style-unbind-front +igt@xe/xe_vm@munmap-style-unbind-userptr-one-partial +igt@xe/xe_vm@munmap-style-unbind-userptr-end +igt@xe/xe_vm@munmap-style-unbind-userptr-front +igt@xe/xe_vm@munmap-style-unbind-userptr-inval-end +igt@xe/xe_vm@munmap-style-unbind-userptr-inval-front +igt@xe/xe_waitfence@test
Signature · 1 line
2.34.1
PATCH v3 7/8 docs/testplan: Introduce new way for documenting IGT
In reply to Zbigniew KempczyńskiAdd custom targets to allow building the testplan documentation for the Xe driver.
--- docs/meson.build | 1 + docs/testplan/meson.build | 28 +++ docs/testplan/testplan.css | 7 + meson_options.txt | 4 + scripts/igt_doc.py | 490 +++++++++++++++++++++++++++++++++---- scripts/meson.build | 2 + 6 files changed, 479 insertions(+), 53 deletions(-) create mode 100644 docs/testplan/meson.build create mode 100644 docs/testplan/testplan.css
docs/meson.build +1 -0
@@ -1 +1,2 @@ subdir('reference') +subdir('testplan')
docs/testplan/meson.build new file +28 -0
@@ -0,0 +1,28 @@ +build_testplan = get_option('testplan') + +rst2html = find_program('rst2html-3', 'rst2html', required : build_testplan) + +stylesheet = meson.current_source_dir() + '/testplan.css' + +if igt_doc_script.found() + # Xe test documentation + testplan = 'xe_tests' + + rst = custom_target(testplan + '.rst', + build_by_default : true, + command : [ igt_doc_script, '--config', '@INPUT@', '--rest', '@OUTPUT@' ], + input : xe_test_config, + output : testplan + '.rst' + ) + if rst2html.found() + custom_target(testplan + '.html', + build_by_default : true, + command : [ rst2html, '--stylesheet=' + stylesheet, '--field-name-limit=0', '@INPUT@', '@OUTPUT@' ], + input : rst, + output : testplan + '.html' + ) + endif +endif + +build_info += 'Build ReST test documentation: @0@'.format(igt_doc_script.found()) +build_info += 'Build html testplan documentation: @0@'.format(rst2html.found())
docs/testplan/testplan.css new file +7 -0
@@ -0,0 +1,7 @@ +@import url(html4css1.css); + +.literal { + background: lightgrey; + color: darkblue; + font-size: 14px; +}
meson_options.txt +4 -0
@@ -20,6 +20,10 @@ option('man', type : 'feature', description : 'Build man pages') +option('testplan', + type : 'feature', + description : 'Build testplan documentation pages in ReST and html') + option('docs', type : 'feature', description : 'Build documentation')
scripts/igt_doc.py +437 -53
630 lines not on this page · raw message
scripts/meson.build +2 -0
@@ -11,3 +11,5 @@ if build_tests install_data(prog, install_dir : bindir, install_mode : 'r-xr-xr-x') endforeach endif + +igt_doc_script = find_program('igt_doc.py')
Signature · 1 line
2.34.1
PATCH v3 8/8 runner/job_list: return error on crashes while running --list-subtests
In reply to Zbigniew KempczyńskiChanges on tests may break --list-subtests, if they, for instance, someone adds a code outside igt_subtests that depends on igt_fixture to run, causing:
Received signal SIGABRT.
Stack trace:
#0 [fatal_sig_handler+0x17b]
#1 [__sigaction+0x50]
#2 [__pthread_kill_implementation+0x10c]
#3 [gsignal+0x16]
#4 [abort+0xd7]
#5 [__assert_fail_base.cold+0xf]
#6 [__assert_fail+0x46]
#7 [internal_assert+0xe5]
#8 [igt_fail+0xea]
#9 [__igt_fail_assert+0x10e]
#10 [xe_number_hw_engines+0x6b]
#11 [__igt_unique____real_main1528+0x1ac0]
#12 [main+0x23]
#13 [__libc_start_call_main+0x80]
#14 [__libc_start_main+0x89]
#15 [_start+0x25]
Aborted (core dumped)IGT runner currently prints the message, but don't ignore the error. That prevents scripts to rely on the IGT testlist output, as the list will miss subtests.
So, instead, return an error.
--- runner/job_list.c | 1 + 1 file changed, 1 insertion(+)
runner/job_list.c +1 -0
@@ -130,6 +130,7 @@ static void add_subtests(struct job_list *job_list, struct settings *settings, } }else {fprintf (stderr,"Test binary %s died unexpectedly\n" , binary); +exit (1 ); } }
Signature · 1 line
2.34.1
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for Initial Xe test suite (rev3)
In reply to Zbigniew Kempczyński== Series Details ==
== Series Details ==
Series: Initial Xe test suite (rev3)
URL : https://patchwork.freedesktop.org/series/112191/
State : warning
== Summary ==
Pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/815644 for the overview.
build:tests-debian-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/36975089):
[2/279] Linking target lib/libi915_perf.so.1.5.
[3/279] Generating symbol file 'lib/76b5a35@@i915_perf@sha/libi915_perf.so.1.5.symbols'.
[4/279] Linking target tests/gem_barrier_race.
[5/279] Linking target tests/perf.
[6/279] Linking target tests/core_hotunplug.
[7/279] Linking target tests/xe/xe_exec_threads.
[8/279] Compiling C object 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o'.
FAILED: tests/xe/2e9594b@@xe_query@exe/xe_query.c.o
cc -Itests/xe/2e9594b@@xe_query@exe -Itests/xe -I../tests/xe -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/x86_64-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -I/usr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o' -MF 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o.d' -o 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o' -c ../tests/xe/xe_query.c ../tests/xe/xe_query.c:53:82: error: expected ‘,’ before ‘)’ token
static_assert(INTEL_HWCONFIG_MAX_MESH_URB_ENTRIES+1 == __INTEL_HWCONFIG_KEY_LIMIT);
^
, ninja: build stopped: subcommand failed. section_end:1677244322:step_script section_start:1677244322:cleanup_file_variables Cleaning up project directory and file based variables section_end:1677244323:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/36975092):
[6/255] Linking target tests/gem_barrier_race.
[7/255] Linking target tests/perf_pmu.
[8/255] Linking target tests/perf.
[9/255] Linking target tests/core_hotunplug.
[10/255] Linking target tests/xe/xe_exec_reset.
[11/255] Linking target tests/xe/xe_exec_threads.
[12/255] Compiling C object 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o'.
FAILED: tests/xe/2e9594b@@xe_query@exe/xe_query.c.o
/usr/bin/aarch64-linux-gnu-gcc -Itests/xe/2e9594b@@xe_query@exe -Itests/xe -I../tests/xe -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/aarch64-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o' -MF 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o.d' -o 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o' -c ../tests/xe/xe_query.c ../tests/xe/xe_query.c:53:82: error: expected ‘,’ before ‘)’ token
static_assert(INTEL_HWCONFIG_MAX_MESH_URB_ENTRIES+1 == __INTEL_HWCONFIG_KEY_LIMIT);
^
, ninja: build stopped: subcommand failed. section_end:1677244376:step_script section_start:1677244376:cleanup_file_variables Cleaning up project directory and file based variables section_end:1677244377:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/36975091):
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/838] Generating version.h with a custom command.
[2/758] Linking target tests/kms_plane_lowres.
[3/758] Linking target lib/libi915_perf.so.1.5.
[4/758] Generating symbol file 'lib/76b5a35@@i915_perf@sha/libi915_perf.so.1.5.symbols'.
[5/758] Compiling C object 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o'.
FAILED: tests/xe/2e9594b@@xe_query@exe/xe_query.c.o
/usr/bin/arm-linux-gnueabihf-gcc -Itests/xe/2e9594b@@xe_query@exe -Itests/xe -I../tests/xe -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/arm-linux-gnueabihf -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o' -MF 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o.d' -o 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o' -c ../tests/xe/xe_query.c ../tests/xe/xe_query.c:53:82: error: expected ‘,’ before ‘)’ token
static_assert(INTEL_HWCONFIG_MAX_MESH_URB_ENTRIES+1 == __INTEL_HWCONFIG_KEY_LIMIT);
^
, ninja: build stopped: subcommand failed. section_end:1677244400:step_script section_start:1677244400:cleanup_file_variables Cleaning up project directory and file based variables section_end:1677244401:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/36975093):
[522/1278] Compiling C object 'lib/76b5a35@@i915_perf@sha/meson-generated_.._i915_perf_registers_acmgt3.c.o'.
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/838] Generating version.h with a custom command.
[2/759] Linking target lib/libi915_perf.so.1.5.
[3/759] Generating symbol file 'lib/76b5a35@@i915_perf@sha/libi915_perf.so.1.5.symbols'.
[4/759] Compiling C object 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o'.
FAILED: tests/xe/2e9594b@@xe_query@exe/xe_query.c.o
/usr/bin/mips-linux-gnu-gcc -Itests/xe/2e9594b@@xe_query@exe -Itests/xe -I../tests/xe -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/mips-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/mips-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o' -MF 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o.d' -o 'tests/xe/2e9594b@@xe_query@exe/xe_query.c.o' -c ../tests/xe/xe_query.c ../tests/xe/xe_query.c:53:82: error: expected ‘,’ before ‘)’ token
static_assert(INTEL_HWCONFIG_MAX_MESH_URB_ENTRIES+1 == __INTEL_HWCONFIG_KEY_LIMIT);
^
, ninja: build stopped: subcommand failed. section_end:1677244567:step_script section_start:1677244567:cleanup_file_variables Cleaning up project directory and file based variables section_end:1677244568:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/36975084):
[13/20] Linking target runner/runner_test.
[14/20] Linking target runner/runner_json_test.
[15/20] Linking static target assembler/libbrw.a.
[16/20] Linking target assembler/intel-gen4asm.
[17/20] Linking target assembler/intel-gen4disasm.
[18/20] Linking target overlay/intel-gpu-overlay.
[19/20] Generating xe_tests.rst with a custom command.
FAILED: docs/testplan/xe_tests.rst
/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py --config /builds/gfx-ci/igt-ci-tags/tests/xe/xe_test_config.json --rest docs/testplan/xe_tests.rst
File "/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py", line 61
if (match := re.match(r"(.*)\b(\S+)", field)):
^ SyntaxError: invalid syntax
ninja: build stopped: subcommand failed. section_end:1677244334:step_script section_start:1677244334:cleanup_file_variables Cleaning up project directory and file based variables section_end:1677244335:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-clang has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/36975088):
[4/11] Linking target tests/gem_barrier_race.
[5/11] Linking target tests/perf.
[6/11] Linking target tests/core_hotunplug.
[7/11] Linking target tools/i915-perf/i915-perf-configs.
[8/11] Linking target tools/i915-perf/i915-perf-recorder.
[9/11] Linking target tools/i915-perf/i915-perf-reader.
[10/11] Generating xe_tests.rst with a custom command.
FAILED: docs/testplan/xe_tests.rst
/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py --config /builds/gfx-ci/igt-ci-tags/tests/xe/xe_test_config.json --rest docs/testplan/xe_tests.rst
File "/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py", line 61
if (match := re.match(r"(.*)\b(\S+)", field)):
^ SyntaxError: invalid syntax
ninja: build stopped: subcommand failed. section_end:1677244383:step_script section_start:1677244383:cleanup_file_variables Cleaning up project directory and file based variables section_end:1677244383:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-no-libdrm-nouveau has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/36975087):
[11/18] Linking target runner/igt_runner.
[12/18] Linking target runner/igt_resume.
[13/18] Linking target runner/igt_comms_decoder.
[14/18] Linking target runner/igt_results.
[15/18] Linking target runner/runner_test.
[16/18] Linking target runner/runner_json_test.
[17/18] Generating xe_tests.rst with a custom command.
FAILED: docs/testplan/xe_tests.rst
/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py --config /builds/gfx-ci/igt-ci-tags/tests/xe/xe_test_config.json --rest docs/testplan/xe_tests.rst
File "/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py", line 61
if (match := re.match(r"(.*)\b(\S+)", field)):
^ SyntaxError: invalid syntax
ninja: build stopped: subcommand failed. section_end:1677244332:step_script section_start:1677244332:cleanup_file_variables Cleaning up project directory and file based variables section_end:1677244333:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-no-libunwind has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/36975085):
[6/13] Linking target tests/core_hotunplug.
[7/13] Linking target tools/i915-perf/i915-perf-configs.
[8/13] Linking target tools/i915-perf/i915-perf-recorder.
[9/13] Linking target tools/i915-perf/i915-perf-reader.
[10/13] Linking target runner/runner_test.
[11/13] Linking target assembler/intel-gen4asm.
[12/13] Generating xe_tests.rst with a custom command.
FAILED: docs/testplan/xe_tests.rst
/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py --config /builds/gfx-ci/igt-ci-tags/tests/xe/xe_test_config.json --rest docs/testplan/xe_tests.rst
File "/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py", line 61
if (match := re.match(r"(.*)\b(\S+)", field)):
^ SyntaxError: invalid syntax
ninja: build stopped: subcommand failed. section_end:1677244308:step_script section_start:1677244308:cleanup_file_variables Cleaning up project directory and file based variables section_end:1677244309:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-oldest-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/36975086):
[5/12] Linking target tests/gem_barrier_race.
[6/12] Linking target tests/core_hotunplug.
[7/12] Linking target tools/i915-perf/i915-perf-configs.
[8/12] Linking target tools/i915-perf/i915-perf-recorder.
[9/12] Linking target tools/i915-perf/i915-perf-reader.
[10/12] Linking target runner/runner_test.
[11/12] Generating xe_tests.rst with a custom command.
FAILED: docs/testplan/xe_tests.rst
/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py --config /builds/gfx-ci/igt-ci-tags/tests/xe/xe_test_config.json --rest docs/testplan/xe_tests.rst
File "/builds/gfx-ci/igt-ci-tags/scripts/igt_doc.py", line 61
if (match := re.match(r"(.*)\b(\S+)", field)):
^ SyntaxError: invalid syntax
ninja: build stopped: subcommand failed. section_end:1677244309:step_script section_start:1677244309:cleanup_file_variables Cleaning up project directory and file based variables section_end:1677244309:cleanup_file_variables
ERROR: Job failed: exit code 1
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/815644
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for Initial Xe test suite (rev3)
In reply to Zbigniew Kempczyński== Series Details ==
== Series Details ==
Series: Initial Xe test suite (rev3)
URL : https://patchwork.freedesktop.org/series/112191/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12775 -> IGTPW_8524
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/index.html
Participating hosts (37 -> 37)
------------------------------
Additional (1): fi-kbl-x1275
Missing (1): fi-snb-2520m
Known issues
------------
Here are the changes found in IGTPW_8524 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [PASS][1] -> [FAIL][2] ([i915#7229])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/fi-pnv-d510/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/fi-pnv-d510/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-kbl-x1275: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#2190])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/fi-kbl-x1275/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- bat-adlp-6: NOTRUN -> [SKIP][4] ([i915#4613]) +3 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-adlp-6/igt@[email protected]
* igt@gem_lmem_swapping@verify-random:
- fi-kbl-x1275: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#4613]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/fi-kbl-x1275/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-adlp-6: NOTRUN -> [SKIP][6] ([i915#6621])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-adlp-6/igt@[email protected]
* igt@i915_selftest@live@migrate:
- bat-adlp-9: [PASS][7] -> [DMESG-FAIL][8] ([i915#7699])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/bat-adlp-9/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-adlp-9/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@reset:
- bat-rpls-1: [PASS][9] -> [ABORT][10] ([i915#4983])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/bat-rpls-1/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-rpls-1/igt@i915_selftest@[email protected]
* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- bat-adlp-6: NOTRUN -> [SKIP][11] ([i915#7828])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-adlp-6/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc:
- fi-kbl-x1275: NOTRUN -> [SKIP][12] ([fdo#109271]) +45 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/fi-kbl-x1275/igt@[email protected]
* igt@prime_vgem@basic-fence-read:
- bat-adlp-6: NOTRUN -> [SKIP][13] ([fdo#109295] / [i915#3291] / [i915#3708]) +2 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-adlp-6/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- bat-adlp-6: NOTRUN -> [SKIP][14] ([fdo#109295] / [i915#3301] / [i915#3708])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-adlp-6/igt@[email protected]
#### Possible fixes ####
* igt@i915_pm_rpm@basic-rte:
- bat-adlp-6: [ABORT][15] ([i915#7977]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/bat-adlp-6/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-adlp-6/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- fi-apl-guc: [DMESG-FAIL][17] ([i915#5334]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@gt_pm:
- bat-adln-1: [DMESG-FAIL][19] ([i915#4258]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/bat-adln-1/igt@i915_selftest@live@gt_pm.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-adln-1/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@migrate:
- bat-dg2-11: [DMESG-WARN][21] ([i915#7699]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/bat-dg2-11/igt@i915_selftest@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-dg2-11/igt@i915_selftest@[email protected]
#### Warnings ####
* igt@i915_selftest@live@slpc:
- bat-rpls-2: [DMESG-FAIL][23] ([i915#6367]) -> [DMESG-FAIL][24] ([i915#6367] / [i915#7996])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/bat-rpls-2/igt@i915_selftest@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/bat-rpls-2/igt@i915_selftest@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#7229]: https://gitlab.freedesktop.org/drm/intel/issues/7229
[i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7977]: https://gitlab.freedesktop.org/drm/intel/issues/7977
[i915#7996]: https://gitlab.freedesktop.org/drm/intel/issues/7996
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7173 -> IGTPW_8524
CI-20190529: 20190529
CI_DRM_12775: 4411ea4d524cff0bd08d9db1cdbf0ee127c3d831 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8524: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/index.html
IGT_7173: deab4e0bdf5a9366b67d0a44f478f3da3c9a943b @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
+++ 787 lines
--- 0 lines
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/index.html
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for Initial Xe test suite (rev3)
In reply to Zbigniew Kempczyński== Series Details ==
== Series Details ==
Series: Initial Xe test suite (rev3)
URL : https://patchwork.freedesktop.org/series/112191/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12775_full -> IGTPW_8524_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_8524_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_8524_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/index.html
Participating hosts (10 -> 11)
------------------------------
Additional (1): shard-rkl0
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_8524_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_eio@in-flight-suspend:
- shard-apl: [PASS][1] -> [TIMEOUT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/shard-apl3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-apl4/igt@[email protected]
* igt@kms_plane@pixel-format-source-clamping@pipe-a-planes:
- shard-apl: [PASS][3] -> [FAIL][4] +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/shard-apl7/igt@kms_plane@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-apl4/igt@kms_plane@[email protected]
* {igt@xe/xe_exec_basic@once-rebind} (NEW):
- {shard-dg1}: NOTRUN -> [SKIP][5] +402 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-dg1-13/igt@xe/[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_module_load@resize-bar:
- {shard-dg1}: NOTRUN -> [ABORT][6]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-dg1-16/igt@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_12775_full and IGTPW_8524_full:
### New IGT tests (787) ###
* igt@xe/xe_compute@compute:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_debugfs@base:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_debugfs@forcewake:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_debugfs@gt0:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_debugfs@gt1:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_dma_buf_sync@export-dma-buf-many:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_dma_buf_sync@export-dma-buf-many-read-sync:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_dma_buf_sync@export-dma-buf-once:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_dma_buf_sync@export-dma-buf-once-read-sync:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-cm-threads-large:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-cm-threads-large-multi-vm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-cm-threads-small:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-cm-threads-small-multi-vm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-large:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-large-cm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-large-external:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-large-external-cm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-large-multi-vm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-large-multi-vm-cm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-mixed-many-threads-large:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-mixed-many-threads-small:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-mixed-threads-large:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-mixed-threads-large-multi-vm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-mixed-threads-small:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-mixed-threads-small-multi-vm:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-small:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-small-cm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-small-external:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-small-external-cm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-small-multi-vm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-small-multi-vm-cm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-threads-large:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-threads-large-multi-vm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-threads-small:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-beng-threads-small-multi-vm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-cm-threads-large:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-cm-threads-large-multi-vm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-cm-threads-small:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-cm-threads-small-multi-vm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-large:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-large-cm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-large-external:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-large-external-cm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-large-multi-vm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-large-multi-vm-cm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-mixed-many-threads-large:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-mixed-many-threads-small:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-mixed-threads-large:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-mixed-threads-large-multi-vm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-mixed-threads-small:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-mixed-threads-small-multi-vm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-small:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-small-cm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-small-external:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-small-external-cm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-small-multi-vm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-small-multi-vm-cm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-threads-large:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-threads-large-multi-vm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-threads-small:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_evict@evict-threads-small-multi-vm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-cm-virtual-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-cm-virtual-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-cm-virtual-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-cm-virtual-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-cm-virtual-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-cm-virtual-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-cm-virtual-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-cm-virtual-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-cm-virtual-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-cm-virtual-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-cm-virtual-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-cm-virtual-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-parallel-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-parallel-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-parallel-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-parallel-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-parallel-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-parallel-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-virtual-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-virtual-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-virtual-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-virtual-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-virtual-userptr-invalidate-race:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-engines-virtual-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-parallel-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-parallel-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-parallel-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-parallel-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-parallel-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-parallel-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-virtual-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-virtual-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-virtual-userptr:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-virtual-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-virtual-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@many-virtual-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-cm-virtual-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-cm-virtual-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-cm-virtual-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-cm-virtual-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-cm-virtual-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-cm-virtual-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-parallel-basic:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-parallel-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-parallel-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-parallel-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-parallel-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-parallel-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-virtual-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-virtual-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-virtual-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-virtual-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-virtual-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@no-exec-virtual-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-cm-virtual-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-cm-virtual-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-cm-virtual-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-cm-virtual-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-cm-virtual-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-cm-virtual-userptr-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-parallel-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-parallel-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-parallel-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-parallel-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-parallel-userptr-invalidate-race:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-parallel-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-virtual-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-virtual-rebind:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-virtual-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-virtual-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-virtual-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@once-virtual-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-cm-virtual-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-cm-virtual-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-cm-virtual-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-cm-virtual-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-cm-virtual-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-cm-virtual-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-parallel-basic:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-parallel-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-parallel-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-parallel-userptr-invalidate:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-parallel-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-parallel-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-virtual-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-virtual-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-virtual-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-virtual-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-virtual-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@twice-virtual-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_balancer@virtual-all-active:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-basic:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-basic-defer-bind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-basic-defer-mmap:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-bindengine-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-bindengine-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-bindengine-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-bindengine-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-bindengine-userptr-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-basic-defer-bind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-basic-defer-mmap:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-bindengine-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-bindengine-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-bindengine-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-bindengine-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-bindengine-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-basic:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-basic-defer-bind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-basic-defer-mmap:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-bindengine-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-bindengine-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-bindengine-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-bindengine-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-bindengine-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-many-vm-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-userptr-invalidate-race:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-engines-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@many-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-basic-defer-bind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-basic-defer-mmap:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-bindengine-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-bindengine-userptr:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-bindengine-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-bindengine-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-bindengine-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@no-exec-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-basic-defer-bind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-basic-defer-mmap:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-bindengine-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-bindengine-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-bindengine-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-bindengine-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-bindengine-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@once-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-basic:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-basic-defer-bind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-basic-defer-mmap:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-bindengine-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-bindengine-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-bindengine-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-bindengine-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-bindengine-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-userptr-invalidate-race:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_basic@twice-userptr-rebind:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-bindengine-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-bindengine-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-bindengine-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-bindengine-userptr-invalidate-race:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-bindengine-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-bindengine:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-bindengine-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-bindengine-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-bindengine-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-bindengine-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-preempt-fence-early:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-engines-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-preempt-fence-early:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@many-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-bindengine-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-bindengine-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-bindengine-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-bindengine-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-bindengine-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-preempt-fence-early:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@once-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-bindengine:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-bindengine-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-bindengine-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-bindengine-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-bindengine-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-bindengine-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-preempt-fence-early:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-rebind:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_compute_mode@twice-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@atomic-many:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@atomic-many-wait:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@atomic-once:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@atomic-once-wait:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-basic:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-basic-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-basic-prefetch:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-rebind-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-invalidate-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-invalidate-prefetch:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-invalidate-race-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-invalidate-race-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-rebind-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-bindengine-userptr-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-basic:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-basic-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-basic-prefetch:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-rebind-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-rebind-prefetch:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-invalidate-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-invalidate-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-invalidate-race-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-invalidate-race-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-rebind-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-bindengine-userptr-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-invalid-fault:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-invalid-userptr-fault:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-rebind-imm:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-rebind-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-invalidate-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-invalidate-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-invalidate-race-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-invalidate-race-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-rebind-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-engines-userptr-rebind-prefetch:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-invalid-fault:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-invalid-userptr-fault:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-rebind-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-invalidate-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-invalidate-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-invalidate-race-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-invalidate-race-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-rebind-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@many-userptr-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-basic-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-basic-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-rebind-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-invalidate-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-invalidate-prefetch:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-invalidate-race-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-invalidate-race-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-rebind-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-bindengine-userptr-rebind-prefetch:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-invalid-fault:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-invalid-userptr-fault:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-rebind-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-invalidate-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-invalidate-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-invalidate-race-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-invalidate-race-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-prefetch:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-rebind-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@once-userptr-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-basic-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-basic-prefetch:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-prefetch:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-rebind-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-invalidate-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-invalidate-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-invalidate-race-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-invalidate-race-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-rebind-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-bindengine-userptr-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-invalid-fault:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-invalid-userptr-fault:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-rebind-imm:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-rebind-prefetch:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-imm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-invalidate-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-invalidate-prefetch:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-invalidate-race-imm:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-invalidate-race-prefetch:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-rebind-imm:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_fault_mode@twice-userptr-rebind-prefetch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@cancel:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@cat-error:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@close-engines-close-fd:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@close-fd:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@close-fd-no-exec:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@cm-cat-error:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@cm-close-engines-close-fd:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@cm-close-fd:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@cm-close-fd-no-exec:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@cm-engine-reset:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@cm-gt-reset:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@engine-reset:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@gt-reset:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@gt-reset-stress:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@parallel-cancel:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@parallel-cat-error:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@parallel-close-engines-close-fd:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@parallel-close-fd:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@parallel-close-fd-no-exec:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@parallel-engine-reset:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@parallel-gt-reset:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@spin:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@virtual-cancel:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@virtual-cat-error:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@virtual-close-engines-close-fd:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@virtual-close-fd:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@virtual-close-fd-no-exec:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@virtual-engine-reset:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_reset@virtual-gt-reset:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-fd-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-fd-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-fd-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-fd-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-fd-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-fd-userptr-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-fd-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-fd-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-fd-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-fd-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-fd-userptr-invalidate-race:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-fd-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-shared-vm-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-shared-vm-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-shared-vm-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-shared-vm-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-shared-vm-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-shared-vm-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-mixed-userptr-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-shared-vm-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-shared-vm-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-shared-vm-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-shared-vm-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-shared-vm-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-shared-vm-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-bal-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-fd-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-fd-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-fd-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-fd-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-fd-userptr-invalidate-race:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-fd-userptr-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-shared-vm-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-shared-vm-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-shared-vm-userptr:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-shared-vm-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-shared-vm-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-shared-vm-userptr-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-cm-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-fd-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-fd-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-fd-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-fd-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-fd-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-fd-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-fd-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-fd-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-fd-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-fd-userptr-invalidate:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-fd-userptr-invalidate-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-fd-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-shared-vm-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-shared-vm-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-shared-vm-rebind-err:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-shared-vm-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-shared-vm-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-shared-vm-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-shared-vm-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-shared-vm-userptr-rebind-err:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-userptr-invalidate-race:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-hang-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-fd-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-fd-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-fd-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-fd-userptr-invalidate:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-fd-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-fd-userptr-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-rebind:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-shared-vm-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-shared-vm-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-shared-vm-userptr:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-shared-vm-userptr-invalidate:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-shared-vm-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-shared-vm-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-mixed-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-rebind-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-shared-vm-basic:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-shared-vm-rebind:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-shared-vm-rebind-bindengine:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-shared-vm-rebind-err:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-shared-vm-userptr:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-shared-vm-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-shared-vm-userptr-invalidate-race:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-shared-vm-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-shared-vm-userptr-rebind-err:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-userptr:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-userptr-invalidate:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-userptr-invalidate-race:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_exec_threads@threads-userptr-rebind:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@freq_basic_api:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@freq_fixed_exec:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@freq_fixed_idle:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@freq_low_max:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@freq_range_exec:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@freq_range_idle:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@freq_reset:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@freq_reset_multiple:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@freq_suspend:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@rc0_on_exec:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_guc_pc@rc6_on_idle:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_huc_copy@huc_copy:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_mmap@system:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_mmap@vram:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_mmap@vram-system:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_mmio@mmio-invalid:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_mmio@mmio-timestamp:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@d3cold-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@d3cold-basic-exec:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@d3cold-multiple-execs:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@d3hot-basic:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@d3hot-basic-exec:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@d3hot-multiple-execs:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s2idle-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s2idle-basic-exec:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s2idle-d3cold-basic-exec:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s2idle-d3hot-basic-exec:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s2idle-exec-after:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s2idle-multiple-execs:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s3-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s3-basic-exec:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s3-d3cold-basic-exec:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s3-d3hot-basic-exec:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s3-exec-after:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s3-multiple-execs:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s4-basic:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s4-basic-exec:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s4-d3cold-basic-exec:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s4-d3hot-basic-exec:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s4-exec-after:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_pm@s4-multiple-execs:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_prime_self_import@basic-llseek-bad:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_prime_self_import@basic-llseek-size:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_prime_self_import@basic-with_fd_dup:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_prime_self_import@basic-with_one_bo:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_prime_self_import@basic-with_one_bo_two_files:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_prime_self_import@basic-with_two_bos:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_prime_self_import@export-vs-gem_close-race:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_prime_self_import@reimport-vs-gem_close-race:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_query@query-config:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_query@query-engines:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_query@query-gts:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_query@query-hwconfig:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_query@query-invalid-query:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_query@query-invalid-size:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_query@query-mem-usage:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_query@query-topology:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@bind-array-engine-many:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@bind-array-engine-twice:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@bind-array-many:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@bind-array-twice:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@bind-engines-independent:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@bind-once:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@bind-one-bo-many-times:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@bind-one-bo-many-times-many-vm:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-1073741824:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-134217728:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-16777216:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-2097152:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-2147483648:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-268435456:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-33554432:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-4194304:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-536870912:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-67108864:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-binds-8388608:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-1073741824:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-134217728:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-16777216:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-2097152:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-2147483648:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-268435456:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-33554432:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-4194304:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-536870912:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-67108864:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-misaligned-binds-8388608:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-1073741824:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-134217728:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-16777216:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-2097152:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-2147483648:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-268435456:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-33554432:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-4194304:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-536870912:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-67108864:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-binds-8388608:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-1073741824:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-134217728:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-16777216:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-2097152:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-2147483648:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-268435456:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-33554432:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-4194304:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-536870912:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-67108864:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-split-misaligned-binds-8388608:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-1073741824:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-134217728:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-16777216:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-2097152:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-2147483648:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-268435456:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-33554432:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-4194304:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-536870912:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-67108864:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-binds-8388608:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-1073741824:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-134217728:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-16777216:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-2097152:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-2147483648:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-268435456:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-33554432:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-4194304:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-536870912:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-67108864:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-misaligned-binds-8388608:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-1073741824:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-134217728:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-16777216:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-2097152:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-2147483648:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-268435456:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-33554432:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-4194304:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-536870912:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-67108864:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-binds-8388608:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-1073741824:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-134217728:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-16777216:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-2097152:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-2147483648:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-268435456:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-33554432:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-4194304:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-536870912:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-67108864:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@large-userptr-split-misaligned-binds-8388608:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@mixed-binds-1611661312:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@mixed-binds-3145728:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@mixed-misaligned-binds-1611661312:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@mixed-misaligned-binds-3145728:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@mixed-userptr-binds-1611661312:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@mixed-userptr-binds-3145728:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@mixed-userptr-misaligned-binds-1611661312:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@mixed-userptr-misaligned-binds-3145728:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-all:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-either-side-full:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-either-side-partial:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-either-side-partial-hammer:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-end:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-front:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-many-all:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-many-either-side-full:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-many-either-side-partial:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-many-either-side-partial-hammer:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-many-end:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-many-front:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-one-partial:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-all:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-either-side-full:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-either-side-partial:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-end:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-front:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-inval-either-side-full:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-inval-end:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-inval-front:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-inval-many-all:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-inval-many-either-side-full:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-inval-many-either-side-partial:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-inval-many-end:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-inval-many-front:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-many-all:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-many-either-side-full:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-many-end:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-many-front:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@munmap-style-unbind-userptr-one-partial:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@scratch:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@shared-pde-page:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@shared-pde2-page:
- Statuses : 4 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@shared-pde3-page:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@shared-pte-page:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@unbind-all-2-vmas:
- Statuses : 3 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@unbind-all-8-vmas:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@vm-async-ops-err:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_vm@vm-async-ops-err-destroy:
- Statuses : 5 skip(s)
- Exec time: [0.0] s
* igt@xe/xe_waitfence@test:
- Statuses : 6 skip(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in IGTPW_8524_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@device_reset@cold-reset-bound:
- shard-tglu-10: NOTRUN -> [SKIP][7] ([i915#7701])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@drm_mm@all-tests:
- shard-tglu-10: NOTRUN -> [SKIP][8] ([i915#6433])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@drm_read@invalid-buffer:
- shard-tglu-9: NOTRUN -> [SKIP][9] ([i915#1845]) +11 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@fbdev@read:
- shard-tglu-9: NOTRUN -> [SKIP][10] ([i915#2582]) +1 similar issue
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@feature_discovery@display-4x:
- shard-tglu-10: NOTRUN -> [SKIP][11] ([i915#1839])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@gem_create@create-ext-cpu-access-big:
- shard-tglu-10: NOTRUN -> [SKIP][12] ([i915#6335])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@gem_create@create-ext-cpu-access-sanity-check:
- shard-tglu-9: NOTRUN -> [SKIP][13] ([i915#6335])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@gem_ctx_sseu@invalid-args:
- shard-tglu-10: NOTRUN -> [SKIP][14] ([i915#280])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@gem_exec_capture@capture-invisible@smem0:
- shard-glk: NOTRUN -> [SKIP][15] ([fdo#109271] / [i915#6334])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-glk1/igt@gem_exec_capture@[email protected]
- shard-tglu-9: NOTRUN -> [SKIP][16] ([i915#6334])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@gem_exec_capture@[email protected]
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-apl: [PASS][17] -> [FAIL][18] ([i915#2842])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/shard-apl3/igt@gem_exec_fair@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-apl1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-tglu-10: NOTRUN -> [FAIL][19] ([i915#2842]) +6 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@gem_exec_fair@[email protected]
* igt@gem_exec_reloc@basic-scanout@vcs0:
- shard-tglu-9: NOTRUN -> [SKIP][20] ([i915#3639]) +4 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@gem_exec_reloc@[email protected]
* igt@gem_lmem_swapping@random:
- shard-tglu-10: NOTRUN -> [SKIP][21] ([i915#4613]) +5 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- shard-glk: NOTRUN -> [SKIP][22] ([fdo#109271] / [i915#4613]) +1 similar issue
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-glk2/igt@[email protected]
* igt@gem_lmem_swapping@verify-random:
- shard-tglu-9: NOTRUN -> [SKIP][23] ([i915#4613]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@gem_media_vme:
- shard-tglu-10: NOTRUN -> [SKIP][24] ([i915#284])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@gem_media_vme.html
* igt@gem_mmap_wc@set-cache-level:
- shard-tglu-9: NOTRUN -> [SKIP][25] ([i915#1850])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@gem_pxp@create-regular-context-2:
- shard-tglu-10: NOTRUN -> [SKIP][26] ([i915#4270]) +2 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@gem_pxp@reject-modify-context-protection-on:
- shard-tglu-9: NOTRUN -> [SKIP][27] ([i915#4270])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@gem_softpin@evict-snoop:
- shard-tglu-9: NOTRUN -> [SKIP][28] ([fdo#109312])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-tglu-9: NOTRUN -> [SKIP][29] ([i915#3323])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-unsync:
- shard-tglu-9: NOTRUN -> [SKIP][30] ([i915#3297]) +2 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@gem_userptr_blits@unsync-unmap-after-close:
- shard-tglu-10: NOTRUN -> [SKIP][31] ([i915#3297]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-tglu-10: NOTRUN -> [FAIL][32] ([i915#3318])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@gen7_exec_parse@batch-without-end:
- shard-tglu-9: NOTRUN -> [SKIP][33] ([fdo#109289]) +2 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@gen7_exec_parse@cmd-crossing-page:
- shard-tglu-10: NOTRUN -> [SKIP][34] ([fdo#109289]) +2 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-apl: [PASS][35] -> [ABORT][36] ([i915#5566])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/shard-apl7/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-apl2/igt@[email protected]
* igt@gen9_exec_parse@basic-rejected:
- shard-tglu-9: NOTRUN -> [SKIP][37] ([i915#2527] / [i915#2856])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@gen9_exec_parse@unaligned-jump:
- shard-tglu-10: NOTRUN -> [SKIP][38] ([i915#2527] / [i915#2856]) +2 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@i915_hwmon@hwmon-read:
- shard-tglu-9: NOTRUN -> [SKIP][39] ([i915#7707])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@i915_pm_backlight@bad-brightness:
- shard-tglu-10: NOTRUN -> [SKIP][40] ([i915#7561])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@i915_pm_lpsp@screens-disabled:
- shard-tglu-10: NOTRUN -> [SKIP][41] ([i915#1902])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-tglu-10: NOTRUN -> [WARN][42] ([i915#2681])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress:
- shard-tglu-9: NOTRUN -> [SKIP][43] ([i915#1397])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@i915_pm_rpm@modeset-non-lpsp-stress-no-wait:
- shard-tglu-10: NOTRUN -> [SKIP][44] ([fdo#111644] / [i915#1397])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@i915_pm_rps@engine-order:
- shard-apl: [PASS][45] -> [FAIL][46] ([i915#6537])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/shard-apl2/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-apl4/igt@[email protected]
* igt@kms_big_fb@4-tiled-addfb-size-overflow:
- shard-tglu-10: NOTRUN -> [SKIP][47] ([i915#5286]) +3 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@kms_big_fb@linear-16bpp-rotate-270:
- shard-tglu-10: NOTRUN -> [SKIP][48] ([fdo#111614]) +1 similar issue
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@kms_big_fb@yf-tiled-8bpp-rotate-0:
- shard-tglu-10: NOTRUN -> [SKIP][49] ([fdo#111615]) +4 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@kms_big_fb@yf-tiled-addfb-size-offset-overflow:
- shard-tglu-9: NOTRUN -> [SKIP][50] ([fdo#111615] / [i915#1845] / [i915#7651]) +4 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@kms_big_joiner@basic:
- shard-tglu-10: NOTRUN -> [SKIP][51] ([i915#2705])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@kms_ccs@pipe-a-random-ccs-data-y_tiled_gen12_mc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][52] ([i915#3689] / [i915#3886]) +1 similar issue
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@kms_ccs@pipe-a-random-ccs-data-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-random-ccs-data-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][53] ([fdo#109271] / [i915#3886])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-glk6/igt@kms_ccs@pipe-b-random-ccs-data-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-bad-rotation-90-4_tiled_dg2_mc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][54] ([i915#6095]) +4 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@kms_ccs@pipe-c-bad-rotation-90-4_tiled_dg2_mc_ccs.html
* igt@kms_ccs@pipe-c-crc-sprite-planes-basic-4_tiled_dg2_rc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][55] ([i915#3689] / [i915#6095]) +4 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-4_tiled_dg2_rc_ccs.html
* igt@kms_ccs@pipe-d-bad-aux-stride-yf_tiled_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][56] ([fdo#111615] / [i915#3689]) +3 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@kms_ccs@pipe-d-bad-aux-stride-yf_tiled_ccs.html
* igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][57] ([i915#3689]) +8 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@kms_ccs@pipe-d-bad-pixel-format-y_tiled_ccs.html
* igt@kms_chamelium_color@ctm-negative:
- shard-tglu-10: NOTRUN -> [SKIP][58] ([fdo#111827]) +2 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@kms_chamelium_hpd@dp-hpd-after-suspend:
- shard-tglu-9: NOTRUN -> [SKIP][59] ([i915#7828]) +2 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@kms_chamelium_hpd@hdmi-hpd:
- shard-tglu-10: NOTRUN -> [SKIP][60] ([i915#7828]) +5 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@kms_color@gamma:
- shard-tglu-9: NOTRUN -> [SKIP][61] ([i915#3546])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-9/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-0:
- shard-tglu-10: NOTRUN -> [SKIP][62] ([i915#3116] / [i915#3299])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@kms_cursor_crc@cursor-onscreen-512x512:
- shard-tglu-10: NOTRUN -> [SKIP][63] ([i915#3359]) +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@kms_cursor_legacy@2x-flip-vs-cursor-atomic:
- shard-tglu-10: NOTRUN -> [SKIP][64] ([fdo#109274]) +3 similar issues
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/shard-tglu-10/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-glk: [PASS][65] -> [FAIL][66] ([i915#2346])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12775/shard-glk1/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8524/index.html