Skip to contentSkip to conversation

drm/amdgpu: fix documentation about amdgpu.vm_update_mode parameter

PATCH In review Thadeu Lima de Souza Cascardo 2 participants 2 messages Dec 3 – Dec 4

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

PATCH 1/1 drm/amdgpu: fix documentation about amdgpu.vm_update_mode parameter

The documentation implied that any non-zero value would make the VM use the CPU for updates, which is not correct.

Fixes 23808afc61a8f ("Documentation: add a page on amdgpu debugging")
---
 Documentation/gpu/amdgpu/debugging.rst | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Documentation/gpu/amdgpu/debugging.rst +9 -2
index ac914d524741..5e742ec38376 100644
@@ -17,8 +17,15 @@ number of options module parameters:
 
 `vm_fault_stop` - If non-0, halt the GPU memory controller on a GPU page fault.
 
-`vm_update_mode` - If non-0, use the CPU to update GPU page tables rather than
-the GPU.
+`vm_update_mode` - Use the CPU to update GPU page tables rather than the GPU.
+Valid values are:
+
+- -1 (the default): on large BAR systems, use CPU to update GPU page tables
+  for Compute only, otherwise never.
+- 0: never use CPU to update GPU page tables.
+- 1: use CPU to update GPU page tables for Graphics only.
+- 2: use CPU to update GPU page tables for Compute only.
+- 3: use CPU to update GPU page tables for both Graphics and Compute.
 
 
 Decoding a GPUVM Page Fault
Signature · 1 line
2.47.3
maintainer
#1 lore raw
Quoted 18 lines · Thadeu Lima de Souza Cascardo

The documentation implied that any non-zero value would make the VM use the CPU for updates, which is not correct.

Fixes 23808afc61a8f ("Documentation: add a page on amdgpu debugging")
---
 Documentation/gpu/amdgpu/debugging.rst | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Documentation/gpu/amdgpu/debugging.rst +0 -1
index ac914d524741..5e742ec38376 100644
@@ -17,8 +17,15 @@ number of options module parameters:
 
 `vm_fault_stop` - If non-0, halt the GPU memory controller on a GPU page fault.
 
-`vm_update_mode` - If non-0, use the CPU to update GPU page tables rather than

Documentation/gpu/amdgpu/debugging.rst number of options module parameters: · line 28

Quoted 10 lines
Documentation/gpu/amdgpu/debugging.rst +9 -1
-the GPU.
+`vm_update_mode` - Use the CPU to update GPU page tables rather than the GPU.
+Valid values are:
+
+- -1 (the default): on large BAR systems, use CPU to update GPU page tables
+  for Compute only, otherwise never.
+- 0: never use CPU to update GPU page tables.
+- 1: use CPU to update GPU page tables for Graphics only.
+- 2: use CPU to update GPU page tables for Compute only.
+- 3: use CPU to update GPU page tables for both Graphics and Compute.

We should probably add a warning that CPU based updates should only be used for testing and are not validated on almost all HW.

AMD should probably re-consider using it for the few compute use cases were it was added for, the whole concept of the KFD is about to be deprecated.

Regards,
Christian.

Quoted 3 lines
Documentation/gpu/amdgpu/debugging.rst +0 -0
 Decoding a GPUVM Page Fault