From: Matt Roper <matthew.d.roper@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: matthew.d.roper@intel.com
Subject: [CI 0/1] xe: Add IP versions to GT query
Date: Tue, 12 Mar 2024 14:12:24 -0700 [thread overview]
Message-ID: <20240312211229.2871288-3-matthew.d.roper@intel.com> (raw)
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.
v3:
- Resend for CI now that Mesa MR is done and we're ready to merge.
Test-with: 20240312205431.2869411-1-matthew.d.roper@intel.com
Testcase: igt@xe_query@query-gt-list
UMD(mesa): https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26908
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: José Roberto de Souza <jose.souza@intel.com>
Matt Roper (1):
drm/xe/uapi: Add IP version and stepping to GT list query
drivers/gpu/drm/xe/xe_query.c | 8 ++++++++
include/uapi/drm/xe_drm.h | 10 +++++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
--
2.43.0
next reply other threads:[~2024-03-12 21:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 21:12 Matt Roper [this message]
2024-03-12 21:12 ` [CI 1/1] drm/xe/uapi: Add IP version and stepping to GT list query Matt Roper
2024-03-12 21:17 ` ✓ CI.Patch_applied: success for xe: Add IP versions to GT query Patchwork
2024-03-12 21:17 ` ✓ CI.checkpatch: " Patchwork
2024-03-12 21:18 ` ✓ CI.KUnit: " Patchwork
2024-03-12 21:29 ` ✓ CI.Build: " Patchwork
2024-03-12 21:31 ` ✓ CI.Hooks: " Patchwork
2024-03-12 21:33 ` ✓ CI.checksparse: " Patchwork
2024-03-12 21:52 ` ✓ CI.BAT: " Patchwork
2024-03-12 21:56 ` Matt Roper
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=20240312211229.2871288-3-matthew.d.roper@intel.com \
--to=matthew.d.roper@intel.com \
--cc=intel-xe@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox