xe: Add IP versions to GT query
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 1 replyIn review
v2 from the cover letter
- Tweak field naming from "revid" to "rev" (Lucas)
- Fix kerneldoc copy/paste mistakes.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | drm/xe/uapi: Add IP version and stepping to GT list querydrivers/ include/ | +17 | 0 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | José Roberto de Souza | Lucas De Marchi |
|---|---|---|
| Series | A-b | |
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [CI 0/1] xe: Add IP versions to GT query
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: [email protected]
Testcase: igt@xe_query@query-gt-list
UMD(mesa): https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26908
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(-)
Signature · 1 line
2.43.0