From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EE47606A683 for ; Wed, 2 Dec 2026 05:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eEye3Vlk Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E03F910E4D1; Wed, 2 Dec 2026 05:43:26 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7678610E4D1 for ; Wed, 2 Dec 2026 05:43:21 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 5BB266125D; Wed, 2 Dec 2026 05:43:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBF201F000C1; Wed, 2 Dec 2026 05:43:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796190199; bh=xpOodeeoAs+IRx20tX0kGyDTmLXn/H4uVThjaD9r+68=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=eEye3Vlk96bThgRb8f3/HvPY0ZmLZsMTHjD4U1DMlgR71/QkPsedqtZcwLoa0FnjW pxfGF77/UTUI/mngtGdvHULJoguS36T59qlnL5kH+SDhCd2xlm6sIQ8IoqAua74+F6 LvpLho/hIvkejKCOzTKor4oKm+TK9dIttJh0RNZLXjGJbVE81vi7jeBtWXzzjNpMWJ 0lUk6ycY2bYdZHknHDnBn15gMM6lVF//1ni9je4/NvBpnBW3pgnInCKVe6UoUL9QuI GWojrupshCP/4Ko/mcdDRg13Wukmhf9EM5yA2eoq3/JNgrTNH3Grpxk7Gqu7DGZLZO L7O89ZDldTU+A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 01/19] drm/nouveau/fault: Widen engine field To: "Mikko Perttunen" Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261202-nouveau-gv11b-v1-1-758af3553ef6@nvidia.com> References: <20261202-nouveau-gv11b-v1-0-758af3553ef6@nvidia.com> <20261202-nouveau-gv11b-v1-1-758af3553ef6@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 05:43:19 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 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 =3D ((u64)addrhi << 32) | addrlo; > info.inst =3D ((u64)insthi << 32) | instlo; > info.time =3D ((u64)timehi << 32) | timelo; > - info.engine =3D (info0 & 0x000000ff); > + info.engine =3D (info0 & 0x000001ff); > info.valid =3D (info1 & 0x80000000) >> 31; > info.gpc =3D (info1 & 0x1f000000) >> 24; > info.hub =3D (info1 & 0x00100000) >> 20; > @@ -140,7 +140,7 @@ gv100_fault_intr_fault(struct nvkm_fault *fault) > info.addr =3D ((u64)addrhi << 32) | addrlo; > info.inst =3D ((u64)insthi << 32) | (info0 & 0xfffff000); > info.time =3D 0; > - info.engine =3D (info0 & 0x000000ff); > + info.engine =3D (info0 & 0x000001ff); > info.valid =3D (info1 & 0x80000000) >> 31; > info.gpc =3D (info1 & 0x1f000000) >> 24; > info.hub =3D (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_engin= e[] { ... { 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-nouveau-gv= 11b-v1-0-758af3553ef6@nvidia.com?part=3D1