From: Andrey Grodzovsky Subject: Re: [PATCH v2 1/2] drm/amdgpu: Improve documentation of bo_ptr in amdgpu_bo_create_kernel Date: Fri, 16 Mar 2018 09:55:49 -0400 Message-ID: <2fd46a7a-7dd1-6cfb-cd72-d05086c4740d@amd.com> References: <992da07d-1f19-3a1d-c065-10824871f756@gmail.com> <1521130511-10816-1-git-send-email-andrey.grodzovsky@amd.com> <32eb92c9-2e79-cb1a-7757-825183be8365@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0770333797==" Return-path: In-Reply-To: Content-Language: en-US List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "amd-gfx" To: "Zhu, Rex" , "Deucher, Alexander" , "amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" , "ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" This is a multi-part message in MIME format. --===============0770333797== Content-Type: multipart/alternative; boundary="------------C0FD7CCCE7BDED415E682496" Content-Language: en-US This is a multi-part message in MIME format. --------------C0FD7CCCE7BDED415E682496 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit NP, makes sense what you did. Andrey On 03/16/2018 01:44 AM, Zhu, Rex wrote: > > Hi Andrey, > > Sorry for the confusion. > > I just need to push a bunch of patches that conflict with  your patch. > > So apply your patch first. > > Best Regards > > Rex > > *From:*amd-gfx [mailto:amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org] *On > Behalf Of *Andrey Grodzovsky > *Sent:* Friday, March 16, 2018 12:20 AM > *To:* Deucher, Alexander; amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org; > ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; Zhu, Rex > *Subject:* Re: [PATCH v2 1/2] drm/amdgpu: Improve documentation of > bo_ptr in amdgpu_bo_create_kernel > > That explains the merge conflict that surprised me :) > > Thanks, > > Andrey > > On 03/15/2018 12:18 PM, Deucher, Alexander wrote: > > For the series: > > Reviewed-by: Alex Deucher > > > I think Rex already applied the second one. > > ------------------------------------------------------------------------ > > *From:*amd-gfx > on behalf of Andrey > Grodzovsky > > *Sent:* Thursday, March 15, 2018 12:15 PM > *To:* amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > ; > ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > ; Zhu, Rex > *Cc:* Grodzovsky, Andrey > *Subject:* [PATCH v2 1/2] drm/amdgpu: Improve documentation of > bo_ptr in amdgpu_bo_create_kernel > > and amdgpu_bo_create_reserved. > > Signed-off-by: Andrey Grodzovsky > > --- >  drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 8 ++++++-- >  1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c > index 48e0115..ac1fa33 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c > @@ -171,13 +171,15 @@ void amdgpu_ttm_placement_from_domain(struct > amdgpu_bo *abo, u32 domain) >   * @size: size for the new BO >   * @align: alignment for the new BO >   * @domain: where to place it > - * @bo_ptr: resulting BO > + * @bo_ptr: used to initialize BOs in structures >   * @gpu_addr: GPU addr of the pinned BO >   * @cpu_addr: optional CPU address mapping >   * >   * Allocates and pins a BO for kernel internal use, and returns > it still >   * reserved. >   * > + * Note: For bo_ptr new BO is only created if bo_ptr points to NULL. > + * >   * Returns 0 on success, negative error code otherwise. >   */ >  int amdgpu_bo_create_reserved(struct amdgpu_device *adev, > @@ -240,12 +242,14 @@ int amdgpu_bo_create_reserved(struct > amdgpu_device *adev, >   * @size: size for the new BO >   * @align: alignment for the new BO >   * @domain: where to place it > - * @bo_ptr: resulting BO > + * @bo_ptr:  used to initialize BOs in structures >   * @gpu_addr: GPU addr of the pinned BO >   * @cpu_addr: optional CPU address mapping >   * >   * Allocates and pins a BO for kernel internal use. >   * > + * Note: For bo_ptr new BO is only created if bo_ptr points to NULL. > + * >   * Returns 0 on success, negative error code otherwise. >   */ >  int amdgpu_bo_create_kernel(struct amdgpu_device *adev, > -- > 2.7.4 > > _______________________________________________ > amd-gfx mailing list > amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx > --------------C0FD7CCCE7BDED415E682496 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

NP, makes sense what you did.


Andrey


On 03/16/2018 01:44 AM, Zhu, Rex wrote:

Hi Andrey,

 

Sorry for the confusion.

I just need to push a bunch of patches that conflict with  your patch.

So apply your patch first.

 

 

Best Regards

Rex

 

From: amd-gfx [mailto:amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org] On Behalf Of Andrey Grodzovsky
Sent: Friday, March 16, 2018 12:20 AM
To: Deucher, Alexander; amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org; ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; Zhu, Rex
Subject: Re: [PATCH v2 1/2] drm/amdgpu: Improve documentation of bo_ptr in amdgpu_bo_create_kernel

 

That explains the merge conflict that surprised me :)

 

Thanks,

Andrey

 

On 03/15/2018 12:18 PM, Deucher, Alexander wrote:

For the series:

Reviewed-by: Alex Deucher <alexander.deucher-5C7GfCeVMHo@public.gmane.org>

I think Rex already applied the second one.


From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Andrey Grodzovsky <andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>
Sent: Thursday, March 15, 2018 12:15 PM
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org; ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; Zhu, Rex
Cc: Grodzovsky, Andrey
Subject: [PATCH v2 1/2] drm/amdgpu: Improve documentation of bo_ptr in amdgpu_bo_create_kernel

 

and amdgpu_bo_create_reserved.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 48e0115..ac1fa33 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -171,13 +171,15 @@ void amdgpu_ttm_placement_from_domain(struct amdgpu_bo *abo, u32 domain)
  * @size: size for the new BO
  * @align: alignment for the new BO
  * @domain: where to place it
- * @bo_ptr: resulting BO
+ * @bo_ptr: used to initialize BOs in structures
  * @gpu_addr: GPU addr of the pinned BO
  * @cpu_addr: optional CPU address mapping
  *
  * Allocates and pins a BO for kernel internal use, and returns it still
  * reserved.
  *
+ * Note: For bo_ptr new BO is only created if bo_ptr points to NULL.
+ *
  * Returns 0 on success, negative error code otherwise.
  */
 int amdgpu_bo_create_reserved(struct amdgpu_device *adev,
@@ -240,12 +242,14 @@ int amdgpu_bo_create_reserved(struct amdgpu_device *adev,
  * @size: size for the new BO
  * @align: alignment for the new BO
  * @domain: where to place it
- * @bo_ptr: resulting BO
+ * @bo_ptr:  used to initialize BOs in structures
  * @gpu_addr: GPU addr of the pinned BO
  * @cpu_addr: optional CPU address mapping
  *
  * Allocates and pins a BO for kernel internal use.
  *
+ * Note: For bo_ptr new BO is only created if bo_ptr points to NULL.
+ *
  * Returns 0 on success, negative error code otherwise.
  */
 int amdgpu_bo_create_kernel(struct amdgpu_device *adev,
--
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

 


--------------C0FD7CCCE7BDED415E682496-- --===============0770333797== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KYW1kLWdmeCBt YWlsaW5nIGxpc3QKYW1kLWdmeEBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9hbWQtZ2Z4Cg== --===============0770333797==--