From: sashiko-bot@kernel.org
To: "Mikko Perttunen" <mperttunen@nvidia.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 01/19] drm/nouveau/fault: Widen engine field
Date: Wed, 02 Dec 2026 05:43:19 +0000 [thread overview]
Message-ID: <sashiko-outbox-244922@kernel.org> (raw)
In-Reply-To: <20261202-nouveau-gv11b-v1-1-758af3553ef6@nvidia.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/nouveau/fault: missing 9-bit engine update in tu102 fault
and fifo paths
--
commit db6fbbacd1ecc5e23e3d429db261eb685b2e5bf0
Author: Thierry Reding <treding@nvidia.com>
drm/nouveau/fault: Widen engine field
This commit widens nvkm_fault_data.engine to 16 bits and updates the GV100
fault handlers to extract a 9-bit engine ID from info0.
Link: https://lists.freedesktop.org/archives/nouveau/2019-September/033796.html
> diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c
> index 8e34d40e7649b..47e34943b77f8 100644
> --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c
> +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c
> @@ -59,7 +59,7 @@ gv100_fault_buffer_process(struct work_struct *work)
> info.addr = ((u64)addrhi << 32) | addrlo;
> info.inst = ((u64)insthi << 32) | instlo;
> info.time = ((u64)timehi << 32) | timelo;
> - info.engine = (info0 & 0x000000ff);
> + info.engine = (info0 & 0x000001ff);
> info.valid = (info1 & 0x80000000) >> 31;
> info.gpc = (info1 & 0x1f000000) >> 24;
> info.hub = (info1 & 0x00100000) >> 20;
> @@ -140,7 +140,7 @@ gv100_fault_intr_fault(struct nvkm_fault *fault)
> info.addr = ((u64)addrhi << 32) | addrlo;
> info.inst = ((u64)insthi << 32) | (info0 & 0xfffff000);
> info.time = 0;
> - info.engine = (info0 & 0x000000ff);
> + info.engine = (info0 & 0x000001ff);
> info.valid = (info1 & 0x80000000) >> 31;
> info.gpc = (info1 & 0x1f000000) >> 24;
> info.hub = (info1 & 0x00100000) >> 20;
[Severity: Medium]
Should tu102_fault_info_fault() and tu102_fifo_mmu_fault_engine[] also be
updated for 9-bit engine IDs?
tu102_fault_new() shares gv100_fault_buffer_process() for non-replayable
fault buffer processing, which now extracts 9-bit engine IDs such as 0x180
(BAR1) and 0x1c0 (BAR2). However, tu102_fifo_mmu_fault_engine[] still lists
the 8-bit truncated values:
drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c:tu102_fifo_mmu_fault_engine[] {
...
{ 0x80, "BAR1", NULL, NVKM_SUBDEV_BAR },
{ 0xc0, "BAR2", NULL, NVKM_SUBDEV_INSTMEM },
{}
};
When a BAR1 or BAR2 fault is processed through gv100_fault_buffer_process()
on TU102+, nvkm_enum_find() in gf100_fifo_mmu_fault_recover() will no longer
match the engine entry and will skip the BAR1/BAR2 reset recovery.
Meanwhile, tu102_fault_info_fault() in
drivers/gpu/drm/nouveau/nvkm/subdev/fault/tu102.c still masks info0 with
0x000000ff.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-nouveau-gv11b-v1-0-758af3553ef6@nvidia.com?part=1
next prev parent reply other threads:[~2026-12-02 5:43 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 5:24 [PATCH 00/19] drm/nouveau: Enable the GV11B GPU on Tegra194 Mikko Perttunen
2026-12-02 5:24 ` [PATCH 01/19] drm/nouveau/fault: Widen engine field Mikko Perttunen
2026-12-02 5:43 ` sashiko-bot [this message]
2026-12-02 5:24 ` [PATCH 02/19] drm/nouveau/fault: Mask off instance aperture bits in GV100 fault-buffer entries Mikko Perttunen
2026-12-02 5:33 ` sashiko-bot
2026-12-02 5:24 ` [PATCH 03/19] drm/nouveau: Add helpers for getting memory target's aperture Mikko Perttunen
2026-12-02 5:24 ` [PATCH 04/19] drm/nouveau: Program aperture field where necessary Mikko Perttunen
2026-12-02 5:24 ` [PATCH 05/19] drm/nouveau: Supply aperture to FECS context methods Mikko Perttunen
2026-12-02 5:24 ` [PATCH 06/19] drm/nouveau/mmu: Set cpu_coherent flag at runtime for Tegra Mikko Perttunen
2026-12-02 5:47 ` sashiko-bot
2026-12-02 5:24 ` [PATCH 07/19] drm/nouveau/instmem: Use the coherent aperture for DMA-coherent Tegra allocations Mikko Perttunen
2026-12-02 5:24 ` [PATCH 08/19] drm/nouveau: Use coherent firmware mappings on coherent Tegra devices Mikko Perttunen
2026-12-02 5:24 ` [PATCH 09/19] drm/nouveau/fifo: Allow coherent host pages for USERD Mikko Perttunen
2026-12-02 5:24 ` [PATCH 10/19] drm/nouveau: Allocate Volta USERD in host memory on VRAM-less GPUs Mikko Perttunen
2026-12-02 5:24 ` [PATCH 11/19] drm/nouveau/bar: Add a GPU-only BAR2 address space for GV11B Mikko Perttunen
2026-12-02 5:24 ` [PATCH 12/19] drm/nouveau/fifo: Map Volta copy-engine method buffers in GPU-only BAR2 Mikko Perttunen
2026-12-02 5:24 ` [PATCH 13/19] drm/nouveau/fault: Support physical addresses for GV100 fault buffers Mikko Perttunen
2026-12-02 5:24 ` [PATCH 14/19] drm/nouveau: Add GV11B chipset/MMU/devfreq configuration data Mikko Perttunen
2026-12-02 5:24 ` [PATCH 15/19] drm/nouveau: Add ACR loader and PMU firmware boot on GV11B Mikko Perttunen
2026-12-02 5:24 ` [PATCH 16/19] drm/nouveau/gr: Wait for FECS watchdog timeout init completion Mikko Perttunen
2026-12-02 5:24 ` [PATCH 17/19] drm/nouveau: Add GR firmware and context support for GV11B Mikko Perttunen
2026-12-02 5:24 ` [PATCH 18/19] drm/nouveau/tegra: Separate DMA mask width from the IOMMU address bit Mikko Perttunen
2026-12-02 5:24 ` [PATCH 19/19] drm/nouveau/tegra: Add device tree compatible for GV11B Mikko Perttunen
2026-12-02 5:51 ` sashiko-bot
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=sashiko-outbox-244922@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=mperttunen@nvidia.com \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.