drm/xe/xe_drm_client: Add per drm client reset stats
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/26 patches 6 repliesIn review
- v4 posting 1/26 patches 0 repliesSuperseded
- v36 patches 0 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 6 patches | 0 replies | Superseded | |
| v1 | 4 patches | 8 replies | Superseded |
Patches in v4 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/xe/xe_exec_queue: Add ID param to exec queue structdrivers/ drivers/ | +3 | 1 reply | |
| 2/6 | drm/xe/xe_gt_pagefault: Migrate pagefault struct to headerdrivers/ drivers/ | +28 | 1 reply | |
| 3/6 | drm/xe/xe_drm_client: Add per drm client pagefault infodrivers/ drivers/ drivers/ +4 more | +161 | 1 reply | |
| 4/6 | drm/xe/xe_drm_client: Add per drm client reset statsdrivers/ drivers/ | +5 | 1 reply | |
| 5/6 | drm/xe/xe_query: Pass drm file to query funcsdrivers/ | +27 | 0 replies | |
| 6/6 | drm/xe/xe_query: Add support for per-drm-client reset stat queryingdrivers/ include/ | +120 | 2 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Matthew Brost |
|---|---|
| 1/6 | R-b |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/6] drm/xe/xe_drm_client: Add per drm client reset stats
Add additional information to drm client so it can report the last 50 exec queues to have been banned on it, as well as the last pagefault seen when said exec queues were banned. Since we cannot reasonably associate a pagefault to a specific exec queue, we currently report the last seen pagefault on the associated hw engine instead.
The last pagefault seen per exec queue is saved to the hw engine, and the pagefault is updated during the pagefault handling process in xe_gt_pagefault. The last seen pagefault is reset when the engine is reset because any future exec queue bans likely were not caused by said pagefault after the reset.
Also add a tracker that counts the number of times the drm client has experienced an engine reset.
Finally, add a new query to xe_query that reports these drm client reset stats back to the user.
v2: Report the per drm client reset stats as a query, rather than
coopting xe_drm_client_fdinfo (Joonas)
v3: Report EOPNOTSUPP during the reset stats query if CONFIG_PROC_FS
is not set in the kernel config, as it is required to trace the reset count and exec queue bans.
v4: Fix formatting and kzalloc during lock warnings
Test-with: [email protected]
Jonathan Cavitt (6):
drm/xe/xe_exec_queue: Add ID param to exec queue struct drm/xe/xe_gt_pagefault: Migrate pagefault struct to header drm/xe/xe_drm_client: Add per drm client pagefault info drm/xe/xe_drm_client: Add per drm client reset stats drm/xe/xe_query: Pass drm file to query funcs drm/xe/xe_query: Add support for per-drm-client reset stat querying
drivers/gpu/drm/xe/xe_drm_client.c | 68 ++++++++++++++ drivers/gpu/drm/xe/xe_drm_client.h | 44 +++++++++ drivers/gpu/drm/xe/xe_exec_queue.c | 8 ++ drivers/gpu/drm/xe/xe_exec_queue_types.h | 2 + drivers/gpu/drm/xe/xe_gt_pagefault.c | 44 ++++----- drivers/gpu/drm/xe/xe_gt_pagefault.h | 28 ++++++ drivers/gpu/drm/xe/xe_guc_submit.c | 17 ++++ drivers/gpu/drm/xe/xe_hw_engine.c | 4 + drivers/gpu/drm/xe/xe_hw_engine_types.h | 8 ++ drivers/gpu/drm/xe/xe_query.c | 109 ++++++++++++++++++++--- include/uapi/drm/xe_drm.h | 50 +++++++++++ 11 files changed, 343 insertions(+), 39 deletions(-)
Signature · 1 line
2.43.0