diff options
| author | Marcin Bernatowicz <[email protected]> | 2025-02-05 19:16:43 +0000 |
|---|---|---|
| committer | Michal Wajdeczko <[email protected]> | 2025-02-20 12:49:06 +0000 |
| commit | 5a9f8db2db70e09b47010a936b6c4fb83975464f (patch) | |
| tree | 9dcddceee58d3dda3beec1373dfd2a0266fad2b6 | |
| parent | drm/xe: Drop unnecessary GT lookup in xe_exec_queue_create_ioctl() (diff) | |
| download | kernel-5a9f8db2db70e09b47010a936b6c4fb83975464f.tar.gz kernel-5a9f8db2db70e09b47010a936b6c4fb83975464f.zip | |
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 <[email protected]>
Cc: Michal Wajdeczko <[email protected]>
Cc: MichaĆ Winiarski <[email protected]>
Cc: Umesh Nerlige Ramappa <[email protected]>
Reviewed-by: Satyanarayana K V P <[email protected]>
Signed-off-by: Michal Wajdeczko <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
| -rw-r--r-- | drivers/gpu/drm/xe/xe_query.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c index 042f87a688e7..ebfae746f861 100644 --- a/drivers/gpu/drm/xe/xe_query.c +++ b/drivers/gpu/drm/xe/xe_query.c @@ -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; |
