Linux Documentation
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>,
	amd-gfx@lists.freedesktop.org
Cc: linux-doc@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Randy Dunlap <rdunlap@infradead.org>,
	Alex Deucher <alexander.deucher@amd.com>
Subject: Re: [PATCH] drm/amdgpu: fix documentation about amdgpu.vm_update_mode parameter
Date: Fri, 4 Dec 2026 10:48:15 +0100	[thread overview]
Message-ID: <9886f457-3db8-401f-984e-108da91817b1@amd.com> (raw)
In-Reply-To: <20261203205559.1035916-1-cascardo@igalia.com>

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


      reply	other threads:[~2026-12-04  9:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9886f457-3db8-401f-984e-108da91817b1@amd.com \
    --to=christian.koenig@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=cascardo@igalia.com \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox