DG1/LMEM uAPI basics v2
Subsystems (2)
cover DG1/LMEM uAPI basics v2
Just the really basic stuff, which unlocks adding more interesting testcases later, like gem_lmem_swapping.
On the kernel side we landed the uAPI bits[1] behind CONFIG_BROKEN, which is already enabled in CI builds, so it should be possible to get some more BAT testing(outside of just the selftests) on DG1 to the point where we can start to exercise the LMEM paths with the new bits of uAPI.
[1] https://patchwork.freedesktop.org/series/89648/
v2:(Petri)
- add missing kernel sha for i915_drm.h sync
- squash the various region lib patches together
- just directly use the uapi bits from the start, instead of adding a bunch of locals, which then later get removed anyway
Andrzej Turko (5):
lib/i915/gem_create: Add gem_create_ext lib/i915/intel_memory_region: Add new memory region lib tests/i915/gem_exec_basic: Use memory region interface tests/i915/gem_gpgpu_fill: Use memory region interface tests/i915/gem_media_fill: Use memory region interface
Dominik Grzegorzek (1):
tests/gem_gpgpu_fill: Convert from simple to standard igt_main
Kalamarz, Lukasz (1):
tests/i915/gem_exec_basic: Iterate over all memory regions
Matthew Auld (2):
i915_drm.h sync
tests/i915/gem_create: exercise placements extension
benchmarks/gem_blt.c | 2 +- benchmarks/gem_busy.c | 2 +- benchmarks/gem_create.c | 2 +- benchmarks/gem_exec_ctx.c | 2 +- benchmarks/gem_exec_fault.c | 2 +- benchmarks/gem_exec_nop.c | 2 +- benchmarks/gem_exec_reloc.c | 2 +- benchmarks/gem_exec_trace.c | 2 +- benchmarks/gem_latency.c | 2 +- benchmarks/gem_prw.c | 2 +- benchmarks/gem_set_domain.c | 2 +- benchmarks/gem_syslatency.c | 2 +- benchmarks/gem_wsim.c | 2 +- benchmarks/prime_lookup.c | 2 +- include/drm-uapi/i915_drm.h | 394 +++++++++++++++++++-- lib/i915/gem.h | 3 - lib/i915/gem_create.c | 43 ++- lib/i915/gem_create.h | 19 + lib/i915/gem_mman.c | 2 +- lib/i915/gem_ring.c | 1 + lib/i915/gem_submission.c | 1 + lib/i915/intel_memory_region.c | 441 ++++++++++++++++++++++++ lib/i915/intel_memory_region.h | 130 +++++++ lib/igt_draw.c | 2 +- lib/igt_dummyload.c | 2 +- lib/igt_fb.c | 2 +- lib/intel_batchbuffer.c | 2 +- lib/intel_bufops.c | 2 +- lib/ioctl_wrappers.c | 2 +- lib/ioctl_wrappers.h | 1 + lib/meson.build | 1 + tests/amdgpu/amd_prime.c | 1 + tests/core_hotunplug.c | 1 + tests/i915/api_intel_allocator.c | 1 + tests/i915/api_intel_bb.c | 1 + tests/i915/gem_bad_reloc.c | 1 + tests/i915/gem_basic.c | 2 +- tests/i915/gem_blits.c | 1 + tests/i915/gem_busy.c | 1 + tests/i915/gem_close.c | 1 + tests/i915/gem_close_race.c | 1 + tests/i915/gem_concurrent_all.c | 1 + tests/i915/gem_create.c | 189 ++++++++++ tests/i915/gem_cs_tlb.c | 1 + tests/i915/gem_ctx_clone.c | 1 + tests/i915/gem_ctx_create.c | 1 + tests/i915/gem_ctx_engines.c | 1 + tests/i915/gem_ctx_exec.c | 1 + tests/i915/gem_ctx_isolation.c | 1 + tests/i915/gem_ctx_param.c | 1 + tests/i915/gem_ctx_shared.c | 1 + tests/i915/gem_ctx_sseu.c | 1 + tests/i915/gem_ctx_switch.c | 1 + tests/i915/gem_eio.c | 1 + tests/i915/gem_evict_alignment.c | 1 + tests/i915/gem_evict_everything.c | 1 + tests/i915/gem_exec_alignment.c | 1 + tests/i915/gem_exec_async.c | 1 + tests/i915/gem_exec_await.c | 1 + tests/i915/gem_exec_balancer.c | 1 + tests/i915/gem_exec_basic.c | 53 ++- tests/i915/gem_exec_big.c | 1 + tests/i915/gem_exec_capture.c | 1 + tests/i915/gem_exec_create.c | 1 + tests/i915/gem_exec_endless.c | 1 + tests/i915/gem_exec_fair.c | 1 + tests/i915/gem_exec_fence.c | 1 + tests/i915/gem_exec_flush.c | 1 + tests/i915/gem_exec_gttfill.c | 1 + tests/i915/gem_exec_latency.c | 1 + tests/i915/gem_exec_lut_handle.c | 1 + tests/i915/gem_exec_nop.c | 1 + tests/i915/gem_exec_parallel.c | 1 + tests/i915/gem_exec_params.c | 1 + tests/i915/gem_exec_reloc.c | 1 + tests/i915/gem_exec_schedule.c | 1 + tests/i915/gem_exec_store.c | 1 + tests/i915/gem_exec_suspend.c | 1 + tests/i915/gem_exec_whisper.c | 1 + tests/i915/gem_fd_exhaustion.c | 2 +- tests/i915/gem_fence_thrash.c | 2 +- tests/i915/gem_fence_upload.c | 2 +- tests/i915/gem_fenced_exec_thrash.c | 1 + tests/i915/gem_flink_race.c | 2 +- tests/i915/gem_gpgpu_fill.c | 61 +++- tests/i915/gem_gtt_cpu_tlb.c | 2 +- tests/i915/gem_gtt_hog.c | 1 + tests/i915/gem_gtt_speed.c | 2 +- tests/i915/gem_huc_copy.c | 1 + tests/i915/gem_linear_blits.c | 1 + tests/i915/gem_lut_handle.c | 2 +- tests/i915/gem_madvise.c | 2 +- tests/i915/gem_media_fill.c | 57 ++- tests/i915/gem_mmap.c | 2 +- tests/i915/gem_mmap_gtt.c | 1 + tests/i915/gem_mmap_offset.c | 1 + tests/i915/gem_mmap_wc.c | 2 +- tests/i915/gem_ppgtt.c | 1 + tests/i915/gem_pread.c | 2 +- tests/i915/gem_pwrite.c | 2 +- tests/i915/gem_readwrite.c | 2 +- tests/i915/gem_reset_stats.c | 1 + tests/i915/gem_ringfill.c | 1 + tests/i915/gem_set_tiling_vs_gtt.c | 2 +- tests/i915/gem_set_tiling_vs_pwrite.c | 2 +- tests/i915/gem_shrink.c | 1 + tests/i915/gem_softpin.c | 1 + tests/i915/gem_streaming_writes.c | 1 + tests/i915/gem_sync.c | 1 + tests/i915/gem_tiled_fence_blits.c | 1 + tests/i915/gem_tiled_pread_basic.c | 2 +- tests/i915/gem_tiled_pread_pwrite.c | 2 +- tests/i915/gem_tiled_swapping.c | 2 +- tests/i915/gem_tiled_wb.c | 2 +- tests/i915/gem_tiled_wc.c | 2 +- tests/i915/gem_tiling_max_stride.c | 2 +- tests/i915/gem_unfence_active_buffers.c | 1 + tests/i915/gem_unref_active_buffers.c | 1 + tests/i915/gem_userptr_blits.c | 1 + tests/i915/gem_vm_create.c | 1 + tests/i915/gem_wait.c | 1 + tests/i915/gem_watchdog.c | 1 + tests/i915/gem_workarounds.c | 1 + tests/i915/gen3_mixed_blits.c | 1 + tests/i915/gen3_render_linear_blits.c | 1 + tests/i915/gen3_render_mixed_blits.c | 1 + tests/i915/gen3_render_tiledx_blits.c | 1 + tests/i915/gen3_render_tiledy_blits.c | 1 + tests/i915/gen7_exec_parse.c | 1 + tests/i915/gen9_exec_parse.c | 1 + tests/i915/i915_hangman.c | 1 + tests/i915/i915_module_load.c | 2 +- tests/i915/i915_pm_rc6_residency.c | 1 + tests/i915/i915_pm_rpm.c | 1 + tests/i915/i915_suspend.c | 1 + tests/i915/perf_pmu.c | 1 + tests/i915/sysfs_clients.c | 1 + tests/i915/sysfs_timeslice_duration.c | 1 + tests/kms_big_fb.c | 2 +- tests/kms_ccs.c | 2 +- tests/kms_flip.c | 2 +- tests/kms_frontbuffer_tracking.c | 1 + tests/kms_getfb.c | 2 +- tests/prime_busy.c | 1 + tests/prime_mmap.c | 2 +- tests/prime_mmap_kms.c | 2 +- tests/prime_self_import.c | 2 +- tests/prime_vgem.c | 1 + tools/intel_reg.c | 2 +- 149 files changed, 1447 insertions(+), 134 deletions(-) create mode 100644 lib/i915/gem_create.h create mode 100644 lib/i915/intel_memory_region.c create mode 100644 lib/i915/intel_memory_region.h
Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 1/9 i915_drm.h sync
Sync to get gem_create_ext and the regions query stuff.
Generated from kernel commit: 2459e56fd8af ("drm/i915/uapi: implement object placement extension")
--- include/drm-uapi/i915_drm.h | 394 ++++++++++++++++++++++++++++++++---- 1 file changed, 360 insertions(+), 34 deletions(-)
include/drm-uapi/i915_drm.h +360 -34
@@ -62,8 +62,8 @@ extern "C" {#define I915_ERROR_UEVENT "ERROR"#define I915_RESET_UEVENT "RESET" -/* -* i915_user_extension: Base class for defining a chain of extensions +/** +* 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,
@@ -76,12 +76,58 @@ extern "C" {* increasing complexity, and for large parts of that interface to be * entirely optional. The downside is more pointer chasing; chasing across * the 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 i915_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; -__u32 flags;/* All undefined bits must be zero. */ -__u32 rsvd[4 ];/* Reserved for future use; must be zero. */ +/** +* @flags: MBZ +* +* All undefined bits must be zero. +*/ +__u32 flags; +/** +* @rsvd: MBZ +* +* Reserved for future use; must be zero. +*/ +__u32 rsvd[4 ]; };/*
@@ -360,6 +406,7 @@ typedef struct _drm_i915_sarea {#define DRM_I915_QUERY 0x39#define DRM_I915_GEM_VM_CREATE 0x3a#define DRM_I915_GEM_VM_DESTROY 0x3b +#define DRM_I915_GEM_CREATE_EXT 0x3c/* Must be kept compact -- no holes */ #define DRM_IOCTL_I915_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t)
@@ -392,6 +439,7 @@ typedef struct _drm_i915_sarea {#define DRM_IOCTL_I915_GEM_ENTERVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_ENTERVT)#define DRM_IOCTL_I915_GEM_LEAVEVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_LEAVEVT)#define DRM_IOCTL_I915_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_CREATE, struct drm_i915_gem_create) +#define DRM_IOCTL_I915_GEM_CREATE_EXT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_CREATE_EXT, struct drm_i915_gem_create_ext)#define DRM_IOCTL_I915_GEM_PREAD DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PREAD, struct drm_i915_gem_pread)#define DRM_IOCTL_I915_GEM_PWRITE DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PWRITE, struct drm_i915_gem_pwrite)#define DRM_IOCTL_I915_GEM_MMAP DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MMAP, struct drm_i915_gem_mmap)
@@ -943,6 +991,7 @@ struct drm_i915_gem_exec_object {__u64 offset; }; +/* DRM_IOCTL_I915_GEM_EXECBUFFER was removed in Linux 5.13 */ struct drm_i915_gem_execbuffer {/** * List of buffers to be validated with their relocations to be
@@ -1053,12 +1102,12 @@ struct drm_i915_gem_exec_fence {__u32 flags; }; -/** +/* * See drm_i915_gem_execbuffer_ext_timeline_fences. */ #define DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES 0 -/** +/* * This structure describes an array of drm_syncobj and associated points for * timeline variants of drm_syncobj. It is invalid to append this structure to * the execbuf if I915_EXEC_FENCE_ARRAY is set.
@@ -1699,7 +1748,7 @@ struct drm_i915_gem_context_param {__u64 value; }; -/** +/* * Context SSEU programming * * It may be necessary for either functional or performance reason to configure
@@ -2066,7 +2115,7 @@ struct drm_i915_perf_open_param {__u64 properties_ptr; }; -/** +/* * Enable data capture for a stream that was either opened in a disabled state * via I915_PERF_FLAG_DISABLED or was later disabled via * I915_PERF_IOCTL_DISABLE.
@@ -2080,7 +2129,7 @@ struct drm_i915_perf_open_param {*/ #define I915_PERF_IOCTL_ENABLE _IO('i', 0x0) -/** +/* * Disable data capture for a stream. * * It is an error to try and read a stream that is disabled.
@@ -2089,7 +2138,7 @@ struct drm_i915_perf_open_param {*/ #define I915_PERF_IOCTL_DISABLE _IO('i', 0x1) -/** +/* * Change metrics_set captured by a stream. * * If the stream is bound to a specific context, the configuration change
@@ -2102,7 +2151,7 @@ struct drm_i915_perf_open_param {*/ #define I915_PERF_IOCTL_CONFIG _IO('i', 0x2) -/** +/* * Common to all i915 perf records */ struct drm_i915_perf_record_header {
@@ -2150,7 +2199,7 @@ enum drm_i915_perf_record_type {DRM_I915_PERF_RECORD_MAX /* non-ABI */ }; -/** +/* * Structure to upload perf dynamic configuration into the kernel. */ struct drm_i915_perf_oa_config {
@@ -2171,53 +2220,95 @@ struct drm_i915_perf_oa_config {__u64 flex_regs_ptr; }; +/** +* struct drm_i915_query_item - An individual query for the kernel to process. +* +* The behaviour is determined by the @query_id. Note that exactly what +* @data_ptr is also depends on the specific @query_id. +*/ struct drm_i915_query_item { +/** @query_id: The id for this query */ __u64 query_id;#define DRM_I915_QUERY_TOPOLOGY_INFO 1#define DRM_I915_QUERY_ENGINE_INFO 2#define DRM_I915_QUERY_PERF_CONFIG 3 +#define DRM_I915_QUERY_MEMORY_REGIONS 4/* Must be kept compact -- no holes and well documented */ -/* +/** +* @length: +* * When set to zero by userspace, this is filled with the size of the -* data to be written at the data_ptr pointer. The kernel sets this +* data to be written at the @data_ptr pointer. The kernel sets this * value to a negative value to signal an error on a particular query * item. */ __s32 length; -/* +/** +* @flags: +* * When query_id == DRM_I915_QUERY_TOPOLOGY_INFO, must be 0. * * When query_id == DRM_I915_QUERY_PERF_CONFIG, must be one of the -* following : -* - DRM_I915_QUERY_PERF_CONFIG_LIST -* - DRM_I915_QUERY_PERF_CONFIG_DATA_FOR_UUID -* - DRM_I915_QUERY_PERF_CONFIG_FOR_UUID +* following: +* +* - DRM_I915_QUERY_PERF_CONFIG_LIST +* - DRM_I915_QUERY_PERF_CONFIG_DATA_FOR_UUID +* - DRM_I915_QUERY_PERF_CONFIG_FOR_UUID */ __u32 flags;#define DRM_I915_QUERY_PERF_CONFIG_LIST 1#define DRM_I915_QUERY_PERF_CONFIG_DATA_FOR_UUID 2#define DRM_I915_QUERY_PERF_CONFIG_DATA_FOR_ID 3 -/* -* Data will be written at the location pointed by data_ptr when the -* value of length matches the length of the data to be written by the +/** +* @data_ptr: +* +* Data will be written at the location pointed by @data_ptr when the +* value of @length matches the length of the data to be written by the * kernel. */ __u64 data_ptr; }; +/** +* struct drm_i915_query - Supply an array of struct drm_i915_query_item for the +* kernel to fill out. +* +* Note that this is generally a two step process for each struct +* drm_i915_query_item in the array: +* +* 1. Call the DRM_IOCTL_I915_QUERY, giving it our array of struct +* drm_i915_query_item, with &drm_i915_query_item.length set to zero. The +* kernel will then fill in the size, in bytes, which tells userspace how +* memory it needs to allocate for the blob(say for an array of properties). +* +* 2. Next we call DRM_IOCTL_I915_QUERY again, this time with the +* &drm_i915_query_item.data_ptr equal to our newly allocated blob. Note that +* the &drm_i915_query_item.length should still be the same as what the +* kernel previously set. At this point the kernel can fill in the blob. +* +* Note that for some query items it can make sense for userspace to just pass +* in a buffer/blob equal to or larger than the required size. In this case only +* a single ioctl call is needed. For some smaller query items this can work +* quite well. +* +*/ struct drm_i915_query { +/** @num_items: The number of elements in the @items_ptr array */ __u32 num_items; -/* -* Unused for now. Must be cleared to zero. +/** +* @flags: Unused for now. Must be cleared to zero. */ __u32 flags; -/* -* This points to an array of num_items drm_i915_query_item structures. +/** +* @items_ptr: +* +* Pointer to an array of struct drm_i915_query_item. The number of +* array elements is @num_items. */ __u64 items_ptr; };
@@ -2291,21 +2382,21 @@ struct drm_i915_query_topology_info {* Describes one engine and it's capabilities as known to the driver. */ struct drm_i915_engine_info { -/** Engine class and instance. */ +/** @engine: Engine class and instance. */ struct i915_engine_class_instance engine; -/** Reserved field. */ +/** @rsvd0: Reserved field. */ __u32 rsvd0; -/** Engine flags. */ +/** @flags: Engine flags. */ __u64 flags; -/** Capabilities of this engine. */ +/** @capabilities: Capabilities of this engine. */ __u64 capabilities;#define I915_VIDEO_CLASS_CAPABILITY_HEVC (1 << 0)#define I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC (1 << 1) -/** Reserved fields. */ +/** @rsvd1: Reserved fields. */ __u64 rsvd1[4 ]; };
@@ -2316,13 +2407,13 @@ struct drm_i915_engine_info {* an array of struct drm_i915_engine_info structures. */ struct drm_i915_query_engine_info { -/** Number of struct drm_i915_engine_info structs following. */ +/** @num_engines: Number of struct drm_i915_engine_info structs following. */ __u32 num_engines; -/** MBZ */ +/** @rsvd: MBZ */ __u32 rsvd[3 ]; -/** Marker for drm_i915_engine_info structures. */ +/** @engines: Marker for drm_i915_engine_info structures. */ struct drm_i915_engine_info engines[]; };
@@ -2376,6 +2467,241 @@ struct drm_i915_query_perf_config {__u8 data[]; }; +/** +* enum drm_i915_gem_memory_class - Supported memory classes +*/ +enum drm_i915_gem_memory_class { +/** @I915_MEMORY_CLASS_SYSTEM: System memory */ +I915_MEMORY_CLASS_SYSTEM =0 , +/** @I915_MEMORY_CLASS_DEVICE: Device local-memory */ +I915_MEMORY_CLASS_DEVICE , +}; + +/** +* struct drm_i915_gem_memory_class_instance - Identify particular memory region +*/ +struct drm_i915_gem_memory_class_instance { +/** @memory_class: See enum drm_i915_gem_memory_class */ +__u16 memory_class; + +/** @memory_instance: Which instance */ +__u16 memory_instance; +}; + +/** +* struct drm_i915_memory_region_info - Describes one region as known to the +* driver. +* +* Note that we reserve some stuff here for potential future work. As an example +* we might want expose the capabilities for a given region, which could include +* things like if the region is CPU mappable/accessible, what are the supported +* mapping types etc. +* +* Note that to extend struct drm_i915_memory_region_info and struct +* drm_i915_query_memory_regions in the future the plan is to do the following: +* +* .. code-block:: C +* +* struct drm_i915_memory_region_info { +* struct drm_i915_gem_memory_class_instance region; +* union { +* __u32 rsvd0; +* __u32 new_thing1; +* }; +* ... +* union { +* __u64 rsvd1[8]; +* struct { +* __u64 new_thing2; +* __u64 new_thing3; +* ... +* }; +* }; +* }; +* +* With this things should remain source compatible between versions for +* userspace, even as we add new fields. +* +* Note this is using both struct drm_i915_query_item and struct drm_i915_query. +* For this new query we are adding the new query id DRM_I915_QUERY_MEMORY_REGIONS +* at &drm_i915_query_item.query_id. +*/ +struct drm_i915_memory_region_info { +/** @region: The class:instance pair encoding */ +struct drm_i915_gem_memory_class_instance region; + +/** @rsvd0: MBZ */ +__u32 rsvd0; + +/** @probed_size: Memory probed by the driver (-1 = unknown) */ +__u64 probed_size; + +/** @unallocated_size: Estimate of memory remaining (-1 = unknown) */ +__u64 unallocated_size; + +/** @rsvd1: MBZ */ +__u64 rsvd1[8 ]; +}; + +/** +* struct drm_i915_query_memory_regions +* +* The region info query enumerates all regions known to the driver by filling +* in an array of struct drm_i915_memory_region_info structures. +* +* Example for getting the list of supported regions: +* +* .. code-block:: C +* +* struct drm_i915_query_memory_regions *info; +* struct drm_i915_query_item item = { +* .query_id = DRM_I915_QUERY_MEMORY_REGIONS; +* }; +* struct drm_i915_query query = { +* .num_items = 1, +* .items_ptr = (uintptr_t)&item, +* }; +* int err, i; +* +* // First query the size of the blob we need, this needs to be large +* // enough to hold our array of regions. The kernel will fill out the +* // item.length for us, which is the number of bytes we need. +* err = ioctl(fd, DRM_IOCTL_I915_QUERY, &query); +* if (err) ... +* +* info = calloc(1, item.length); +* // Now that we allocated the required number of bytes, we call the ioctl +* // again, this time with the data_ptr pointing to our newly allocated +* // blob, which the kernel can then populate with the all the region info. +* item.data_ptr = (uintptr_t)&info, +* +* err = ioctl(fd, DRM_IOCTL_I915_QUERY, &query); +* if (err) ... +* +* // We can now access each region in the array +* for (i = 0; i < info->num_regions; i++) { +* struct drm_i915_memory_region_info mr = info->regions[i]; +* u16 class = mr.region.class; +* u16 instance = mr.region.instance; +* +* .... +* } +* +* free(info); +*/ +struct drm_i915_query_memory_regions { +/** @num_regions: Number of supported regions */ +__u32 num_regions; + +/** @rsvd: MBZ */ +__u32 rsvd[3 ]; + +/** @regions: Info about each supported region */ +struct drm_i915_memory_region_info regions[]; +}; + +/** +* struct drm_i915_gem_create_ext - Existing gem_create behaviour, with added +* extension support using struct i915_user_extension. +* +* Note that in the future we want to have our buffer flags here, at least for +* the stuff that is immutable. Previously we would have two ioctls, one to +* create the object with gem_create, and another to apply various parameters, +* however this creates some ambiguity for the params which are considered +* immutable. Also in general we're phasing out the various SET/GET ioctls. +*/ +struct drm_i915_gem_create_ext { +/** +* @size: Requested size for the object. +* +* The (page-aligned) allocated size for the object will be returned. +* +* Note that for some devices we have might have further minimum +* page-size restrictions(larger than 4K), like for device local-memory. +* However in general the final size here should always reflect any +* rounding up, if for example using the I915_GEM_CREATE_EXT_MEMORY_REGIONS +* extension to place the object in device local-memory. +*/ +__u64 size; +/** +* @handle: Returned handle for the object. +* +* Object handles are nonzero. +*/ +__u32 handle; +/** @flags: MBZ */ +__u32 flags; +/** +* @extensions: The chain of extensions to apply to this object. +* +* This will be useful in the future when we need to support several +* different extensions, and we need to apply more than one when +* creating the object. See struct i915_user_extension. +* +* If we don't supply any extensions then we get the same old gem_create +* behaviour. +* +* For I915_GEM_CREATE_EXT_MEMORY_REGIONS usage see +* struct drm_i915_gem_create_ext_memory_regions. +*/ +#define I915_GEM_CREATE_EXT_MEMORY_REGIONS 0 +__u64 extensions; +}; + +/** +* struct drm_i915_gem_create_ext_memory_regions - The +* I915_GEM_CREATE_EXT_MEMORY_REGIONS extension. +* +* Set the object with the desired set of placements/regions in priority +* order. Each entry must be unique and supported by the device. +* +* This is provided as an array of struct drm_i915_gem_memory_class_instance, or +* an equivalent layout of class:instance pair encodings. See struct +* drm_i915_query_memory_regions and DRM_I915_QUERY_MEMORY_REGIONS for how to +* query the supported regions for a device. +* +* As an example, on discrete devices, if we wish to set the placement as +* device local-memory we can do something like: +* +* .. code-block:: C +* +* struct drm_i915_gem_memory_class_instance region_lmem = { +* .memory_class = I915_MEMORY_CLASS_DEVICE, +* .memory_instance = 0, +* }; +* struct drm_i915_gem_create_ext_memory_regions regions = { +* .base = { .name = I915_GEM_CREATE_EXT_MEMORY_REGIONS }, +* .regions = (uintptr_t)®ion_lmem, +* .num_regions = 1, +* }; +* struct drm_i915_gem_create_ext create_ext = { +* .size = 16 * PAGE_SIZE, +* .extensions = (uintptr_t)®ions, +* }; +* +* int err = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE_EXT, &create_ext); +* if (err) ... +* +* At which point we get the object handle in &drm_i915_gem_create_ext.handle, +* along with the final object size in &drm_i915_gem_create_ext.size, which +* should account for any rounding up, if required. +*/ +struct drm_i915_gem_create_ext_memory_regions { +/** @base: Extension link. See struct i915_user_extension. */ +struct i915_user_extension base; + +/** @pad: MBZ */ +__u32 pad; +/** @num_regions: Number of elements in the @regions array. */ +__u32 num_regions; +/** +* @regions: The regions/placements array. +* +* An array of struct drm_i915_gem_memory_class_instance. +*/ +__u64 regions; +}; +#if defined(__cplusplus) }#endif
Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 2/9 lib/i915/gem_create: Add gem_create_ext
In reply to Matthew AuldFrom: Andrzej Turko <[email protected]>
Add a wrapper for gem_create_ext ioctl (a version of gem_create that accepts extensions). In preparation for the driver change implementing it, a local definition of its id and necessary structs have been added, which are to be erased as soon as those definitions
appear in the i915_drm.h file.
The new ioctl wrapper is added to a separate file. For consistency the wrapper of the old ioctl, gem_create is moved from ioctl_wrappers to gem_create.
--- benchmarks/gem_blt.c | 2 +- benchmarks/gem_busy.c | 2 +- benchmarks/gem_create.c | 2 +- benchmarks/gem_exec_ctx.c | 2 +- benchmarks/gem_exec_fault.c | 2 +- benchmarks/gem_exec_nop.c | 2 +- benchmarks/gem_exec_reloc.c | 2 +- benchmarks/gem_exec_trace.c | 2 +- benchmarks/gem_latency.c | 2 +- benchmarks/gem_prw.c | 2 +- benchmarks/gem_set_domain.c | 2 +- benchmarks/gem_syslatency.c | 2 +- benchmarks/gem_wsim.c | 2 +- benchmarks/prime_lookup.c | 2 +- lib/i915/gem.h | 3 -- lib/i915/gem_create.c | 43 ++++++++++++++++++++++++- lib/i915/gem_create.h | 19 +++++++++++ lib/i915/gem_mman.c | 2 +- lib/i915/gem_ring.c | 1 + lib/i915/gem_submission.c | 1 + lib/igt_draw.c | 2 +- lib/igt_dummyload.c | 2 +- lib/igt_fb.c | 2 +- lib/intel_batchbuffer.c | 2 +- lib/intel_bufops.c | 2 +- lib/ioctl_wrappers.c | 2 +- tests/amdgpu/amd_prime.c | 1 + tests/core_hotunplug.c | 1 + tests/i915/api_intel_allocator.c | 1 + tests/i915/api_intel_bb.c | 1 + tests/i915/gem_bad_reloc.c | 1 + tests/i915/gem_basic.c | 2 +- tests/i915/gem_blits.c | 1 + tests/i915/gem_busy.c | 1 + tests/i915/gem_close.c | 1 + tests/i915/gem_close_race.c | 1 + tests/i915/gem_concurrent_all.c | 1 + tests/i915/gem_create.c | 1 + tests/i915/gem_cs_tlb.c | 1 + tests/i915/gem_ctx_clone.c | 1 + tests/i915/gem_ctx_create.c | 1 + tests/i915/gem_ctx_engines.c | 1 + tests/i915/gem_ctx_exec.c | 1 + tests/i915/gem_ctx_isolation.c | 1 + tests/i915/gem_ctx_param.c | 1 + tests/i915/gem_ctx_shared.c | 1 + tests/i915/gem_ctx_sseu.c | 1 + tests/i915/gem_ctx_switch.c | 1 + tests/i915/gem_eio.c | 1 + tests/i915/gem_evict_alignment.c | 1 + tests/i915/gem_evict_everything.c | 1 + tests/i915/gem_exec_alignment.c | 1 + tests/i915/gem_exec_async.c | 1 + tests/i915/gem_exec_await.c | 1 + tests/i915/gem_exec_balancer.c | 1 + tests/i915/gem_exec_basic.c | 2 +- tests/i915/gem_exec_big.c | 1 + tests/i915/gem_exec_capture.c | 1 + tests/i915/gem_exec_create.c | 1 + tests/i915/gem_exec_endless.c | 1 + tests/i915/gem_exec_fair.c | 1 + tests/i915/gem_exec_fence.c | 1 + tests/i915/gem_exec_flush.c | 1 + tests/i915/gem_exec_gttfill.c | 1 + tests/i915/gem_exec_latency.c | 1 + tests/i915/gem_exec_lut_handle.c | 1 + tests/i915/gem_exec_nop.c | 1 + tests/i915/gem_exec_parallel.c | 1 + tests/i915/gem_exec_params.c | 1 + tests/i915/gem_exec_reloc.c | 1 + tests/i915/gem_exec_schedule.c | 1 + tests/i915/gem_exec_store.c | 1 + tests/i915/gem_exec_suspend.c | 1 + tests/i915/gem_exec_whisper.c | 1 + tests/i915/gem_fd_exhaustion.c | 2 +- tests/i915/gem_fence_thrash.c | 2 +- tests/i915/gem_fence_upload.c | 2 +- tests/i915/gem_fenced_exec_thrash.c | 1 + tests/i915/gem_flink_race.c | 2 +- tests/i915/gem_gtt_cpu_tlb.c | 2 +- tests/i915/gem_gtt_hog.c | 1 + tests/i915/gem_gtt_speed.c | 2 +- tests/i915/gem_huc_copy.c | 1 + tests/i915/gem_linear_blits.c | 1 + tests/i915/gem_lut_handle.c | 2 +- tests/i915/gem_madvise.c | 2 +- tests/i915/gem_mmap.c | 2 +- tests/i915/gem_mmap_gtt.c | 1 + tests/i915/gem_mmap_offset.c | 1 + tests/i915/gem_mmap_wc.c | 2 +- tests/i915/gem_ppgtt.c | 1 + tests/i915/gem_pread.c | 2 +- tests/i915/gem_pwrite.c | 2 +- tests/i915/gem_readwrite.c | 2 +- tests/i915/gem_reset_stats.c | 1 + tests/i915/gem_ringfill.c | 1 + tests/i915/gem_set_tiling_vs_gtt.c | 2 +- tests/i915/gem_set_tiling_vs_pwrite.c | 2 +- tests/i915/gem_shrink.c | 1 + tests/i915/gem_softpin.c | 1 + tests/i915/gem_streaming_writes.c | 1 + tests/i915/gem_sync.c | 1 + tests/i915/gem_tiled_fence_blits.c | 1 + tests/i915/gem_tiled_pread_basic.c | 2 +- tests/i915/gem_tiled_pread_pwrite.c | 2 +- tests/i915/gem_tiled_swapping.c | 2 +- tests/i915/gem_tiled_wb.c | 2 +- tests/i915/gem_tiled_wc.c | 2 +- tests/i915/gem_tiling_max_stride.c | 2 +- tests/i915/gem_unfence_active_buffers.c | 1 + tests/i915/gem_unref_active_buffers.c | 1 + tests/i915/gem_userptr_blits.c | 1 + tests/i915/gem_vm_create.c | 1 + tests/i915/gem_wait.c | 1 + tests/i915/gem_watchdog.c | 1 + tests/i915/gem_workarounds.c | 1 + tests/i915/gen3_mixed_blits.c | 1 + tests/i915/gen3_render_linear_blits.c | 1 + tests/i915/gen3_render_mixed_blits.c | 1 + tests/i915/gen3_render_tiledx_blits.c | 1 + tests/i915/gen3_render_tiledy_blits.c | 1 + tests/i915/gen7_exec_parse.c | 1 + tests/i915/gen9_exec_parse.c | 1 + tests/i915/i915_hangman.c | 1 + tests/i915/i915_module_load.c | 2 +- tests/i915/i915_pm_rc6_residency.c | 1 + tests/i915/i915_pm_rpm.c | 1 + tests/i915/i915_suspend.c | 1 + tests/i915/perf_pmu.c | 1 + tests/i915/sysfs_clients.c | 1 + tests/i915/sysfs_timeslice_duration.c | 1 + tests/kms_big_fb.c | 2 +- tests/kms_ccs.c | 2 +- tests/kms_flip.c | 2 +- tests/kms_frontbuffer_tracking.c | 1 + tests/kms_getfb.c | 2 +- tests/prime_busy.c | 1 + tests/prime_mmap.c | 2 +- tests/prime_mmap_kms.c | 2 +- tests/prime_self_import.c | 2 +- tests/prime_vgem.c | 1 + tools/intel_reg.c | 2 +- 142 files changed, 200 insertions(+), 57 deletions(-) create mode 100644 lib/i915/gem_create.h
benchmarks/gem_blt.c +1 -1
@@ -41,7 +41,7 @@#include <time.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #define COPY_BLT_CMD (2<<29|0x53<<22|0x6)#define BLT_WRITE_ALPHA (1<<21)
benchmarks/gem_busy.c +1 -1
@@ -45,7 +45,7 @@#include "intel_chipset.h" #include "intel_reg.h" #include "igt_stats.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_mman.h" #define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK)
benchmarks/gem_create.c +1 -1
@@ -40,7 +40,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_aux.h" #include "igt_stats.h" #include "intel_reg.h"
benchmarks/gem_exec_ctx.c +1 -1
@@ -40,7 +40,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "intel_io.h" #include "intel_reg.h" #include "igt_stats.h"
benchmarks/gem_exec_fault.c +1 -1
@@ -42,7 +42,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_stats.h" #include "intel_io.h" #include "intel_reg.h"
benchmarks/gem_exec_nop.c +1 -1
@@ -40,7 +40,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_stats.h" #include "intel_io.h" #include "intel_reg.h"
benchmarks/gem_exec_reloc.c +1 -1
@@ -38,7 +38,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_mman.h" #include "igt_debugfs.h" #include "intel_reg.h"
benchmarks/gem_exec_trace.c +1 -1
@@ -41,7 +41,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_stats.h" #include "intel_io.h" #include "ioctl_wrappers.h"
benchmarks/gem_latency.c +1 -1
@@ -43,7 +43,7 @@#include <sys/resource.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_device.h"
benchmarks/gem_prw.c +1 -1
@@ -40,7 +40,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_aux.h" #include "igt_stats.h" #include "ioctl_wrappers.h"
benchmarks/gem_set_domain.c +1 -1
@@ -40,7 +40,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_aux.h" #include "ioctl_wrappers.h"
benchmarks/gem_syslatency.c +1 -1
@@ -44,7 +44,7 @@#include <linux/unistd.h> -#include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_ring.h" #define sigev_notify_thread_id _sigev_un._tid
benchmarks/gem_wsim.c +1 -1
@@ -56,7 +56,7 @@#include "igt_perf.h" #include "sw_sync.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_engine_topology.h" #include "i915/gem_mman.h"
benchmarks/prime_lookup.c +1 -1
@@ -38,7 +38,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_rand.h" #include "intel_io.h" #include "ioctl_wrappers.h"
lib/i915/gem.h +0 -3
@@ -32,7 +32,4 @@ void gem_quiescent_gpu(int i915);int gem_reopen_driver (int i915); -int __gem_create (int fd,uint64_t *size,uint32_t *handle); -uint32_t gem_create (int fd,uint64_t size); -#endif /* I915_GEM_H */
lib/i915/gem_create.c +42 -1
52 lines not on this page · raw message
lib/i915/gem_create.h new file +19 -0
@@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2021 Intel Corporation +*/ + +#ifndef GEM_CREATE_H +#define GEM_CREATE_H + +#include <stdint.h> + +#include "i915_drm.h" + +int __gem_create (int fd,uint64_t *size,uint32_t *handle); +uint32_t gem_create (int fd,uint64_t size); +int __gem_create_ext (int fd,uint64_t *size,uint32_t *handle, +struct i915_user_extension *ext); +uint32_t gem_create_ext (int fd,uint64_t size,struct i915_user_extension *ext); + +#endif /* GEM_CREATE_H */
lib/i915/gem_mman.c +1 -1
@@ -31,7 +31,7 @@#include "ioctl_wrappers.h" #include "intel_chipset.h" -#include "gem.h" +#include "gem_create.h" #include "gem_mman.h" #ifdef HAVE_VALGRIND
lib/i915/gem_ring.c +1 -0
@@ -27,6 +27,7 @@#include <sys/time.h> #include "gem.h" +#include "gem_create.h" #include "gem_ring.h" #include "gem_submission.h"
lib/i915/gem_submission.c +1 -0
@@ -31,6 +31,7 @@#include <i915_drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_engine_topology.h" #include "i915/gem_submission.h"
lib/igt_draw.c +1 -1
@@ -34,7 +34,7 @@#include "igt_fb.h" #include "ioctl_wrappers.h" #include "i830_reg.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_mman.h" #ifndef PAGE_ALIGN
lib/igt_dummyload.c +1 -1
@@ -31,7 +31,7 @@#include <i915_drm.h> #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_engine_topology.h" #include "i915/gem_mman.h" #include "i915/gem_submission.h"
lib/igt_fb.c +1 -1
@@ -33,7 +33,7 @@#include <pixman.h> #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_mman.h" #include "igt_aux.h" #include "igt_color_encoding.h"
lib/intel_batchbuffer.c +1 -1
@@ -35,7 +35,7 @@#include "drm.h" #include "drmtest.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "intel_batchbuffer.h" #include "intel_bufmgr.h" #include "intel_bufops.h"
lib/intel_bufops.c +1 -1
@@ -25,7 +25,7 @@#include <sys/ioctl.h> #include <cairo.h> -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_x86.h" #include "intel_bufops.h"
lib/ioctl_wrappers.c +1 -1
@@ -49,7 +49,7 @@#include "drmtest.h" #include "i915_drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "intel_batchbuffer.h" #include "intel_chipset.h" #include "intel_io.h"
tests/amdgpu/amd_prime.c +1 -0
@@ -27,6 +27,7 @@#include <sys/poll.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_vgem.h"
tests/core_hotunplug.c +1 -0
@@ -31,6 +31,7 @@#include <unistd.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/perf.h" #include "igt.h" #include "igt_device_scan.h"
tests/i915/api_intel_allocator.c +1 -0
@@ -5,6 +5,7 @@#include <stdatomic.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_aux.h" #include "intel_allocator.h"
tests/i915/api_intel_bb.c +1 -0
@@ -23,6 +23,7 @@#include "igt.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include <unistd.h> #include <stdlib.h> #include <stdio.h>
tests/i915/gem_bad_reloc.c +1 -0
@@ -39,6 +39,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION("Simulates SNA behaviour using negative self-relocations"
tests/i915/gem_basic.c +1 -1
@@ -37,7 +37,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" static void test_bad_close (int fd)
tests/i915/gem_blits.c +1 -0
@@ -23,6 +23,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_x86.h"
tests/i915/gem_busy.c +1 -0
@@ -26,6 +26,7 @@#include <sys/ioctl.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_rand.h" #include "igt_vgem.h"
tests/i915/gem_close.c +1 -0
@@ -22,6 +22,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" static int batch_create (int fd)
tests/i915/gem_close_race.c +1 -0
@@ -42,6 +42,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #define OBJECT_SIZE (256 * 1024)
tests/i915/gem_concurrent_all.c +1 -0
@@ -49,6 +49,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_vgem.h"
tests/i915/gem_create.c +1 -0
@@ -54,6 +54,7 @@#include "igt_dummyload.h" #include "igt_x86.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_engine_topology.h" #include "i915/gem_mman.h" #include "i915_drm.h"
tests/i915/gem_cs_tlb.c +1 -0
@@ -50,6 +50,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION ("Check whether we correctly invalidate the cs tlb." );
tests/i915/gem_ctx_clone.c +1 -0
@@ -22,6 +22,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_vm.h" #include "i915_drm.h" #include "igt.h"
tests/i915/gem_ctx_create.c +1 -0
@@ -31,6 +31,7 @@#include <time.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_rand.h" #include "sw_sync.h"
tests/i915/gem_ctx_engines.c +1 -0
@@ -39,6 +39,7 @@#include "i915/gem.h" #include "i915/gem_context.h" +#include "i915/gem_create.h" #include "igt.h" #include "sw_sync.h"
tests/i915/gem_ctx_exec.c +1 -0
@@ -41,6 +41,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_dummyload.h" #include "igt_rand.h"
tests/i915/gem_ctx_isolation.c +1 -0
@@ -22,6 +22,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_dummyload.h"
tests/i915/gem_ctx_param.c +1 -0
@@ -29,6 +29,7 @@#include "igt.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_vm.h" IGT_TEST_DESCRIPTION ("Basic test for context set/get param input validation." );
tests/i915/gem_ctx_shared.c +1 -0
@@ -38,6 +38,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_engine_topology.h" #include "igt.h" #include "igt_rand.h"
tests/i915/gem_ctx_sseu.c +1 -0
@@ -37,6 +37,7 @@#include <sys/wait.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt.h" #include "igt_dummyload.h"
tests/i915/gem_ctx_switch.c +1 -0
@@ -41,6 +41,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_ring.h" #include "igt.h"
tests/i915/gem_eio.c +1 -0
@@ -43,6 +43,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_ring.h" #include "igt.h" #include "igt_device.h"
tests/i915/gem_evict_alignment.c +1 -0
@@ -45,6 +45,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION("Run a couple of big batches to force the unbind on"
tests/i915/gem_evict_everything.c +1 -0
@@ -44,6 +44,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "eviction_common.c"
tests/i915/gem_exec_alignment.c +1 -0
@@ -42,6 +42,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION ("Exercises the basic execbuffer using object alignments" );
tests/i915/gem_exec_async.c +1 -0
@@ -22,6 +22,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION ("Check that we can issue concurrent writes across the engines." );
tests/i915/gem_exec_await.c +1 -0
@@ -26,6 +26,7 @@#include <sys/signal.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_rand.h" #include "igt_sysfs.h"
tests/i915/gem_exec_balancer.c +1 -0
@@ -27,6 +27,7 @@#include <sys/signal.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_gt.h" #include "igt_perf.h"
tests/i915/gem_exec_basic.c +1 -1
@@ -23,7 +23,7 @@#include "igt.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Basic sanity check of execbuf-ioctl rings." );
tests/i915/gem_exec_big.c +1 -0
@@ -46,6 +46,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION("Run a large nop batch to stress test the error capture"
tests/i915/gem_exec_capture.c +1 -0
@@ -25,6 +25,7 @@#include <zlib.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_device.h" #include "igt_rand.h"
tests/i915/gem_exec_create.c +1 -0
@@ -40,6 +40,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_ring.h" #include "igt.h"
tests/i915/gem_exec_endless.c +1 -0
@@ -24,6 +24,7 @@#include <sys/ioctl.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_device.h" #include "igt_sysfs.h"
tests/i915/gem_exec_fair.c +1 -0
@@ -18,6 +18,7 @@#include "sync_file.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_rand.h" #include "igt_rapl.h"
tests/i915/gem_exec_fence.c +1 -0
@@ -26,6 +26,7 @@#include <sys/signal.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_syncobj.h" #include "igt_sysfs.h"
tests/i915/gem_exec_flush.c +1 -0
@@ -24,6 +24,7 @@#include <time.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_ring.h" #include "igt.h" #include "igt_x86.h"
tests/i915/gem_exec_gttfill.c +1 -0
@@ -22,6 +22,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_rand.h"
tests/i915/gem_exec_latency.c +1 -0
@@ -47,6 +47,7 @@#include "igt_stats.h" #include "i915/gem.h" +#include "i915/gem_create.h" #define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK)
tests/i915/gem_exec_lut_handle.c +1 -0
@@ -38,6 +38,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
tests/i915/gem_exec_nop.c +1 -0
@@ -41,6 +41,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_device.h" #include "igt_rand.h"
tests/i915/gem_exec_parallel.c +1 -0
@@ -30,6 +30,7 @@#include <pthread.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_gt.h"
tests/i915/gem_exec_params.c +1 -0
@@ -39,6 +39,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_ring.h" #include "igt.h" #include "igt_device.h"
tests/i915/gem_exec_reloc.c +1 -0
@@ -25,6 +25,7 @@#include <sys/ioctl.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_device.h" #include "igt_dummyload.h"
tests/i915/gem_exec_schedule.c +1 -0
@@ -35,6 +35,7 @@#include <unistd.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_rand.h" #include "igt_rapl.h"
tests/i915/gem_exec_store.c +1 -0
@@ -30,6 +30,7 @@#include <strings.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_device.h" #include "igt_gt.h"
tests/i915/gem_exec_suspend.c +1 -0
@@ -31,6 +31,7 @@#include <unistd.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_dummyload.h" #include "igt_gt.h"
tests/i915/gem_exec_whisper.c +1 -0
@@ -28,6 +28,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_debugfs.h" #include "igt_rapl.h"
tests/i915/gem_fd_exhaustion.c +1 -1
@@ -33,7 +33,7 @@#include <fcntl.h> #include <limits.h> -#include "i915/gem.h" +#include "i915/gem_create.h" igt_simple_main {
tests/i915/gem_fence_thrash.c +1 -1
@@ -40,7 +40,7 @@#include <pthread.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_x86.h"
tests/i915/gem_fence_upload.c +1 -1
@@ -40,7 +40,7 @@#include "drm.h" #include "i915_drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #define OBJECT_SIZE (1024*1024)/* restricted to 1MiB alignment on i915 fences */
tests/i915/gem_fenced_exec_thrash.c +1 -0
@@ -31,6 +31,7 @@#include <errno.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION ("Test execbuf fence accounting." );
tests/i915/gem_flink_race.c +1 -1
@@ -32,7 +32,7 @@#include <pthread.h> #include <errno.h> -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_stats.h"
tests/i915/gem_gtt_cpu_tlb.c +1 -1
@@ -42,7 +42,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Check whether gtt tlbs for cpu access are correctly" " invalidated." );
tests/i915/gem_gtt_hog.c +1 -0
@@ -40,6 +40,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" static const uint32_t canary =0xdeadbeef ;
tests/i915/gem_gtt_speed.c +1 -1
@@ -41,7 +41,7 @@#include <sys/time.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #define OBJECT_SIZE 16384
tests/i915/gem_huc_copy.c +1 -0
@@ -34,6 +34,7 @@#include <sys/time.h> #include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("A very simple workload for the HuC." );
tests/i915/gem_linear_blits.c +1 -0
@@ -45,6 +45,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION("Test doing many blits with a working set larger than the"
tests/i915/gem_lut_handle.c +1 -1
@@ -38,7 +38,7 @@#include <sys/time.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Exercises the basic execbuffer using the handle LUT" " interface." );
tests/i915/gem_madvise.c +1 -1
@@ -37,7 +37,7 @@#include <signal.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Checks that the kernel reports EFAULT when trying to use" " purged bo." );
tests/i915/gem_mmap.c +1 -1
@@ -37,7 +37,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #define OBJECT_SIZE 16384#define PAGE_SIZE 4096
tests/i915/gem_mmap_gtt.c +1 -0
@@ -42,6 +42,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_sysfs.h" #include "igt_x86.h"
tests/i915/gem_mmap_offset.c +1 -0
@@ -32,6 +32,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_x86.h"
tests/i915/gem_mmap_wc.c +1 -1
@@ -38,7 +38,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" struct local_i915_gem_mmap_v2 {uint32_t handle;
tests/i915/gem_ppgtt.c +1 -0
@@ -36,6 +36,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_debugfs.h"
tests/i915/gem_pread.c +1 -1
@@ -43,7 +43,7 @@#include <pthread.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_vgem.h" #define MiB (x) ((x) * 1024 * 1024)
tests/i915/gem_pwrite.c +1 -1
@@ -42,7 +42,7 @@#include <sys/time.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_rand.h" #include "igt_vgem.h"
tests/i915/gem_readwrite.c +1 -1
@@ -37,7 +37,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #define OBJECT_SIZE 16384
tests/i915/gem_reset_stats.c +1 -0
@@ -41,6 +41,7 @@#include <signal.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_ring.h" #include "igt.h" #include "igt_sysfs.h"
tests/i915/gem_ringfill.c +1 -0
@@ -32,6 +32,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_ring.h" #include "igt.h" #include "igt_device.h"
tests/i915/gem_set_tiling_vs_gtt.c +1 -1
@@ -37,7 +37,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Check set_tiling vs gtt mmap coherency." );
tests/i915/gem_set_tiling_vs_pwrite.c +1 -1
@@ -37,7 +37,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Check set_tiling vs pwrite coherency." );
tests/i915/gem_shrink.c +1 -0
@@ -28,6 +28,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_gt.h" #include "igt_debugfs.h"
tests/i915/gem_softpin.c +1 -0
@@ -27,6 +27,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "intel_allocator.h"
tests/i915/gem_streaming_writes.c +1 -0
@@ -38,6 +38,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #define OBJECT_SIZE 1024*1024
tests/i915/gem_sync.c +1 -0
@@ -25,6 +25,7 @@#include <pthread.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_ring.h" #include "igt_debugfs.h" #include "igt_dummyload.h"
tests/i915/gem_tiled_fence_blits.c +1 -0
@@ -42,6 +42,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_x86.h"
tests/i915/gem_tiled_pread_basic.c +1 -1
@@ -47,7 +47,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Test pread behavior on tiled objects with respect to the" " reported swizzling value." );
tests/i915/gem_tiled_pread_pwrite.c +1 -1
@@ -57,7 +57,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Test swizzling by testing pwrite does the inverse of" " pread." );
tests/i915/gem_tiled_swapping.c +1 -1
@@ -57,7 +57,7 @@#include <pthread.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Exercise swizzle code for swapping." );
tests/i915/gem_tiled_wb.c +1 -1
@@ -44,7 +44,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("This is a test of write-combining mmap's behavior on" " tiled objects with respect to the reported swizzling"
tests/i915/gem_tiled_wc.c +1 -1
@@ -44,7 +44,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #define WIDTH 512#define HEIGHT 512
tests/i915/gem_tiling_max_stride.c +1 -1
@@ -38,7 +38,7 @@#include <sys/ioctl.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Check that max fence stride works." );
tests/i915/gem_unfence_active_buffers.c +1 -0
@@ -50,6 +50,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION ("Check for use-after-free in the fence stealing code." );
tests/i915/gem_unref_active_buffers.c +1 -0
@@ -40,6 +40,7 @@#include "igt.h" #include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Test unreferencing of active buffers." );
tests/i915/gem_userptr_blits.c +1 -0
@@ -59,6 +59,7 @@#include "i915_drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_sysfs.h" #include "sw_sync.h"
tests/i915/gem_vm_create.c +1 -0
@@ -22,6 +22,7 @@*/ #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_vm.h" #include "igt.h" #include "igt_rand.h"
tests/i915/gem_wait.c +1 -0
@@ -28,6 +28,7 @@#include <sys/poll.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_vgem.h"
tests/i915/gem_watchdog.c +1 -0
@@ -30,6 +30,7 @@#include <sched.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_params.h" #include "sw_sync.h"
tests/i915/gem_workarounds.c +1 -0
@@ -28,6 +28,7 @@#include <fcntl.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_device.h"
tests/i915/gen3_mixed_blits.c +1 -0
@@ -45,6 +45,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915_reg.h" #include "igt.h"
tests/i915/gen3_render_linear_blits.c +1 -0
@@ -44,6 +44,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915_reg.h" #include "igt.h"
tests/i915/gen3_render_mixed_blits.c +1 -0
@@ -45,6 +45,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915_reg.h" #include "igt.h"
tests/i915/gen3_render_tiledx_blits.c +1 -0
@@ -45,6 +45,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915_reg.h" #include "igt.h"
tests/i915/gen3_render_tiledy_blits.c +1 -0
@@ -45,6 +45,7 @@#include "drm.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915_reg.h" #include "igt.h"
tests/i915/gen7_exec_parse.c +1 -0
@@ -32,6 +32,7 @@#include "igt.h" #include "igt_device.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "sw_sync.h" #define DERRMR 0x44050
tests/i915/gen9_exec_parse.c +1 -0
@@ -29,6 +29,7 @@#include <stdlib.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_submission.h" #include "igt.h" #include "sw_sync.h"
tests/i915/i915_hangman.c +1 -0
@@ -33,6 +33,7 @@#include <fcntl.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_sysfs.h" #include "igt_debugfs.h"
tests/i915/i915_module_load.c +1 -1
@@ -30,7 +30,7 @@#include <sys/ioctl.h> #include <fcntl.h> -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_debugfs.h" #include "igt_aux.h" #include "igt_kmod.h"
tests/i915/i915_pm_rc6_residency.c +1 -0
@@ -34,6 +34,7 @@#include <time.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_perf.h" #include "igt_rapl.h"
tests/i915/i915_pm_rpm.c +1 -0
@@ -46,6 +46,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_kmod.h" #include "igt_sysfs.h"
tests/i915/i915_suspend.c +1 -0
@@ -39,6 +39,7 @@#include <drm.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_device.h"
tests/i915/perf_pmu.c +1 -0
@@ -39,6 +39,7 @@#include <sched.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_core.h" #include "igt_device.h"
tests/i915/sysfs_clients.c +1 -0
@@ -19,6 +19,7 @@#include "drmtest.h" #include "i915/gem.h" #include "i915/gem_context.h" +#include "i915/gem_create.h" #include "i915/gem_engine_topology.h" #include "i915/gem_mman.h" #include "igt_aux.h"
tests/i915/sysfs_timeslice_duration.c +1 -0
@@ -32,6 +32,7 @@#include "igt_params.h" #include "drmtest.h" #include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_engine_topology.h" #include "i915/gem_mman.h" #include "igt_dummyload.h"
tests/kms_big_fb.c +1 -1
@@ -27,7 +27,7 @@#include <stdio.h> #include <string.h> -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Test big framebuffers" );
tests/kms_ccs.c +1 -1
@@ -24,7 +24,7 @@#include "igt.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #define SDR_PLANE_BASE 3
tests/kms_flip.c +1 -1
@@ -42,7 +42,7 @@#include <time.h> #include <pthread.h> -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_stats.h" #define TEST_DPMS (1 << 0)
tests/kms_frontbuffer_tracking.c +1 -0
@@ -31,6 +31,7 @@#include <pthread.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_sysfs.h" #include "igt_psr.h"
tests/kms_getfb.c +1 -1
@@ -40,7 +40,7 @@#include "drm.h" #include "drm_fourcc.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt_device.h" IGT_TEST_DESCRIPTION ("Tests GETFB and GETFB2 ioctls." );
tests/prime_busy.c +1 -0
@@ -24,6 +24,7 @@#include <sys/poll.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" IGT_TEST_DESCRIPTION ("Basic check of polling for prime fences." );
tests/prime_mmap.c +1 -1
@@ -43,7 +43,7 @@#include "drm.h" #include "drmtest.h" #include "i915_drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" #include "i915/gem_mman.h" #include "igt_debugfs.h" #include "ioctl_wrappers.h"
tests/prime_mmap_kms.c +1 -1
@@ -32,7 +32,7 @@#include "igt.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Efficiently sharing CPU and GPU buffers" );
tests/prime_self_import.c +1 -1
@@ -44,7 +44,7 @@#include <pthread.h> #include "drm.h" -#include "i915/gem.h" +#include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Check whether prime import/export works on the same" " device... but with different fds." );
tests/prime_vgem.c +1 -0
@@ -26,6 +26,7 @@#include <time.h> #include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_vgem.h" #include "intel_batchbuffer.h" /* igt_blitter_src_copy() */
tools/intel_reg.c +1 -1
@@ -32,7 +32,7 @@#include <sys/types.h> #include <unistd.h> -#include "i915/gem.h" +#include "i915/gem_create.h" #include "igt.h" #include "igt_gt.h" #include "intel_io.h"
Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 3/9 lib/i915/intel_memory_region: Add new memory region lib
In reply to Matthew AuldFrom: Andrzej Turko <[email protected]>
With an introduction of Local Memory concept we should be able to allocate object in specific memory region. This patch implements helper functions that allow this, both for querying what the device supports and hooking into gem_create_ext to select the placements.
--- lib/i915/intel_memory_region.c | 441 +++++++++++++++++++++++++++++++++ lib/i915/intel_memory_region.h | 130 ++++++++++ lib/ioctl_wrappers.h | 1 + lib/meson.build | 1 + 4 files changed, 573 insertions(+) create mode 100644 lib/i915/intel_memory_region.c create mode 100644 lib/i915/intel_memory_region.h
lib/i915/intel_memory_region.c new file +441 -0
@@ -0,0 +1,441 @@ +/* +* Copyright © 2020 Intel Corporation +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +* IN THE SOFTWARE. +*/ + +#include <linux/limits.h> +#include <signal.h> +#include <sys/ioctl.h> +#include <sys/time.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> + +#include "i915/gem_create.h" +#include "intel_reg.h" +#include "drmtest.h" +#include "ioctl_wrappers.h" +#include "igt_dummyload.h" +#include "igt_gt.h" +#include "igt_params.h" +#include "igt_sysfs.h" +#include "intel_chipset.h" +#include "igt_collection.h" +#include "igt_device.h" + +#include "i915/intel_memory_region.h" + +#define i915_query_items (fd, items, n_items) do { \ + igt_assert_eq(__i915_query_items(fd, items, n_items), 0); \ + errno = 0; \ + } while (0) +#define i915_query_items_err (fd, items, n_items, err) do { \ + igt_assert_eq(__i915_query_items(fd, items, n_items), -err); \ + } while (0) + +static int +__i915_query (int fd,struct drm_i915_query *q) +{ +if (igt_ioctl (fd,DRM_IOCTL_I915_QUERY , q)) +return -errno; +return 0 ; +} + +static int +__i915_query_items (int fd,struct drm_i915_query_item *items,uint32_t n_items) +{ +struct drm_i915_query q = { + .num_items = n_items, + .items_ptr =to_user_pointer (items), + }; +return __i915_query (fd, &q); +} + +bool gem_has_query_support (int fd) +{ +struct drm_i915_query query = {}; + +return __i915_query (fd, &query) ==0 ; +} + +const char *get_memory_region_name (uint32_t region) +{ +uint16_t class =MEMORY_TYPE_FROM_REGION (region); + +switch (class) { +case I915_MEMORY_CLASS_SYSTEM : +return "smem" ; +case I915_MEMORY_CLASS_DEVICE : +return "lmem" ; + } +igt_assert_f (false,"Unknown memory region" ); +} + +/** +* gem_get_batch_size: +* @fd: open i915 drm file descriptor +* @mem_region_type: used memory_region type +* +* With introduction of LMEM we observe different page sizes for those two +* memory regions. Without this helper funtion we may be prone to forget +* about setting proper page size. +*/ +uint32_t gem_get_batch_size (int fd,uint8_t mem_region_type) +{ +return (mem_region_type ==I915_MEMORY_CLASS_DEVICE ) ?65536 :4096 ; +} + +/** +* gem_get_query_memory_regions: +* @fd: open i915 drm file descriptor +* +* This function wraps query mechanism for memory regions. +* +* Returns: Filled struct with available memory regions. +*/ +struct drm_i915_query_memory_regions *gem_get_query_memory_regions (int fd) +{ +struct drm_i915_query_item item; +struct drm_i915_query_memory_regions *query_info; + +memset (&item,0 ,sizeof (item)); + item.query_id =DRM_I915_QUERY_MEMORY_REGIONS ; +i915_query_items (fd, &item,1 ); + + query_info =calloc (1 , item.length); + + item.data_ptr =to_user_pointer (query_info); +i915_query_items (fd, &item,1 ); + +return query_info; +} + +/** +* gem_get_lmem_region_count: +* @fd: open i915 drm file descriptor +* +* Helper function to check how many lmem regions are available on device. +* +* Returns: Number of found lmem regions. +*/ +uint8_t gem_get_lmem_region_count (int fd) +{ +struct drm_i915_query_memory_regions *query_info; +uint8_t num_regions; +uint8_t lmem_regions =0 ; + + query_info =gem_get_query_memory_regions (fd); + num_regions = query_info->num_regions; + +for (int i =0 ; i < num_regions; i++) { +if (query_info->regions[i].region.memory_class ==I915_MEMORY_CLASS_DEVICE ) + lmem_regions +=1 ; + } + +return lmem_regions; +} + +/** +* gem_has_lmem: +* @fd: open i915 drm file descriptor +* +* Helper function to check if lmem is available on device. +* +* Returns: True if at least one lmem region was found. +*/ +bool gem_has_lmem (int fd) +{ +return gem_get_lmem_region_count (fd) >0 ; +} + +/* A version of gem_create_in_memory_region_list which can be allowed to +fail so that the object creation can be retried */ +int __gem_create_in_memory_region_list (int fd,uint32_t *handle,uint64_t size, +struct drm_i915_gem_memory_class_instance *mem_regions, +int num_regions) +{ +struct drm_i915_gem_create_ext_memory_regions ext_regions = { + .base = { .name =I915_GEM_CREATE_EXT_MEMORY_REGIONS }, + .num_regions = num_regions, + .regions =to_user_pointer (mem_regions), + }; + +return __gem_create_ext (fd, &size, handle, &ext_regions.base); +} + +/* gem_create_in_memory_region_list: +* @fd: opened i915 drm file descriptor +* @size: requested size of the buffer +* @mem_regions: memory regions array (priority list) +* @num_regions: @mem_regions length +*/ +uint32_t gem_create_in_memory_region_list (int fd,uint64_t size, +struct drm_i915_gem_memory_class_instance *mem_regions, +int num_regions) +{ +uint32_t handle; +int ret =__gem_create_in_memory_region_list (fd, &handle, size, + mem_regions, num_regions); +igt_assert_eq (ret,0 ); +return handle; +} + +static bool __region_belongs_to_regions_type (struct drm_i915_gem_memory_class_instance region, +uint32_t *mem_regions_type, +int num_regions) +{ +for (int i =0 ; i < num_regions; i++) +if (mem_regions_type[i] == region.memory_class) +return true; +return false; +} + +struct igt_collection * +__get_memory_region_set (struct drm_i915_query_memory_regions *regions, +uint32_t *mem_regions_type, +int num_regions) +{ +struct drm_i915_gem_memory_class_instance region; +struct igt_collection *set; +int count =0 , pos =0 ; + +for (int i =0 ; i < regions->num_regions; i++) { + region = regions->regions[i].region; +if (__region_belongs_to_regions_type (region, + mem_regions_type, + num_regions)) + count++; + } + + set =igt_collection_create (count); + +for (int i =0 ; i < regions->num_regions; i++) { + region = regions->regions[i].region; +if (__region_belongs_to_regions_type (region, + mem_regions_type, + num_regions)) +igt_collection_set_value (set, pos++, +INTEL_MEMORY_REGION_ID (region.memory_class, + region.memory_instance)); + } + +igt_assert (count == pos); + +return set; +} + +/** +* memregion_dynamic_subtest_name: +* @igt_collection: memory region collection +* +* Function iterates over all memory regions inside the collection (keeped +* in the value field) and generates the name which can be used during dynamic +* subtest creation. +* +* Returns: newly allocated string, has to be freed by caller. Asserts if +* caller tries to create a name using empty collection. +*/ +char *memregion_dynamic_subtest_name (struct igt_collection *set) +{ +struct igt_collection_data *data; +char *name, *p; +uint32_t region, len; + +igt_assert (set && set->size); +/* enough for "name%d-" * n */ + len = set->size *8 ; + p = name =malloc (len); +igt_assert (name); + +for_each_collection_data (data, set) { +int r; + + region = data->value; +if (IS_DEVICE_MEMORY_REGION (region)) + r =snprintf (p, len,"%s%d-" , +get_memory_region_name (region), +MEMORY_INSTANCE_FROM_REGION (region)); +else + r =snprintf (p, len,"%s-" , +get_memory_region_name (region)); + +igt_assert (r >0 ); + p += r; + len -= r; + } + +/* remove last '-' */ + *(p -1 ) =0 ; + +return name; +} + +/** +* intel_dump_gpu_meminfo: +* @info: pointer to drm_i915_query_memory_regions structure +* +* Outputs memory regions and their sizes. +*/ +void intel_dump_gpu_meminfo (struct drm_i915_query_memory_regions *info) +{ +int i; + +igt_assert (info); + +igt_info ("GPU meminfo:\n" ); + +for (i =0 ; i < info->num_regions; i++) { +uint32_t region =INTEL_MEMORY_REGION_ID (info->regions[i].region.memory_class, + info->regions[i].region.memory_instance); +const char *name =get_memory_region_name (region); + +igt_info ("- %s [%d] memory [size: 0x%llx, available: 0x%llx]\n" , + name, info->regions[i].region.memory_instance, + info->regions[i].probed_size, + info->regions[i].unallocated_size); + } +} + +/** +* gpu_meminfo_region_count: +* @info: pointer to drm_i915_query_memory_regions structure +* @memory_class: memory region class +* +* Returns: number of regions for type @memory_class +*/ +uint32_t gpu_meminfo_region_count (struct drm_i915_query_memory_regions *info, +uint16_t memory_class) +{ +uint32_t num =0 ; +int i; + +igt_assert (info); + +for (i =0 ; i < info->num_regions; i++) +if (info->regions[i].region.memory_class == memory_class) + num++; + +return num; +} + +/** +* gpu_meminfo_region_total_size: +* @info: pointer to drm_i915_query_memory_regions structure +* @memory_class: memory region class +* +* Returns: total size of all regions which are type @memory_class, -1 when the +* size of at least one region is unknown +*/ +uint64_t gpu_meminfo_region_total_size (struct drm_i915_query_memory_regions *info, +uint16_t memory_class) +{ +uint64_t total =0 ; +int i; + +igt_assert (info); + +for (i =0 ; i < info->num_regions; i++) +if (info->regions[i].region.memory_class == memory_class) { +if (info->regions[i].probed_size ==-1 ) +return -1 ; + + total += info->regions[i].probed_size; + } + +return total; +} + +/** +* gpu_meminfo_region_total_available: +* @info: pointer to drm_i915_query_memory_regions structure +* @memory_class: memory region class +* +* Returns: available size of all regions which are type @memory_class, -1 when +* the size of at least one region cannot be estimated +*/ +uint64_t gpu_meminfo_region_total_available (struct drm_i915_query_memory_regions *info, +uint16_t memory_class) +{ +uint64_t avail =0 ; +int i; + +igt_assert (info); + +for (i =0 ; i < info->num_regions; i++) +if (info->regions[i].region.memory_class == memory_class) { +if (info->regions[i].unallocated_size ==-1 ) +return -1 ; + + avail += info->regions[i].unallocated_size; + } + +return avail; +} + +/** +* gpu_meminfo_region_size: +* @info: pointer to drm_i915_query_memory_regions structure +* @memory_class: memory region class +* @memory_instance: memory region instance +* +* Returns: available size of @memory_instance which type is @memory_class, -1 +* when the size is unknown +*/ +uint64_t gpu_meminfo_region_size (struct drm_i915_query_memory_regions *info, +uint16_t memory_class, +uint16_t memory_instance) +{ +int i; + +igt_assert (info); + +for (i =0 ; i < info->num_regions; i++) +if (info->regions[i].region.memory_class == memory_class && + info->regions[i].region.memory_instance == memory_instance) +return info->regions[i].probed_size; + +return 0 ; +} + +/** +* gpu_meminfo_region_available: +* @info: pointer to drm_i915_query_memory_regions structure +* @memory_class: memory region class +* @memory_instance: memory region instance +* +* Returns: available size of @memory_instance region which type is +* @memory_class, -1 when the size cannot be estimated +*/ +uint64_t gpu_meminfo_region_available (struct drm_i915_query_memory_regions *info, +uint16_t memory_class, +uint16_t memory_instance) +{ +int i; + +igt_assert (info); + +for (i =0 ; i < info->num_regions; i++) +if (info->regions[i].region.memory_class == memory_class && + info->regions[i].region.memory_instance == memory_instance) +return info->regions[i].unallocated_size; + +return 0 ; +}
lib/i915/intel_memory_region.h new file +130 -0
130 lines not on this page · raw message
lib/ioctl_wrappers.h +1 -0
@@ -38,6 +38,7 @@#include "i915/gem_context.h" #include "i915/gem_scheduler.h" +#include "i915/intel_memory_region.h" /** * igt_ioctl:
lib/meson.build +1 -0
@@ -10,6 +10,7 @@ lib_sources = [ 'i915/gem_ring.c', 'i915/gem_mman.c', 'i915/gem_vm.c', + 'i915/intel_memory_region.c', 'igt_collection.c', 'igt_color_encoding.c', 'igt_debugfs.c',
Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 4/9 tests/gem_gpgpu_fill: Convert from simple to standard igt_main
In reply to Matthew AuldFrom: Dominik Grzegorzek <[email protected]>
As we need to add new test variants, convert the code to standard igt_main format so those variants can be easily accommodated.
--- tests/i915/gem_gpgpu_fill.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-)
tests/i915/gem_gpgpu_fill.c +16 -9
@@ -123,20 +123,27 @@ static void gpgpu_fill(data_t *data, igt_fillfunc_t fill)munmap (ptr, buf->surface[0 ].size); } - -igt_simple_main +igt_main {data_t data = {0 , };igt_fillfunc_t fill_fn =NULL ; - data.drm_fd =drm_open_driver_render (DRIVER_INTEL ); - data.devid =intel_get_drm_devid (data.drm_fd); -igt_require_gem (data.drm_fd); - data.bops =buf_ops_create (data.drm_fd); + igt_fixture { + data.drm_fd =drm_open_driver_render (DRIVER_INTEL ); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_require_gem (data.drm_fd); + data.bops =buf_ops_create (data.drm_fd); + + fill_fn =igt_get_gpgpu_fillfunc (data.devid); + +igt_require_f (fill_fn,"no gpgpu-fill function\n" ); - fill_fn =igt_get_gpgpu_fillfunc (data.devid); + } -igt_require_f (fill_fn,"no gpgpu-fill function\n" ); + igt_subtest("basic") +gpgpu_fill (&data, fill_fn); -gpgpu_fill (&data, fill_fn); + igt_fixture { +buf_ops_destroy (data.bops); + } }
Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 5/9 tests/i915/gem_exec_basic: Use memory region interface
In reply to Matthew AuldFrom: Andrzej Turko <[email protected]>
Converted the test gem_exec_basic to use the memory region uapi.
--- tests/i915/gem_exec_basic.c | 50 +++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 16 deletions(-)
tests/i915/gem_exec_basic.c +34 -16
@@ -22,17 +22,18 @@*/ #include "igt.h" +#include "igt_collection.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Basic sanity check of execbuf-ioctl rings." ); -static uint32_t batch_create (int fd) +static uint32_t batch_create (int fd,uint32_t batch_size,uint32_t region) {const uint32_t bbe =MI_BATCH_BUFFER_END ;uint32_t handle; - handle =gem_create (fd,4096 ); + handle =gem_create_in_memory_regions (fd, batch_size, region);gem_write (fd, handle,0 , &bbe,sizeof (bbe));return handle;
@@ -41,36 +42,53 @@ static uint32_t batch_create(int fd) igt_main {const struct intel_execution_engine2 *e; +struct drm_i915_query_memory_regions *query_info; +struct igt_collection *regions, *set; +uint32_t batch_size;int fd =-1 ; igt_fixture { fd =drm_open_driver (DRIVER_INTEL );/* igt_require_gem(fd); // test is mandatory */ igt_fork_hang_detector (fd); + + query_info =gem_get_query_memory_regions (fd); +igt_assert (query_info); + + set =get_memory_region_set (query_info, +I915_SYSTEM_MEMORY ); } igt_subtest_with_dynamic("basic") { -struct drm_i915_gem_exec_object2 exec = { - .handle =batch_create (fd), - }; +for_each_combination (regions,1 , set) { +char *sub_name =memregion_dynamic_subtest_name (regions); +struct drm_i915_gem_exec_object2 exec; +uint32_t region =igt_collection_get_value (regions,0 ); -__for_each_physical_engine (fd, e) { - igt_dynamic_f("%s", e->name) { -struct drm_i915_gem_execbuffer2 execbuf = { - .buffers_ptr =to_user_pointer (&exec), - .buffer_count =1 , - .flags = e->flags, - }; + batch_size =gem_get_batch_size (fd,MEMORY_TYPE_FROM_REGION (region)); +memset (&exec,0 ,sizeof (exec)); + exec.handle =batch_create (fd, batch_size, region); -gem_execbuf (fd, &execbuf); +__for_each_physical_engine (fd, e) { + igt_dynamic_f("%s-%s", e->name, sub_name) { +struct drm_i915_gem_execbuffer2 execbuf = { + .buffers_ptr =to_user_pointer (&exec), + .buffer_count =1 , + .flags = e->flags, + }; + +gem_execbuf (fd, &execbuf); + } } +gem_sync (fd, exec.handle);/* catch any GPU hang */ +gem_close (fd, exec.handle); +free (sub_name); } - -gem_sync (fd, exec.handle);/* catch any GPU hang */ -gem_close (fd, exec.handle); } igt_fixture { +free (query_info); +igt_collection_destroy (set);igt_stop_hang_detector ();close (fd); }
Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 6/9 tests/i915/gem_gpgpu_fill: Use memory region interface
In reply to Matthew AuldFrom: Andrzej Turko <[email protected]>
Converted the test gem_gpgpu_fill to use memory region uapi.
--- tests/i915/gem_gpgpu_fill.c | 42 ++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 8 deletions(-)
tests/i915/gem_gpgpu_fill.c +34 -8
@@ -45,13 +45,14 @@#include "drm.h" #include "i915/gem.h" #include "igt.h" +#include "igt_collection.h" #include "intel_bufops.h" +#include "i915/intel_memory_region.h" #define WIDTH 64#define HEIGHT 64#define STRIDE (WIDTH)#define SIZE (HEIGHT*STRIDE) -#define COLOR_C4 0xc4#define COLOR_4C 0x4c
@@ -62,10 +63,11 @@ typedef struct { } data_t;static struct intel_buf * -create_buf (data_t *data,int width,int height,uint8_t color) +create_buf (data_t *data,int width,int height,uint8_t color,uint32_t region) {struct intel_buf *buf;uint8_t *ptr; +uint32_t handle;int i; buf =calloc (1 ,sizeof (*buf));
@@ -75,8 +77,10 @@ create_buf(data_t *data, int width, int height, uint8_t color)* Legacy code uses 32 bpp after buffer creation. * Let's do the same due to keep shader intact. */ -intel_buf_init (data->bops, buf, width/4 , height,32 ,0 , -I915_TILING_NONE ,0 ); + handle =gem_create_in_memory_regions (data->drm_fd,SIZE , region); +intel_buf_init_using_handle (data->bops, handle, buf, + width/4 , height,32 ,0 , +I915_TILING_NONE ,0 ); ptr =gem_mmap__cpu_coherent (data->drm_fd, buf->handle,0 , buf->surface[0 ].size,PROT_WRITE );
@@ -99,15 +103,16 @@ static void buf_check(uint8_t *ptr, int x, int y, uint8_t color) color, val, x, y); } -static void gpgpu_fill (data_t *data,igt_fillfunc_t fill) +static void gpgpu_fill (data_t *data,igt_fillfunc_t fill,uint32_t region) {struct intel_buf *buf;uint8_t *ptr;int i, j; - buf =create_buf (data,WIDTH ,HEIGHT ,COLOR_C4 ); + buf =create_buf (data,WIDTH ,HEIGHT ,COLOR_C4 , region); ptr =gem_mmap__device_coherent (data->drm_fd, buf->handle,0 , buf->surface[0 ].size,PROT_READ ); +for (i =0 ; i <WIDTH ; i++)for (j =0 ; j <HEIGHT ; j++)buf_check (ptr, i, j,COLOR_C4 );
@@ -123,10 +128,13 @@ static void gpgpu_fill(data_t *data, igt_fillfunc_t fill)munmap (ptr, buf->surface[0 ].size); } + igt_main {data_t data = {0 , };igt_fillfunc_t fill_fn =NULL ; +struct drm_i915_query_memory_regions *region_info; +struct igt_collection *region_set; igt_fixture { data.drm_fd =drm_open_driver_render (DRIVER_INTEL );
@@ -138,12 +146,30 @@ igt_mainigt_require_f (fill_fn,"no gpgpu-fill function\n" ); + region_info =gem_get_query_memory_regions (data.drm_fd); +igt_assert (region_info); + + region_set =get_memory_region_set (region_info, +I915_SYSTEM_MEMORY ); } - igt_subtest("basic") -gpgpu_fill (&data, fill_fn); + igt_subtest_with_dynamic("basic") { +struct igt_collection *region; + +for_each_combination (region,1 , region_set) { +char *name =memregion_dynamic_subtest_name (region); +uint32_t id =igt_collection_get_value (region,0 ); + +igt_dynamic (name) + gpgpu_fill(&data, fill_fn, id); + +free (name); + } + } igt_fixture { +igt_collection_destroy (region_set); +free (region_info);buf_ops_destroy (data.bops); } }
Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 7/9 tests/i915/gem_media_fill: Use memory region interface
In reply to Matthew AuldFrom: Andrzej Turko <[email protected]>
Converted the test gem_media_fill to use memory region uapi.
--- tests/i915/gem_media_fill.c | 57 ++++++++++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 13 deletions(-)
tests/i915/gem_media_fill.c +44 -13
@@ -64,21 +64,24 @@ typedef struct { } data_t;static struct intel_buf * -create_buf (data_t *data,int width,int height,uint8_t color) +create_buf (data_t *data,int width,int height,uint8_t color,uint32_t region) {struct intel_buf *buf; +uint32_t handle;uint8_t *ptr;int i; buf =calloc (1 ,sizeof (*buf));igt_assert (buf); + handle =gem_create_in_memory_regions (data->drm_fd,SIZE , region); +/* * Legacy code uses 32 bpp after buffer creation. * Let's do the same due to keep shader intact. */ -intel_buf_init (data->bops, buf, width/4 , height,32 ,0 , -I915_TILING_NONE ,0 ); +intel_buf_init_using_handle (data->bops, handle, buf, width/4 , + height,32 ,0 ,I915_TILING_NONE ,0 ); ptr =gem_mmap__cpu_coherent (data->drm_fd, buf->handle,0 , buf->surface[0 ].size,PROT_WRITE );
@@ -101,13 +104,16 @@ static void buf_check(uint8_t *ptr, int x, int y, uint8_t color) color, val, x, y); } -static void media_fill (data_t *data,igt_fillfunc_t fill) +static void media_fill (data_t *data,igt_fillfunc_t fill, +struct igt_collection *memregion_set) {struct intel_buf *buf; +uint32_t region;uint8_t *ptr;int i, j; - buf =create_buf (data,WIDTH ,HEIGHT ,COLOR_C4 ); + region =igt_collection_get_value (memregion_set,0 ); + buf =create_buf (data,WIDTH ,HEIGHT ,COLOR_C4 , region); ptr =gem_mmap__device_coherent (data->drm_fd, buf->handle,0 , buf->surface[0 ].size,PROT_READ );for (i =0 ; i <WIDTH ; i++)
@@ -126,20 +132,45 @@ static void media_fill(data_t *data, igt_fillfunc_t fill)munmap (ptr, buf->surface[0 ].size); } -igt_simple_main +igt_main {data_t data = {0 , };igt_fillfunc_t fill_fn =NULL ; +struct drm_i915_query_memory_regions *query_info; +struct igt_collection *set, *region_set; + + igt_fixture { + data.drm_fd =drm_open_driver_render (DRIVER_INTEL ); +igt_require_gem (data.drm_fd); + + data.devid =intel_get_drm_devid (data.drm_fd); + data.bops =buf_ops_create (data.drm_fd); + + fill_fn =igt_get_media_fillfunc (data.devid); + +igt_require_f (fill_fn,"no media-fill function\n" ); + + query_info =gem_get_query_memory_regions (data.drm_fd); +igt_assert (query_info); + + set =get_memory_region_set (query_info, +I915_SYSTEM_MEMORY ); - data.drm_fd =drm_open_driver_render (DRIVER_INTEL ); -igt_require_gem (data.drm_fd); +igt_fork_hang_detector (data.drm_fd); + } - data.devid =intel_get_drm_devid (data.drm_fd); - data.bops =buf_ops_create (data.drm_fd); + igt_subtest_with_dynamic("media-fill") +for_each_combination (region_set,1 , set) { +char *sub_name =memregion_dynamic_subtest_name (region_set); - fill_fn =igt_get_media_fillfunc (data.devid); + igt_dynamic_f("%s", sub_name) +media_fill (&data, fill_fn, region_set); -igt_require_f (fill_fn,"no media-fill function\n" ); +free (sub_name); + } -media_fill (&data, fill_fn); + igt_fixture { +igt_collection_destroy (set); +igt_stop_hang_detector (); + } }
Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 8/9 tests/i915/gem_create: exercise placements extension
In reply to Matthew AuldAdd some explicit testcases for the create_ext placements extension.
--- tests/i915/gem_create.c | 188 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 188 insertions(+)
tests/i915/gem_create.c +188 -0
@@ -290,6 +290,184 @@ static void size_update(int fd)igt_assert_neq (create.size, size_initial_nonaligned); } +static void create_ext_placement_sanity_check (int fd) +{ +struct drm_i915_query_memory_regions *regions; +struct drm_i915_gem_create_ext_memory_regions setparam_region = { + .base = { .name =I915_GEM_CREATE_EXT_MEMORY_REGIONS }, + }; +struct drm_i915_gem_memory_class_instance *uregions; +struct drm_i915_gem_memory_class_instance region_smem = { + .memory_class =I915_MEMORY_CLASS_SYSTEM , + .memory_instance =0 , + }; +struct drm_i915_gem_memory_class_instance region_invalid = { + .memory_class =-1 , + .memory_instance =-1 , + }; +uint64_t size; +uint32_t handle; +int i; + + regions =gem_get_query_memory_regions (fd); +igt_assert (regions); +igt_assert (regions->num_regions); + +/* +* extensions should be optional, giving us the normal gem_create +* behaviour. +*/ + size =PAGE_SIZE ; +igt_assert_eq (__gem_create_ext (fd, &size, &handle,0 ),0 ); +gem_close (fd, handle); + +/* Try some uncreative invalid combinations */ + setparam_region.regions =to_user_pointer (®ion_smem); + setparam_region.num_regions =0 ; + size =PAGE_SIZE ; +igt_assert_neq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); + + setparam_region.regions =to_user_pointer (®ion_smem); + setparam_region.num_regions = regions->num_regions +1 ; + size =PAGE_SIZE ; +igt_assert_neq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); + + setparam_region.regions =to_user_pointer (®ion_smem); + setparam_region.num_regions =-1 ; + size =PAGE_SIZE ; +igt_assert_neq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); + + setparam_region.regions =to_user_pointer (®ion_invalid); + setparam_region.num_regions =1 ; + size =PAGE_SIZE ; +igt_assert_neq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); + + setparam_region.regions =to_user_pointer (®ion_invalid); + setparam_region.num_regions =0 ; + size =PAGE_SIZE ; +igt_assert_neq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); + + uregions =calloc (regions->num_regions +1 ,sizeof (uint32_t )); + +for (i =0 ; i < regions->num_regions; i++) + uregions[i] = regions->regions[i].region; + + setparam_region.regions =to_user_pointer (uregions); + setparam_region.num_regions = regions->num_regions +1 ; + size =PAGE_SIZE ; +igt_assert_neq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); + +if (regions->num_regions >1 ) { +for (i =0 ; i < regions->num_regions; i++) { +struct drm_i915_gem_memory_class_instance dups[] = { + regions->regions[i].region, + regions->regions[i].region, + }; + + setparam_region.regions =to_user_pointer (dups); + setparam_region.num_regions =2 ; + size =PAGE_SIZE ; +igt_assert_neq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); + } + } + + uregions[rand () % regions->num_regions].memory_class =-1 ; + uregions[rand () % regions->num_regions].memory_instance =-1 ; + setparam_region.regions =to_user_pointer (uregions); + setparam_region.num_regions = regions->num_regions; + size =PAGE_SIZE ; +igt_assert_neq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); + +free (uregions); + + { +struct drm_i915_gem_create_ext_memory_regions setparam_region_next; + + setparam_region.regions =to_user_pointer (®ion_smem); + setparam_region.num_regions =1 ; + + setparam_region_next = setparam_region; + setparam_region.base.next_extension = +to_user_pointer (&setparam_region_next); + + size =PAGE_SIZE ; +igt_assert_neq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); + setparam_region.base.next_extension =0 ; + } + +free (regions); +} + +static void create_ext_placement_all (int fd) +{ +struct drm_i915_query_memory_regions *regions; +struct drm_i915_gem_create_ext_memory_regions setparam_region = { + .base = { .name =I915_GEM_CREATE_EXT_MEMORY_REGIONS }, + }; +struct drm_i915_gem_memory_class_instance *uregions; +uint64_t size; +uint32_t handle; +int i; + + regions =gem_get_query_memory_regions (fd); +igt_assert (regions); +igt_assert (regions->num_regions); + + uregions =calloc (regions->num_regions,sizeof (*uregions)); + +for (i =0 ; i < regions->num_regions; i++) + uregions[i] = regions->regions[i].region; + + setparam_region.regions =to_user_pointer (uregions); + setparam_region.num_regions = regions->num_regions; + + size =PAGE_SIZE ; +igt_assert_eq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); +gem_close (fd, handle); +free (uregions); +free (regions); +} + +static void create_ext_placement_each (int fd) +{ +struct drm_i915_query_memory_regions *regions; +struct drm_i915_gem_create_ext_memory_regions setparam_region = { + .base = { .name =I915_GEM_CREATE_EXT_MEMORY_REGIONS }, + }; +int i; + + regions =gem_get_query_memory_regions (fd); +igt_assert (regions); +igt_assert (regions->num_regions); + +for (i =0 ; i < regions->num_regions; i++) { +struct drm_i915_gem_memory_class_instance region = + regions->regions[i].region; +uint64_t size; +uint32_t handle; + + setparam_region.regions =to_user_pointer (®ion); + setparam_region.num_regions =1 ; + + size =PAGE_SIZE ; +igt_assert_eq (__gem_create_ext (fd, &size, &handle, + &setparam_region.base),0 ); +gem_close (fd, handle); + } + +free (regions); +} + igt_main {int fd =-1 ;
@@ -315,4 +493,14 @@ igt_main igt_subtest("busy-create")busy_create (fd,30 ); + + igt_subtest("create-ext-placement-sanity-check") +create_ext_placement_sanity_check (fd); + + igt_subtest("create-ext-placement-each") +create_ext_placement_each (fd); + + igt_subtest("create-ext-placement-all") +create_ext_placement_all (fd); + }
Signature · 6 lines
2.26.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 9/9 tests/i915/gem_exec_basic: Iterate over all memory regions
In reply to Matthew AuldFrom: "Kalamarz, Lukasz" <[email protected]>
As a part of local memory effort we need to make sure, that every available memory region is covered. This patch is an attempt for this problem. If it will be accepted it will be replicated on each test that can actually benefit from it.
--- tests/i915/gem_exec_basic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tests/i915/gem_exec_basic.c +2 -1
@@ -56,7 +56,8 @@ igt_mainigt_assert (query_info); set =get_memory_region_set (query_info, -I915_SYSTEM_MEMORY ); +I915_SYSTEM_MEMORY , +I915_DEVICE_MEMORY ); } igt_subtest_with_dynamic("basic") {
Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for DG1/LMEM uAPI basics (rev2)
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: DG1/LMEM uAPI basics (rev2)
URL : https://patchwork.freedesktop.org/series/90038/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10102 -> IGTPW_5825
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/index.html
New tests
---------
New tests have been introduced between CI_DRM_10102 and IGTPW_5825:
### New IGT tests (5) ###
* igt@gem_exec_basic@basic@bcs0-smem:
- Statuses : 30 pass(s)
- Exec time: [0.0, 0.01] s
* igt@gem_exec_basic@basic@rcs0-smem:
- Statuses : 34 pass(s)
- Exec time: [0.0, 0.01] s
* igt@gem_exec_basic@basic@vcs0-smem:
- Statuses : 32 pass(s)
- Exec time: [0.0, 0.00] s
* igt@gem_exec_basic@basic@vcs1-smem:
- Statuses : 7 pass(s)
- Exec time: [0.0, 0.00] s
* igt@gem_exec_basic@basic@vecs0-smem:
- Statuses : 27 pass(s)
- Exec time: [0.0, 0.00] s
Known issues
------------
Here are the changes found in IGTPW_5825 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@core_hotunplug@unbind-rebind:
- fi-bdw-5557u: NOTRUN -> [WARN][1] ([i915#2283])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bdw-5557u/igt@[email protected]
* igt@gem_exec_fence@basic-await@bcs0:
- fi-bsw-n3050: [PASS][2] -> [FAIL][3] ([i915#3457])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@bcs0:
- fi-bsw-nick: [PASS][4] -> [FAIL][5] ([i915#3457]) +1 similar issue
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bsw-nick/igt@gem_exec_fence@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bsw-nick/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@rcs0:
- fi-elk-e7500: [PASS][6] -> [FAIL][7] ([i915#3457])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-elk-e7500/igt@gem_exec_fence@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-elk-e7500/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@vcs0:
- fi-bsw-kefka: [PASS][8] -> [FAIL][9] ([i915#3457]) +2 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@vecs0:
- fi-glk-dsi: [PASS][10] -> [FAIL][11] ([i915#3457])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-glk-dsi/igt@gem_exec_fence@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-glk-dsi/igt@gem_exec_fence@[email protected]
* igt@gem_wait@busy@all:
- fi-pnv-d510: [PASS][12] -> [FAIL][13] ([i915#3457])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-pnv-d510/igt@gem_wait@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-pnv-d510/igt@gem_wait@[email protected]
* igt@i915_selftest@live@execlists:
- fi-bdw-5557u: NOTRUN -> [DMESG-FAIL][14] ([i915#3462])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bdw-5557u/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@mman:
- fi-bdw-5557u: NOTRUN -> [DMESG-WARN][15] ([i915#3457]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bdw-5557u/igt@i915_selftest@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-bdw-5557u: NOTRUN -> [SKIP][16] ([fdo#109271] / [fdo#111827]) +8 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bdw-5557u/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
- fi-ilk-650: [PASS][17] -> [FAIL][18] ([i915#53]) +6 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-ilk-650/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-ilk-650/igt@[email protected]
- fi-elk-e7500: [PASS][19] -> [FAIL][20] ([i915#53]) +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-elk-e7500/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-elk-e7500/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- fi-bwr-2160: [PASS][21] -> [FAIL][22] ([i915#53])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bwr-2160/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bwr-2160/igt@[email protected]
* igt@kms_psr@cursor_plane_move:
- fi-bdw-5557u: NOTRUN -> [SKIP][23] ([fdo#109271]) +9 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bdw-5557u/igt@kms_psr@cursor_plane_move.html
#### Possible fixes ####
* igt@gem_exec_fence@basic-await@rcs0:
- fi-bsw-n3050: [FAIL][24] ([i915#3457]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bsw-n3050/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@bcs0:
- fi-bsw-kefka: [FAIL][26] ([i915#3457]) -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bsw-kefka/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@nb-await@vcs0:
- fi-bsw-nick: [FAIL][28] ([i915#3457]) -> [PASS][29] +1 similar issue
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bsw-nick/igt@gem_exec_fence@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bsw-nick/igt@gem_exec_fence@[email protected]
* igt@gem_wait@busy@all:
- fi-bsw-kefka: [FAIL][30] ([i915#3177] / [i915#3457]) -> [PASS][31]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bsw-kefka/igt@gem_wait@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bsw-kefka/igt@gem_wait@[email protected]
* igt@gem_wait@wait@all:
- fi-bwr-2160: [FAIL][32] ([i915#3457]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bwr-2160/igt@gem_wait@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bwr-2160/igt@gem_wait@[email protected]
* igt@kms_busy@basic@modeset:
- fi-ilk-650: [INCOMPLETE][34] ([i915#3457]) -> [PASS][35]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-ilk-650/igt@kms_busy@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-ilk-650/igt@kms_busy@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: [DMESG-WARN][36] ([i915#2868]) -> [PASS][37]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-icl-u2/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-icl-u2/igt@[email protected]
#### Warnings ####
* igt@gem_exec_gttfill@basic:
- fi-ilk-650: [FAIL][38] ([i915#3472]) -> [FAIL][39] ([i915#3457] / [i915#3472])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-ilk-650/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-ilk-650/igt@[email protected]
* igt@i915_module_load@reload:
- fi-elk-e7500: [DMESG-WARN][40] ([i915#3457]) -> [DMESG-FAIL][41] ([i915#3457])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-elk-e7500/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-elk-e7500/igt@[email protected]
- fi-bsw-nick: [DMESG-WARN][42] ([i915#3457]) -> [DMESG-FAIL][43] ([i915#3457])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bsw-nick/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bsw-nick/igt@[email protected]
* igt@i915_selftest@live@execlists:
- fi-icl-u2: [INCOMPLETE][44] ([i915#2782] / [i915#3462]) -> [DMESG-FAIL][45] ([i915#3462])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-icl-u2/igt@i915_selftest@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-icl-u2/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@mman:
- fi-bwr-2160: [DMESG-WARN][46] ([i915#3457]) -> [DMESG-FAIL][47] ([i915#3457])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bwr-2160/igt@i915_selftest@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bwr-2160/igt@i915_selftest@[email protected]
* igt@runner@aborted:
- fi-icl-u2: [FAIL][48] ([i915#2782] / [i915#3363]) -> [FAIL][49] ([i915#2426] / [i915#2782] / [i915#3363])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-icl-u2/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-icl-u2/igt@[email protected]
- fi-glk-dsi: [FAIL][50] ([i915#2426] / [i915#3363] / [k.org#202321]) -> [FAIL][51] ([i915#3363] / [k.org#202321])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-glk-dsi/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-glk-dsi/igt@[email protected]
- fi-bdw-5557u: [FAIL][52] ([i915#1602] / [i915#2029]) -> [FAIL][53] ([i915#3462])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-bdw-5557u/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-bdw-5557u/igt@[email protected]
- fi-cml-u2: [FAIL][54] ([i915#3363]) -> [FAIL][55] ([i915#2082] / [i915#2426] / [i915#3363])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-cml-u2/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-cml-u2/igt@[email protected]
- fi-skl-6700k2: [FAIL][56] ([i915#1436] / [i915#3363]) -> [FAIL][57] ([i915#1436] / [i915#2426] / [i915#3363])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/fi-skl-6700k2/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/fi-skl-6700k2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1602]: https://gitlab.freedesktop.org/drm/intel/issues/1602
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2029]: https://gitlab.freedesktop.org/drm/intel/issues/2029
[i915#2082]: https://gitlab.freedesktop.org/drm/intel/issues/2082
[i915#2283]: https://gitlab.freedesktop.org/drm/intel/issues/2283
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#2868]: https://gitlab.freedesktop.org/drm/intel/issues/2868
[i915#2932]: https://gitlab.freedesktop.org/drm/intel/issues/2932
[i915#2966]: https://gitlab.freedesktop.org/drm/intel/issues/2966
[i915#3177]: https://gitlab.freedesktop.org/drm/intel/issues/3177
[i915#3363]: https://gitlab.freedesktop.org/drm/intel/issues/3363
[i915#3457]: https://gitlab.freedesktop.org/drm/intel/issues/3457
[i915#3462]: https://gitlab.freedesktop.org/drm/intel/issues/3462
[i915#3472]: https://gitlab.freedesktop.org/drm/intel/issues/3472
[i915#53]: https://gitlab.freedesktop.org/drm/intel/issues/53
[k.org#202321]: https://bugzilla.kernel.org/show_bug.cgi?id=202321
Participating hosts (44 -> 36)
------------------------------
Missing (8): fi-kbl-soraka fi-rkl-11500t fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-ctg-p8600 fi-dg1-1 fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6088 -> IGTPW_5825
CI-20190529: 20190529
CI_DRM_10102: 085271acf13cb1943cbe359fdde2c35ec28f4963 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_5825: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/index.html
IGT_6088: 2c1e9a30f17944d75640a43d3b8c2124b035de1c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@gem_create@create-ext-placement-all
+igt@gem_create@create-ext-placement-each
+igt@gem_create@create-ext-placement-sanity-check
+igt@gem_gpgpu_fill@basic
+igt@gem_media_fill@media-fill
-igt@gem_gpgpu_fill
-igt@gem_media_fill
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for DG1/LMEM uAPI basics (rev2)
In reply to Matthew Auld== Series Details ==
== Series Details ==
Series: DG1/LMEM uAPI basics (rev2)
URL : https://patchwork.freedesktop.org/series/90038/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10102_full -> IGTPW_5825_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_5825_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_5825_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_5825/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_5825_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_mmap_write_crc@main:
- shard-glk: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk6/igt@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_10102_full and IGTPW_5825_full:
### New IGT tests (6) ###
* igt@gem_create@create-ext-placement-all:
- Statuses : 3 pass(s)
- Exec time: [0.0] s
* igt@gem_create@create-ext-placement-each:
- Statuses : 4 pass(s)
- Exec time: [0.0] s
* igt@gem_create@create-ext-placement-sanity-check:
- Statuses : 5 pass(s)
- Exec time: [0.00, 0.01] s
* igt@gem_gpgpu_fill@basic:
- Statuses :
- Exec time: [None] s
* igt@gem_media_fill@media-fill:
- Statuses : 1 skip(s)
- Exec time: [0.0] s
* igt@gem_media_fill@media-fill@smem:
- Statuses : 4 pass(s)
- Exec time: [0.00, 0.01] s
Known issues
------------
Here are the changes found in IGTPW_5825_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@api_intel_bb@blit-reloc-purge-cache:
- shard-glk: NOTRUN -> [DMESG-WARN][2] ([i915#3457]) +2 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk5/igt@[email protected]
* igt@feature_discovery@psr2:
- shard-iclb: NOTRUN -> [SKIP][3] ([i915#658]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb3/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@bcs0:
- shard-kbl: NOTRUN -> [DMESG-WARN][4] ([i915#180] / [i915#3457]) +3 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl3/igt@gem_ctx_isolation@[email protected]
* igt@gem_ctx_persistence@engines-mixed-process:
- shard-snb: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#1099]) +2 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-snb5/igt@[email protected]
* igt@gem_ctx_persistence@smoketest:
- shard-glk: NOTRUN -> [FAIL][6] ([i915#2896] / [i915#3457])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk3/igt@[email protected]
* igt@gem_ctx_sseu@mmap-args:
- shard-tglb: NOTRUN -> [SKIP][7] ([i915#280])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb2/igt@[email protected]
* igt@gem_exec_balancer@bonded-dual:
- shard-tglb: [PASS][8] -> [INCOMPLETE][9] ([i915#3457])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-tglb6/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb6/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-kbl: [PASS][10] -> [FAIL][11] ([i915#2846] / [i915#3457])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-kbl2/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl7/igt@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-iclb: [PASS][12] -> [FAIL][13] ([i915#2842] / [i915#3457])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-iclb6/igt@gem_exec_fair@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fence@keep-in-fence@rcs0:
- shard-glk: NOTRUN -> [INCOMPLETE][14] ([i915#3457])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk7/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@parallel@vcs0:
- shard-glk: NOTRUN -> [FAIL][15] ([i915#3457]) +42 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk6/igt@gem_exec_fence@[email protected]
* igt@gem_exec_params@no-blt:
- shard-tglb: NOTRUN -> [SKIP][16] ([fdo#109283]) +1 similar issue
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][17] ([fdo#109283]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb3/igt@[email protected]
* igt@gem_exec_reloc@basic-wide-active@bcs0:
- shard-tglb: NOTRUN -> [FAIL][18] ([i915#2389] / [i915#3457]) +4 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb8/igt@gem_exec_reloc@[email protected]
* igt@gem_exec_whisper@basic-queues-all:
- shard-glk: [PASS][19] -> [DMESG-WARN][20] ([i915#118] / [i915#95]) +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-glk8/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk3/igt@[email protected]
* igt@gem_media_vme:
- shard-tglb: NOTRUN -> [SKIP][21] ([i915#284])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb6/igt@gem_media_vme.html
* igt@gem_mmap_gtt@cpuset-basic-small-copy-odd:
- shard-snb: NOTRUN -> [INCOMPLETE][22] ([i915#3468]) +2 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-snb5/igt@[email protected]
- shard-iclb: [PASS][23] -> [INCOMPLETE][24] ([i915#2910] / [i915#3468])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-iclb5/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb3/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-basic-small-copy-xy:
- shard-iclb: [PASS][25] -> [INCOMPLETE][26] ([i915#3468])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-iclb3/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb5/igt@[email protected]
* igt@gem_mmap_gtt@fault-concurrent-x:
- shard-snb: NOTRUN -> [INCOMPLETE][27] ([i915#3468] / [i915#3485])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-snb2/igt@[email protected]
* igt@gem_render_copy@y-tiled-to-vebox-linear:
- shard-iclb: NOTRUN -> [SKIP][28] ([i915#768]) +2 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb1/igt@[email protected]
* igt@gem_render_copy@yf-tiled-ccs-to-linear:
- shard-iclb: NOTRUN -> [INCOMPLETE][29] ([i915#3468]) +2 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb6/igt@[email protected]
- shard-tglb: NOTRUN -> [INCOMPLETE][30] ([i915#3468]) +2 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb8/igt@[email protected]
* igt@gem_render_copy@yf-tiled-ccs-to-x-tiled:
- shard-apl: NOTRUN -> [INCOMPLETE][31] ([i915#3468]) +3 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-apl6/igt@[email protected]
- shard-iclb: NOTRUN -> [INCOMPLETE][32] ([i915#1895] / [i915#3468])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb1/igt@[email protected]
* igt@gem_render_copy@yf-tiled-ccs-to-yf-tiled-ccs:
- shard-glk: NOTRUN -> [INCOMPLETE][33] ([i915#3468]) +2 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk7/igt@[email protected]
* igt@gem_userptr_blits@create-destroy-unsync:
- shard-tglb: NOTRUN -> [SKIP][34] ([i915#3297])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb2/igt@[email protected]
* igt@gem_userptr_blits@set-cache-level:
- shard-kbl: NOTRUN -> [FAIL][35] ([i915#3324])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl3/igt@[email protected]
- shard-tglb: NOTRUN -> [FAIL][36] ([i915#3324])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [FAIL][37] ([i915#3324])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb6/igt@[email protected]
- shard-glk: NOTRUN -> [FAIL][38] ([i915#3324])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk4/igt@[email protected]
* igt@gem_wait@write-busy@bcs0:
- shard-apl: NOTRUN -> [FAIL][39] ([i915#3457]) +2 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-apl7/igt@gem_wait@[email protected]
* igt@gem_workarounds@suspend-resume:
- shard-kbl: [PASS][40] -> [DMESG-WARN][41] ([i915#180] / [i915#3457])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-kbl7/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl1/igt@[email protected]
* igt@gen9_exec_parse@bb-large:
- shard-tglb: NOTRUN -> [SKIP][42] ([i915#2527])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb5/igt@[email protected]
- shard-glk: NOTRUN -> [FAIL][43] ([i915#3296])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk2/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][44] ([i915#3296])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl1/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][45] ([i915#2527])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb1/igt@[email protected]
* igt@gen9_exec_parse@bb-start-cmd:
- shard-tglb: NOTRUN -> [SKIP][46] ([fdo#112306]) +5 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb6/igt@[email protected]
* igt@gen9_exec_parse@unaligned-access:
- shard-iclb: NOTRUN -> [SKIP][47] ([fdo#112306]) +5 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb6/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-kbl: NOTRUN -> [FAIL][48] ([i915#454])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl4/igt@[email protected]
- shard-tglb: NOTRUN -> [FAIL][49] ([i915#454])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb2/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-tglb: NOTRUN -> [DMESG-WARN][50] ([i915#3457]) +2 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb8/igt@[email protected]
- shard-iclb: NOTRUN -> [DMESG-WARN][51] ([i915#3457]) +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb5/igt@[email protected]
* igt@i915_pm_rpm@gem-mmap-type@uc:
- shard-tglb: NOTRUN -> [DMESG-WARN][52] ([i915#2411])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb5/igt@i915_pm_rpm@[email protected]
- shard-kbl: NOTRUN -> [DMESG-WARN][53] ([i915#3475])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl3/igt@i915_pm_rpm@[email protected]
* igt@i915_pm_rpm@gem-mmap-type@wc:
- shard-tglb: NOTRUN -> [DMESG-WARN][54] ([i915#2411] / [i915#3457])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb5/igt@i915_pm_rpm@[email protected]
* igt@i915_pm_rpm@modeset-non-lpsp:
- shard-tglb: NOTRUN -> [SKIP][55] ([fdo#111644] / [i915#1397] / [i915#2411])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb1/igt@[email protected]
* igt@i915_pm_rps@reset:
- shard-glk: NOTRUN -> [DMESG-FAIL][56] ([i915#3457])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk8/igt@[email protected]
* igt@i915_pm_rps@waitboost:
- shard-snb: NOTRUN -> [DMESG-WARN][57] ([i915#3457])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-snb7/igt@[email protected]
* igt@i915_pm_sseu@full-enable:
- shard-apl: NOTRUN -> [DMESG-WARN][58] ([i915#3457])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-apl7/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][59] ([fdo#109288])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb6/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109288])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb1/igt@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-kbl: NOTRUN -> [DMESG-WARN][61] ([i915#180])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl1/igt@[email protected]
* igt@kms_big_fb@linear-16bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][62] ([fdo#110725] / [fdo#111614]) +3 similar issues
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb8/igt@[email protected]
* igt@kms_big_fb@x-tiled-16bpp-rotate-90:
- shard-tglb: NOTRUN -> [SKIP][63] ([fdo#111614]) +3 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb5/igt@[email protected]
* igt@kms_big_fb@yf-tiled-8bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][64] ([fdo#110723])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb1/igt@[email protected]
* igt@kms_big_fb@yf-tiled-addfb:
- shard-tglb: NOTRUN -> [SKIP][65] ([fdo#111615]) +5 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb2/igt@[email protected]
* igt@kms_big_joiner@basic:
- shard-kbl: NOTRUN -> [SKIP][66] ([fdo#109271] / [i915#2705])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl3/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][67] ([i915#2705])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb3/igt@[email protected]
* igt@kms_chamelium@dp-frame-dump:
- shard-iclb: NOTRUN -> [SKIP][68] ([fdo#109284] / [fdo#111827]) +12 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb5/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][69] ([fdo#109271] / [fdo#111827]) +23 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk7/igt@[email protected]
* igt@kms_color@pipe-a-degamma:
- shard-tglb: NOTRUN -> [FAIL][70] ([i915#1149])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb6/igt@[email protected]
- shard-iclb: NOTRUN -> [FAIL][71] ([i915#1149])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb1/igt@[email protected]
* igt@kms_color@pipe-c-gamma:
- shard-glk: NOTRUN -> [FAIL][72] ([i915#71]) +1 similar issue
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk8/igt@[email protected]
* igt@kms_color@pipe-d-ctm-max:
- shard-iclb: NOTRUN -> [SKIP][73] ([fdo#109278] / [i915#1149]) +1 similar issue
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-0-25:
- shard-snb: NOTRUN -> [SKIP][74] ([fdo#109271] / [fdo#111827]) +10 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-snb2/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-0-75:
- shard-kbl: NOTRUN -> [SKIP][75] ([fdo#109271] / [fdo#111827]) +17 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl3/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-limited-range:
- shard-apl: NOTRUN -> [SKIP][76] ([fdo#109271] / [fdo#111827]) +6 similar issues
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-apl6/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-red-to-blue:
- shard-tglb: NOTRUN -> [SKIP][77] ([fdo#109284] / [fdo#111827]) +23 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb5/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-gamma:
- shard-iclb: NOTRUN -> [SKIP][78] ([fdo#109278] / [fdo#109284] / [fdo#111827]) +2 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb8/igt@[email protected]
* igt@kms_content_protection@dp-mst-lic-type-1:
- shard-tglb: NOTRUN -> [SKIP][79] ([i915#3116]) +1 similar issue
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb8/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-1:
- shard-iclb: NOTRUN -> [SKIP][80] ([i915#3116])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb5/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-tglb: NOTRUN -> [SKIP][81] ([fdo#111828]) +1 similar issue
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb8/igt@[email protected]
- shard-kbl: NOTRUN -> [TIMEOUT][82] ([i915#1319])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-128x128-sliding:
- shard-glk: NOTRUN -> [FAIL][83] ([i915#3444] / [i915#3457]) +17 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-512x512-sliding:
- shard-iclb: NOTRUN -> [SKIP][84] ([fdo#109278] / [fdo#109279] / [i915#3457]) +4 similar issues
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-64x64-onscreen:
- shard-kbl: NOTRUN -> [FAIL][85] ([i915#3444] / [i915#3457]) +13 similar issues
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl4/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-max-size-onscreen:
- shard-kbl: NOTRUN -> [SKIP][86] ([fdo#109271] / [i915#3457]) +28 similar issues
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-max-size-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][87] ([i915#3359] / [i915#3457]) +11 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb8/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-size-change:
- shard-snb: NOTRUN -> [FAIL][88] ([i915#3457]) +4 similar issues
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-snb2/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-32x32-onscreen:
- shard-tglb: NOTRUN -> [SKIP][89] ([i915#3319] / [i915#3457]) +2 similar issues
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb6/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-256x85-random:
- shard-iclb: NOTRUN -> [FAIL][90] ([i915#3457]) +8 similar issues
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb6/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-512x170-offscreen:
- shard-snb: NOTRUN -> [SKIP][91] ([fdo#109271] / [i915#3457]) +29 similar issues
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-snb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-dpms:
- shard-glk: [PASS][92] -> [FAIL][93] ([i915#3444] / [i915#3457]) +8 similar issues
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-glk5/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk7/igt@[email protected]
- shard-iclb: [PASS][94] -> [FAIL][95] ([i915#3457]) +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-iclb3/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb3/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-size-change:
- shard-apl: NOTRUN -> [FAIL][96] ([i915#3444] / [i915#3457]) +1 similar issue
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-apl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-128x42-sliding:
- shard-tglb: NOTRUN -> [FAIL][97] ([i915#2124] / [i915#3457]) +18 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb2/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-32x10-offscreen:
- shard-iclb: NOTRUN -> [SKIP][98] ([fdo#109278] / [i915#3457]) +15 similar issues
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb5/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][99] ([fdo#109271] / [i915#3457]) +32 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk1/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-512x512-offscreen:
- shard-tglb: NOTRUN -> [SKIP][100] ([fdo#109279] / [i915#3359] / [i915#3457]) +9 similar issues
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb5/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-64x64-sliding:
- shard-apl: NOTRUN -> [SKIP][101] ([fdo#109271] / [i915#3457]) +17 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-apl7/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-c-256x256-right-edge:
- shard-glk: NOTRUN -> [FAIL][102] ([i915#70]) +1 similar issue
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk6/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-d-256x256-left-edge:
- shard-iclb: NOTRUN -> [SKIP][103] ([fdo#109278]) +18 similar issues
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb3/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-d-64x64-left-edge:
- shard-kbl: NOTRUN -> [SKIP][104] ([fdo#109271]) +169 similar issues
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl4/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
- shard-iclb: NOTRUN -> [SKIP][105] ([fdo#109274] / [fdo#109278]) +4 similar issues
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb5/igt@[email protected]
* igt@kms_cursor_legacy@pipe-d-single-bo:
- shard-glk: NOTRUN -> [SKIP][106] ([fdo#109271] / [i915#533]) +2 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk7/igt@[email protected]
* igt@kms_cursor_legacy@pipe-d-torture-bo:
- shard-apl: NOTRUN -> [SKIP][107] ([fdo#109271] / [i915#533]) +2 similar issues
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-apl7/igt@[email protected]
* igt@kms_flip@2x-flip-vs-suspend:
- shard-iclb: NOTRUN -> [SKIP][108] ([fdo#109274]) +3 similar issues
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb5/igt@[email protected]
* igt@kms_flip@2x-plain-flip-ts-check:
- shard-tglb: NOTRUN -> [SKIP][109] ([fdo#111825]) +66 similar issues
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb8/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs:
- shard-tglb: NOTRUN -> [SKIP][110] ([i915#2587])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb2/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-kbl: NOTRUN -> [SKIP][111] ([fdo#109271] / [i915#2672])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-kbl4/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
- shard-glk: NOTRUN -> [SKIP][112] ([fdo#109271] / [i915#2672])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk8/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
- shard-iclb: NOTRUN -> [SKIP][113] ([i915#2587])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb8/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
* igt@kms_force_connector_basic@force-load-detect:
- shard-iclb: NOTRUN -> [SKIP][114] ([fdo#109285])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb6/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][115] ([fdo#109285])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite:
- shard-snb: NOTRUN -> [SKIP][116] ([fdo#109271]) +196 similar issues
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-snb5/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-mmap-cpu:
- shard-iclb: NOTRUN -> [SKIP][117] ([fdo#109280]) +35 similar issues
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb8/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-mmap-cpu.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-render:
- shard-glk: NOTRUN -> [SKIP][118] ([fdo#109271]) +159 similar issues
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk2/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-render.html
* igt@kms_invalid_dotclock:
- shard-tglb: NOTRUN -> [SKIP][119] ([fdo#110577])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-tglb2/igt@kms_invalid_dotclock.html
- shard-iclb: NOTRUN -> [SKIP][120] ([fdo#109310])
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb1/igt@kms_invalid_dotclock.html
* igt@kms_pipe_b_c_ivb@disable-pipe-b-enable-pipe-c:
- shard-apl: NOTRUN -> [SKIP][121] ([fdo#109271]) +85 similar issues
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-apl6/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][122] ([fdo#109289]) +3 similar issues
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-iclb8/igt@[email protected]
* igt@kms_pipe_crc_basic@disable-crc-after-crtc-pipe-a:
- shard-glk: [PASS][123] -> [FAIL][124] ([i915#2472])
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-glk4/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk8/igt@[email protected]
* igt@kms_pipe_crc_basic@disable-crc-after-crtc-pipe-b:
- shard-glk: [PASS][125] -> [FAIL][126] ([i915#3192])
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10102/shard-glk5/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk7/igt@[email protected]
* igt@kms_pipe_crc_basic@hang-read-crc-pipe-c:
- shard-glk: NOTRUN -> [FAIL][127] ([i915#53]) +1 similar issue
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/shard-glk6/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-b-frame-sequence:
- shard-glk:
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5825/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 178 lines · Matthew Auld
Just the really basic stuff, which unlocks adding more interesting testcases later, like
gem_lmem_swapping.On the kernel side we landed the uAPI bits[1] behind
CONFIG_BROKEN, which is already enabled in CI builds, so it should be possible to get some more BAT testing(outside of just the selftests) on DG1 to the point where we can start to exercise the LMEM paths with the new bits of uAPI.[1] https://patchwork.freedesktop.org/series/89648/
v2:(Petri)
- add missing kernel sha fori915_drm.hsync
- squash the various region lib patches together
- just directly use the uapi bits from the start, instead of adding a bunch of locals, which then later get removed anywayAndrzej Turko (5):
lib/i915/gem_create: Addgem_create_extlib/i915/intel_memory_region: Add new memory region lib tests/i915/gem_exec_basic: Use memory region interface tests/i915/gem_gpgpu_fill: Use memory region interface tests/i915/gem_media_fill: Use memory region interfaceDominik Grzegorzek (1):
tests/gem_gpgpu_fill: Convert from simple to standardigt_mainKalamarz, Lukasz (1):
tests/i915/gem_exec_basic: Iterate over all memory regionsMatthew Auld (2):
i915_drm.hsync
tests/i915/gem_create: exercise placements extensionbenchmarks/gem_blt.c | 2 +- benchmarks/gem_busy.c | 2 +- benchmarks/gem_create.c | 2 +- benchmarks/gem_exec_ctx.c | 2 +- benchmarks/gem_exec_fault.c | 2 +- benchmarks/gem_exec_nop.c | 2 +- benchmarks/gem_exec_reloc.c | 2 +- benchmarks/gem_exec_trace.c | 2 +- benchmarks/gem_latency.c | 2 +- benchmarks/gem_prw.c | 2 +- benchmarks/gem_set_domain.c | 2 +- benchmarks/gem_syslatency.c | 2 +- benchmarks/gem_wsim.c | 2 +- benchmarks/prime_lookup.c | 2 +- include/drm-uapi/i915_drm.h | 394 +++++++++++++++++++-- lib/i915/gem.h | 3 - lib/i915/gem_create.c | 43 ++- lib/i915/gem_create.h | 19 + lib/i915/gem_mman.c | 2 +- lib/i915/gem_ring.c | 1 + lib/i915/gem_submission.c | 1 + lib/i915/intel_memory_region.c | 441 ++++++++++++++++++++++++ lib/i915/intel_memory_region.h | 130 +++++++ lib/igt_draw.c | 2 +- lib/igt_dummyload.c | 2 +- lib/igt_fb.c | 2 +- lib/intel_batchbuffer.c | 2 +- lib/intel_bufops.c | 2 +- lib/ioctl_wrappers.c | 2 +- lib/ioctl_wrappers.h | 1 + lib/meson.build | 1 + tests/amdgpu/amd_prime.c | 1 + tests/core_hotunplug.c | 1 + tests/i915/api_intel_allocator.c | 1 + tests/i915/api_intel_bb.c | 1 + tests/i915/gem_bad_reloc.c | 1 + tests/i915/gem_basic.c | 2 +- tests/i915/gem_blits.c | 1 + tests/i915/gem_busy.c | 1 + tests/i915/gem_close.c | 1 + tests/i915/gem_close_race.c | 1 + tests/i915/gem_concurrent_all.c | 1 + tests/i915/gem_create.c | 189 ++++++++++ tests/i915/gem_cs_tlb.c | 1 + tests/i915/gem_ctx_clone.c | 1 + tests/i915/gem_ctx_create.c | 1 + tests/i915/gem_ctx_engines.c | 1 + tests/i915/gem_ctx_exec.c | 1 + tests/i915/gem_ctx_isolation.c | 1 + tests/i915/gem_ctx_param.c | 1 + tests/i915/gem_ctx_shared.c | 1 + tests/i915/gem_ctx_sseu.c | 1 + tests/i915/gem_ctx_switch.c | 1 + tests/i915/gem_eio.c | 1 + tests/i915/gem_evict_alignment.c | 1 + tests/i915/gem_evict_everything.c | 1 + tests/i915/gem_exec_alignment.c | 1 + tests/i915/gem_exec_async.c | 1 + tests/i915/gem_exec_await.c | 1 + tests/i915/gem_exec_balancer.c | 1 + tests/i915/gem_exec_basic.c | 53 ++- tests/i915/gem_exec_big.c | 1 + tests/i915/gem_exec_capture.c | 1 + tests/i915/gem_exec_create.c | 1 + tests/i915/gem_exec_endless.c | 1 + tests/i915/gem_exec_fair.c | 1 + tests/i915/gem_exec_fence.c | 1 + tests/i915/gem_exec_flush.c | 1 + tests/i915/gem_exec_gttfill.c | 1 + tests/i915/gem_exec_latency.c | 1 + tests/i915/gem_exec_lut_handle.c | 1 + tests/i915/gem_exec_nop.c | 1 + tests/i915/gem_exec_parallel.c | 1 + tests/i915/gem_exec_params.c | 1 + tests/i915/gem_exec_reloc.c | 1 + tests/i915/gem_exec_schedule.c | 1 + tests/i915/gem_exec_store.c | 1 + tests/i915/gem_exec_suspend.c | 1 + tests/i915/gem_exec_whisper.c | 1 + tests/i915/gem_fd_exhaustion.c | 2 +- tests/i915/gem_fence_thrash.c | 2 +- tests/i915/gem_fence_upload.c | 2 +- tests/i915/gem_fenced_exec_thrash.c | 1 + tests/i915/gem_flink_race.c | 2 +- tests/i915/gem_gpgpu_fill.c | 61 +++- tests/i915/gem_gtt_cpu_tlb.c | 2 +- tests/i915/gem_gtt_hog.c | 1 + tests/i915/gem_gtt_speed.c | 2 +- tests/i915/gem_huc_copy.c | 1 + tests/i915/gem_linear_blits.c | 1 + tests/i915/gem_lut_handle.c | 2 +- tests/i915/gem_madvise.c | 2 +- tests/i915/gem_media_fill.c | 57 ++- tests/i915/gem_mmap.c | 2 +- tests/i915/gem_mmap_gtt.c | 1 + tests/i915/gem_mmap_offset.c | 1 + tests/i915/gem_mmap_wc.c | 2 +- tests/i915/gem_ppgtt.c | 1 + tests/i915/gem_pread.c | 2 +- tests/i915/gem_pwrite.c | 2 +- tests/i915/gem_readwrite.c | 2 +- tests/i915/gem_reset_stats.c | 1 + tests/i915/gem_ringfill.c | 1 + tests/i915/gem_set_tiling_vs_gtt.c | 2 +- tests/i915/gem_set_tiling_vs_pwrite.c | 2 +- tests/i915/gem_shrink.c | 1 + tests/i915/gem_softpin.c | 1 + tests/i915/gem_streaming_writes.c | 1 + tests/i915/gem_sync.c | 1 + tests/i915/gem_tiled_fence_blits.c | 1 + tests/i915/gem_tiled_pread_basic.c | 2 +- tests/i915/gem_tiled_pread_pwrite.c | 2 +- tests/i915/gem_tiled_swapping.c | 2 +- tests/i915/gem_tiled_wb.c | 2 +- tests/i915/gem_tiled_wc.c | 2 +- tests/i915/gem_tiling_max_stride.c | 2 +- tests/i915/gem_unfence_active_buffers.c | 1 + tests/i915/gem_unref_active_buffers.c | 1 + tests/i915/gem_userptr_blits.c | 1 + tests/i915/gem_vm_create.c | 1 + tests/i915/gem_wait.c | 1 + tests/i915/gem_watchdog.c | 1 + tests/i915/gem_workarounds.c | 1 + tests/i915/gen3_mixed_blits.c | 1 + tests/i915/gen3_render_linear_blits.c | 1 + tests/i915/gen3_render_mixed_blits.c | 1 + tests/i915/gen3_render_tiledx_blits.c | 1 + tests/i915/gen3_render_tiledy_blits.c | 1 + tests/i915/gen7_exec_parse.c | 1 + tests/i915/gen9_exec_parse.c | 1 + tests/i915/i915_hangman.c | 1 + tests/i915/i915_module_load.c | 2 +- tests/i915/i915_pm_rc6_residency.c | 1 + tests/i915/i915_pm_rpm.c | 1 + tests/i915/i915_suspend.c | 1 + tests/i915/perf_pmu.c | 1 + tests/i915/sysfs_clients.c | 1 + tests/i915/sysfs_timeslice_duration.c | 1 + tests/kms_big_fb.c | 2 +- tests/kms_ccs.c | 2 +- tests/kms_flip.c | 2 +- tests/kms_frontbuffer_tracking.c | 1 + tests/kms_getfb.c | 2 +- tests/prime_busy.c | 1 + tests/prime_mmap.c | 2 +-
Quoted 8 lines
tests/prime_mmap_kms.c | 2 +- tests/prime_self_import.c | 2 +- tests/prime_vgem.c | 1 + tools/intel_reg.c | 2 +- 149 files changed, 1447 insertions(+), 134 deletions(-) create mode 100644 lib/i915/gem_create.h create mode 100644 lib/i915/intel_memory_region.c create mode 100644 lib/i915/intel_memory_region.h
Series is
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH i-g-t 6/9] tests/i915/gem_gpgpu_fill: Use memory region interface
In reply to Matthew AuldQuoted 9 lines · Matthew Auld
From: Andrzej Turko <[email protected]>
Converted the test
gem_gpgpu_fillto use memory region uapi.Signed-off-by Andrzej Turko <[email protected]>Cc Zbigniew Kempczynski <[email protected]>Cc Dominik Grzegorzek <[email protected]>Cc Petri Latvala <[email protected]>Signed-off-by Matthew Auld <[email protected]>
--
Zbigniew
Quoted 119 lines
--- tests/i915/gem_gpgpu_fill.c | 42 ++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 8 deletions(-)tests/i915/gem_gpgpu_fill.c +34
-8@@ -45,13 +45,14 @@#include "drm.h" #include "i915/gem.h" #include "igt.h" +#include "igt_collection.h" #include "intel_bufops.h" +#include "i915/intel_memory_region.h" #define WIDTH 64#define HEIGHT 64#define STRIDE (WIDTH)#define SIZE (HEIGHT*STRIDE) -#define COLOR_C4 0xc4#define COLOR_4C 0x4c@@ -62,10 +63,11 @@ typedef struct { } data_t;static struct intel_buf * -create_buf (data_t *data,int width,int height,uint8_t color) +create_buf (data_t *data,int width,int height,uint8_t color,uint32_t region) {struct intel_buf *buf;uint8_t *ptr; +uint32_t handle;int i; buf =calloc (1 ,sizeof (*buf));@@ -75,8 +77,10 @@ create_buf(data_t *data, int width, int height, uint8_t color)* Legacy code uses 32 bpp after buffer creation. * Let's do the same due to keep shader intact. */ -intel_buf_init (data->bops, buf, width/4 , height,32 ,0 , -I915_TILING_NONE ,0 ); + handle =gem_create_in_memory_regions (data->drm_fd,SIZE , region); +intel_buf_init_using_handle (data->bops, handle, buf, + width/4 , height,32 ,0 , +I915_TILING_NONE ,0 ); ptr =gem_mmap__cpu_coherent (data->drm_fd, buf->handle,0 , buf->surface[0 ].size,PROT_WRITE );@@ -99,15 +103,16 @@ static void buf_check(uint8_t *ptr, int x, int y, uint8_t color) color, val, x, y); } -static void gpgpu_fill (data_t *data,igt_fillfunc_t fill) +static void gpgpu_fill (data_t *data,igt_fillfunc_t fill,uint32_t region) {struct intel_buf *buf;uint8_t *ptr;int i, j; - buf =create_buf (data,WIDTH ,HEIGHT ,COLOR_C4 ); + buf =create_buf (data,WIDTH ,HEIGHT ,COLOR_C4 , region); ptr =gem_mmap__device_coherent (data->drm_fd, buf->handle,0 , buf->surface[0 ].size,PROT_READ ); +for (i =0 ; i <WIDTH ; i++)for (j =0 ; j <HEIGHT ; j++)buf_check (ptr, i, j,COLOR_C4 );@@ -123,10 +128,13 @@ static void gpgpu_fill(data_t *data, igt_fillfunc_t fill)munmap (ptr, buf->surface[0 ].size); } + igt_main {data_t data = {0 , };igt_fillfunc_t fill_fn =NULL ; +struct drm_i915_query_memory_regions *region_info; +struct igt_collection *region_set; igt_fixture { data.drm_fd =drm_open_driver_render (DRIVER_INTEL );@@ -138,12 +146,30 @@ igt_mainigt_require_f (fill_fn,"no gpgpu-fill function\n" ); + region_info =gem_get_query_memory_regions (data.drm_fd); +igt_assert (region_info); + + region_set =get_memory_region_set (region_info, +I915_SYSTEM_MEMORY ); } - igt_subtest("basic") -gpgpu_fill (&data, fill_fn); + igt_subtest_with_dynamic("basic") { +struct igt_collection *region; + +for_each_combination (region,1 , region_set) { +char *name =memregion_dynamic_subtest_name (region); +uint32_t id =igt_collection_get_value (region,0 ); + +igt_dynamic (name) + gpgpu_fill(&data, fill_fn, id); + +free (name); + } + } igt_fixture { +igt_collection_destroy (region_set); +free (region_info);buf_ops_destroy (data.bops); } }Signature · 1 line
2.26.3
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [igt-dev] [PATCH i-g-t 7/9] tests/i915/gem_media_fill: Use memory region interface
In reply to Matthew AuldQuoted 9 lines · Matthew Auld
From: Andrzej Turko <[email protected]>
Converted the test
gem_media_fillto use memory region uapi.Signed-off-by Andrzej Turko <[email protected]>Cc Zbigniew Kempczynski <[email protected]>Cc Dominik Grzegorzek <[email protected]>Cc Petri Latvala <[email protected]>Signed-off-by Matthew Auld <[email protected]>
--
Zbigniew
Quoted 112 lines
--- tests/i915/gem_media_fill.c | 57 ++++++++++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 13 deletions(-)tests/i915/gem_media_fill.c +44
-13@@ -64,21 +64,24 @@ typedef struct { } data_t;static struct intel_buf * -create_buf (data_t *data,int width,int height,uint8_t color) +create_buf (data_t *data,int width,int height,uint8_t color,uint32_t region) {struct intel_buf *buf; +uint32_t handle;uint8_t *ptr;int i; buf =calloc (1 ,sizeof (*buf));igt_assert (buf); + handle =gem_create_in_memory_regions (data->drm_fd,SIZE , region); +/* * Legacy code uses 32 bpp after buffer creation. * Let's do the same due to keep shader intact. */ -intel_buf_init (data->bops, buf, width/4 , height,32 ,0 , -I915_TILING_NONE ,0 ); +intel_buf_init_using_handle (data->bops, handle, buf, width/4 , + height,32 ,0 ,I915_TILING_NONE ,0 ); ptr =gem_mmap__cpu_coherent (data->drm_fd, buf->handle,0 , buf->surface[0 ].size,PROT_WRITE );@@ -101,13 +104,16 @@ static void buf_check(uint8_t *ptr, int x, int y, uint8_t color) color, val, x, y); } -static void media_fill (data_t *data,igt_fillfunc_t fill) +static void media_fill (data_t *data,igt_fillfunc_t fill, +struct igt_collection *memregion_set) {struct intel_buf *buf; +uint32_t region;uint8_t *ptr;int i, j; - buf =create_buf (data,WIDTH ,HEIGHT ,COLOR_C4 ); + region =igt_collection_get_value (memregion_set,0 ); + buf =create_buf (data,WIDTH ,HEIGHT ,COLOR_C4 , region); ptr =gem_mmap__device_coherent (data->drm_fd, buf->handle,0 , buf->surface[0 ].size,PROT_READ );for (i =0 ; i <WIDTH ; i++)@@ -126,20 +132,45 @@ static void media_fill(data_t *data, igt_fillfunc_t fill)munmap (ptr, buf->surface[0 ].size); } -igt_simple_main +igt_main {data_t data = {0 , };igt_fillfunc_t fill_fn =NULL ; +struct drm_i915_query_memory_regions *query_info; +struct igt_collection *set, *region_set; + + igt_fixture { + data.drm_fd =drm_open_driver_render (DRIVER_INTEL ); +igt_require_gem (data.drm_fd); + + data.devid =intel_get_drm_devid (data.drm_fd); + data.bops =buf_ops_create (data.drm_fd); + + fill_fn =igt_get_media_fillfunc (data.devid); + +igt_require_f (fill_fn,"no media-fill function\n" ); + + query_info =gem_get_query_memory_regions (data.drm_fd); +igt_assert (query_info); + + set =get_memory_region_set (query_info, +I915_SYSTEM_MEMORY ); - data.drm_fd =drm_open_driver_render (DRIVER_INTEL ); -igt_require_gem (data.drm_fd); +igt_fork_hang_detector (data.drm_fd); + } - data.devid =intel_get_drm_devid (data.drm_fd); - data.bops =buf_ops_create (data.drm_fd); + igt_subtest_with_dynamic("media-fill") +for_each_combination (region_set,1 , set) { +char *sub_name =memregion_dynamic_subtest_name (region_set); - fill_fn =igt_get_media_fillfunc (data.devid); + igt_dynamic_f("%s", sub_name) +media_fill (&data, fill_fn, region_set); -igt_require_f (fill_fn,"no media-fill function\n" ); +free (sub_name); + } -media_fill (&data, fill_fn); + igt_fixture { +igt_collection_destroy (set); +igt_stop_hang_detector (); + } }Signature · 1 line
2.26.3
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 4/9] tests/gem_gpgpu_fill: Convert from simple to standard igt_main
In reply to Matthew AuldQuoted 8 lines · Matthew Auld
From: Dominik Grzegorzek <[email protected]>
As we need to add new test variants, convert the code to standard
igt_mainformat so those variants can be easily accommodated.Signed-off-by Janusz Krzysztofik <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>Signed-off-by Matthew Auld <[email protected]>
I'm not sure but Janusz likely started migration so you can remove me from SoB. Then I can give:
--
Zbigniew
Quoted 52 lines
--- tests/i915/gem_gpgpu_fill.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-)tests/i915/gem_gpgpu_fill.c +16
-9@@ -123,20 +123,27 @@ static void gpgpu_fill(data_t *data, igt_fillfunc_t fill)munmap (ptr, buf->surface[0 ].size); } - -igt_simple_main +igt_main {data_t data = {0 , };igt_fillfunc_t fill_fn =NULL ; - data.drm_fd =drm_open_driver_render (DRIVER_INTEL ); - data.devid =intel_get_drm_devid (data.drm_fd); -igt_require_gem (data.drm_fd); - data.bops =buf_ops_create (data.drm_fd); + igt_fixture { + data.drm_fd =drm_open_driver_render (DRIVER_INTEL ); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_require_gem (data.drm_fd); + data.bops =buf_ops_create (data.drm_fd); + + fill_fn =igt_get_gpgpu_fillfunc (data.devid); + +igt_require_f (fill_fn,"no gpgpu-fill function\n" ); - fill_fn =igt_get_gpgpu_fillfunc (data.devid); + } -igt_require_f (fill_fn,"no gpgpu-fill function\n" ); + igt_subtest("basic") +gpgpu_fill (&data, fill_fn); -gpgpu_fill (&data, fill_fn); + igt_fixture { +buf_ops_destroy (data.bops); + } }Signature · 6 lines
2.26.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev