Skip to contentSkip to conversation

drm/amdgpu: Fix typos in amdgpu_vm_bo_update comments

PATCH In review Ding Yihan 2 participants 2 messages Dec 23, 2025 – Jan 7

Subsystems (2)
lore
Share & tools
lore

Ding Yihan

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Fix typos in amdgpu_vm_bo_update comments

Fix spelling mistakes in the comment block within amdgpu_vm_bo_update(). Specifically, correct "contians" to "contains" and "WIRTEABLE" to "WRITEABLE".

Additionally, improve the grammar, capitalization, and punctuation of the comment for better readability.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2 -2
index c362d4dfb5bb..502d32728008 100644
@@ -1352,8 +1352,8 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va,
 	list_for_each_entry(mapping, &bo_va->invalids, list) {
 		uint64_t update_flags = flags;
 
-		/* normally,bo_va->flags only contians READABLE and WIRTEABLE bit go here
-		 * but in case of something, we filter the flags in first place
+		/* Normally,bo_va->flags only contains READABLE and WRITEABLE bits here.
+		 * But in case of something, we filter the flags in first place.
 		 */
 		if (!(mapping->flags & AMDGPU_VM_PAGE_READABLE))
 			update_flags &= ~AMDGPU_PTE_READABLE;
Signature · 1 line
2.20.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Ding Yihan

Fix spelling mistakes in the comment block within amdgpu_vm_bo_update(). Specifically, correct "contians" to "contains" and "WIRTEABLE" to "WRITEABLE".

Additionally, improve the grammar, capitalization, and punctuation of the comment for better readability.

Quoted 19 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +2 -2
index c362d4dfb5bb..502d32728008 100644
@@ -1352,8 +1352,8 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va,
 	list_for_each_entry(mapping, &bo_va->invalids, list) {
 		uint64_t update_flags = flags;
 
-		/* normally,bo_va->flags only contians READABLE and WIRTEABLE bit go here
-		 * but in case of something, we filter the flags in first place
+		/* Normally,bo_va->flags only contains READABLE and WRITEABLE bits here.
+		 * But in case of something, we filter the flags in first place.
 		 */
 		if (!(mapping->flags & AMDGPU_VM_PAGE_READABLE))
 			update_flags &= ~AMDGPU_PTE_READABLE;