All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: Fix comments in source code
@ 2017-05-09  1:26 Alex Xie
       [not found] ` <1494293189-5912-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Xie @ 2017-05-09  1:26 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Xie

Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 2704f88..480f3cd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -479,7 +479,7 @@ void amdgpu_doorbell_get_kfd_info(struct amdgpu_device *adev,
 
 /*
  * amdgpu_wb_*()
- * Writeback is the method by which GPU updates special pages in memory
+ * Writeback is the method by which the GPU updates special pages in memory
  * with the status of certain GPU events (fences, ring pointers,etc.).
  */
 
@@ -506,7 +506,7 @@ static void amdgpu_wb_fini(struct amdgpu_device *adev)
  *
  * @adev: amdgpu_device pointer
  *
- * Initialize writeback and allocates writeback memory (all asics).
+ * Initializes writeback and allocates writeback memory (all asics).
  * Used at driver startup.
  * Returns 0 on success or an -error on failure.
  */
@@ -614,7 +614,7 @@ void amdgpu_wb_free_64bit(struct amdgpu_device *adev, u32 wb)
  * @mc: memory controller structure holding memory informations
  * @base: base address at which to put VRAM
  *
- * Function will place try to place VRAM at base address provided
+ * Function will try to place VRAM at base address provided
  * as parameter (which is so far either PCI aperture address or
  * for IGP TOM base address).
  *
@@ -636,7 +636,7 @@ void amdgpu_wb_free_64bit(struct amdgpu_device *adev, u32 wb)
  * ones)
  *
  * Note: IGP TOM addr should be the same as the aperture addr, we don't
- * explicitly check for that thought.
+ * explicitly check for that though.
  *
  * FIXME: when reducing VRAM size align new size on power of 2.
  */
-- 
2.7.4

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/amdgpu: Fix comments in source code
       [not found] ` <1494293189-5912-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>
@ 2017-05-09  1:33   ` Michel Dänzer
  2017-05-09  9:39   ` Christian König
  1 sibling, 0 replies; 3+ messages in thread
From: Michel Dänzer @ 2017-05-09  1:33 UTC (permalink / raw)
  To: Alex Xie; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 09/05/17 10:26 AM, Alex Xie wrote:
> Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 2704f88..480f3cd 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -479,7 +479,7 @@ void amdgpu_doorbell_get_kfd_info(struct amdgpu_device *adev,
>  
>  /*
>   * amdgpu_wb_*()
> - * Writeback is the method by which GPU updates special pages in memory
> + * Writeback is the method by which the GPU updates special pages in memory
>   * with the status of certain GPU events (fences, ring pointers,etc.).
>   */
>  
> @@ -506,7 +506,7 @@ static void amdgpu_wb_fini(struct amdgpu_device *adev)
>   *
>   * @adev: amdgpu_device pointer
>   *
> - * Initialize writeback and allocates writeback memory (all asics).
> + * Initializes writeback and allocates writeback memory (all asics).
>   * Used at driver startup.
>   * Returns 0 on success or an -error on failure.
>   */
> @@ -614,7 +614,7 @@ void amdgpu_wb_free_64bit(struct amdgpu_device *adev, u32 wb)
>   * @mc: memory controller structure holding memory informations
>   * @base: base address at which to put VRAM
>   *
> - * Function will place try to place VRAM at base address provided
> + * Function will try to place VRAM at base address provided
>   * as parameter (which is so far either PCI aperture address or
>   * for IGP TOM base address).
>   *
> @@ -636,7 +636,7 @@ void amdgpu_wb_free_64bit(struct amdgpu_device *adev, u32 wb)
>   * ones)
>   *
>   * Note: IGP TOM addr should be the same as the aperture addr, we don't
> - * explicitly check for that thought.
> + * explicitly check for that though.
>   *
>   * FIXME: when reducing VRAM size align new size on power of 2.
>   */
> 

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/amdgpu: Fix comments in source code
       [not found] ` <1494293189-5912-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>
  2017-05-09  1:33   ` Michel Dänzer
@ 2017-05-09  9:39   ` Christian König
  1 sibling, 0 replies; 3+ messages in thread
From: Christian König @ 2017-05-09  9:39 UTC (permalink / raw)
  To: Alex Xie, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Am 09.05.2017 um 03:26 schrieb Alex Xie:
> Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 2704f88..480f3cd 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -479,7 +479,7 @@ void amdgpu_doorbell_get_kfd_info(struct amdgpu_device *adev,
>   
>   /*
>    * amdgpu_wb_*()
> - * Writeback is the method by which GPU updates special pages in memory
> + * Writeback is the method by which the GPU updates special pages in memory
>    * with the status of certain GPU events (fences, ring pointers,etc.).
>    */

Actually that comment as well as the name "writeback" is a bit outdated.

IIRC we also use the 32bit and 64bit addresses allocated with 
amdgpu_wb_get for the wptr polling addresses.

In other words the GPU polls from the address and the CPU writes to them.

I wouldn't change the name, but noting that in the comment might be a 
good idea.

Anyway the patch is Reviewed-by: Christian König <christian.koenig@amd.com>.

Regards,
Christian.

>   
> @@ -506,7 +506,7 @@ static void amdgpu_wb_fini(struct amdgpu_device *adev)
>    *
>    * @adev: amdgpu_device pointer
>    *
> - * Initialize writeback and allocates writeback memory (all asics).
> + * Initializes writeback and allocates writeback memory (all asics).
>    * Used at driver startup.
>    * Returns 0 on success or an -error on failure.
>    */
> @@ -614,7 +614,7 @@ void amdgpu_wb_free_64bit(struct amdgpu_device *adev, u32 wb)
>    * @mc: memory controller structure holding memory informations
>    * @base: base address at which to put VRAM
>    *
> - * Function will place try to place VRAM at base address provided
> + * Function will try to place VRAM at base address provided
>    * as parameter (which is so far either PCI aperture address or
>    * for IGP TOM base address).
>    *
> @@ -636,7 +636,7 @@ void amdgpu_wb_free_64bit(struct amdgpu_device *adev, u32 wb)
>    * ones)
>    *
>    * Note: IGP TOM addr should be the same as the aperture addr, we don't
> - * explicitly check for that thought.
> + * explicitly check for that though.
>    *
>    * FIXME: when reducing VRAM size align new size on power of 2.
>    */


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-09  9:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-09  1:26 [PATCH] drm/amdgpu: Fix comments in source code Alex Xie
     [not found] ` <1494293189-5912-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>
2017-05-09  1:33   ` Michel Dänzer
2017-05-09  9:39   ` Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.