Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] VF: Avoid reading inaccessible RING_TIMESTAMP
@ 2025-02-05 19:16 Marcin Bernatowicz
  2025-02-05 19:16 ` [PATCH 1/2] drm/xe/vf: Return EOPNOTSUPP for DRM_XE_DEVICE_QUERY_ENGINE_CYCLES if VF Marcin Bernatowicz
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: Marcin Bernatowicz @ 2025-02-05 19:16 UTC (permalink / raw)
  To: intel-xe
  Cc: Marcin Bernatowicz, Lucas De Marchi, Michal Wajdeczko,
	Michał Winiarski, Umesh Nerlige Ramappa

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 <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>

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(+)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-02-13 12:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-05 19:16 [PATCH 0/2] VF: Avoid reading inaccessible RING_TIMESTAMP Marcin Bernatowicz
2025-02-05 19:16 ` [PATCH 1/2] drm/xe/vf: Return EOPNOTSUPP for DRM_XE_DEVICE_QUERY_ENGINE_CYCLES if VF Marcin Bernatowicz
2025-02-10  7:51   ` K V P, Satyanarayana
2025-02-05 19:16 ` [PATCH 2/2] drm/xe/client: Skip show_run_ticks if unable to read timestamp Marcin Bernatowicz
2025-02-10  7:58   ` K V P, Satyanarayana
2025-02-05 19:53 ` ✓ CI.Patch_applied: success for VF: Avoid reading inaccessible RING_TIMESTAMP (rev2) Patchwork
2025-02-05 19:53 ` ✓ CI.checkpatch: " Patchwork
2025-02-05 19:55 ` ✓ CI.KUnit: " Patchwork
2025-02-05 20:11 ` ✓ CI.Build: " Patchwork
2025-02-05 20:13 ` ✓ CI.Hooks: " Patchwork
2025-02-05 20:15 ` ✓ CI.checksparse: " Patchwork
2025-02-05 20:35 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-05 23:35 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-13 12:20   ` Bernatowicz, Marcin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox