[PATCH 1/2] drm/xe/vf: Return EOPNOTSUPP for DRM_XE_DEVICE_QUERY_ENGINE_CYCLES if VF
K V P, Satyanarayana
satyanarayana.k.v.p at intel.com
Mon Feb 10 07:51:52 UTC 2025
Hi.
> -----Original Message-----
> From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Marcin
> Bernatowicz
> Sent: Thursday, February 6, 2025 12:47 AM
> To: intel-xe at lists.freedesktop.org
> Cc: Marcin Bernatowicz <marcin.bernatowicz at linux.intel.com>; Wajdeczko,
> Michal <Michal.Wajdeczko at intel.com>; Winiarski, Michal
> <michal.winiarski at intel.com>; Nerlige Ramappa, Umesh
> <umesh.nerlige.ramappa at intel.com>
> Subject: [PATCH 1/2] 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 at linux.intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Michał Winiarski <michal.winiarski at intel.com>
> Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
> ---
LGTM.
Reviewed-by: Satyanarayana K V P <satyanarayana.k.v.p at intel.com>
> drivers/gpu/drm/xe/xe_query.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> 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;
> --
> 2.31.1
More information about the Intel-xe
mailing list