Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1018085ybi; Thu, 30 May 2019 10:12:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBSdZVl9Ly2NhPJN6T5jtXkA3ks5e3VL3MTQnWEJucg+RFTx3x8FLmfkoDJ/dJrZkH8BQ5 X-Received: by 2002:aa7:8d50:: with SMTP id s16mr4756396pfe.96.1559236371704; Thu, 30 May 2019 10:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559236371; cv=none; d=google.com; s=arc-20160816; b=nSXCmoYT/5SBgvMZedsoAgnbTXq7SNW19VjaBXyRu6bTHycvHpq+vkh3JqDLNvDESv rPEwRx8u57bfvIRg1d/CuZLdaPlU2caNGb6yQfB9v9rZNCfcMKhPoXYqOiq613pwEC1+ Ov9Z+0jMc4QXpf0bqnhd7wBPLGMk8ozaaWwv5Ymgx/AqTFMy301ABVivBwkDVkPUtQj+ r9p5mf1m4QV/9/hg27PiKED7W746itHkcbIODs9hX6Zzvx2LBhUUi1Hgkj0GAfTYmhAf Fxcr5oUp7lNijzeAjK58FM+r2VDV7/aVmJIQRrNczkWCxH57i592gpVQX0p3RNGda+ba jfDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=E1b9QKq+TbbZJQLfuEX8LQ8+eGgUuSpztB7f5sG2x4o=; b=skPFUm1zeapnc5AekE5IARlIJWgOUZ8gwF6dfkJbeyEepQ8hf7Lb4HtSSQQaAq7T9B ApKVzNSWcjI7ENqvfqL0kwwKlnZf3T9qohEUPqsyFlrqeGLaE0gzJoyfahUKBfClTLTz Oz177xw4aplYFL6Oz9gK/DG6OSPI9kW2FL1p68+gaIroEymWTtqWR8GOvuqxQx1ZHchB GsEu/NQ2AmN6P/fJ7IucRLZYUiIxqSSFUiJa7n4HkfP4eoAtzyyZOZXPYHVhlxKnY/xn vNc9CpDw3JUtSprEXkALIGVr7FY28W7TSCG0p+OxOkBmj3sBYQmpAypWpYamrw3TEJi9 zS+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d191si3491481pga.454.2019.05.30.10.12.35; Thu, 30 May 2019 10:12:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726887AbfE3RKq (ORCPT + 99 others); Thu, 30 May 2019 13:10:46 -0400 Received: from mga14.intel.com ([192.55.52.115]:64258 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725961AbfE3RKq (ORCPT ); Thu, 30 May 2019 13:10:46 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 May 2019 10:10:45 -0700 X-ExtLoop1: 1 Received: from araj-mobl1.jf.intel.com ([10.251.6.93]) by fmsmga005.fm.intel.com with ESMTP; 30 May 2019 10:10:44 -0700 Date: Thu, 30 May 2019 10:10:44 -0700 From: "Raj, Ashok" To: Tony W Wang-oc Cc: "tipbot@zytor.com" , "bp@suse.de" , "hpa@zytor.com" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-tip-commits@vger.kernel.org" , "mingo@kernel.org" , "peterz@infradead.org" , "stable@vger.kernel.org" , "tglx@linutronix.de" , "tony.luck@intel.com" , "torvalds@linux-foundation.org" , David Wang , Ashok Raj Subject: Re: =?utf-8?B?562U5aSNOiBSZTogW3RpcDp4ODYv?= =?utf-8?Q?urgent=5D_x86=2Fmce=3A_Ensur?= =?utf-8?Q?e?= offline CPUs don' t participate in rendezvous process Message-ID: <20190530171044.GA18559@araj-mobl1.jf.intel.com> References: <985acf114ab245fbab52caabf03bd280@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <985acf114ab245fbab52caabf03bd280@zhaoxin.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 30, 2019 at 09:13:39AM +0000, Tony W Wang-oc wrote: > On Thu, May 30, 2019, Tony W Wang-oc wrote: > > Hi Ashok, > > I have two questions about this patch, could you help to check: > > > > 1, for broadcast #MC exceptions, this patch seems require #MC exception > > errors > > set MCG_STATUS_RIPV = 1. > > But for Intel CPU, some #MC exception errors set MCG_STATUS_RIPV = 0 > > (like "Recoverable-not-continuable SRAR Type" Errors), for these errors > > the patch doesn't seem to work, is that okay? > > > > 2, for LMCE exceptions, this patch seems require #MC exception errors > > set MCG_STATUS_RIPV = 0 to make sure LMCE be handled normally even > > on offline CPU. > > For LMCE errors set MCG_STAUS_RIPV = 1, the patch prevents offline CPU > > handle these LMCE errors, is that okay? > > > > More specifically, this patch seems require #MC exceptions meet the condition > "MCG_STATUS_RIPV ^ MCG_STATUS_LMCES == 1"; But on a Xeon X5650 machine (SMP), The offline CPU will never get a LMCE=1, since those only happen on the CPU that's doing active work. Offline CPUs just sitting in idle. The specific error here is a PCC=1, so irrespective of what happens We do capture the errors in the per-cpu log, and kernel would panic. What specifically this patch tries to achieve is to leave an error sitting with MCG-STATUS.MCIP=1 and another recoverable error would shut the system dowm. I don't see anything wrong with what this patch does.. > "Data CACHE Level-2 Generic Error" does not meet this condition. > > I got below message from: https://www.centos.org/forums/viewtopic.php?p=292742 > > Hardware event. This is not a software error. > MCE 0 > CPU 4 BANK 6 TSC b7065eeaa18b0 > TIME 1545643603 Mon Dec 24 10:26:43 2018 > MCG status:MCIP > MCi status: > Uncorrected error > Error enabled > Processor context corrupt > MCA: Data CACHE Level-2 Generic Error > STATUS b200000080000106 MCGSTATUS 4 > MCGCAP 1c09 APICID 4 SOCKETID 0 > CPUID Vendor Intel Family 6 Model 44 > > > Thanks > > Tony W Wang-oc