Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp545828ybg; Wed, 10 Jun 2020 07:29:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkBdQxqSObbsRpA78TEn3xxeTV1WuipvCQy3LRWNW8UpbY/LKPrrWRfj2e9shHzy7iOqCo X-Received: by 2002:aa7:d98e:: with SMTP id u14mr2739683eds.247.1591799353261; Wed, 10 Jun 2020 07:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591799353; cv=none; d=google.com; s=arc-20160816; b=LtEPWBdCEUWpNQ4KvkgIUIwOI3gClOog1UD1ChA6sCWgBOTaVofFPvzuwYDgwQ0Etg 9E2T+xL6GOI5zYWo06sQD929bGPhTy9KTjhYB6nNhISAw/DvVGLoAo+3rSiKY8x4HRq3 8FWr50NLs+Uy5Rt4t1mUTLHTKrUx4gIndr6I2V4Z22GT01HknqyCxJUoy+DmzYFiILPG KMCIsgGTuM4kUOYh35lZi4AMYVd5dm2txVCFc8gOw5vAl+UGDD/PW+sj95YCeR/SgHu3 jxeGOOSohsfcL7K0MWJDWVQu2mW/8yQDqLSv5JM0/ipjF3zaEjKJ6pH21dDsPip059Sf hl0w== 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 :dkim-signature; bh=0lhSM9cD2l1F1bxrTqd8jmkKzrg5lMSb8JJgwWgGHvU=; b=YT4eJjpe6UHA6F0CYl+q+IEEJzBJ2OiUcazHf4G20+nwTeDOwb5oB307Z6TkT+KMxx gsiyGosecA4HLwSaVEEkXIo+F97hHJ6noqqbZiiKP7pBz3Ux6CberqDZbWacN4x/g+AK 05ZB+zskrMS6R5dl7DR9Ba04MWGF2N/IM5s4atLUtfiGQV2ssIUXVnwsZ6uhylRo1KW7 aCpGnJ0bQgkCdM5EziIsCuBHYDq6aJ039dEye0SlnxdfzB45qsgcODNSx9dC6Hy6VjDR j8gkthqWhWbk/RnhodGcaKs6Fba6KkLg9+DJSnYylWkBhEZE4XgMLyM+V6NdqZ3j27Cw TPcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mpdYnPEC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si5372764edv.25.2020.06.10.07.28.49; Wed, 10 Jun 2020 07:29:13 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=mpdYnPEC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726665AbgFJIUn (ORCPT + 99 others); Wed, 10 Jun 2020 04:20:43 -0400 Received: from mail.skyhub.de ([5.9.137.197]:46616 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbgFJIUn (ORCPT ); Wed, 10 Jun 2020 04:20:43 -0400 Received: from zn.tnic (p200300ec2f0c1900a913926cfabdeffc.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:1900:a913:926c:fabd:effc]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 27C851EC030F; Wed, 10 Jun 2020 10:20:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1591777242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=0lhSM9cD2l1F1bxrTqd8jmkKzrg5lMSb8JJgwWgGHvU=; b=mpdYnPECofYieFbqJjrVtIevL//hK3Pissx2uy90gxQhlC6lNf2QJ+jjrhP6T76hqg7M/+ JvHHPn8U/OwgYXF0OjrFZyPMt0+sg2yi8UmgtJYON75xjG6f6v+EKUKSBAGyAi/uWpI9Mk 89oBFPuzLBzuoFyCzww83Uu+S1Bp0ks= Date: Wed, 10 Jun 2020 10:20:40 +0200 From: Borislav Petkov To: Zhenzhong Duan Cc: linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, tony.luck@intel.com, mchehab@kernel.org, james.morse@arm.com, rrichter@marvell.com Subject: Re: [PATCH] EDAC, {skx,i10nm}: Advice mcelog that the error were handled Message-ID: <20200610082040.GB14118@zn.tnic> References: <20200610065801.3579-1-zhenzhong.duan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200610065801.3579-1-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:01PM +0800, Zhenzhong Duan wrote: > If one MCE error has been processed in kernel, it's not necessory > to pass it to user level mcelog. > > Signed-off-by: Zhenzhong Duan > --- > drivers/edac/skx_common.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/edac/skx_common.c b/drivers/edac/skx_common.c > index 46be1a7..8c0165b 100644 > --- a/drivers/edac/skx_common.c > +++ b/drivers/edac/skx_common.c > @@ -615,7 +615,8 @@ int skx_mce_check_error(struct notifier_block *nb, unsigned long val, > > skx_mce_output_error(mci, mce, &res); > > - return NOTIFY_DONE; > + /* Advice mcelog that the error were handled */ > + return NOTIFY_STOP; > } > > void skx_remove(void) > -- No, we won't be doing that anymore. See here: https://git.kernel.org/tip/23ba710a0864108910c7531dc4c73ef65eca5568 it should appear mainline soon-ish, I hope. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette