igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v8 0/2] lib/intel_device_info: get the xe .graphics_rel from GMD_ID
@ 2025-10-20 23:12 Xin Wang
  2025-10-20 23:12 ` [PATCH v8 1/2] lib/xe/xe_query: Get runtime xe device graphics version " Xin Wang
                   ` (6 more replies)
  0 siblings, 7 replies; 22+ messages in thread
From: Xin Wang @ 2025-10-20 23:12 UTC (permalink / raw)
  To: igt-dev; +Cc: Xin Wang

This series enables IGT to retrieve the accurate IP minor version
(graphics_rel) at runtime for xe platforms with GMD_ID support,
instead of relying on hardcoded values in the PCI device table.

Background:
-----------
Current IGT uses static PCI device tables with hardcoded graphics_rel
values. For Xe2 platforms, Different device instances may have
different graphics_rel (minor version) values

The kernel's GMD_ID ioctl provides accurate runtime IP version
information (ip_ver_major.ip_ver_minor) which should be used for
platform-specific workarounds and feature detection.

Solution:
---------
This series adds support to query xe device info at runtime:

Patch 1/2: Get runtime xe device graphics version from GMD_ID
- Populate graphics versions in xe_device from GMD_ID ioctl
- Cache device ipver by devid in global map for efficient lookup
- Provide xe_ipver_cache_lookup() API for other components

Patch 2/2: Query runtime xe device graphics versions
- Use runtime xe device ipver for Gen20+ platforms
- Use weak symbol linkage to avoid breaking static library builds
- Remove hardcoded graphics_rel from static table for xe platforms

Benefits:
---------
- Accurate IP version for platform-specific workarounds
- Proper feature detection for hardware variants
- Unified device info API between i915 and xe drivers
- No changes needed to existing test code

V2:
- set the graphics version info in xe_device_get() don't copy 
  the whole struct of the intel_device_info 
- update the graphics_rel when the info is already in the cache
V3:
- Optimize the coding style
V4:
- add braces around the else statement body
V5:
- add new struct xe_device_ipver to hold the ipver info
- separate cache map to eliminate collision (Roper, Matthew D)
- changed function name to xe_ipver_cache_lookup() to avoid 
  confusion (Roper, Matthew D)

Xin Wang (2):
  lib/xe/xe_query: Get runtime xe device graphics version from GMD_ID
  lib/intel_device_info: Query runtime xe device graphics versions

 lib/intel_chipset.h     |  6 +++++
 lib/intel_device_info.c | 26 +++++++++++++++++---
 lib/xe/xe_query.c       | 53 ++++++++++++++++++++++++++++++++++++++++-
 lib/xe/xe_query.h       |  4 ++++
 4 files changed, 85 insertions(+), 4 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-12-17  7:01 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20 23:12 [PATCH v8 0/2] lib/intel_device_info: get the xe .graphics_rel from GMD_ID Xin Wang
2025-10-20 23:12 ` [PATCH v8 1/2] lib/xe/xe_query: Get runtime xe device graphics version " Xin Wang
2025-10-30 21:20   ` Summers, Stuart
2025-10-31  5:09     ` Wang, X
2025-10-31 15:45       ` Summers, Stuart
2025-11-07 19:39   ` Kamil Konieczny
2025-11-18  6:16     ` Wang, X
2025-10-20 23:12 ` [PATCH v8 2/2] lib/intel_device_info: Query runtime xe device graphics versions Xin Wang
2025-10-30 20:51   ` Summers, Stuart
2025-10-31  5:25     ` Wang, X
2025-10-31 15:21       ` Summers, Stuart
2025-11-07 19:47   ` Kamil Konieczny
2025-11-18  6:11     ` Wang, X
2025-12-12 15:56       ` [PATCH v8 2/2] lib/intel_device_info: Query runtime xe device graphics versionsth Vodapalli, Ravi Kumar
2025-12-12 16:49         ` Wang, X
2025-12-17  7:00           ` Vodapalli, Ravi Kumar
2025-12-12 15:58       ` Vodapalli, Ravi Kumar
2025-10-21  3:05 ` ✓ i915.CI.BAT: success for lib/intel_device_info: get the xe .graphics_rel from GMD_ID Patchwork
2025-10-21  7:20 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-21  8:59 ` ✗ Xe.CI.Full: failure " Patchwork
2025-10-21 12:36 ` Patchwork
2025-10-21 18:27 ` ✓ i915.CI.Full: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).