From: =?UTF-8?Q?Christian_K=c3=b6nig?= Subject: Re: [PATCH v2 1/2] drm/amdgpu: Improve documentation of bo_ptr in amdgpu_bo_create_kernel Date: Thu, 15 Mar 2018 17:30:54 +0100 Message-ID: <8436cf05-a319-db6e-bce5-21c95ca1d1bf@gmail.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> Reply-To: christian.koenig-5C7GfCeVMHo@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1411427205==" Return-path: In-Reply-To: <32eb92c9-2e79-cb1a-7757-825183be8365-5C7GfCeVMHo@public.gmane.org> 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: Andrey Grodzovsky , "Deucher, Alexander" , "amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" , "Zhu, Rex" This is a multi-part message in MIME format. --===============1411427205== Content-Type: multipart/alternative; boundary="------------70D573DF5D14414541D5F818" Content-Language: en-US This is a multi-part message in MIME format. --------------70D573DF5D14414541D5F818 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Yeah, not really the usually flow. Either way Reviewed-by: Christian König for both. Christian. Am 15.03.2018 um 17:19 schrieb Andrey Grodzovsky: > > 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 > --------------70D573DF5D14414541D5F818 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Yeah, not really the usually flow.

Either way Reviewed-by: Christian König <christian.koenig-5C7GfCeVMHo@public.gmane.org> for both.

Christian.

Am 15.03.2018 um 17:19 schrieb Andrey Grodzovsky:

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


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