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 21F54606A322 for ; Thu, 3 Dec 2026 06:29:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ffWKwWGo Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DAFBC10E105; Thu, 3 Dec 2026 06:29:26 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A9E510E105 for ; Thu, 3 Dec 2026 06:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796279361; x=1827815361; h=message-id:date:subject:to:cc:references:from: in-reply-to:mime-version; bh=DziU0s91yD3Lnx8vzPRulMNNvjw5n11SkZ8O2hRIKpI=; b=ffWKwWGoQZ54nvb0WeR6d4QUpvKiwNSIAgm0JZyk4KTzNO6v9uMQkE63 6zsjq9/TiVxSzjYEXD9rGs23G0vN16zLL6Ucu7hGJIzdNES2OjxI+AMtA Um5Qe+2Hqi/GR3BTTLBD/qppBV4nMMquin9cgo3EfHv+vBm4Y21NzptS2 PUMeTCtJd5aIVNmrGxcNiRbYnURRWAN9q6EVJ9Bjiu7T0NRdkri6f37FA QGQH6zEJ2rrbpFL9MImsEbQ8o5gL+Fo05C0Bf7XH62ODfRP8oaDqOFCE3 KPgJczngsjuShGZsWA+6+eVuw5WoeQ9ne59/C3H0/EssbGgesyv/DLQG+ A==; X-CSE-ConnectionGUID: h/89RbEkSryJwG2ibWyWfw== X-CSE-MsgGUID: G5M1HKL6SoOj03Q30Son+g== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5121612" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208,217";a="5121612" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 22:29:20 -0800 X-CSE-ConnectionGUID: Ao5g4FScTQenKOQAhRp9mw== X-CSE-MsgGUID: XxW8PRVuQ9SiQfBRztzwZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208,217";a="13664396" Received: from fmsmsx903.amr.corp.intel.com ([10.18.126.92]) by fmviesa004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 22:29:20 -0800 Received: from FMSMSX903.amr.corp.intel.com (10.18.126.92) 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; Wed, 2 Dec 2026 22:29:19 -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 22:29:19 -0800 Received: from BL2PR02CU003.outbound.protection.outlook.com (52.101.52.22) 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 22:29:19 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=B5kXFlxfftx1/mXAGHbixl0KLIBonLntEPKZ6F0zs2NsFHouQ9NHEH9BVexvozvdMkgsJZWinZXPhVueyP54Pyl7TLn5A1W7ygrIe7vHUqndGQbdAWB6t33JQ//9ilT3hBI+lR3cEBXpP45cYQcJtZnco1JVQwGGQE+Y9+l1Bd/wvOrB+izxinBZfQY8HwwUxjOyH4R4uL40jwR4omlSwUXbF5pyT9KbznaneQCYA2Tf1tqtqTkUeCcfZvCFUlyJlXbSdh4+ChllnAW2jjvSZ+7RDAQ5GvED/sMZlF8movMLTFdJ02RDXehoS1iQ9r4kNEWdsBMvx1lllpUYq/7MPQ== 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=DziU0s91yD3Lnx8vzPRulMNNvjw5n11SkZ8O2hRIKpI=; b=oYB5+V1woFIyqlw+OsfXW/rU49Tz1IxMs7kjbsRGXoI2sn89cxzcqGJt+NLUBDzdIBYALWTmRF6CRo2n3+yYBHB9Z9CbjLaTbpcWGOu/6POGVhipXx30lw4yKdxnxuYakN+S50DKDVS+Xd7B7chc2R8fTjrOxEPh0Eux1y0FBJ3MMWQoPdm3OQlfTxQuwuoBjD+j3Z+o/Oq2LUi3izezQVN2GrSv0zJnKTCvmSYoBlpgGpQU/p8YrOQwUHCAE2s4x0qw08N2fLYS+KxGMlsOo6g4HstEUz5024I89O2HFz1pjeyFZyA19YAjuDKjl/rZuAwaN1QrmRuo5I7k+kA5Kg== 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 IA0PR11MB7862.namprd11.prod.outlook.com (2603:10b6:208:3dc::8) by DM4PR11MB8179.namprd11.prod.outlook.com (2603:10b6:8:18e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Thu, 3 Dec 2026 06:29:12 +0000 Received: from IA0PR11MB7862.namprd11.prod.outlook.com ([fe80::3b4e:43a6:6e22:22f]) by IA0PR11MB7862.namprd11.prod.outlook.com ([fe80::3b4e:43a6:6e22:22f%5]) with mapi id 15.21.0688.009; Thu, 3 Dec 2026 06:29:12 +0000 Content-Type: multipart/alternative; boundary="------------6m00ZpbtRj5mNRiMsACebpkF" Message-ID: <40ab2ddf-e054-4da6-87ae-296dd94d9a79@intel.com> Date: Thu, 3 Dec 2026 11:59:01 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/4] drm/xe/ras: Skip reports for repeated DB-ECC errors To: Rodrigo Vivi CC: , , , , , , , , , References: <20261202115714.2320298-6-mallesh.koujalagi@intel.com> <20261202115714.2320298-9-mallesh.koujalagi@intel.com> Content-Language: en-US From: "Mallesh, Koujalagi" In-Reply-To: X-ClientProxiedBy: MA5P287CA0261.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:1f1::17) To IA0PR11MB7862.namprd11.prod.outlook.com (2603:10b6:208:3dc::8) X-Archived-By: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA0PR11MB7862:EE_|DM4PR11MB8179:EE_ X-MS-Office365-Filtering-Correlation-Id: 9972f1c4-e244-4760-f0b8-08df5106be70 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|23010399003|366016|1800799024|376014|11063799006|4143699003|18002099003|261009223027099003|8096899003|22082099003|10067099003|56012099006|261022075727099003|261102123227099003|261026140227099003|261026121527099003|261028144727099003|261022105027099003|261021121427099003|261021123027099003; X-Microsoft-Antispam-Message-Info: g+xGdQ9BANiSAHQPCvAA6xFaPeS/0M4MOIeAXq0sa+tVxcbyzsNA6AgdRp7DiOPdaN1zPIPh53VILjdzStk6biqVN/ReSjamjrcBk5Fvrd9z8a6nMMv7KI7VFL60Q5Z9J3pUysDuJY+dEAWUNRpeS0wzFdQLPWDVOoohX+6E/bEFwABJPiAoFlTI7I7FbRU6KpmnKxQLs05XCDz+mHwHBxBnBzlFL2RU1fdYkhC2VdVQKiLXUZwISzN4X2q9keYQoerN7sTiYhFM0nflvcZkYCaZmPSsRC9Y0E0PhtM40Pa95fnScjTKt0rOiduRvHaJDksLY+0n83QMg2VbL4DsoHabIu0RSPSZoY8jsm2Exn9dN2NukRvC2Y81rw641WYpdHNM4mODxHLqk8ASwW+aWKl1tJSKOBAEUb8GUgKZ1FsRhumXNtfVMZJYx4S2g0n1GJ44uQJ1QMiIidMRWvFaQMpu53qr0b1LJlUgCQObQSQDmNau9TBXHEbXDotOXUph7IntdJWdq7S5C3jBng2AYMvVUhqHilpFyRVf/c201Hgtd7XCmyiOFCRoU5D023Nl0J3hPYAD6M84OtCYDwpXmLi9kEeliG1S0hrNeIk5cYLaqo3PiAY+NVlKtzMieiDF786yk44FdkHhTxEDYQlZs/HcMA8ZgYTYkj+EH9KXoaQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA0PR11MB7862.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(23010399003)(366016)(1800799024)(376014)(11063799006)(4143699003)(18002099003)(261009223027099003)(8096899003)(22082099003)(10067099003)(56012099006)(261022075727099003)(261102123227099003)(261026140227099003)(261026121527099003)(261028144727099003)(261022105027099003)(261021121427099003)(261021123027099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WWtTazhOcENvam5IZHIwMXkyWFRXZ2FLb3V1K0ZHMFhBYXIrL0hOWTgrTTAv?= =?utf-8?B?cHJzam81QnlEeW8wcSt2NTNiYzkxb0k2QzZpUEx4ZnJq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JditJMkxJUmZidWNuVXEwejR3eW15eHFKYWNpOUNs?= =?utf-8?B?ZUdnR1JSK0EwL0FhSEcyVFJTRllYS1JaZ1UreG1vSGhOM0ZjclViUWR1eE0y?= =?utf-8?B?TTB6VlV2QnpMRmYxS2RGams0UXdjMDhoUEdxWDJNQVhibFdBMGFzWll0SDNK?= =?utf-8?B?S2NVTFVHZTliMzBYcXJTSjVtUVR3VllFOXlIbWsrWFR4QXA3N3FtQmNPb1Iv?= =?utf-8?B?ckJRWVRPRTRxWUoyMGI5dW1yMHhnQnNKbktzT3RnTkhmNGtScGFQL3RRZ0RW?= =?utf-8?B?ZzRkQ1ZNc291cmJiSGFxTDcvRnJzWWxtWmw2QUtYNWx5cUFpd1BNNFZCVmR4?= =?utf-8?B?TnEvM29jdWl0djNReWVuRXpFOHlSK28wWnBGWUJRUG1jeG5CQ0lwcE9hMk1W?= =?utf-8?B?QXlhN3l3OXh6VHVGSWNIQnFEY0Vsc3lwelBuSExHanpFcHBaNDlRbVIzd3Ir?= =?utf-8?Q?QK7IjgB3FqQ87HUo=3D?= X-Exchange-RoutingPolicyChecked: K1no1RG23F2JCu8/1EsIky4lN3WD7WpPVeq68hDDRIFv+JD0e9T0ugiukdWU7U2snHG+FJwONWNiXxpunq17mEqbZjsBtrcXgzFA71y4d+G/M8p/nR96fVFJJCaJy+G9PMcnF5VxDg/y4H2tyr3j+Tlj1ffuo07MFzWTFt04DdesYDID/J/6fckyc0wvlkdZ4lYkBOpUf5GFTIL0eCLziOaYT71wA9TSjy0hQG0l3HD0svQdwRosm615dBPzJI70ClFxL5xO3VtxeVJ2HSVeXAcXwgHaJUx+AiZrKn1PMsiMipTzXdYNyZlW1QzmdvJrzVgHjduS6iN1pD0e0DBw7g== X-MS-Exchange-CrossTenant-Network-Message-Id: 9972f1c4-e244-4760-f0b8-08df5106be70 X-MS-Exchange-CrossTenant-AuthSource: IA0PR11MB7862.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 06:29:11.8742 (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: y6VnFQLMJAFKXxmnL6+9iBFllu4gA/GXgxRgtZ0STJd2ncLlJ9EOt0HtIKL7JijrQ8XA4XGeCS0mGrv0rta1SvIVhSUmOTvNp5V3l1PtuFw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB8179 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=-14.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 --------------6m00ZpbtRj5mNRiMsACebpkF Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 02-12-2026 11:51 pm, Rodrigo Vivi wrote: > 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... Thanks Rodrigo! I'll make next revision with above changes and remove is_recurrent_db_ecc() function as well. Thanks, -/Mallesh >> >> - /* 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 >> --------------6m00ZpbtRj5mNRiMsACebpkF Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 02-12-2026 11:51 pm, Rodrigo Vivi wrote:
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 <raag.jadav@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
---
 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...

Thanks Rodrigo! 

I'll make next revision with above changes and remove is_recurrent_db_ecc() function as well.

Thanks,

-/Mallesh


      
 
-			/* 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

--------------6m00ZpbtRj5mNRiMsACebpkF--