drm/amdgpu: update type for num_syncobj_handles in drm_amdgpu_userq_signal
Subsystems (3)
PATCH 1/2 drm/amdgpu: update type for num_syncobj_handles in drm_amdgpu_userq_signal
update the type for num_syncobj_handles from __u64 to _u16 with required padding.
--- include/uapi/drm/amdgpu_drm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
include/uapi/drm/amdgpu_drm.h +3 -1
@@ -479,7 +479,9 @@ struct drm_amdgpu_userq_signal {* @num_syncobj_handles: A count that represents the number of syncobj handles in * @syncobj_handles. */ -__u64 num_syncobj_handles; +__u16 num_syncobj_handles; +__u16 pad0; +__u32 pad1;/** * @bo_read_handles: The list of BO handles that the submitted user queue job * is using for read only. This will update BO fences in the kernel.
Signature · 1 line
2.34.1
PATCH 2/2 drm/amdgpu: update type for num_syncobj_handles in drm_amdgpu_userq_wait
update the type for num_syncobj_handles from __u32 to _u16 with required padding.
--- include/uapi/drm/amdgpu_drm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/uapi/drm/amdgpu_drm.h +2 -1
@@ -565,7 +565,8 @@ struct drm_amdgpu_userq_wait {* @num_syncobj_handles: A count that represents the number of syncobj handles in * @syncobj_handles. */ -__u32 num_syncobj_handles; +__u16 num_syncobj_handles; +__u16 pad0;/** * @num_bo_read_handles: A count that represents the number of read BO handles in * @bo_read_handles.
Signature · 1 line
2.34.1
Quoted 13 lines · Sunil Khatri
update the type for
num_syncobj_handlesfrom__u64to_u16with required padding.Signed-off-by Sunil Khatri <[email protected]>--- include/uapi/drm/amdgpu_drm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)include/uapi/drm/amdgpu_drm.h +0
-0
include/uapi/drm/amdgpu_drm.h struct drm_amdgpu_userq_signal { · line 482
Quoted 5 lines
include/uapi/drm/amdgpu_drm.h +1
-1@@ -479,7 +479,9 @@ struct drm_amdgpu_userq_signal {* @num_syncobj_handles: A count that represents the number of syncobj handles in * @syncobj_handles. */ -__u64 num_syncobj_handles; +__u16 num_syncobj_handles;
Could probably cause build warnings/errors for something which builds fine today. Hm on big endian it actually breaks completely.
Regards,
Tvrtko
Quoted 5 lines
include/uapi/drm/amdgpu_drm.h +2
-0+__u16 pad0; +__u32 pad1;/** * @bo_read_handles: The list of BO handles that the submitted user queue job * is using for read only. This will update BO fences in the kernel.
Quoted 9 lines · Tvrtko Ursulin
Quoted 8 lines · Sunil Khatri
update the type for
num_syncobj_handlesfrom__u64to_u16with required padding.Signed-off-by Sunil Khatri <[email protected]>---
include/uapi/drm/amdgpu_drm.h| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 12 lines
include/uapi/drm/amdgpu_drm.h struct drm_amdgpu_userq_signal { · line 482
Quoted 10 lines
include/uapi/drm/amdgpu_drm.h +1
-1@@ -479,7 +479,9 @@ struct drm_amdgpu_userq_signal {* @num_syncobj_handles: A count that represents the number of syncobj handles in * @syncobj_handles. */ - __u64 num_syncobj_handles; + __u16 num_syncobj_handles;Could probably cause build warnings/errors for something which builds fine today. Hm on big endian it actually breaks completely.
Yeah this is a clear UAPI break, no go.
Quoted 6 lines
Quoted 5 lines
include/uapi/drm/amdgpu_drm.h +2
-0+ __u16 pad0; + __u32 pad1; /*** @bo_read_handles: The list of BO handles that the submitted user queue job * is using for read only. This will update BO fences in the kernel.
Signature · 2 lines
Earthling Michel Dänzer \ GNOME / Xwayland / Mesa developer https://redhat.com \ Libre software enthusiast
Quoted 21 lines · Michel Dänzer
Quoted 9 lines · Tvrtko Ursulin
Quoted 8 lines · Sunil Khatri
update the type for
num_syncobj_handlesfrom__u64to_u16with required padding.Signed-off-by Sunil Khatri <[email protected]>--- include/uapi/drm/amdgpu_drm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Quoted 11 lines
include/uapi/drm/amdgpu_drm.h struct drm_amdgpu_userq_signal { · line 482
Quoted 10 lines
include/uapi/drm/amdgpu_drm.h +1
-1@@ -479,7 +479,9 @@ struct drm_amdgpu_userq_signal {* @num_syncobj_handles: A count that represents the number of syncobj handles in * @syncobj_handles. */ - __u64 num_syncobj_handles; + __u16 num_syncobj_handles;Could probably cause build warnings/errors for something which builds fine today. Hm on big endian it actually breaks completely.
Quoted 1 line
Yeah this is a clear UAPI break, no go.
Yeah i am holding on this change for a cleaner solution. I acknowledge the UAPI breaking here.
Regards
Sunil khatri
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
include/uapi/drm/amdgpu_drm.h +2
-0+ __u16 pad0; + __u32 pad1; /*** @bo_read_handles: The list of BO handles that the submitted user queue job * is using for read only. This will update BO fences in the kernel.
Christian König
maintainerQuoted 23 lines · Sunil
Quoted 21 lines · Michel Dänzer
Quoted 20 lines · Tvrtko Ursulin
Quoted 13 lines · Sunil Khatri
update the type for
num_syncobj_handlesfrom__u64to_u16with required padding.Signed-off-by Sunil Khatri <[email protected]>---
include/uapi/drm/amdgpu_drm.h| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)include/uapi/drm/amdgpu_drm.h +0
-0include/uapi/drm/amdgpu_drm.h struct drm_amdgpu_userq_signal { · line 482
Quoted 5 lines
include/uapi/drm/amdgpu_drm.h +1
-1@@ -479,7 +479,9 @@ struct drm_amdgpu_userq_signal {* @num_syncobj_handles: A count that represents the number of syncobj handles in * @syncobj_handles. */ - __u64 num_syncobj_handles; + __u16 num_syncobj_handles;Could probably cause build warnings/errors for something which builds fine today. Hm on big endian it actually breaks completely.
Quoted 3 lines
Quoted 1 line
Yeah this is a clear UAPI break, no go.
Yeah i am holding on this change for a cleaner solution. I acknowledge the UAPI breaking here.
This uAPI break was intentional. The functionality is used only as experimental feature behind module parameter and new FW anyway.
But we didn't wanted to break existing Mesa binaries for easier testing and so kept the ABI for x86 intact with the padding.
Regards,
Christian.
Quoted 13 lines
Regards
Sunil khatri
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
include/uapi/drm/amdgpu_drm.h +2
-0+ __u16 pad0; + __u32 pad1; /*** @bo_read_handles: The list of BO handles that the submitted user queue job * is using for read only. This will update BO fences in the kernel.
Quoted 24 lines · Christian König
Quoted 23 lines · Sunil
Quoted 21 lines · Michel Dänzer
Quoted 20 lines · Tvrtko Ursulin
Quoted 13 lines · Sunil Khatri
update the type for
num_syncobj_handlesfrom__u64to_u16with required padding.Signed-off-by Sunil Khatri <[email protected]>--- include/uapi/drm/amdgpu_drm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)include/uapi/drm/amdgpu_drm.h +0
-0include/uapi/drm/amdgpu_drm.h struct drm_amdgpu_userq_signal { · line 482
Quoted 5 lines
include/uapi/drm/amdgpu_drm.h +1
-1@@ -479,7 +479,9 @@ struct drm_amdgpu_userq_signal {* @num_syncobj_handles: A count that represents the number of syncobj handles in * @syncobj_handles. */ - __u64 num_syncobj_handles; + __u16 num_syncobj_handles;Could probably cause build warnings/errors for something which builds fine today. Hm on big endian it actually breaks completely.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yeah this is a clear UAPI break, no go.
Yeah i am holding on this change for a cleaner solution. I acknowledge the UAPI breaking here.
This uAPI break was intentional. The functionality is used only as experimental feature behind module parameter and new FW anyway.
But we didn't wanted to break existing Mesa binaries for easier testing and so kept the ABI for x86 intact with the padding.
Ack, I wasn't aware, sorry for the noise!
Regards,
Tvrtko
Quoted 18 lines
Regards,
Christian.Quoted 13 lines
Regards
Sunil khatri
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
include/uapi/drm/amdgpu_drm.h +2
-0+ __u16 pad0; + __u32 pad1; /*** @bo_read_handles: The list of BO handles that the submitted user queue job * is using for read only. This will update BO fences in the kernel.
Christian König
maintainerQuoted 28 lines · Tvrtko Ursulin
Quoted 26 lines · Christian König
Quoted 25 lines · Sunil
Quoted 22 lines · Michel Dänzer
Quoted 9 lines · Tvrtko Ursulin
Quoted 8 lines · Sunil Khatri
update the type for
num_syncobj_handlesfrom__u64to_u16with required padding.Signed-off-by Sunil Khatri <[email protected]>---
include/uapi/drm/amdgpu_drm.h| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)Quoted 11 lines
include/uapi/drm/amdgpu_drm.h struct drm_amdgpu_userq_signal { · line 482
Quoted 10 lines
include/uapi/drm/amdgpu_drm.h +1
-1@@ -479,7 +479,9 @@ struct drm_amdgpu_userq_signal {* @num_syncobj_handles: A count that represents the number of syncobj handles in * @syncobj_handles. */ - __u64 num_syncobj_handles; + __u16 num_syncobj_handles;Could probably cause build warnings/errors for something which builds fine today. Hm on big endian it actually breaks completely.
Yeah this is a clear UAPI break, no go.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Yeah i am holding on this change for a cleaner solution. I acknowledge the UAPI breaking here.
This uAPI break was intentional. The functionality is used only as experimental feature behind module parameter and new FW anyway.
But we didn't wanted to break existing Mesa binaries for easier testing and so kept the ABI for x86 intact with the padding.
Ack, I wasn't aware, sorry for the noise!
No, perfectly ok that you mentioned this.
Alex, Sunil and I synced up on this yesterday in a personal call and we agreed that breaking the uAPI this way is still ok at this point since userqueues are still beta feature etc...
Everybody else obviously can't know that, so we need to include this info the commit message.
@Sunil: Can you add something like "Breaks the uAPI on big endian but userqueues is still a beta feature and only enabled by a module parameter/updating FW.".
With that Reviewed-by: Christian König <[email protected]> for both patches.
Thanks,
Christian.
Quoted 24 lines
Regards,
Tvrtko
Quoted 18 lines
Regards,
Christian.Quoted 13 lines
Regards
Sunil khatri
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
include/uapi/drm/amdgpu_drm.h +2
-0+ __u16 pad0; + __u32 pad1; /*** @bo_read_handles: The list of BO handles that the submitted user queue job * is using for read only. This will update BO fences in the kernel.
Quoted 30 lines · Christian König
Quoted 29 lines · Tvrtko Ursulin
Quoted 28 lines · Christian König
Quoted 22 lines · Sunil
Quoted 21 lines · Michel Dänzer
Quoted 20 lines · Tvrtko Ursulin
Quoted 13 lines · Sunil Khatri
update the type for
num_syncobj_handlesfrom__u64to_u16with required padding.Signed-off-by Sunil Khatri <[email protected]>--- include/uapi/drm/amdgpu_drm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)include/uapi/drm/amdgpu_drm.h +0
-0include/uapi/drm/amdgpu_drm.h struct drm_amdgpu_userq_signal { · line 482
Quoted 5 lines
include/uapi/drm/amdgpu_drm.h +1
-1@@ -479,7 +479,9 @@ struct drm_amdgpu_userq_signal {* @num_syncobj_handles: A count that represents the number of syncobj handles in * @syncobj_handles. */ - __u64 num_syncobj_handles; + __u16 num_syncobj_handles;Could probably cause build warnings/errors for something which builds fine today. Hm on big endian it actually breaks completely.
Quoted 2 lines
Quoted 1 line
Yeah this is a clear UAPI break, no go.
Yeah i am holding on this change for a cleaner solution. I acknowledge the UAPI breaking here.
This uAPI break was intentional. The functionality is used only as experimental feature behind module parameter and new FW anyway.
But we didn't wanted to break existing Mesa binaries for easier testing and so kept the ABI for x86 intact with the padding.
Quoted 8 lines
Quoted 1 line
Ack, I wasn't aware, sorry for the noise!
No, perfectly ok that you mentioned this.
Alex, Sunil and I synced up on this yesterday in a personal call and we agreed that breaking the uAPI this way is still ok at this point since userqueues are still beta feature etc...
Everybody else obviously can't know that, so we need to include this info the commit message.
@Sunil: Can you add something like "Breaks the uAPI on big endian but userqueues is still a beta feature and only enabled by a module parameter/updating FW.".
Sure christian, will do that.
Regards
Sunil Khatri
Quoted 23 lines
With that Reviewed-by: Christian König <[email protected]> for both patches.
Thanks,
Christian.Quoted 17 lines
Regards,
Tvrtko
Quoted 13 lines
Regards,
Christian.Quoted 10 lines
Regards
Sunil khatri
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
include/uapi/drm/amdgpu_drm.h +2
-0+ __u16 pad0; + __u32 pad1; /*** @bo_read_handles: The list of BO handles that the submitted user queue job * is using for read only. This will update BO fences in the kernel.