VF: Avoid reading inaccessible RING_TIMESTAMP
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm/xe/vf: Return EOPNOTSUPP for DRM_XE_DEVICE_QUERY_ENGINE_CYCLES if VFdrivers/ | +3 | 0 replies | |
| 2/3 | drm/xe/vf: Return error code from xe_hw_engine_read_timestamp()drivers/ drivers/ | +9 | 2 replies | |
| 3/3 | drm/xe/client: Skip drm-total-cycles if unable to read timestampdrivers/ | +6 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] VF: Avoid reading inaccessible RING_TIMESTAMP
RING_TIMESTAMP registers are not available for VF (Virtual Function) drivers. Return -EOPNOTSUPP when the DRM_XE_DEVICE_QUERY_ENGINE_CYCLES ioctl is invoked on a VF device.
Modify xe_hw_engine_read_timestamp() to return an error code instead of a u64 timestamp. Return -EOPNOTSUPP when called from Virtual Function (VF) mode to avoid reading the inaccessible RING_TIMESTAMP register.
Ensure show_run_ticks() only prints drm-total-cycles when timestamp retrieval succeeds.
Marcin Bernatowicz (3):
drm/xe/vf: Return EOPNOTSUPP for DRM_XE_DEVICE_QUERY_ENGINE_CYCLES if
VF
drm/xe/vf: Return error code from xe_hw_engine_read_timestamp() drm/xe/client: Skip drm-total-cycles if unable to read timestamp
drivers/gpu/drm/xe/xe_drm_client.c | 9 ++++++--- drivers/gpu/drm/xe/xe_hw_engine.c | 10 ++++++++-- drivers/gpu/drm/xe/xe_hw_engine.h | 2 +- drivers/gpu/drm/xe/xe_query.c | 3 +++ 4 files changed, 18 insertions(+), 6 deletions(-)
Signature · 1 line
2.31.1