Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp420448imm; Thu, 6 Sep 2018 04:47:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbS3Lp3vWfzQ/i1Rds1QjKicUe8CpUBir4Z2WuTaBeHFbcmh+ajXvSfgFVmKSAjhix1j1hR X-Received: by 2002:a65:560a:: with SMTP id l10-v6mr2334516pgs.130.1536234425381; Thu, 06 Sep 2018 04:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536234425; cv=none; d=google.com; s=arc-20160816; b=vOjeo2yzzp8UkGwAnAolapD5bOkzgg+n3KSQBYiaDxCHKAxFTYTARk+n8POsMhkrvK +tUmXwJwYcKSCEiuJlRrfN47Xk36/EDMf15azYZyXpo73iC8IcllB6egqlcWOL/QVB3Q yRQlY1IN3XF6BlHbzKynHhdevezAtU4SDI0cPKF5OEPxSYqFCLoqcw9+BELEyDQk1mC0 SWZvNXGYhGMwvtF1CP8D8o1LMabjGWmnv4S6OpdIQvfz1LRCoWBUF7ly5kJXUH4AZVeg LQ+WamHigyHpxhRmJOPyuHiu28H/ynOaWjs3d25GWl0Fuf31HAoFjj+3whBZomPDdTyF 2nLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=gpaKSegd1yzS89eDnpqybHwxFx6GGOfHoq3tYG84z1o=; b=bV/bu0CS94J/5Z2WW1ioz0HiWj2XBCUZ/uryqLDsHPer2RAT9it+/KEz2UfsIRd4TV 0aVmFQTgczJnqrDDi53r1ZqaBRUekj+vvZSw2D6TeGer1TPZqzdljXyLPbWqNsGrmSBJ 7jK8vDrvdmvnUJL2pvLlc99kDhkey3QyynjHT6F8ALlAT/8ghMmEgPYl4zfHO3rqNHqg TSjPhPpvcxvMkp6yQxJUKOVc7tW1RJ66A3JA3QDnP6ypXEv1gQi7sHcwAfduT7/rO7nY T0dC6v9pIr/1b/lLTH+Z+aD3iQ6G8QPiFsBQ/9p2szmKigP5RNdpLGYZt2SPTZqcoWwe uZAw== 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 q26-v6si5033797pgl.556.2018.09.06.04.46.49; Thu, 06 Sep 2018 04:47:05 -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 S1727700AbeIFQQX (ORCPT + 99 others); Thu, 6 Sep 2018 12:16:23 -0400 Received: from smtp20.cstnet.cn ([159.226.251.20]:53343 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725919AbeIFQQX (ORCPT ); Thu, 6 Sep 2018 12:16:23 -0400 Received: from [172.20.20.131] (unknown [182.150.46.145]) by APP-10 (Coremail) with SMTP id tACowADHy19FEpFbEgpTCA--.23655S2; Thu, 06 Sep 2018 19:40:55 +0800 (CST) From: Pu Wen Subject: Re: [PATCH v5 10/16] x86/mce: enable Hygon support to MCE infrastructure To: Borislav Petkov 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 References: <20180905092234.GC2237@zn.tnic> <01604799-b993-e530-817c-ad097d343fc4@hygon.cn> <20180905131427.GI2237@zn.tnic> <20180906083924.GB10768@zn.tnic> Message-ID: <634f371e-1a2d-5b23-c9b0-5f32a8ee4cee@hygon.cn> Date: Thu, 6 Sep 2018 19:40:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180906083924.GB10768@zn.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CM-TRANSID: tACowADHy19FEpFbEgpTCA--.23655S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZryxKF48CFWUCr1Duw17ZFb_yoWDCrb_u3 s7WF1DWw15CanFqFn7Grs5Zry5Kr42kFyFvrWqqFZFv34fXFZ5C3Z3GrWYva1UJanFqr9I 93ZxXr1av3W7ZjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbVkYjsxI4VWkKwAYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r1j6r4UM28EF7xvwVC2z2 80aVCY1x0267AKxVW8JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26F4j6r4UJw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1l c7I2V7IY0VAS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJV W8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF 1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6x IIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAI cVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2Kf nxnUUI43ZEXa7IU5cjjPUUUUU== X-Originating-IP: [182.150.46.145] X-CM-SenderInfo: psxzv046klw03qof0z/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/9/6 16:39, Borislav Petkov wrote: > On Thu, Sep 06, 2018 at 11:52:42AM +0800, Pu Wen wrote: >> In most of the normal use cases MCE is necessary. Rarely in some cases >> such as for test purpose MCE may be unselected. > > Test with MCE disabled? Please elaborate. 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. 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. Actually in normal use scenario and in real product the MCE should be always selected. 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? -- Regards, Pu Wen