Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp874732imm; Thu, 6 Sep 2018 11:26:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZXRdFSQnbQIGQmK1apIpoPlufex+JcKRwzyO2i+vSkIgpxRlHuJDYSPTBXi8Tjtq7PjduO X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr4079265plp.18.1536258395073; Thu, 06 Sep 2018 11:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536258395; cv=none; d=google.com; s=arc-20160816; b=iDtkAxZmxqcJydzWVvE4YDpqGgtndyeZ7mT+zZTiKVCeDRkhQzPYxKZl4dn2moFoWG xmpT2I6h/Omar9bEjyPuysCBGkoQwk+O+Z0PT2WPYfVHBa7cWpcNOQg8jtyuZ/KnJL/x 6GHqkBvNSegpHK3AUIsMmXBMDi7Hz1yCg84HBcHIQabLZ5eGiF6nHzoxrlb5u6VzLX3T urub46rbYZjkfDWYj24Y4jJT7DkstdwaxxISfcQM/TR7esiAPLUJjdc7QwtV3c6PxQYb y9fKmU4DXWBvtALsylVeEW4ILxGsCuXM825/A8bxxCh6DVZN4msZ1dFooP18sjRQ4Pcr sAKA== 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=XBdlnSifTJSxqEwIru7bhAQFOcMM6VvrTLVi9u6DlD4=; b=ADPEhJFRVJHd1phhtKlNHI9RdJX0aLsUwRd3ia7GnM6MdWJT/L6ewaBUrW/jnRxx9y xJGqZU7a9PlYteCWskeAqxFv+TaY1vEmYq+41AsncBqpNi7kR4UWbvSt8gaUAsH5miV7 MUITB22oj1t7/O7OTDjqVqGJL4RhLM4Hwuc6rn9SI/C8fc76WsUftD5bj7qxLMiAlRur 2sT2A6YSRTfU+zAFjGiCOtZxZAr8I62YPnI1jZMUkvkFYZIrUzbv78XaPL7qYRXycIJC Fskf+dyhUgAPC3z8Wy/yjeSid05pSTNZBlpZZeaine4C/F5aY7RgOT8WN91VnILpqTQG 2WVA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k127-v6si6213571pga.407.2018.09.06.11.26.19; Thu, 06 Sep 2018 11:26:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728410AbeIFRFc (ORCPT + 99 others); Thu, 6 Sep 2018 13:05:32 -0400 Received: from mail.skyhub.de ([5.9.137.197]:51260 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbeIFRFc (ORCPT ); Thu, 6 Sep 2018 13:05:32 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6pyOgYqwAKoj; Thu, 6 Sep 2018 14:29:58 +0200 (CEST) Received: from zn.tnic (p200300EC2BCBB900329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bcb:b900:329c:23ff:fea6:a903]) (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 E32C61EC02AE; Thu, 6 Sep 2018 14:29:57 +0200 (CEST) Date: Thu, 6 Sep 2018 14:29:56 +0200 From: Borislav Petkov To: Pu Wen Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, pbonzini@redhat.com, tony.luck@intel.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-edac@vger.kernel.org Subject: Re: [PATCH v5 10/16] x86/mce: enable Hygon support to MCE infrastructure Message-ID: <20180906122956.GF10768@zn.tnic> References: <20180905092234.GC2237@zn.tnic> <01604799-b993-e530-817c-ad097d343fc4@hygon.cn> <20180905131427.GI2237@zn.tnic> <20180906083924.GB10768@zn.tnic> <634f371e-1a2d-5b23-c9b0-5f32a8ee4cee@hygon.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <634f371e-1a2d-5b23-c9b0-5f32a8ee4cee@hygon.cn> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 07:40:52PM +0800, Pu Wen wrote: > The first is the compilation test. Test the kernel with both MCE selected > and unselected to see if is the compiling process successful or not. This is a kernel compile test - it has nothing to do with actual machine testing. > The other test is functionality test. For example, during the MCE BIOS > development, to see if the MCE functions OK, it may need to select and > unselect MCE in kernel for double checking. Say what now?! What testing do you do if you boot a kernel which doesn't even use the functionality you're testing?! > Actually in normal use scenario and in real product the MCE should be > always selected. It better be! > To ensure this, I think there are two ways as below: > - Select X86_MCE_AMD in CPU_SUP_HYGON config entry, it also cater to the > first test scenario, but meanwhile lacks flexibility. > - The linux distros(Ubuntu, CentOS, etc) ensure that X86_MCE_AMD is > selected to the default config file, and indeed they do. > Which way is better? The first way but change that dependency to CPU_SUP_AMD because there are people building their own kernels and don't run distro configs. And you need CPU_SUP_AMD because you're using their code. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.