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 5AD60606A681 for ; Fri, 4 Dec 2026 14:58:12 +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=W655XekF Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1B742113006; Fri, 4 Dec 2026 14:58:07 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id EB390113006 for ; Fri, 4 Dec 2026 14:58:00 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 14602611A6; Fri, 4 Dec 2026 14:58:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC25E1F000CE; Fri, 4 Dec 2026 14:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796396279; bh=mKIZDpyRitjeKe60idGZO7p4snJs3f5PfZlnKalPrTI=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=W655XekFqp6fK1W/PTqkH5MMerFxd82Dq2Ce96qpfWOs9+psL8QKwYSBHylsJPYlJ KeGODzK/6p8SHxpzJ4Zf9XgdVTST5vYl4xWHvmLjMUV3TD4coqbdFQ3EneqpB2KS1O Nyzh3uA4OR23WcBkD8klFkZh96n5SAIyYbsTzyS0Hveof507LYqVo3iJnOLS0MgZbn VKTSn2euzQkMHCiOoabBmXXax9EeTn8+8EsXWWUTOD5i9bhbl5LSi2DReJk/fU5LV6 XCRAQmGJptcDKD2RsGTjAdJ5ytkxOq5/tPVQly11BgcYw6a15kOmE0mBrt/NeVKiMC VZHFRw+1xFZqA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 3/3] drm/xe/ras: Suppress reports for repeated DB-ECC errors To: "Mallesh Koujalagi" , intel-xe@lists.freedesktop.org In-Reply-To: <20261204140748.2397546-8-mallesh.koujalagi@intel.com> References: <20261204140748.2397546-5-mallesh.koujalagi@intel.com> <20261204140748.2397546-8-mallesh.koujalagi@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 14:57:59 +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=-11.2 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 2 potential issues to consider: - [Medium] drm/xe/ras: removing xe_info() leaves default RAS components unlogged - [Low] drm/xe/ras: undocumented downgrade of non-repeated page offline logs -- commit 7be353faabcdf4bec6c67b2c0acdc814fa08ab8d Author: Mallesh Koujalagi drm/xe/ras: Suppress reports for repeated DB-ECC errors This commit suppresses log messages, DRM-RAS error events, and CPER records when a repeated double-bit ECC error on an already hard-offlined page is handled successfully, and also downgrades page offline logs in send_page_offline_cmd() and removes the generic component log in xe_ras_process_errors(). > diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c > index df1e3901b4e07..b91ea158879aa 100644 > --- a/drivers/gpu/drm/xe/xe_ras.c > +++ b/drivers/gpu/drm/xe/xe_ras.c > @@ -301,7 +301,7 @@ static int send_page_offline_cmd(struct xe_device *xe= , u64 page_address, > } > =20 > if (action =3D=3D XE_RAS_PAGE_ACTION_OFFLINE) { > - xe_info(xe, "[RAS]: Page address 0x%llx offlined\n", page_address); > + xe_dbg(xe, "[RAS]: Page address 0x%llx offlined\n", page_address); > ret =3D xa_err(xa_store(&state->offlined_pages, > page_address >> XE_PTE_SHIFT, > XE_RAS_PAGE_OFFLINED, GFP_KERNEL)); > @@ -312,13 +312,14 @@ static int send_page_offline_cmd(struct xe_device *= xe, u64 page_address, > xe_dbg(xe, "[RAS]: Page address 0x%llx already offlined, removed from = queue\n", > page_address); > } else { > - xe_info(xe, "[RAS]: Page address 0x%llx removed from queue\n", page_ad= dress); > + xe_dbg(xe, "[RAS]: Page address 0x%llx removed from queue\n", page_add= ress); > } [Severity: Low] Should these non-repeated page offline logs be downgraded to xe_dbg()? Changing both branches removes default info-level logging for first-time permanent firmware hard-offlining and non-repeated queue removals (including during probe via get_offline_queue(), which does not call xe_log_comp()). It also undoes commit "drm/xe/ras: Downgrade repeated page removal message to debug", which split the else branch to keep non-repeated removals at info level. If these log changes are intentional, the commit message should explain them rather than only mentioning them below the --- separator. [ ... ] > @@ -899,24 +925,15 @@ enum xe_ras_recovery_action xe_ras_process_errors(s= truct xe_device *xe) > if (!ras_counter_is_valid(xe, &arr->counter)) > continue; > =20 > - xe_info(xe, "[RAS]: %s %s detected\n", comp_to_str(component), > - sev_to_str(severity)); > - > - /* Send event once per component */ > - if (!(sent & BIT(component))) { > - sent |=3D BIT(component); > - ras_send_error_event(xe, severity, component); > - } > - > switch (component) { > case XE_RAS_COMP_CORE_COMPUTE: > action =3D handle_core_compute_errors(xe, arr); > break; > case XE_RAS_COMP_SOC_INTERNAL: > - action =3D handle_soc_internal_errors(xe, arr); > + action =3D handle_soc_internal_errors(xe, arr, &sent); > break; > case XE_RAS_COMP_DEVICE_MEMORY: > - action =3D handle_device_memory_errors(xe, arr); > + action =3D handle_device_memory_errors(xe, arr, &quiet, &sent); > break; > case XE_RAS_COMP_FABRIC: > xe_log_comp(xe, ras_sev_to_cper_sev(severity), FABRIC, [Severity: Medium] Does removing this xe_info() leave valid RAS components handled by the default switch branch completely unlogged? ras_counter_is_valid() accepts XE_RAS_COMP_PCIE and XE_RAS_COMP_RESERVED, both of which fall into the default branch and trigger a full device reset via XE_RAS_RECOVERY_ACTION_RESET -> ras_action_to_pci_result(). Without this log, those resets happen with no dmesg diagnostic (and XE_RAS_COMP_RESERVED also emits no DRM-RAS event). Logging the component and severity in the default branch (with XE_RAS_COMP_FABRIC breaking before it) would preserve reset diagnostics without interfering with repeated DB-ECC suppression. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204140748.2397= 546-5-mallesh.koujalagi@intel.com?part=3D3