Skip to content

Commit 6333a49

Browse files
yifancomalexdeucher
authored andcommitted
drm/amdgpu: correct comments in memory type managers
The parameters were renamed. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent cc947bf commit 6333a49

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ bool amdgpu_gtt_mgr_has_gart_addr(struct ttm_resource *res)
118118
* @man: TTM memory type manager
119119
* @tbo: TTM BO we need this range for
120120
* @place: placement flags and restrictions
121-
* @mem: the resulting mem object
121+
* @res: the resulting mem object
122122
*
123123
* Dummy, allocate the node but no space for it yet.
124124
*/
@@ -182,7 +182,7 @@ static int amdgpu_gtt_mgr_new(struct ttm_resource_manager *man,
182182
* amdgpu_gtt_mgr_del - free ranges
183183
*
184184
* @man: TTM memory type manager
185-
* @mem: TTM memory object
185+
* @res: TTM memory object
186186
*
187187
* Free the allocated GTT again.
188188
*/

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ static void amdgpu_vram_mgr_virt_start(struct ttm_resource *mem,
361361
* @man: TTM memory type manager
362362
* @tbo: TTM BO we need this range for
363363
* @place: placement flags and restrictions
364-
* @mem: the resulting mem object
364+
* @res: the resulting mem object
365365
*
366366
* Allocate VRAM for the given BO.
367367
*/
@@ -487,7 +487,7 @@ static int amdgpu_vram_mgr_new(struct ttm_resource_manager *man,
487487
* amdgpu_vram_mgr_del - free ranges
488488
*
489489
* @man: TTM memory type manager
490-
* @mem: TTM memory object
490+
* @res: TTM memory object
491491
*
492492
* Free the allocated VRAM again.
493493
*/
@@ -522,7 +522,7 @@ static void amdgpu_vram_mgr_del(struct ttm_resource_manager *man,
522522
* amdgpu_vram_mgr_alloc_sgt - allocate and fill a sg table
523523
*
524524
* @adev: amdgpu device pointer
525-
* @mem: TTM memory object
525+
* @res: TTM memory object
526526
* @offset: byte offset from the base of VRAM BO
527527
* @length: number of bytes to export in sg_table
528528
* @dev: the other device

0 commit comments

Comments
 (0)