From: "Danilo Krummrich" <dakr@kernel.org>
To: "Frédéric Mahé" <frederic.mahe@cirad.fr>
Cc: <nouveau@lists.freedesktop.org>,
<dri-devel@lists.freedesktop.org>,
"Lyude Paul" <lyude@redhat.com>, <stable@vger.kernel.org>
Subject: Re: [PATCH v2] drm/nouveau/fifo/gf100-: reset the faulting engine even if it switched channels
Date: Sat, 05 Dec 2026 23:53:00 +0100 [thread overview]
Message-ID: <DND62B27W9NO.1M2Q9ZJY393GP@kernel.org> (raw)
In-Reply-To: <20261127113005.981725-1-frederic.mahe@cirad.fr>
On Fri Nov 27, 2026 at 12:30 PM CET, Frédéric Mahé wrote:
> When an engine reports an MMU fault, recovery flags the faulting
> channel group and nvkm_runl_rc() resets only the engines whose current
> context (cxid) belongs to a flagged group. On Fermi the fault can be
> reported after GR has started switching to another channel: the engine
> status then reads e.g. 0x01140003 (not busy, chid 3) while channel 4
> faulted, so GR is not reset, stays stalled on the fault, and the
> runlist update never completes:
>
> fifo: fault 01 [WRITE] at 0 engine 00 [PGRAPH] client 0f [GPC0/PROP] reason 02 [PAGE_NOT_PRESENT] on channel 4
> object-namespac[1768]: channel 4 killed!
> fifo:000000:00[ gr]: 01140003: busy 0 save 1 unk0 0 unk1 0 chid 3
> fifo:000000:00[ gr]: cxid not valid
> WARNING: drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c:228 at nv50_runl_wait+0xe8/0x100 [nouveau]
> fifo: SCHED_ERROR 0d []
> WARNING: drivers/gpu/drm/nouveau/nvkm/engine/fifo/runl.c:251 at nvkm_runl_preempt_wait+0xf7/0x110 [nouveau]
>
> After that no channel makes progress: the whole GPU is dead until a
> reboot, and processes using it hang in D state.
>
> Record in the channel group which engines reported a fault for it. The
> recovery pass that takes the group from pending to running collects
> that mask, and resets those engines regardless of what their status
> says. Resetting GR may discard the context being switched in, but that
> is far better than losing the GPU.
I think this was already the case before commit 4d60100a23ec ("drm/nouveau/fifo:
add common channel recovery"), but now this would also affect Kepler GPUs,
right?
> Faults reported for a group whose recovery is already running are
> recorded but never acted on: as before, such a group is not recovered
> again, and keeping the mask with the group means a later recovery of
> another group cannot reset an engine on its behalf.
>
> Tested on a Quadro 600 (GF108): a program that faults (piglit
> "object-namespace-pollution glClearTexSubImage texture") while three
> other processes keep GR busy hangs the GPU within one to three faults
> without this patch. With it, 20 of 20 faults recovered (17 of them hit
> the state above), with no runlist timeouts, and the GPU kept working.
> On an NVS 315 (GF119) the same test hangs the GPU at the first fault
> without this patch; with it, 20 of 20 rounds completed, every fault was
> recovered, and the GPU kept working.
>
> Written with help from Claude (Anthropic); reviewed and tested on hardware.
This shouldn't be part of the commit message, please move it below the '---'
separator.
Thanks,
Danilo
prev parent reply other threads:[~2026-12-05 22:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 11:30 [PATCH v2] drm/nouveau/fifo/gf100-: reset the faulting engine even if it switched channels Frédéric Mahé
2026-12-05 22:53 ` Danilo Krummrich [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=DND62B27W9NO.1M2Q9ZJY393GP@kernel.org \
--to=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=frederic.mahe@cirad.fr \
--cc=lyude@redhat.com \
--cc=nouveau@lists.freedesktop.org \
--cc=stable@vger.kernel.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