* [Intel-xe] [PATCH] fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy
@ 2023-10-05 21:50 Umesh Nerlige Ramappa
2023-10-06 1:38 ` [Intel-xe] ✗ CI.Patch_applied: failure for " Patchwork
2023-10-06 13:41 ` [Intel-xe] [PATCH] " Souza, Jose
0 siblings, 2 replies; 3+ messages in thread
From: Umesh Nerlige Ramappa @ 2023-10-05 21:50 UTC (permalink / raw)
To: intel-xe, francois.dugast, jose.souza; +Cc: rodrigo.vivi
Change rsvd to pad in struct drm_xe_class_instance to prevent the field
from being used in future.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@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;
};
/**
--
2.38.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Intel-xe] ✗ CI.Patch_applied: failure for fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy
2023-10-05 21:50 [Intel-xe] [PATCH] fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy Umesh Nerlige Ramappa
@ 2023-10-06 1:38 ` Patchwork
2023-10-06 13:41 ` [Intel-xe] [PATCH] " Souza, Jose
1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2023-10-06 1:38 UTC (permalink / raw)
To: Umesh Nerlige Ramappa; +Cc: intel-xe
== Series Details ==
Series: fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy
URL : https://patchwork.freedesktop.org/series/124690/
State : failure
== Summary ==
=== Applying kernel patches on branch 'drm-xe-next' with base: ===
Base commit: b3daf7f07 drm/xe/hwmon: fix uaf on unload
=== git am output follows ===
error: patch failed: include/uapi/drm/xe_drm.h:144
error: include/uapi/drm/xe_drm.h: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch
Applying: fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy
Patch failed at 0001 fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Intel-xe] [PATCH] fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy
2023-10-05 21:50 [Intel-xe] [PATCH] fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy Umesh Nerlige Ramappa
2023-10-06 1:38 ` [Intel-xe] ✗ CI.Patch_applied: failure for " Patchwork
@ 2023-10-06 13:41 ` Souza, Jose
1 sibling, 0 replies; 3+ messages in thread
From: Souza, Jose @ 2023-10-06 13:41 UTC (permalink / raw)
To: intel-xe, Nerlige Ramappa, Umesh, Dugast, Francois; +Cc: Vivi, Rodrigo
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@intel.com>
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@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;
> };
>
> /**
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-06 13:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-05 21:50 [Intel-xe] [PATCH] fixup! drm/xe: Correlate engine and cpu timestamps with better accuracy Umesh Nerlige Ramappa
2023-10-06 1:38 ` [Intel-xe] ✗ CI.Patch_applied: failure for " Patchwork
2023-10-06 13:41 ` [Intel-xe] [PATCH] " Souza, Jose
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.