Skip to content

VF: Avoid reading inaccessible RING_TIMESTAMP

Marcin Bernatowicz intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/xe/vf: Return EOPNOTSUPP for DRM_XE_DEVICE_QUERY_ENGINE_CYCLES if VFdrivers/gpu/drm/xe/xe_query.c+3 -00 replies
2/3drm/xe/vf: Return error code from xe_hw_engine_read_timestamp()drivers/gpu/drm/xe/xe_hw_engine.c drivers/gpu/drm/xe/xe_hw_engine.h+9 -32 replies
3/3drm/xe/client: Skip drm-total-cycles if unable to read timestampdrivers/gpu/drm/xe/xe_drm_client.c+6 -33 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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.

Cc Lucas De Marchi <[email protected]>
Cc Michal Wajdeczko <[email protected]>
Cc Michał Winiarski <[email protected]>
Cc Umesh Nerlige Ramappa <[email protected]>

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