public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] lib/intel: switch graphics/IP version queries to fd-based APIs
@ 2026-01-22  7:15 Xin Wang
  2026-01-22  7:15 ` [PATCH v2 1/3] lib/intel: suffix PCI ID based gen/graphics_ver with _legacy Xin Wang
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Xin Wang @ 2026-01-22  7:15 UTC (permalink / raw)
  To: igt-dev; +Cc: Xin Wang

This series separates PCI ID–based device traits from per‑device IP version
queries. It introduces fd‑based intel_gen()/intel_graphics_ver() using Xe
query data when available, keeps PCI ID translation as _legacy, and
updates Xe‑side libs/tests to use the fd‑based APIs. This aligns IGT with
post‑MTL IP disaggregation while preserving i915 safety fallback.

V2:
- Rebased on latest master
- Enhanced patch 1 commit message to clarify it's a preparatory step

Xin Wang (3):
  lib/intel: suffix PCI ID based gen/graphics_ver with _legacy
  lib/intel: add fd-based intel_gen/intel_graphics_ver via Xe query
  intel/xe: use fd-based graphics/IP version helpers

 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                       |  5 +--
 lib/gpu_cmds.c                           | 21 +++++-----
 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                  | 18 ++++----
 lib/intel_blt.c                          | 21 ++++------
 lib/intel_blt.h                          |  2 +-
 lib/intel_bufops.c                       | 10 ++---
 lib/intel_chipset.c                      | 51 +++++++++++++++++++++++
 lib/intel_chipset.h                      | 14 ++++---
 lib/intel_common.c                       |  2 +-
 lib/intel_compute.c                      |  6 +--
 lib/intel_device_info.c                  |  6 +--
 lib/intel_mmio.c                         |  8 ++--
 lib/intel_mocs.c                         | 48 +++++++++++-----------
 lib/intel_pat.c                          | 19 ++++-----
 lib/intel_reg_map.c                      |  2 +-
 lib/ioctl_wrappers.c                     |  2 +-
 lib/rendercopy_gen9.c                    | 22 +++++-----
 lib/xe/xe_legacy.c                       |  2 +-
 lib/xe/xe_oa.c                           |  4 +-
 lib/xe/xe_query.c                        | 25 ++++++++++++
 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               | 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       |  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   |  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_copy_basic.c              |  6 +--
 tests/intel/xe_debugfs.c                 |  3 +-
 tests/intel/xe_eudebug_online.c          |  8 +---
 tests/intel/xe_exec_multi_queue.c        |  2 +-
 tests/intel/xe_exec_store.c              | 18 ++++----
 tests/intel/xe_fault_injection.c         |  8 ++--
 tests/intel/xe_intel_bb.c                |  7 ++--
 tests/intel/xe_multigpu_svm.c            |  3 +-
 tests/intel/xe_oa.c                      | 22 +++++-----
 tests/intel/xe_pat.c                     | 16 +++-----
 tests/intel/xe_query.c                   |  4 +-
 tests/intel/xe_render_copy.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 +-
 128 files changed, 486 insertions(+), 445 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-02-25 23:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-22  7:15 [PATCH v2 0/3] lib/intel: switch graphics/IP version queries to fd-based APIs Xin Wang
2026-01-22  7:15 ` [PATCH v2 1/3] lib/intel: suffix PCI ID based gen/graphics_ver with _legacy Xin Wang
2026-02-04 18:30   ` Matt Roper
2026-01-22  7:15 ` [PATCH v2 2/3] lib/intel: add fd-based intel_gen/intel_graphics_ver via Xe query Xin Wang
2026-02-05  9:09   ` Jani Nikula
2026-01-22  7:15 ` [PATCH v2 3/3] intel/xe: use fd-based graphics/IP version helpers Xin Wang
2026-02-04 18:56   ` Matt Roper
2026-02-25  8:51     ` Wang, X
2026-02-25 23:18       ` Matt Roper
2026-01-22  8:01 ` ✓ i915.CI.BAT: success for lib/intel: switch graphics/IP version queries to fd-based APIs (rev2) Patchwork
2026-01-22  8:04 ` ✓ Xe.CI.BAT: " Patchwork
2026-01-22 18:13 ` ✗ Xe.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox