From: Xin Wang <x.wang@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Xin Wang <x.wang@intel.com>
Subject: [PATCH v3 0/4] lib/intel: switch graphics/IP version queries to fd-based APIs
Date: Mon, 9 Mar 2026 21:46:12 -0700 [thread overview]
Message-ID: <20260310044616.1466628-1-x.wang@intel.com> (raw)
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(-)
--
2.43.0
next reply other threads:[~2026-03-10 4:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 4:46 Xin Wang [this message]
2026-03-10 4:46 ` [PATCH v3 1/4] lib/intel: rename intel_gen() and intel_graphics_ver() to *_from_pciid() variants Xin Wang
2026-03-10 4:46 ` [PATCH v3 2/4] lib/intel: add fd-based graphics IP version query helpers Xin Wang
2026-03-10 4:46 ` [PATCH v3 3/4] intel/{lib, tests}: switch fd-backed version checks to intel_gfx_ver* Xin Wang
2026-03-10 4:46 ` [PATCH v3 4/4] lib/intel_device_info: remove the graphcs_rel from xe2+ devices Xin Wang
2026-03-10 5:51 ` ✗ i915.CI.BAT: failure for lib/intel: switch graphics/IP version queries to fd-based APIs (rev3) Patchwork
2026-03-10 5:55 ` ✗ Xe.CI.BAT: " Patchwork
2026-03-10 8:14 ` ✗ Xe.CI.FULL: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260310044616.1466628-1-x.wang@intel.com \
--to=x.wang@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.