lib/intel: switch graphics/IP version queries to fd-based APIs
v3 cover lib/intel: switch graphics/IP version queries to fd-based APIs
This series separates PCI ID–based device traits from per‑device IP version queries. It introduces fd‑based intel_gfx_ver()/intel_gfx_ver_major() using Xe query data when available, keeps PCI ID translation as _from_pciid, and updates libs/tests to use the fd‑based APIs. This aligns IGT with post‑MTL IP disaggregation while preserving i915 safety fallback.
Xin Wang (4):
lib/intel: rename intel_gen() and intel_graphics_ver() to
*_from_pciid() variants
lib/intel: add fd-based graphics IP version query helpers intel/{lib,tests}: switch fd-backed version checks to intel_gfx_ver* lib/intel_device_info: remove the graphcs_rel from xe2+ devices
benchmarks/gem_blt.c | 2 +- benchmarks/gem_busy.c | 2 +- benchmarks/gem_latency.c | 2 +- benchmarks/gem_wsim.c | 8 ++-- benchmarks/intel_upload_blit_large.c | 2 +- benchmarks/intel_upload_blit_large_gtt.c | 2 +- benchmarks/intel_upload_blit_large_map.c | 2 +- benchmarks/intel_upload_blit_small.c | 2 +- lib/gpgpu_shader.c | 6 +-- lib/gpu_cmds.c | 21 +++++---- lib/i915/gem_engine_topology.c | 10 ++--- lib/i915/gem_mman.c | 2 +- lib/i915/gem_submission.c | 8 ++-- lib/i915/i915_crc.c | 6 +-- lib/i915/intel_decode.c | 4 +- lib/igt_dummyload.c | 3 +- lib/igt_fb.c | 2 +- lib/igt_gt.c | 4 +- lib/igt_store.c | 2 +- lib/instdone.c | 2 +- lib/intel_batchbuffer.c | 56 ++++++++++++------------ lib/intel_batchbuffer.h | 4 +- lib/intel_blt.c | 22 ++++------ lib/intel_blt.h | 2 +- lib/intel_bufops.c | 10 ++--- lib/intel_chipset.c | 43 ++++++++++++++++++ lib/intel_chipset.h | 14 +++--- lib/intel_common.c | 2 +- lib/intel_compute.c | 6 +-- lib/intel_device_info.c | 32 +++++++++----- lib/intel_mmio.c | 8 ++-- lib/intel_mocs.c | 13 +++--- lib/intel_pat.c | 14 +++--- lib/intel_reg_map.c | 2 +- lib/ioctl_wrappers.c | 2 +- lib/rendercopy_gen9.c | 24 +++++----- lib/xe/xe_legacy.c | 2 +- lib/xe/xe_oa.c | 4 +- lib/xe/xe_query.c | 24 ++++++++++ lib/xe/xe_query.h | 1 + lib/xe/xe_spin.c | 4 +- lib/xe/xe_sriov_provisioning.c | 4 +- tests/intel/api_intel_allocator.c | 2 +- tests/intel/api_intel_bb.c | 11 +++-- tests/intel/gem_bad_reloc.c | 4 +- tests/intel/gem_blits.c | 2 +- tests/intel/gem_close_race.c | 2 +- tests/intel/gem_concurrent_all.c | 2 +- tests/intel/gem_ctx_create.c | 4 +- tests/intel/gem_ctx_engines.c | 6 +-- tests/intel/gem_ctx_isolation.c | 14 +++--- tests/intel/gem_ctx_shared.c | 8 ++-- tests/intel/gem_ctx_sseu.c | 2 +- tests/intel/gem_eio.c | 6 +-- tests/intel/gem_evict_alignment.c | 6 +-- tests/intel/gem_evict_everything.c | 8 ++-- tests/intel/gem_exec_async.c | 2 +- tests/intel/gem_exec_await.c | 2 +- tests/intel/gem_exec_balancer.c | 4 +- tests/intel/gem_exec_big.c | 2 +- tests/intel/gem_exec_capture.c | 9 ++-- tests/intel/gem_exec_fair.c | 20 ++++----- tests/intel/gem_exec_fence.c | 20 ++++----- tests/intel/gem_exec_flush.c | 4 +- tests/intel/gem_exec_gttfill.c | 2 +- tests/intel/gem_exec_latency.c | 6 +-- tests/intel/gem_exec_nop.c | 4 +- tests/intel/gem_exec_parallel.c | 2 +- tests/intel/gem_exec_params.c | 8 ++-- tests/intel/gem_exec_reloc.c | 10 ++--- tests/intel/gem_exec_schedule.c | 20 ++++----- tests/intel/gem_exec_store.c | 6 +-- tests/intel/gem_exec_suspend.c | 2 +- tests/intel/gem_exec_whisper.c | 6 +-- tests/intel/gem_fenced_exec_thrash.c | 5 +-- tests/intel/gem_gpgpu_fill.c | 2 +- tests/intel/gem_gtt_hog.c | 2 +- tests/intel/gem_linear_blits.c | 11 ++--- tests/intel/gem_media_fill.c | 2 +- tests/intel/gem_media_vme.c | 2 +- tests/intel/gem_mmap_gtt.c | 12 ++--- tests/intel/gem_read_read_speed.c | 4 +- tests/intel/gem_render_copy.c | 10 ++--- tests/intel/gem_ringfill.c | 4 +- tests/intel/gem_set_tiling_vs_blt.c | 2 +- tests/intel/gem_softpin.c | 6 +-- tests/intel/gem_streaming_writes.c | 4 +- tests/intel/gem_sync.c | 8 ++-- tests/intel/gem_tiled_fence_blits.c | 4 +- tests/intel/gem_tiling_max_stride.c | 8 ++-- tests/intel/gem_userptr_blits.c | 25 +++++------ tests/intel/gem_vm_create.c | 2 +- tests/intel/gem_watchdog.c | 4 +- tests/intel/gem_workarounds.c | 2 +- tests/intel/gen7_exec_parse.c | 2 +- tests/intel/gen9_exec_parse.c | 2 +- tests/intel/i915_getparams_basic.c | 7 +-- tests/intel/i915_module_load.c | 2 +- tests/intel/i915_pm_rc6_residency.c | 6 +-- tests/intel/i915_pm_rpm.c | 2 +- tests/intel/i915_pm_sseu.c | 2 +- tests/intel/kms_ccs.c | 13 ++---- tests/intel/kms_fbcon_fbt.c | 2 +- tests/intel/kms_frontbuffer_tracking.c | 11 +++-- tests/intel/kms_pipe_stress.c | 6 +-- tests/intel/perf.c | 55 ++++++++++++----------- tests/intel/perf_pmu.c | 8 ++-- tests/intel/sysfs_preempt_timeout.c | 2 +- tests/intel/sysfs_timeslice_duration.c | 2 +- tests/intel/xe_ccs.c | 16 +++---- tests/intel/xe_compute.c | 8 ++-- tests/intel/xe_copy_basic.c | 6 +-- tests/intel/xe_debugfs.c | 3 +- tests/intel/xe_eu_stall.c | 4 +- tests/intel/xe_eudebug_online.c | 9 ++-- tests/intel/xe_evict.c | 6 +-- tests/intel/xe_exec_fault_mode.c | 2 +- tests/intel/xe_exec_multi_queue.c | 2 +- tests/intel/xe_exec_store.c | 6 +-- tests/intel/xe_exec_threads.c | 4 +- tests/intel/xe_fault_injection.c | 2 +- tests/intel/xe_gpgpu_fill.c | 2 +- tests/intel/xe_intel_bb.c | 7 ++- tests/intel/xe_media_fill.c | 2 +- tests/intel/xe_multigpu_svm.c | 3 +- tests/intel/xe_oa.c | 23 +++++----- tests/intel/xe_pat.c | 38 +++++++--------- tests/intel/xe_query.c | 4 +- tests/intel/xe_render_copy.c | 3 +- tests/intel/xe_svm_usrptr_madvise.c | 3 +- tests/prime_vgem.c | 2 +- tools/intel_dp_compliance.c | 2 +- tools/intel_error_decode.c | 12 ++--- tools/intel_gtt.c | 12 ++--- tools/intel_l3_parity.c | 2 +- tools/intel_reg.c | 6 +-- tools/intel_reg_decode.c | 4 +- tools/intel_tiling_detect.c | 2 +- tools/intel_vbt_decode.c | 2 +- 139 files changed, 532 insertions(+), 497 deletions(-)
Signature · 1 line
2.43.0
PATCH v3 1/4 lib/intel: rename intel_gen() and intel_graphics_ver() to *_from_pciid() variants
Both functions take a PCI device ID and perform a table lookup to return the GPU generation or graphics IP version. Rename them to intel_gen_from_pciid() and intel_graphics_ver_from_pciid() to make the input semantics explicit, and to free up the original names for new fd-based variants that will be introduced in the next patch.
Mark the renamed functions as deprecated in their kdoc, as callers should prefer the fd-based variants wherever a DRM device fd is available. The _from_pciid() variants should only be used in contexts where no fd is accessible, e.g. when the DRM driver is not loaded or in cross-environment tooling.
The bulk of the renaming was done with the following Coccinelle semantic patch (rename_to_from_pciid.cocci):
@@
expression E;
@@
- intel_gen(E)
+ intel_gen_from_pciid(E)
@@
expression E;
@@
- intel_graphics_ver(E)
+ intel_graphics_ver_from_pciid(E)
Applied with:
spatch --sp-file rename_to_from_pciid.cocci \
-I lib -I include --include-headers \
--in-place --dir .Call sites inside macro definitions that Coccinelle could not reach due to missing preprocessor context were handled with a follow-up sed pass:
find . \( -name "*.c" -o -name "*.h" \) | xargs sed -i \
-e "s/\bintel_gen(\b/intel_gen_from_pciid(/g" \
-e "s/\bintel_graphics_ver(\b/intel_graphics_ver_from_pciid(/g"The function declaration in lib/intel_chipset.h and the definition and kdoc in lib/intel_device_info.c were updated manually.
--- benchmarks/gem_blt.c | 2 +- benchmarks/gem_busy.c | 2 +- benchmarks/gem_latency.c | 2 +- benchmarks/gem_wsim.c | 8 ++-- benchmarks/intel_upload_blit_large.c | 2 +- benchmarks/intel_upload_blit_large_gtt.c | 2 +- benchmarks/intel_upload_blit_large_map.c | 2 +- benchmarks/intel_upload_blit_small.c | 2 +- lib/gpu_cmds.c | 20 ++++----- lib/i915/gem_engine_topology.c | 6 +-- lib/i915/gem_mman.c | 2 +- lib/i915/gem_submission.c | 8 ++-- lib/i915/i915_crc.c | 4 +- lib/i915/intel_decode.c | 4 +- lib/igt_dummyload.c | 2 +- lib/igt_gt.c | 4 +- lib/igt_store.c | 2 +- lib/instdone.c | 2 +- lib/intel_batchbuffer.c | 16 ++++---- lib/intel_blt.c | 18 ++++---- lib/intel_blt.h | 2 +- lib/intel_bufops.c | 10 ++--- lib/intel_chipset.h | 12 +++--- lib/intel_common.c | 2 +- lib/intel_compute.c | 6 +-- lib/intel_device_info.c | 23 +++++++++-- lib/intel_mmio.c | 8 ++-- lib/intel_mocs.c | 4 +- lib/intel_pat.c | 4 +- lib/intel_reg_map.c | 2 +- lib/ioctl_wrappers.c | 2 +- lib/rendercopy_gen9.c | 24 +++++------ lib/xe/xe_legacy.c | 2 +- lib/xe/xe_oa.c | 4 +- lib/xe/xe_spin.c | 2 +- lib/xe/xe_sriov_provisioning.c | 2 +- tests/intel/api_intel_allocator.c | 2 +- tests/intel/api_intel_bb.c | 10 ++--- tests/intel/gem_bad_reloc.c | 4 +- tests/intel/gem_blits.c | 2 +- tests/intel/gem_close_race.c | 2 +- tests/intel/gem_concurrent_all.c | 2 +- tests/intel/gem_ctx_create.c | 4 +- tests/intel/gem_ctx_engines.c | 6 +-- tests/intel/gem_ctx_isolation.c | 14 +++---- tests/intel/gem_ctx_shared.c | 8 ++-- tests/intel/gem_ctx_sseu.c | 2 +- tests/intel/gem_eio.c | 6 +-- tests/intel/gem_evict_alignment.c | 6 +-- tests/intel/gem_evict_everything.c | 8 ++-- tests/intel/gem_exec_async.c | 2 +- tests/intel/gem_exec_await.c | 2 +- tests/intel/gem_exec_balancer.c | 4 +- tests/intel/gem_exec_big.c | 2 +- tests/intel/gem_exec_capture.c | 6 +-- tests/intel/gem_exec_fair.c | 20 ++++----- tests/intel/gem_exec_fence.c | 18 ++++---- tests/intel/gem_exec_flush.c | 4 +- tests/intel/gem_exec_gttfill.c | 2 +- tests/intel/gem_exec_latency.c | 6 +-- tests/intel/gem_exec_nop.c | 4 +- tests/intel/gem_exec_parallel.c | 2 +- tests/intel/gem_exec_params.c | 8 ++-- tests/intel/gem_exec_reloc.c | 10 ++--- tests/intel/gem_exec_schedule.c | 20 ++++----- tests/intel/gem_exec_store.c | 6 +-- tests/intel/gem_exec_suspend.c | 2 +- tests/intel/gem_exec_whisper.c | 6 +-- tests/intel/gem_fenced_exec_thrash.c | 2 +- tests/intel/gem_gtt_hog.c | 2 +- tests/intel/gem_linear_blits.c | 8 ++-- tests/intel/gem_media_vme.c | 2 +- tests/intel/gem_mmap_gtt.c | 12 +++--- tests/intel/gem_read_read_speed.c | 2 +- tests/intel/gem_render_copy.c | 8 ++-- tests/intel/gem_ringfill.c | 4 +- tests/intel/gem_set_tiling_vs_blt.c | 2 +- tests/intel/gem_softpin.c | 6 +-- tests/intel/gem_streaming_writes.c | 4 +- tests/intel/gem_sync.c | 8 ++-- tests/intel/gem_tiled_fence_blits.c | 4 +- tests/intel/gem_tiling_max_stride.c | 8 ++-- tests/intel/gem_userptr_blits.c | 20 ++++----- tests/intel/gem_vm_create.c | 2 +- tests/intel/gem_watchdog.c | 4 +- tests/intel/gem_workarounds.c | 2 +- tests/intel/gen7_exec_parse.c | 2 +- tests/intel/gen9_exec_parse.c | 2 +- tests/intel/i915_getparams_basic.c | 7 ++-- tests/intel/i915_module_load.c | 2 +- tests/intel/i915_pm_rc6_residency.c | 6 +-- tests/intel/i915_pm_rpm.c | 2 +- tests/intel/i915_pm_sseu.c | 2 +- tests/intel/kms_ccs.c | 8 ++-- tests/intel/kms_fbcon_fbt.c | 2 +- tests/intel/kms_frontbuffer_tracking.c | 6 +-- tests/intel/kms_pipe_stress.c | 4 +- tests/intel/perf.c | 52 ++++++++++++------------ tests/intel/perf_pmu.c | 8 ++-- tests/intel/sysfs_preempt_timeout.c | 2 +- tests/intel/sysfs_timeslice_duration.c | 2 +- tests/intel/xe_ccs.c | 16 ++++---- tests/intel/xe_compute.c | 8 ++-- tests/intel/xe_debugfs.c | 2 +- tests/intel/xe_eudebug_online.c | 4 +- tests/intel/xe_evict.c | 6 +-- tests/intel/xe_exec_fault_mode.c | 2 +- tests/intel/xe_exec_multi_queue.c | 2 +- tests/intel/xe_exec_store.c | 2 +- tests/intel/xe_exec_threads.c | 2 +- tests/intel/xe_fault_injection.c | 2 +- tests/intel/xe_intel_bb.c | 6 +-- tests/intel/xe_multigpu_svm.c | 2 +- tests/intel/xe_oa.c | 22 +++++----- tests/intel/xe_pat.c | 12 +++--- tests/intel/xe_query.c | 2 +- tests/intel/xe_render_copy.c | 2 +- tests/intel/xe_svm_usrptr_madvise.c | 2 +- tests/prime_vgem.c | 2 +- tools/intel_dp_compliance.c | 2 +- tools/intel_error_decode.c | 12 +++--- tools/intel_gtt.c | 12 +++--- tools/intel_l3_parity.c | 2 +- tools/intel_reg.c | 6 +-- tools/intel_reg_decode.c | 4 +- tools/intel_tiling_detect.c | 2 +- tools/intel_vbt_decode.c | 2 +- 127 files changed, 391 insertions(+), 373 deletions(-)
benchmarks/gem_blt.c +1 -1
@@ -190,7 +190,7 @@ static int run(int object, int batch, int time, int reps, int ncpus, unsigned fl handle =gem_create (fd, size); buf =gem_mmap__cpu (fd, handle,0 , size,PROT_WRITE ); - gen =intel_gen (intel_get_drm_devid (fd)); + gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); has_64bit_reloc = gen >=8 ; src =gem_create (fd,ALIGN (object,4096 ));
benchmarks/gem_busy.c +1 -1
@@ -155,7 +155,7 @@ static int loop(unsigned ring, int reps, int ncpus, unsigned flags) shared =mmap (0 ,4096 ,PROT_WRITE ,MAP_SHARED |MAP_ANON ,-1 ,0 ); fd =drm_open_driver (DRIVER_INTEL ); - gen =intel_gen (intel_get_drm_devid (fd)); + gen =intel_gen_from_pciid (intel_get_drm_devid (fd));memset (obj,0 ,sizeof (obj)); obj[0 ].handle =gem_create (fd,4096 );
benchmarks/gem_latency.c +1 -1
@@ -452,7 +452,7 @@ static int run(int seconds,#endif fd =drm_open_driver (DRIVER_INTEL ); - gen =intel_gen (intel_get_drm_devid (fd)); + gen =intel_gen_from_pciid (intel_get_drm_devid (fd));if (gen <6 )return IGT_EXIT_SKIP ;/* Needs BCS timestamp */
benchmarks/gem_wsim.c +4 -4
@@ -358,7 +358,7 @@ static uint64_t ns_to_ctx_ticks(uint64_t ns)if (!f) { f =read_timestamp_frequency (fd); -if (intel_gen (intel_get_drm_devid (fd)) ==11 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) ==11 ) f =12500000 ;/* icl!!! are you feeling alright? */ }
@@ -936,7 +936,7 @@ parse_duration(unsigned int nr_steps, struct duration *dur, double scale_dur, chlong tmpl;if (field[0 ] =='*' ) { -if (intel_gen (intel_get_drm_devid (fd)) <8 ) { +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) <8 ) {wsim_err ("Infinite batch at step %u needs Gen8+!\n" , nr_steps);return -1 ; }
@@ -1536,7 +1536,7 @@ static uint32_t mmio_base(int i915, const intel_engine_t *engine, int gen)static unsigned int create_bb (struct w_step *w,int self) { -const int gen =intel_gen (intel_get_drm_devid (fd)); +const int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const uint32_t base =mmio_base (fd, &w->engine, gen);#define CS_GPR (x) (base + 0x600 + 8 * (x))#define TIMESTAMP (base + 0x3a8)
@@ -2138,7 +2138,7 @@ static int prepare_contexts(unsigned int id, struct workload *wrk)wsim_err ("Load balancing needs an engine map!\n" );return 1 ; } -if (intel_gen (intel_get_drm_devid (fd)) <11 ) { +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) <11 ) {wsim_err ("Load balancing needs relative mmio support, gen11+!\n" );return 1 ; }
benchmarks/intel_upload_blit_large.c +1 -1
@@ -82,7 +82,7 @@ do_render(int i915, uint32_t dst_handle)uint32_t data[OBJECT_WIDTH *OBJECT_HEIGHT ];uint64_t size =OBJECT_WIDTH *OBJECT_HEIGHT *4 , bb_size =4096 ;uint32_t src_handle, bb_handle, *bb; -uint32_t gen =intel_gen (intel_get_drm_devid (i915)); +uint32_t gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const bool has_64b_reloc = gen >=8 ;int i;
benchmarks/intel_upload_blit_large_gtt.c +1 -1
@@ -78,7 +78,7 @@ do_render(int i915, uint32_t dst_handle)static uint32_t seed =1 ;uint64_t size =OBJECT_WIDTH *OBJECT_HEIGHT *4 , bb_size =4096 ;uint32_t *data, src_handle, bb_handle, *bb; -uint32_t gen =intel_gen (intel_get_drm_devid (i915)); +uint32_t gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const bool has_64b_reloc = gen >=8 ;int i;
benchmarks/intel_upload_blit_large_map.c +1 -1
@@ -81,7 +81,7 @@ do_render(int i915, uint32_t dst_handle)static uint32_t seed =1 ;uint64_t size =OBJECT_WIDTH *OBJECT_HEIGHT *4 , bb_size =4096 ;uint32_t *data, src_handle, bb_handle, *bb; -uint32_t gen =intel_gen (intel_get_drm_devid (i915)); +uint32_t gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const bool has_64b_reloc = gen >=8 ;int i;
benchmarks/intel_upload_blit_small.c +1 -1
@@ -76,7 +76,7 @@ do_render(int i915, uint32_t dst_handle)uint32_t data[OBJECT_WIDTH *OBJECT_HEIGHT ];uint64_t size =OBJECT_WIDTH *OBJECT_HEIGHT *4 , bb_size =4096 ;uint32_t src_handle, bb_handle, *bb; -uint32_t gen =intel_gen (intel_get_drm_devid (i915)); +uint32_t gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const bool has_64b_reloc = gen >=8 ;int i;
lib/gpu_cmds.c +10 -10
@@ -320,7 +320,7 @@ fill_binding_table(struct intel_bb *ibb, struct intel_buf *buf) binding_table =intel_bb_ptr (ibb);intel_bb_ptr_add (ibb,64 ); -if (intel_graphics_ver (devid) >=IP_VER (20 ,0 )) { +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) {/* * Up until now, SURFACEFORMAT_R8_UNROM was used regardless of the 'bpp' value. * For bpp 32 this results in a surface that is 4x narrower than expected. However
@@ -342,13 +342,13 @@ fill_binding_table(struct intel_bb *ibb, struct intel_buf *buf)igt_assert_f (false,"Surface state for bpp = %u not implemented" , buf->bpp); - }else if (intel_graphics_ver (devid) >=IP_VER (12 ,50 )) { + }else if (intel_graphics_ver_from_pciid (devid) >=IP_VER (12 ,50 )) { binding_table[0 ] =xehp_fill_surface_state (ibb, buf,SURFACEFORMAT_R8_UNORM ,1 ); - }else if (intel_graphics_ver (devid) >=IP_VER (9 ,0 )) { + }else if (intel_graphics_ver_from_pciid (devid) >=IP_VER (9 ,0 )) { binding_table[0 ] =gen9_fill_surface_state (ibb, buf,SURFACEFORMAT_R8_UNORM ,1 ); - }else if (intel_graphics_ver (devid) >=IP_VER (8 ,0 )) { + }else if (intel_graphics_ver_from_pciid (devid) >=IP_VER (8 ,0 )) { binding_table[0 ] =gen8_fill_surface_state (ibb, buf,SURFACEFORMAT_R8_UNORM ,1 ); }else {
@@ -867,7 +867,7 @@ gen_emit_media_object(struct intel_bb *ibb,/* inline data (xoffset, yoffset) */ intel_bb_out (ibb, xoffset);intel_bb_out (ibb, yoffset); -if (intel_gen (ibb->devid) >=8 && !IS_CHERRYVIEW (ibb->devid)) +if (intel_gen_from_pciid (ibb->devid) >=8 && !IS_CHERRYVIEW (ibb->devid))gen8_emit_media_state_flush (ibb); }
@@ -1011,7 +1011,7 @@ void xehp_emit_state_compute_mode(struct intel_bb *ibb, bool vrt) { - uint32_t dword_length = intel_graphics_ver(ibb->devid) >= IP_VER(20, 0); + uint32_t dword_length = intel_graphics_ver_from_pciid(ibb->devid) >= IP_VER(20, 0);intel_bb_out (ibb,XEHP_STATE_COMPUTE_MODE | dword_length);intel_bb_out (ibb, vrt ? (0x10001 ) <<10 :0 );/* Enable variable number of threads */
@@ -1042,7 +1042,7 @@ xehp_emit_state_base_address(struct intel_bb *ibb)intel_bb_out (ibb,0 );/* stateless data port */ - tmp =intel_graphics_ver (ibb->devid) >=IP_VER (20 ,0 ) ?0 :BASE_ADDRESS_MODIFY ; + tmp =intel_graphics_ver_from_pciid (ibb->devid) >=IP_VER (20 ,0 ) ?0 :BASE_ADDRESS_MODIFY ;intel_bb_out (ibb,0 | tmp);//dw3 /* surface */
@@ -1068,7 +1068,7 @@ xehp_emit_state_base_address(struct intel_bb *ibb)/* dynamic state buffer size */ intel_bb_out (ibb,ALIGN (ibb->size,1 <<12 ) |1 );//dw13 /* indirect object buffer size */ -if (intel_graphics_ver (ibb->devid) >=IP_VER (20 ,0 ))//dw14 +if (intel_graphics_ver_from_pciid (ibb->devid) >=IP_VER (20 ,0 ))//dw14 intel_bb_out (ibb,0 );else intel_bb_out (ibb,0xfffff000 |1 );
@@ -1115,7 +1115,7 @@ xehp_emit_compute_walk(struct intel_bb *ibb,else mask = (1 << mask) -1 ; - dword_length =intel_graphics_ver (ibb->devid) >=IP_VER (20 ,0 ) ?0x26 :0x25 ; + dword_length =intel_graphics_ver_from_pciid (ibb->devid) >=IP_VER (20 ,0 ) ?0x26 :0x25 ;intel_bb_out (ibb,XEHP_COMPUTE_WALKER | dword_length);intel_bb_out (ibb,0 );/* debug object */ //dw1
@@ -1155,7 +1155,7 @@ xehp_emit_compute_walk(struct intel_bb *ibb,intel_bb_out (ibb,0 );//dw16 intel_bb_out (ibb,0 );//dw17 -if (intel_graphics_ver (ibb->devid) >=IP_VER (20 ,0 ))//Xe2:dw18 +if (intel_graphics_ver_from_pciid (ibb->devid) >=IP_VER (20 ,0 ))//Xe2:dw18 intel_bb_out (ibb,0 );/* Interface descriptor data */ for (int i =0 ; i <8 ; i++) {//dw18-25 (Xe2:dw19-26)
lib/i915/gem_engine_topology.c +3 -3
@@ -375,7 +375,7 @@ static int gem_engine_to_gt_map(int i915, const struct i915_engine_class_instancuint32_t devid =intel_get_drm_devid (i915);/* Only MTL multi-gt supported at present */ -igt_require (intel_graphics_ver (devid) <=IP_VER (12 ,70 )); +igt_require (intel_graphics_ver_from_pciid (devid) <=IP_VER (12 ,70 ));return IS_METEORLAKE (devid) ?mtl_engine_to_gt_map (engine) :0 ; }
@@ -644,7 +644,7 @@ bool gem_engine_can_block_copy(int i915, const struct intel_execution_engine2 *ereturn false;if (!gem_engine_has_known_capability (i915, engine->name,"block_copy" )) -return intel_gen (intel_get_drm_devid (i915)) >=12 ; +return intel_gen_from_pciid (intel_get_drm_devid (i915)) >=12 ;return gem_engine_has_capability (i915, engine->name,"block_copy" ); }
@@ -655,7 +655,7 @@ uint32_t gem_engine_mmio_base(int i915, const char *engine)if (gem_engine_property_scanf (i915, engine,"mmio_base" ,"%x" , &mmio) <0 ) { -int gen =intel_gen (intel_get_drm_devid (i915)); +int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));/* The layout of xcs1+ is unreliable -- hence the property! */ if (!strcmp (engine,"rcs0" )) {
lib/i915/gem_mman.c +1 -1
@@ -738,7 +738,7 @@ uint64_t gem_mappable_aperture_size(int fd)struct pci_device *pci_dev =igt_device_get_pci_device (fd);int bar; -if (intel_gen (pci_dev->device_id) <3 ) +if (intel_gen_from_pciid (pci_dev->device_id) <3 ) bar =0 ;else bar =2 ;
lib/i915/gem_submission.c +4 -4
@@ -62,7 +62,7 @@*/ unsigned gem_submission_method (int fd) { -const int gen =intel_gen (intel_get_drm_devid (fd)); +const int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));unsigned method =GEM_SUBMISSION_RINGBUF ;int dir;uint32_t value =0 ;
@@ -210,7 +210,7 @@ int gem_cmdparser_version(int i915)bool gem_engine_has_cmdparser (int i915,const intel_ctx_cfg_t *cfg,unsigned int engine) { -const int gen =intel_gen (intel_get_drm_devid (i915)); +const int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const int parser_version =gem_cmdparser_version (i915);const int class =intel_ctx_cfg_engine_class (cfg, engine);
@@ -232,7 +232,7 @@ bool gem_has_blitter(int i915)unsigned int blt; blt =0 ; -if (intel_gen (intel_get_drm_devid (i915)) >=6 ) +if (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=6 ) blt =I915_EXEC_BLT ;return gem_has_ring (i915, blt);
@@ -245,7 +245,7 @@ void gem_require_blitter(int i915)static bool gem_engine_has_immutable_submission (int i915,int class) { -const int gen =intel_gen (intel_get_drm_devid (i915)); +const int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));int parser_version; parser_version =gem_cmdparser_version (i915);
lib/i915/i915_crc.c +2 -2
@@ -135,7 +135,7 @@ static void fill_batch(int i915, uint32_t bb_handle, uint64_t bb_offset, uint64_t table_offset, uint64_t data_offset, uint32_t data_size) { uint32_t *bb, *batch, *jmp; -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const int use_64b = gen >=8 ;uint64_t offset;uint64_t crc =USERDATA (table_offset,0 );
@@ -294,5 +294,5 @@ bool supports_i915_crc32(int i915) {uint16_t devid =intel_get_drm_devid (i915); -return intel_graphics_ver (devid) >IP_VER (12 ,50 ); +return intel_graphics_ver_from_pciid (devid) >IP_VER (12 ,50 ); }
lib/i915/intel_decode.c +2 -2
@@ -3825,7 +3825,7 @@ intel_decode_context_alloc(uint32_t devid)struct intel_decode *ctx;int gen =0 ; - gen =intel_gen (devid); + gen =intel_gen_from_pciid (devid); ctx =calloc (1 ,sizeof (struct intel_decode ));if (!ctx)
@@ -3944,7 +3944,7 @@ intel_decode(struct intel_decode *ctx) index +=decode_2d (ctx);break ;case 0x3 : -if (intel_gen (devid) >=4 ) { +if (intel_gen_from_pciid (devid) >=4 ) { index +=decode_3d_965 (ctx); }else if (IS_GEN3 (devid)) {
lib/igt_dummyload.c +1 -1
@@ -95,7 +95,7 @@ emit_recursive_batch(igt_spin_t *spin,#define SCRATCH 0#define BATCH IGT_SPIN_BATCHconst unsigned int devid =intel_get_drm_devid (fd); -const unsigned int gen =intel_gen (devid); +const unsigned int gen =intel_gen_from_pciid (devid);struct drm_i915_gem_relocation_entry relocs[3 ], *r;struct drm_i915_gem_execbuffer2 *execbuf;struct drm_i915_gem_exec_object2 *obj;
lib/igt_gt.c +2 -2
@@ -68,7 +68,7 @@ static bool has_gpu_reset(int fd)/* Very old kernels did not support the query */ if (reset_query_once ==-1 ) reset_query_once = - (intel_gen (intel_get_drm_devid (fd)) >=5 ) ?1 :0 ; + (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=5 ) ?1 :0 ; }return reset_query_once >0 ;
@@ -468,7 +468,7 @@ void igt_fork_hang_helper(void) fd =drm_open_driver (DRIVER_INTEL ); - gen =intel_gen (intel_get_drm_devid (fd)); + gen =intel_gen_from_pciid (intel_get_drm_devid (fd));igt_skip_on (gen <5 );igt_fork_helper (&hang_helper)
lib/igt_store.c +1 -1
@@ -31,7 +31,7 @@ void igt_store_word(int fd, uint64_t ahnd, const intel_ctx_t *ctx, {const int SCRATCH =0 ;const int BATCH =1 ; -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
lib/instdone.c +1 -1
@@ -489,7 +489,7 @@ init_gen12_instdone(uint32_t devid)bool init_instdone_definitions (uint32_t devid) { -if (intel_graphics_ver (devid) >=IP_VER (12 ,50 )) { +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (12 ,50 )) {init_xehp_instdone (); }else if (IS_GEN12 (devid)) {init_gen12_instdone (devid);
lib/intel_batchbuffer.c +8 -8
@@ -333,7 +333,7 @@ void igt_blitter_copy(int fd, devid =intel_get_drm_devid (fd); -if (intel_graphics_ver (devid) >=IP_VER (12 ,60 )) +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (12 ,60 )) igt_blitter_fast_copy__raw(fd, ahnd, ctx, NULL, src_handle, src_delta, src_stride, src_tiling,
@@ -410,7 +410,7 @@ void igt_blitter_src_copy(int fd,uint32_t batch_handle;uint32_t src_pitch, dst_pitch;uint32_t dst_reloc_offset, src_reloc_offset; -uint32_t gen =intel_gen (intel_get_drm_devid (fd)); +uint32_t gen =intel_gen_from_pciid (intel_get_drm_devid (fd));uint64_t batch_offset, src_offset, dst_offset;const bool has_64b_reloc = gen >=8 ;int i =0 ;
@@ -669,9 +669,9 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int fd) copy = mtl_render_copyfunc; else if (IS_DG2(devid)) copy = gen12p71_render_copyfunc; - else if (intel_gen(devid) >= 35) + else if (intel_gen_from_pciid(devid) >= 35) copy = xe3p_render_copyfunc; - else if (intel_gen(devid) >= 20) + else if (intel_gen_from_pciid(devid) >= 20) copy = xe2_render_copyfunc; else if (IS_GEN12(devid)) copy = gen12_render_copyfunc;
@@ -731,7 +731,7 @@ igt_fillfunc_t igt_get_media_fillfunc(int devid) {igt_fillfunc_t fill =NULL ; -if (intel_graphics_ver (devid) >=IP_VER (12 ,50 )) { +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (12 ,50 )) {/* current implementation defeatured PIPELINE_MEDIA */ }else if (IS_GEN12 (devid)) fill = gen12_media_fillfunc;
@@ -769,7 +769,7 @@ igt_fillfunc_t igt_get_gpgpu_fillfunc(int devid) {igt_fillfunc_t fill =NULL ; -if (intel_graphics_ver (devid) >=IP_VER (12 ,50 )) +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (12 ,50 )) fill = xehp_gpgpu_fillfunc;else if (IS_GEN12 (devid)) fill = gen12_gpgpu_fillfunc;
@@ -913,7 +913,7 @@ __intel_bb_create(int fd, uint32_t ctx, uint32_t vm, const intel_ctx_cfg_t *cfg,igt_assert (ibb); ibb->devid =intel_get_drm_devid (fd); - ibb->gen =intel_gen (ibb->devid); + ibb->gen =intel_gen_from_pciid (ibb->devid); ibb->ctx = ctx; ibb->fd = fd;
@@ -1091,7 +1091,7 @@ struct intel_bb *intel_bb_create_with_allocator(int fd, uint32_t ctx, uint32_t vstatic bool aux_needs_softpin (int fd) { -return intel_gen (intel_get_drm_devid (fd)) >=12 ; +return intel_gen_from_pciid (intel_get_drm_devid (fd)) >=12 ; }static bool has_ctx_cfg (struct intel_bb *ibb)
lib/intel_blt.c +9 -9
@@ -997,7 +997,7 @@ uint64_t emit_blt_block_copy(int fd, uint64_t bb_pos, bool emit_bbe) { -unsigned int ip_ver =intel_graphics_ver (intel_get_drm_devid (fd)); +unsigned int ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd));struct gen12_block_copy_data data = {};struct gen12_block_copy_data_ext dext = {};uint64_t dst_offset, src_offset, bb_offset;
@@ -1285,7 +1285,7 @@ uint64_t emit_blt_ctrl_surf_copy(int fd, uint64_t bb_pos, bool emit_bbe) { -unsigned int ip_ver =intel_graphics_ver (intel_get_drm_devid (fd)); +unsigned int ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd));union ctrl_surf_copy_data data = { };size_t data_sz;uint64_t dst_offset, src_offset, bb_offset, alignment;
@@ -1705,7 +1705,7 @@ uint64_t emit_blt_fast_copy(int fd, uint64_t bb_pos, bool emit_bbe) { -unsigned int ip_ver =intel_graphics_ver (intel_get_drm_devid (fd)); +unsigned int ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd));struct gen12_fast_copy_data data = {};uint64_t dst_offset, src_offset, bb_offset;uint32_t bbe =MI_BATCH_BUFFER_END ;
@@ -1976,7 +1976,7 @@ static void dump_bb_mem_copy_cmd(int fd, struct xe_mem_copy_data *data)igt_info ("BB details:\n" ); -if (intel_graphics_ver (devid) >=IP_VER (20 ,0 )) { +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) { igt_info(" dw00: [%08x] <client: 0x%x, opcode: 0x%x, length: %d> " "[copy type: %d, mode: %d]\n", cmd[0], data->dw00.xe2.client, data->dw00.xe2.opcode,
@@ -2006,7 +2006,7 @@ static void dump_bb_mem_copy_cmd(int fd, struct xe_mem_copy_data *data) cmd[7], data->dw07.dst_address_lo);igt_info (" dw08: [%08x] dst offset hi (0x%x)\n" , cmd[8 ], data->dw08.dst_address_hi); -if (intel_graphics_ver (devid) >=IP_VER (20 ,0 )) { +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) {igt_info (" dw09: [%08x] mocs <dst: 0x%x, src: 0x%x>\n" , cmd[9 ], data->dw09.xe2.dst_mocs, data->dw09.xe2.src_mocs);
@@ -2049,7 +2049,7 @@ static uint64_t emit_blt_mem_copy(int fd, uint64_t ahnd, width = mem->src.width; height = mem->dst.height; -if (intel_graphics_ver (devid) >=IP_VER (20 ,0 )) { +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) { data.dw00.xe2.client =0x2 ; data.dw00.xe2.opcode =0x5a ; data.dw00.xe2.length =8 ;
@@ -2246,7 +2246,7 @@ static void emit_blt_mem_set(int fd, uint64_t ahnd, batch[b++] = mem->dst.pitch -1 ; batch[b++] = dst_offset; batch[b++] = dst_offset <<32 ; -if (intel_graphics_ver (devid) >=IP_VER (20 ,0 )) +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) batch[b++] = value | (mem->dst.mocs_index <<3 );else batch[b++] = value | mem->dst.mocs_index;
@@ -2364,7 +2364,7 @@ blt_create_object(const struct blt_copy_data *blt, uint32_t region,if (create_mapping && region !=system_memory (blt->fd)) flags |=DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM ; -if (intel_gen (intel_get_drm_devid (blt->fd)) >=20 && compression) { +if (intel_gen_from_pciid (intel_get_drm_devid (blt->fd)) >=20 && compression) { pat_index =intel_get_pat_idx_uc_comp (blt->fd); cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ; }
@@ -2590,7 +2590,7 @@ void blt_surface_get_flatccs_data(int fd, cpu_caching =__xe_default_cpu_caching (fd, sysmem,0 ); ccs_bo_size =ALIGN (ccssize,xe_get_default_alignment (fd)); -if (intel_gen (intel_get_drm_devid (fd)) >=20 && obj->compression) { +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=20 && obj->compression) { comp_pat_index =intel_get_pat_idx_uc_comp (fd); cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ; }
lib/intel_blt.h +1 -1
@@ -52,7 +52,7 @@#include "igt.h" #include "intel_cmds_info.h" -#define CCS_RATIO (fd) (intel_gen(intel_get_drm_devid(fd)) >= 20 ? 512 : 256) +#define CCS_RATIO (fd) (intel_gen_from_pciid(intel_get_drm_devid(fd)) >= 20 ? 512 : 256)#define GEN12_MEM_COPY_MOCS_SHIFT 25#define XE2_MEM_COPY_SRC_MOCS_SHIFT 28#define XE2_MEM_COPY_DST_MOCS_SHIFT 3
lib/intel_bufops.c +5 -5
@@ -1063,7 +1063,7 @@ static void __intel_buf_init(struct buf_ops *bops, }else {uint16_t cpu_caching =__xe_default_cpu_caching (bops->fd, region,0 ); -if (intel_gen (bops->devid) >=20 && compression) +if (intel_gen_from_pciid (bops->devid) >=20 && compression) cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ; bo_size =ALIGN (bo_size,xe_get_default_alignment (bops->fd));
@@ -1106,7 +1106,7 @@ void intel_buf_init(struct buf_ops *bops,uint64_t region;uint8_t pat_index =DEFAULT_PAT_INDEX ; -if (compression &&intel_gen (bops->devid) >=20 ) +if (compression &&intel_gen_from_pciid (bops->devid) >=20 ) pat_index =intel_get_pat_idx_uc_comp (bops->fd); region = bops->driver == INTEL_DRIVER_I915 ? I915_SYSTEM_MEMORY :
@@ -1132,7 +1132,7 @@ void intel_buf_init_in_region(struct buf_ops *bops, {uint8_t pat_index =DEFAULT_PAT_INDEX ; -if (compression &&intel_gen (bops->devid) >=20 ) +if (compression &&intel_gen_from_pciid (bops->devid) >=20 ) pat_index =intel_get_pat_idx_uc_comp (bops->fd); __intel_buf_init(bops, 0, buf, width, height, bpp, alignment,
@@ -1203,7 +1203,7 @@ void intel_buf_init_using_handle_and_size(struct buf_ops *bops,igt_assert (handle);igt_assert (size); -if (compression &&intel_gen (bops->devid) >=20 ) +if (compression &&intel_gen_from_pciid (bops->devid) >=20 ) pat_index =intel_get_pat_idx_uc_comp (bops->fd); __intel_buf_init(bops, handle, buf, width, height, bpp, alignment,
@@ -1758,7 +1758,7 @@ static struct buf_ops *__buf_ops_create(int fd, bool check_idempotency)igt_assert (bops); devid =intel_get_drm_devid (fd); - generation =intel_gen (devid); + generation =intel_gen_from_pciid (devid);/* Predefined settings: see intel_device_info? */ for (int i =0 ; i <ARRAY_SIZE (buf_ops_arr); i++) {
lib/intel_chipset.h +6 -6
@@ -103,8 +103,8 @@ struct intel_device_info {const struct intel_device_info *intel_get_device_info (uint16_t devid) __attribute__((pure));const struct intel_cmds_info *intel_get_cmds_info (uint16_t devid) __attribute__((pure)); -unsigned intel_gen (uint16_t devid) __attribute__((pure)); -unsigned intel_graphics_ver (uint16_t devid) __attribute__((pure)); +unsigned intel_gen_from_pciid (uint16_t devid) __attribute__((pure)); +unsigned intel_graphics_ver_from_pciid (uint16_t devid) __attribute__((pure));unsigned intel_display_ver (uint16_t devid) __attribute__((pure));extern enum pch_type intel_pch;
@@ -230,12 +230,12 @@ void intel_check_pch(void);#define IS_GEN12 (devid) IS_GEN(devid, 12)#define IS_MOBILE (devid) (intel_get_device_info(devid)->is_mobile) -#define IS_965 (devid) (intel_gen(devid) >= 4) +#define IS_965 (devid) (intel_gen_from_pciid(devid) >= 4) -#define HAS_BSD_RING (devid) (intel_gen(devid) >= 5) -#define HAS_BLT_RING (devid) (intel_gen(devid) >= 6) +#define HAS_BSD_RING (devid) (intel_gen_from_pciid(devid) >= 5) +#define HAS_BLT_RING (devid) (intel_gen_from_pciid(devid) >= 6) -#define HAS_PCH_SPLIT (devid) (intel_gen(devid) >= 5 && \ +#define HAS_PCH_SPLIT (devid) (intel_gen_from_pciid(devid) >= 5 && \ !(IS_VALLEYVIEW(devid) || \ IS_CHERRYVIEW(devid) || \ IS_BROXTON(devid)))
lib/intel_common.c +1 -1
@@ -91,7 +91,7 @@ bool is_intel_region_compressible(int fd, uint64_t region)return true;/* Integrated Xe2+ supports compression on system memory */ -if (intel_gen (devid) >=20 && !is_dgfx &&is_intel_system_region (fd, region)) +if (intel_gen_from_pciid (devid) >=20 && !is_dgfx &&is_intel_system_region (fd, region))return true;/* Discrete supports compression on vram */
lib/intel_compute.c +3 -3
@@ -2303,7 +2303,7 @@ static bool __run_intel_compute_kernel(int fd,struct user_execenv *user, enum execenv_alloc_prefs alloc_prefs) { - unsigned int ip_ver = intel_graphics_ver(intel_get_drm_devid(fd)); + unsigned int ip_ver = intel_graphics_ver_from_pciid(intel_get_drm_devid(fd));int batch;const struct intel_compute_kernels *kernel_entries = intel_compute_square_kernels, *kernels;enum intel_driver driver =get_intel_driver (fd);
@@ -2774,7 +2774,7 @@ static bool __run_intel_compute_kernel_preempt(int fd,bool threadgroup_preemption, enum execenv_alloc_prefs alloc_prefs) { - unsigned int ip_ver = intel_graphics_ver(intel_get_drm_devid(fd)); + unsigned int ip_ver = intel_graphics_ver_from_pciid(intel_get_drm_devid(fd));int batch;const struct intel_compute_kernels *kernel_entries = intel_compute_square_kernels, *kernels;enum intel_driver driver =get_intel_driver (fd);
@@ -2828,7 +2828,7 @@ static bool __run_intel_compute_kernel_preempt(int fd,*/ bool xe_kernel_preempt_check (int fd,enum xe_compute_preempt_type required_preempt) { -unsigned int ip_ver =intel_graphics_ver (intel_get_drm_devid (fd)); +unsigned int ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd));int batch =find_preempt_batch (ip_ver);if (batch <0 ) {
lib/intel_device_info.c +20 -3
@@ -739,20 +739,37 @@ const struct intel_cmds_info *intel_get_cmds_info(uint16_t devid) }/** -* intel_gen: +* intel_gen_from_pciid: * @devid: pci device id * * Computes the Intel GFX generation for the given device id. * +* Deprecated: Prefer the fd-based intel_gen() where a DRM device fd is +* available. Use this function only in contexts where no fd is accessible, +* e.g. when the DRM driver is not loaded or in cross-environment tools. +* * Returns: * The GFX generation on successful lookup, -1u on failure. */ -unsigned intel_gen (uint16_t devid) +unsigned intel_gen_from_pciid (uint16_t devid) {return intel_get_device_info (devid)->graphics_ver ?:-1u ; } -unsigned intel_graphics_ver (uint16_t devid) +/** +* intel_graphics_ver_from_pciid: +* @devid: pci device id +* +* Computes the Intel graphics IP version for the given device id. +* +* Deprecated: Prefer the fd-based intel_graphics_ver() where a DRM device fd +* is available. Use this function only in contexts where no fd is accessible, +* e.g. when the DRM driver is not loaded or in cross-environment tools. +* +* Returns: +* The graphics IP version on successful lookup. +*/ +unsigned intel_graphics_ver_from_pciid (uint16_t devid) {const struct intel_device_info *info =intel_get_device_info (devid);
lib/intel_mmio.c +4 -4
@@ -152,7 +152,7 @@ intel_mmio_use_pci_bar(struct intel_mmio_data *mmio_data, struct pci_device *pcielse mmio_bar =0 ; - gen =intel_gen (devid); + gen =intel_gen_from_pciid (devid);if (gen >=12 ) mmio_size = pci_dev->regions[mmio_bar].size;else if (gen >=5 )
@@ -228,7 +228,7 @@ intel_register_access_init(struct intel_mmio_data *mmio_data, struct pci_deviceigt_assert (mmio_data->igt_mmio !=NULL ); mmio_data->safe = (safe !=0 && -intel_gen (pci_dev->device_id) >=4 ) ? true : false; +intel_gen_from_pciid (pci_dev->device_id) >=4 ) ? true : false; mmio_data->pci_device_id = pci_dev->device_id;if (mmio_data->safe) mmio_data->map =intel_get_register_map (mmio_data->pci_device_id);
@@ -304,7 +304,7 @@ intel_register_read(struct intel_mmio_data *mmio_data, uint32_t reg)struct intel_register_range *range;uint32_t ret; -if (intel_gen (mmio_data->pci_device_id) >=6 ) +if (intel_gen_from_pciid (mmio_data->pci_device_id) >=6 )igt_assert (mmio_data->key !=-1 );if (!mmio_data->safe)
@@ -343,7 +343,7 @@ intel_register_write(struct intel_mmio_data *mmio_data, uint32_t reg, uint32_t v {struct intel_register_range *range; -if (intel_gen (mmio_data->pci_device_id) >=6 ) +if (intel_gen_from_pciid (mmio_data->pci_device_id) >=6 )igt_assert (mmio_data->key !=-1 );if (!mmio_data->safe)
lib/intel_mocs.c +2 -2
@@ -28,7 +28,7 @@ struct drm_intel_mocs_index {static void get_mocs_index (int fd,struct drm_intel_mocs_index *mocs) {uint16_t devid =intel_get_drm_devid (fd); -unsigned int ip_ver =intel_graphics_ver (devid); +unsigned int ip_ver =intel_graphics_ver_from_pciid (devid);/* * Gen >= 12 onwards don't have a setting for PTE,
@@ -126,7 +126,7 @@ uint8_t intel_get_defer_to_pat_mocs_index(int fd)struct drm_intel_mocs_index mocs;uint16_t dev_id =intel_get_drm_devid (fd); -igt_assert (intel_gen (dev_id) >=20 ); +igt_assert (intel_gen_from_pciid (dev_id) >=20 );get_mocs_index (fd, &mocs);
lib/intel_pat.c +2 -2
@@ -127,7 +127,7 @@ static void intel_get_pat_idx(int fd, struct intel_pat_cache *pat) pat->wt =2 ; pat->wb =3 ; pat->max_index =7 ; - }else if (intel_graphics_ver (dev_id) <=IP_VER (12 ,60 )) { + }else if (intel_graphics_ver_from_pciid (dev_id) <=IP_VER (12 ,60 )) { pat->uc =3 ; pat->wt =2 ; pat->wb =0 ;
@@ -158,7 +158,7 @@ uint8_t intel_get_pat_idx_uc_comp(int fd)struct intel_pat_cache pat = {};uint16_t dev_id =intel_get_drm_devid (fd); -igt_assert (intel_gen (dev_id) >=20 ); +igt_assert (intel_gen_from_pciid (dev_id) >=20 );intel_get_pat_idx (fd, &pat);return pat.uc_comp;
lib/intel_reg_map.c +1 -1
@@ -131,7 +131,7 @@ struct intel_register_map intel_get_register_map(uint32_t devid) {struct intel_register_map map; -const int gen =intel_gen (devid); +const int gen =intel_gen_from_pciid (devid);if (gen >=6 ) { map.map = gen6_gt_register_map;
lib/ioctl_wrappers.c +1 -1
@@ -1072,7 +1072,7 @@ void gem_require_ring(int fd, unsigned ring)*/ bool gem_has_mocs_registers (int fd) { -return intel_gen (intel_get_drm_devid (fd)) >=9 ; +return intel_gen_from_pciid (intel_get_drm_devid (fd)) >=9 ; }/**
lib/rendercopy_gen9.c +12 -12
@@ -265,12 +265,12 @@ gen9_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst,if (buf->compression ==I915_COMPRESSION_MEDIA ) ss->ss7.tgl.media_compression =1 ;else if (buf->compression ==I915_COMPRESSION_RENDER ) { -if (intel_gen (ibb->devid) >=20 ) +if (intel_gen_from_pciid (ibb->devid) >=20 ) ss->ss6.aux_mode =0x0 ;/* AUX_NONE, unified compression */ else ss->ss6.aux_mode =0x5 ;/* AUX_CCS_E */ -if (intel_gen (ibb->devid) <12 && buf->ccs[0 ].stride) { +if (intel_gen_from_pciid (ibb->devid) <12 && buf->ccs[0 ].stride) { ss->ss6.aux_pitch = (buf->ccs[0 ].stride /128 ) -1 ; address = intel_bb_offset_reloc_with_delta(ibb, buf->handle,
@@ -312,7 +312,7 @@ gen9_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst, ss->ss7.dg2.disable_support_for_multi_gpu_partial_writes =1 ; ss->ss7.dg2.disable_support_for_multi_gpu_atomics =1 ; -if (intel_gen (ibb->devid) >=20 ) +if (intel_gen_from_pciid (ibb->devid) >=20 ) ss->ss12.lnl.compression_format =lnl_compression_format (buf);else ss->ss12.dg2.compression_format =dg2_compression_format (buf);
@@ -690,7 +690,7 @@ gen9_emit_state_base_address(struct intel_bb *ibb) {/* WaBindlessSurfaceStateModifyEnable:skl,bxt */ /* The length has to be one less if we dont modify bindless state */ -if (intel_gen (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 )intel_bb_out (ibb,GEN4_STATE_BASE_ADDRESS |20 );else intel_bb_out (ibb,GEN4_STATE_BASE_ADDRESS | (19 -1 -2 ));
@@ -735,7 +735,7 @@ gen9_emit_state_base_address(struct intel_bb *ibb) {intel_bb_out (ibb,0 );intel_bb_out (ibb,0 ); -if (intel_gen (intel_get_drm_devid (ibb->fd)) >=20 ) { +if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 ) {/* Bindless sampler */ intel_bb_out (ibb,0 );intel_bb_out (ibb,0 );
@@ -746,7 +746,7 @@ gen9_emit_state_base_address(struct intel_bb *ibb) {static void gen7_emit_urb (struct intel_bb *ibb) {/* XXX: Min valid values from mesa */ -const int vs_entries =intel_gen (ibb->devid) >=35 ?128 :64 ; +const int vs_entries =intel_gen_from_pciid (ibb->devid) >=35 ?128 :64 ;const int vs_size =2 ;const int vs_start =4 ;
@@ -908,7 +908,7 @@ gen9_emit_ds(struct intel_bb *ibb) {static void gen8_emit_wm_hz_op (struct intel_bb *ibb) { -if (intel_gen (intel_get_drm_devid (ibb->fd)) >=20 ) { +if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 ) {intel_bb_out (ibb,GEN8_3DSTATE_WM_HZ_OP | (6 -2 ));intel_bb_out (ibb,0 ); }else {
@@ -998,7 +998,7 @@ gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel, bool fast_clear) {intel_bb_out (ibb,0 );intel_bb_out (ibb,GEN7_3DSTATE_PS | (12 -2 )); -if (intel_gen (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 )intel_bb_out (ibb, kernel |1 );else intel_bb_out (ibb, kernel);
@@ -1015,7 +1015,7 @@ gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel, bool fast_clear) {intel_bb_out (ibb, (max_threads -1 ) <<GEN8_3DSTATE_PS_MAX_THREADS_SHIFT |GEN6_3DSTATE_WM_16_DISPATCH_ENABLE | (fast_clear ?GEN8_3DSTATE_FAST_CLEAR_ENABLE :0 )); -if (intel_gen (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 )intel_bb_out (ibb,6 <<GEN6_3DSTATE_WM_DISPATCH_START_GRF_0_SHIFT |GENXE_KERNEL0_POLY_PACK16_FIXED <<GENXE_KERNEL0_PACKING_POLICY );else
@@ -1070,7 +1070,7 @@ gen9_emit_depth(struct intel_bb *ibb)static void gen7_emit_clear (struct intel_bb *ibb) { -if (intel_gen (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 )return ;intel_bb_out (ibb,GEN7_3DSTATE_CLEAR_PARAMS | (3 -2 ));
@@ -1081,7 +1081,7 @@ gen7_emit_clear(struct intel_bb *ibb) {static void gen6_emit_drawing_rectangle (struct intel_bb *ibb,const struct intel_buf *dst) { -if (intel_gen (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 )intel_bb_out (ibb,GENXE2_3DSTATE_DRAWING_RECTANGLE_FAST | (4 -2 ));else intel_bb_out (ibb,GEN4_3DSTATE_DRAWING_RECTANGLE | (4 -2 ));
@@ -1275,7 +1275,7 @@ void _gen9_render_op(struct intel_bb *ibb,gen9_emit_state_base_address (ibb); -if (HAS_4TILE (ibb->devid) ||intel_gen (ibb->devid) >12 ) { +if (HAS_4TILE (ibb->devid) ||intel_gen_from_pciid (ibb->devid) >12 ) {intel_bb_out (ibb,GEN4_3DSTATE_BINDING_TABLE_POOL_ALLOC |2 ); intel_bb_emit_reloc(ibb, ibb->handle, I915_GEM_DOMAIN_RENDER | I915_GEM_DOMAIN_INSTRUCTION, 0,
lib/xe/xe_legacy.c +1 -1
@@ -75,7 +75,7 @@ xe_legacy_test_mode(int fd, struct drm_xe_engine_class_instance *eci,igt_assert_lte (n_exec_queues,MAX_N_EXECQUEUES );if (flags &COMPRESSION ) -igt_require (intel_gen (intel_get_drm_devid (fd)) >=20 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=20 );if (flags &CLOSE_FD ) fd =drm_open_driver (DRIVER_XE );
lib/xe/xe_oa.c +2 -2
@@ -303,7 +303,7 @@ intel_xe_perf_for_devinfo(uint32_t device_id,intel_xe_perf_load_metrics_bmg (perf); }else if (devinfo->is_pantherlake) {intel_xe_perf_load_metrics_ptl (perf); - }else if (intel_graphics_ver (device_id) >=IP_VER (20 ,0 )) { + }else if (intel_graphics_ver_from_pciid (device_id) >=IP_VER (20 ,0 )) {intel_xe_perf_load_metrics_lnl (perf); }else {return unsupported_xe_oa_platform (perf);
@@ -455,7 +455,7 @@ xe_fill_topology_info(int drm_fd, uint32_t device_id, uint32_t *topology_size)u8 *ptr;/* Only ADL-P, DG2 and newer ip support hwconfig, use hardcoded values for previous */ -if (intel_graphics_ver (device_id) >=IP_VER (12 ,55 ) || devinfo->is_alderlake_p) { +if (intel_graphics_ver_from_pciid (device_id) >=IP_VER (12 ,55 ) || devinfo->is_alderlake_p) {query_hwconfig (drm_fd, &topinfo); }else { topinfo.max_slices =1 ;
lib/xe/xe_spin.c +1 -1
@@ -167,7 +167,7 @@ void xe_spin_init(struct xe_spin *spin, struct xe_spin_opts *opts) spin->batch[b++] = opts->mem_copy->dst_offset <<32 ; devid =intel_get_drm_devid (opts->mem_copy->fd); -if (intel_graphics_ver (devid) >=IP_VER (20 ,0 )) +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) spin->batch[b++] = opts->mem_copy->src->mocs_index <<XE2_MEM_COPY_SRC_MOCS_SHIFT | opts->mem_copy->dst->mocs_index <<XE2_MEM_COPY_DST_MOCS_SHIFT ;else
lib/xe/xe_sriov_provisioning.c +1 -1
@@ -55,7 +55,7 @@ static uint64_t get_vfid_mask(int fd) {uint16_t dev_id =intel_get_drm_devid (fd); -return (intel_graphics_ver (dev_id) >=IP_VER (12 ,50 )) ? +return (intel_graphics_ver_from_pciid (dev_id) >=IP_VER (12 ,50 )) ?GGTT_PTE_VFID_MASK :PRE_1250_IP_VER_GGTT_PTE_VFID_MASK ; }
tests/intel/api_intel_allocator.c +1 -1
@@ -625,7 +625,7 @@ static void execbuf_with_allocator(int fd)uint64_t ahnd, sz =4096 , gtt_size;unsigned int flags =EXEC_OBJECT_PINNED ;uint32_t *ptr, batch[32 ], copied; -int gen =intel_gen (intel_get_drm_devid (fd)); +int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));int i;const uint32_t magic =0x900df00d ;
tests/intel/api_intel_bb.c +5 -5
@@ -1052,7 +1052,7 @@ static void do_intel_bb_blit(struct buf_ops *bops, int loops, uint32_t tiling)gem_require_blitter (i915);/* We'll fix it for gen2/3 later. */ -igt_require (intel_gen (intel_get_drm_devid (i915)) >3 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >3 );for (i =0 ; i < loops; i++) { fails +=__do_intel_bb_blit (bops, tiling);
@@ -1316,10 +1316,10 @@ static int render(struct buf_ops *bops, uint32_t tiling, bool do_reloc,uint32_t devid =intel_get_drm_devid (i915);igt_render_copyfunc_t render_copy =NULL ; -igt_debug ("%s() gen: %d\n" , __func__,intel_gen (devid)); +igt_debug ("%s() gen: %d\n" , __func__,intel_gen_from_pciid (devid));/* Don't use relocations on gen12+ */ -igt_require ((do_reloc &&intel_gen (devid) <12 ) || +igt_require ((do_reloc &&intel_gen_from_pciid (devid) <12 ) || !do_reloc);if (do_reloc)
@@ -1597,7 +1597,7 @@ int igt_main_args("dpibc:", NULL, help_str, opt_handler, NULL) igt_fixture() { i915 =drm_open_driver (DRIVER_INTEL ); bops =buf_ops_create (i915); - gen =intel_gen (intel_get_drm_devid (i915)); + gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); }igt_describe ("Ensure reset is possible on fresh bb" );
@@ -1659,7 +1659,7 @@ int igt_main_args("dpibc:", NULL, help_str, opt_handler, NULL)do_intel_bb_blit (bops,10 ,I915_TILING_X ); igt_subtest("intel-bb-blit-y") { -igt_require (intel_gen (intel_get_drm_devid (i915)) >=6 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=6 );do_intel_bb_blit (bops,10 ,I915_TILING_Y ); }
tests/intel/gem_bad_reloc.c +2 -2
@@ -84,7 +84,7 @@ static void negative_reloc(int fd, unsigned flags)uint64_t *offsets;int i; -igt_require (intel_gen (intel_get_drm_devid (fd)) >=7 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=7 );memset (&obj,0 ,sizeof (obj)); obj.handle =gem_create (fd,8192 );
@@ -135,7 +135,7 @@ static void negative_reloc(int fd, unsigned flags)static void negative_reloc_blt (int fd) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj[1024 ][2 ];struct drm_i915_gem_relocation_entry reloc;
tests/intel/gem_blits.c +1 -1
@@ -830,7 +830,7 @@ int igt_main()gem_require_blitter (device.fd); device.pciid =intel_get_drm_devid (device.fd); - device.gen =intel_gen (device.pciid); + device.gen =intel_gen_from_pciid (device.pciid); device.llc =gem_has_llc (device.fd); device.ahnd =get_reloc_ahnd (device.fd,0 ); }
tests/intel/gem_close_race.c +1 -1
@@ -347,7 +347,7 @@ int igt_main()igt_require_gem (fd); devid =intel_get_drm_devid (fd); - has_64bit_relocations =intel_gen (devid) >=8 ; + has_64bit_relocations =intel_gen_from_pciid (devid) >=8 ; has_softpin = !gem_has_relocations (fd); exec_addr =gem_detect_safe_start_offset (fd); data_addr =gem_detect_safe_alignment (fd);
tests/intel/gem_concurrent_all.c +1 -1
@@ -1904,7 +1904,7 @@ int igt_main()igt_require_gem (fd);intel_detect_and_clear_missed_interrupts (fd); devid =intel_get_drm_devid (fd); - gen =intel_gen (devid); + gen =intel_gen_from_pciid (devid); rendercopy =igt_get_render_copyfunc (fd); vgem_drv =__drm_open_driver (DRIVER_VGEM );
tests/intel/gem_ctx_create.c +2 -2
@@ -309,7 +309,7 @@ static void xchg_ptr(void *array, unsigned i, unsigned j)static unsigned __context_size (int fd) { -switch (intel_gen (intel_get_drm_devid (fd))) { +switch (intel_gen_from_pciid (intel_get_drm_devid (fd))) {case 0 :case 1 :case 2 :
@@ -478,7 +478,7 @@ static void basic_ext_param(int i915)static void check_single_timeline (int i915,uint32_t ctx,int num_engines) {#define RCS_TIMESTAMP (0x2000 + 0x358) -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const int has_64bit_reloc = gen >=8 ;struct drm_i915_gem_exec_object2 results = { .handle =gem_create (i915,4096 ) };const uint32_t bbe =MI_BATCH_BUFFER_END ;
tests/intel/gem_ctx_engines.c +3 -3
@@ -474,7 +474,7 @@ static void independent(int i915, const intel_ctx_t *base_ctx, const struct intel_execution_engine2 *e) {#define RCS_TIMESTAMP (mmio_base + 0x358) -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));unsigned int mmio_base =gem_engine_mmio_base (i915, e->name);const int has_64bit_reloc = gen >=8 ;I915_DEFINE_CONTEXT_PARAM_ENGINES (engines,I915_EXEC_RING_MASK +1 );
@@ -571,7 +571,7 @@ static void independent(int i915, const intel_ctx_t *base_ctx,static void independent_all (int i915,const intel_ctx_t *ctx) { -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const struct intel_execution_engine2 *e;igt_spin_t *spin =NULL ;uint64_t ahnd =get_reloc_ahnd (i915, ctx->id);
@@ -643,7 +643,7 @@ int igt_main()const intel_ctx_t *ctx;igt_require (gem_scheduler_enabled (i915)); -igt_require (intel_gen (intel_get_drm_devid (i915)) >=6 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=6 ); ctx =intel_ctx_create_all_physical (i915);for_each_ctx_engine (i915, ctx, e) {
tests/intel/gem_ctx_isolation.c +7 -7
@@ -273,7 +273,7 @@ static void tmpl_regs(int fd, uint32_t handle, uint32_t value) { -const unsigned int gen_bit =1 <<intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen_bit =1 <<intel_gen_from_pciid (intel_get_drm_devid (fd));const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);unsigned int regs_size;
@@ -318,7 +318,7 @@ static uint32_t read_regs(int fd, const struct intel_execution_engine2 *e, unsigned int flags) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const unsigned int gen_bit =1 << gen;const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);
@@ -408,7 +408,7 @@ static void write_regs(int fd, uint64_t ahnd, unsigned int flags, uint32_t value) { -const unsigned int gen_bit =1 <<intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen_bit =1 <<intel_gen_from_pciid (intel_get_drm_devid (fd));const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);struct drm_i915_gem_exec_object2 obj;
@@ -475,7 +475,7 @@ static void restore_regs(int fd, unsigned int flags, uint32_t regs) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const unsigned int gen_bit =1 << gen;const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);
@@ -561,7 +561,7 @@ static void dump_regs(int fd, const struct intel_execution_engine2 *e, unsigned int regs) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const unsigned int gen_bit =1 << gen;const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);
@@ -674,7 +674,7 @@ static void nonpriv(int fd, const intel_ctx_cfg_t *cfg,unsigned int num_values =ARRAY_SIZE (values);/* Sigh -- hsw: we need cmdparser access to our own registers! */ -igt_skip_on (intel_gen (intel_get_drm_devid (fd)) <8 ); +igt_skip_on (intel_gen_from_pciid (intel_get_drm_devid (fd)) <8 );gem_quiescent_gpu (fd);
@@ -1022,7 +1022,7 @@ int igt_main() has_context_isolation =__has_context_isolation (i915);igt_require (has_context_isolation); - gen =intel_gen (intel_get_drm_devid (i915)); + gen =intel_gen_from_pciid (intel_get_drm_devid (i915));igt_warn_on_f (gen >LAST_KNOWN_GEN ,"GEN not recognized! Test needs to be updated to run.\n" );
tests/intel/gem_ctx_shared.c +4 -4
@@ -292,7 +292,7 @@ static void exhaust_shared_gtt(int i915, unsigned int flags)static void exec_shared_gtt (int i915,const intel_ctx_cfg_t *cfg,unsigned int ring) { -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 obj = {};struct drm_i915_gem_execbuffer2 execbuf = {
@@ -556,7 +556,7 @@ static void store_dword(int i915, uint64_t ahnd, const intel_ctx_t *ctx, uint32_t cork, uint64_t cork_size, unsigned write_domain) { - const unsigned int gen = intel_gen(intel_get_drm_devid(i915)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(i915));struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -683,7 +683,7 @@ static uint32_t store_timestamp(int i915, int fence, int offset) { -const bool r64b =intel_gen (intel_get_drm_devid (i915)) >=8 ; +const bool r64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ;uint32_t handle =gem_create (i915,4096 );struct drm_i915_gem_exec_object2 obj = { .handle = handle,
@@ -714,7 +714,7 @@ static uint32_t store_timestamp(int i915,MI_BATCH_BUFFER_END }; -igt_require (intel_gen (intel_get_drm_devid (i915)) >=7 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=7 );gem_write (i915, handle,0 , batch,sizeof (batch)); obj.relocs_ptr =to_user_pointer (&reloc);
tests/intel/gem_ctx_sseu.c +1 -1
@@ -523,7 +523,7 @@ int igt_main()igt_require_gem (fd); __intel_devid__ =intel_get_drm_devid (fd); - __intel_gen__ =intel_gen (__intel_devid__); + __intel_gen__ =intel_gen_from_pciid (__intel_devid__);igt_require (kernel_has_per_context_sseu_support (fd)); }
tests/intel/gem_eio.c +3 -3
@@ -300,10 +300,10 @@ static igt_spin_t *__spin_poll(int fd, uint64_t ahnd, const intel_ctx_t *ctx, };if (!gem_engine_has_cmdparser (fd, &ctx->cfg, opts.engine) && -intel_gen (intel_get_drm_devid (fd)) !=6 ) +intel_gen_from_pciid (intel_get_drm_devid (fd)) !=6 ) opts.flags |=IGT_SPIN_INVALID_CS ; -if (intel_gen (intel_get_drm_devid (fd)) >7 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >7 ) opts.flags |=IGT_SPIN_FAST ;if (gem_can_store_dword (fd, opts.engine))
@@ -420,7 +420,7 @@ static void check_wait_elapsed(const char *prefix, int fd, igt_stats_t *st)* modeset back on) around resets, so may take a lot longer. */ limit =250e6 ; -if (intel_gen (intel_get_drm_devid (fd)) <5 ||intel_gen (intel_get_drm_devid (fd)) >11 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) <5 ||intel_gen_from_pciid (intel_get_drm_devid (fd)) >11 ) limit +=300e6 ;/* guestimate for 2x worstcase modeset */ med =igt_stats_get_median (st);
tests/intel/gem_evict_alignment.c +3 -3
@@ -88,7 +88,7 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, batch[i++] = (XY_SRC_COPY_BLT_CMD |XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB |6 ); -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) batch[i -1 ] +=2 ; batch[i++] = (3 <<24 ) |/* 32 bits */ (0xcc << 16) | /* copy ROP */
@@ -96,12 +96,12 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] =0 ;/* dst reloc */ -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) batch[i++] =0 ;/* FIXME */ batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] =0 ;/* src reloc */ -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) batch[i++] =0 ;/* FIXME */ batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
tests/intel/gem_evict_everything.c +4 -4
@@ -132,7 +132,7 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) batch[i++] = (XY_SRC_COPY_BLT_CMD |XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB |6 ); -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) batch[i -1 ] +=2 ; batch[i++] = (3 <<24 ) |/* 32 bits */ (0xcc << 16) | /* copy ROP */
@@ -140,12 +140,12 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] =0 ;/* dst reloc */ -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) batch[i++] =0 ;/* FIXME */ batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] =0 ;/* src reloc */ -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) batch[i++] =0 ;/* FIXME */ batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
@@ -163,7 +163,7 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) reloc[1 ].target_handle = src; reloc[1 ].delta =0 ; reloc[1 ].offset =7 *sizeof (batch[0 ]); -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) reloc[1 ].offset +=sizeof (batch[0 ]); reloc[1 ].presumed_offset =0 ; reloc[1 ].read_domains =I915_GEM_DOMAIN_RENDER ;
tests/intel/gem_exec_async.c +1 -1
@@ -45,7 +45,7 @@ static void store_dword(int fd, int id, const intel_ctx_t *ctx, unsigned ring, uint32_t target, uint64_t target_offset, uint32_t offset, uint32_t value) { - const unsigned int gen = intel_gen(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd));struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
tests/intel/gem_exec_await.c +1 -1
@@ -83,7 +83,7 @@ static void wide(int fd, intel_ctx_cfg_t *cfg, int ring_size, {const struct intel_execution_engine2 *engine;const uint32_t bbe =MI_BATCH_BUFFER_END ; -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct {struct drm_i915_gem_exec_object2 *obj;struct drm_i915_gem_exec_object2 exec[2 ];
tests/intel/gem_exec_balancer.c +2 -2
@@ -2631,7 +2631,7 @@ static int read_ctx_timestamp_frequency(int i915) .value = &value, .param = I915_PARAM_CS_TIMESTAMP_FREQUENCY, }; -if (intel_gen (intel_get_drm_devid (i915)) !=11 ) +if (intel_gen_from_pciid (intel_get_drm_devid (i915)) !=11 )ioctl (i915,DRM_IOCTL_I915_GETPARAM , &gp);return value; }
@@ -2719,7 +2719,7 @@ static void __fairslice(int i915,static void fairslice (int i915) {/* Relative CS mmio */ -igt_require (intel_gen (intel_get_drm_devid (i915)) >=11 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=11 );for (int class =0 ; class <32 ; class++) {struct i915_engine_class_instance *ci;
tests/intel/gem_exec_big.c +1 -1
@@ -326,7 +326,7 @@ int igt_main() i915 =drm_open_driver (DRIVER_INTEL );igt_require_gem (i915); - use_64bit_relocs =intel_gen (intel_get_drm_devid (i915)) >=8 ; + use_64bit_relocs =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ; has_relocs =gem_has_relocations (i915); }
tests/intel/gem_exec_capture.c +3 -3
@@ -302,7 +302,7 @@ static void __capture1(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx,const struct intel_execution_engine2 *e, uint32_t target, uint64_t target_size, uint32_t region) { - const unsigned int gen = intel_gen(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd));struct drm_i915_gem_exec_object2 obj[4 ];#define SCRATCH 0#define CAPTURE 1
@@ -470,7 +470,7 @@ __captureN(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx,#define INCREMENTAL 0x1#define ASYNC 0x2 { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_exec_object2 *obj;struct drm_i915_gem_relocation_entry reloc[2 ];struct drm_i915_gem_execbuffer2 execbuf;
@@ -658,7 +658,7 @@ static bool needs_recoverable_ctx(int fd)return false; devid =intel_get_drm_devid (fd); -return gem_has_lmem (fd) ||intel_graphics_ver (devid) >IP_VER (12 ,0 ); +return gem_has_lmem (fd) ||intel_graphics_ver_from_pciid (devid) >IP_VER (12 ,0 ); }#define find_first_available_engine (fd, ctx, e, saved) \
tests/intel/gem_exec_fair.c +10 -10
@@ -143,7 +143,7 @@ static bool has_mi_math(int i915, const struct intel_execution_engine2 *e) {uint32_t devid =intel_get_drm_devid (i915); -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 )return true;if (!IS_HASWELL (devid))
@@ -195,7 +195,7 @@ static uint64_t div64_u64_round_up(uint64_t x, uint64_t y)static uint64_t ns_to_ctx_ticks (int i915,uint64_t ns) {int f =read_timestamp_frequency (i915); -if (intel_gen (intel_get_drm_devid (i915)) ==11 ) +if (intel_gen_from_pciid (intel_get_drm_devid (i915)) ==11 ) f =12500000 ;/* gen11!!! are you feeling alright? CTX vs CS */ return div64_u64_round_up (ns * f,NSEC64 ); }
@@ -212,7 +212,7 @@ static void delay(int i915, uint64_t addr, uint64_t ns) { -const int use_64b =intel_gen (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);const uint32_t runtime = base + (use_64b ?0x3a8 :0x358 );#define CS_GPR (x) (base + 0x600 + 8 * (x))
@@ -317,7 +317,7 @@ static void tslog(int i915, uint32_t handle, uint64_t addr) { -const int use_64b =intel_gen (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);#define CS_GPR (x) (base + 0x600 + 8 * (x))#define CS_TIMESTAMP (base + 0x358)
@@ -441,7 +441,7 @@ read_ctx_timestamp(int i915, const intel_ctx_t *ctx, .rsvd1 = ctx->id, .flags = e->flags, }; -const int use_64b =intel_gen (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);const uint32_t runtime = base + (use_64b ?0x3a8 :0x358 );uint32_t *map, *cs;
@@ -489,7 +489,7 @@ read_ctx_timestamp(int i915, const intel_ctx_t *ctx,static bool has_ctx_timestamp (int i915,const intel_ctx_cfg_t *cfg,const struct intel_execution_engine2 *e) { -const int gen =intel_gen (intel_get_drm_devid (i915)); +const int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const intel_ctx_t *tmp_ctx;uint32_t timestamp;
@@ -587,7 +587,7 @@ static void fair_child(int i915, const intel_ctx_t *ctx,igt_assert_eq (p_fence,-1 ); aux_flags =0 ; -if (intel_gen (intel_get_drm_devid (i915)) <8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (i915)) <8 ) aux_flags =I915_EXEC_SECURE ; ping.flags |= aux_flags; aux_flags |= e->flags;
@@ -734,7 +734,7 @@ static void fairness(int i915, const intel_ctx_cfg_t *cfg,igt_require (has_ctx_timestamp (i915, cfg, e));igt_require (gem_class_has_mutable_submission (i915, e->class));if (flags & (F_ISOLATE |F_PING )) -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 );igt_assert (pipe (lnk.child) ==0 );igt_assert (pipe (lnk.parent) ==0 );
@@ -1018,7 +1018,7 @@ static void deadline_child(int i915,unsigned int seq =1 ;int prev =-1 , next =-1 ; -if (intel_gen (intel_get_drm_devid (i915)) <8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (i915)) <8 ) execbuf.flags |=I915_EXEC_SECURE ;gem_execbuf_wr (i915, &execbuf);
@@ -1154,7 +1154,7 @@ static void deadline(int i915, const intel_ctx_cfg_t *cfg, obj[0 ] =delay_create (i915, delay_ctx, &pe, parent_ns);if (flags &DL_PRIO )gem_context_set_priority (i915, delay_ctx->id,1023 ); -if (intel_gen (intel_get_drm_devid (i915)) <8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (i915)) <8 ) execbuf.flags |=I915_EXEC_SECURE ;for (int n =1 ; n <=5 ; n++) {int timeline =sw_sync_timeline_create ();
tests/intel/gem_exec_fence.c +9 -9
@@ -293,7 +293,7 @@ static void test_fence_busy(int fd, const intel_ctx_t *ctx,static void test_fence_busy_all (int fd,const intel_ctx_t *ctx,unsigned flags) {const struct intel_execution_engine2 *e; -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_exec_object2 obj;struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -674,7 +674,7 @@ static void test_submitN(int i915, const intel_ctx_t *ctx,igt_require (gem_scheduler_has_semaphores (i915));igt_require (gem_scheduler_has_preemption (i915)); -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 );for (int i =0 ; i < count; i++) {const intel_ctx_t *tmp_ctx =intel_ctx_create (i915, &ctx->cfg);
@@ -721,7 +721,7 @@ static void test_parallel(int i915, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e) {const struct intel_execution_engine2 *e2; -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));uint32_t scratch =gem_create (i915,4096 );uint32_t *out =gem_mmap__device_coherent (i915, scratch,0 ,4096 ,PROT_READ );uint32_t handle[I915_EXEC_RING_MASK ];
@@ -844,7 +844,7 @@ static void test_parallel(int i915, const intel_ctx_t *ctx,static void test_concurrent (int i915,const intel_ctx_t *ctx,const struct intel_execution_engine2 *e) { -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));uint64_t ahnd =get_reloc_ahnd (i915, ctx->id);struct drm_i915_gem_relocation_entry reloc = { .target_handle =gem_create (i915,4096 ),
@@ -2607,7 +2607,7 @@ static bool use_set_predicate_result(int i915) {uint16_t devid =intel_get_drm_devid (i915); -return intel_graphics_ver (devid) >=IP_VER (12 ,50 ); +return intel_graphics_ver_from_pciid (devid) >=IP_VER (12 ,50 ); } static struct drm_i915_gem_exec_object2
@@ -3289,7 +3289,7 @@ int igt_main() igt_subtest_with_dynamic("submit") {igt_require (gem_scheduler_has_semaphores (i915));igt_require (gem_scheduler_has_preemption (i915)); -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 );for_each_ctx_engine (i915, ctx, e) {igt_dynamic_f ("%s" , e->name)
@@ -3302,7 +3302,7 @@ int igt_main() igt_subtest_with_dynamic("submit3") {igt_require (gem_scheduler_has_semaphores (i915));igt_require (gem_scheduler_has_preemption (i915)); -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 );for_each_ctx_engine (i915, ctx, e) {igt_dynamic_f ("%s" , e->name)
@@ -3315,7 +3315,7 @@ int igt_main() igt_subtest_with_dynamic("submit67") {igt_require (gem_scheduler_has_semaphores (i915));igt_require (gem_scheduler_has_preemption (i915)); -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 );for_each_ctx_engine (i915, ctx, e) {igt_dynamic_f ("%s" , e->name)
@@ -3512,7 +3512,7 @@ int igt_main()* engines which seems to be there * only on Gen8+ */ -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); }igt_describe (test_syncobj_timeline_chain_engines_desc);
tests/intel/gem_exec_flush.c +2 -2
@@ -1579,7 +1579,7 @@ static uint32_t movnt(uint32_t *map, int i)static void run (int fd,unsigned ring,int nchild,int timeout,unsigned flags) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));/* The crux of this testing is whether writes by the GPU are coherent * from the CPU.
@@ -1870,7 +1870,7 @@ enum batch_mode {static void batch (int fd,unsigned ring,int nchild,int timeout,enum batch_mode mode,unsigned flags) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));if (mode ==BATCH_GTT )gem_require_mappable_ggtt (fd);
tests/intel/gem_exec_gttfill.c +1 -1
@@ -141,7 +141,7 @@ static void submit(int fd, uint64_t ahnd, unsigned int gen,static void fillgtt (int fd,const intel_ctx_t *ctx,unsigned ring,int timeout) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_relocation_entry reloc[2 ];unsigned engines[I915_EXEC_RING_MASK +1 ];
tests/intel/gem_exec_latency.c +3 -3
@@ -140,7 +140,7 @@ static void latency_on_ring(int fd, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e, unsigned flags) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const int has_64bit_reloc = gen >=8 ;struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc;
@@ -290,7 +290,7 @@ static void latency_from_ring(int fd, const intel_ctx_t *base_ctx, const struct intel_execution_engine2 *e, unsigned flags) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const int has_64bit_reloc = gen >=8 ;struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc;
@@ -958,7 +958,7 @@ int igt_main() igt_subtest_group() { igt_fixture() -igt_require (intel_gen (intel_get_drm_devid (device)) >=7 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (device)) >=7 ); test_each_engine("rthog-submit", device, ctx, e)rthog_latency_on_ring (device, ctx, e);
tests/intel/gem_exec_nop.c +2 -2
@@ -154,7 +154,7 @@ static void poll_ring(int fd, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e, int timeout) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj;struct drm_i915_gem_relocation_entry reloc[4 ], *r;
@@ -265,7 +265,7 @@ static void poll_ring(int fd, const intel_ctx_t *ctx,static void poll_sequential (int fd,const intel_ctx_t *ctx,const char *name,int timeout) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const struct intel_execution_engine2 *e;struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj[2 ];
tests/intel/gem_exec_parallel.c +1 -1
@@ -255,7 +255,7 @@ static void handle_close(int fd, unsigned int flags, uint32_t handle, void *datastatic void all (int fd,const intel_ctx_t *ctx,struct intel_execution_engine2 *engine,unsigned flags) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));unsigned engines[I915_EXEC_RING_MASK +1 ], nengine;uint32_t scratch[NUMOBJ ], handle[NUMOBJ ];struct thread *threads;
tests/intel/gem_exec_params.c +4 -4
@@ -148,7 +148,7 @@ static bool has_resource_streamer(int fd)static void test_batch_first (int fd) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc[2 ];
@@ -566,7 +566,7 @@ int igt_main() } igt_subtest("rel-constants-invalid-rel-gen5") { -igt_require (intel_gen (devid) >5 ); +igt_require (intel_gen_from_pciid (devid) >5 ); execbuf.flags =I915_EXEC_RENDER |I915_EXEC_CONSTANTS_REL_SURFACE ;RUN_FAIL (EINVAL ); }
@@ -583,7 +583,7 @@ int igt_main() } igt_subtest("sol-reset-not-gen7") { -igt_require (intel_gen (devid) !=7 ); +igt_require (intel_gen_from_pciid (devid) !=7 ); execbuf.flags =I915_EXEC_RENDER |I915_EXEC_GEN7_SOL_RESET ;RUN_FAIL (EINVAL ); }
@@ -632,7 +632,7 @@ int igt_main()/* rsvd1 aka context id is already exercised by gem_ctx_bad_exec */ igt_subtest("cliprects-invalid") { -igt_require (intel_gen (devid) >=5 ); +igt_require (intel_gen_from_pciid (devid) >=5 ); execbuf.flags =0 ; execbuf.num_cliprects =1 ;RUN_FAIL (EINVAL );
tests/intel/gem_exec_reloc.c +5 -5
@@ -663,7 +663,7 @@ static void write_dword(int fd, uint64_t target_offset, uint32_t value) { -unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;
@@ -865,7 +865,7 @@ static void check_bo(int fd, uint32_t handle)static void active (int fd,const intel_ctx_t *ctx,unsigned engine) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_execbuffer2 execbuf;
@@ -944,7 +944,7 @@ static void active(int fd, const intel_ctx_t *ctx, unsigned engine)static bool has_64b_reloc (int fd) { -return intel_gen (intel_get_drm_devid (fd)) >=8 ; +return intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ; }#define NORELOC 1
@@ -1268,7 +1268,7 @@ static void basic_softpin(int fd)static uint64_t concurrent_relocs (int i915,int idx,int count) {struct drm_i915_gem_relocation_entry *reloc; -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));unsigned long sz;int offset;
@@ -1371,7 +1371,7 @@ static void concurrent_child(int i915, const intel_ctx_t *ctx,static uint32_t create_concurrent_batch (int i915,unsigned int count) { -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));size_t sz =ALIGN (4 * (1 +4 * count),4096 );uint32_t handle =gem_create (i915, sz);uint32_t *map, *cs;
tests/intel/gem_exec_schedule.c +10 -10
@@ -176,7 +176,7 @@ static uint32_t __store_dword(int fd, uint64_t ahnd, const intel_ctx_t *ctx, uint32_t cork, uint64_t cork_offset, int fence, unsigned write_domain) { - const unsigned int gen = intel_gen(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd));struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -659,7 +659,7 @@ static void timeslice(int i915, const intel_ctx_cfg_t *cfg,*/ igt_require (gem_scheduler_has_timeslicing (i915)); -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); ctx[0 ] =intel_ctx_create (i915, cfg); obj.handle =timeslicing_batches (i915, &offset);
@@ -761,7 +761,7 @@ static void timesliceN(int i915, const intel_ctx_cfg_t *cfg,*/ igt_require (gem_scheduler_has_timeslicing (i915)); -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 );/* No coupling between requests; free to timeslice */
@@ -796,7 +796,7 @@ static void lateslice(int i915, const intel_ctx_cfg_t *cfg,uint64_t ahnd[3 ];igt_require (gem_scheduler_has_timeslicing (i915)); -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); ctx =intel_ctx_create (i915, cfg); ahnd[0 ] =get_reloc_ahnd (i915, ctx->id);
@@ -909,7 +909,7 @@ static void submit_slice(int i915, const intel_ctx_cfg_t *cfg,*/ igt_require (gem_scheduler_has_timeslicing (i915)); -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 );igt_require (gem_has_vm (i915)); engine_cfg.vm =gem_vm_create (i915);
@@ -1277,7 +1277,7 @@ static void semaphore_resolve(int i915, const intel_ctx_cfg_t *cfg,static void semaphore_noskip (int i915,const intel_ctx_cfg_t *cfg,unsigned long flags) { -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const struct intel_execution_engine2 *outer, *inner;const intel_ctx_t *ctx0, *ctx1;uint64_t ahnd;
@@ -1371,7 +1371,7 @@ noreorder(int i915, const intel_ctx_cfg_t *cfg, unsigned int engine, int prio, unsigned int flags) #define CORKED 0x1 { - const unsigned int gen = intel_gen(intel_get_drm_devid(i915)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(i915));const struct intel_execution_engine2 *e; struct drm_i915_gem_exec_object2 obj = { .handle = gem_create(i915, 4096),
@@ -2305,7 +2305,7 @@ static void wide(int fd, const intel_ctx_cfg_t *cfg, unsigned ring)static void reorder_wide (int fd,const intel_ctx_cfg_t *cfg,unsigned ring) {const unsigned int ring_size =gem_submission_measure (fd, cfg, ring); -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const int priorities[] = {MIN_PRIO ,MAX_PRIO };struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_exec_object2 obj[2 ];
@@ -3066,7 +3066,7 @@ static int cmp_u32(const void *A, const void *B)static uint32_t read_ctx_timestamp (int i915,const intel_ctx_t *ctx,const struct intel_execution_engine2 *e) { -const int use_64b =intel_gen (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_exec_object2 obj = {
@@ -3269,7 +3269,7 @@ int igt_main() igt_subtest_group() { igt_fixture() {igt_require (gem_scheduler_has_timeslicing (fd)); -igt_require (intel_gen (intel_get_drm_devid (fd)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ); }test_each_engine ("fairslice" , fd, ctx, e)
tests/intel/gem_exec_store.c +3 -3
@@ -71,7 +71,7 @@ IGT_TEST_DESCRIPTION("Exercise store dword functionality using execbuf-ioctl");static void store_dword (int fd,const intel_ctx_t *ctx,const struct intel_execution_engine2 *e) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -152,7 +152,7 @@ static void store_cachelines(int fd, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e, unsigned int flags) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_exec_object2 *obj;struct drm_i915_gem_relocation_entry *reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -248,7 +248,7 @@ static void store_cachelines(int fd, const intel_ctx_t *ctx,static void store_all (int fd,const intel_ctx_t *ctx) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_exec_object2 obj[2 ];struct intel_execution_engine2 *engine;struct drm_i915_gem_relocation_entry *reloc;
tests/intel/gem_exec_suspend.c +1 -1
@@ -143,7 +143,7 @@ static void test_all(int fd, const intel_ctx_t *ctx, unsigned flags, uint32_t restatic void run_test (int fd,const intel_ctx_t *ctx,unsigned engine,unsigned flags,uint32_t region) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;
tests/intel/gem_exec_whisper.c +3 -3
@@ -164,7 +164,7 @@ static void verify_reloc(int fd, uint32_t handle, {if (VERIFY ) {uint64_t target =0 ; -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 )gem_read (fd, handle, reloc->offset, &target,8 );else gem_read (fd, handle, reloc->offset, &target,4 );
@@ -203,7 +203,7 @@ static void init_hang(struct hang *h, int fd, const intel_ctx_cfg_t *cfg) h->fd =drm_reopen_driver (fd);igt_allow_hang (h->fd,0 ,0 ); - gen =intel_gen (intel_get_drm_devid (h->fd)); + gen =intel_gen_from_pciid (intel_get_drm_devid (h->fd));if (gem_has_contexts (fd)) { h->ctx =intel_ctx_create (h->fd, cfg);
@@ -293,7 +293,7 @@ static void whisper(int fd, const intel_ctx_t *ctx, unsigned engine, unsigned flags) {const uint32_t bbe =MI_BATCH_BUFFER_END ; -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const unsigned int ncpus =sysconf (_SC_NPROCESSORS_ONLN);struct drm_i915_gem_exec_object2 batches[QLEN ];struct drm_i915_gem_relocation_entry inter[QLEN ];
tests/intel/gem_fenced_exec_thrash.c +1 -1
@@ -217,7 +217,7 @@ int igt_main()run_test (fd, num_fences,0 , flags); } igt_subtest("too-many-fences") -run_test (fd, num_fences +1 ,intel_gen (devid) >=4 ?0 :ENOBUFS ,0 ); +run_test (fd, num_fences +1 ,intel_gen_from_pciid (devid) >=4 ?0 :ENOBUFS ,0 ); igt_fixture()drm_close_driver (fd);
tests/intel/gem_gtt_hog.c +1 -1
@@ -177,7 +177,7 @@ int igt_simple_main() data.fd =drm_open_driver (DRIVER_INTEL ); data.devid =intel_get_drm_devid (data.fd); - data.intel_gen =intel_gen (data.devid); + data.intel_gen =intel_gen_from_pciid (data.devid);gettimeofday (&start,NULL );igt_fork (child,ARRAY_SIZE (children))
tests/intel/gem_linear_blits.c +4 -4
@@ -110,7 +110,7 @@ static void copy(int fd, uint64_t ahnd, uint32_t dst, uint32_t src, batch[i++] =XY_SRC_COPY_BLT_CMD |XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB ; -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) batch[i -1 ] |=8 ;else batch[i -1 ] |=6 ;
@@ -121,12 +121,12 @@ static void copy(int fd, uint64_t ahnd, uint32_t dst, uint32_t src, batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] = obj[0 ].offset; -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 ) batch[i++] = obj[0 ].offset >>32 ; batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] = obj[1 ].offset; -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 ) batch[i++] = obj[1 ].offset >>32 ; batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
@@ -160,7 +160,7 @@ static void copy(int fd, uint64_t ahnd, uint32_t dst, uint32_t src, reloc[1 ].target_handle = src; reloc[1 ].delta =0 ; reloc[1 ].offset =7 *sizeof (batch[0 ]); -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) reloc[1 ].offset +=sizeof (batch[0 ]); reloc[1 ].presumed_offset = obj[1 ].offset; reloc[1 ].read_domains =I915_GEM_DOMAIN_RENDER ;
tests/intel/gem_media_vme.c +1 -1
@@ -133,7 +133,7 @@ int igt_simple_main()igt_assert (ctx);/* ICL hangs if non-VME enabled slices are enabled with a VME kernel. */ -if (intel_gen (devid) ==11 ) +if (intel_gen_from_pciid (devid) ==11 )shut_non_vme_subslices (drm_fd, ctx);igt_fork_hang_detector (drm_fd);
tests/intel/gem_mmap_gtt.c +6 -6
@@ -1192,14 +1192,14 @@ test_hang_user(int i915)static int min_tile_width (uint32_t devid,int tiling) {if (tiling <0 ) { -if (intel_gen (devid) >=4 ) +if (intel_gen_from_pciid (devid) >=4 )return 4096 -min_tile_width (devid, -tiling);else return 1024 ; } -if (intel_gen (devid) ==2 ) +if (intel_gen_from_pciid (devid) ==2 )return 128 ;else if (tiling ==I915_TILING_X )return 512 ;
@@ -1212,15 +1212,15 @@ static int min_tile_width(uint32_t devid, int tiling)static int max_tile_width (uint32_t devid,int tiling) {if (tiling <0 ) { -if (intel_gen (devid) >=4 ) +if (intel_gen_from_pciid (devid) >=4 )return 4096 +min_tile_width (devid, -tiling);else return 2048 ; } -if (intel_gen (devid) >=7 ) +if (intel_gen_from_pciid (devid) >=7 )return 256 <<10 ; -else if (intel_gen (devid) >=4 ) +else if (intel_gen_from_pciid (devid) >=4 )return 128 <<10 ;else return 8 <<10 ;
@@ -1268,7 +1268,7 @@ test_huge_bo(int fd, int huge, int tiling)* a quarter size one instead. */ if (tiling && -intel_gen (intel_get_drm_devid (fd)) <4 && +intel_gen_from_pciid (intel_get_drm_devid (fd)) <4 && size >=gem_global_aperture_size (fd) /2 ) size /=2 ;break ;
tests/intel/gem_read_read_speed.c +1 -1
@@ -255,7 +255,7 @@ int igt_main()igt_require_gem (fd); devid =intel_get_drm_devid (fd); -igt_require (intel_gen (devid) >=6 ); +igt_require (intel_gen_from_pciid (devid) >=6 ); rendercopy =igt_get_render_copyfunc (fd);igt_require (rendercopy);
tests/intel/gem_render_copy.c +4 -4
@@ -223,7 +223,7 @@ copy_from_linear_buf(data_t *data, struct intel_buf *src, struct intel_buf *dst)static void *linear_copy_ccs (data_t *data,struct intel_buf *buf) {void *ccs_data, *linear; -unsigned int gen =intel_gen (data->devid); +unsigned int gen =intel_gen_from_pciid (data->devid);int ccs_size =intel_buf_ccs_width (gen, buf) *intel_buf_ccs_height (gen, buf);int buf_size =intel_buf_size (buf);
@@ -362,7 +362,7 @@ scratch_buf_check_all(data_t *data,static void scratch_buf_ccs_check (data_t *data,struct intel_buf *buf) { -unsigned int gen =intel_gen (data->devid); +unsigned int gen =intel_gen_from_pciid (data->devid);int ccs_size =intel_buf_ccs_width (gen, buf) *intel_buf_ccs_height (gen, buf);uint8_t *linear;
@@ -460,12 +460,12 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling, dst_compression == I915_COMPRESSION_NONE);/* no Yf before gen9 */ -if (intel_gen (data->devid) <9 ) +if (intel_gen_from_pciid (data->devid) <9 ) num_src--;if (src_tiling == I915_TILING_Yf || dst_tiling == I915_TILING_Yf || src_compressed || dst_compressed) -igt_require (intel_gen (data->devid) >=9 ); +igt_require (intel_gen_from_pciid (data->devid) >=9 ); ibb =intel_bb_create (data->drm_fd,4096 );
tests/intel/gem_ringfill.c +2 -2
@@ -207,7 +207,7 @@ static void setup_execbuf(int fd, const intel_ctx_t *ctx, struct drm_i915_gem_relocation_entry *reloc, unsigned int ring) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const uint32_t bbe =MI_BATCH_BUFFER_END ;uint32_t *batch, *b;int i;
@@ -428,7 +428,7 @@ int igt_main()igt_require_gem (fd);igt_require (has_lut_handle (fd)); - gen =intel_gen (intel_get_drm_devid (fd)); + gen =intel_gen_from_pciid (intel_get_drm_devid (fd));if (gen >3 && gen <6 ) {/* ctg and ilk need secure batches */ igt_device_set_master (fd); master = true;
tests/intel/gem_set_tiling_vs_blt.c +1 -1
@@ -164,7 +164,7 @@ static void do_test(struct buf_ops *bops, uint32_t tiling, unsigned stride, blt_stride = stride; blt_bits =0 ; -if (intel_gen (ibb->devid) >=4 && tiling !=I915_TILING_NONE ) { +if (intel_gen_from_pciid (ibb->devid) >=4 && tiling !=I915_TILING_NONE ) { blt_stride /=4 ; blt_bits =XY_SRC_COPY_BLT_SRC_TILED ; }
tests/intel/gem_softpin.c +3 -3
@@ -504,7 +504,7 @@ static void test_reverse(int i915)static uint64_t busy_batch (int fd) { -unsigned const int gen =intel_gen (intel_get_drm_devid (fd)); +unsigned const int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const int has_64bit_reloc = gen >=8 ;struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 object[2 ];
@@ -692,7 +692,7 @@ static void xchg_offset(void *array, unsigned i, unsigned j)enum sleep {NOSLEEP ,SUSPEND ,HIBERNATE };static void test_noreloc (int fd,enum sleep sleep,unsigned flags) { -unsigned const int gen =intel_gen (intel_get_drm_devid (fd)); +unsigned const int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));const uint32_t size =4096 ;const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_execbuffer2 execbuf;
@@ -1021,7 +1021,7 @@ static void submit(int fd, unsigned int gen,static void test_allocator_evict (int fd,const intel_ctx_t *ctx,unsigned ring,int timeout) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_execbuffer2 execbuf;unsigned engines[I915_EXEC_RING_MASK +1 ];volatile uint64_t *shared;
tests/intel/gem_streaming_writes.c +2 -2
@@ -94,7 +94,7 @@ IGT_TEST_DESCRIPTION("Test of streaming writes into active GPU sources");static void test_streaming (int fd,int mode,int sync) { -const bool has_64bit_addr =intel_gen (intel_get_drm_devid (fd)) >=8 ; +const bool has_64bit_addr =intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ;const bool do_relocs =gem_has_relocations (fd);struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 exec[3 ];
@@ -274,7 +274,7 @@ static void test_streaming(int fd, int mode, int sync)static void test_batch (int fd,int mode,int reverse) { -const bool has_64bit_addr =intel_gen (intel_get_drm_devid (fd)) >=8 ; +const bool has_64bit_addr =intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ;const bool do_relocs =gem_has_relocations (fd);struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 exec[3 ];
tests/intel/gem_sync.c +4 -4
@@ -697,7 +697,7 @@ static void store_ring(int fd, const intel_ctx_t *ctx, unsigned ring, int num_children, int timeout) { - const unsigned int gen = intel_gen(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd));struct intel_engine_data ied;bool has_relocs =gem_has_relocations (fd);
@@ -797,7 +797,7 @@ static void switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring, int num_children, int timeout) { - const unsigned int gen = intel_gen(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd));struct intel_engine_data ied;bool has_relocs =gem_has_relocations (fd);
@@ -981,7 +981,7 @@ static void __store_many(int fd, const intel_ctx_t *ctx, unsigned ring, int timeout, unsigned long *cycles) { - const unsigned int gen = intel_gen(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd));const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_execbuffer2 execbuf;
@@ -1191,7 +1191,7 @@ sync_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout)static void store_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct intel_engine_data ied;bool has_relocs =gem_has_relocations (fd);
tests/intel/gem_tiled_fence_blits.c +2 -2
@@ -112,7 +112,7 @@ update_batch(int fd, uint32_t bb_handle,struct drm_i915_gem_relocation_entry *reloc, uint64_t dst_offset, uint64_t src_offset) { - const unsigned int gen = intel_gen(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd));const bool has_64b_reloc = gen >=8 ;uint32_t *batch;uint32_t pitch;
@@ -202,7 +202,7 @@ static void run_test(int fd, int count, uint64_t end)memset (&eb,0 ,sizeof (eb)); eb.buffers_ptr =to_user_pointer (obj); eb.buffer_count =ARRAY_SIZE (obj); -if (intel_gen (intel_get_drm_devid (fd)) >=6 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=6 ) eb.flags =I915_EXEC_BLT ; bo = calloc(count,
tests/intel/gem_tiling_max_stride.c +4 -4
@@ -86,13 +86,13 @@ int igt_simple_main() devid =intel_get_drm_devid (fd);gem_require_mappable_ggtt (fd); -if (intel_gen (devid) >=7 ) { +if (intel_gen_from_pciid (devid) >=7 ) { stride =256 *1024 ; - }else if (intel_gen (devid) >=4 ) { + }else if (intel_gen_from_pciid (devid) >=4 ) { stride =128 *1024 ; - }else if (intel_gen (devid) >=3 ) { + }else if (intel_gen_from_pciid (devid) >=3 ) { stride =8 *1024 ; - }else if (intel_gen (devid) >=2 ) { + }else if (intel_gen_from_pciid (devid) >=2 ) { tile_width =128 ; tile_height =16 ; stride =8 *1024 ;
tests/intel/gem_userptr_blits.c +10 -10
@@ -236,7 +236,7 @@ static int copy(int fd, uint32_t dst, uint32_t src)XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB ; -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 ) batch[i -1 ] |=8 ;else batch[i -1 ] |=6 ;
@@ -247,12 +247,12 @@ static int copy(int fd, uint32_t dst, uint32_t src) batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] =lower_32_bits (dst_offset);/* dst reloc*/ -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 ) batch[i++] =upper_32_bits (CANONICAL (dst_offset)); batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] =lower_32_bits (src_offset);/* src reloc */ -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 ) batch[i++] =upper_32_bits (CANONICAL (src_offset)); batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
@@ -286,7 +286,7 @@ static int copy(int fd, uint32_t dst, uint32_t src) reloc[1 ].target_handle = src; reloc[1 ].delta =0 ; reloc[1 ].offset =7 *sizeof (batch[0 ]); -if (intel_gen (intel_get_drm_devid (fd)) >=8 ) +if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) reloc[1 ].offset +=sizeof (batch[0 ]); reloc[1 ].presumed_offset =0 ; reloc[1 ].read_domains =I915_GEM_DOMAIN_RENDER ;
@@ -389,7 +389,7 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) reloc[1 ].target_handle = src; reloc[1 ].delta =0 ; reloc[1 ].offset =7 *sizeof (batch[0 ]); -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 ) reloc[1 ].offset +=sizeof (batch[0 ]); reloc[1 ].presumed_offset = src_offset; reloc[1 ].read_domains =I915_GEM_DOMAIN_RENDER ;
@@ -399,7 +399,7 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) batch[i++] =XY_SRC_COPY_BLT_CMD |XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB ; -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 ) batch[i -1 ] |=8 ;else batch[i -1 ] |=6 ;
@@ -409,12 +409,12 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] =lower_32_bits (dst_offset); -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 ) batch[i++] =upper_32_bits (CANONICAL (dst_offset)); batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] =lower_32_bits (src_offset); -if (intel_gen (devid) >=8 ) +if (intel_gen_from_pciid (devid) >=8 ) batch[i++] =upper_32_bits (CANONICAL (src_offset)); batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
@@ -452,7 +452,7 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo)static void store_dword (int fd,uint32_t target,uint32_t offset,uint32_t value) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -1420,7 +1420,7 @@ static void store_dword_rand(int i915, const intel_ctx_t *ctx, uint32_t target, uint64_t sz, int count) { - const unsigned int gen = intel_gen(intel_get_drm_devid(i915)); + const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(i915));struct drm_i915_gem_relocation_entry *reloc;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_execbuffer2 exec;
tests/intel/gem_vm_create.c +1 -1
@@ -279,7 +279,7 @@ static void execbuf(int i915)static void write_to_address (int fd,uint32_t ctx,uint64_t addr,uint32_t value) { -const unsigned int gen =intel_gen (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd));struct drm_i915_gem_exec_object2 batch = { .handle =gem_create (fd,4096 ) };
tests/intel/gem_watchdog.c +2 -2
@@ -333,7 +333,7 @@ static void delay(int i915, uint64_t addr, uint64_t ns) { -const int use_64b =intel_gen (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);#define CS_GPR (x) (base + 0x600 + 8 * (x))#define RUNTIME (base + 0x3a8)
@@ -467,7 +467,7 @@ far_delay(int i915, unsigned long delay, unsigned int target,uint32_t handle =gem_create (i915,4096 );unsigned long count, submit; -igt_require (intel_gen (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 );igt_require (gem_class_can_store_dword (i915, e->class));fcntl (i915,F_SETFL ,fcntl (i915,F_GETFL ) |O_NONBLOCK );
tests/intel/gem_workarounds.c +1 -1
@@ -312,7 +312,7 @@ int igt_main()intel_mmio_use_pci_bar (&mmio_data,igt_device_get_pci_device (device)); - gen =intel_gen (intel_get_drm_devid (device)); + gen =intel_gen_from_pciid (intel_get_drm_devid (device)); fd =igt_debugfs_open (device,"i915_wa_registers" ,O_RDONLY ); file =fdopen (fd,"r" );
tests/intel/gen7_exec_parse.c +1 -1
@@ -499,7 +499,7 @@ int igt_main() handle =gem_create (fd,4096 );/* ATM cmd parser only exists on gen7. */ -igt_require (intel_gen (intel_get_drm_devid (fd)) ==7 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (fd)) ==7 );igt_fork_hang_detector (fd); }
tests/intel/gen9_exec_parse.c +1 -1
@@ -1217,7 +1217,7 @@ int igt_main()gem_require_blitter (i915);igt_require (gem_cmdparser_version (i915) >=10 ); -igt_require (intel_gen (intel_get_drm_devid (i915)) ==9 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) ==9 ); handle =gem_create (i915,HANDLE_SIZE );
tests/intel/i915_getparams_basic.c +4 -3
@@ -89,14 +89,15 @@ subslice_total(void)int ret; ret =getparam (I915_PARAM_SUBSLICE_TOTAL , (int *)&subslice_total); -igt_skip_on_f (ret == -EINVAL &&intel_gen (devid),"Interface not supported by kernel\n" ); +igt_skip_on_f (ret == -EINVAL &&intel_gen_from_pciid (devid), +"Interface not supported by kernel\n" );if (ret) {/* * These devices are not required to implement the * interface. If they do not, -ENODEV must be returned. */ -if ((intel_gen (devid) <8 ) || +if ((intel_gen_from_pciid (devid) <8 ) ||IS_BROADWELL (devid) ||igt_run_in_simulation ()) {igt_assert_eq (ret, -ENODEV );
@@ -133,7 +134,7 @@ eu_total(void)* These devices are not required to implement the * interface. If they do not, -ENODEV must be returned. */ -if ((intel_gen (devid) <8 ) || +if ((intel_gen_from_pciid (devid) <8 ) ||IS_BROADWELL (devid) ||igt_run_in_simulation ()) {igt_assert_eq (ret, -ENODEV );
tests/intel/i915_module_load.c +1 -1
@@ -77,7 +77,7 @@ IGT_TEST_DESCRIPTION("Tests the i915 module loading.");static void store_all (int i915) { -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));uint32_t engines[I915_EXEC_RING_MASK +1 ];uint32_t batch[16 ];uint64_t ahnd, offset, bb_offset;
tests/intel/i915_pm_rc6_residency.c +3 -3
@@ -311,7 +311,7 @@ static void restore_freq(int sig)static void bg_load (int i915,const intel_ctx_t *ctx,uint64_t engine_flags,unsigned int flags,unsigned long *ctl,unsigned int gt) { -const bool has_execlists =intel_gen (intel_get_drm_devid (i915)) >=8 ; +const bool has_execlists =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ;struct sigaction act = { .sa_handler = sighandler };
@@ -392,7 +392,7 @@ static void rc6_idle(int i915, const intel_ctx_t *ctx, uint64_t flags, unsigned {const int64_t duration_ns =2 *SLEEP_DURATION * (int64_t )NSEC_PER_SEC ;const int tolerance =20 ;/* Some RC6 is better than none! */ -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));struct {const char *name;unsigned int flags;
@@ -500,7 +500,7 @@ static void rc6_fence(int i915, unsigned int gt) {const int64_t duration_ns =SLEEP_DURATION * (int64_t )NSEC_PER_SEC ;const int tolerance =20 ;/* Some RC6 is better than none! */ -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));const struct intel_execution_engine2 *e;const intel_ctx_t *ctx;struct power_sample sample[2 ];
tests/intel/i915_pm_rpm.c +1 -1
@@ -736,7 +736,7 @@ static void debugfs_forcewake_user_subtest(void) {int fd, rc; -igt_require (intel_gen (ms_data.devid) >=6 ); +igt_require (intel_gen_from_pciid (ms_data.devid) >=6 );disable_all_screens_and_wait (&ms_data);
tests/intel/i915_pm_sseu.c +1 -1
@@ -300,7 +300,7 @@ gem_init(void) gem.init =1 ; gem.devid =intel_get_drm_devid (gem.drm_fd); - gem.gen =intel_gen (gem.devid); + gem.gen =intel_gen_from_pciid (gem.devid);igt_require_f (gem.gen >=8 ,"SSEU power gating only relevant for Gen8+" );
tests/intel/kms_ccs.c +4 -4
@@ -565,7 +565,7 @@ static void access_flat_ccs_surface(struct igt_fb *fb, bool verify_compression)uint16_t cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ;uint8_t uc_mocs =intel_get_uc_mocs_index (fb->fd);uint8_t comp_pat_index =intel_get_pat_idx_wt (fb->fd); -uint32_t region = (intel_gen (intel_get_drm_devid (fb->fd)) >=20 && +uint32_t region = (intel_gen_from_pciid (intel_get_drm_devid (fb->fd)) >=20 &&xe_has_vram (fb->fd)) ?REGION_LMEM (0 ) :REGION_SMEM ;struct drm_xe_engine_class_instance inst = {
@@ -645,7 +645,7 @@ static void fill_fb_random(int drm_fd, igt_fb_t *fb)igt_assert_eq (0 ,gem_munmap (map, fb->size));/* randomize also ccs surface on Xe2 */ -if (intel_gen (intel_get_drm_devid (drm_fd)) >=20 ) +if (intel_gen_from_pciid (intel_get_drm_devid (drm_fd)) >=20 )access_flat_ccs_surface (fb, false); }
@@ -1145,10 +1145,10 @@ static void test_output(data_t *data, const int testnum) igt_subtest_with_dynamic_f("%s-%s", tests[testnum].testname, ccs_modifiers[i].str) {if (ccs_modifiers[i].modifier ==I915_FORMAT_MOD_4_TILED_BMG_CCS || ccs_modifiers[i].modifier ==I915_FORMAT_MOD_4_TILED_LNL_CCS ) { -igt_require_f (intel_gen (dev_id) >=20 , +igt_require_f (intel_gen_from_pciid (dev_id) >=20 ,"Xe2 platform needed.\n" ); }else { -igt_require_f (intel_gen (dev_id) <20 , +igt_require_f (intel_gen_from_pciid (dev_id) <20 ,"Older than Xe2 platform needed.\n" ); }
tests/intel/kms_fbcon_fbt.c +1 -1
@@ -179,7 +179,7 @@ static bool fbc_wait_until_update(struct drm_info *drm)* For older GENs FBC is still expected to be disabled as it still * relies on a tiled and fenceable framebuffer to track modifications. */ -if (intel_gen (intel_get_drm_devid (drm->fd)) >=9 ) { +if (intel_gen_from_pciid (intel_get_drm_devid (drm->fd)) >=9 ) {if (!fbc_wait_until_enabled (drm->debugfs_fd))return false;/*
tests/intel/kms_frontbuffer_tracking.c +3 -3
@@ -3057,13 +3057,13 @@ static bool tiling_is_valid(int feature_flags, enum tiling_type tiling)switch (tiling) {case TILING_LINEAR : -return intel_gen (drm.devid) >=9 ; +return intel_gen_from_pciid (drm.devid) >=9 ;case TILING_X :return (intel_get_device_info (drm.devid)->display_ver >29 ) ? false : true;case TILING_Y :return true;case TILING_4 : -return intel_gen (drm.devid) >=12 ; +return intel_gen_from_pciid (drm.devid) >=12 ;default :igt_assert (false);return false;
@@ -4469,7 +4469,7 @@ int igt_main_args("", long_options, help_str, opt_handler, NULL)igt_require (igt_draw_supports_method (drm.fd, t.method));if (t.tiling ==TILING_Y ) { -igt_require (intel_gen (drm.devid) >=9 ); +igt_require (intel_gen_from_pciid (drm.devid) >=9 );igt_require (!intel_get_device_info (drm.devid)->has_4tile); }
tests/intel/kms_pipe_stress.c +2 -2
@@ -818,7 +818,7 @@ static void prepare_test(struct data *data)create_framebuffers (data); -if (intel_gen (intel_get_drm_devid (data->drm_fd)) >9 ) +if (intel_gen_from_pciid (intel_get_drm_devid (data->drm_fd)) >9 )start_gpu_threads (data); }
@@ -826,7 +826,7 @@ static void finish_test(struct data *data) {int i; -if (intel_gen (intel_get_drm_devid (data->drm_fd)) >9 ) +if (intel_gen_from_pciid (intel_get_drm_devid (data->drm_fd)) >9 )stop_gpu_threads (data);/*
tests/intel/perf.c +26 -26
207 lines not on this page · raw message
tests/intel/perf_pmu.c +4 -4
@@ -237,7 +237,7 @@ init(int gem_fd, const intel_ctx_t *ctx, err = errno; exists =gem_context_has_engine (gem_fd, ctx->id, e->flags); -if (intel_gen (intel_get_drm_devid (gem_fd)) <6 && +if (intel_gen_from_pciid (intel_get_drm_devid (gem_fd)) <6 && sample ==I915_SAMPLE_SEMA ) exists = false;
@@ -742,7 +742,7 @@ sema_wait(int gem_fd, const intel_ctx_t *ctx,uint64_t ahnd =get_reloc_ahnd (gem_fd, ctx->id);uint64_t obj_offset, bb_offset; -igt_require (intel_gen (intel_get_drm_devid (gem_fd)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (gem_fd)) >=8 );/** * Setup up a batchbuffer with a polling semaphore wait command which
@@ -977,7 +977,7 @@ sema_busy(int gem_fd, const intel_ctx_t *ctx,int fd[2 ];uint64_t ahnd =get_reloc_ahnd (gem_fd, ctx->id); -igt_require (intel_gen (intel_get_drm_devid (gem_fd)) >=8 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (gem_fd)) >=8 ); fd[0 ] =open_group (gem_fd,I915_PMU_ENGINE_SEMA (e->class, e->instance),-1 );
@@ -1124,7 +1124,7 @@ event_wait(int gem_fd, const intel_ctx_t *ctx,int fd; devid =intel_get_drm_devid (gem_fd); -igt_require (intel_gen (devid) >=7 ); +igt_require (intel_gen_from_pciid (devid) >=7 );igt_require (has_secure_batches (gem_fd));igt_skip_on (IS_VALLEYVIEW (devid) ||IS_CHERRYVIEW (devid));
tests/intel/sysfs_preempt_timeout.c +1 -1
@@ -286,7 +286,7 @@ static void test_off(int i915, int engine)* GuC submission, but we are not really losing coverage as this test * isn't not a UMD use case. */ -igt_require (intel_gen (intel_get_drm_devid (i915)) <12 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) <12 );igt_assert (igt_sysfs_scanf (engine,"class" ,"%u" , &class) ==1 );igt_assert (igt_sysfs_scanf (engine,"instance" ,"%u" , &inst) ==1 );
tests/intel/sysfs_timeslice_duration.c +1 -1
@@ -208,7 +208,7 @@ static uint64_t __test_duration(int i915, int engine, unsigned int timeout) .buffer_count = ARRAY_SIZE(obj), .buffers_ptr = to_user_pointer(obj), }; -const unsigned int gen =intel_gen (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));double duration =clockrate (i915);unsigned int class, inst, mmio;uint32_t *cs, *map;
tests/intel/xe_ccs.c +8 -8
@@ -128,7 +128,7 @@ static void surf_copy(int xe,int result;igt_assert (mid->compression); -if (intel_gen (devid) >=20 && mid->compression) { +if (intel_gen_from_pciid (devid) >=20 && mid->compression) { comp_pat_index =intel_get_pat_idx_uc_comp (xe); cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ; }
@@ -177,7 +177,7 @@ static void surf_copy(int xe,if (IS_GEN (devid,12 ) &&is_intel_dgfx (xe)) {igt_assert (!strcmp (orig, newsum));igt_assert (!strcmp (orig2, newsum2)); - }else if (intel_gen (devid) >=20 ) { + }else if (intel_gen_from_pciid (devid) >=20 ) {if (is_intel_dgfx (xe)) {/* buffer object would become * uncompressed in xe2+ dgfx
@@ -227,7 +227,7 @@ static void surf_copy(int xe,* uncompressed in xe2+ dgfx, and therefore retrieve the * ccs by copying 0 to ccsmap */ -if (suspend_resume &&intel_gen (devid) >=20 &&is_intel_dgfx (xe)) +if (suspend_resume &&intel_gen_from_pciid (devid) >=20 &&is_intel_dgfx (xe))memset (ccsmap,0 , ccssize);else /* retrieve back ccs */
@@ -353,7 +353,7 @@ static void block_copy(int xe,uint64_t bb_size =xe_bb_size (xe,SZ_4K );uint64_t ahnd =intel_allocator_open (xe, ctx->vm,INTEL_ALLOCATOR_RELOC );uint32_t run_id = mid_tiling; -uint32_t mid_region = (intel_gen (intel_get_drm_devid (xe)) >=20 && +uint32_t mid_region = (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=20 && !xe_has_vram (xe)) ? region1 : region2;uint32_t bb;enum blt_compression mid_compression = config->compression;
@@ -441,7 +441,7 @@ static void block_copy(int xe,if (config->inplace) {uint8_t pat_index =DEFAULT_PAT_INDEX ; -if (intel_gen (intel_get_drm_devid (xe)) >=20 && config->compression) +if (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=20 && config->compression) pat_index =intel_get_pat_idx_uc_comp (xe); blt_set_object(&blt.dst, mid->handle, dst->size, mid->region, 0,
@@ -488,7 +488,7 @@ static void block_multicopy(int xe,uint64_t bb_size =xe_bb_size (xe,SZ_4K );uint64_t ahnd =intel_allocator_open (xe, ctx->vm,INTEL_ALLOCATOR_RELOC );uint32_t run_id = mid_tiling; -uint32_t mid_region = (intel_gen (intel_get_drm_devid (xe)) >=20 && +uint32_t mid_region = (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=20 && !xe_has_vram (xe)) ? region1 : region2;uint32_t bb;enum blt_compression mid_compression = config->compression;
@@ -530,7 +530,7 @@ static void block_multicopy(int xe,if (config->inplace) {uint8_t pat_index =DEFAULT_PAT_INDEX ; -if (intel_gen (intel_get_drm_devid (xe)) >=20 && config->compression) +if (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=20 && config->compression) pat_index =intel_get_pat_idx_uc_comp (xe); blt_set_object(&blt3.dst, mid->handle, dst->size, mid->region,
@@ -715,7 +715,7 @@ static void block_copy_test(int xe,int tiling, width, height; -if (intel_gen (dev_id) >=20 && config->compression) +if (intel_gen_from_pciid (dev_id) >=20 && config->compression)igt_require (HAS_FLATCCS (dev_id));if (config->compression && !blt_block_copy_supports_compression (xe))
tests/intel/xe_compute.c +4 -4
@@ -232,7 +232,7 @@ test_compute_kernel_loop(uint64_t loop_duration)double elapse_time, lower_bound, upper_bound; fd =drm_open_driver (DRIVER_XE ); - ip_ver =intel_graphics_ver (intel_get_drm_devid (fd)); + ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); kernels = intel_compute_square_kernels;while (kernels->kernel) {
@@ -335,7 +335,7 @@ igt_check_supported_pipeline(void)const struct intel_compute_kernels *kernels; fd =drm_open_driver (DRIVER_XE ); - ip_ver =intel_graphics_ver (intel_get_drm_devid (fd)); + ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); kernels = intel_compute_square_kernels;drm_close_driver (fd);
@@ -432,7 +432,7 @@ test_eu_busy(uint64_t duration_sec) fd =drm_open_driver (DRIVER_XE ); - ip_ver =intel_graphics_ver (intel_get_drm_devid (fd)); + ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); kernels = intel_compute_square_kernels;while (kernels->kernel) {if (ip_ver == kernels->ip_ver)
@@ -518,7 +518,7 @@ int igt_main() igt_fixture() { xe =drm_open_driver (DRIVER_XE ); sriov_enabled =is_sriov_mode (xe); - ip_ver =intel_graphics_ver (intel_get_drm_devid (xe)); + ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (xe));igt_store_ccs_mode (ccs_mode,ARRAY_SIZE (ccs_mode)); }
tests/intel/xe_debugfs.c +1 -1
@@ -329,7 +329,7 @@ static void test_info_read(struct xe_device *xe_dev) failed = true; } -if (intel_gen (devid) <20 ) { +if (intel_gen_from_pciid (devid) <20 ) { val =-1 ;switch (config->info[DRM_XE_QUERY_CONFIG_VA_BITS ]) {
tests/intel/xe_eudebug_online.c +2 -2
@@ -403,7 +403,7 @@ static bool intel_gen_needs_resume_wa(int fd) {const uint32_t id =intel_get_drm_devid (fd); -return intel_gen (id) ==12 &&intel_graphics_ver (id) <IP_VER (12 ,55 ); +return intel_gen_from_pciid (id) ==12 &&intel_graphics_ver_from_pciid (id) <IP_VER (12 ,55 ); } static uint64_t eu_ctl_resume(int fd, int debugfd, uint64_t client,
@@ -1264,7 +1264,7 @@ static bool intel_gen_has_lockstep_eus(int fd)* excepted into SIP. In this level, the hardware has only one attention * thread bit for units. PVC is the first one without lockstepping. */ -return !(intel_graphics_ver (id) ==IP_VER (12 ,60 ) ||intel_gen (id) >=20 ); +return !(intel_graphics_ver_from_pciid (id) ==IP_VER (12 ,60 ) ||intel_gen_from_pciid (id) >=20 ); }static int query_attention_bitmask_size (int fd,int gt)
tests/intel/xe_evict.c +3 -3
@@ -902,7 +902,7 @@ int igt_main()igt_debug ("Max working set %d n_execs %d\n" , ws, s->n_execs);if (s->flags &MULTI_QUEUE ) { -igt_require (intel_graphics_ver (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 ));igt_require (multi_queue_hwe !=NULL );igt_assert_f (!(s->flags &MULTI_VM ),"MULTI_QUEUE and MULTI_VM cannot be used together.\n" );
@@ -922,7 +922,7 @@ int igt_main()igt_debug ("Max working set %d n_execs %d\n" , ws, s->n_execs);if (s->flags &MULTI_QUEUE ) { -igt_require (intel_graphics_ver (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 ));igt_require (multi_queue_hwe !=NULL );igt_assert_f (!(s->flags &MULTI_VM ),"MULTI_QUEUE and MULTI_VM cannot be used together.\n" );
@@ -941,7 +941,7 @@ int igt_main()igt_debug ("Max working set %d n_execs %d\n" , ws, s->n_execs);if (s->flags &MULTI_QUEUE ) { -igt_require (intel_graphics_ver (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 ));igt_require (multi_queue_hwe !=NULL );igt_assert_f (!(s->flags &MULTI_VM ),"MULTI_QUEUE and MULTI_VM cannot be used together.\n" );
tests/intel/xe_exec_fault_mode.c +1 -1
@@ -444,7 +444,7 @@ test_exec_main(int fd, int n_exec_queues, int n_execs, unsigned int flags)struct drm_xe_engine_class_instance *hwe;if (flags &MULTI_QUEUE ) { -igt_require (intel_graphics_ver (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 ));xe_for_each_multi_queue_engine (fd, hwe)test_exec (fd, hwe, n_exec_queues, n_execs, flags); }else {
tests/intel/xe_exec_multi_queue.c +1 -1
@@ -1047,7 +1047,7 @@ int igt_main() igt_fixture() { fd =drm_open_driver (DRIVER_XE ); -igt_require (intel_graphics_ver (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); }igt_subtest_f ("sanity" )
tests/intel/xe_exec_store.c +1 -1
@@ -70,7 +70,7 @@ static void cond_batch(struct data *data, uint64_t addr, int value, data->batch[b++] = sdi_addr; data->batch[b++] = sdi_addr >>32 ; -if (intel_graphics_ver (dev_id) >=IP_VER (20 ,0 )) +if (intel_graphics_ver_from_pciid (dev_id) >=IP_VER (20 ,0 )) data->batch[b++] =MI_MEM_FENCE |MI_WRITE_FENCE ; data->batch[b++] =MI_CONDITIONAL_BATCH_BUFFER_END |MI_DO_COMPARE |5 <<12 |2 ;
tests/intel/xe_exec_threads.c +1 -1
@@ -1519,7 +1519,7 @@ int igt_main()for (const struct section *s = sections; s->name; s++) { igt_subtest_f("threads-%s", s->name) {if (s->flags &MULTI_QUEUE ) { -igt_skip_on_f (!(intel_graphics_ver (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )), +igt_skip_on_f (!(intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )),"multi_queue is supported on graphics version 35 and above" );/* Balancer can't be set with multi-queue at the same time */ igt_assert (!(s->flags &BALANCER ));
tests/intel/xe_fault_injection.c +1 -1
@@ -492,7 +492,7 @@ oa_add_config_fail(int fd, int sysfs, int devid, {char path[512 ];uint64_t config_id; -#define SAMPLE_MUX_REG (intel_graphics_ver(devid) >= IP_VER(20, 0) ? \ +#define SAMPLE_MUX_REG (intel_graphics_ver_from_pciid(devid) >= IP_VER(20, 0) ? \ 0x13000 /* PES* */ : 0x9888 /* NOA_WRITE */)uint32_t mux_regs[] = {SAMPLE_MUX_REG ,0x0 };
tests/intel/xe_intel_bb.c +3 -3
@@ -710,7 +710,7 @@ static void do_intel_bb_blit(struct buf_ops *bops, int loops, uint32_t tiling)int i, fails =0 , xe =buf_ops_get_fd (bops);/* We'll fix it for gen2/3 later. */ -igt_require (intel_gen (intel_get_drm_devid (xe)) >3 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (xe)) >3 );for (i =0 ; i < loops; i++) fails +=__do_intel_bb_blit (bops, tiling);
@@ -881,7 +881,7 @@ static int render(struct buf_ops *bops, uint32_t tiling,uint32_t devid =intel_get_drm_devid (xe);igt_render_copyfunc_t render_copy =NULL ; -igt_debug ("%s() gen: %d\n" , __func__,intel_gen (devid)); +igt_debug ("%s() gen: %d\n" , __func__,intel_gen_from_pciid (devid)); ibb =intel_bb_create (xe,PAGE_SIZE );
@@ -1041,7 +1041,7 @@ int igt_main_args("dpib", NULL, help_str, opt_handler, NULL)do_intel_bb_blit (bops,3 ,I915_TILING_X ); igt_subtest("intel-bb-blit-y") { -igt_require (intel_gen (intel_get_drm_devid (xe)) >=6 ); +igt_require (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=6 );do_intel_bb_blit (bops,3 ,I915_TILING_Y ); }
tests/intel/xe_multigpu_svm.c +1 -1
@@ -412,7 +412,7 @@ static void batch_init(int fd, uint32_t vm, uint64_t src_addr, cmd[i++] =upper_32_bits (src_addr); cmd[i++] =lower_32_bits (dst_addr); cmd[i++] =upper_32_bits (dst_addr); -if (intel_graphics_ver (dev_id) >=IP_VER (20 ,0 )) { +if (intel_graphics_ver_from_pciid (dev_id) >=IP_VER (20 ,0 )) { cmd[i++] = mocs_index <<XE2_MEM_COPY_SRC_MOCS_SHIFT | mocs_index; }else { cmd[i++] = mocs_index <<GEN12_MEM_COPY_MOCS_SHIFT | mocs_index;
tests/intel/xe_oa.c +11 -11
@@ -476,7 +476,7 @@ get_oa_format(enum intel_xe_oa_format_name format)return dg2_oa_formats[format]; else if (IS_METEORLAKE(devid)) return mtl_oa_formats[format]; - else if (intel_graphics_ver(devid) >= IP_VER(20, 0)) + else if (intel_graphics_ver_from_pciid(devid) >= IP_VER(20, 0)) return lnl_oa_formats[format]; else return gen12_oa_formats[format];
@@ -797,7 +797,7 @@ oa_timestamp_delta(const uint32_t *report1,const uint32_t *report0, enum intel_xe_oa_format_name format) { - uint32_t width = intel_graphics_ver(devid) >= IP_VER(12, 55) ? 56 : 32; + uint32_t width = intel_graphics_ver_from_pciid(devid) >= IP_VER(12, 55) ? 56 : 32;return elapsed_delta (oa_timestamp (report1, format),oa_timestamp (report0, format), width);
@@ -1136,7 +1136,7 @@ static void pec_sanity_check(const u32 *report0, const u32 *report1,static void pec_sanity_check_reports (const u32 *report0,const u32 *report1,struct intel_xe_perf_metric_set *set) { -if (igt_run_in_simulation () ||intel_graphics_ver (devid) <IP_VER (20 ,0 )) { +if (igt_run_in_simulation () ||intel_graphics_ver_from_pciid (devid) <IP_VER (20 ,0 )) {igt_debug ("%s: Skip checking PEC reports in simulation or Xe1\n" , __func__);return ; }
@@ -3407,7 +3407,7 @@ static void single_ctx_helper(const struct drm_xe_oa_unit *oau) }/* FIXME: can we deduce the presence of A26 from get_oa_format(fmt)? */ -if (intel_graphics_ver (devid) >=IP_VER (20 ,0 )) +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) goto skip_check;/* Check that this test passed. The test measures the number of 2x2
@@ -3586,7 +3586,7 @@ static bool has_xe_oa_userspace_config(int fd)return errno !=EINVAL ; } -#define SAMPLE_MUX_REG (intel_graphics_ver(devid) >= IP_VER(20, 0) ? \ +#define SAMPLE_MUX_REG (intel_graphics_ver_from_pciid(devid) >= IP_VER(20, 0) ? \ 0x13000 /* PES* */ : 0x9888 /* NOA_WRITE */)/**
@@ -3841,7 +3841,7 @@ test_whitelisted_registers_userspace_config(void)/* NOA_CONFIG */ /* Prior to Xe2 */ -if (intel_graphics_ver (devid) <IP_VER (20 ,0 )) { +if (intel_graphics_ver_from_pciid (devid) <IP_VER (20 ,0 )) { regs[config.n_regs *2 ] =0xD04 ; regs[config.n_regs *2 +1 ] =0 ; config.n_regs++;
@@ -3850,7 +3850,7 @@ test_whitelisted_registers_userspace_config(void) config.n_regs++; }/* Prior to MTLx */ -if (intel_graphics_ver (devid) <IP_VER (12 ,70 )) { +if (intel_graphics_ver_from_pciid (devid) <IP_VER (12 ,70 )) {/* WAIT_FOR_RC6_EXIT */ regs[config.n_regs *2 ] =0x20CC ; regs[config.n_regs *2 +1 ] =0 ;
@@ -3890,7 +3890,7 @@ struct test_perf {#define HAS_OA_MMIO_TRIGGER (__d) \ (IS_DG2(__d) || IS_PONTEVECCHIO(__d) || IS_METEORLAKE(__d) || \ - intel_graphics_ver(devid) >= IP_VER(20, 0)) + intel_graphics_ver_from_pciid(devid) >= IP_VER(20, 0))static void perf_init_whitelist (void ) {
@@ -5087,7 +5087,7 @@ int igt_main_args("b:t", long_options, help_str, opt_handler, NULL) sysfs =igt_sysfs_open (drm_fd);/* Currently only run on Xe2+ */ -igt_require (intel_graphics_ver (devid) >=IP_VER (20 ,0 )); +igt_require (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 ));igt_require (init_sys_info ());
@@ -5193,8 +5193,8 @@ int igt_main_args("b:t", long_options, help_str, opt_handler, NULL)test_mi_rpc (oau); igt_subtest_with_dynamic("oa-tlb-invalidate") { -igt_require (intel_graphics_ver (devid) <=IP_VER (12 ,70 ) && -intel_graphics_ver (devid) !=IP_VER (12 ,60 )); +igt_require (intel_graphics_ver_from_pciid (devid) <=IP_VER (12 ,70 ) && +intel_graphics_ver_from_pciid (devid) !=IP_VER (12 ,60 ));__for_oa_unit_by_type (DRM_XE_OA_UNIT_TYPE_OAG)test_oa_tlb_invalidate (oau); }
tests/intel/xe_pat.c +6 -6
@@ -178,7 +178,7 @@ static int xe_fetch_pat_sw_config(int fd, struct intel_pat_cache *pat_sw_config)static void pat_sanity (int fd) {uint16_t dev_id =intel_get_drm_devid (fd); -unsigned int gfx_ver =intel_graphics_ver (dev_id); +unsigned int gfx_ver =intel_graphics_ver_from_pciid (dev_id);struct intel_pat_cache pat_sw_config = {};int32_t parsed;bool has_uc_comp = false, has_wt = false;
@@ -1560,10 +1560,10 @@ static void false_sharing(int fd)const struct fs_pat_entry *fs_entries;int num_entries; -if (intel_graphics_ver (dev_id) ==IP_VER (35 ,11 )) { +if (intel_graphics_ver_from_pciid (dev_id) ==IP_VER (35 ,11 )) { num_entries =ARRAY_SIZE (fs_xe3p_xpc); fs_entries = fs_xe3p_xpc; - }else if (intel_graphics_ver (dev_id) ==IP_VER (35 ,10 )) { + }else if (intel_graphics_ver_from_pciid (dev_id) ==IP_VER (35 ,10 )) { num_entries =ARRAY_SIZE (fs_xe3p_lpg); fs_entries = fs_xe3p_lpg; }else if (graphics_ver ==20 ) {
@@ -1689,7 +1689,7 @@ int igt_main_args("V", NULL, help_str, opt_handler, NULL)bo_comp_disable_bind (fd); igt_subtest_with_dynamic("pat-index-xelp") { -igt_require (intel_graphics_ver (dev_id) <=IP_VER (12 ,55 )); +igt_require (intel_graphics_ver_from_pciid (dev_id) <=IP_VER (12 ,55 ));subtest_pat_index_modes_with_regions (fd, xelp_pat_index_modes,ARRAY_SIZE (xelp_pat_index_modes)); }
@@ -1710,7 +1710,7 @@ int igt_main_args("V", NULL, help_str, opt_handler, NULL)igt_require (intel_get_device_info (dev_id)->graphics_ver >=20 );igt_assert (HAS_FLATCCS (dev_id)); -if (intel_graphics_ver (dev_id) ==IP_VER (20 ,1 )) +if (intel_graphics_ver_from_pciid (dev_id) ==IP_VER (20 ,1 ))subtest_pat_index_modes_with_regions (fd, bmg_g21_pat_index_modes,ARRAY_SIZE (bmg_g21_pat_index_modes));else
@@ -1731,7 +1731,7 @@ int igt_main_args("V", NULL, help_str, opt_handler, NULL)int configfs_fd, configfs_device_fd; igt_fixture() { -igt_require (intel_graphics_ver (dev_id) ==IP_VER (35 ,10 )); +igt_require (intel_graphics_ver_from_pciid (dev_id) ==IP_VER (35 ,10 )); pci_dev =igt_device_get_pci_device (fd); snprintf(bus_addr, sizeof(bus_addr), "%04x:%02x:%02x.%01x",
tests/intel/xe_query.c +1 -1
@@ -380,7 +380,7 @@ test_query_gt_topology(int fd) }/* sanity check EU type */ -if (IS_PONTEVECCHIO (dev_id) ||intel_gen (dev_id) >=20 ) { +if (IS_PONTEVECCHIO (dev_id) ||intel_gen_from_pciid (dev_id) >=20 ) {igt_assert (topo_types & (1 <<DRM_XE_TOPO_SIMD16_EU_PER_DSS ));igt_assert_eq (topo_types & (1 <<DRM_XE_TOPO_EU_PER_DSS ),0 ); }else {
tests/intel/xe_render_copy.c +1 -1
@@ -136,7 +136,7 @@ static int compare_bufs(struct intel_buf *buf1, struct intel_buf *buf2,static bool buf_is_aux_compressed (struct buf_ops *bops,struct intel_buf *buf) {int xe =buf_ops_get_fd (bops); -unsigned int gen =intel_gen (buf_ops_get_devid (bops)); +unsigned int gen =intel_gen_from_pciid (buf_ops_get_devid (bops));uint32_t ccs_size;uint8_t *ptr;bool is_compressed = false;
tests/intel/xe_svm_usrptr_madvise.c +1 -1
@@ -119,7 +119,7 @@ gpu_batch_init(int fd, uint32_t vm, uint64_t src_addr, cmd[i++] =upper_32_bits (src_addr); cmd[i++] =lower_32_bits (dst_addr); cmd[i++] =upper_32_bits (dst_addr); -if (intel_graphics_ver (dev_id) >=IP_VER (20 ,0 )) +if (intel_graphics_ver_from_pciid (dev_id) >=IP_VER (20 ,0 )) cmd[i++] = mocs_index <<XE2_MEM_COPY_SRC_MOCS_SHIFT | mocs_index;else cmd[i++] = mocs_index <<GEN12_MEM_COPY_MOCS_SHIFT | mocs_index;
tests/prime_vgem.c +1 -1
@@ -609,7 +609,7 @@ static void work(int i915, uint64_t ahnd, uint64_t scratch_offset, int dmabuf, {const int SCRATCH =0 ;const int BATCH =1 ; -const int gen =intel_gen (intel_get_drm_devid (i915)); +const int gen =intel_gen_from_pciid (intel_get_drm_devid (i915));struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry store[1024 +1 ];struct drm_i915_gem_execbuffer2 execbuf;
tools/intel_dp_compliance.c +1 -1
@@ -844,7 +844,7 @@ int main(int argc, char **argv)set_termio_mode (); drm_fd =drm_open_driver (DRIVER_ANY ); - gen =intel_gen (intel_get_drm_devid (drm_fd)); + gen =intel_gen_from_pciid (intel_get_drm_devid (drm_fd));kmstest_set_vt_graphics_mode ();setup_debugfs_files ();
tools/intel_error_decode.c +6 -6
@@ -311,7 +311,7 @@ static void print_bdw_error(unsigned int reg, unsigned int devid)static void print_error (unsigned int reg,unsigned int devid) { -switch (intel_gen (devid)) { +switch (intel_gen_from_pciid (devid)) {case 8 :return print_bdw_error (reg, devid);case 7 :return print_ivb_error (reg, devid);case 6 :return print_snb_error (reg);
@@ -398,7 +398,7 @@ print_fault_reg(unsigned devid, uint32_t reg)const char *engine[] = {"GFX" ,"MFX0" ,"MFX1" ,"VEBX" ,"BLT" ,"Unknown" ,"Unknown" ,"Unknown" }; -if (intel_gen (devid) <7 ) +if (intel_gen_from_pciid (devid) <7 )return ;if (reg & (1 <<0 ))
@@ -406,13 +406,13 @@ print_fault_reg(unsigned devid, uint32_t reg)else return ; -if (intel_gen (devid) <8 ) +if (intel_gen_from_pciid (devid) <8 )printf (" %s Fault (%s)\n" , gen7_types[reg >>1 &0x3 ], reg & (1 <<11 ) ?"GGTT" :"PPGTT" );else printf (" Invalid %s Fault\n" , gen8_types[reg >>1 &0x3 ]); -if (intel_gen (devid) <8 ) +if (intel_gen_from_pciid (devid) <8 )printf (" Address 0x%08x\n" , reg & ~((1 <<12 )-1 ));else printf (" Engine %s\n" , engine[reg >>12 &0x7 ]);
@@ -425,7 +425,7 @@ print_fault_data(unsigned devid, uint32_t data1, uint32_t data0) {uint64_t address; -if (intel_gen (devid) <8 ) +if (intel_gen_from_pciid (devid) <8 )return ; address = ((uint64_t )(data0) <<12 ) | ((uint64_t )data1 &0xf ) <<44 ;
@@ -691,7 +691,7 @@ read_data_file(FILE *file)if (matched ==1 ) { devid = reg;printf ("Detected GEN%i chipset\n" , -intel_gen (devid)); +intel_gen_from_pciid (devid)); decode_ctx =intel_decode_context_alloc (devid); }
tools/intel_gtt.c +6 -6
@@ -57,7 +57,7 @@ static gen8_gtt_pte_t gen8_gtt_pte(const unsigned i)static uint64_t ingtt (const unsigned offset) { -if (intel_gen (devid) <8 ) +if (intel_gen_from_pciid (devid) <8 )return gen6_gtt_pte (offset/KB (4 ));return gen8_gtt_pte (offset/KB (4 ));
@@ -68,10 +68,10 @@ static uint64_t get_phys(uint32_t pt_offset)uint64_t pae =0 ;uint64_t phys =ingtt (pt_offset); -if (intel_gen (devid) <4 && !IS_G33 (devid)) +if (intel_gen_from_pciid (devid) <4 && !IS_G33 (devid))return phys & ~0xfff ; -switch (intel_gen (devid)) { +switch (intel_gen_from_pciid (devid)) {case 3 :case 4 :case 5 :
@@ -90,7 +90,7 @@ static uint64_t get_phys(uint32_t pt_offset)case 11 :case 12 :case 20 : -if (intel_graphics_ver (devid) >=IP_VER (12 ,70 )) +if (intel_graphics_ver_from_pciid (devid) >=IP_VER (12 ,70 )) phys = phys &0x3ffffffff000 ;else phys = phys &0x7ffffff000 ;
@@ -105,7 +105,7 @@ static uint64_t get_phys(uint32_t pt_offset)static int get_pte_size (void ) { -return intel_gen (devid) <8 ?4 :8 ; +return intel_gen_from_pciid (devid) <8 ?4 :8 ; }static void pte_dump (int size,uint32_t offset) {
@@ -125,7 +125,7 @@ static void pte_dump(int size, uint32_t offset) {printf ("----------------------------------------------------------\n" );for (i =0 ; i < entries; i +=4 ) { -if (intel_gen (devid) <8 ) { +if (intel_gen_from_pciid (devid) <8 ) { printf(" 0x%08x | 0x%08x 0x%08x 0x%08x 0x%08x\n", KB(4 * i), gen6_gtt_pte(i + 0),
tools/intel_l3_parity.c +1 -1
@@ -190,7 +190,7 @@ int main(int argc, char *argv[]) device =drm_open_driver (DRIVER_INTEL ); devid =intel_get_drm_devid (device); -if (intel_gen (devid) <7 ||IS_VALLEYVIEW (devid)) +if (intel_gen_from_pciid (devid) <7 ||IS_VALLEYVIEW (devid))exit (77 ); assert(intel_register_access_init(&mmio_data,
tools/intel_reg.c +3 -3
@@ -293,7 +293,7 @@ static const struct intel_execution_engine2 *find_engine(const char *name)static int register_srm (struct config *config,struct reg *reg,uint32_t *val_in) { -const int gen =intel_gen (config->devid); +const int gen =intel_gen_from_pciid (config->devid);const bool r64b = gen >=8 ;const uint32_t ctx =0 ;struct drm_i915_gem_exec_object2 obj[2 ];
@@ -386,7 +386,7 @@ static int register_srm(struct config *config, struct reg *reg,static uint32_t mcbar_offset (uint32_t devid) { -return intel_gen (devid) >=6 ?0x140000 :0x10000 ; +return intel_gen_from_pciid (devid) >=6 ?0x140000 :0x10000 ; }static uint8_t vga_read (uint16_t reg,bool mmio)
@@ -1114,7 +1114,7 @@ static int get_reg_spec_file(char *buf, size_t buflen, const char *dir,* Third, try file named after gen, e.g. "gen7" for Haswell (which is * technically 7.5 but this is how it works). */ -snprintf (buf, buflen,"%s/gen%d" , dir,intel_gen (devid)); +snprintf (buf, buflen,"%s/gen%d" , dir,intel_gen_from_pciid (devid));if (!access (buf,F_OK ))return 0 ;
tools/intel_reg_decode.c +2 -2
@@ -2627,12 +2627,12 @@ static const struct reg_debug gen6_rp_debug_regs[] = {static bool is_hsw_plus (uint32_t devid,uint32_t pch) { -return IS_HASWELL (devid) ||intel_gen (devid) >=8 ; +return IS_HASWELL (devid) ||intel_gen_from_pciid (devid) >=8 ; }static bool is_gen6_plus (uint32_t devid,uint32_t pch) { -return intel_gen (devid) >=6 ; +return intel_gen_from_pciid (devid) >=6 ; }static bool is_gen56ivb (uint32_t devid,uint32_t pch)
tools/intel_tiling_detect.c +1 -1
@@ -222,7 +222,7 @@ static void render(int fd, uint32_t width, uint32_t height, uint32_t tiling) bops =buf_ops_create (fd); -igt_debug ("%s() gen: %d\n" , __func__,intel_gen (devid)); +igt_debug ("%s() gen: %d\n" , __func__,intel_gen_from_pciid (devid)); ibb =intel_bb_create (fd,SZ_4K );
tools/intel_vbt_decode.c +1 -1
@@ -644,7 +644,7 @@ static const char *_to_str(const char * const strings[],static int decode_ssc_freq (struct context *context,bool alternate) { -switch (intel_gen (context->devid)) { +switch (intel_gen_from_pciid (context->devid)) {case 2 :return alternate ?66 :48 ;case 3 :
Signature · 1 line
2.43.0
PATCH v3 2/4 lib/intel: add fd-based graphics IP version query helpers
In reply to Xin WangAdd two new functions to query the graphics IP version from a DRM device fd:
unsigned intel_graphics_ver(int fd)
unsigned intel_graphics_ver_major(int fd)
intel_graphics_ver() returns the full IP version encoded as IP_VER(major, minor), replacing the role of the pciid-based intel_graphics_ver_from_pciid(). intel_graphics_ver_major() returns only the major version, replacing the role of intel_gen_from_pciid().
For Xe devices both functions query the graphics IP version directly from the kernel via the GT query interface (drm_xe_gt.ip_ver_major / ip_ver_minor), avoiding any PCI ID table lookup. For other devices they fall back to intel_graphics_ver_from_pciid() / intel_gen_from_pciid() using the device ID obtained via intel_get_drm_devid(fd).
The new fd-based names differ from the legacy pciid-based names so that any remaining call sites that mistakenly pass a devid instead of an fd will produce a build failure rather than silently computing wrong results through implicit integer conversion.
To support the Xe path, export xe_get_main_gt(int fd) from xe_query, which returns a pointer to the first MAIN GT descriptor from the cached Xe device query result.
--- lib/intel_chipset.c | 43 +++++++++++++++++++++++++++++++++++++++++ lib/intel_chipset.h | 2 ++ lib/intel_device_info.c | 12 ++++++------ lib/xe/xe_query.c | 24 +++++++++++++++++++++++ lib/xe/xe_query.h | 1 + 5 files changed, 76 insertions(+), 6 deletions(-)
lib/intel_chipset.c +43 -0
@@ -189,3 +189,46 @@ intel_check_pch(void)return ; } } + +/** +* intel_gfx_ver: +* @fd: drm device fd +* +* Returns the graphics IP version for the device identified by @fd, encoded +* as IP_VER(major, minor). For Xe devices the value is read directly from +* the kernel via the GT query interface. For other devices it falls back to +* a PCI ID table lookup. +* +* Returns: +* The graphics IP version. +*/ +unsigned intel_gfx_ver (int fd) +{ +const struct drm_xe_gt *main_gt =xe_get_main_gt (fd); + +if (main_gt && main_gt->ip_ver_major) +return IP_VER (main_gt->ip_ver_major, main_gt->ip_ver_minor); + +return intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); +} + +/** +* intel_gfx_ver_major: +* @fd: drm device fd +* +* Returns the graphics IP major version for the device identified by @fd. +* For Xe devices the value is read directly from the kernel via the GT query +* interface. For other devices it falls back to a PCI ID table lookup. +* +* Returns: +* The graphics IP major version. +*/ +unsigned intel_gfx_ver_major (int fd) +{ +const struct drm_xe_gt *main_gt =xe_get_main_gt (fd); + +if (main_gt && main_gt->ip_ver_major) +return main_gt->ip_ver_major; + +return intel_gen_from_pciid (intel_get_drm_devid (fd)); +}
lib/intel_chipset.h +2 -0
@@ -106,6 +106,8 @@ const struct intel_cmds_info *intel_get_cmds_info(uint16_t devid) __attribute__(unsigned intel_gen_from_pciid (uint16_t devid) __attribute__((pure));unsigned intel_graphics_ver_from_pciid (uint16_t devid) __attribute__((pure));unsigned intel_display_ver (uint16_t devid) __attribute__((pure)); +unsigned intel_gfx_ver (int fd); +unsigned intel_gfx_ver_major (int fd);extern enum pch_type intel_pch;
lib/intel_device_info.c +6 -6
@@ -742,14 +742,14 @@ const struct intel_cmds_info *intel_get_cmds_info(uint16_t devid)* intel_gen_from_pciid: * @devid: pci device id * -* Computes the Intel GFX generation for the given device id. +* Intel graphics IP major version for the given device id. * -* Deprecated: Prefer the fd-based intel_gen() where a DRM device fd is -* available. Use this function only in contexts where no fd is accessible, +* Deprecated: Prefer the fd-based intel_gfx_ver_major() where a DRM device fd +* is available. Use this function only in contexts where no fd is accessible, * e.g. when the DRM driver is not loaded or in cross-environment tools. * * Returns: -* The GFX generation on successful lookup, -1u on failure. +* The major version of the graphics IP on successful lookup, -1u on failure. */ unsigned intel_gen_from_pciid (uint16_t devid) {
@@ -760,9 +760,9 @@ unsigned intel_gen_from_pciid(uint16_t devid)* intel_graphics_ver_from_pciid: * @devid: pci device id * -* Computes the Intel graphics IP version for the given device id. +* Intel graphics IP version for the given device id. * -* Deprecated: Prefer the fd-based intel_graphics_ver() where a DRM device fd +* Deprecated: Prefer the fd-based intel_gfx_ver() where a DRM device fd * is available. Use this function only in contexts where no fd is accessible, * e.g. when the DRM driver is not loaded or in cross-environment tools. *
lib/xe/xe_query.c +24 -0
@@ -903,6 +903,30 @@ bool xe_is_main_gt(int fd, int gt)return xe_gt_type (fd, gt) ==DRM_XE_QUERY_GT_TYPE_MAIN ; } +/** +* xe_get_main_gt: +* @fd: xe device fd +* +* Returns a pointer to the drm_xe_gt descriptor of the first MAIN GT found +* for device @fd, or NULL if none is found. +*/ +const struct drm_xe_gt *xe_get_main_gt (int fd) +{ +struct xe_device *xe_dev; + + xe_dev =find_in_cache (fd); +igt_assert (xe_dev); + +for (int i =0 ; i < xe_dev->gt_list->num_gt; i++) { +const struct drm_xe_gt *gt = &xe_dev->gt_list->gt_list[i]; + +if (gt->type ==DRM_XE_QUERY_GT_TYPE_MAIN ) +return gt; + } + +return NULL ; +} +/** * xe_gt_to_tile_id: * @fd: xe device fd
lib/xe/xe_query.h +1 -0
@@ -158,6 +158,7 @@ bool xe_has_media_gt(int fd);uint16_t xe_gt_type (int fd,int gt);bool xe_is_media_gt (int fd,int gt);bool xe_is_main_gt (int fd,int gt); +const struct drm_xe_gt *xe_get_main_gt (int fd);uint16_t xe_gt_get_tile_id (int fd,int gt);uint16_t xe_tile_get_main_gt_id (int fd,uint8_t tile);uint32_t *xe_hwconfig_lookup_value (int fd,enum intel_hwconfig attribute,uint32_t *len);
Signature · 1 line
2.43.0
PATCH v3 3/4 intel/{lib, tests}: switch fd-backed version checks to intel_gfx_ver*
In reply to Xin WangConvert the remaining lib/test call sites that already operate on a live DRM fd to use intel_gfx_ver_major() and intel_gfx_ver() directly. Most of these places were still deriving a devid from the fd and then querying intel_gen_from_pciid() or intel_graphics_ver_from_pciid(), even though the same information is now available through the fd-based helpers. Switching them over makes the call sites match the actual data flow and reduces unnecessary dependence on PCI-ID based queries.
Keep the legacy *_from_pciid() helpers in benchmark/tool code and a few other raw-devid based paths where a suitable DRM fd is not naturally available through the call chain. Those remaining users are left intentional and explicit.
This also helps avoid silently continuing the old calling pattern in fd- backed code. Since both devid and fd are integer types, relying on the PCI-ID based helpers in places that already have an fd can otherwise make it too easy to keep using the old style without any compiler warning.
--- lib/gpgpu_shader.c | 6 +-- lib/gpu_cmds.c | 21 +++++----- lib/i915/gem_engine_topology.c | 10 ++--- lib/i915/gem_mman.c | 2 +- lib/i915/gem_submission.c | 8 ++-- lib/i915/i915_crc.c | 6 +-- lib/igt_dummyload.c | 3 +- lib/igt_fb.c | 2 +- lib/igt_gt.c | 4 +- lib/igt_store.c | 2 +- lib/intel_batchbuffer.c | 56 +++++++++++++------------- lib/intel_batchbuffer.h | 4 +- lib/intel_blt.c | 22 +++++----- lib/intel_blt.h | 2 +- lib/intel_bufops.c | 10 ++--- lib/intel_common.c | 2 +- lib/intel_compute.c | 6 +-- lib/intel_mocs.c | 13 +++--- lib/intel_pat.c | 14 +++---- lib/ioctl_wrappers.c | 2 +- lib/rendercopy_gen9.c | 24 +++++------ lib/xe/xe_legacy.c | 2 +- lib/xe/xe_oa.c | 2 +- lib/xe/xe_spin.c | 4 +- lib/xe/xe_sriov_provisioning.c | 4 +- tests/intel/api_intel_allocator.c | 2 +- tests/intel/api_intel_bb.c | 11 +++-- tests/intel/gem_bad_reloc.c | 4 +- tests/intel/gem_blits.c | 2 +- tests/intel/gem_close_race.c | 2 +- tests/intel/gem_concurrent_all.c | 2 +- tests/intel/gem_ctx_create.c | 4 +- tests/intel/gem_ctx_engines.c | 6 +-- tests/intel/gem_ctx_isolation.c | 14 +++---- tests/intel/gem_ctx_shared.c | 8 ++-- tests/intel/gem_ctx_sseu.c | 2 +- tests/intel/gem_eio.c | 6 +-- tests/intel/gem_evict_alignment.c | 6 +-- tests/intel/gem_evict_everything.c | 8 ++-- tests/intel/gem_exec_async.c | 2 +- tests/intel/gem_exec_await.c | 2 +- tests/intel/gem_exec_balancer.c | 4 +- tests/intel/gem_exec_big.c | 2 +- tests/intel/gem_exec_capture.c | 9 ++--- tests/intel/gem_exec_fair.c | 20 ++++----- tests/intel/gem_exec_fence.c | 20 +++++---- tests/intel/gem_exec_flush.c | 4 +- tests/intel/gem_exec_gttfill.c | 2 +- tests/intel/gem_exec_latency.c | 6 +-- tests/intel/gem_exec_nop.c | 4 +- tests/intel/gem_exec_parallel.c | 2 +- tests/intel/gem_exec_params.c | 8 ++-- tests/intel/gem_exec_reloc.c | 10 ++--- tests/intel/gem_exec_schedule.c | 20 ++++----- tests/intel/gem_exec_store.c | 6 +-- tests/intel/gem_exec_suspend.c | 2 +- tests/intel/gem_exec_whisper.c | 6 +-- tests/intel/gem_fenced_exec_thrash.c | 5 +-- tests/intel/gem_gpgpu_fill.c | 2 +- tests/intel/gem_gtt_hog.c | 2 +- tests/intel/gem_linear_blits.c | 11 ++--- tests/intel/gem_media_fill.c | 2 +- tests/intel/gem_media_vme.c | 2 +- tests/intel/gem_mmap_gtt.c | 2 +- tests/intel/gem_read_read_speed.c | 4 +- tests/intel/gem_render_copy.c | 10 ++--- tests/intel/gem_ringfill.c | 4 +- tests/intel/gem_set_tiling_vs_blt.c | 2 +- tests/intel/gem_softpin.c | 6 +-- tests/intel/gem_streaming_writes.c | 4 +- tests/intel/gem_sync.c | 8 ++-- tests/intel/gem_tiled_fence_blits.c | 4 +- tests/intel/gem_tiling_max_stride.c | 8 ++-- tests/intel/gem_userptr_blits.c | 25 +++++------- tests/intel/gem_vm_create.c | 2 +- tests/intel/gem_watchdog.c | 4 +- tests/intel/gem_workarounds.c | 2 +- tests/intel/gen7_exec_parse.c | 2 +- tests/intel/gen9_exec_parse.c | 2 +- tests/intel/i915_getparams_basic.c | 6 +-- tests/intel/i915_module_load.c | 2 +- tests/intel/i915_pm_rc6_residency.c | 6 +-- tests/intel/i915_pm_rpm.c | 2 +- tests/intel/i915_pm_sseu.c | 2 +- tests/intel/kms_ccs.c | 13 ++---- tests/intel/kms_fbcon_fbt.c | 2 +- tests/intel/kms_frontbuffer_tracking.c | 11 +++-- tests/intel/kms_pipe_stress.c | 6 +-- tests/intel/perf.c | 55 +++++++++++++------------ tests/intel/perf_pmu.c | 8 ++-- tests/intel/sysfs_preempt_timeout.c | 2 +- tests/intel/sysfs_timeslice_duration.c | 2 +- tests/intel/xe_ccs.c | 16 ++++---- tests/intel/xe_compute.c | 8 ++-- tests/intel/xe_copy_basic.c | 6 +-- tests/intel/xe_debugfs.c | 3 +- tests/intel/xe_eu_stall.c | 4 +- tests/intel/xe_eudebug_online.c | 9 ++--- tests/intel/xe_evict.c | 6 +-- tests/intel/xe_exec_fault_mode.c | 2 +- tests/intel/xe_exec_multi_queue.c | 2 +- tests/intel/xe_exec_store.c | 6 +-- tests/intel/xe_exec_threads.c | 4 +- tests/intel/xe_fault_injection.c | 2 +- tests/intel/xe_gpgpu_fill.c | 2 +- tests/intel/xe_intel_bb.c | 7 ++-- tests/intel/xe_media_fill.c | 2 +- tests/intel/xe_multigpu_svm.c | 3 +- tests/intel/xe_oa.c | 23 ++++++----- tests/intel/xe_pat.c | 38 +++++++---------- tests/intel/xe_query.c | 4 +- tests/intel/xe_render_copy.c | 3 +- tests/intel/xe_svm_usrptr_madvise.c | 3 +- tests/prime_vgem.c | 2 +- 114 files changed, 387 insertions(+), 435 deletions(-)
lib/gpgpu_shader.c +3 -3
@@ -276,11 +276,11 @@ void gpgpu_shader_exec(struct intel_bb *ibb,struct gpgpu_shader *gpgpu_shader_create (int fd) {struct gpgpu_shader *shdr =calloc (1 ,sizeof (struct gpgpu_shader )); -const struct intel_device_info *info; +unsigned int ver;igt_assert (shdr); - info =intel_get_device_info (intel_get_drm_devid (fd)); - shdr->gen_ver =100 * info->graphics_ver + info->graphics_rel; + ver =intel_gfx_ver (fd); + shdr->gen_ver =100 * (ver >>8 ) + (ver &0xff ); shdr->max_size =16 *4 ; shdr->code =malloc (4 * shdr->max_size); shdr->labels =igt_map_create (igt_map_hash_32, igt_map_equal_32);
lib/gpu_cmds.c +10 -11
@@ -313,14 +313,13 @@ fill_binding_table(struct intel_bb *ibb, struct intel_buf *buf) {uint32_t binding_table_offset;uint32_t *binding_table; -uint32_t devid =intel_get_drm_devid (ibb->fd);intel_bb_ptr_align (ibb,64 ); binding_table_offset =intel_bb_offset (ibb); binding_table =intel_bb_ptr (ibb);intel_bb_ptr_add (ibb,64 ); -if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) { +if (intel_gfx_ver (ibb->fd) >=IP_VER (20 ,0 )) {/* * Up until now, SURFACEFORMAT_R8_UNROM was used regardless of the 'bpp' value. * For bpp 32 this results in a surface that is 4x narrower than expected. However
@@ -342,13 +341,13 @@ fill_binding_table(struct intel_bb *ibb, struct intel_buf *buf)igt_assert_f (false,"Surface state for bpp = %u not implemented" , buf->bpp); - }else if (intel_graphics_ver_from_pciid (devid) >=IP_VER (12 ,50 )) { + }else if (intel_gfx_ver (ibb->fd) >=IP_VER (12 ,50 )) { binding_table[0 ] =xehp_fill_surface_state (ibb, buf,SURFACEFORMAT_R8_UNORM ,1 ); - }else if (intel_graphics_ver_from_pciid (devid) >=IP_VER (9 ,0 )) { + }else if (intel_gfx_ver (ibb->fd) >=IP_VER (9 ,0 )) { binding_table[0 ] =gen9_fill_surface_state (ibb, buf,SURFACEFORMAT_R8_UNORM ,1 ); - }else if (intel_graphics_ver_from_pciid (devid) >=IP_VER (8 ,0 )) { + }else if (intel_gfx_ver (ibb->fd) >=IP_VER (8 ,0 )) { binding_table[0 ] =gen8_fill_surface_state (ibb, buf,SURFACEFORMAT_R8_UNORM ,1 ); }else {
@@ -867,7 +866,7 @@ gen_emit_media_object(struct intel_bb *ibb,/* inline data (xoffset, yoffset) */ intel_bb_out (ibb, xoffset);intel_bb_out (ibb, yoffset); -if (intel_gen_from_pciid (ibb->devid) >=8 && !IS_CHERRYVIEW (ibb->devid)) +if (intel_gfx_ver_major (ibb->fd) >=8 && !IS_CHERRYVIEW (ibb->devid))gen8_emit_media_state_flush (ibb); }
@@ -1011,7 +1010,7 @@ void xehp_emit_state_compute_mode(struct intel_bb *ibb, bool vrt) { - uint32_t dword_length = intel_graphics_ver_from_pciid(ibb->devid) >= IP_VER(20, 0); + uint32_t dword_length = intel_gfx_ver(ibb->fd) >= IP_VER(20, 0);intel_bb_out (ibb,XEHP_STATE_COMPUTE_MODE | dword_length);intel_bb_out (ibb, vrt ? (0x10001 ) <<10 :0 );/* Enable variable number of threads */
@@ -1042,7 +1041,7 @@ xehp_emit_state_base_address(struct intel_bb *ibb)intel_bb_out (ibb,0 );/* stateless data port */ - tmp =intel_graphics_ver_from_pciid (ibb->devid) >=IP_VER (20 ,0 ) ?0 :BASE_ADDRESS_MODIFY ; + tmp =intel_gfx_ver (ibb->fd) >=IP_VER (20 ,0 ) ?0 :BASE_ADDRESS_MODIFY ;intel_bb_out (ibb,0 | tmp);//dw3 /* surface */
@@ -1068,7 +1067,7 @@ xehp_emit_state_base_address(struct intel_bb *ibb)/* dynamic state buffer size */ intel_bb_out (ibb,ALIGN (ibb->size,1 <<12 ) |1 );//dw13 /* indirect object buffer size */ -if (intel_graphics_ver_from_pciid (ibb->devid) >=IP_VER (20 ,0 ))//dw14 +if (intel_gfx_ver (ibb->fd) >=IP_VER (20 ,0 ))//dw14 intel_bb_out (ibb,0 );else intel_bb_out (ibb,0xfffff000 |1 );
@@ -1115,7 +1114,7 @@ xehp_emit_compute_walk(struct intel_bb *ibb,else mask = (1 << mask) -1 ; - dword_length =intel_graphics_ver_from_pciid (ibb->devid) >=IP_VER (20 ,0 ) ?0x26 :0x25 ; + dword_length =intel_gfx_ver (ibb->fd) >=IP_VER (20 ,0 ) ?0x26 :0x25 ;intel_bb_out (ibb,XEHP_COMPUTE_WALKER | dword_length);intel_bb_out (ibb,0 );/* debug object */ //dw1
@@ -1155,7 +1154,7 @@ xehp_emit_compute_walk(struct intel_bb *ibb,intel_bb_out (ibb,0 );//dw16 intel_bb_out (ibb,0 );//dw17 -if (intel_graphics_ver_from_pciid (ibb->devid) >=IP_VER (20 ,0 ))//Xe2:dw18 +if (intel_gfx_ver (ibb->fd) >=IP_VER (20 ,0 ))//Xe2:dw18 intel_bb_out (ibb,0 );/* Interface descriptor data */ for (int i =0 ; i <8 ; i++) {//dw18-25 (Xe2:dw19-26)
lib/i915/gem_engine_topology.c +5 -5
@@ -372,12 +372,12 @@ mtl_engine_to_gt_map(const struct i915_engine_class_instance *e)static int gem_engine_to_gt_map (int i915,const struct i915_engine_class_instance *engine) { -uint32_t devid =intel_get_drm_devid (i915); +uint16_t ip_ver =intel_gfx_ver (i915);/* Only MTL multi-gt supported at present */ -igt_require (intel_graphics_ver_from_pciid (devid) <=IP_VER (12 ,70 )); +igt_require (ip_ver <=IP_VER (12 ,70 )); -return IS_METEORLAKE (devid) ?mtl_engine_to_gt_map (engine) :0 ; +return ip_ver ==IP_VER (12 ,70 ) ?mtl_engine_to_gt_map (engine) :0 ; }/**
@@ -644,7 +644,7 @@ bool gem_engine_can_block_copy(int i915, const struct intel_execution_engine2 *ereturn false;if (!gem_engine_has_known_capability (i915, engine->name,"block_copy" )) -return intel_gen_from_pciid (intel_get_drm_devid (i915)) >=12 ; +return intel_gfx_ver_major (i915) >=12 ;return gem_engine_has_capability (i915, engine->name,"block_copy" ); }
@@ -655,7 +655,7 @@ uint32_t gem_engine_mmio_base(int i915, const char *engine)if (gem_engine_property_scanf (i915, engine,"mmio_base" ,"%x" , &mmio) <0 ) { -int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +int gen =intel_gfx_ver_major (i915);/* The layout of xcs1+ is unreliable -- hence the property! */ if (!strcmp (engine,"rcs0" )) {
lib/i915/gem_mman.c +1 -1
@@ -738,7 +738,7 @@ uint64_t gem_mappable_aperture_size(int fd)struct pci_device *pci_dev =igt_device_get_pci_device (fd);int bar; -if (intel_gen_from_pciid (pci_dev->device_id) <3 ) +if (intel_gfx_ver_major (fd) <3 ) bar =0 ;else bar =2 ;
lib/i915/gem_submission.c +4 -4
@@ -62,7 +62,7 @@*/ unsigned gem_submission_method (int fd) { -const int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const int gen =intel_gfx_ver_major (fd);unsigned method =GEM_SUBMISSION_RINGBUF ;int dir;uint32_t value =0 ;
@@ -210,7 +210,7 @@ int gem_cmdparser_version(int i915)bool gem_engine_has_cmdparser (int i915,const intel_ctx_cfg_t *cfg,unsigned int engine) { -const int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const int gen =intel_gfx_ver_major (i915);const int parser_version =gem_cmdparser_version (i915);const int class =intel_ctx_cfg_engine_class (cfg, engine);
@@ -232,7 +232,7 @@ bool gem_has_blitter(int i915)unsigned int blt; blt =0 ; -if (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=6 ) +if (intel_gfx_ver_major (i915) >=6 ) blt =I915_EXEC_BLT ;return gem_has_ring (i915, blt);
@@ -245,7 +245,7 @@ void gem_require_blitter(int i915)static bool gem_engine_has_immutable_submission (int i915,int class) { -const int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const int gen =intel_gfx_ver_major (i915);int parser_version; parser_version =gem_cmdparser_version (i915);
lib/i915/i915_crc.c +2 -4
@@ -135,7 +135,7 @@ static void fill_batch(int i915, uint32_t bb_handle, uint64_t bb_offset, uint64_t table_offset, uint64_t data_offset, uint32_t data_size) { uint32_t *bb, *batch, *jmp; -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);const int use_64b = gen >=8 ;uint64_t offset;uint64_t crc =USERDATA (table_offset,0 );
@@ -292,7 +292,5 @@ uint32_t i915_crc32(int i915, uint64_t ahnd, const intel_ctx_t *ctx,**/ bool supports_i915_crc32 (int i915) { -uint16_t devid =intel_get_drm_devid (i915); - -return intel_graphics_ver_from_pciid (devid) >IP_VER (12 ,50 ); +return intel_gfx_ver (i915) >IP_VER (12 ,50 ); }
lib/igt_dummyload.c +1 -2
@@ -94,8 +94,7 @@ emit_recursive_batch(igt_spin_t *spin, {#define SCRATCH 0#define BATCH IGT_SPIN_BATCH -const unsigned int devid =intel_get_drm_devid (fd); -const unsigned int gen =intel_gen_from_pciid (devid); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_relocation_entry relocs[3 ], *r;struct drm_i915_gem_execbuffer2 *execbuf;struct drm_i915_gem_exec_object2 *obj;
lib/igt_fb.c +1 -1
@@ -2905,7 +2905,7 @@ static void copy_with_engine(struct fb_blit_upload *blit,igt_vebox_copyfunc_t vebox_copy =NULL ;if (use_vebox_copy (src_fb, dst_fb)) - vebox_copy =igt_get_vebox_copyfunc (intel_get_drm_devid (blit->fd)); + vebox_copy =igt_get_vebox_copyfunc (blit->fd);else render_copy =igt_get_render_copyfunc (blit->fd);
lib/igt_gt.c +2 -2
@@ -68,7 +68,7 @@ static bool has_gpu_reset(int fd)/* Very old kernels did not support the query */ if (reset_query_once ==-1 ) reset_query_once = - (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=5 ) ?1 :0 ; + (intel_gfx_ver_major (fd) >=5 ) ?1 :0 ; }return reset_query_once >0 ;
@@ -468,7 +468,7 @@ void igt_fork_hang_helper(void) fd =drm_open_driver (DRIVER_INTEL ); - gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); + gen =intel_gfx_ver_major (fd);igt_skip_on (gen <5 );igt_fork_helper (&hang_helper)
lib/igt_store.c +1 -1
@@ -31,7 +31,7 @@ void igt_store_word(int fd, uint64_t ahnd, const intel_ctx_t *ctx, {const int SCRATCH =0 ;const int BATCH =1 ; -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
lib/intel_batchbuffer.c +27 -29
133 lines not on this page · raw message
lib/intel_batchbuffer.h +2 -2
@@ -166,7 +166,7 @@ typedef void (*igt_vebox_copyfunc_t)(struct intel_bb *ibb, unsigned int width, unsigned int height, struct intel_buf *dst); -igt_vebox_copyfunc_t igt_get_vebox_copyfunc (int devid); +igt_vebox_copyfunc_t igt_get_vebox_copyfunc (int fd); typedef void (*igt_render_clearfunc_t)(struct intel_bb *ibb, struct intel_buf *dst, unsigned int dst_x, unsigned int dst_y,
@@ -198,7 +198,7 @@ typedef void (*igt_fillfunc_t)(int i915, uint8_t color);igt_fillfunc_t igt_get_gpgpu_fillfunc (int devid); -igt_fillfunc_t igt_get_media_fillfunc (int devid); +igt_fillfunc_t igt_get_media_fillfunc (int fd); typedef void (*igt_vme_func_t)(int i915, uint32_t ctx,
lib/intel_blt.c +9 -13
@@ -997,7 +997,7 @@ uint64_t emit_blt_block_copy(int fd, uint64_t bb_pos, bool emit_bbe) { -unsigned int ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); +unsigned int ip_ver =intel_gfx_ver (fd);struct gen12_block_copy_data data = {};struct gen12_block_copy_data_ext dext = {};uint64_t dst_offset, src_offset, bb_offset;
@@ -1285,7 +1285,7 @@ uint64_t emit_blt_ctrl_surf_copy(int fd, uint64_t bb_pos, bool emit_bbe) { -unsigned int ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); +unsigned int ip_ver =intel_gfx_ver (fd);union ctrl_surf_copy_data data = { };size_t data_sz;uint64_t dst_offset, src_offset, bb_offset, alignment;
@@ -1705,7 +1705,7 @@ uint64_t emit_blt_fast_copy(int fd, uint64_t bb_pos, bool emit_bbe) { -unsigned int ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); +unsigned int ip_ver =intel_gfx_ver (fd);struct gen12_fast_copy_data data = {};uint64_t dst_offset, src_offset, bb_offset;uint32_t bbe =MI_BATCH_BUFFER_END ;
@@ -1972,11 +1972,9 @@ void blt_mem_copy_init(int fd, struct blt_mem_copy_data *mem,static void dump_bb_mem_copy_cmd (int fd,struct xe_mem_copy_data *data) {uint32_t *cmd = (uint32_t *) data; -uint32_t devid =intel_get_drm_devid (fd); -igt_info ("BB details:\n" ); -if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) { +if (intel_gfx_ver (fd) >=IP_VER (20 ,0 )) { igt_info(" dw00: [%08x] <client: 0x%x, opcode: 0x%x, length: %d> " "[copy type: %d, mode: %d]\n", cmd[0], data->dw00.xe2.client, data->dw00.xe2.opcode,
@@ -2006,7 +2004,7 @@ static void dump_bb_mem_copy_cmd(int fd, struct xe_mem_copy_data *data) cmd[7], data->dw07.dst_address_lo);igt_info (" dw08: [%08x] dst offset hi (0x%x)\n" , cmd[8 ], data->dw08.dst_address_hi); -if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) { +if (intel_gfx_ver (fd) >=IP_VER (20 ,0 )) {igt_info (" dw09: [%08x] mocs <dst: 0x%x, src: 0x%x>\n" , cmd[9 ], data->dw09.xe2.dst_mocs, data->dw09.xe2.src_mocs);
@@ -2025,7 +2023,6 @@ static uint64_t emit_blt_mem_copy(int fd, uint64_t ahnd,uint64_t dst_offset, src_offset, shift;uint32_t width, height, width_max, height_max, remain;uint32_t bbe =MI_BATCH_BUFFER_END ; -uint32_t devid =intel_get_drm_devid (fd);uint8_t *bb;if (mem->mode ==MODE_BYTE ) {
@@ -2049,7 +2046,7 @@ static uint64_t emit_blt_mem_copy(int fd, uint64_t ahnd, width = mem->src.width; height = mem->dst.height; -if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) { +if (intel_gfx_ver (fd) >=IP_VER (20 ,0 )) { data.dw00.xe2.client =0x2 ; data.dw00.xe2.opcode =0x5a ; data.dw00.xe2.length =8 ;
@@ -2231,7 +2228,6 @@ static void emit_blt_mem_set(int fd, uint64_t ahnd,int b;uint32_t *batch;uint32_t value; -uint32_t devid =intel_get_drm_devid (fd); dst_offset =get_offset_pat_index (ahnd, mem->dst.handle, mem->dst.size,0 , mem->dst.pat_index);
@@ -2246,7 +2242,7 @@ static void emit_blt_mem_set(int fd, uint64_t ahnd, batch[b++] = mem->dst.pitch -1 ; batch[b++] = dst_offset; batch[b++] = dst_offset <<32 ; -if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) +if (intel_gfx_ver (fd) >=IP_VER (20 ,0 )) batch[b++] = value | (mem->dst.mocs_index <<3 );else batch[b++] = value | mem->dst.mocs_index;
@@ -2364,7 +2360,7 @@ blt_create_object(const struct blt_copy_data *blt, uint32_t region,if (create_mapping && region !=system_memory (blt->fd)) flags |=DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM ; -if (intel_gen_from_pciid (intel_get_drm_devid (blt->fd)) >=20 && compression) { +if (intel_gfx_ver_major (blt->fd) >=20 && compression) { pat_index =intel_get_pat_idx_uc_comp (blt->fd); cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ; }
@@ -2590,7 +2586,7 @@ void blt_surface_get_flatccs_data(int fd, cpu_caching =__xe_default_cpu_caching (fd, sysmem,0 ); ccs_bo_size =ALIGN (ccssize,xe_get_default_alignment (fd)); -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=20 && obj->compression) { +if (intel_gfx_ver_major (fd) >=20 && obj->compression) { comp_pat_index =intel_get_pat_idx_uc_comp (fd); cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ; }
lib/intel_blt.h +1 -1
@@ -52,7 +52,7 @@#include "igt.h" #include "intel_cmds_info.h" -#define CCS_RATIO (fd) (intel_gen_from_pciid(intel_get_drm_devid(fd)) >= 20 ? 512 : 256) +#define CCS_RATIO (fd) (intel_gfx_ver_major(fd) >= 20 ? 512 : 256)#define GEN12_MEM_COPY_MOCS_SHIFT 25#define XE2_MEM_COPY_SRC_MOCS_SHIFT 28#define XE2_MEM_COPY_DST_MOCS_SHIFT 3
lib/intel_bufops.c +5 -5
@@ -1063,7 +1063,7 @@ static void __intel_buf_init(struct buf_ops *bops, }else {uint16_t cpu_caching =__xe_default_cpu_caching (bops->fd, region,0 ); -if (intel_gen_from_pciid (bops->devid) >=20 && compression) +if (intel_gfx_ver_major (bops->fd) >=20 && compression) cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ; bo_size =ALIGN (bo_size,xe_get_default_alignment (bops->fd));
@@ -1106,7 +1106,7 @@ void intel_buf_init(struct buf_ops *bops,uint64_t region;uint8_t pat_index =DEFAULT_PAT_INDEX ; -if (compression &&intel_gen_from_pciid (bops->devid) >=20 ) +if (compression &&intel_gfx_ver_major (bops->fd) >=20 ) pat_index =intel_get_pat_idx_uc_comp (bops->fd); region = bops->driver == INTEL_DRIVER_I915 ? I915_SYSTEM_MEMORY :
@@ -1132,7 +1132,7 @@ void intel_buf_init_in_region(struct buf_ops *bops, {uint8_t pat_index =DEFAULT_PAT_INDEX ; -if (compression &&intel_gen_from_pciid (bops->devid) >=20 ) +if (compression &&intel_gfx_ver_major (bops->fd) >=20 ) pat_index =intel_get_pat_idx_uc_comp (bops->fd); __intel_buf_init(bops, 0, buf, width, height, bpp, alignment,
@@ -1203,7 +1203,7 @@ void intel_buf_init_using_handle_and_size(struct buf_ops *bops,igt_assert (handle);igt_assert (size); -if (compression &&intel_gen_from_pciid (bops->devid) >=20 ) +if (compression &&intel_gfx_ver_major (bops->fd) >=20 ) pat_index =intel_get_pat_idx_uc_comp (bops->fd); __intel_buf_init(bops, handle, buf, width, height, bpp, alignment,
@@ -1758,7 +1758,7 @@ static struct buf_ops *__buf_ops_create(int fd, bool check_idempotency)igt_assert (bops); devid =intel_get_drm_devid (fd); - generation =intel_gen_from_pciid (devid); + generation =intel_gfx_ver_major (fd);/* Predefined settings: see intel_device_info? */ for (int i =0 ; i <ARRAY_SIZE (buf_ops_arr); i++) {
lib/intel_common.c +1 -1
@@ -91,7 +91,7 @@ bool is_intel_region_compressible(int fd, uint64_t region)return true;/* Integrated Xe2+ supports compression on system memory */ -if (intel_gen_from_pciid (devid) >=20 && !is_dgfx &&is_intel_system_region (fd, region)) +if (intel_gfx_ver_major (fd) >=20 && !is_dgfx &&is_intel_system_region (fd, region))return true;/* Discrete supports compression on vram */
lib/intel_compute.c +3 -3
@@ -2303,7 +2303,7 @@ static bool __run_intel_compute_kernel(int fd,struct user_execenv *user, enum execenv_alloc_prefs alloc_prefs) { - unsigned int ip_ver = intel_graphics_ver_from_pciid(intel_get_drm_devid(fd)); + unsigned int ip_ver = intel_gfx_ver(fd);int batch;const struct intel_compute_kernels *kernel_entries = intel_compute_square_kernels, *kernels;enum intel_driver driver =get_intel_driver (fd);
@@ -2774,7 +2774,7 @@ static bool __run_intel_compute_kernel_preempt(int fd,bool threadgroup_preemption, enum execenv_alloc_prefs alloc_prefs) { - unsigned int ip_ver = intel_graphics_ver_from_pciid(intel_get_drm_devid(fd)); + unsigned int ip_ver = intel_gfx_ver(fd);int batch;const struct intel_compute_kernels *kernel_entries = intel_compute_square_kernels, *kernels;enum intel_driver driver =get_intel_driver (fd);
@@ -2828,7 +2828,7 @@ static bool __run_intel_compute_kernel_preempt(int fd,*/ bool xe_kernel_preempt_check (int fd,enum xe_compute_preempt_type required_preempt) { -unsigned int ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); +unsigned int ip_ver =intel_gfx_ver (fd);int batch =find_preempt_batch (ip_ver);if (batch <0 ) {
lib/intel_mocs.c +6 -7
@@ -4,6 +4,7 @@*/ #include "igt.h" +#include "intel_chipset.h" #include "intel_mocs.h" struct drm_intel_mocs_index {
@@ -27,8 +28,7 @@ struct drm_intel_mocs_index {static void get_mocs_index (int fd,struct drm_intel_mocs_index *mocs) { -uint16_t devid =intel_get_drm_devid (fd); -unsigned int ip_ver =intel_graphics_ver_from_pciid (devid); +unsigned int ip_ver =intel_gfx_ver (fd);/* * Gen >= 12 onwards don't have a setting for PTE,
@@ -42,15 +42,15 @@ static void get_mocs_index(int fd, struct drm_intel_mocs_index *mocs) mocs->wb_index =4 ; mocs->displayable_index =1 ; mocs->defer_to_pat_index =0 ; - }else if (IS_METEORLAKE (devid)) { + }else if (ip_ver ==IP_VER (12 ,70 )) {//IS_METEORLAKE mocs->uc_index =5 ; mocs->wb_index =1 ; mocs->displayable_index =14 ; - }else if (IS_DG2 (devid)) { + }else if (ip_ver ==IP_VER (12 ,55 )) {//IS_DG2 mocs->uc_index =1 ; mocs->wb_index =3 ; mocs->displayable_index =3 ; - }else if (IS_DG1 (devid)) { + }else if (ip_ver ==IP_VER (12 ,10 )) {//IS_DG1 mocs->uc_index =1 ; mocs->wb_index =5 ; mocs->displayable_index =5 ;
@@ -124,9 +124,8 @@ uint8_t intel_get_displayable_mocs_index(int fd)uint8_t intel_get_defer_to_pat_mocs_index (int fd) {struct drm_intel_mocs_index mocs; -uint16_t dev_id =intel_get_drm_devid (fd); -igt_assert (intel_gen_from_pciid (dev_id) >=20 ); +igt_assert (intel_gfx_ver_major (fd) >=20 );get_mocs_index (fd, &mocs);
lib/intel_pat.c +7 -7
@@ -6,6 +6,7 @@#include <fcntl.h> #include "igt.h" #include "intel_pat.h" +#include "intel_chipset.h" #include "xe/xe_query.h" /**
@@ -97,7 +98,7 @@ int32_t xe_get_pat_sw_config(int drm_fd, struct intel_pat_cache *xe_pat_cache)static void intel_get_pat_idx (int fd,struct intel_pat_cache *pat) { -uint16_t dev_id; +uint16_t ip_ver;/* * For Xe, use the PAT cache stored in struct xe_device.
@@ -115,19 +116,19 @@ static void intel_get_pat_idx(int fd, struct intel_pat_cache *pat) }/* i915 fallback: hardcoded PAT indices */ - dev_id =intel_get_drm_devid (fd); + ip_ver =intel_gfx_ver (fd); -if (IS_METEORLAKE (dev_id)) { +if (ip_ver ==IP_VER (12 ,70 )) {//IS_METEORLAKE pat->uc =2 ; pat->wt =1 ; pat->wb =3 ; pat->max_index =3 ; - }else if (IS_PONTEVECCHIO (dev_id)) { + }else if (ip_ver ==IP_VER (12 ,60 )) {//IS_PONTEVECCHIO pat->uc =0 ; pat->wt =2 ; pat->wb =3 ; pat->max_index =7 ; - }else if (intel_graphics_ver_from_pciid (dev_id) <=IP_VER (12 ,60 )) { + }else if (ip_ver <=IP_VER (12 ,60 )) { pat->uc =3 ; pat->wt =2 ; pat->wb =0 ;
@@ -156,9 +157,8 @@ uint8_t intel_get_pat_idx_uc(int fd)uint8_t intel_get_pat_idx_uc_comp (int fd) {struct intel_pat_cache pat = {}; -uint16_t dev_id =intel_get_drm_devid (fd); -igt_assert (intel_gen_from_pciid (dev_id) >=20 ); +igt_assert (intel_gfx_ver_major (fd) >=20 );intel_get_pat_idx (fd, &pat);return pat.uc_comp;
lib/ioctl_wrappers.c +1 -1
@@ -1072,7 +1072,7 @@ void gem_require_ring(int fd, unsigned ring)*/ bool gem_has_mocs_registers (int fd) { -return intel_gen_from_pciid (intel_get_drm_devid (fd)) >=9 ; +return intel_gfx_ver_major (fd) >=9 ; }/**
lib/rendercopy_gen9.c +12 -12
@@ -265,12 +265,12 @@ gen9_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst,if (buf->compression ==I915_COMPRESSION_MEDIA ) ss->ss7.tgl.media_compression =1 ;else if (buf->compression ==I915_COMPRESSION_RENDER ) { -if (intel_gen_from_pciid (ibb->devid) >=20 ) +if (intel_gfx_ver_major (ibb->fd) >=20 ) ss->ss6.aux_mode =0x0 ;/* AUX_NONE, unified compression */ else ss->ss6.aux_mode =0x5 ;/* AUX_CCS_E */ -if (intel_gen_from_pciid (ibb->devid) <12 && buf->ccs[0 ].stride) { +if (intel_gfx_ver_major (ibb->fd) <12 && buf->ccs[0 ].stride) { ss->ss6.aux_pitch = (buf->ccs[0 ].stride /128 ) -1 ; address = intel_bb_offset_reloc_with_delta(ibb, buf->handle,
@@ -312,7 +312,7 @@ gen9_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst, ss->ss7.dg2.disable_support_for_multi_gpu_partial_writes =1 ; ss->ss7.dg2.disable_support_for_multi_gpu_atomics =1 ; -if (intel_gen_from_pciid (ibb->devid) >=20 ) +if (intel_gfx_ver_major (ibb->fd) >=20 ) ss->ss12.lnl.compression_format =lnl_compression_format (buf);else ss->ss12.dg2.compression_format =dg2_compression_format (buf);
@@ -690,7 +690,7 @@ gen9_emit_state_base_address(struct intel_bb *ibb) {/* WaBindlessSurfaceStateModifyEnable:skl,bxt */ /* The length has to be one less if we dont modify bindless state */ -if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gfx_ver_major (ibb->fd) >=20 )intel_bb_out (ibb,GEN4_STATE_BASE_ADDRESS |20 );else intel_bb_out (ibb,GEN4_STATE_BASE_ADDRESS | (19 -1 -2 ));
@@ -735,7 +735,7 @@ gen9_emit_state_base_address(struct intel_bb *ibb) {intel_bb_out (ibb,0 );intel_bb_out (ibb,0 ); -if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 ) { +if (intel_gfx_ver_major (ibb->fd) >=20 ) {/* Bindless sampler */ intel_bb_out (ibb,0 );intel_bb_out (ibb,0 );
@@ -746,7 +746,7 @@ gen9_emit_state_base_address(struct intel_bb *ibb) {static void gen7_emit_urb (struct intel_bb *ibb) {/* XXX: Min valid values from mesa */ -const int vs_entries =intel_gen_from_pciid (ibb->devid) >=35 ?128 :64 ; +const int vs_entries =intel_gfx_ver_major (ibb->fd) >=35 ?128 :64 ;const int vs_size =2 ;const int vs_start =4 ;
@@ -908,7 +908,7 @@ gen9_emit_ds(struct intel_bb *ibb) {static void gen8_emit_wm_hz_op (struct intel_bb *ibb) { -if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 ) { +if (intel_gfx_ver_major (ibb->fd) >=20 ) {intel_bb_out (ibb,GEN8_3DSTATE_WM_HZ_OP | (6 -2 ));intel_bb_out (ibb,0 ); }else {
@@ -998,7 +998,7 @@ gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel, bool fast_clear) {intel_bb_out (ibb,0 );intel_bb_out (ibb,GEN7_3DSTATE_PS | (12 -2 )); -if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gfx_ver_major (ibb->fd) >=20 )intel_bb_out (ibb, kernel |1 );else intel_bb_out (ibb, kernel);
@@ -1015,7 +1015,7 @@ gen8_emit_ps(struct intel_bb *ibb, uint32_t kernel, bool fast_clear) {intel_bb_out (ibb, (max_threads -1 ) <<GEN8_3DSTATE_PS_MAX_THREADS_SHIFT |GEN6_3DSTATE_WM_16_DISPATCH_ENABLE | (fast_clear ?GEN8_3DSTATE_FAST_CLEAR_ENABLE :0 )); -if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gfx_ver_major (ibb->fd) >=20 )intel_bb_out (ibb,6 <<GEN6_3DSTATE_WM_DISPATCH_START_GRF_0_SHIFT |GENXE_KERNEL0_POLY_PACK16_FIXED <<GENXE_KERNEL0_PACKING_POLICY );else
@@ -1070,7 +1070,7 @@ gen9_emit_depth(struct intel_bb *ibb)static void gen7_emit_clear (struct intel_bb *ibb) { -if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gfx_ver_major (ibb->fd) >=20 )return ;intel_bb_out (ibb,GEN7_3DSTATE_CLEAR_PARAMS | (3 -2 ));
@@ -1081,7 +1081,7 @@ gen7_emit_clear(struct intel_bb *ibb) {static void gen6_emit_drawing_rectangle (struct intel_bb *ibb,const struct intel_buf *dst) { -if (intel_gen_from_pciid (intel_get_drm_devid (ibb->fd)) >=20 ) +if (intel_gfx_ver_major (ibb->fd) >=20 )intel_bb_out (ibb,GENXE2_3DSTATE_DRAWING_RECTANGLE_FAST | (4 -2 ));else intel_bb_out (ibb,GEN4_3DSTATE_DRAWING_RECTANGLE | (4 -2 ));
@@ -1275,7 +1275,7 @@ void _gen9_render_op(struct intel_bb *ibb,gen9_emit_state_base_address (ibb); -if (HAS_4TILE (ibb->devid) ||intel_gen_from_pciid (ibb->devid) >12 ) { +if (HAS_4TILE (ibb->devid) ||intel_gfx_ver_major (ibb->fd) >12 ) {intel_bb_out (ibb,GEN4_3DSTATE_BINDING_TABLE_POOL_ALLOC |2 ); intel_bb_emit_reloc(ibb, ibb->handle, I915_GEM_DOMAIN_RENDER | I915_GEM_DOMAIN_INSTRUCTION, 0,
lib/xe/xe_legacy.c +1 -1
@@ -75,7 +75,7 @@ xe_legacy_test_mode(int fd, struct drm_xe_engine_class_instance *eci,igt_assert_lte (n_exec_queues,MAX_N_EXECQUEUES );if (flags &COMPRESSION ) -igt_require (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=20 ); +igt_require (intel_gfx_ver_major (fd) >=20 );if (flags &CLOSE_FD ) fd =drm_open_driver (DRIVER_XE );
lib/xe/xe_oa.c +1 -1
@@ -455,7 +455,7 @@ xe_fill_topology_info(int drm_fd, uint32_t device_id, uint32_t *topology_size)u8 *ptr;/* Only ADL-P, DG2 and newer ip support hwconfig, use hardcoded values for previous */ -if (intel_graphics_ver_from_pciid (device_id) >=IP_VER (12 ,55 ) || devinfo->is_alderlake_p) { +if (intel_gfx_ver (drm_fd) >=IP_VER (12 ,55 ) || devinfo->is_alderlake_p) {query_hwconfig (drm_fd, &topinfo); }else { topinfo.max_slices =1 ;
lib/xe/xe_spin.c +1 -3
@@ -54,7 +54,6 @@ void xe_spin_init(struct xe_spin *spin, struct xe_spin_opts *opts)uint64_t pad_addr = opts->addr + offsetof(struct xe_spin , pad);uint64_t timestamp_addr = opts->addr + offsetof(struct xe_spin , timestamp);int b =0 ; -uint32_t devid; spin->start =0 ; spin->end =0xffffffff ;
@@ -166,8 +165,7 @@ void xe_spin_init(struct xe_spin *spin, struct xe_spin_opts *opts) spin->batch[b++] = opts->mem_copy->dst_offset; spin->batch[b++] = opts->mem_copy->dst_offset <<32 ; - devid =intel_get_drm_devid (opts->mem_copy->fd); -if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) +if (intel_gfx_ver (opts->mem_copy->fd) >=IP_VER (20 ,0 )) spin->batch[b++] = opts->mem_copy->src->mocs_index <<XE2_MEM_COPY_SRC_MOCS_SHIFT | opts->mem_copy->dst->mocs_index <<XE2_MEM_COPY_DST_MOCS_SHIFT ;else
lib/xe/xe_sriov_provisioning.c +1 -3
@@ -53,9 +53,7 @@ const char *xe_sriov_shared_res_to_string(enum xe_sriov_shared_res res)static uint64_t get_vfid_mask (int fd) { -uint16_t dev_id =intel_get_drm_devid (fd); - -return (intel_graphics_ver_from_pciid (dev_id) >=IP_VER (12 ,50 )) ? +return (intel_gfx_ver (fd) >=IP_VER (12 ,50 )) ?GGTT_PTE_VFID_MASK :PRE_1250_IP_VER_GGTT_PTE_VFID_MASK ; }
tests/intel/api_intel_allocator.c +1 -1
@@ -625,7 +625,7 @@ static void execbuf_with_allocator(int fd)uint64_t ahnd, sz =4096 , gtt_size;unsigned int flags =EXEC_OBJECT_PINNED ;uint32_t *ptr, batch[32 ], copied; -int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +int gen =intel_gfx_ver_major (fd);int i;const uint32_t magic =0x900df00d ;
tests/intel/api_intel_bb.c +5 -6
@@ -1052,7 +1052,7 @@ static void do_intel_bb_blit(struct buf_ops *bops, int loops, uint32_t tiling)gem_require_blitter (i915);/* We'll fix it for gen2/3 later. */ -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >3 ); +igt_require (intel_gfx_ver_major (i915) >3 );for (i =0 ; i < loops; i++) { fails +=__do_intel_bb_blit (bops, tiling);
@@ -1313,13 +1313,12 @@ static int render(struct buf_ops *bops, uint32_t tiling, bool do_reloc,int i915 =buf_ops_get_fd (bops);uint32_t fails =0 ;char name[128 ]; -uint32_t devid =intel_get_drm_devid (i915);igt_render_copyfunc_t render_copy =NULL ; -igt_debug ("%s() gen: %d\n" , __func__,intel_gen_from_pciid (devid)); +igt_debug ("%s() gen: %d\n" , __func__,intel_gfx_ver_major (i915));/* Don't use relocations on gen12+ */ -igt_require ((do_reloc &&intel_gen_from_pciid (devid) <12 ) || +igt_require ((do_reloc &&intel_gfx_ver_major (i915) <12 ) || !do_reloc);if (do_reloc)
@@ -1597,7 +1596,7 @@ int igt_main_args("dpibc:", NULL, help_str, opt_handler, NULL) igt_fixture() { i915 =drm_open_driver (DRIVER_INTEL ); bops =buf_ops_create (i915); - gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); + gen =intel_gfx_ver_major (i915); }igt_describe ("Ensure reset is possible on fresh bb" );
@@ -1659,7 +1658,7 @@ int igt_main_args("dpibc:", NULL, help_str, opt_handler, NULL)do_intel_bb_blit (bops,10 ,I915_TILING_X ); igt_subtest("intel-bb-blit-y") { -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=6 ); +igt_require (intel_gfx_ver_major (i915) >=6 );do_intel_bb_blit (bops,10 ,I915_TILING_Y ); }
tests/intel/gem_bad_reloc.c +2 -2
@@ -84,7 +84,7 @@ static void negative_reloc(int fd, unsigned flags)uint64_t *offsets;int i; -igt_require (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=7 ); +igt_require (intel_gfx_ver_major (fd) >=7 );memset (&obj,0 ,sizeof (obj)); obj.handle =gem_create (fd,8192 );
@@ -135,7 +135,7 @@ static void negative_reloc(int fd, unsigned flags)static void negative_reloc_blt (int fd) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj[1024 ][2 ];struct drm_i915_gem_relocation_entry reloc;
tests/intel/gem_blits.c +1 -1
@@ -830,7 +830,7 @@ int igt_main()gem_require_blitter (device.fd); device.pciid =intel_get_drm_devid (device.fd); - device.gen =intel_gen_from_pciid (device.pciid); + device.gen =intel_gfx_ver_major (device.fd); device.llc =gem_has_llc (device.fd); device.ahnd =get_reloc_ahnd (device.fd,0 ); }
tests/intel/gem_close_race.c +1 -1
@@ -347,7 +347,7 @@ int igt_main()igt_require_gem (fd); devid =intel_get_drm_devid (fd); - has_64bit_relocations =intel_gen_from_pciid (devid) >=8 ; + has_64bit_relocations =intel_gfx_ver_major (fd) >=8 ; has_softpin = !gem_has_relocations (fd); exec_addr =gem_detect_safe_start_offset (fd); data_addr =gem_detect_safe_alignment (fd);
tests/intel/gem_concurrent_all.c +1 -1
@@ -1904,7 +1904,7 @@ int igt_main()igt_require_gem (fd);intel_detect_and_clear_missed_interrupts (fd); devid =intel_get_drm_devid (fd); - gen =intel_gen_from_pciid (devid); + gen =intel_gfx_ver_major (fd); rendercopy =igt_get_render_copyfunc (fd); vgem_drv =__drm_open_driver (DRIVER_VGEM );
tests/intel/gem_ctx_create.c +2 -2
@@ -309,7 +309,7 @@ static void xchg_ptr(void *array, unsigned i, unsigned j)static unsigned __context_size (int fd) { -switch (intel_gen_from_pciid (intel_get_drm_devid (fd))) { +switch (intel_gfx_ver_major (fd)) {case 0 :case 1 :case 2 :
@@ -478,7 +478,7 @@ static void basic_ext_param(int i915)static void check_single_timeline (int i915,uint32_t ctx,int num_engines) {#define RCS_TIMESTAMP (0x2000 + 0x358) -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);const int has_64bit_reloc = gen >=8 ;struct drm_i915_gem_exec_object2 results = { .handle =gem_create (i915,4096 ) };const uint32_t bbe =MI_BATCH_BUFFER_END ;
tests/intel/gem_ctx_engines.c +3 -3
@@ -474,7 +474,7 @@ static void independent(int i915, const intel_ctx_t *base_ctx, const struct intel_execution_engine2 *e) {#define RCS_TIMESTAMP (mmio_base + 0x358) -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);unsigned int mmio_base =gem_engine_mmio_base (i915, e->name);const int has_64bit_reloc = gen >=8 ;I915_DEFINE_CONTEXT_PARAM_ENGINES (engines,I915_EXEC_RING_MASK +1 );
@@ -571,7 +571,7 @@ static void independent(int i915, const intel_ctx_t *base_ctx,static void independent_all (int i915,const intel_ctx_t *ctx) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);const struct intel_execution_engine2 *e;igt_spin_t *spin =NULL ;uint64_t ahnd =get_reloc_ahnd (i915, ctx->id);
@@ -643,7 +643,7 @@ int igt_main()const intel_ctx_t *ctx;igt_require (gem_scheduler_enabled (i915)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=6 ); +igt_require (intel_gfx_ver_major (i915) >=6 ); ctx =intel_ctx_create_all_physical (i915);for_each_ctx_engine (i915, ctx, e) {
tests/intel/gem_ctx_isolation.c +7 -7
@@ -273,7 +273,7 @@ static void tmpl_regs(int fd, uint32_t handle, uint32_t value) { -const unsigned int gen_bit =1 <<intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen_bit =1 <<intel_gfx_ver_major (fd);const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);unsigned int regs_size;
@@ -318,7 +318,7 @@ static uint32_t read_regs(int fd, const struct intel_execution_engine2 *e, unsigned int flags) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const unsigned int gen_bit =1 << gen;const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);
@@ -408,7 +408,7 @@ static void write_regs(int fd, uint64_t ahnd, unsigned int flags, uint32_t value) { -const unsigned int gen_bit =1 <<intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen_bit =1 <<intel_gfx_ver_major (fd);const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);struct drm_i915_gem_exec_object2 obj;
@@ -475,7 +475,7 @@ static void restore_regs(int fd, unsigned int flags, uint32_t regs) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const unsigned int gen_bit =1 << gen;const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);
@@ -561,7 +561,7 @@ static void dump_regs(int fd, const struct intel_execution_engine2 *e, unsigned int regs) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const unsigned int gen_bit =1 << gen;const unsigned int engine_bit =ENGINE (e->class, e->instance);const uint32_t mmio_base =gem_engine_mmio_base (fd, e->name);
@@ -674,7 +674,7 @@ static void nonpriv(int fd, const intel_ctx_cfg_t *cfg,unsigned int num_values =ARRAY_SIZE (values);/* Sigh -- hsw: we need cmdparser access to our own registers! */ -igt_skip_on (intel_gen_from_pciid (intel_get_drm_devid (fd)) <8 ); +igt_skip_on (intel_gfx_ver_major (fd) <8 );gem_quiescent_gpu (fd);
@@ -1022,7 +1022,7 @@ int igt_main() has_context_isolation =__has_context_isolation (i915);igt_require (has_context_isolation); - gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); + gen =intel_gfx_ver_major (i915);igt_warn_on_f (gen >LAST_KNOWN_GEN ,"GEN not recognized! Test needs to be updated to run.\n" );
tests/intel/gem_ctx_shared.c +4 -4
@@ -292,7 +292,7 @@ static void exhaust_shared_gtt(int i915, unsigned int flags)static void exec_shared_gtt (int i915,const intel_ctx_cfg_t *cfg,unsigned int ring) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 obj = {};struct drm_i915_gem_execbuffer2 execbuf = {
@@ -556,7 +556,7 @@ static void store_dword(int i915, uint64_t ahnd, const intel_ctx_t *ctx, uint32_t cork, uint64_t cork_size, unsigned write_domain) { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(i915)); + const unsigned int gen = intel_gfx_ver_major(i915);struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -683,7 +683,7 @@ static uint32_t store_timestamp(int i915, int fence, int offset) { -const bool r64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ; +const bool r64b =intel_gfx_ver_major (i915) >=8 ;uint32_t handle =gem_create (i915,4096 );struct drm_i915_gem_exec_object2 obj = { .handle = handle,
@@ -714,7 +714,7 @@ static uint32_t store_timestamp(int i915,MI_BATCH_BUFFER_END }; -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=7 ); +igt_require (intel_gfx_ver_major (i915) >=7 );gem_write (i915, handle,0 , batch,sizeof (batch)); obj.relocs_ptr =to_user_pointer (&reloc);
tests/intel/gem_ctx_sseu.c +1 -1
@@ -523,7 +523,7 @@ int igt_main()igt_require_gem (fd); __intel_devid__ =intel_get_drm_devid (fd); - __intel_gen__ =intel_gen_from_pciid (__intel_devid__); + __intel_gen__ =intel_gfx_ver_major (fd);igt_require (kernel_has_per_context_sseu_support (fd)); }
tests/intel/gem_eio.c +3 -3
@@ -300,10 +300,10 @@ static igt_spin_t *__spin_poll(int fd, uint64_t ahnd, const intel_ctx_t *ctx, };if (!gem_engine_has_cmdparser (fd, &ctx->cfg, opts.engine) && -intel_gen_from_pciid (intel_get_drm_devid (fd)) !=6 ) +intel_gfx_ver_major (fd) !=6 ) opts.flags |=IGT_SPIN_INVALID_CS ; -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >7 ) +if (intel_gfx_ver_major (fd) >7 ) opts.flags |=IGT_SPIN_FAST ;if (gem_can_store_dword (fd, opts.engine))
@@ -420,7 +420,7 @@ static void check_wait_elapsed(const char *prefix, int fd, igt_stats_t *st)* modeset back on) around resets, so may take a lot longer. */ limit =250e6 ; -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) <5 ||intel_gen_from_pciid (intel_get_drm_devid (fd)) >11 ) +if (intel_gfx_ver_major (fd) <5 ||intel_gfx_ver_major (fd) >11 ) limit +=300e6 ;/* guestimate for 2x worstcase modeset */ med =igt_stats_get_median (st);
tests/intel/gem_evict_alignment.c +3 -3
@@ -88,7 +88,7 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, batch[i++] = (XY_SRC_COPY_BLT_CMD |XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB |6 ); -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i -1 ] +=2 ; batch[i++] = (3 <<24 ) |/* 32 bits */ (0xcc << 16) | /* copy ROP */
@@ -96,12 +96,12 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] =0 ;/* dst reloc */ -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] =0 ;/* FIXME */ batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] =0 ;/* src reloc */ -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] =0 ;/* FIXME */ batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
tests/intel/gem_evict_everything.c +4 -4
@@ -132,7 +132,7 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) batch[i++] = (XY_SRC_COPY_BLT_CMD |XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB |6 ); -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i -1 ] +=2 ; batch[i++] = (3 <<24 ) |/* 32 bits */ (0xcc << 16) | /* copy ROP */
@@ -140,12 +140,12 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] =0 ;/* dst reloc */ -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] =0 ;/* FIXME */ batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] =0 ;/* src reloc */ -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] =0 ;/* FIXME */ batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
@@ -163,7 +163,7 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) reloc[1 ].target_handle = src; reloc[1 ].delta =0 ; reloc[1 ].offset =7 *sizeof (batch[0 ]); -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) reloc[1 ].offset +=sizeof (batch[0 ]); reloc[1 ].presumed_offset =0 ; reloc[1 ].read_domains =I915_GEM_DOMAIN_RENDER ;
tests/intel/gem_exec_async.c +1 -1
@@ -45,7 +45,7 @@ static void store_dword(int fd, int id, const intel_ctx_t *ctx, unsigned ring, uint32_t target, uint64_t target_offset, uint32_t offset, uint32_t value) { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gfx_ver_major(fd);struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
tests/intel/gem_exec_await.c +1 -1
@@ -83,7 +83,7 @@ static void wide(int fd, intel_ctx_cfg_t *cfg, int ring_size, {const struct intel_execution_engine2 *engine;const uint32_t bbe =MI_BATCH_BUFFER_END ; -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct {struct drm_i915_gem_exec_object2 *obj;struct drm_i915_gem_exec_object2 exec[2 ];
tests/intel/gem_exec_balancer.c +2 -2
@@ -2631,7 +2631,7 @@ static int read_ctx_timestamp_frequency(int i915) .value = &value, .param = I915_PARAM_CS_TIMESTAMP_FREQUENCY, }; -if (intel_gen_from_pciid (intel_get_drm_devid (i915)) !=11 ) +if (intel_gfx_ver_major (i915) !=11 )ioctl (i915,DRM_IOCTL_I915_GETPARAM , &gp);return value; }
@@ -2719,7 +2719,7 @@ static void __fairslice(int i915,static void fairslice (int i915) {/* Relative CS mmio */ -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=11 ); +igt_require (intel_gfx_ver_major (i915) >=11 );for (int class =0 ; class <32 ; class++) {struct i915_engine_class_instance *ci;
tests/intel/gem_exec_big.c +1 -1
@@ -326,7 +326,7 @@ int igt_main() i915 =drm_open_driver (DRIVER_INTEL );igt_require_gem (i915); - use_64bit_relocs =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ; + use_64bit_relocs =intel_gfx_ver_major (i915) >=8 ; has_relocs =gem_has_relocations (i915); }
tests/intel/gem_exec_capture.c +3 -6
@@ -302,7 +302,7 @@ static void __capture1(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx,const struct intel_execution_engine2 *e, uint32_t target, uint64_t target_size, uint32_t region) { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gfx_ver_major(fd);struct drm_i915_gem_exec_object2 obj[4 ];#define SCRATCH 0#define CAPTURE 1
@@ -470,7 +470,7 @@ __captureN(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx,#define INCREMENTAL 0x1#define ASYNC 0x2 { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_exec_object2 *obj;struct drm_i915_gem_relocation_entry reloc[2 ];struct drm_i915_gem_execbuffer2 execbuf;
@@ -652,13 +652,10 @@ static bool kernel_supports_probed_size(int fd)static bool needs_recoverable_ctx (int fd) { -uint16_t devid; -if (!kernel_supports_probed_size (fd))return false; - devid =intel_get_drm_devid (fd); -return gem_has_lmem (fd) ||intel_graphics_ver_from_pciid (devid) >IP_VER (12 ,0 ); +return gem_has_lmem (fd) ||intel_gfx_ver (fd) >IP_VER (12 ,0 ); }#define find_first_available_engine (fd, ctx, e, saved) \
tests/intel/gem_exec_fair.c +10 -10
@@ -143,7 +143,7 @@ static bool has_mi_math(int i915, const struct intel_execution_engine2 *e) {uint32_t devid =intel_get_drm_devid (i915); -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (i915) >=8 )return true;if (!IS_HASWELL (devid))
@@ -195,7 +195,7 @@ static uint64_t div64_u64_round_up(uint64_t x, uint64_t y)static uint64_t ns_to_ctx_ticks (int i915,uint64_t ns) {int f =read_timestamp_frequency (i915); -if (intel_gen_from_pciid (intel_get_drm_devid (i915)) ==11 ) +if (intel_gfx_ver_major (i915) ==11 ) f =12500000 ;/* gen11!!! are you feeling alright? CTX vs CS */ return div64_u64_round_up (ns * f,NSEC64 ); }
@@ -212,7 +212,7 @@ static void delay(int i915, uint64_t addr, uint64_t ns) { -const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gfx_ver_major (i915) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);const uint32_t runtime = base + (use_64b ?0x3a8 :0x358 );#define CS_GPR (x) (base + 0x600 + 8 * (x))
@@ -317,7 +317,7 @@ static void tslog(int i915, uint32_t handle, uint64_t addr) { -const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gfx_ver_major (i915) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);#define CS_GPR (x) (base + 0x600 + 8 * (x))#define CS_TIMESTAMP (base + 0x358)
@@ -441,7 +441,7 @@ read_ctx_timestamp(int i915, const intel_ctx_t *ctx, .rsvd1 = ctx->id, .flags = e->flags, }; -const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gfx_ver_major (i915) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);const uint32_t runtime = base + (use_64b ?0x3a8 :0x358 );uint32_t *map, *cs;
@@ -489,7 +489,7 @@ read_ctx_timestamp(int i915, const intel_ctx_t *ctx,static bool has_ctx_timestamp (int i915,const intel_ctx_cfg_t *cfg,const struct intel_execution_engine2 *e) { -const int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const int gen =intel_gfx_ver_major (i915);const intel_ctx_t *tmp_ctx;uint32_t timestamp;
@@ -587,7 +587,7 @@ static void fair_child(int i915, const intel_ctx_t *ctx,igt_assert_eq (p_fence,-1 ); aux_flags =0 ; -if (intel_gen_from_pciid (intel_get_drm_devid (i915)) <8 ) +if (intel_gfx_ver_major (i915) <8 ) aux_flags =I915_EXEC_SECURE ; ping.flags |= aux_flags; aux_flags |= e->flags;
@@ -734,7 +734,7 @@ static void fairness(int i915, const intel_ctx_cfg_t *cfg,igt_require (has_ctx_timestamp (i915, cfg, e));igt_require (gem_class_has_mutable_submission (i915, e->class));if (flags & (F_ISOLATE |F_PING )) -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 );igt_assert (pipe (lnk.child) ==0 );igt_assert (pipe (lnk.parent) ==0 );
@@ -1018,7 +1018,7 @@ static void deadline_child(int i915,unsigned int seq =1 ;int prev =-1 , next =-1 ; -if (intel_gen_from_pciid (intel_get_drm_devid (i915)) <8 ) +if (intel_gfx_ver_major (i915) <8 ) execbuf.flags |=I915_EXEC_SECURE ;gem_execbuf_wr (i915, &execbuf);
@@ -1154,7 +1154,7 @@ static void deadline(int i915, const intel_ctx_cfg_t *cfg, obj[0 ] =delay_create (i915, delay_ctx, &pe, parent_ns);if (flags &DL_PRIO )gem_context_set_priority (i915, delay_ctx->id,1023 ); -if (intel_gen_from_pciid (intel_get_drm_devid (i915)) <8 ) +if (intel_gfx_ver_major (i915) <8 ) execbuf.flags |=I915_EXEC_SECURE ;for (int n =1 ; n <=5 ; n++) {int timeline =sw_sync_timeline_create ();
tests/intel/gem_exec_fence.c +9 -11
@@ -293,7 +293,7 @@ static void test_fence_busy(int fd, const intel_ctx_t *ctx,static void test_fence_busy_all (int fd,const intel_ctx_t *ctx,unsigned flags) {const struct intel_execution_engine2 *e; -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_exec_object2 obj;struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -674,7 +674,7 @@ static void test_submitN(int i915, const intel_ctx_t *ctx,igt_require (gem_scheduler_has_semaphores (i915));igt_require (gem_scheduler_has_preemption (i915)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 );for (int i =0 ; i < count; i++) {const intel_ctx_t *tmp_ctx =intel_ctx_create (i915, &ctx->cfg);
@@ -721,7 +721,7 @@ static void test_parallel(int i915, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e) {const struct intel_execution_engine2 *e2; -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);uint32_t scratch =gem_create (i915,4096 );uint32_t *out =gem_mmap__device_coherent (i915, scratch,0 ,4096 ,PROT_READ );uint32_t handle[I915_EXEC_RING_MASK ];
@@ -844,7 +844,7 @@ static void test_parallel(int i915, const intel_ctx_t *ctx,static void test_concurrent (int i915,const intel_ctx_t *ctx,const struct intel_execution_engine2 *e) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);uint64_t ahnd =get_reloc_ahnd (i915, ctx->id);struct drm_i915_gem_relocation_entry reloc = { .target_handle =gem_create (i915,4096 ),
@@ -2605,9 +2605,7 @@ get_cs_timestamp_frequency(int fd)static bool use_set_predicate_result (int i915) { -uint16_t devid =intel_get_drm_devid (i915); - -return intel_graphics_ver_from_pciid (devid) >=IP_VER (12 ,50 ); +return intel_gfx_ver (i915) >=IP_VER (12 ,50 ); } static struct drm_i915_gem_exec_object2
@@ -3289,7 +3287,7 @@ int igt_main() igt_subtest_with_dynamic("submit") {igt_require (gem_scheduler_has_semaphores (i915));igt_require (gem_scheduler_has_preemption (i915)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 );for_each_ctx_engine (i915, ctx, e) {igt_dynamic_f ("%s" , e->name)
@@ -3302,7 +3300,7 @@ int igt_main() igt_subtest_with_dynamic("submit3") {igt_require (gem_scheduler_has_semaphores (i915));igt_require (gem_scheduler_has_preemption (i915)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 );for_each_ctx_engine (i915, ctx, e) {igt_dynamic_f ("%s" , e->name)
@@ -3315,7 +3313,7 @@ int igt_main() igt_subtest_with_dynamic("submit67") {igt_require (gem_scheduler_has_semaphores (i915));igt_require (gem_scheduler_has_preemption (i915)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 );for_each_ctx_engine (i915, ctx, e) {igt_dynamic_f ("%s" , e->name)
@@ -3512,7 +3510,7 @@ int igt_main()* engines which seems to be there * only on Gen8+ */ -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 ); }igt_describe (test_syncobj_timeline_chain_engines_desc);
tests/intel/gem_exec_flush.c +2 -2
@@ -1579,7 +1579,7 @@ static uint32_t movnt(uint32_t *map, int i)static void run (int fd,unsigned ring,int nchild,int timeout,unsigned flags) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);/* The crux of this testing is whether writes by the GPU are coherent * from the CPU.
@@ -1870,7 +1870,7 @@ enum batch_mode {static void batch (int fd,unsigned ring,int nchild,int timeout,enum batch_mode mode,unsigned flags) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);if (mode ==BATCH_GTT )gem_require_mappable_ggtt (fd);
tests/intel/gem_exec_gttfill.c +1 -1
@@ -141,7 +141,7 @@ static void submit(int fd, uint64_t ahnd, unsigned int gen,static void fillgtt (int fd,const intel_ctx_t *ctx,unsigned ring,int timeout) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_relocation_entry reloc[2 ];unsigned engines[I915_EXEC_RING_MASK +1 ];
tests/intel/gem_exec_latency.c +3 -3
@@ -140,7 +140,7 @@ static void latency_on_ring(int fd, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e, unsigned flags) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const int has_64bit_reloc = gen >=8 ;struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc;
@@ -290,7 +290,7 @@ static void latency_from_ring(int fd, const intel_ctx_t *base_ctx, const struct intel_execution_engine2 *e, unsigned flags) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const int has_64bit_reloc = gen >=8 ;struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc;
@@ -958,7 +958,7 @@ int igt_main() igt_subtest_group() { igt_fixture() -igt_require (intel_gen_from_pciid (intel_get_drm_devid (device)) >=7 ); +igt_require (intel_gfx_ver_major (device) >=7 ); test_each_engine("rthog-submit", device, ctx, e)rthog_latency_on_ring (device, ctx, e);
tests/intel/gem_exec_nop.c +2 -2
@@ -154,7 +154,7 @@ static void poll_ring(int fd, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e, int timeout) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj;struct drm_i915_gem_relocation_entry reloc[4 ], *r;
@@ -265,7 +265,7 @@ static void poll_ring(int fd, const intel_ctx_t *ctx,static void poll_sequential (int fd,const intel_ctx_t *ctx,const char *name,int timeout) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const struct intel_execution_engine2 *e;struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj[2 ];
tests/intel/gem_exec_parallel.c +1 -1
@@ -255,7 +255,7 @@ static void handle_close(int fd, unsigned int flags, uint32_t handle, void *datastatic void all (int fd,const intel_ctx_t *ctx,struct intel_execution_engine2 *engine,unsigned flags) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);unsigned engines[I915_EXEC_RING_MASK +1 ], nengine;uint32_t scratch[NUMOBJ ], handle[NUMOBJ ];struct thread *threads;
tests/intel/gem_exec_params.c +4 -4
@@ -148,7 +148,7 @@ static bool has_resource_streamer(int fd)static void test_batch_first (int fd) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc[2 ];
@@ -566,7 +566,7 @@ int igt_main() } igt_subtest("rel-constants-invalid-rel-gen5") { -igt_require (intel_gen_from_pciid (devid) >5 ); +igt_require (intel_gfx_ver_major (fd) >5 ); execbuf.flags =I915_EXEC_RENDER |I915_EXEC_CONSTANTS_REL_SURFACE ;RUN_FAIL (EINVAL ); }
@@ -583,7 +583,7 @@ int igt_main() } igt_subtest("sol-reset-not-gen7") { -igt_require (intel_gen_from_pciid (devid) !=7 ); +igt_require (intel_gfx_ver_major (fd) !=7 ); execbuf.flags =I915_EXEC_RENDER |I915_EXEC_GEN7_SOL_RESET ;RUN_FAIL (EINVAL ); }
@@ -632,7 +632,7 @@ int igt_main()/* rsvd1 aka context id is already exercised by gem_ctx_bad_exec */ igt_subtest("cliprects-invalid") { -igt_require (intel_gen_from_pciid (devid) >=5 ); +igt_require (intel_gfx_ver_major (fd) >=5 ); execbuf.flags =0 ; execbuf.num_cliprects =1 ;RUN_FAIL (EINVAL );
tests/intel/gem_exec_reloc.c +5 -5
@@ -663,7 +663,7 @@ static void write_dword(int fd, uint64_t target_offset, uint32_t value) { -unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;
@@ -865,7 +865,7 @@ static void check_bo(int fd, uint32_t handle)static void active (int fd,const intel_ctx_t *ctx,unsigned engine) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_execbuffer2 execbuf;
@@ -944,7 +944,7 @@ static void active(int fd, const intel_ctx_t *ctx, unsigned engine)static bool has_64b_reloc (int fd) { -return intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ; +return intel_gfx_ver_major (fd) >=8 ; }#define NORELOC 1
@@ -1268,7 +1268,7 @@ static void basic_softpin(int fd)static uint64_t concurrent_relocs (int i915,int idx,int count) {struct drm_i915_gem_relocation_entry *reloc; -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);unsigned long sz;int offset;
@@ -1371,7 +1371,7 @@ static void concurrent_child(int i915, const intel_ctx_t *ctx,static uint32_t create_concurrent_batch (int i915,unsigned int count) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);size_t sz =ALIGN (4 * (1 +4 * count),4096 );uint32_t handle =gem_create (i915, sz);uint32_t *map, *cs;
tests/intel/gem_exec_schedule.c +10 -10
@@ -176,7 +176,7 @@ static uint32_t __store_dword(int fd, uint64_t ahnd, const intel_ctx_t *ctx, uint32_t cork, uint64_t cork_offset, int fence, unsigned write_domain) { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gfx_ver_major(fd);struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -659,7 +659,7 @@ static void timeslice(int i915, const intel_ctx_cfg_t *cfg,*/ igt_require (gem_scheduler_has_timeslicing (i915)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 ); ctx[0 ] =intel_ctx_create (i915, cfg); obj.handle =timeslicing_batches (i915, &offset);
@@ -761,7 +761,7 @@ static void timesliceN(int i915, const intel_ctx_cfg_t *cfg,*/ igt_require (gem_scheduler_has_timeslicing (i915)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 );/* No coupling between requests; free to timeslice */
@@ -796,7 +796,7 @@ static void lateslice(int i915, const intel_ctx_cfg_t *cfg,uint64_t ahnd[3 ];igt_require (gem_scheduler_has_timeslicing (i915)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 ); ctx =intel_ctx_create (i915, cfg); ahnd[0 ] =get_reloc_ahnd (i915, ctx->id);
@@ -909,7 +909,7 @@ static void submit_slice(int i915, const intel_ctx_cfg_t *cfg,*/ igt_require (gem_scheduler_has_timeslicing (i915)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 );igt_require (gem_has_vm (i915)); engine_cfg.vm =gem_vm_create (i915);
@@ -1277,7 +1277,7 @@ static void semaphore_resolve(int i915, const intel_ctx_cfg_t *cfg,static void semaphore_noskip (int i915,const intel_ctx_cfg_t *cfg,unsigned long flags) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);const struct intel_execution_engine2 *outer, *inner;const intel_ctx_t *ctx0, *ctx1;uint64_t ahnd;
@@ -1371,7 +1371,7 @@ noreorder(int i915, const intel_ctx_cfg_t *cfg, unsigned int engine, int prio, unsigned int flags) #define CORKED 0x1 { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(i915)); + const unsigned int gen = intel_gfx_ver_major(i915);const struct intel_execution_engine2 *e; struct drm_i915_gem_exec_object2 obj = { .handle = gem_create(i915, 4096),
@@ -2305,7 +2305,7 @@ static void wide(int fd, const intel_ctx_cfg_t *cfg, unsigned ring)static void reorder_wide (int fd,const intel_ctx_cfg_t *cfg,unsigned ring) {const unsigned int ring_size =gem_submission_measure (fd, cfg, ring); -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const int priorities[] = {MIN_PRIO ,MAX_PRIO };struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_exec_object2 obj[2 ];
@@ -3066,7 +3066,7 @@ static int cmp_u32(const void *A, const void *B)static uint32_t read_ctx_timestamp (int i915,const intel_ctx_t *ctx,const struct intel_execution_engine2 *e) { -const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gfx_ver_major (i915) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_exec_object2 obj = {
@@ -3269,7 +3269,7 @@ int igt_main() igt_subtest_group() { igt_fixture() {igt_require (gem_scheduler_has_timeslicing (fd)); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ); +igt_require (intel_gfx_ver_major (fd) >=8 ); }test_each_engine ("fairslice" , fd, ctx, e)
tests/intel/gem_exec_store.c +3 -3
@@ -71,7 +71,7 @@ IGT_TEST_DESCRIPTION("Exercise store dword functionality using execbuf-ioctl");static void store_dword (int fd,const intel_ctx_t *ctx,const struct intel_execution_engine2 *e) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -152,7 +152,7 @@ static void store_cachelines(int fd, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e, unsigned int flags) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_exec_object2 *obj;struct drm_i915_gem_relocation_entry *reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -248,7 +248,7 @@ static void store_cachelines(int fd, const intel_ctx_t *ctx,static void store_all (int fd,const intel_ctx_t *ctx) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_exec_object2 obj[2 ];struct intel_execution_engine2 *engine;struct drm_i915_gem_relocation_entry *reloc;
tests/intel/gem_exec_suspend.c +1 -1
@@ -143,7 +143,7 @@ static void test_all(int fd, const intel_ctx_t *ctx, unsigned flags, uint32_t restatic void run_test (int fd,const intel_ctx_t *ctx,unsigned engine,unsigned flags,uint32_t region) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;
tests/intel/gem_exec_whisper.c +3 -3
@@ -164,7 +164,7 @@ static void verify_reloc(int fd, uint32_t handle, {if (VERIFY ) {uint64_t target =0 ; -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 )gem_read (fd, handle, reloc->offset, &target,8 );else gem_read (fd, handle, reloc->offset, &target,4 );
@@ -203,7 +203,7 @@ static void init_hang(struct hang *h, int fd, const intel_ctx_cfg_t *cfg) h->fd =drm_reopen_driver (fd);igt_allow_hang (h->fd,0 ,0 ); - gen =intel_gen_from_pciid (intel_get_drm_devid (h->fd)); + gen =intel_gfx_ver_major (h->fd);if (gem_has_contexts (fd)) { h->ctx =intel_ctx_create (h->fd, cfg);
@@ -293,7 +293,7 @@ static void whisper(int fd, const intel_ctx_t *ctx, unsigned engine, unsigned flags) {const uint32_t bbe =MI_BATCH_BUFFER_END ; -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const unsigned int ncpus =sysconf (_SC_NPROCESSORS_ONLN);struct drm_i915_gem_exec_object2 batches[QLEN ];struct drm_i915_gem_relocation_entry inter[QLEN ];
tests/intel/gem_fenced_exec_thrash.c +1 -4
@@ -193,7 +193,6 @@ static void run_test(int fd, int num_fences, int expected_errno,int igt_main () { -uint32_t devid =0 ;unsigned int num_fences =0 ;int fd =-1 ;
@@ -204,8 +203,6 @@ int igt_main() num_fences =gem_available_fences (fd);igt_require (num_fences >4 );igt_assert (num_fences <=MAX_FENCES ); - - devid =intel_get_drm_devid (fd); }igt_subtest ("2-spare-fences" )
@@ -217,7 +214,7 @@ int igt_main()run_test (fd, num_fences,0 , flags); } igt_subtest("too-many-fences") -run_test (fd, num_fences +1 ,intel_gen_from_pciid (devid) >=4 ?0 :ENOBUFS ,0 ); +run_test (fd, num_fences +1 ,intel_gfx_ver_major (fd) >=4 ?0 :ENOBUFS ,0 ); igt_fixture()drm_close_driver (fd);
tests/intel/gem_gpgpu_fill.c +1 -1
@@ -211,7 +211,7 @@ int igt_main_args("dW:H:X:Y:", NULL, help_str, opt_handler, NULL)igt_require_gem (data.drm_fd); data.bops =buf_ops_create (data.drm_fd); - fill_fn =igt_get_gpgpu_fillfunc (data.devid); + fill_fn =igt_get_gpgpu_fillfunc (data.drm_fd);igt_require_f (fill_fn,"no gpgpu-fill function\n" );
tests/intel/gem_gtt_hog.c +1 -1
@@ -177,7 +177,7 @@ int igt_simple_main() data.fd =drm_open_driver (DRIVER_INTEL ); data.devid =intel_get_drm_devid (data.fd); - data.intel_gen =intel_gen_from_pciid (data.devid); + data.intel_gen =intel_gfx_ver_major (data.fd);gettimeofday (&start,NULL );igt_fork (child,ARRAY_SIZE (children))
tests/intel/gem_linear_blits.c +4 -7
@@ -87,7 +87,6 @@ static void copy(int fd, uint64_t ahnd, uint32_t dst, uint32_t src,struct drm_i915_gem_relocation_entry reloc[2 ];struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_execbuffer2 exec; -static uint32_t devid;int i =0 ;memset (obj,0 ,sizeof (obj));
@@ -104,13 +103,11 @@ static void copy(int fd, uint64_t ahnd, uint32_t dst, uint32_t src, obj[2 ].offset =CANONICAL (obj[2 ].offset); obj[2 ].flags =EXEC_OBJECT_SUPPORTS_48B_ADDRESS ; - devid =intel_get_drm_devid (fd); -if (blt_has_xy_src_copy (fd)) { batch[i++] =XY_SRC_COPY_BLT_CMD |XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB ; -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i -1 ] |=8 ;else batch[i -1 ] |=6 ;
@@ -121,12 +118,12 @@ static void copy(int fd, uint64_t ahnd, uint32_t dst, uint32_t src, batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] = obj[0 ].offset; -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] = obj[0 ].offset >>32 ; batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] = obj[1 ].offset; -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] = obj[1 ].offset >>32 ; batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
@@ -160,7 +157,7 @@ static void copy(int fd, uint64_t ahnd, uint32_t dst, uint32_t src, reloc[1 ].target_handle = src; reloc[1 ].delta =0 ; reloc[1 ].offset =7 *sizeof (batch[0 ]); -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) reloc[1 ].offset +=sizeof (batch[0 ]); reloc[1 ].presumed_offset = obj[1 ].offset; reloc[1 ].read_domains =I915_GEM_DOMAIN_RENDER ;
tests/intel/gem_media_fill.c +1 -1
@@ -154,7 +154,7 @@ int igt_main() 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); + fill_fn =igt_get_media_fillfunc (data.drm_fd);igt_require_f (fill_fn,"no media-fill function\n" );
tests/intel/gem_media_vme.c +1 -1
@@ -133,7 +133,7 @@ int igt_simple_main()igt_assert (ctx);/* ICL hangs if non-VME enabled slices are enabled with a VME kernel. */ -if (intel_gen_from_pciid (devid) ==11 ) +if (intel_gfx_ver_major (drm_fd) ==11 )shut_non_vme_subslices (drm_fd, ctx);igt_fork_hang_detector (drm_fd);
tests/intel/gem_mmap_gtt.c +1 -1
@@ -1268,7 +1268,7 @@ test_huge_bo(int fd, int huge, int tiling)* a quarter size one instead. */ if (tiling && -intel_gen_from_pciid (intel_get_drm_devid (fd)) <4 && +intel_gfx_ver_major (fd) <4 && size >=gem_global_aperture_size (fd) /2 ) size /=2 ;break ;
tests/intel/gem_read_read_speed.c +1 -3
@@ -249,13 +249,11 @@ int igt_main()int fd, i; igt_fixture() { -int devid; fd =drm_open_driver (DRIVER_INTEL );igt_require_gem (fd); - devid =intel_get_drm_devid (fd); -igt_require (intel_gen_from_pciid (devid) >=6 ); +igt_require (intel_gfx_ver_major (fd) >=6 ); rendercopy =igt_get_render_copyfunc (fd);igt_require (rendercopy);
tests/intel/gem_render_copy.c +5 -5
@@ -223,7 +223,7 @@ copy_from_linear_buf(data_t *data, struct intel_buf *src, struct intel_buf *dst)static void *linear_copy_ccs (data_t *data,struct intel_buf *buf) {void *ccs_data, *linear; -unsigned int gen =intel_gen_from_pciid (data->devid); +unsigned int gen =intel_gfx_ver_major (data->drm_fd);int ccs_size =intel_buf_ccs_width (gen, buf) *intel_buf_ccs_height (gen, buf);int buf_size =intel_buf_size (buf);
@@ -362,7 +362,7 @@ scratch_buf_check_all(data_t *data,static void scratch_buf_ccs_check (data_t *data,struct intel_buf *buf) { -unsigned int gen =intel_gen_from_pciid (data->devid); +unsigned int gen =intel_gfx_ver_major (data->drm_fd);int ccs_size =intel_buf_ccs_width (gen, buf) *intel_buf_ccs_height (gen, buf);uint8_t *linear;
@@ -460,12 +460,12 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling, dst_compression == I915_COMPRESSION_NONE);/* no Yf before gen9 */ -if (intel_gen_from_pciid (data->devid) <9 ) +if (intel_gfx_ver_major (data->drm_fd) <9 ) num_src--;if (src_tiling == I915_TILING_Yf || dst_tiling == I915_TILING_Yf || src_compressed || dst_compressed) -igt_require (intel_gen_from_pciid (data->devid) >=9 ); +igt_require (intel_gfx_ver_major (data->drm_fd) >=9 ); ibb =intel_bb_create (data->drm_fd,4096 );
@@ -866,7 +866,7 @@ int igt_main_args("dac", NULL, help_str, opt_handler, NULL)igt_require_f (data.render_copy,"no render-copy function\n" ); - data.vebox_copy =igt_get_vebox_copyfunc (data.devid); + data.vebox_copy =igt_get_vebox_copyfunc (data.drm_fd); data.bops =buf_ops_create (data.drm_fd);
tests/intel/gem_ringfill.c +2 -2
@@ -207,7 +207,7 @@ static void setup_execbuf(int fd, const intel_ctx_t *ctx, struct drm_i915_gem_relocation_entry *reloc, unsigned int ring) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);const uint32_t bbe =MI_BATCH_BUFFER_END ;uint32_t *batch, *b;int i;
@@ -428,7 +428,7 @@ int igt_main()igt_require_gem (fd);igt_require (has_lut_handle (fd)); - gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); + gen =intel_gfx_ver_major (fd);if (gen >3 && gen <6 ) {/* ctg and ilk need secure batches */ igt_device_set_master (fd); master = true;
tests/intel/gem_set_tiling_vs_blt.c +1 -1
@@ -164,7 +164,7 @@ static void do_test(struct buf_ops *bops, uint32_t tiling, unsigned stride, blt_stride = stride; blt_bits =0 ; -if (intel_gen_from_pciid (ibb->devid) >=4 && tiling !=I915_TILING_NONE ) { +if (intel_gfx_ver_major (fd) >=4 && tiling !=I915_TILING_NONE ) { blt_stride /=4 ; blt_bits =XY_SRC_COPY_BLT_SRC_TILED ; }
tests/intel/gem_softpin.c +3 -3
@@ -504,7 +504,7 @@ static void test_reverse(int i915)static uint64_t busy_batch (int fd) { -unsigned const int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +unsigned const int gen =intel_gfx_ver_major (fd);const int has_64bit_reloc = gen >=8 ;struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 object[2 ];
@@ -692,7 +692,7 @@ static void xchg_offset(void *array, unsigned i, unsigned j)enum sleep {NOSLEEP ,SUSPEND ,HIBERNATE };static void test_noreloc (int fd,enum sleep sleep,unsigned flags) { -unsigned const int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +unsigned const int gen =intel_gfx_ver_major (fd);const uint32_t size =4096 ;const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_execbuffer2 execbuf;
@@ -1021,7 +1021,7 @@ static void submit(int fd, unsigned int gen,static void test_allocator_evict (int fd,const intel_ctx_t *ctx,unsigned ring,int timeout) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_execbuffer2 execbuf;unsigned engines[I915_EXEC_RING_MASK +1 ];volatile uint64_t *shared;
tests/intel/gem_streaming_writes.c +2 -2
@@ -94,7 +94,7 @@ IGT_TEST_DESCRIPTION("Test of streaming writes into active GPU sources");static void test_streaming (int fd,int mode,int sync) { -const bool has_64bit_addr =intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ; +const bool has_64bit_addr =intel_gfx_ver_major (fd) >=8 ;const bool do_relocs =gem_has_relocations (fd);struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 exec[3 ];
@@ -274,7 +274,7 @@ static void test_streaming(int fd, int mode, int sync)static void test_batch (int fd,int mode,int reverse) { -const bool has_64bit_addr =intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ; +const bool has_64bit_addr =intel_gfx_ver_major (fd) >=8 ;const bool do_relocs =gem_has_relocations (fd);struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 exec[3 ];
tests/intel/gem_sync.c +4 -4
@@ -697,7 +697,7 @@ static void store_ring(int fd, const intel_ctx_t *ctx, unsigned ring, int num_children, int timeout) { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gfx_ver_major(fd);struct intel_engine_data ied;bool has_relocs =gem_has_relocations (fd);
@@ -797,7 +797,7 @@ static void switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring, int num_children, int timeout) { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gfx_ver_major(fd);struct intel_engine_data ied;bool has_relocs =gem_has_relocations (fd);
@@ -981,7 +981,7 @@ static void __store_many(int fd, const intel_ctx_t *ctx, unsigned ring, int timeout, unsigned long *cycles) { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gfx_ver_major(fd);const uint32_t bbe =MI_BATCH_BUFFER_END ;struct drm_i915_gem_exec_object2 object[2 ];struct drm_i915_gem_execbuffer2 execbuf;
@@ -1191,7 +1191,7 @@ sync_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout)static void store_all (int fd,const intel_ctx_t *ctx,int num_children,int timeout) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct intel_engine_data ied;bool has_relocs =gem_has_relocations (fd);
tests/intel/gem_tiled_fence_blits.c +2 -2
@@ -112,7 +112,7 @@ update_batch(int fd, uint32_t bb_handle,struct drm_i915_gem_relocation_entry *reloc, uint64_t dst_offset, uint64_t src_offset) { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(fd)); + const unsigned int gen = intel_gfx_ver_major(fd);const bool has_64b_reloc = gen >=8 ;uint32_t *batch;uint32_t pitch;
@@ -202,7 +202,7 @@ static void run_test(int fd, int count, uint64_t end)memset (&eb,0 ,sizeof (eb)); eb.buffers_ptr =to_user_pointer (obj); eb.buffer_count =ARRAY_SIZE (obj); -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=6 ) +if (intel_gfx_ver_major (fd) >=6 ) eb.flags =I915_EXEC_BLT ; bo = calloc(count,
tests/intel/gem_tiling_max_stride.c +4 -4
@@ -86,13 +86,13 @@ int igt_simple_main() devid =intel_get_drm_devid (fd);gem_require_mappable_ggtt (fd); -if (intel_gen_from_pciid (devid) >=7 ) { +if (intel_gfx_ver_major (fd) >=7 ) { stride =256 *1024 ; - }else if (intel_gen_from_pciid (devid) >=4 ) { + }else if (intel_gfx_ver_major (fd) >=4 ) { stride =128 *1024 ; - }else if (intel_gen_from_pciid (devid) >=3 ) { + }else if (intel_gfx_ver_major (fd) >=3 ) { stride =8 *1024 ; - }else if (intel_gen_from_pciid (devid) >=2 ) { + }else if (intel_gfx_ver_major (fd) >=2 ) { tile_width =128 ; tile_height =16 ; stride =8 *1024 ;
tests/intel/gem_userptr_blits.c +10 -15
@@ -219,7 +219,6 @@ static int copy(int fd, uint32_t dst, uint32_t src)struct drm_i915_gem_relocation_entry reloc[2 ];struct drm_i915_gem_exec_object2 obj[3 ];struct drm_i915_gem_execbuffer2 exec; -static uint32_t devid;uint32_t handle;int ret, i=0 ;uint64_t dst_offset, src_offset, bb_offset;
@@ -229,14 +228,12 @@ static int copy(int fd, uint32_t dst, uint32_t src) dst_offset = bb_offset +4096 ; src_offset = dst_offset +WIDTH *HEIGHT *sizeof (uint32_t ) * (src != dst); - devid =intel_get_drm_devid (fd); -if (blt_has_xy_src_copy (fd)) { batch[i++] =XY_SRC_COPY_BLT_CMD |XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB ; -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i -1 ] |=8 ;else batch[i -1 ] |=6 ;
@@ -247,12 +244,12 @@ static int copy(int fd, uint32_t dst, uint32_t src) batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] =lower_32_bits (dst_offset);/* dst reloc*/ -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] =upper_32_bits (CANONICAL (dst_offset)); batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] =lower_32_bits (src_offset);/* src reloc */ -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] =upper_32_bits (CANONICAL (src_offset)); batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
@@ -286,7 +283,7 @@ static int copy(int fd, uint32_t dst, uint32_t src) reloc[1 ].target_handle = src; reloc[1 ].delta =0 ; reloc[1 ].offset =7 *sizeof (batch[0 ]); -if (intel_gen_from_pciid (intel_get_drm_devid (fd)) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) reloc[1 ].offset +=sizeof (batch[0 ]); reloc[1 ].presumed_offset =0 ; reloc[1 ].read_domains =I915_GEM_DOMAIN_RENDER ;
@@ -345,7 +342,6 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo)struct drm_i915_gem_relocation_entry reloc[2 ];struct drm_i915_gem_exec_object2 *obj;struct drm_i915_gem_execbuffer2 exec; -uint32_t devid;uint32_t handle;int n, ret, i=0 ;uint64_t src_offset, dst_offset;
@@ -355,7 +351,6 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) src_offset = src * size; dst_offset = dst * size; - devid =intel_get_drm_devid (fd); handle =gem_create (fd,4096 );memset (&exec,0 ,sizeof (exec)); obj =calloc (n_bo +1 ,sizeof (*obj));
@@ -389,7 +384,7 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) reloc[1 ].target_handle = src; reloc[1 ].delta =0 ; reloc[1 ].offset =7 *sizeof (batch[0 ]); -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) reloc[1 ].offset +=sizeof (batch[0 ]); reloc[1 ].presumed_offset = src_offset; reloc[1 ].read_domains =I915_GEM_DOMAIN_RENDER ;
@@ -399,7 +394,7 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) batch[i++] =XY_SRC_COPY_BLT_CMD |XY_SRC_COPY_BLT_WRITE_ALPHA |XY_SRC_COPY_BLT_WRITE_RGB ; -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i -1 ] |=8 ;else batch[i -1 ] |=6 ;
@@ -409,12 +404,12 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) batch[i++] =0 ;/* dst x1,y1 */ batch[i++] = (HEIGHT <<16 ) |WIDTH ;/* dst x2,y2 */ batch[i++] =lower_32_bits (dst_offset); -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] =upper_32_bits (CANONICAL (dst_offset)); batch[i++] =0 ;/* src x1,y1 */ batch[i++] =WIDTH *4 ; batch[i++] =lower_32_bits (src_offset); -if (intel_gen_from_pciid (devid) >=8 ) +if (intel_gfx_ver_major (fd) >=8 ) batch[i++] =upper_32_bits (CANONICAL (src_offset)); batch[i++] =MI_BATCH_BUFFER_END ; batch[i++] =MI_NOOP ;
@@ -452,7 +447,7 @@ blit(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo)static void store_dword (int fd,uint32_t target,uint32_t offset,uint32_t value) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_relocation_entry reloc;struct drm_i915_gem_execbuffer2 execbuf;
@@ -1420,7 +1415,7 @@ static void store_dword_rand(int i915, const intel_ctx_t *ctx, uint32_t target, uint64_t sz, int count) { - const unsigned int gen = intel_gen_from_pciid(intel_get_drm_devid(i915)); + const unsigned int gen = intel_gfx_ver_major(i915);struct drm_i915_gem_relocation_entry *reloc;struct drm_i915_gem_exec_object2 obj[2 ];struct drm_i915_gem_execbuffer2 exec;
tests/intel/gem_vm_create.c +1 -1
@@ -279,7 +279,7 @@ static void execbuf(int i915)static void write_to_address (int fd,uint32_t ctx,uint64_t addr,uint32_t value) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (fd)); +const unsigned int gen =intel_gfx_ver_major (fd);struct drm_i915_gem_exec_object2 batch = { .handle =gem_create (fd,4096 ) };
tests/intel/gem_watchdog.c +2 -2
@@ -333,7 +333,7 @@ static void delay(int i915, uint64_t addr, uint64_t ns) { -const int use_64b =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ; +const int use_64b =intel_gfx_ver_major (i915) >=8 ;const uint32_t base =gem_engine_mmio_base (i915, e->name);#define CS_GPR (x) (base + 0x600 + 8 * (x))#define RUNTIME (base + 0x3a8)
@@ -467,7 +467,7 @@ far_delay(int i915, unsigned long delay, unsigned int target,uint32_t handle =gem_create (i915,4096 );unsigned long count, submit; -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ); +igt_require (intel_gfx_ver_major (i915) >=8 );igt_require (gem_class_can_store_dword (i915, e->class));fcntl (i915,F_SETFL ,fcntl (i915,F_GETFL ) |O_NONBLOCK );
tests/intel/gem_workarounds.c +1 -1
@@ -312,7 +312,7 @@ int igt_main()intel_mmio_use_pci_bar (&mmio_data,igt_device_get_pci_device (device)); - gen =intel_gen_from_pciid (intel_get_drm_devid (device)); + gen =intel_gfx_ver_major (device); fd =igt_debugfs_open (device,"i915_wa_registers" ,O_RDONLY ); file =fdopen (fd,"r" );
tests/intel/gen7_exec_parse.c +1 -1
@@ -499,7 +499,7 @@ int igt_main() handle =gem_create (fd,4096 );/* ATM cmd parser only exists on gen7. */ -igt_require (intel_gen_from_pciid (intel_get_drm_devid (fd)) ==7 ); +igt_require (intel_gfx_ver_major (fd) ==7 );igt_fork_hang_detector (fd); }
tests/intel/gen9_exec_parse.c +1 -1
@@ -1217,7 +1217,7 @@ int igt_main()gem_require_blitter (i915);igt_require (gem_cmdparser_version (i915) >=10 ); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) ==9 ); +igt_require (intel_gfx_ver_major (i915) ==9 ); handle =gem_create (i915,HANDLE_SIZE );
tests/intel/i915_getparams_basic.c +3 -3
@@ -89,7 +89,7 @@ subslice_total(void)int ret; ret =getparam (I915_PARAM_SUBSLICE_TOTAL , (int *)&subslice_total); -igt_skip_on_f (ret == -EINVAL &&intel_gen_from_pciid (devid), +igt_skip_on_f (ret == -EINVAL &&intel_gfx_ver_major (drm_fd),"Interface not supported by kernel\n" );if (ret) {
@@ -97,7 +97,7 @@ subslice_total(void)* These devices are not required to implement the * interface. If they do not, -ENODEV must be returned. */ -if ((intel_gen_from_pciid (devid) <8 ) || +if ((intel_gfx_ver_major (drm_fd) <8 ) ||IS_BROADWELL (devid) ||igt_run_in_simulation ()) {igt_assert_eq (ret, -ENODEV );
@@ -134,7 +134,7 @@ eu_total(void)* These devices are not required to implement the * interface. If they do not, -ENODEV must be returned. */ -if ((intel_gen_from_pciid (devid) <8 ) || +if ((intel_gfx_ver_major (drm_fd) <8 ) ||IS_BROADWELL (devid) ||igt_run_in_simulation ()) {igt_assert_eq (ret, -ENODEV );
tests/intel/i915_module_load.c +1 -1
@@ -77,7 +77,7 @@ IGT_TEST_DESCRIPTION("Tests the i915 module loading.");static void store_all (int i915) { -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);uint32_t engines[I915_EXEC_RING_MASK +1 ];uint32_t batch[16 ];uint64_t ahnd, offset, bb_offset;
tests/intel/i915_pm_rc6_residency.c +3 -3
@@ -311,7 +311,7 @@ static void restore_freq(int sig)static void bg_load (int i915,const intel_ctx_t *ctx,uint64_t engine_flags,unsigned int flags,unsigned long *ctl,unsigned int gt) { -const bool has_execlists =intel_gen_from_pciid (intel_get_drm_devid (i915)) >=8 ; +const bool has_execlists =intel_gfx_ver_major (i915) >=8 ;struct sigaction act = { .sa_handler = sighandler };
@@ -392,7 +392,7 @@ static void rc6_idle(int i915, const intel_ctx_t *ctx, uint64_t flags, unsigned {const int64_t duration_ns =2 *SLEEP_DURATION * (int64_t )NSEC_PER_SEC ;const int tolerance =20 ;/* Some RC6 is better than none! */ -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);struct {const char *name;unsigned int flags;
@@ -500,7 +500,7 @@ static void rc6_fence(int i915, unsigned int gt) {const int64_t duration_ns =SLEEP_DURATION * (int64_t )NSEC_PER_SEC ;const int tolerance =20 ;/* Some RC6 is better than none! */ -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);const struct intel_execution_engine2 *e;const intel_ctx_t *ctx;struct power_sample sample[2 ];
tests/intel/i915_pm_rpm.c +1 -1
@@ -736,7 +736,7 @@ static void debugfs_forcewake_user_subtest(void) {int fd, rc; -igt_require (intel_gen_from_pciid (ms_data.devid) >=6 ); +igt_require (intel_gfx_ver_major (drm_fd) >=6 );disable_all_screens_and_wait (&ms_data);
tests/intel/i915_pm_sseu.c +1 -1
@@ -300,7 +300,7 @@ gem_init(void) gem.init =1 ; gem.devid =intel_get_drm_devid (gem.drm_fd); - gem.gen =intel_gen_from_pciid (gem.devid); + gem.gen =intel_gfx_ver_major (gem.drm_fd);igt_require_f (gem.gen >=8 ,"SSEU power gating only relevant for Gen8+" );
tests/intel/kms_ccs.c +4 -9
@@ -565,7 +565,7 @@ static void access_flat_ccs_surface(struct igt_fb *fb, bool verify_compression)uint16_t cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ;uint8_t uc_mocs =intel_get_uc_mocs_index (fb->fd);uint8_t comp_pat_index =intel_get_pat_idx_wt (fb->fd); -uint32_t region = (intel_gen_from_pciid (intel_get_drm_devid (fb->fd)) >=20 && +uint32_t region = (intel_gfx_ver_major (fb->fd) >=20 &&xe_has_vram (fb->fd)) ?REGION_LMEM (0 ) :REGION_SMEM ;struct drm_xe_engine_class_instance inst = {
@@ -645,7 +645,7 @@ static void fill_fb_random(int drm_fd, igt_fb_t *fb)igt_assert_eq (0 ,gem_munmap (map, fb->size));/* randomize also ccs surface on Xe2 */ -if (intel_gen_from_pciid (intel_get_drm_devid (drm_fd)) >=20 ) +if (intel_gfx_ver_major (drm_fd) >=20 )access_flat_ccs_surface (fb, false); }
@@ -1127,11 +1127,6 @@ static bool valid_modifier_test(u64 modifier, const enum test_flags flags)static void test_output (data_t *data,const int testnum) {igt_crtc_t *crtc; -uint16_t dev_id; - -igt_fixture () - dev_id = intel_get_drm_devid(data->drm_fd); - data->flags = tests[testnum].flags;for (int i =0 ; i <ARRAY_SIZE (ccs_modifiers); i++) {
@@ -1145,10 +1140,10 @@ static void test_output(data_t *data, const int testnum) igt_subtest_with_dynamic_f("%s-%s", tests[testnum].testname, ccs_modifiers[i].str) {if (ccs_modifiers[i].modifier ==I915_FORMAT_MOD_4_TILED_BMG_CCS || ccs_modifiers[i].modifier ==I915_FORMAT_MOD_4_TILED_LNL_CCS ) { -igt_require_f (intel_gen_from_pciid (dev_id) >=20 , +igt_require_f (intel_gfx_ver_major (data->drm_fd) >=20 ,"Xe2 platform needed.\n" ); }else { -igt_require_f (intel_gen_from_pciid (dev_id) <20 , +igt_require_f (intel_gfx_ver_major (data->drm_fd) <20 ,"Older than Xe2 platform needed.\n" ); }
tests/intel/kms_fbcon_fbt.c +1 -1
@@ -179,7 +179,7 @@ static bool fbc_wait_until_update(struct drm_info *drm)* For older GENs FBC is still expected to be disabled as it still * relies on a tiled and fenceable framebuffer to track modifications. */ -if (intel_gen_from_pciid (intel_get_drm_devid (drm->fd)) >=9 ) { +if (intel_gfx_ver_major (drm->fd) >=9 ) {if (!fbc_wait_until_enabled (drm->debugfs_fd))return false;/*
tests/intel/kms_frontbuffer_tracking.c +7 -4
@@ -32,6 +32,7 @@* Mega feature: General Display Features */ +#include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h>
@@ -3052,18 +3053,20 @@ static void format_draw_subtest(const struct test_mode *t)static bool tiling_is_valid (int feature_flags,enum tiling_type tiling) { +uint16_t ip_ver_major;if (!(feature_flags &FEATURE_FBC ))return true; + ip_ver_major =intel_gfx_ver_major (drm.fd);switch (tiling) {case TILING_LINEAR : -return intel_gen_from_pciid (drm.devid) >=9 ; +return ip_ver_major >=9 ;case TILING_X : -return (intel_get_device_info (drm.devid)->display_ver >29 ) ? false : true; +return (intel_get_device_info (drm.devid)->display_ver) ? false : true;case TILING_Y :return true;case TILING_4 : -return intel_gen_from_pciid (drm.devid) >=12 ; +return ip_ver_major >=12 ;default :igt_assert (false);return false;
@@ -4469,7 +4472,7 @@ int igt_main_args("", long_options, help_str, opt_handler, NULL)igt_require (igt_draw_supports_method (drm.fd, t.method));if (t.tiling ==TILING_Y ) { -igt_require (intel_gen_from_pciid (drm.devid) >=9 ); +igt_require (intel_gfx_ver_major (drm.fd) >=9 );igt_require (!intel_get_device_info (drm.devid)->has_4tile); }
tests/intel/kms_pipe_stress.c +3 -3
@@ -230,7 +230,7 @@ static void fill_gpu(struct gpu_context *context,pthread_mutex_lock (&data->gpu_fill_lock); - fill_fn =igt_get_gpgpu_fillfunc (data->devid); + fill_fn =igt_get_gpgpu_fillfunc (data->drm_fd);igt_assert (fill_fn);igt_assert (context->buf);
@@ -818,7 +818,7 @@ static void prepare_test(struct data *data)create_framebuffers (data); -if (intel_gen_from_pciid (intel_get_drm_devid (data->drm_fd)) >9 ) +if (intel_gfx_ver_major (data->drm_fd) >9 )start_gpu_threads (data); }
@@ -826,7 +826,7 @@ static void finish_test(struct data *data) {int i; -if (intel_gen_from_pciid (intel_get_drm_devid (data->drm_fd)) >9 ) +if (intel_gfx_ver_major (data->drm_fd) >9 )stop_gpu_threads (data);/*
tests/intel/perf.c +29 -26
228 lines not on this page · raw message
tests/intel/perf_pmu.c +4 -4
@@ -237,7 +237,7 @@ init(int gem_fd, const intel_ctx_t *ctx, err = errno; exists =gem_context_has_engine (gem_fd, ctx->id, e->flags); -if (intel_gen_from_pciid (intel_get_drm_devid (gem_fd)) <6 && +if (intel_gfx_ver_major (gem_fd) <6 && sample ==I915_SAMPLE_SEMA ) exists = false;
@@ -742,7 +742,7 @@ sema_wait(int gem_fd, const intel_ctx_t *ctx,uint64_t ahnd =get_reloc_ahnd (gem_fd, ctx->id);uint64_t obj_offset, bb_offset; -igt_require (intel_gen_from_pciid (intel_get_drm_devid (gem_fd)) >=8 ); +igt_require (intel_gfx_ver_major (gem_fd) >=8 );/** * Setup up a batchbuffer with a polling semaphore wait command which
@@ -977,7 +977,7 @@ sema_busy(int gem_fd, const intel_ctx_t *ctx,int fd[2 ];uint64_t ahnd =get_reloc_ahnd (gem_fd, ctx->id); -igt_require (intel_gen_from_pciid (intel_get_drm_devid (gem_fd)) >=8 ); +igt_require (intel_gfx_ver_major (gem_fd) >=8 ); fd[0 ] =open_group (gem_fd,I915_PMU_ENGINE_SEMA (e->class, e->instance),-1 );
@@ -1124,7 +1124,7 @@ event_wait(int gem_fd, const intel_ctx_t *ctx,int fd; devid =intel_get_drm_devid (gem_fd); -igt_require (intel_gen_from_pciid (devid) >=7 ); +igt_require (intel_gfx_ver_major (gem_fd) >=7 );igt_require (has_secure_batches (gem_fd));igt_skip_on (IS_VALLEYVIEW (devid) ||IS_CHERRYVIEW (devid));
tests/intel/sysfs_preempt_timeout.c +1 -1
@@ -286,7 +286,7 @@ static void test_off(int i915, int engine)* GuC submission, but we are not really losing coverage as this test * isn't not a UMD use case. */ -igt_require (intel_gen_from_pciid (intel_get_drm_devid (i915)) <12 ); +igt_require (intel_gfx_ver_major (i915) <12 );igt_assert (igt_sysfs_scanf (engine,"class" ,"%u" , &class) ==1 );igt_assert (igt_sysfs_scanf (engine,"instance" ,"%u" , &inst) ==1 );
tests/intel/sysfs_timeslice_duration.c +1 -1
@@ -208,7 +208,7 @@ static uint64_t __test_duration(int i915, int engine, unsigned int timeout) .buffer_count = ARRAY_SIZE(obj), .buffers_ptr = to_user_pointer(obj), }; -const unsigned int gen =intel_gen_from_pciid (intel_get_drm_devid (i915)); +const unsigned int gen =intel_gfx_ver_major (i915);double duration =clockrate (i915);unsigned int class, inst, mmio;uint32_t *cs, *map;
tests/intel/xe_ccs.c +8 -8
@@ -128,7 +128,7 @@ static void surf_copy(int xe,int result;igt_assert (mid->compression); -if (intel_gen_from_pciid (devid) >=20 && mid->compression) { +if (intel_gfx_ver_major (xe) >=20 && mid->compression) { comp_pat_index =intel_get_pat_idx_uc_comp (xe); cpu_caching =DRM_XE_GEM_CPU_CACHING_WC ; }
@@ -177,7 +177,7 @@ static void surf_copy(int xe,if (IS_GEN (devid,12 ) &&is_intel_dgfx (xe)) {igt_assert (!strcmp (orig, newsum));igt_assert (!strcmp (orig2, newsum2)); - }else if (intel_gen_from_pciid (devid) >=20 ) { + }else if (intel_gfx_ver_major (xe) >=20 ) {if (is_intel_dgfx (xe)) {/* buffer object would become * uncompressed in xe2+ dgfx
@@ -227,7 +227,7 @@ static void surf_copy(int xe,* uncompressed in xe2+ dgfx, and therefore retrieve the * ccs by copying 0 to ccsmap */ -if (suspend_resume &&intel_gen_from_pciid (devid) >=20 &&is_intel_dgfx (xe)) +if (suspend_resume &&intel_gfx_ver_major (xe) >=20 &&is_intel_dgfx (xe))memset (ccsmap,0 , ccssize);else /* retrieve back ccs */
@@ -353,7 +353,7 @@ static void block_copy(int xe,uint64_t bb_size =xe_bb_size (xe,SZ_4K );uint64_t ahnd =intel_allocator_open (xe, ctx->vm,INTEL_ALLOCATOR_RELOC );uint32_t run_id = mid_tiling; -uint32_t mid_region = (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=20 && +uint32_t mid_region = (intel_gfx_ver_major (xe) >=20 && !xe_has_vram (xe)) ? region1 : region2;uint32_t bb;enum blt_compression mid_compression = config->compression;
@@ -441,7 +441,7 @@ static void block_copy(int xe,if (config->inplace) {uint8_t pat_index =DEFAULT_PAT_INDEX ; -if (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=20 && config->compression) +if (intel_gfx_ver_major (xe) >=20 && config->compression) pat_index =intel_get_pat_idx_uc_comp (xe); blt_set_object(&blt.dst, mid->handle, dst->size, mid->region, 0,
@@ -488,7 +488,7 @@ static void block_multicopy(int xe,uint64_t bb_size =xe_bb_size (xe,SZ_4K );uint64_t ahnd =intel_allocator_open (xe, ctx->vm,INTEL_ALLOCATOR_RELOC );uint32_t run_id = mid_tiling; -uint32_t mid_region = (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=20 && +uint32_t mid_region = (intel_gfx_ver_major (xe) >=20 && !xe_has_vram (xe)) ? region1 : region2;uint32_t bb;enum blt_compression mid_compression = config->compression;
@@ -530,7 +530,7 @@ static void block_multicopy(int xe,if (config->inplace) {uint8_t pat_index =DEFAULT_PAT_INDEX ; -if (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=20 && config->compression) +if (intel_gfx_ver_major (xe) >=20 && config->compression) pat_index =intel_get_pat_idx_uc_comp (xe); blt_set_object(&blt3.dst, mid->handle, dst->size, mid->region,
@@ -715,7 +715,7 @@ static void block_copy_test(int xe,int tiling, width, height; -if (intel_gen_from_pciid (dev_id) >=20 && config->compression) +if (intel_gfx_ver_major (xe) >=20 && config->compression)igt_require (HAS_FLATCCS (dev_id));if (config->compression && !blt_block_copy_supports_compression (xe))
tests/intel/xe_compute.c +4 -4
@@ -232,7 +232,7 @@ test_compute_kernel_loop(uint64_t loop_duration)double elapse_time, lower_bound, upper_bound; fd =drm_open_driver (DRIVER_XE ); - ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); + ip_ver =intel_gfx_ver (fd); kernels = intel_compute_square_kernels;while (kernels->kernel) {
@@ -335,7 +335,7 @@ igt_check_supported_pipeline(void)const struct intel_compute_kernels *kernels; fd =drm_open_driver (DRIVER_XE ); - ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); + ip_ver =intel_gfx_ver (fd); kernels = intel_compute_square_kernels;drm_close_driver (fd);
@@ -432,7 +432,7 @@ test_eu_busy(uint64_t duration_sec) fd =drm_open_driver (DRIVER_XE ); - ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)); + ip_ver =intel_gfx_ver (fd); kernels = intel_compute_square_kernels;while (kernels->kernel) {if (ip_ver == kernels->ip_ver)
@@ -518,7 +518,7 @@ int igt_main() igt_fixture() { xe =drm_open_driver (DRIVER_XE ); sriov_enabled =is_sriov_mode (xe); - ip_ver =intel_graphics_ver_from_pciid (intel_get_drm_devid (xe)); + ip_ver =intel_gfx_ver (xe);igt_store_ccs_mode (ccs_mode,ARRAY_SIZE (ccs_mode)); }
tests/intel/xe_copy_basic.c +2 -4
@@ -261,7 +261,6 @@ const char *help_str = int igt_main_args("b", NULL, help_str, opt_handler, NULL) {int fd; -uint16_t dev_id;struct igt_collection *set, *regions;uint32_t region;struct rect linear[] = { {0 ,0xfd ,1 ,MODE_BYTE },
@@ -275,7 +274,6 @@ int igt_main_args("b", NULL, help_str, opt_handler, NULL) igt_fixture() { fd =drm_open_driver (DRIVER_XE ); - dev_id =intel_get_drm_devid (fd);xe_device_get (fd); set = xe_get_memory_region_set(fd, DRM_XE_MEM_REGION_CLASS_SYSMEM,
@@ -295,7 +293,7 @@ int igt_main_args("b", NULL, help_str, opt_handler, NULL)for (int i =0 ; i <ARRAY_SIZE (page); i++) { igt_subtest_f("mem-page-copy-%u", page[i].width) {igt_require (blt_has_mem_copy (fd)); -igt_require (intel_get_device_info (dev_id)->graphics_ver >=20 ); +igt_require (intel_gfx_ver_major (fd) >=20 );for_each_variation_r (regions,1 , set) { region =igt_collection_get_value (regions,0 );copy_test (fd, &page[i],MEM_COPY , region);
@@ -320,7 +318,7 @@ int igt_main_args("b", NULL, help_str, opt_handler, NULL)* till 0x3FFFF. */ if (linear[i].width >0x3ffff && - (intel_get_device_info (dev_id)->graphics_ver <20 )) + (intel_gfx_ver_major (fd) <20 ))igt_skip ("Skipping: width exceeds 18-bit limit on gfx_ver < 20\n" );igt_require (blt_has_mem_set (fd));for_each_variation_r (regions,1 , set) {
tests/intel/xe_debugfs.c +1 -2
@@ -296,7 +296,6 @@ static void test_tile_dir(struct xe_device *xe_dev, uint8_t tile)*/ static void test_info_read (struct xe_device *xe_dev) { -uint16_t devid =intel_get_drm_devid (xe_dev->fd);struct drm_xe_query_config *config;const char *name ="info" ;bool failed = false;
@@ -329,7 +328,7 @@ static void test_info_read(struct xe_device *xe_dev) failed = true; } -if (intel_gen_from_pciid (devid) <20 ) { +if (intel_gfx_ver_major (xe_dev->fd) <20 ) { val =-1 ;switch (config->info[DRM_XE_QUERY_CONFIG_VA_BITS ]) {
tests/intel/xe_eu_stall.c +2 -2
@@ -201,7 +201,7 @@ static int run_gpgpu_fill(int drm_fd, uint32_t devid)unsigned int i; data.bops =buf_ops_create (drm_fd); - fill_fn =igt_get_gpgpu_fillfunc (devid); + fill_fn =igt_get_gpgpu_fillfunc (drm_fd);for (i =0 ; i <NUM_ITERS_GPGPU_FILL ; i++)gpgpu_fill (&data, fill_fn,0 ,WIDTH ,HEIGHT ,16 ,16 ,WIDTH /2 ,HEIGHT /2 );
@@ -657,7 +657,7 @@ int igt_main_args("e:g:o:r:u:w:", long_options, help_str, opt_handler, NULL)igt_require_fd (drm_fd); devid =intel_get_drm_devid (drm_fd); -igt_require_f (igt_get_gpgpu_fillfunc (devid),"no gpgpu-fill function\n" ); +igt_require_f (igt_get_gpgpu_fillfunc (drm_fd),"no gpgpu-fill function\n" );igt_require_f (!stat (OBSERVATION_PARANOID , &sb),"no observation_paranoid file\n" ); xe_dev =xe_device_get (drm_fd);igt_require_f (xe_dev->eu_stall,"EU stall monitoring is not available/supported\n" );
tests/intel/xe_eudebug_online.c +3 -6
@@ -12,6 +12,7 @@* Test category: functionality test */ +#include "intel_chipset.h" #include "xe/xe_eudebug.h" #include "xe/xe_gt.h" #include "xe/xe_ioctl.h"
@@ -401,9 +402,7 @@ static uint64_t eu_ctl(int debugfd, uint64_t client,static bool intel_gen_needs_resume_wa (int fd) { -const uint32_t id =intel_get_drm_devid (fd); - -return intel_gen_from_pciid (id) ==12 &&intel_graphics_ver_from_pciid (id) <IP_VER (12 ,55 ); +return intel_gfx_ver_major (fd) ==12 &&intel_gfx_ver (fd) <IP_VER (12 ,55 ); } static uint64_t eu_ctl_resume(int fd, int debugfd, uint64_t client,
@@ -1255,8 +1254,6 @@ static void run_online_client(struct xe_eudebug_client *c)static bool intel_gen_has_lockstep_eus (int fd) { -const uint32_t id =intel_get_drm_devid (fd); -/* * Lockstep (or in some parlance, fused) EUs are pair of EUs * that work in sync, supposedly same clock and same control flow.
@@ -1264,7 +1261,7 @@ static bool intel_gen_has_lockstep_eus(int fd)* excepted into SIP. In this level, the hardware has only one attention * thread bit for units. PVC is the first one without lockstepping. */ -return !(intel_graphics_ver_from_pciid (id) ==IP_VER (12 ,60 ) ||intel_gen_from_pciid (id) >=20 ); +return !(intel_gfx_ver (fd) ==IP_VER (12 ,60 ) ||intel_gfx_ver_major (fd) >=20 ); }static int query_attention_bitmask_size (int fd,int gt)
tests/intel/xe_evict.c +3 -3
@@ -902,7 +902,7 @@ int igt_main()igt_debug ("Max working set %d n_execs %d\n" , ws, s->n_execs);if (s->flags &MULTI_QUEUE ) { -igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_gfx_ver (fd) >=IP_VER (35 ,0 ));igt_require (multi_queue_hwe !=NULL );igt_assert_f (!(s->flags &MULTI_VM ),"MULTI_QUEUE and MULTI_VM cannot be used together.\n" );
@@ -922,7 +922,7 @@ int igt_main()igt_debug ("Max working set %d n_execs %d\n" , ws, s->n_execs);if (s->flags &MULTI_QUEUE ) { -igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_gfx_ver (fd) >=IP_VER (35 ,0 ));igt_require (multi_queue_hwe !=NULL );igt_assert_f (!(s->flags &MULTI_VM ),"MULTI_QUEUE and MULTI_VM cannot be used together.\n" );
@@ -941,7 +941,7 @@ int igt_main()igt_debug ("Max working set %d n_execs %d\n" , ws, s->n_execs);if (s->flags &MULTI_QUEUE ) { -igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_gfx_ver (fd) >=IP_VER (35 ,0 ));igt_require (multi_queue_hwe !=NULL );igt_assert_f (!(s->flags &MULTI_VM ),"MULTI_QUEUE and MULTI_VM cannot be used together.\n" );
tests/intel/xe_exec_fault_mode.c +1 -1
@@ -444,7 +444,7 @@ test_exec_main(int fd, int n_exec_queues, int n_execs, unsigned int flags)struct drm_xe_engine_class_instance *hwe;if (flags &MULTI_QUEUE ) { -igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_gfx_ver (fd) >=IP_VER (35 ,0 ));xe_for_each_multi_queue_engine (fd, hwe)test_exec (fd, hwe, n_exec_queues, n_execs, flags); }else {
tests/intel/xe_exec_multi_queue.c +1 -1
@@ -1047,7 +1047,7 @@ int igt_main() igt_fixture() { fd =drm_open_driver (DRIVER_XE ); -igt_require (intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )); +igt_require (intel_gfx_ver (fd) >=IP_VER (35 ,0 )); }igt_subtest_f ("sanity" )
tests/intel/xe_exec_store.c +3 -3
@@ -57,7 +57,7 @@ static void store_dword_batch(struct data *data, uint64_t addr, int value) }static void cond_batch (struct data *data,uint64_t addr,int value, -uint16_t dev_id) +int fd) {int b;uint64_t batch_offset = (char *)&(data->batch) - (char *)data;
@@ -70,7 +70,7 @@ static void cond_batch(struct data *data, uint64_t addr, int value, data->batch[b++] = sdi_addr; data->batch[b++] = sdi_addr >>32 ; -if (intel_graphics_ver_from_pciid (dev_id) >=IP_VER (20 ,0 )) +if (intel_gfx_ver (fd) >=IP_VER (20 ,0 )) data->batch[b++] =MI_MEM_FENCE |MI_WRITE_FENCE ; data->batch[b++] =MI_CONDITIONAL_BATCH_BUFFER_END |MI_DO_COMPARE |5 <<12 |2 ;
@@ -156,7 +156,7 @@ static void basic_inst(int fd, int inst_type, struct drm_xe_engine_class_instancelse if (inst_type ==COND_BATCH ) {/* A random value where it stops at the below value. */ value =20 +random () %10 ; -cond_batch (data, addr, value, dev_id); +cond_batch (data, addr, value, fd); }else igt_assert_f (inst_type <2 ,"Entered wrong inst_type.\n" );
tests/intel/xe_exec_threads.c +2 -2
@@ -1519,8 +1519,8 @@ int igt_main()for (const struct section *s = sections; s->name; s++) { igt_subtest_f("threads-%s", s->name) {if (s->flags &MULTI_QUEUE ) { -igt_skip_on_f (!(intel_graphics_ver_from_pciid (intel_get_drm_devid (fd)) >=IP_VER (35 ,0 )), -"multi_queue is supported on graphics version 35 and above" ); +igt_skip_on_f (!(intel_gfx_ver (fd) >=IP_VER (35 ,0 )), +"multi_queue is supported on graphics version 35 and above" );/* Balancer can't be set with multi-queue at the same time */ igt_assert (!(s->flags &BALANCER )); }
tests/intel/xe_fault_injection.c +1 -1
@@ -492,7 +492,7 @@ oa_add_config_fail(int fd, int sysfs, int devid, {char path[512 ];uint64_t config_id; -#define SAMPLE_MUX_REG (intel_graphics_ver_from_pciid(devid) >= IP_VER(20, 0) ? \ +#define SAMPLE_MUX_REG (intel_gfx_ver(fd) >= IP_VER(20, 0) ? \ 0x13000 /* PES* */ : 0x9888 /* NOA_WRITE */)uint32_t mux_regs[] = {SAMPLE_MUX_REG ,0x0 };
tests/intel/xe_gpgpu_fill.c +1 -1
@@ -179,7 +179,7 @@ int igt_main_args("dW:H:X:Y:", NULL, help_str, opt_handler, NULL) data.devid =intel_get_drm_devid (data.drm_fd); data.bops =buf_ops_create (data.drm_fd); - fill_fn =igt_get_gpgpu_fillfunc (data.devid); + fill_fn =igt_get_gpgpu_fillfunc (data.drm_fd);igt_require_f (fill_fn,"no gpgpu-fill function\n" ); start_x =ALIGN (start_x,4 );
tests/intel/xe_intel_bb.c +3 -4
@@ -710,7 +710,7 @@ static void do_intel_bb_blit(struct buf_ops *bops, int loops, uint32_t tiling)int i, fails =0 , xe =buf_ops_get_fd (bops);/* We'll fix it for gen2/3 later. */ -igt_require (intel_gen_from_pciid (intel_get_drm_devid (xe)) >3 ); +igt_require (intel_gfx_ver_major (xe) >3 );for (i =0 ; i < loops; i++) fails +=__do_intel_bb_blit (bops, tiling);
@@ -878,10 +878,9 @@ static int render(struct buf_ops *bops, uint32_t tiling,int xe =buf_ops_get_fd (bops);uint32_t fails =0 ;char name[128 ]; -uint32_t devid =intel_get_drm_devid (xe);igt_render_copyfunc_t render_copy =NULL ; -igt_debug ("%s() gen: %d\n" , __func__,intel_gen_from_pciid (devid)); +igt_debug ("%s() gen: %d\n" , __func__,intel_gfx_ver_major (xe)); ibb =intel_bb_create (xe,PAGE_SIZE );
@@ -1041,7 +1040,7 @@ int igt_main_args("dpib", NULL, help_str, opt_handler, NULL)do_intel_bb_blit (bops,3 ,I915_TILING_X ); igt_subtest("intel-bb-blit-y") { -igt_require (intel_gen_from_pciid (intel_get_drm_devid (xe)) >=6 ); +igt_require (intel_gfx_ver_major (xe) >=6 );do_intel_bb_blit (bops,3 ,I915_TILING_Y ); }
tests/intel/xe_media_fill.c +1 -1
@@ -125,7 +125,7 @@ int igt_main() 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); + fill_fn =igt_get_media_fillfunc (data.drm_fd);igt_require_f (fill_fn,"no media-fill function\n" ); }
tests/intel/xe_multigpu_svm.c +1 -2
@@ -396,7 +396,6 @@ static void batch_init(int fd, uint32_t vm, uint64_t src_addr,uint64_t batch_addr;void *batch;uint32_t *cmd; -uint16_t dev_id =intel_get_drm_devid (fd);uint32_t mocs_index =intel_get_uc_mocs_index (fd);int i =0 ;
@@ -412,7 +411,7 @@ static void batch_init(int fd, uint32_t vm, uint64_t src_addr, cmd[i++] =upper_32_bits (src_addr); cmd[i++] =lower_32_bits (dst_addr); cmd[i++] =upper_32_bits (dst_addr); -if (intel_graphics_ver_from_pciid (dev_id) >=IP_VER (20 ,0 )) { +if (intel_gfx_ver (fd) >=IP_VER (20 ,0 )) { cmd[i++] = mocs_index <<XE2_MEM_COPY_SRC_MOCS_SHIFT | mocs_index; }else { cmd[i++] = mocs_index <<GEN12_MEM_COPY_MOCS_SHIFT | mocs_index;
tests/intel/xe_oa.c +12 -11
@@ -24,6 +24,7 @@#include "igt_device.h" #include "igt_syncobj.h" #include "igt_sysfs.h" +#include "intel_chipset.h" #include "xe/xe_ioctl.h" #include "xe/xe_query.h" #include "xe/xe_oa.h"
@@ -476,7 +477,7 @@ get_oa_format(enum intel_xe_oa_format_name format)return dg2_oa_formats[format]; else if (IS_METEORLAKE(devid)) return mtl_oa_formats[format]; - else if (intel_graphics_ver_from_pciid(devid) >= IP_VER(20, 0)) + else if (intel_gfx_ver(drm_fd) >= IP_VER(20, 0)) return lnl_oa_formats[format]; else return gen12_oa_formats[format];
@@ -797,7 +798,7 @@ oa_timestamp_delta(const uint32_t *report1,const uint32_t *report0, enum intel_xe_oa_format_name format) { - uint32_t width = intel_graphics_ver_from_pciid(devid) >= IP_VER(12, 55) ? 56 : 32; + uint32_t width = intel_gfx_ver(drm_fd) >= IP_VER(12, 55) ? 56 : 32;return elapsed_delta (oa_timestamp (report1, format),oa_timestamp (report0, format), width);
@@ -1136,7 +1137,7 @@ static void pec_sanity_check(const u32 *report0, const u32 *report1,static void pec_sanity_check_reports (const u32 *report0,const u32 *report1,struct intel_xe_perf_metric_set *set) { -if (igt_run_in_simulation () ||intel_graphics_ver_from_pciid (devid) <IP_VER (20 ,0 )) { +if (igt_run_in_simulation () ||intel_gfx_ver (drm_fd) <IP_VER (20 ,0 )) {igt_debug ("%s: Skip checking PEC reports in simulation or Xe1\n" , __func__);return ; }
@@ -3407,7 +3408,7 @@ static void single_ctx_helper(const struct drm_xe_oa_unit *oau) }/* FIXME: can we deduce the presence of A26 from get_oa_format(fmt)? */ -if (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )) +if (intel_gfx_ver (drm_fd) >=IP_VER (20 ,0 )) goto skip_check;/* Check that this test passed. The test measures the number of 2x2
@@ -3586,7 +3587,7 @@ static bool has_xe_oa_userspace_config(int fd)return errno !=EINVAL ; } -#define SAMPLE_MUX_REG (intel_graphics_ver_from_pciid(devid) >= IP_VER(20, 0) ? \ +#define SAMPLE_MUX_REG (intel_gfx_ver(drm_fd) >= IP_VER(20, 0) ? \ 0x13000 /* PES* */ : 0x9888 /* NOA_WRITE */)/**
@@ -3841,7 +3842,7 @@ test_whitelisted_registers_userspace_config(void)/* NOA_CONFIG */ /* Prior to Xe2 */ -if (intel_graphics_ver_from_pciid (devid) <IP_VER (20 ,0 )) { +if (intel_gfx_ver (drm_fd) <IP_VER (20 ,0 )) { regs[config.n_regs *2 ] =0xD04 ; regs[config.n_regs *2 +1 ] =0 ; config.n_regs++;
@@ -3850,7 +3851,7 @@ test_whitelisted_registers_userspace_config(void) config.n_regs++; }/* Prior to MTLx */ -if (intel_graphics_ver_from_pciid (devid) <IP_VER (12 ,70 )) { +if (intel_gfx_ver (drm_fd) <IP_VER (12 ,70 )) {/* WAIT_FOR_RC6_EXIT */ regs[config.n_regs *2 ] =0x20CC ; regs[config.n_regs *2 +1 ] =0 ;
@@ -3890,7 +3891,7 @@ struct test_perf {#define HAS_OA_MMIO_TRIGGER (__d) \ (IS_DG2(__d) || IS_PONTEVECCHIO(__d) || IS_METEORLAKE(__d) || \ - intel_graphics_ver_from_pciid(devid) >= IP_VER(20, 0)) + intel_gfx_ver(drm_fd) >= IP_VER(20, 0))static void perf_init_whitelist (void ) {
@@ -5087,7 +5088,7 @@ int igt_main_args("b:t", long_options, help_str, opt_handler, NULL) sysfs =igt_sysfs_open (drm_fd);/* Currently only run on Xe2+ */ -igt_require (intel_graphics_ver_from_pciid (devid) >=IP_VER (20 ,0 )); +igt_require (intel_gfx_ver (drm_fd) >=IP_VER (20 ,0 ));igt_require (init_sys_info ());
@@ -5193,8 +5194,8 @@ int igt_main_args("b:t", long_options, help_str, opt_handler, NULL)test_mi_rpc (oau); igt_subtest_with_dynamic("oa-tlb-invalidate") { -igt_require (intel_graphics_ver_from_pciid (devid) <=IP_VER (12 ,70 ) && -intel_graphics_ver_from_pciid (devid) !=IP_VER (12 ,60 )); +igt_require (intel_gfx_ver (drm_fd) <=IP_VER (12 ,70 ) && +intel_gfx_ver (drm_fd) !=IP_VER (12 ,60 ));__for_oa_unit_by_type (DRM_XE_OA_UNIT_TYPE_OAG)test_oa_tlb_invalidate (oau); }
tests/intel/xe_pat.c +15 -23
@@ -22,6 +22,7 @@#include "igt_sysfs.h" #include "igt_vgem.h" #include "intel_blt.h" +#include "intel_chipset.h" #include "intel_mocs.h" #include "intel_pat.h" #include "linux_scaffold.h"
@@ -177,8 +178,7 @@ static int xe_fetch_pat_sw_config(int fd, struct intel_pat_cache *pat_sw_config)*/ static void pat_sanity (int fd) { -uint16_t dev_id =intel_get_drm_devid (fd); -unsigned int gfx_ver =intel_graphics_ver_from_pciid (dev_id); +unsigned int gfx_ver =intel_gfx_ver (fd);struct intel_pat_cache pat_sw_config = {};int32_t parsed;bool has_uc_comp = false, has_wt = false;
@@ -412,12 +412,11 @@ static void pat_index_blt(struct xe_pat_param *p)int bpp =32 ;uint32_t alias, name;int fd = p->fd; -uint16_t dev_id =intel_get_drm_devid (fd);uint8_t mocs_index;int i;igt_require (blt_has_fast_copy (fd)); - mocs_index =intel_get_device_info (dev_id)->graphics_ver >=20 ? + mocs_index =intel_gfx_ver_major (fd) >=20 ?intel_get_defer_to_pat_mocs_index (fd) :intel_get_uc_mocs_index (fd); vm =xe_vm_create (fd,0 ,0 );
@@ -526,7 +525,6 @@ static void pat_index_blt(struct xe_pat_param *p)static void pat_index_render (struct xe_pat_param *p) {int fd = p->fd; -uint16_t dev_id =intel_get_drm_devid (fd);uint8_t mocs_index;igt_render_copyfunc_t render_copy =NULL ;int size, stride, width = p->size->width, height = p->size->height;
@@ -543,7 +541,7 @@ static void pat_index_render(struct xe_pat_param *p)if (p->r2_compressed)/* XXX */ return ; - mocs_index =intel_get_device_info (dev_id)->graphics_ver >=20 ? + mocs_index =intel_gfx_ver_major (fd) >=20 ?intel_get_defer_to_pat_mocs_index (fd) :DEFAULT_MOCS_INDEX ; bops =buf_ops_create (fd);
@@ -640,7 +638,6 @@ static void pat_index_render(struct xe_pat_param *p)static void pat_index_dw (struct xe_pat_param *p) {int fd = p->fd; -uint16_t dev_id =intel_get_drm_devid (fd);uint8_t mocs_index;int size, stride, width = p->size->width, height = p->size->height;struct drm_xe_engine_class_instance *hwe;
@@ -664,7 +661,7 @@ static void pat_index_dw(struct xe_pat_param *p)break ; } - mocs_index =intel_get_device_info (dev_id)->graphics_ver >=20 ? + mocs_index =intel_gfx_ver_major (fd) >=20 ?intel_get_defer_to_pat_mocs_index (fd) :DEFAULT_MOCS_INDEX ; vm =xe_vm_create (fd,0 ,0 );
@@ -988,7 +985,6 @@ static void display_vs_wb_transient(int fd)3 ,/* UC (baseline) */ 6, /* L3:XD (uncompressed) */ }; -uint32_t devid =intel_get_drm_devid (fd);igt_render_copyfunc_t render_copy =NULL ;igt_crc_t ref_crc = {}, crc = {};igt_plane_t *primary;
@@ -1004,7 +1000,7 @@ static void display_vs_wb_transient(int fd)int bpp =32 ;int i; -igt_require (intel_get_device_info (devid)->graphics_ver >=20 ); +igt_require (intel_gfx_ver_major (fd) >=20 ); render_copy =igt_get_render_copyfunc (fd);igt_require (render_copy);
@@ -1105,10 +1101,8 @@ static uint8_t get_pat_idx_uc(int fd, bool *compressed)static uint8_t get_pat_idx_wt (int fd,bool *compressed) { -uint16_t dev_id =intel_get_drm_devid (fd); -if (compressed) - *compressed =intel_get_device_info (dev_id)->graphics_ver >=20 ; + *compressed =intel_gfx_ver_major (fd) >=20 ;return intel_get_pat_idx_wt (fd); }
@@ -1553,20 +1547,18 @@ static void __false_sharing(int fd, const struct fs_pat_entry *fs_entry)static void false_sharing (int fd) { -uint16_t dev_id =intel_get_drm_devid (fd); -uint32_t graphics_ver =intel_get_device_info (dev_id)->graphics_ver;bool is_dgfx =xe_has_vram (fd);const struct fs_pat_entry *fs_entries;int num_entries; -if (intel_graphics_ver_from_pciid (dev_id) ==IP_VER (35 ,11 )) { +if (intel_gfx_ver (fd) ==IP_VER (35 ,11 )) { num_entries =ARRAY_SIZE (fs_xe3p_xpc); fs_entries = fs_xe3p_xpc; - }else if (intel_graphics_ver_from_pciid (dev_id) ==IP_VER (35 ,10 )) { + }else if (intel_gfx_ver (fd) ==IP_VER (35 ,10 )) { num_entries =ARRAY_SIZE (fs_xe3p_lpg); fs_entries = fs_xe3p_lpg; - }else if (graphics_ver ==20 ) { + }else if (intel_gfx_ver_major (fd) ==20 ) {if (is_dgfx) { num_entries =ARRAY_SIZE (fs_xe2_discrete); fs_entries = fs_xe2_discrete;
@@ -1689,7 +1681,7 @@ int igt_main_args("V", NULL, help_str, opt_handler, NULL)bo_comp_disable_bind (fd);
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.43.0
Part of the diff is not shown here. View the raw message.
PATCH v3 4/4 lib/intel_device_info: remove the graphcs_rel from xe2+ devices
In reply to Xin WangOn Xe2+ platforms, the graphics/media IP version is no longer a stable property of a PCI ID "device type". After IP disaggregation, devices sharing the same PCI ID can potentially report different IP versions, so encoding graphics_rel in the static PCI-ID table is misleading.
--- lib/intel_device_info.c | 5 ----- 1 file changed, 5 deletions(-)
lib/intel_device_info.c +0 -5
@@ -505,7 +505,6 @@ static const struct intel_device_info intel_pontevecchio_info = {static const struct intel_device_info intel_lunarlake_info = { .graphics_ver =20 , - .graphics_rel =4 , .display_ver =20 , .has_4tile = true, .has_flatccs = true,
@@ -517,7 +516,6 @@ static const struct intel_device_info intel_lunarlake_info = {static const struct intel_device_info intel_battlemage_info = { .graphics_ver =20 , - .graphics_rel =1 , .display_ver =14 , .has_4tile = true, .has_flatccs = true,
@@ -529,7 +527,6 @@ static const struct intel_device_info intel_battlemage_info = {static const struct intel_device_info intel_pantherlake_info = { .graphics_ver =30 , - .graphics_rel =0 , .display_ver =30 , .has_4tile = true, .has_flatccs = true,
@@ -541,7 +538,6 @@ static const struct intel_device_info intel_pantherlake_info = {static const struct intel_device_info intel_novalake_s_info = { .graphics_ver =30 , - .graphics_rel =04 , .display_ver =35 , .has_4tile = true, .has_oam = true,
@@ -553,7 +549,6 @@ static const struct intel_device_info intel_novalake_s_info = {static const struct intel_device_info intel_crescentisland_info = { .graphics_ver =35 , - .graphics_rel =11 , .display_ver =0 , .has_oam = true, .is_crescentisland = true,
Signature · 1 line
2.43.0
Patchwork
CI✗ i915.CI.BAT: failure for lib/intel: switch graphics/IP version queries to fd-based APIs (rev3)
In reply to Xin Wang== Series Details ==
== Series Details ==
Series: lib/intel: switch graphics/IP version queries to fd-based APIs (rev3)
URL : https://patchwork.freedesktop.org/series/160271/
State : failure
== Summary ==
CI Bug Log - changes from IGT_8787 -> IGTPW_14709
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_14709 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_14709, please notify your bug team ([email protected]) 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_14709/index.html
Participating hosts (40 -> 38)
------------------------------
Additional (1): bat-dg2-8
Missing (3): bat-dg2-13 fi-glk-j4005 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_14709:
### IGT changes ###
#### Possible regressions ####
* igt@gem_busy@busy:
- fi-elk-e7500: [PASS][1] -> [FAIL][2] +40 other tests fail
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-elk-e7500/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-elk-e7500/igt@[email protected]
- bat-dg2-8: NOTRUN -> [FAIL][3] +42 other tests fail
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@gem_busy@busy@all-engines:
- fi-hsw-4770: [PASS][4] -> [FAIL][5] +39 other tests fail
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-hsw-4770/igt@gem_busy@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-hsw-4770/igt@gem_busy@[email protected]
- bat-dg1-6: [PASS][6] -> [FAIL][7] +28 other tests fail
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg1-6/igt@gem_busy@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg1-6/igt@gem_busy@[email protected]
* igt@gem_close_race@basic-process:
- bat-apl-1: [PASS][8] -> [FAIL][9] +39 other tests fail
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-apl-1/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-apl-1/igt@[email protected]
- bat-dg2-14: [PASS][10] -> [FAIL][11] +36 other tests fail
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg2-14/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-14/igt@[email protected]
- fi-bsw-nick: [PASS][12] -> [FAIL][13] +31 other tests fail
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-bsw-nick/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-bsw-nick/igt@[email protected]
* igt@gem_exec_fence@basic-busy:
- bat-dg2-9: [PASS][14] -> [FAIL][15] +36 other tests fail
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg2-9/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-9/igt@[email protected]
* igt@gem_exec_fence@nb-await:
- bat-adlp-11: [PASS][16] -> [FAIL][17] +31 other tests fail
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adlp-11/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adlp-11/igt@[email protected]
* igt@gem_exec_parallel@engines@basic:
- fi-kbl-7567u: [PASS][18] -> [FAIL][19] +39 other tests fail
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-kbl-7567u/igt@gem_exec_parallel@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-kbl-7567u/igt@gem_exec_parallel@[email protected]
- bat-twl-1: [PASS][20] -> [FAIL][21] +43 other tests fail
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-twl-1/igt@gem_exec_parallel@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-twl-1/igt@gem_exec_parallel@[email protected]
- fi-kbl-8809g: [PASS][22] -> [FAIL][23] +31 other tests fail
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-kbl-8809g/igt@gem_exec_parallel@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-kbl-8809g/igt@gem_exec_parallel@[email protected]
- bat-jsl-5: [PASS][24] -> [FAIL][25] +39 other tests fail
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-jsl-5/igt@gem_exec_parallel@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-jsl-5/igt@gem_exec_parallel@[email protected]
* igt@gem_exec_parallel@engines@fds:
- fi-bsw-n3050: [PASS][26] -> [FAIL][27] +38 other tests fail
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-bsw-n3050/igt@gem_exec_parallel@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-bsw-n3050/igt@gem_exec_parallel@[email protected]
* igt@gem_exec_parallel@engines@userptr:
- bat-arlh-3: [PASS][28] -> [FAIL][29] +39 other tests fail
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arlh-3/igt@gem_exec_parallel@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arlh-3/igt@gem_exec_parallel@[email protected]
- fi-pnv-d510: [PASS][30] -> [FAIL][31] +36 other tests fail
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-pnv-d510/igt@gem_exec_parallel@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-pnv-d510/igt@gem_exec_parallel@[email protected]
* igt@gem_linear_blits@basic:
- bat-rplp-1: [PASS][32] -> [FAIL][33] +39 other tests fail
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-rplp-1/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-rplp-1/igt@[email protected]
- bat-arlh-2: [PASS][34] -> [FAIL][35] +28 other tests fail
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arlh-2/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arlh-2/igt@[email protected]
* igt@gem_render_linear_blits@basic:
- fi-skl-6600u: [PASS][36] -> [FAIL][37] +43 other tests fail
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-skl-6600u/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-skl-6600u/igt@[email protected]
* igt@gem_sync@basic-all:
- bat-adlp-9: [PASS][38] -> [FAIL][39] +39 other tests fail
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adlp-9/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adlp-9/igt@[email protected]
- bat-twl-2: [PASS][40] -> [FAIL][41] +43 other tests fail
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-twl-2/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-twl-2/igt@[email protected]
* igt@gem_sync@basic-each:
- bat-atsm-1: [PASS][42] -> [FAIL][43] +28 other tests fail
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-atsm-1/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-atsm-1/igt@[email protected]
- bat-dg1-7: [PASS][44] -> [FAIL][45] +36 other tests fail
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg1-7/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg1-7/igt@[email protected]
* igt@gem_tiled_blits@basic:
- bat-adls-6: [PASS][46] -> [FAIL][47] +39 other tests fail
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adls-6/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adls-6/igt@[email protected]
- fi-tgl-1115g4: [PASS][48] -> [FAIL][49] +39 other tests fail
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-tgl-1115g4/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-tgl-1115g4/igt@[email protected]
* igt@gem_wait@busy@all-engines:
- fi-kbl-x1275: [PASS][50] -> [FAIL][51] +31 other tests fail
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-kbl-x1275/igt@gem_wait@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-kbl-x1275/igt@gem_wait@[email protected]
- bat-rpls-4: [PASS][52] -> [FAIL][53] +39 other tests fail
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-rpls-4/igt@gem_wait@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-rpls-4/igt@gem_wait@[email protected]
- fi-cfl-8109u: [PASS][54] -> [FAIL][55] +33 other tests fail
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-cfl-8109u/igt@gem_wait@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-cfl-8109u/igt@gem_wait@[email protected]
* igt@gem_wait@wait:
- fi-rkl-11600: [PASS][56] -> [FAIL][57] +31 other tests fail
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-rkl-11600/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-rkl-11600/igt@[email protected]
* igt@gem_wait@wait@all-engines:
- bat-kbl-2: [PASS][58] -> [FAIL][59] +31 other tests fail
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-kbl-2/igt@gem_wait@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-kbl-2/igt@gem_wait@[email protected]
- bat-adlp-6: [PASS][60] -> [FAIL][61] +42 other tests fail
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adlp-6/igt@gem_wait@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adlp-6/igt@gem_wait@[email protected]
* igt@i915_module_load@load:
- fi-ilk-650: [PASS][62] -> [FAIL][63] +40 other tests fail
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-ilk-650/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-ilk-650/igt@[email protected]
* igt@i915_module_load@reload:
- bat-arls-6: [PASS][64] -> [FAIL][65] +36 other tests fail
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arls-6/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arls-6/igt@[email protected]
* igt@kms_busy@basic:
- fi-ivb-3770: [PASS][66] -> [FAIL][67] +41 other tests fail
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-ivb-3770/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-ivb-3770/igt@[email protected]
- bat-mtlp-8: [PASS][68] -> [FAIL][69] +39 other tests fail
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-mtlp-8/igt@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-mtlp-8/igt@[email protected]
* igt@kms_busy@basic@flip:
- fi-cfl-8700k: [PASS][70] -> [FAIL][71] +39 other tests fail
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-cfl-8700k/igt@kms_busy@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-cfl-8700k/igt@kms_busy@[email protected]
* igt@kms_flip@basic-flip-vs-dpms:
- fi-cfl-guc: [PASS][72] -> [FAIL][73] +39 other tests fail
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-cfl-guc/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-cfl-guc/igt@[email protected]
* igt@kms_psr@psr-cursor-plane-move:
- bat-mtlp-9: [PASS][74] -> [FAIL][75] +39 other tests fail
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-mtlp-9/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-mtlp-9/igt@[email protected]
#### Warnings ####
* igt@gem_exec_fence@basic-await:
- bat-adlp-6: [FAIL][76] ([i915#15263]) -> [FAIL][77]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adlp-6/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adlp-6/igt@[email protected]
* igt@gem_softpin@allocator-basic:
- fi-elk-e7500: [SKIP][78] -> [FAIL][79] +6 other tests fail
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-elk-e7500/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-elk-e7500/igt@[email protected]
* igt@gem_softpin@allocator-basic-reserve:
- fi-hsw-4770: [SKIP][80] -> [FAIL][81] +1 other test fail
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-hsw-4770/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-hsw-4770/igt@[email protected]
- fi-ivb-3770: [SKIP][82] -> [FAIL][83] +5 other tests fail
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-ivb-3770/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-ivb-3770/igt@[email protected]
- fi-ilk-650: [SKIP][84] -> [FAIL][85] +6 other tests fail
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-ilk-650/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-ilk-650/igt@[email protected]
* igt@gem_tiled_blits@basic:
- bat-arls-6: [SKIP][86] ([i915#12637] / [i915#4077]) -> [FAIL][87] +1 other test fail
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arls-6/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arls-6/igt@[email protected]
- bat-arlh-3: [SKIP][88] ([i915#12637]) -> [FAIL][89] +1 other test fail
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arlh-3/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arlh-3/igt@[email protected]
- bat-mtlp-9: [SKIP][90] ([i915#4077]) -> [FAIL][91] +1 other test fail
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-mtlp-9/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-mtlp-9/igt@[email protected]
- bat-dg1-6: [SKIP][92] ([i915#4077]) -> [FAIL][93] +1 other test fail
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg1-6/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg1-6/igt@[email protected]
* igt@gem_tiled_fence_blits@basic:
- bat-dg2-14: [SKIP][94] ([i915#4077]) -> [FAIL][95] +1 other test fail
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg2-14/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-14/igt@[email protected]
- bat-arlh-2: [SKIP][96] ([i915#11346] / [i915#12637]) -> [FAIL][97] +1 other test fail
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arlh-2/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arlh-2/igt@[email protected]
- bat-atsm-1: [SKIP][98] ([i915#4077]) -> [FAIL][99] +1 other test fail
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-atsm-1/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-atsm-1/igt@[email protected]
- bat-dg1-7: [SKIP][100] ([i915#4077]) -> [FAIL][101] +1 other test fail
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg1-7/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg1-7/igt@[email protected]
- bat-dg2-9: [SKIP][102] ([i915#4077]) -> [FAIL][103] +1 other test fail
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg2-9/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-9/igt@[email protected]
- bat-mtlp-8: [SKIP][104] ([i915#4077]) -> [FAIL][105] +1 other test fail
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-mtlp-8/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-mtlp-8/igt@[email protected]
* igt@kms_flip@basic-flip-vs-dpms:
- bat-adlp-11: [SKIP][106] ([i915#3637]) -> [FAIL][107] +3 other tests fail
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adlp-11/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adlp-11/igt@[email protected]
- bat-dg1-6: [SKIP][108] ([i915#12311] / [i915#3637]) -> [FAIL][109] +2 other tests fail
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg1-6/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg1-6/igt@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank:
- fi-bsw-nick: [SKIP][110] -> [FAIL][111] +8 other tests fail
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-bsw-nick/igt@kms_flip@basic-flip-vs-wf_vblank.html
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-bsw-nick/igt@kms_flip@basic-flip-vs-wf_vblank.html
- bat-kbl-2: [SKIP][112] -> [FAIL][113] +8 other tests fail
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-kbl-2/igt@kms_flip@basic-flip-vs-wf_vblank.html
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-kbl-2/igt@kms_flip@basic-flip-vs-wf_vblank.html
- bat-arlh-2: [SKIP][114] ([i915#11346]) -> [FAIL][115] +8 other tests fail
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arlh-2/igt@kms_flip@basic-flip-vs-wf_vblank.html
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arlh-2/igt@kms_flip@basic-flip-vs-wf_vblank.html
- fi-rkl-11600: [SKIP][116] ([i915#3637]) -> [FAIL][117] +3 other tests fail
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-rkl-11600/igt@kms_flip@basic-flip-vs-wf_vblank.html
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-rkl-11600/igt@kms_flip@basic-flip-vs-wf_vblank.html
* igt@kms_flip@basic-plain-flip:
- fi-cfl-8109u: [DMESG-WARN][118] ([i915#15673]) -> [FAIL][119] +5 other tests fail
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-cfl-8109u/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-cfl-8109u/igt@[email protected]
- bat-dg1-6: [SKIP][120] ([i915#12311]) -> [FAIL][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg1-6/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg1-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-kbl-x1275: [SKIP][122] -> [FAIL][123] +8 other tests fail
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-kbl-x1275/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-kbl-x1275/igt@[email protected]
- bat-adlp-11: [SKIP][124] ([i915#4342] / [i915#5354]) -> [FAIL][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adlp-11/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adlp-11/igt@[email protected]
- fi-kbl-8809g: [SKIP][126] -> [FAIL][127] +8 other tests fail
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-kbl-8809g/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-kbl-8809g/igt@[email protected]
- bat-dg1-6: [SKIP][128] ([i915#12311] / [i915#4342]) -> [FAIL][129]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg1-6/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg1-6/igt@[email protected]
- fi-rkl-11600: [SKIP][130] ([i915#1849] / [i915#5354]) -> [FAIL][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-rkl-11600/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-rkl-11600/igt@[email protected]
* igt@kms_psr@psr-cursor-plane-move:
- fi-cfl-guc: [SKIP][132] -> [FAIL][133] +3 other tests fail
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-cfl-guc/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-cfl-guc/igt@[email protected]
- bat-arls-6: [SKIP][134] ([i915#9732]) -> [FAIL][135] +3 other tests fail
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arls-6/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arls-6/igt@[email protected]
- fi-pnv-d510: [SKIP][136] -> [FAIL][137] +8 other tests fail
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-pnv-d510/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-pnv-d510/igt@[email protected]
* igt@kms_psr@psr-primary-mmap-gtt:
- fi-bsw-n3050: [SKIP][138] -> [FAIL][139] +6 other tests fail
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-bsw-n3050/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-bsw-n3050/igt@[email protected]
- bat-mtlp-9: [SKIP][140] ([i915#4077] / [i915#9688]) -> [FAIL][141]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-mtlp-9/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-mtlp-9/igt@[email protected]
- bat-mtlp-8: [SKIP][142] ([i915#4077] / [i915#9688]) -> [FAIL][143]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-mtlp-8/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-mtlp-8/igt@[email protected]
- bat-dg1-6: [SKIP][144] ([i915#1072] / [i915#12311] / [i915#9732]) -> [FAIL][145] +3 other tests fail
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg1-6/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg1-6/igt@[email protected]
- bat-adls-6: [SKIP][146] ([i915#1072] / [i915#9732]) -> [FAIL][147] +3 other tests fail
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adls-6/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adls-6/igt@[email protected]
- bat-arlh-3: [SKIP][148] ([i915#12637] / [i915#9688]) -> [FAIL][149]
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arlh-3/igt@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arlh-3/igt@[email protected]
* igt@kms_psr@psr-primary-page-flip:
- bat-dg1-7: [SKIP][150] ([i915#1072] / [i915#9732]) -> [FAIL][151] +3 other tests fail
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg1-7/igt@[email protected]
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg1-7/igt@[email protected]
* igt@kms_psr@psr-sprite-plane-onoff:
- bat-adlp-9: [SKIP][152] ([i915#1072] / [i915#9732]) -> [FAIL][153] +3 other tests fail
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adlp-9/igt@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adlp-9/igt@[email protected]
- bat-rpls-4: [SKIP][154] ([i915#1072] / [i915#9732]) -> [FAIL][155] +3 other tests fail
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-rpls-4/igt@[email protected]
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-rpls-4/igt@[email protected]
- fi-kbl-7567u: [SKIP][156] -> [FAIL][157] +3 other tests fail
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-kbl-7567u/igt@[email protected]
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-kbl-7567u/igt@[email protected]
- fi-cfl-8700k: [SKIP][158] -> [FAIL][159] +3 other tests fail
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-cfl-8700k/igt@[email protected]
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-cfl-8700k/igt@[email protected]
- bat-jsl-5: [SKIP][160] ([i915#1072]) -> [FAIL][161] +3 other tests fail
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-jsl-5/igt@[email protected]
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-jsl-5/igt@[email protected]
- bat-apl-1: [SKIP][162] -> [FAIL][163] +3 other tests fail
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-apl-1/igt@[email protected]
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-apl-1/igt@[email protected]
- bat-dg2-14: [SKIP][164] ([i915#1072] / [i915#9732]) -> [FAIL][165] +3 other tests fail
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg2-14/igt@[email protected]
[165]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-14/igt@[email protected]
- bat-rplp-1: [SKIP][166] ([i915#1072] / [i915#9732]) -> [FAIL][167] +3 other tests fail
[166]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-rplp-1/igt@[email protected]
[167]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-rplp-1/igt@[email protected]
- fi-rkl-11600: [SKIP][168] ([i915#1072] / [i915#9732]) -> [FAIL][169] +3 other tests fail
[168]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-rkl-11600/igt@[email protected]
[169]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-rkl-11600/igt@[email protected]
- bat-atsm-1: [SKIP][170] ([i915#6078]) -> [FAIL][171] +3 other tests fail
[170]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-atsm-1/igt@[email protected]
[171]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-atsm-1/igt@[email protected]
- bat-dg2-9: [SKIP][172] ([i915#1072] / [i915#9732]) -> [FAIL][173] +3 other tests fail
[172]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg2-9/igt@[email protected]
[173]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-9/igt@[email protected]
- bat-adlp-11: [SKIP][174] ([i915#1072] / [i915#9732]) -> [FAIL][175] +3 other tests fail
[174]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-adlp-11/igt@[email protected]
[175]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-adlp-11/igt@[email protected]
- fi-hsw-4770: [SKIP][176] ([i915#1072]) -> [FAIL][177] +3 other tests fail
[176]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-hsw-4770/igt@[email protected]
[177]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-hsw-4770/igt@[email protected]
- fi-cfl-8109u: [SKIP][178] -> [FAIL][179] +3 other tests fail
[178]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-cfl-8109u/igt@[email protected]
[179]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-cfl-8109u/igt@[email protected]
- fi-tgl-1115g4: [SKIP][180] ([i915#9732]) -> [FAIL][181] +3 other tests fail
[180]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-tgl-1115g4/igt@[email protected]
[181]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-tgl-1115g4/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_14709 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_mmap@basic:
- bat-dg2-8: NOTRUN -> [SKIP][182] ([i915#4083])
[182]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@gem_mmap_gtt@basic:
- bat-dg2-8: NOTRUN -> [SKIP][183] ([i915#4077])
[183]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@gem_render_tiled_blits@basic:
- bat-dg2-8: NOTRUN -> [SKIP][184] ([i915#4079])
[184]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@gem_tiled_pread_basic@basic:
- bat-dg2-8: NOTRUN -> [SKIP][185] ([i915#15657])
[185]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-dg2-8: NOTRUN -> [SKIP][186] ([i915#11681] / [i915#6621])
[186]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@i915_selftest@live@workarounds:
- bat-arlh-3: [PASS][187] -> [DMESG-FAIL][188] ([i915#12061]) +1 other test dmesg-fail
[187]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-arlh-3/igt@i915_selftest@[email protected]
[188]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-arlh-3/igt@i915_selftest@[email protected]
- bat-dg2-9: [PASS][189] -> [DMESG-FAIL][190] ([i915#12061]) +1 other test dmesg-fail
[189]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-dg2-9/igt@i915_selftest@[email protected]
[190]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-9/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-dg2-8: NOTRUN -> [SKIP][191] ([i915#5190])
[191]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-dg2-8: NOTRUN -> [SKIP][192] ([i915#4215] / [i915#5190])
[192]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@kms_addfb_basic@framebuffer-vs-set-tiling:
- bat-dg2-8: NOTRUN -> [SKIP][193] ([i915#4212]) +7 other tests skip
[193]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-dg2-8: NOTRUN -> [SKIP][194] ([i915#4103] / [i915#4213]) +1 other test skip
[194]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- bat-dg2-8: NOTRUN -> [SKIP][195]
[195]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@kms_pm_backlight@basic-brightness:
- bat-dg2-8: NOTRUN -> [SKIP][196] ([i915#5354])
[196]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- bat-dg2-8: NOTRUN -> [SKIP][197] ([i915#3555])
[197]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- bat-dg2-8: NOTRUN -> [SKIP][198] ([i915#3708])
[198]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@prime_vgem@basic-fence-mmap:
- bat-dg2-8: NOTRUN -> [SKIP][199] ([i915#3708] / [i915#4077]) +1 other test skip
[199]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
* igt@prime_vgem@basic-write:
- bat-dg2-8: NOTRUN -> [SKIP][200] ([i915#3291] / [i915#3708]) +2 other tests skip
[200]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-dg2-8/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@workarounds:
- bat-mtlp-9: [DMESG-FAIL][201] ([i915#12061]) -> [PASS][202] +1 other test pass
[201]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/bat-mtlp-9/igt@i915_selftest@[email protected]
[202]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/bat-mtlp-9/igt@i915_selftest@[email protected]
* igt@kms_pipe_crc_basic@read-crc:
- fi-cfl-8109u: [DMESG-WARN][203] ([i915#15673]) -> [PASS][204] +26 other tests pass
[203]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8787/fi-cfl-8109u/igt@[email protected]
[204]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/fi-cfl-8109u/igt@[email protected]
[i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072
[i915#11346]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11346
[i915#11681]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11681
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12311]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12311
[i915#12637]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12637
[i915#15263]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15263
[i915#15657]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15657
[i915#15673]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15673
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#3291]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3291
[i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4215
[i915#4342]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4342
[i915#5190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5190
[i915#5354]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5354
[i915#6078]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6078
[i915#6621]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6621
[i915#9688]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9688
[i915#9732]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9732
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_8787 -> IGTPW_14709
* Linux: CI_DRM_18111 -> CI_DRM_18115
CI-20190529: 20190529
CI_DRM_18111: 5bb4c677496179faf77e5c4f6fa0c2a44c4ee75d @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_18115: 71b3cc58bba99c872dec0669999a487f66873f5c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_14709: f9ac8693097fdc79e70a3b66e9da177ae540b904 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
IGT_8787: 8787
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14709/index.html
Patchwork
CI✗ Xe.CI.BAT: failure for lib/intel: switch graphics/IP version queries to fd-based APIs (rev3)
In reply to Xin Wang== Series Details ==
== Series Details ==
Series: lib/intel: switch graphics/IP version queries to fd-based APIs (rev3)
URL : https://patchwork.freedesktop.org/series/160271/
State : failure
== Summary ==
CI Bug Log - changes from XEIGT_8787_BAT -> XEIGTPW_14709_BAT
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with XEIGTPW_14709_BAT absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in XEIGTPW_14709_BAT, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (14 -> 13)
------------------------------
Missing (1): bat-atsm-2
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in XEIGTPW_14709_BAT:
### IGT changes ###
#### Possible regressions ####
* igt@xe_compute@compute-square:
- bat-wcl-2: [PASS][1] -> [SKIP][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-wcl-2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-wcl-2/igt@[email protected]
- bat-wcl-1: [PASS][3] -> [SKIP][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-wcl-1/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-wcl-1/igt@[email protected]
#### Warnings ####
* igt@xe_pat@pat-index-xe2:
- bat-adlp-vm: [SKIP][5] ([Intel XE#977]) -> [SKIP][6]
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-adlp-vm/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-adlp-vm/igt@[email protected]
- bat-dg2-oem2: [SKIP][7] ([Intel XE#977]) -> [SKIP][8]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-dg2-oem2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-dg2-oem2/igt@[email protected]
- bat-adlp-7: [SKIP][9] ([Intel XE#977]) -> [SKIP][10]
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-adlp-7/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-adlp-7/igt@[email protected]
* igt@xe_pat@pat-index-xelp:
- bat-bmg-2: [SKIP][11] ([Intel XE#2245]) -> [SKIP][12]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-bmg-2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-bmg-2/igt@[email protected]
- bat-bmg-1: [SKIP][13] ([Intel XE#2245]) -> [SKIP][14]
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-bmg-1/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-bmg-1/igt@[email protected]
- bat-lnl-2: [SKIP][15] ([Intel XE#977]) -> [SKIP][16]
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-lnl-2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-lnl-2/igt@[email protected]
- bat-wcl-1: [SKIP][17] ([Intel XE#7242]) -> [SKIP][18]
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-wcl-1/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-wcl-1/igt@[email protected]
- bat-ptl-vm: [SKIP][19] ([Intel XE#5771]) -> [SKIP][20]
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-ptl-vm/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-ptl-vm/igt@[email protected]
- bat-wcl-2: [SKIP][21] ([Intel XE#7242]) -> [SKIP][22]
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-wcl-2/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-wcl-2/igt@[email protected]
- bat-lnl-1: [SKIP][23] ([Intel XE#977]) -> [SKIP][24]
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-lnl-1/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-lnl-1/igt@[email protected]
- bat-ptl-2: [SKIP][25] ([Intel XE#5771]) -> [SKIP][26]
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-ptl-2/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-ptl-2/igt@[email protected]
- bat-ptl-1: [SKIP][27] ([Intel XE#5771]) -> [SKIP][28]
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-ptl-1/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-ptl-1/igt@[email protected]
Known issues
------------
Here are the changes found in XEIGTPW_14709_BAT that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1:
- bat-adlp-7: [PASS][29] -> [DMESG-WARN][30] ([Intel XE#7483])
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-adlp-7/igt@kms_flip@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-adlp-7/igt@kms_flip@[email protected]
* igt@xe_waitfence@engine:
- bat-dg2-oem2: [PASS][31] -> [FAIL][32] ([Intel XE#6519])
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-dg2-oem2/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-dg2-oem2/igt@[email protected]
#### Possible fixes ####
* igt@kms_flip@basic-flip-vs-wf_vblank@d-edp1:
- bat-adlp-7: [DMESG-WARN][33] ([Intel XE#7483]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/bat-adlp-7/igt@kms_flip@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/bat-adlp-7/igt@kms_flip@[email protected]
[Intel XE#2245]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2245
[Intel XE#5771]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5771
[Intel XE#6519]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6519
[Intel XE#7242]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7242
[Intel XE#7483]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7483
[Intel XE#977]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/977
Build changes
-------------
* IGT: IGT_8787 -> IGTPW_14709
* Linux: xe-4681-5bb4c677496179faf77e5c4f6fa0c2a44c4ee75d -> xe-4685-71b3cc58bba99c872dec0669999a487f66873f5c
IGTPW_14709: f9ac8693097fdc79e70a3b66e9da177ae540b904 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
IGT_8787: 8787
xe-4681-5bb4c677496179faf77e5c4f6fa0c2a44c4ee75d: 5bb4c677496179faf77e5c4f6fa0c2a44c4ee75d xe-4685-71b3cc58bba99c872dec0669999a487f66873f5c: 71b3cc58bba99c872dec0669999a487f66873f5c
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/index.html
Patchwork
CI✗ Xe.CI.FULL: failure for lib/intel: switch graphics/IP version queries to fd-based APIs (rev3)
In reply to Xin Wang== Series Details ==
== Series Details ==
Series: lib/intel: switch graphics/IP version queries to fd-based APIs (rev3)
URL : https://patchwork.freedesktop.org/series/160271/
State : failure
== Summary ==
CI Bug Log - changes from XEIGT_8787_FULL -> XEIGTPW_14709_FULL
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with XEIGTPW_14709_FULL absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in XEIGTPW_14709_FULL, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (2 -> 2)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in XEIGTPW_14709_FULL:
### IGT changes ###
#### Possible regressions ####
* igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs@pipe-d-dp-2:
- shard-bmg: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-8/igt@kms_ccs@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-6/igt@kms_ccs@[email protected]
* igt@xe_exec_fault_mode@many-multi-queue-userptr-rebind-prefetch:
- shard-bmg: NOTRUN -> [SKIP][3] +44 other tests skip
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@[email protected]
* igt@xe_exec_multi_queue@many-execs-preempt-mode-dyn-priority:
- shard-lnl: NOTRUN -> [SKIP][4] +4 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-5/igt@[email protected]
#### Warnings ####
* igt@kms_ccs@bad-pixel-format-4-tiled-mtl-rc-ccs-cc:
- shard-lnl: [SKIP][5] ([Intel XE#2887]) -> [SKIP][6] +88 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-7/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-dg2-mc-ccs:
- shard-bmg: [SKIP][7] ([Intel XE#3432]) -> [SKIP][8] +10 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-yf-tiled-ccs:
- shard-lnl: [SKIP][9] ([Intel XE#3432]) -> [SKIP][10] +10 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-8/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-3/igt@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-mtl-rc-ccs:
- shard-bmg: [SKIP][11] ([Intel XE#2887]) -> [SKIP][12] +75 other tests skip
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-9/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-8/igt@[email protected]
* igt@xe_evict@evict-threads-small-multi-queue:
- shard-bmg: [SKIP][13] ([Intel XE#7140]) -> [SKIP][14] +7 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-4/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-3/igt@[email protected]
* igt@xe_exec_fault_mode@twice-multi-queue-userptr:
- shard-bmg: [SKIP][15] ([Intel XE#7136]) -> [SKIP][16] +59 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-4/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-3/igt@[email protected]
* igt@xe_exec_fault_mode@twice-multi-queue-userptr-imm:
- shard-lnl: [SKIP][17] ([Intel XE#7136]) -> [SKIP][18] +76 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-8/igt@[email protected]
* igt@xe_exec_multi_queue@many-queues-preempt-mode-userptr:
- shard-lnl: [SKIP][19] ([Intel XE#6874]) -> [SKIP][20] +176 other tests skip
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-1/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-3/igt@[email protected]
* igt@xe_exec_multi_queue@two-queues-priority:
- shard-bmg: [SKIP][21] ([Intel XE#6874]) -> [SKIP][22] +148 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-10/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@[email protected]
* igt@xe_exec_threads@threads-multi-queue-cm-shared-vm-rebind:
- shard-lnl: [SKIP][23] ([Intel XE#7138]) -> [SKIP][24] +55 other tests skip
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-5/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-1/igt@[email protected]
* igt@xe_exec_threads@threads-multi-queue-mixed-fd-userptr:
- shard-bmg: [SKIP][25] ([Intel XE#7138]) -> [SKIP][26] +47 other tests skip
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-10/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-10/igt@[email protected]
* igt@xe_oa@oa-tlb-invalidate:
- shard-lnl: [SKIP][27] ([Intel XE#2248] / [Intel XE#7325] / [Intel XE#7393]) -> [SKIP][28]
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-6/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-2/igt@[email protected]
* igt@xe_pat@pat-index-xelp:
- shard-lnl: [SKIP][29] ([Intel XE#977]) -> [SKIP][30]
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-7/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-4/igt@[email protected]
- shard-bmg: [SKIP][31] ([Intel XE#2245]) -> [SKIP][32]
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-6/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-3/igt@[email protected]
* igt@xe_pat@xa-app-transient-media-off:
- shard-lnl: [SKIP][33] ([Intel XE#7590]) -> [SKIP][34] +1 other test skip
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-5/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-1/igt@[email protected]
* igt@xe_pat@xa-app-transient-media-on:
- shard-bmg: [SKIP][35] ([Intel XE#7590]) -> [SKIP][36] +1 other test skip
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-1/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@[email protected]
Known issues
------------
Here are the changes found in XEIGTPW_14709_FULL that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_async_flips@async-flip-with-page-flip-events-linear:
- shard-lnl: [PASS][37] -> [FAIL][38] ([Intel XE#5993] / [Intel XE#6054]) +3 other tests fail
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-3/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-4/igt@[email protected]
* igt@kms_async_flips@async-flip-with-page-flip-events-linear-atomic@pipe-c-edp-1:
- shard-lnl: [PASS][39] -> [FAIL][40] ([Intel XE#6054]) +3 other tests fail
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-2/igt@kms_async_flips@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-3/igt@kms_async_flips@[email protected]
* igt@kms_big_fb@linear-64bpp-rotate-270:
- shard-bmg: NOTRUN -> [SKIP][41] ([Intel XE#2327]) +1 other test skip
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@[email protected]
* igt@kms_big_fb@y-tiled-8bpp-rotate-90:
- shard-bmg: NOTRUN -> [SKIP][42] ([Intel XE#1124]) +2 other tests skip
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@[email protected]
- shard-lnl: NOTRUN -> [SKIP][43] ([Intel XE#1124])
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-6/igt@[email protected]
* igt@kms_bw@connected-linear-tiling-3-displays-2560x1440p:
- shard-bmg: NOTRUN -> [SKIP][44] ([Intel XE#2314] / [Intel XE#2894] / [Intel XE#7373])
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-8/igt@[email protected]
* igt@kms_bw@linear-tiling-1-displays-2160x1440p:
- shard-bmg: NOTRUN -> [SKIP][45] ([Intel XE#367] / [Intel XE#7354]) +2 other tests skip
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-3/igt@[email protected]
* igt@kms_ccs@bad-rotation-90-4-tiled-lnl-ccs@pipe-c-dp-2:
- shard-bmg: NOTRUN -> [SKIP][46] ([Intel XE#2652]) +8 other tests skip
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-6/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs:
- shard-bmg: [PASS][47] -> [INCOMPLETE][48] ([Intel XE#7084])
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-8/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-6/igt@[email protected]
* igt@kms_chamelium_color@ctm-red-to-blue:
- shard-bmg: NOTRUN -> [SKIP][49] ([Intel XE#2325] / [Intel XE#7358]) +1 other test skip
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-1/igt@[email protected]
* igt@kms_chamelium_hpd@dp-hpd-storm:
- shard-bmg: NOTRUN -> [SKIP][50] ([Intel XE#2252]) +6 other tests skip
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-6/igt@[email protected]
* igt@kms_content_protection@atomic-dpms-hdcp14@pipe-a-dp-2:
- shard-bmg: NOTRUN -> [FAIL][51] ([Intel XE#3304] / [Intel XE#7374]) +1 other test fail
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@kms_content_protection@[email protected]
* igt@kms_content_protection@dp-mst-type-0-hdcp14:
- shard-bmg: NOTRUN -> [SKIP][52] ([Intel XE#6974])
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-2/igt@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-128x42:
- shard-bmg: NOTRUN -> [SKIP][53] ([Intel XE#2320]) +2 other tests skip
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-2/igt@[email protected]
* igt@kms_cursor_crc@cursor-sliding-512x512:
- shard-bmg: NOTRUN -> [SKIP][54] ([Intel XE#2321] / [Intel XE#7355]) +1 other test skip
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-6/igt@[email protected]
* igt@kms_cursor_legacy@2x-cursor-vs-flip-atomic:
- shard-lnl: NOTRUN -> [SKIP][55] ([Intel XE#309] / [Intel XE#7343])
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-4/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- shard-bmg: [PASS][56] -> [FAIL][57] ([Intel XE#7571])
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-1/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-10/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-legacy:
- shard-bmg: [PASS][58] -> [FAIL][59] ([Intel XE#7586])
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-4/igt@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@[email protected]
* igt@kms_display_modes@extended-mode-basic:
- shard-lnl: NOTRUN -> [SKIP][60] ([Intel XE#4302])
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-4/igt@[email protected]
* igt@kms_dp_link_training@uhbr-sst:
- shard-bmg: NOTRUN -> [SKIP][61] ([Intel XE#4354] / [Intel XE#5870])
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-8/igt@[email protected]
* igt@kms_dp_linktrain_fallback@dsc-fallback:
- shard-bmg: NOTRUN -> [SKIP][62] ([Intel XE#4331] / [Intel XE#7227])
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-1/igt@[email protected]
* igt@kms_dsc@dsc-basic:
- shard-bmg: NOTRUN -> [SKIP][63] ([Intel XE#2244])
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@[email protected]
* igt@kms_feature_discovery@chamelium:
- shard-bmg: NOTRUN -> [SKIP][64] ([Intel XE#2372] / [Intel XE#7359])
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-10/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling:
- shard-lnl: NOTRUN -> [SKIP][65] ([Intel XE#7178] / [Intel XE#7349])
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-1/igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-upscaling:
- shard-bmg: NOTRUN -> [SKIP][66] ([Intel XE#7178] / [Intel XE#7351]) +3 other tests skip
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-5/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-upscaling.html
* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling:
- shard-bmg: NOTRUN -> [SKIP][67] ([Intel XE#7178] / [Intel XE#7349]) +1 other test skip
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-downscaling.html
* igt@kms_frontbuffer_tracking@drrs-1p-offscreen-pri-shrfb-draw-render:
- shard-lnl: NOTRUN -> [SKIP][68] ([Intel XE#6312])
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-8/igt@kms_frontbuffer_tracking@drrs-1p-offscreen-pri-shrfb-draw-render.html
* igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-indfb-draw-render:
- shard-lnl: NOTRUN -> [SKIP][69] ([Intel XE#656]) +5 other tests skip
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-8/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-pri-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@drrs-2p-primscrn-spr-indfb-draw-render:
- shard-bmg: NOTRUN -> [SKIP][70] ([Intel XE#2311]) +19 other tests skip
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@kms_frontbuffer_tracking@drrs-2p-primscrn-spr-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-pgflip-blt:
- shard-bmg: NOTRUN -> [SKIP][71] ([Intel XE#4141]) +7 other tests skip
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-argb161616f-draw-blt:
- shard-bmg: NOTRUN -> [SKIP][72] ([Intel XE#7061] / [Intel XE#7356]) +2 other tests skip
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-tiling-y:
- shard-bmg: NOTRUN -> [SKIP][73] ([Intel XE#2352] / [Intel XE#7399])
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-cur-indfb-draw-blt:
- shard-lnl: NOTRUN -> [SKIP][74] ([Intel XE#6312] / [Intel XE#651])
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-6/igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-cur-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-msflip-blt:
- shard-bmg: NOTRUN -> [SKIP][75] ([Intel XE#2313]) +17 other tests skip
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-msflip-blt.html
* igt@kms_panel_fitting@atomic-fastset:
- shard-bmg: NOTRUN -> [SKIP][76] ([Intel XE#2486])
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-8/igt@[email protected]
* igt@kms_plane@pixel-format-yf-tiled-modifier:
- shard-lnl: NOTRUN -> [SKIP][77] ([Intel XE#7283])
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-7/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][78] ([Intel XE#7283]) +1 other test skip
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-6/igt@[email protected]
* igt@kms_plane_multiple@2x-tiling-y:
- shard-lnl: NOTRUN -> [SKIP][79] ([Intel XE#4596] / [Intel XE#5854])
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-8/igt@[email protected]
- shard-bmg: NOTRUN -> [SKIP][80] ([Intel XE#5021] / [Intel XE#7377])
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@[email protected]
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-a:
- shard-bmg: NOTRUN -> [SKIP][81] ([Intel XE#2763] / [Intel XE#6886]) +4 other tests skip
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-5/igt@kms_plane_scaling@[email protected]
* igt@kms_pm_backlight@bad-brightness:
- shard-bmg: NOTRUN -> [SKIP][82] ([Intel XE#7376] / [Intel XE#870])
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-5/igt@[email protected]
* igt@kms_pm_dc@dc6-psr:
- shard-lnl: [PASS][83] -> [FAIL][84] ([Intel XE#7340])
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-4/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-6/igt@[email protected]
* igt@kms_pm_dc@deep-pkgc:
- shard-bmg: NOTRUN -> [SKIP][85] ([Intel XE#2505] / [Intel XE#7447])
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-3/igt@[email protected]
* igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-exceed-fully-sf:
- shard-bmg: NOTRUN -> [SKIP][86] ([Intel XE#1489]) +3 other tests skip
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-exceed-fully-sf.html
* igt@kms_psr2_su@frontbuffer-xrgb8888:
- shard-bmg: NOTRUN -> [SKIP][87] ([Intel XE#2387] / [Intel XE#7429])
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-9/igt@[email protected]
* igt@kms_psr@psr-basic:
- shard-bmg: NOTRUN -> [SKIP][88] ([Intel XE#2234] / [Intel XE#2850]) +11 other tests skip
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@[email protected]
* igt@kms_psr_stress_test@invalidate-primary-flip-overlay:
- shard-lnl: [PASS][89] -> [SKIP][90] ([Intel XE#4692] / [Intel XE#7508])
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-2/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-8/igt@[email protected]
* igt@kms_rotation_crc@primary-rotation-90:
- shard-lnl: NOTRUN -> [SKIP][91] ([Intel XE#3414] / [Intel XE#3904] / [Intel XE#7342])
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-2/igt@[email protected]
* igt@kms_rotation_crc@sprite-rotation-90:
- shard-bmg: NOTRUN -> [SKIP][92] ([Intel XE#3414] / [Intel XE#3904] / [Intel XE#7342]) +2 other tests skip
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-5/igt@[email protected]
* igt@kms_sharpness_filter@invalid-plane-with-filter:
- shard-bmg: NOTRUN -> [SKIP][93] ([Intel XE#6503]) +1 other test skip
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-bmg: NOTRUN -> [SKIP][94] ([Intel XE#2426] / [Intel XE#5848])
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-5/igt@[email protected]
* igt@kms_vrr@seamless-rr-switch-virtual:
- shard-bmg: NOTRUN -> [SKIP][95] ([Intel XE#1499]) +1 other test skip
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@[email protected]
* igt@xe_eudebug@basic-vm-bind-discovery:
- shard-bmg: NOTRUN -> [SKIP][96] ([Intel XE#4837]) +2 other tests skip
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@[email protected]
* igt@xe_eudebug_online@interrupt-other:
- shard-bmg: NOTRUN -> [SKIP][97] ([Intel XE#4837] / [Intel XE#6665]) +2 other tests skip
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-5/igt@[email protected]
* igt@xe_evict@evict-beng-mixed-many-threads-small:
- shard-lnl: NOTRUN -> [SKIP][98] ([Intel XE#6540] / [Intel XE#688]) +1 other test skip
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-6/igt@[email protected]
* igt@xe_exec_balancer@once-virtual-basic:
- shard-lnl: NOTRUN -> [SKIP][99] ([Intel XE#7482]) +2 other tests skip
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-3/igt@[email protected]
* igt@xe_exec_basic@multigpu-no-exec-bindexecqueue:
- shard-bmg: NOTRUN -> [SKIP][100] ([Intel XE#2322] / [Intel XE#7372]) +5 other tests skip
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-4/igt@[email protected]
* igt@xe_exec_basic@multigpu-no-exec-bindexecqueue-userptr-rebind:
- shard-lnl: NOTRUN -> [SKIP][101] ([Intel XE#1392])
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-4/igt@[email protected]
* igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-multi-vma:
- shard-lnl: [PASS][102] -> [FAIL][103] ([Intel XE#5625])
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-3/igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-multi-vma.html
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-5/igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-multi-vma.html
* igt@xe_mmap@vram-system:
- shard-lnl: [PASS][104] -> [INCOMPLETE][105] ([Intel XE#2594])
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-1/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-8/igt@[email protected]
* igt@xe_multigpu_svm@mgpu-atomic-op-basic:
- shard-bmg: NOTRUN -> [SKIP][106] ([Intel XE#6964]) +1 other test skip
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-3/igt@[email protected]
* igt@xe_pm@d3cold-basic:
- shard-bmg: NOTRUN -> [SKIP][107] ([Intel XE#2284] / [Intel XE#7370])
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-8/igt@[email protected]
* igt@xe_pm@d3hot-i2c:
- shard-bmg: NOTRUN -> [SKIP][108] ([Intel XE#5742] / [Intel XE#7328] / [Intel XE#7400])
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-5/igt@[email protected]
* igt@xe_pxp@pxp-termination-key-update-post-suspend:
- shard-bmg: NOTRUN -> [SKIP][109] ([Intel XE#4733] / [Intel XE#7417]) +2 other tests skip
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-7/igt@[email protected]
* igt@xe_query@multigpu-query-config:
- shard-bmg: NOTRUN -> [SKIP][110] ([Intel XE#944]) +1 other test skip
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-1/igt@[email protected]
* igt@xe_sriov_flr@flr-twice:
- shard-lnl: NOTRUN -> [SKIP][111] ([Intel XE#4273])
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-4/igt@[email protected]
#### Possible fixes ####
* igt@kms_atomic_transition@plane-all-modeset-transition:
- shard-bmg: [ABORT][112] ([Intel XE#5545]) -> [PASS][113] +1 other test pass
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-2/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-5/igt@[email protected]
* igt@kms_flip@modeset-vs-vblank-race@a-hdmi-a3:
- shard-bmg: [FAIL][114] ([Intel XE#3098]) -> [PASS][115] +1 other test pass
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-8/igt@kms_flip@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-1/igt@kms_flip@[email protected]
* igt@kms_hdmi_inject@inject-audio:
- shard-bmg: [SKIP][116] ([Intel XE#7308]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-8/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-10/igt@[email protected]
* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- shard-lnl: [SKIP][118] ([Intel XE#4692] / [Intel XE#7508]) -> [PASS][119]
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-1/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-3/igt@[email protected]
* igt@kms_vrr@flip-suspend@pipe-a-edp-1:
- shard-lnl: [FAIL][120] ([Intel XE#4227] / [Intel XE#7397]) -> [PASS][121] +1 other test pass
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-lnl-2/igt@kms_vrr@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-lnl-8/igt@kms_vrr@[email protected]
* igt@xe_sriov_vram@vf-access-after-resize-up:
- shard-bmg: [FAIL][122] ([Intel XE#5937]) -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-5/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-1/igt@[email protected]
#### Warnings ####
* igt@kms_tiled_display@basic-test-pattern:
- shard-bmg: [SKIP][124] ([Intel XE#2426] / [Intel XE#5848]) -> [FAIL][125] ([Intel XE#1729] / [Intel XE#7424])
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-9/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-6/igt@[email protected]
* igt@xe_exec_fault_mode@many-execqueues-multi-queue-invalid-fault:
- shard-bmg: [SKIP][126] ([Intel XE#7136]) -> [INCOMPLETE][127] ([Intel XE#2594])
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-2/igt@xe_exec_fault_mode@many-execqueues-multi-queue-invalid-fault.html
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-2/igt@xe_exec_fault_mode@many-execqueues-multi-queue-invalid-fault.html
* igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv:
- shard-bmg: [ABORT][128] ([Intel XE#5466] / [Intel XE#6652] / [Intel XE#7577]) -> [ABORT][129] ([Intel XE#5466] / [Intel XE#7577])
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_8787/shard-bmg-6/igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv.html
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/shard-bmg-8/igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv.html
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1499]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1499
[Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729
[Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
[Intel XE#2244]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2244
[Intel XE#2245]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2245
[Intel XE#2248]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2248
[Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
[Intel XE#2284]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2284
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2314]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2314
[Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
[Intel XE#2321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2321
[Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
[Intel XE#2325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2325
[Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327
[Intel XE#2352]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2352
[Intel XE#2372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2372
[Intel XE#2387]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2387
[Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2486]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2486
[Intel XE#2505]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2505
[Intel XE#2594]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2594
[Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
[Intel XE#2763]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2763
[Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#2894]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2894
[Intel XE#309]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/309
[Intel XE#3098]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3098
[Intel XE#3304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3304
[Intel XE#3414]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3414
[Intel XE#3432]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3432
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#3904]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3904
[Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
[Intel XE#4227]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4227
[Intel XE#4273]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4273
[Intel XE#4302]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4302
[Intel XE#4331]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4331
[Intel XE#4354]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4354
[Intel XE#4596]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4596
[Intel XE#4692]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4692
[Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
[Intel XE#4837]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4837
[Intel XE#5021]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5021
[Intel XE#5466]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5466
[Intel XE#5545]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5545
[Intel XE#5625]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5625
[Intel XE#5742]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5742
[Intel XE#5848]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5848
[Intel XE#5854]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5854
[Intel XE#5870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5870
[Intel XE#5937]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5937
[Intel XE#5993]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5993
[Intel XE#6054]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6054
[Intel XE#6312]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6312
[Intel XE#6503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6503
[Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651
[Intel XE#6540]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6540
[Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656
[Intel XE#6652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6652
[Intel XE#6665]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6665
[Intel XE#6874]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6874
[Intel XE#688]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/688
[Intel XE#6886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6886
[Intel XE#6964]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6964
[Intel XE#6974]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6974
[Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
[Intel XE#7084]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7084
[Intel XE#7136]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7136
[Intel XE#7138]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7138
[Intel XE#7140]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7140
[Intel XE#7178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7178
[Intel XE#7227]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7227
[Intel XE#7283]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7283
[Intel XE#7308]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7308
[Intel XE#7325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7325
[Intel XE#7328]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7328
[Intel XE#7340]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7340
[Intel XE#7342]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7342
[Intel XE#7343]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7343
[Intel XE#7349]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7349
[Intel XE#7351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7351
[Intel XE#7354]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7354
[Intel XE#7355]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7355
[Intel XE#7356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7356
[Intel XE#7358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7358
[Intel XE#7359]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7359
[Intel XE#7370]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7370
[Intel XE#7372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7372
[Intel XE#7373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7373
[Intel XE#7374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7374
[Intel XE#7376]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7376
[Intel XE#7377]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7377
[Intel XE#7393]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7393
[Intel XE#7397]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7397
[Intel XE#7399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7399
[Intel XE#7400]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7400
[Intel XE#7417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7417
[Intel XE#7424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7424
[Intel XE#7429]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7429
[Intel XE#7447]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7447
[Intel XE#7482]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7482
[Intel XE#7508]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7508
[Intel XE#7571]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7571
[Intel XE#7577]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7577
[Intel XE#7586]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7586
[Intel XE#7590]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7590
[Intel XE#870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/870
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
[Intel XE#977]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/977
Build changes
-------------
* IGT: IGT_8787 -> IGTPW_14709
* Linux: xe-4681-5bb4c677496179faf77e5c4f6fa0c2a44c4ee75d -> xe-4685-71b3cc58bba99c872dec0669999a487f66873f5c
IGTPW_14709: f9ac8693097fdc79e70a3b66e9da177ae540b904 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
IGT_8787: 8787
xe-4681-5bb4c677496179faf77e5c4f6fa0c2a44c4ee75d: 5bb4c677496179faf77e5c4f6fa0c2a44c4ee75d xe-4685-71b3cc58bba99c872dec0669999a487f66873f5c: 71b3cc58bba99c872dec0669999a487f66873f5c
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14709/index.html