Skip to contentSkip to conversation

drm/amdgpu: Fix the kerneldoc description

PATCH In review Rajneesh Bhardwaj 2 participants 2 messages Nov 5, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Fix the kerneldoc description

amdgpu_ttm_tt_set_userptr() is also called by the KFD as part it initializing the user pages for userptr BOs and also while initializing the GPUVM for a KFD process so update the function description.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +3 -2
index ada57a37a020..bcad26a3b009 100644
@@ -1409,8 +1409,9 @@ int amdgpu_ttm_tt_get_userptr(const struct ttm_buffer_object *tbo,
  * @addr:  The address in the current tasks VM space to use
  * @flags: Requirements of userptr object.
  *
- * Called by amdgpu_gem_userptr_ioctl() to bind userptr pages
- * to current task
+ * Called by amdgpu_gem_userptr_ioctl() and kfd_ioctl_alloc_memory_of_gpu() to
+ * bind userptr pages to current task and by kfd_ioctl_acquire_vm() to
+ * initialize GPU VM for a KFD process.
  */
 int amdgpu_ttm_tt_set_userptr(struct ttm_buffer_object *bo,
 			      uint64_t addr, uint32_t flags)
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

Am 2022-11-05 um 17:46 schrieb Rajneesh Bhardwaj:

Quoted 5 lines

amdgpu_ttm_tt_set_userptr() is also called by the KFD as part it initializing the user pages for userptr BOs and also while initializing the GPUVM for a KFD process so update the function description.

Quoted 20 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +3 -2
index ada57a37a020..bcad26a3b009 100644
@@ -1409,8 +1409,9 @@ int amdgpu_ttm_tt_get_userptr(const struct ttm_buffer_object *tbo,
   * @addr:  The address in the current tasks VM space to use
   * @flags: Requirements of userptr object.
   *
- * Called by amdgpu_gem_userptr_ioctl() to bind userptr pages
- * to current task
+ * Called by amdgpu_gem_userptr_ioctl() and kfd_ioctl_alloc_memory_of_gpu() to
+ * bind userptr pages to current task and by kfd_ioctl_acquire_vm() to
+ * initialize GPU VM for a KFD process.
   */
  int amdgpu_ttm_tt_set_userptr(struct ttm_buffer_object *bo,
  			      uint64_t addr, uint32_t flags)