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 Latest2 patches 3 repliesIn review

v2 from the cover letter

- Drop "drm/xe/vf: Return error code from xe_hw_engine_read_timestamp()" patch. (Michal)
- Skip "run_ticks" keys if unable to read timestamp. (Lucas)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/xe/vf: Return EOPNOTSUPP for DRM_XE_DEVICE_QUERY_ENGINE_CYCLES if VFdrivers/gpu/drm/xe/xe_query.c+3 -01 reply
2/2drm/xe/client: Skip show_run_ticks if unable to read timestampdrivers/gpu/drm/xe/xe_drm_client.c+8 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSatyanarayana K V P
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] 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.

RING_TIMESTAMP registers populate drm-total-cycles-* fdinfo keys. Without drm-total-cycles-*, other keys provide little value. Skip all optional "run_ticks" keys if unable to read the timestamp.

v2:
- Drop "drm/xe/vf: Return error code from xe_hw_engine_read_timestamp()" patch. (Michal)
- Skip "run_ticks" keys if unable to read timestamp. (Lucas)

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

Marcin Bernatowicz (2):
drm/xe/vf: Return EOPNOTSUPP for DRM_XE_DEVICE_QUERY_ENGINE_CYCLES if
VF
drm/xe/client: Skip show_run_ticks if unable to read timestamp

 drivers/gpu/drm/xe/xe_drm_client.c | 8 ++++++++
 drivers/gpu/drm/xe/xe_query.c      | 3 +++
 2 files changed, 11 insertions(+)
Signature · 1 line
2.31.1