Linux Documentation
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: fix documentation about amdgpu.vm_update_mode parameter
@ 2026-12-03 20:55 Thadeu Lima de Souza Cascardo
  2026-12-04  9:48 ` Christian König
  0 siblings, 1 reply; 2+ messages in thread
From: Thadeu Lima de Souza Cascardo @ 2026-12-03 20:55 UTC (permalink / raw)
  To: amd-gfx
  Cc: linux-doc, Jonathan Corbet, Shuah Khan, Randy Dunlap,
	Alex Deucher, Christian König, 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")
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
---
 Documentation/gpu/amdgpu/debugging.rst | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/Documentation/gpu/amdgpu/debugging.rst b/Documentation/gpu/amdgpu/debugging.rst
index ac914d524741..5e742ec38376 100644
--- a/Documentation/gpu/amdgpu/debugging.rst
+++ b/Documentation/gpu/amdgpu/debugging.rst
@@ -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
-- 
2.47.3


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

* Re: [PATCH] drm/amdgpu: fix documentation about amdgpu.vm_update_mode parameter
  2026-12-03 20:55 [PATCH] drm/amdgpu: fix documentation about amdgpu.vm_update_mode parameter Thadeu Lima de Souza Cascardo
@ 2026-12-04  9:48 ` Christian König
  0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2026-12-04  9:48 UTC (permalink / raw)
  To: Thadeu Lima de Souza Cascardo, amd-gfx
  Cc: linux-doc, Jonathan Corbet, Shuah Khan, Randy Dunlap,
	Alex Deucher

On 12/3/26 21:55, Thadeu Lima de Souza Cascardo wrote:
> 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")
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
> ---
>  Documentation/gpu/amdgpu/debugging.rst | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/gpu/amdgpu/debugging.rst b/Documentation/gpu/amdgpu/debugging.rst
> index ac914d524741..5e742ec38376 100644
> --- a/Documentation/gpu/amdgpu/debugging.rst
> +++ b/Documentation/gpu/amdgpu/debugging.rst
> @@ -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.

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.

>  
>  
>  Decoding a GPUVM Page Fault


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

end of thread, other threads:[~2026-12-04  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 20:55 [PATCH] drm/amdgpu: fix documentation about amdgpu.vm_update_mode parameter Thadeu Lima de Souza Cascardo
2026-12-04  9:48 ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox