Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp47259imm; Wed, 5 Sep 2018 20:55:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZsWsIsnAUU7+hIWYC5EtEHYSCz64UX5XEMo5rsVK5Cs512TwgLgcPX48xNx7bNE2TBA4XY X-Received: by 2002:a63:1b07:: with SMTP id b7-v6mr836360pgb.444.1536206107594; Wed, 05 Sep 2018 20:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536206107; cv=none; d=google.com; s=arc-20160816; b=pR2Na+kbC2RJOfE4jGGiM9QgSn+PON+o+DY8/38pgtk2sK0tcFVb+Yu2X35+r4svqQ qbfM732NQ6hsXoH69Ajkb9CNX2Lj0aNQ2Cl8Y53aRwoGwP9V57mU3MiJOZrp+S6v8qZz oCTNPMLLK00KEEuK2l1jNqJoOvAvWw/JCELiLQYz5hHk/30tj5FQ5GzJgPYcUPAT2ty+ fbNZlJk4fxPycJaKuOEj2PN5tA2lAh5YCaTePPYtMxgAibcgeCF5422Ry8wiAsZ21LGb L6/qM6ppt4CxG4ZEcFrvYYZOSV9hOAqJw9oU5I45Yw5O7N0HrZpdVfUWXsPoCzMvgvkO Xr1g== 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=t6ihxKz6qTwkuii9jY2RtA9FSD1k4USqvIB16OXfxkY=; b=k8LXnf81IqKKc7yhdQ4EjWhOgDmOGHOCbjo7vw71Rb8+FxtieXLlxGbR0JW7g54Eyw LSJWjwiVTX2USKQFDISAY2RT2SfB0jrZbXx/RaHYCPlVvdSYl48E1wBdAvU6TBHnEC3B PkNA+ys9bb8RlC9FyzUKnpNQVChCXQymLnERiuzo06kX1UeRcWS5eJeYkTi2/jB6smWe /fyDB6FuhQjyUiodXbMSQ5bvZp8TQWn6uNqsAstJjgE9zRkThJGA/fCRegQu39yAAlTn 38Rb/x8XmvCMMtDdwi3/fPx/sOJtAkcYUb3/0pBVDX+yMq5YKzE9gJReR/PyTaCiIYjT rRPw== 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 c10-v6si3566006pla.450.2018.09.05.20.54.52; Wed, 05 Sep 2018 20:55:07 -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 S1726575AbeIFI02 (ORCPT + 99 others); Thu, 6 Sep 2018 04:26:28 -0400 Received: from smtp17.cstnet.cn ([159.226.251.17]:54228 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725804AbeIFI02 (ORCPT ); Thu, 6 Sep 2018 04:26:28 -0400 Received: from [172.20.20.131] (unknown [182.150.46.145]) by APP-09 (Coremail) with SMTP id swCowAB3We6LpJBb3JIuBw--.22962S2; Thu, 06 Sep 2018 11:52:44 +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> Message-ID: Date: Thu, 6 Sep 2018 11:52:42 +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: <20180905131427.GI2237@zn.tnic> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CM-TRANSID: swCowAB3We6LpJBb3JIuBw--.22962S2 X-Coremail-Antispam: 1UD129KBjvdXoWruFyDGrykAF4DZFy3Kw45ZFb_yoWxuFX_ur 4xC3s7u3W5Aw4kWw4fKw1FgrW2gayjqr9Yk3s8XFW5Ka4Ik3sI9Fn0ya4jvw48KFsIvwsa 9FyF9F17t342vjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbVkYjsxI4VW3JwAYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r1j6r4UM28EF7xvwVC2z2 80aVCY1x0267AKxVW8JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r4j6F4UMc vjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwACI402YVCY1x02628vn2kIc2xKxwCY jI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r 4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF 67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2I x0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Wr1j6rW3Jr1lIxAI cVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2Kf nxnUUI43ZEXa7IU86VbDUUUUU== 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/5 21:15, Borislav Petkov wrote: > On Wed, Sep 05, 2018 at 08:59:24PM +0800, Pu Wen wrote: >> If CONFIG_X86_MCE_AMD=n, mce_hygon_feature_init will call the other >> one mce_amd_feature_init which is a null function and located in the >> else branch of "#ifdef CONFIG_X86_MCE_AMD". The compilation is OK and >> the kernel will run without MCE support. > > So my question was rather ironic but I guess irony can't travel through > mail. So let me paraphrase: is that a use case you wanna support? > Because I'd advise very strongly against !MCE kernels. In most of the normal use cases MCE is necessary. Rarely in some cases such as for test purpose MCE may be unselected. -- Regards, Pu Wen