From: Andrey Grodzovsky Subject: Re: [PATCH v2 1/2] drm/amdgpu: Improve documentation of bo_ptr in amdgpu_bo_create_kernel Date: Thu, 15 Mar 2018 12:19:44 -0400 Message-ID: <32eb92c9-2e79-cb1a-7757-825183be8365@amd.com> References: <992da07d-1f19-3a1d-c065-10824871f756@gmail.com> <1521130511-10816-1-git-send-email-andrey.grodzovsky@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1494165906==" 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: "Deucher, Alexander" , "amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" , "ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , "Zhu, Rex" This is a multi-part message in MIME format. --===============1494165906== Content-Type: multipart/alternative; boundary="------------49FA135C9F39A3A0E3408DBC" Content-Language: en-US This is a multi-part message in MIME format. --------------49FA135C9F39A3A0E3408DBC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------49FA135C9F39A3A0E3408DBC Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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

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