Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp672263ybg; Wed, 10 Jun 2020 10:32:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU2q7T7vKTr2TdsKrTzG0KXFxagGyHB5pyAOJrAlNPWJgyIr7BlP/WNokOzriI57Ch9Cme X-Received: by 2002:a17:906:4ec1:: with SMTP id i1mr4365916ejv.152.1591810327060; Wed, 10 Jun 2020 10:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591810327; cv=none; d=google.com; s=arc-20160816; b=cMTas1RittGnaJUZycFPE1ld3YUeG8U1FcdgcxNBIEibvMVWGhjdAuI3LNGs2hIKIo Ybyr1y9leiUqvxhjm45feeNZLiQ10tPCa/VmVRFIoTHoXEZMbkKpRW4w3DsU87wN6dCn TJann4ALHUmDTzDrsWKIk3kmvDVzAo3bu7gQcDubHL0p3m+lr0oJWAvD/Wh2TXB9f0l2 dHVzRFmhvEql+yZ6DLzOAYYxC4CEw7oQgozqIXeEzRNKMjp18o5h7hr+0n+P2qMKRQZI HJ3YZt980SQ6LcQREwL/PrzApuL3xt6hWOgplkO2FnP0mI49TA1Rh9tkHUXQwDV0kmJs EPLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=YgNXo9k6xevFf2X9ovieaAeHNzwZPnzawatPepae8V0=; b=nb4wB5N48vXxCTuOoK5utP81imdR4ScIQYK9Z3vxvTU/vDxl+Svzbo7ubaPJyrUvEb GqZJjS+fF7DH5wQM65icJFeFNImuW8Nj+R0wlk7aWFWDG0PbfH5bNvCvMRnYrxtmlda8 F0i5URxsfoLW/391YIdXn2VXrX5EfjkXsnxnd4UkE+y0oxAKuQoG+nX2eQBtuxxV5zoD WCnVT/K0B0CGuw1+OPyJTj6awzN6+IkRe1ufM/arT6PGpTp+4Ovu9UGc5dOM5MelwL5x 42DdIDKXXu2mxYqbUTFr07h1pazSzN4Yx1Xbj2XWMhxydU3CDlHHY870piVH/Da+QPIw 04Qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf23si412123ejb.540.2020.06.10.10.31.43; Wed, 10 Jun 2020 10:32:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728321AbgFJRTP (ORCPT + 99 others); Wed, 10 Jun 2020 13:19:15 -0400 Received: from mga06.intel.com ([134.134.136.31]:47811 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728057AbgFJRTO (ORCPT ); Wed, 10 Jun 2020 13:19:14 -0400 IronPort-SDR: sR9lifVVQCTHBATsQZWehFn7wpOFphzJN8y+abrU6aDd+CHM2lrZdJwIu3IzPg8UlXQlmy4YXn s0P+QMXUcu/Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2020 10:19:14 -0700 IronPort-SDR: kx5x97zDI+jMG/eqid0UpxmxpyBmfYSZ6mzpplV3XC3EcPNgDsT2z0Zg8KYyLp7tK2r1pHyElA jjaDzawW/gvA== X-IronPort-AV: E=Sophos;i="5.73,496,1583222400"; d="scan'208";a="447585617" Received: from agluck-desk2.sc.intel.com (HELO agluck-desk2.amr.corp.intel.com) ([10.3.52.68]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2020 10:19:13 -0700 Date: Wed, 10 Jun 2020 10:19:12 -0700 From: "Luck, Tony" To: Zhenzhong Duan Cc: linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, bp@alien8.de, mchehab@kernel.org, james.morse@arm.com, rrichter@marvell.com Subject: Re: [PATCH] EDAC/mc: call edac_inc_ue_error() before panic Message-ID: <20200610171912.GB1474@agluck-desk2.amr.corp.intel.com> References: <20200610065846.3626-1-zhenzhong.duan@gmail.com> <20200610065846.3626-2-zhenzhong.duan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200610065846.3626-2-zhenzhong.duan@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 10, 2020 at 02:58:46PM +0800, Zhenzhong Duan wrote: > By calling edac_inc_ue_error() before panic, we get a correct UE error > count for core dump analysis. Looks accurate, and I'll add the patch to be applied. But I wonder how big a problem it is. Isn't most of the information deriveable from the panic message? > > Signed-off-by: Zhenzhong Duan > --- > drivers/edac/edac_mc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c > index 75ede27..c1f23c2 100644 > --- a/drivers/edac/edac_mc.c > +++ b/drivers/edac/edac_mc.c > @@ -1011,6 +1011,8 @@ static void edac_ue_error(struct edac_raw_error_desc *e) > e->other_detail); > } > > + edac_inc_ue_error(e); > + > if (edac_mc_get_panic_on_ue()) { > panic("UE %s%son %s (%s page:0x%lx offset:0x%lx grain:%ld%s%s)\n", > e->msg, > @@ -1020,8 +1022,6 @@ static void edac_ue_error(struct edac_raw_error_desc *e) > *e->other_detail ? " - " : "", > e->other_detail); > } > - > - edac_inc_ue_error(e); > } > > static void edac_inc_csrow(struct edac_raw_error_desc *e, int row, int chan) > -- > 1.8.3.1 >