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 48CA0606A322 for ; Wed, 2 Dec 2026 18:22:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=DWE5LOlX Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED12E10E0A1; Wed, 2 Dec 2026 18:22:10 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5ABA210E0A1 for ; Wed, 2 Dec 2026 18:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796235724; x=1827771724; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=vv18bnmD/GlTmLMqYZw9DQhk5PW7KhQwm8p3i8VDXVQ=; b=DWE5LOlXgN2TXlmDqVu0nGANpDlJv08y0VxhQAsLvgyLTiAY/cOosUXd o/ePqZElKZArvpbhcdF0VeQmsOfmsFftMeRocGYDlqyhlP5xEN8EfKRoK mgSYt1q/Ijw1wiYE6xoeQM7izPa8vpBSaA0fXSe2n+ZAonNpgo9zw2Qxe N7qtJcSx9+qhDDrRrw6q6UV9a9dh0Ve3KO+IwUcASGPEnlB2XgnYAGJL9 unVpA+5cp8VEybl480tFWRwHk+nMhWt/deX3OyolOSimol751UrMFroxP kfiStCwbkAudv9BrM3D68sfKKTNquwAgYrJQ+TzFEWaxT3PWZfKzNa3DY A==; X-CSE-ConnectionGUID: 69UnsDISSxWpjoTKTCRC4Q== X-CSE-MsgGUID: NXK6Dx5sTs+eLEp59pNSEQ== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5137961" X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="5137961" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 10:22:04 -0800 X-CSE-ConnectionGUID: Buib3XgpSoOtMaq6r5A+fg== X-CSE-MsgGUID: EEoiUwWsRuO3vO+tBntu8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="13457771" Received: from fmsmsx902.amr.corp.intel.com ([10.18.126.91]) by orviesa003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 10:22:04 -0800 Received: from FMSMSX903.amr.corp.intel.com (10.18.126.92) by fmsmsx902.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 10:22:03 -0800 Received: from fmsedg903.ED.cps.intel.com (10.1.192.145) by FMSMSX903.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Wed, 2 Dec 2026 10:22:03 -0800 Received: from SJ2PR03CU001.outbound.protection.outlook.com (52.101.43.7) by edgegateway.intel.com (192.55.55.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 10:22:03 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nb0gs14GJVR8MFSQIajoyQDhpC2WhwYi830DLgjNMrkmygZTFVOIYtDWIRQP2CpbbHl4LWg8sxCAveTuipk+/KH51RU593ALIQmWnqjxoxS5qojjy4xO0kOTHoTeshscM1xkdNFcuv6PLKBB0pkxfiJI9g3Vi4+oHQWCbn6fMvhT1VKZlcxv2vNbXiPZk93sVoX93CUpdeC+Gyjt/2OnPpPPHwesW1KRfzir1x6PZS+e1POGPtJaTirWM6Bv2cFqAPk3zm5eaReSPBkztU0MxxG/vj5NR5zJXFXjv/uBLEDQUOWKJHim/6IWkxos+n4kDrD6JSh2m5b/Lj92FavyVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vv18bnmD/GlTmLMqYZw9DQhk5PW7KhQwm8p3i8VDXVQ=; b=bqI4kYNmKQywnfdaZkEeUk/TwPUwaaKQK8q5DjzAiabsm8AJ/I8V+I3eTwCIl+c4Ypsm+FG3GKLl/dc/4ZdCanfGcu+A4rCKnC+I6nxnqPpdP7beq8dhZcuqWGN61ibyHvzB9KpGn57Le4fN0nb35VmrJlq449NXZJM30mCyI1h1TZGo+hjt+11Ix3NVF3ikklNbgXsqQ2rTzmRqXXX0QKrhhrhsRvEvjukpjScRBManOpBF6F5k94Ugb9iO2t+XRlZByU7abZTTeKB9qH8m4dvdSLroaFRjx/a3hMrHqo0eEqf1yj6RVWD72Y2/nnw9O563d9O6p8gd39UTS+1ujg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS7PR11MB5990.namprd11.prod.outlook.com (2603:10b6:8:71::5) by DS6PR11MB851541.namprd11.prod.outlook.com (2603:10b6:8:4c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.11; Wed, 2 Dec 2026 18:22:00 +0000 Received: from DS7PR11MB5990.namprd11.prod.outlook.com ([fe80::133c:5eed:3aec:b899]) by DS7PR11MB5990.namprd11.prod.outlook.com ([fe80::133c:5eed:3aec:b899%3]) with mapi id 15.21.0688.009; Wed, 2 Dec 2026 18:22:00 +0000 Date: Wed, 2 Dec 2026 13:21:55 -0500 From: Rodrigo Vivi To: Mallesh Koujalagi CC: , , , , , , , , , Subject: Re: [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors Message-ID: References: <20261202115714.2320298-6-mallesh.koujalagi@intel.com> <20261202115714.2320298-9-mallesh.koujalagi@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202115714.2320298-9-mallesh.koujalagi@intel.com> X-ClientProxiedBy: PH7P221CA0043.NAMP221.PROD.OUTLOOK.COM (2603:10b6:510:33c::31) To DS7PR11MB5990.namprd11.prod.outlook.com (2603:10b6:8:71::5) X-Archived-By: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR11MB5990:EE_|DS6PR11MB851541:EE_ X-MS-Office365-Filtering-Correlation-Id: 169f21eb-193c-4a0e-5f48-08df50a127ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|366016|23010399003|4143699003|11063799006|261009223027099003|22082099003|18002099003|56012099006|10067099003|261022075727099003|261022105027099003|261028144727099003|261102123227099003|261026121527099003|261021123027099003|261021121427099003|261026140227099003; X-Microsoft-Antispam-Message-Info: DAmM0Y09oxcIbZ84bqmIS1MtoPr6RihEmf1lcYRVlGae3Pnyryvj+TlZgXN53yJLXEDskVciPRh9tbosAhbqMz33ntqnFtkDvqh3DAtWAo/Hr+43uX05sS0loGnLzNQVUxdxpQUZLZkW11jjiK0r7tOXaC+qSCwY8tBYdteocVm+/L8jiyfhh9TslC0eqyH+GeK5HzhDnQFqbqGvUQR2KImzGrL7ghq8h+NcGa07Sj9vRc1/cTiKzDT9dMvua/YaHYswiDwqa2QnQyL6mFH4rECkuQj0W3aUoMH2JNGxrl2upudcpPLyGsCjrmQ1QdkddiN9amLjz/bCxc8WTLPnbmHF2ACZn7C0VpilOrPcjrHtDNwJI91TbR1ohYhJE9EhYRf/CURGY3jEYhGz/hq7NdHvW0vlj9Uv69vDgi01eCINnOr2R7mI8YiAG487gxgxbLTqpiqtgPI8V++dSQSUqdtutmZ9o54VN9KSOAt285xP2RmU26LH1tln1WvEYPNb8Ept6g7Dy2s383FJtApMWMTKN/g2ojYA22BiAEYkR3lkm+izdV1Z9iVcbQU9rXtJlQ4Ouc9OnWATVL86xNj+gDF4iB7IvenrcmdfvJUY6Yip/QiB+MnEULhAg6T2BZ6IY+l4fTy9lQ0HCvzo0vGAFbHJS6g55MEHmy8HH0Ig/dk= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR11MB5990.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(23010399003)(4143699003)(11063799006)(261009223027099003)(22082099003)(18002099003)(56012099006)(10067099003)(261022075727099003)(261022105027099003)(261028144727099003)(261102123227099003)(261026121527099003)(261021123027099003)(261021121427099003)(261026140227099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?mF4U/t+OZJ2E/CxohJWX+EVXEGiTaezkOhxrDo4Ge0JR9w1bDVWWdkQ3adSF?= =?us-ascii?Q?rus2okC51KyV+5HTadphJ1KaFgM0Gd+Ttc6jDmWEFlCY7HEoJ7BIdM05+CfA?= =?us-ascii?Q?U4zdcaOobR8f3foo1dKJMTMZz2x5fkHjNyZFx/NLz8CrmD4qiGqYRJv9l3Yn?= =?us-ascii?Q?0HPwcNM+fN7eLVIuhnPVC264UhWU+oOaT5vu+NHCsJAtHqibleN5nD84xRg8?= =?us-ascii?Q?4jW90cG2CPX22R7xDDtefIRMPo2Avv/MC50O4RQZHvlVF/OOfLzd1WUXU3cC?= =?us-ascii?Q?LxPist0vouJcViOfKRvy53j1gSSMxri2jyMPfHUHTpxcRBlFHBH/PxtBeDAF?= =?us-ascii?Q?DP4+grWWyTDSOP8085V1InE7fJrgBEbcheP1tLA1w+V/JXbQ6QdSPZsBS2cR?= =?us-ascii?Q?jEJTTfePJPffhaAp5tC1wTbOFgTBfBP7Q1ctJKWWMazoMCuMeAk28SnMj2DF?= =?us-ascii?Q?hwhHQyXxtZbPapljjoU5Zc/DWPRLTYYnW7RFiMA8hnGcr/D7GY5lQOvxBUFo?= =?us-ascii?Q?Zv+qaZtLzdf58PqjVjLWYseRe21zqaxDAyukyJhr0GnIJ6+d1Fq/dM7mETb5?= =?us-ascii?Q?ft6cC+85abx7cfyw3dfGrBZCbqMXSXswS+l9uYGi8Y4Dld6mtFOir2ukqTWt?= =?us-ascii?Q?90gvtF/mlLv1ram3+K3GG6Sxyo6cbJXvXNW4chZrBtIdzLF8xC/ZQYUx9FK2?= =?us-ascii?Q?p70mfjnsxkrR5DukRcCnoVyeKXPxynR6/S714dqAwSw7jGELU0yqmzASmH4y?= =?us-ascii?Q?7cx93rgirdv52UumZF1E6k2yZjNkr73odr/6b5SzOjgg+xj2JKcmOjn7MxvM?= =?us-ascii?Q?ib5jrqGFoOIzvrOKcU+y2v39j6QaKZG0RHwxHsAp4IESuZslozFraoOfkHy0?= =?us-ascii?Q?kLC9jo8xHtw2TpeKz2sA94wa1qE9ho18TeVXGv8BPm83sX6yvNbkP7F69MsT?= =?us-ascii?Q?ReuleHza5juj6m25LUN4W/t6Czmk1i6p9BQQSKSM1h4IYET22n789L/LN67J?= =?us-ascii?Q?XdDYze/ECsqvpe38TAJMq+ZurrxdBB6Ma/1E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CtUaljLrngWbmxzwi7baHWoyDmaQmNAoD8HOTh2XPOm4pVMjViBp3BHJO+npN1YFmJqjXd16cyvnx1cZ064d7Xfw25tTcXRucYgw3sN1K5iby6UilUhI3W5r0QyB+WkgAbzULGsQdpUBS3H0ujg== X-MS-Exchange-CrossTenant-Network-Message-Id: 169f21eb-193c-4a0e-5f48-08df50a127ef X-MS-Exchange-CrossTenant-AuthSource: DS7PR11MB5990.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 18:22:00.3099 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zJg7rjYHCaYdni5p4FzNL+Ma3sM6TBO4A+/wH3pJm4yI0/NMvtfdw3Y2ABdnjwE6OM7K0A20uck7VqocMpXRQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS6PR11MB851541 X-OriginatorOrg: intel.com 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: , Sender: "Intel-xe" X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,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 On Wed, Dec 02, 2026 at 05:27:18PM +0530, Mallesh Koujalagi wrote: > DB-ECC errors may be reported repeatedly for pages that firmware has > already hard-offlined. These repeated reports are not actionable but > still generate log messages and error events. > > Suppress reporting for such pages to reduce noise. Keep reporting when > VRAM page offlining is disabled, as the page remains in use. > > Cc: Raag Jadav > Cc: Riana Tauro > Cc: Himal Prasad Ghimiray > Cc: Tejas Upadhyay > Signed-off-by: Mallesh Koujalagi > --- > drivers/gpu/drm/xe/xe_ras.c | 30 ++++++++++++++++++++++++------ > 1 file changed, 24 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c > index fa23325fb691..b92295539499 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 *xe, struct xe_ras_error_class > return true; > } > > +/* 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_error_array *arr) > +{ > + struct xe_ras_memory_error *info = (void *)arr->details; > + > + if (arr->counter.common.component != XE_RAS_COMP_DEVICE_MEMORY || > + info->category != 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; > + > + return page_is_hard_offlined(xe, info->sw_address); > +} > + > /* > * Fetch and process offline list and queue from firmware via mailbox. @notify_fw controls > * whether firmware is notified of the offline/remove action. > @@ -880,13 +896,15 @@ enum xe_ras_recovery_action xe_ras_process_errors(struct xe_device *xe) > if (!ras_counter_is_valid(xe, &arr->counter)) > continue; > > - xe_info(xe, "[RAS]: %s %s detected\n", comp_to_str(component), > - sev_to_str(severity)); > + if (!is_recurrent_db_ecc(xe, arr)) { > + xe_info(xe, "[RAS]: %s %s detected\n", comp_to_str(component), > + sev_to_str(severity)); hmm... here we go quiet before we even try to handle the error below... If the handling then fails, we wedge the device, but userspace never got the drm_ras event. If you think that's fine, just say it in the commit message. But I think it's simpler to let the memory handler decide, since it's the one that knows if things went well. We just need to shift things a bit. Then we don't even need the patch 4. In handle_device_memory_errors(), add a bool *quiet and set it for the DB-ECC case: recurrent = xe_ras_get_enable_vram_page_offline(xe) && page_is_hard_offlined(xe, info->sw_address); ret = handle_page_offline(xe, info->sw_address, true); *quiet = recurrent && !ret; and skip the CPER when quiet. The recurrent check has to stay before handle_page_offline(), since the handling itself can hard-offline the page. Then in xe_ras_process_errors(), move the "detected" log and the event from before the switch to after it, and skip them when quiet, with just an xe_dbg(). With that, is_recurrent_db_ecc() goes away, and this patch and 4/4 become one... > > - /* Send event once per component */ > - if (!(sent & BIT(component))) { > - sent |= BIT(component); > - ras_send_error_event(xe, severity, component); > + /* Send event once per component */ > + if (!(sent & BIT(component))) { > + sent |= BIT(component); > + ras_send_error_event(xe, severity, component); > + } > } > > switch (component) { > -- > 2.48.1 >