Skip to content

Commit 94030a1

Browse files
mbernatowiczmwajdecz
authored andcommitted
drm/xe/client: Skip show_run_ticks if unable to read timestamp
RING_TIMESTAMP registers are inaccessible in VF mode. Without drm-total-cycles-*, other keys provide little value. Skip all optional "run_ticks" keys in this case. Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Michał Winiarski <michal.winiarski@intel.com> Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Reviewed-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250205191644.2550879-3-marcin.bernatowicz@linux.intel.com
1 parent 5a9f8db commit 94030a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/gpu/drm/xe/xe_drm_client.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,14 @@ static void show_run_ticks(struct drm_printer *p, struct drm_file *file)
324324
u64 gpu_timestamp;
325325
unsigned int fw_ref;
326326

327+
/*
328+
* RING_TIMESTAMP registers are inaccessible in VF mode.
329+
* Without drm-total-cycles-*, other keys provide little value.
330+
* Show all or none of the optional "run_ticks" keys in this case.
331+
*/
332+
if (IS_SRIOV_VF(xe))
333+
return;
334+
327335
/*
328336
* Wait for any exec queue going away: their cycles will get updated on
329337
* context switch out, so wait for that to happen

0 commit comments

Comments
 (0)