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 72E35606A338 for ; Wed, 2 Dec 2026 12:08: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=mQJNkqKd Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 38DB9112196; Wed, 2 Dec 2026 12:08:27 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1CCF411219A for ; Wed, 2 Dec 2026 12:08: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 66BFF627BE; Wed, 2 Dec 2026 12:08:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE9551F00897; Wed, 2 Dec 2026 12:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796213299; bh=Lv7oNWqe6PKGSlpahUMDMNMbzIyFBDCXqzk+3snLAyo=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=mQJNkqKdzW9stgDdjbGW7cDu/idE8AhrFMj3/7NwgRp/3Xe0Sy/1rWAZF6a9UIBQr 26AUsJTmtJcv2EUVM6lp3v6uWiqPXF+wMaELkAR+eh5UV+jfEuGS+8l3Ai3B4JS6xV 7BUrmjGhQlFPDxAsN1oiMi26umVMqcyVqhpP2cxqtPsNGDJOsREOo8xcmFASYDcoIe Xg5EGqLVjPvNAGX2SXw4BEchl/iux9CV5etW1Ivk8vSgPiLE8BW1OllkKd8uogNvmy jN5DaN2x5iBcMIpTIk+ggfS5fEwz/+oBS4X8mStVtl4CAsuTycA7f5JkyRrRRJTz5r 8KIaWjHmMyoTA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors To: "Mallesh Koujalagi" , intel-xe@lists.freedesktop.org In-Reply-To: <20261202115714.2320298-9-mallesh.koujalagi@intel.com> References: <20261202115714.2320298-6-mallesh.koujalagi@intel.com> <20261202115714.2320298-9-mallesh.koujalagi@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 12:08:19 +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: call to undeclared xe_ras_get_enable_vram_page_offline() -- commit 5024a6eaa83b6a17a6433f3c9ccc256eddafbd55 Author: Mallesh Koujalagi drm/xe/ras: Skip reports for repeated DB-ECC errors This commit suppresses RAS log messages and error events for repeated DB-ECC errors on VRAM pages that have already been hard-offlined when VRAM page offlining is enabled. > diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c > index a28fa88b4adcb..489fbad0e1691 100644 > --- a/drivers/gpu/drm/xe/xe_ras.c > +++ b/drivers/gpu/drm/xe/xe_ras.c > @@ -398,6 +398,22 @@ static bool ras_counter_is_valid(struct xe_device *x= e, struct xe_ras_error_class > return true; > } > =20 > +/* Check for a repeated DB-ECC error on an already hard-offlined page */ > +static bool is_recurrent_db_ecc(struct xe_device *xe, struct xe_ras_erro= r_array *arr) > +{ > + struct xe_ras_memory_error *info =3D (void *)arr->details; > + > + if (arr->counter.common.component !=3D XE_RAS_COMP_DEVICE_MEMORY || > + info->category !=3D XE_RAS_MEMORY_DB_ECC) > + return false; > + > + /* Report all errors when page offlining is disabled */ > + if (!xe_ras_get_enable_vram_page_offline(xe)) > + return false; [Severity: High] Should this call xe_ras_get_disable_vram_page_offline(xe) (without logical negation) instead? xe_ras_get_enable_vram_page_offline() is not defined in the tree, causing the build to fail when CONFIG_DRM_XE is enabled. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202115714.2320= 298-6-mallesh.koujalagi@intel.com?part=3D3