Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] xe: Add IP versions to GT query
@ 2023-12-08  0:22 Matt Roper
  2023-12-08  0:22 ` [PATCH v2 1/2] drm/xe: Stash GMD_ID value in xe_gt Matt Roper
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Matt Roper @ 2023-12-08  0:22 UTC (permalink / raw)
  To: intel-xe; +Cc: Francois Dugast, matthew.d.roper, Rodrigo Vivi

On MTL and later, drivers are expected to determine graphics/media
version and stepping from the values reported in the GMD_ID registers
rather than trying to infer them from PCI devid/revid.  Since userspace
cannot directly access these registers, the graphics/media GMD_ID must
be exposed through the uapi.

Repurpose one of the 'reserved' qwords in the GT query structure to hold
the IP version for platforms with GMD_ID.  These fields will continue to
be 0 on pre-MTL platforms.  Userspace should continue to utilize PCI
devid/revid on those older platforms.

Note that although the hardware has a display IP GMD_ID register as
well, that value will not be exposed through Xe uapi.  As always,
display userspace is expected to use standard atomic properties and
test-only commits to determine platform capabilities rather than
attempting to recognize the underlying IP.

v2:
 - Tweak field naming from "revid" to "rev"  (Lucas)
 - Fix kerneldoc copy/paste mistakes.

Test-with: 20231206204942.1105505-1-matthew.d.roper@intel.com
Testcase: igt@xe_query@query-gt-list
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>

Matt Roper (2):
  drm/xe: Stash GMD_ID value in xe_gt
  drm/xe/uapi: Add IP version and stepping to GT list query

 drivers/gpu/drm/xe/xe_gt.c       |  6 ++++++
 drivers/gpu/drm/xe/xe_gt_types.h |  2 ++
 drivers/gpu/drm/xe/xe_query.c    |  8 ++++++++
 include/uapi/drm/xe_drm.h        | 10 +++++++++-
 4 files changed, 25 insertions(+), 1 deletion(-)

-- 
2.43.0


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

end of thread, other threads:[~2023-12-08  4:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-08  0:22 [PATCH v2 0/2] xe: Add IP versions to GT query Matt Roper
2023-12-08  0:22 ` [PATCH v2 1/2] drm/xe: Stash GMD_ID value in xe_gt Matt Roper
2023-12-08  0:22 ` [PATCH v2 2/2] drm/xe/uapi: Add IP version and stepping to GT list query Matt Roper
2023-12-08  4:11 ` ✓ CI.Patch_applied: success for xe: Add IP versions to GT query (rev2) Patchwork
2023-12-08  4:12 ` ✓ CI.checkpatch: " Patchwork
2023-12-08  4:13 ` ✓ CI.KUnit: " Patchwork
2023-12-08  4:20 ` ✓ CI.Build: " Patchwork
2023-12-08  4:21 ` ✓ CI.Hooks: " Patchwork
2023-12-08  4:22 ` ✓ CI.checksparse: " Patchwork
2023-12-08  4:59 ` ✓ CI.BAT: " Patchwork

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