[Intel-xe] [PATCH] fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy
Souza, Jose
jose.souza at intel.com
Fri Oct 6 13:41:44 UTC 2023
On Thu, 2023-10-05 at 14:50 -0700, Umesh Nerlige Ramappa wrote:
> Change rsvd to pad in struct drm_xe_class_instance to prevent the field
> from being used in future.
Reviewed-by: José Roberto de Souza <jose.souza at intel.com>
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
> ---
> drivers/gpu/drm/xe/xe_query.c | 5 ++++-
> include/uapi/drm/xe_drm.h | 2 +-
> 2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
> index 95a6aa5cba54..e726366870be 100644
> --- a/drivers/gpu/drm/xe/xe_query.c
> +++ b/drivers/gpu/drm/xe/xe_query.c
> @@ -215,7 +215,10 @@ static int query_engines(struct xe_device *xe,
> xe_to_user_engine_class[hwe->class];
> hw_engine_info[i].engine_instance =
> hwe->logical_instance;
> - hw_engine_info[i++].gt_id = gt->info.id;
> + hw_engine_info[i].gt_id = gt->info.id;
> + hw_engine_info[i].pad = 0;
> +
> + i++;
> }
>
> if (copy_to_user(query_ptr, hw_engine_info, size)) {
> diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
> index 079213a3df55..b74c8d2e2c46 100644
> --- a/include/uapi/drm/xe_drm.h
> +++ b/include/uapi/drm/xe_drm.h
> @@ -144,7 +144,7 @@ struct drm_xe_engine_class_instance {
>
> __u16 engine_instance;
> __u16 gt_id;
> - __u16 rsvd;
> + __u16 pad;
> };
>
> /**
More information about the Intel-xe
mailing list