Skip to contentSkip to conversation

- Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initially

PATCH In review David Mao 3 participants 5 messages Nov 28, 2017 4 messages not in the archive

lore
Share & tools
lore

David Mao

author
#0 lore raw

PATCH 1/1 - Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initially

Change-Id Icf8d29bd4b50ee76936faacbbe099492cf0557cc
---
 amdgpu/amdgpu.h    | 15 +++++++++++++++
 amdgpu/amdgpu_cs.c | 10 ++++++++++
 2 files changed, 25 insertions(+)
amdgpu/amdgpu.h +15 -0
index 78fbd1e..47bdb3a 100644
@@ -1727,6 +1727,21 @@ const char *amdgpu_get_marketing_name(amdgpu_device_handle dev);
 /**
  *  Create kernel sync object
  *
+ * \param   dev         - \c [in]  device handle
+ * \param   flags       - \c [in]  flags that affect creation
+ * \param   syncobj     - \c [out] sync object handle
+ *
+ * \return   0 on success\n
+ *          <0 - Negative POSIX Error code
+ *
+*/
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+			      uint32_t  flags,
+			      uint32_t *syncobj);
+
+/**
+ *  Create kernel sync object
+ *
  * \param   dev	      - \c [in]  device handle
  * \param   syncobj   - \c [out] sync object handle
  *
amdgpu/amdgpu_cs.c +10 -0
index 64ad911..a9fbab9 100644
@@ -606,6 +606,16 @@ int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem)
 	return amdgpu_cs_unreference_sem(sem);
 }
 
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+			      uint32_t  flags,
+			      uint32_t *handle)
+{
+	if (NULL == dev)
+		return -EINVAL;
+
+	return drmSyncobjCreate(dev->fd, flags, handle);
+}
+
 int amdgpu_cs_create_syncobj(amdgpu_device_handle dev,
 			     uint32_t *handle)
 {
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1511839574-1829-1-git-send-email-david.mao-5C7GfCeVMHo@public.gmane.org

author
#2 lore raw

Anyone can help to review the change?
Thanks.

Best Regards,
David

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of David Mao
Sent: Tuesday, November 28, 2017 11:26 AM
To: [email protected]
Subject: [PATCH libdrm] [drm] - Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initially

Change-Id Icf8d29bd4b50ee76936faacbbe099492cf0557cc
---
 amdgpu/amdgpu.h    | 15 +++++++++++++++
 amdgpu/amdgpu_cs.c | 10 ++++++++++
 2 files changed, 25 insertions(+)
amdgpu/amdgpu.h +15 -0
@@ -1727,6 +1727,21 @@ const char *amdgpu_get_marketing_name(amdgpu_device_handle dev);
 /**
  *  Create kernel sync object
  *
+ * \param   dev         - \c [in]  device handle
+ * \param   flags       - \c [in]  flags that affect creation
+ * \param   syncobj     - \c [out] sync object handle
+ *
+ * \return   0 on success\n
+ *          <0 - Negative POSIX Error code
+ *
+*/
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+			      uint32_t  flags,
+			      uint32_t *syncobj);
+
+/**
+ *  Create kernel sync object
+ *
  * \param   dev	      - \c [in]  device handle
  * \param   syncobj   - \c [out] sync object handle
  *
amdgpu/amdgpu_cs.c +9 -1
@@ -606,6 +606,16 @@ int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem)
 	return amdgpu_cs_unreference_sem(sem);  }
 
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+			      uint32_t  flags,
+			      uint32_t *handle)
+{
+	if (NULL == dev)
+		return -EINVAL;
+
+	return drmSyncobjCreate(dev->fd, flags, handle); }
+
 int amdgpu_cs_create_syncobj(amdgpu_device_handle dev,
 			     uint32_t *handle)
 {
--

2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): BN6PR1201MB012973D1C226CF8A794BC590EE3A0-6iU6OBHu2P8DDbfZyiqacGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/[email protected]

Reviewed-by
#4 lore raw

But in general for libdrm changes I would ping Marek, Nicolai, Michel and in this special case Dave Airlie because he added the patch with the missing flags field.

And I strongly assume you don't have commit rights, don't you?

Regards,
Christian.

Am 28.11.2017 um 14:22 schrieb Mao, David:

Quoted 65 lines

Anyone can help to review the change?
Thanks.

Best Regards,
David

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of David Mao
Sent: Tuesday, November 28, 2017 11:26 AM
To: [email protected]
Subject: [PATCH libdrm] [drm] - Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initially

Change-Id Icf8d29bd4b50ee76936faacbbe099492cf0557cc
---
  amdgpu/amdgpu.h    | 15 +++++++++++++++
  amdgpu/amdgpu_cs.c | 10 ++++++++++
  2 files changed, 25 insertions(+)
amdgpu/amdgpu.h +15 -0
@@ -1727,6 +1727,21 @@ const char *amdgpu_get_marketing_name(amdgpu_device_handle dev);
  /**
   *  Create kernel sync object
   *
+ * \param   dev         - \c [in]  device handle
+ * \param   flags       - \c [in]  flags that affect creation
+ * \param   syncobj     - \c [out] sync object handle
+ *
+ * \return   0 on success\n
+ *          <0 - Negative POSIX Error code
+ *
+*/
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+			      uint32_t  flags,
+			      uint32_t *syncobj);
+
+/**
+ *  Create kernel sync object
+ *
   * \param   dev	      - \c [in]  device handle
   * \param   syncobj   - \c [out] sync object handle
   *
amdgpu/amdgpu_cs.c +9 -1
@@ -606,6 +606,16 @@ int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem)
  	return amdgpu_cs_unreference_sem(sem);  }
 
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+			      uint32_t  flags,
+			      uint32_t *handle)
+{
+	if (NULL == dev)
+		return -EINVAL;
+
+	return drmSyncobjCreate(dev->fd, flags, handle); }
+
  int amdgpu_cs_create_syncobj(amdgpu_device_handle dev,
  			     uint32_t *handle)
  {
--

2.7.4

Quoted 8 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): d5dd3ea2-03f7-5976-dd39-a36abdb50919-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

author Reviewed-by Christian König
#6 lore raw

I have never tried to commit the change before. So I guess the answer is no. Could you let me know, how I can apply for the commit right?

Thanks.
Best Regards,
David

-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Tuesday, November 28, 2017 9:29 PM
To: Mao, David <[email protected]>; [email protected]
Subject: Re: [PATCH libdrm] [drm] - Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initially

But in general for libdrm changes I would ping Marek, Nicolai, Michel and in this special case Dave Airlie because he added the patch with the missing flags field.

And I strongly assume you don't have commit rights, don't you?

Regards,
Christian.

Am 28.11.2017 um 14:22 schrieb Mao, David:

Quoted 69 lines

Anyone can help to review the change?
Thanks.

Best Regards,
David

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of David Mao
Sent: Tuesday, November 28, 2017 11:26 AM
To: [email protected]
Subject: [PATCH libdrm] [drm] - Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initially

Change-Id Icf8d29bd4b50ee76936faacbbe099492cf0557cc
---
  amdgpu/amdgpu.h    | 15 +++++++++++++++
  amdgpu/amdgpu_cs.c | 10 ++++++++++
  2 files changed, 25 insertions(+)
amdgpu/amdgpu.h index 78fbd1e..47bdb3a renamed from amdgpu/amdgpu.h +0 -0

100644

amdgpu/amdgpu.h +15 -0
@@ -1727,6 +1727,21 @@ const char *amdgpu_get_marketing_name(amdgpu_device_handle dev);
  /**
   *  Create kernel sync object
   *
+ * \param   dev         - \c [in]  device handle
+ * \param   flags       - \c [in]  flags that affect creation
+ * \param   syncobj     - \c [out] sync object handle
+ *
+ * \return   0 on success\n
+ *          <0 - Negative POSIX Error code
+ *
+*/
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+			      uint32_t  flags,
+			      uint32_t *syncobj);
+
+/**
+ *  Create kernel sync object
+ *
   * \param   dev	      - \c [in]  device handle
   * \param   syncobj   - \c [out] sync object handle
   *
amdgpu/amdgpu_cs.c index renamed from amdgpu/amdgpu_cs.c +0 -0

64ad911..a9fbab9 100644

amdgpu/amdgpu_cs.c +9 -1
@@ -606,6 +606,16 @@ int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem)
  	return amdgpu_cs_unreference_sem(sem);  }
 
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+			      uint32_t  flags,
+			      uint32_t *handle)
+{
+	if (NULL == dev)
+		return -EINVAL;
+
+	return drmSyncobjCreate(dev->fd, flags, handle); }
+
  int amdgpu_cs_create_syncobj(amdgpu_device_handle dev,
  			     uint32_t *handle)
  {
--

2.7.4

Quoted 8 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): BN6PR1201MB012951828F26840B083C01B0EE3A0-6iU6OBHu2P8DDbfZyiqacGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/[email protected]

#8 lore raw

You need a freedesktop.org account:
https://www.freedesktop.org/wiki/AccountRequests/

Marek

Quoted 92 lines · David

I have never tried to commit the change before. So I guess the answer is no. Could you let me know, how I can apply for the commit right?

Thanks.
Best Regards,
David

-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Tuesday, November 28, 2017 9:29 PM
To: Mao, David <[email protected]>; [email protected]
Subject: Re: [PATCH libdrm] [drm] - Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initially

But in general for libdrm changes I would ping Marek, Nicolai, Michel and in this special case Dave Airlie because he added the patch with the missing flags field.

And I strongly assume you don't have commit rights, don't you?

Regards,
Christian.

Am 28.11.2017 um 14:22 schrieb Mao, David:

Quoted 69 lines

Anyone can help to review the change?
Thanks.

Best Regards,
David

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of David Mao
Sent: Tuesday, November 28, 2017 11:26 AM
To: [email protected]
Subject: [PATCH libdrm] [drm] - Adding amdgpu_cs_create_syncobj2 to create syncobj as signaled initially

Change-Id Icf8d29bd4b50ee76936faacbbe099492cf0557cc
---
  amdgpu/amdgpu.h    | 15 +++++++++++++++
  amdgpu/amdgpu_cs.c | 10 ++++++++++
  2 files changed, 25 insertions(+)
amdgpu/amdgpu.h index 78fbd1e..47bdb3a renamed from amdgpu/amdgpu.h +0 -0

100644

amdgpu/amdgpu.h +15 -0
@@ -1727,6 +1727,21 @@ const char *amdgpu_get_marketing_name(amdgpu_device_handle dev);
  /**
   *  Create kernel sync object
   *
+ * \param   dev         - \c [in]  device handle
+ * \param   flags       - \c [in]  flags that affect creation
+ * \param   syncobj     - \c [out] sync object handle
+ *
+ * \return   0 on success\n
+ *          <0 - Negative POSIX Error code
+ *
+*/
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+                           uint32_t  flags,
+                           uint32_t *syncobj);
+
+/**
+ *  Create kernel sync object
+ *
   * \param   dev           - \c [in]  device handle
   * \param   syncobj   - \c [out] sync object handle
   *
amdgpu/amdgpu_cs.c index renamed from amdgpu/amdgpu_cs.c +0 -0

64ad911..a9fbab9 100644

amdgpu/amdgpu_cs.c +9 -1
@@ -606,6 +606,16 @@ int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem)
      return amdgpu_cs_unreference_sem(sem);  }
 
+int amdgpu_cs_create_syncobj2(amdgpu_device_handle dev,
+                           uint32_t  flags,
+                           uint32_t *handle)
+{
+     if (NULL == dev)
+             return -EINVAL;
+
+     return drmSyncobjCreate(dev->fd, flags, handle); }
+
  int amdgpu_cs_create_syncobj(amdgpu_device_handle dev,
                           uint32_t *handle)
  {
--

2.7.4

Quoted 13 lines
Quoted 8 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx