Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.97.179.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796331380; b=wbnJCjjPGTakV9ipabV6uL0IwxOSoD/OFpbdwSwwgUUcHpkx/SJMGBsg/0kBZknJo6Sn VCwLZtJd+sfbM8tEIlXmTaSqFSUoMuwSmn8WjNoCellQgBCfcZHX1a7yp70ER0isBQjpt Or2QIn0LAt/Y+9nhMvke6ZSKetojAFiHfieuXWMSZmu1zXT4wxppGyw5cTiaAQqnGDTdx nB5ECJtTPzLMIhvmUJQIzPuKODL7skz01bqQkLX89vCN4X7obd1uuaRJPcZdk7s4k3wQU Meezc1v8+IoH2VjSo7ddZSkUyvk9cx79mjWfbfxu4yX/9/50sIJ6c5MEkAn+LZA18WQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796331380; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=eQneJVFAo44tEnUAY6EDB5QtYM3a7VAwWKk6WSjCCJI=; b=JlEqQDChnNWxUrdbnuvNY924Npnv5cEnQ/XGrPEO7r6wXhg5C8Qqfl0ew9V4vGwVcuGP CMvHzIzp59zVsgL+DtQRY+aI2jqEx75K5MAtlc5ybnkuT25dGck+sV+b4Tvc7bGj89e2R vWeIJKpZv003tesJyhcHs31ESYb6xL9hjDh+n/orordYOKrDsqGCcicJQzAo/TfO3pK1j fIa2emW5hRSf44waKs6DYMKRLchSwtHlXBPUwQfa/Ree/KS9sm1LON7DVrM/av2r1hWS5 SOdEQ1gKFW3hh1/q9egqUgbFSKpLrHP7Waq2fF1VUG9goz/D/cyzVs+bKW2NsCPYlsw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass header.d=igalia.com header.i=@igalia.com header.a=rsa-sha256 header.s=20170329 header.b=nJ6lNQMM; arc=none smtp.remote-ip=213.97.179.56 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A072606A332 for ; Thu, 3 Dec 2026 20:56:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2A072606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=igalia.com header.i=@igalia.com header.a=rsa-sha256 header.s=20170329 header.b=nJ6lNQMM DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:From:Reply-To; bh=eQneJVFAo44tEnUAY6EDB5QtYM3a7VAwWKk6WSjCCJI=; t=1796331378; x=2111691378; b=nJ6lNQMMB0tNSBNqCc2r9j0lplgkNVnHGHDdS1NY99KAVd1 xp2j4m9B+/yIhX8sFykCtdTr8cigs91YawAlP4pcpb0DHwvQYwurt3zRpm/RgG8++MoszNPthdxNU MxfZ8Oixp7HWwe3Awi910muAWNtk0aC6KQ9rZhbTO8Pq2EJ9YBn9UvoCI1PjkYunLhZHGxGUXNute dOZR1xjG0tgJyZZKVAfVIKH6wBndhojt5PgOk+kYmegWNTlxEwSAtrFVv9qv+hrQ2ciaKFWCMNgJi va+4qSnx7UqM5TWdOcAQZkht529mXoUqhJDCvFriFkf9lvxYHn70QxNJ3Q+oPiBg==; Received: from 179-125-72-1-dinamico.pombonet.net.br ([179.125.72.1] helo=quatroqueijos.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) (envelope-from ) id 1xZDqh-00000001oRb-0G3N; Thu, 03 Dec 2026 21:56:15 +0100 From: Thadeu Lima de Souza Cascardo To: amd-gfx@lists.freedesktop.org Cc: linux-doc@vger.kernel.org, Jonathan Corbet , Shuah Khan , Randy Dunlap , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Thadeu Lima de Souza Cascardo Subject: [PATCH] drm/amdgpu: fix documentation about amdgpu.vm_update_mode parameter Date: Thu, 3 Dec 2026 17:55:59 -0300 Message-ID: <20261203205559.1035916-1-cascardo@igalia.com> X-Mailer: git-send-email 2.47.3 X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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