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 28E06606A333 for ; Wed, 2 Dec 2026 12:06:30 +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=O+JJyxV3 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E3808112189; Wed, 2 Dec 2026 12:06:24 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id D0C0D112182 for ; Wed, 2 Dec 2026 12:06:17 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 15614627B0; Wed, 2 Dec 2026 12:06:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB5091F0089F; Wed, 2 Dec 2026 12:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796213176; bh=FKvpgFNO5V+kO6FV8SxovwErXx3zgo2WA7FASt6PHAA=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=O+JJyxV3Dgyw6Av0IvapsdNvBtxVINiOCp755DHBv7a1ikMbzn6XPTQBBkg4bu0bn 8tN4Dx/CZ2tjR8cjaRsiuOew3/BO98/heHbnZuPGeH7suqqXH+Mh+5Z4qt+YLt+7SR OG4n7ARV8ZeHtu5t1MI0mQNRSyTlk0y/Wz6y2+80XtGT4aAtowaqllRasRd5PNl4xV q94gD+/Jf7m4Z/3/bES4drA1rEgvE0n8Cl5xpjfrl5y5l8EOUhrjI9HSGZiWrnEtI3 7PirTfWYspOOdSrR2BakwPbWwCEhghV+JsbCAspjSw9MqiNDcGhW3hF2haPHJvFaAS K+pyYoS/5SV/A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v1 4/4] drm/xe/ras: Avoid duplicate logging for recurrent DB-ECC errors To: "Mallesh Koujalagi" , intel-xe@lists.freedesktop.org In-Reply-To: <20261202115714.2320298-10-mallesh.koujalagi@intel.com> References: <20261202115714.2320298-6-mallesh.koujalagi@intel.com> <20261202115714.2320298-10-mallesh.koujalagi@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 12:06:16 +0000 X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-xe" 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: - [High] drm/xe/ras: build failure in is_recurrent_db_ecc() from undeclared helper -- commit bff484684f994dd8c126d64f6bfebf7733817368 Author: Mallesh Koujalagi drm/xe/ras: Avoid duplicate logging for recurrent DB-ECC errors This commit suppresses duplicate log messages and CPER record emissions for repeated double-bit ECC errors on already hard-offlined pages when handle_page_offline() succeeds. > diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c > index 489fbad0e1691..1493bc8e95275 100644 > --- a/drivers/gpu/drm/xe/xe_ras.c > +++ b/drivers/gpu/drm/xe/xe_ras.c > @@ -655,6 +655,7 @@ static u8 handle_device_memory_errors(struct xe_devic= e *xe, struct xe_ras_error_ > { > struct xe_ras_memory_error *info =3D (void *)arr->details; > u8 cper_sev =3D ras_sev_to_cper_sev(arr->counter.common.severity); > + bool recurrent; > int ret; > =20 > /* > @@ -691,11 +692,13 @@ static u8 handle_device_memory_errors(struct xe_dev= ice *xe, struct xe_ras_error_ > break; > } > =20 > + recurrent =3D is_recurrent_db_ecc(xe, arr); [Severity: High] Does is_recurrent_db_ecc() fail to compile because it calls the undeclared function xe_ras_get_enable_vram_page_offline()? drivers/gpu/drm/xe/xe_ras.c:is_recurrent_db_ecc() { ... /* Report all errors when page offlining is disabled */ if (!xe_ras_get_enable_vram_page_offline(xe)) return false; return page_is_hard_offlined(xe, info->sw_address); } The policy helper defined in drivers/gpu/drm/xe/xe_ras.c and used by handle_page_offline() is xe_ras_get_disable_vram_page_offline(xe), so is_recurrent_db_ecc() should check if (xe_ras_get_disable_vram_page_offline(xe)) instead. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202115714.2320= 298-6-mallesh.koujalagi@intel.com?part=3D4