mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
drm/xe/vf: Return EOPNOTSUPP for DRM_XE_DEVICE_QUERY_ENGINE_CYCLES if VF
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. Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.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-2-marcin.bernatowicz@linux.intel.com
This commit is contained in:
parent
a1e5b6d83e
commit
5a9f8db2db
|
|
@ -121,6 +121,9 @@ query_engine_cycles(struct xe_device *xe,
|
|||
struct xe_gt *gt;
|
||||
unsigned int fw_ref;
|
||||
|
||||
if (IS_SRIOV_VF(xe))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (query->size == 0) {
|
||||
query->size = size;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user