Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1626190pxb; Wed, 9 Feb 2022 00:27:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRUQM5a21ve4m0XRNaKg3aH4gMDe5RH55ujOMMmtQBCHTbCo4bp+Ltzlc8f1cTu9OzGWSS X-Received: by 2002:a17:907:72d6:: with SMTP id du22mr840141ejc.643.1644395278760; Wed, 09 Feb 2022 00:27:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644395278; cv=none; d=google.com; s=arc-20160816; b=qVHeK2x0rkl3PEkxeXLrruX/GB5upPvcx5Pr7WfB20l3fZqB7JiCo0JwPd0wKmC9Ja 9BCy3yYZArVcE2S5mcdUjSJYhIxQ8MZ3zDnBwxGArh1cSa/Vp/VozzSdR6j15+go11Ut dF8Mgj0IAqacxqfdDoi4KTV2sjsHnfCPQsK8gwXtevGm91dq7Ip0aAOmfYIUEF8cihld 9DF68f2Ao6/6tscFfa3UtqlJXQOZ5sFtVYeWhBulhLfdIqvRRVWWma8LN8/qfFAi7e3e 3ieBge9eMVf1ZhgipHCOLa3K2jtHHhSTb3DXMkWHAuaCcf2nqcASVoEeAL0GkB+THPQp iDnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QucZOh+L0x1kuUchXX+XOyw1VcfuGS6zeDhpxjRwhpY=; b=rl5O7I5IgzQ90LhEJBw+cAKH+HYtoR47AUcK580uVyxU8zU3HT+TyjXtGaj5cUcP62 u36A8s+4rvR5E5PfyA3kp/Serxruhx9N+Tj8iFy7lJ70xWir38RUrQ8fdodItTCQrHZP l0q1xbhZvb/vm/O0raxFuroJqaUgXB2nF75QtgSQHk0IhEN7YVL1UM7MCf+hpyYjNJKp kbRHbHH0L3hg3WRmpJpiKRxaAmQ9W3TB7G1OsZJyD0ascCmhCMA4jCIiJEsCUoCztqL0 QZc9POEN1qtn/0nH5XxBnjtG0FmPwqm0igIQ1gayA8menM3zr+ITRF6/rZ/cKpYCIiYF gY9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=PkMkAHn3; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c27si10054961ejj.9.2022.02.09.00.27.33; Wed, 09 Feb 2022 00:27:58 -0800 (PST) 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=@google.com header.s=20210112 header.b=PkMkAHn3; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379339AbiBHPEm (ORCPT + 99 others); Tue, 8 Feb 2022 10:04:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379219AbiBHPEk (ORCPT ); Tue, 8 Feb 2022 10:04:40 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE6BDC061576 for ; Tue, 8 Feb 2022 07:04:39 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id k1so14754402wrd.8 for ; Tue, 08 Feb 2022 07:04:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QucZOh+L0x1kuUchXX+XOyw1VcfuGS6zeDhpxjRwhpY=; b=PkMkAHn32wn1oj3AjB6hNFd8JXghauWpEpUhkWEB1TdQMlLEZzITPQhav9n/jIiC1o RBQocoml5MwGgOej4MjSzRTyrkzZZW9RVklnf8oxfFu3kAX1TyL2IHWLRIBnmgBS8xmu PeMQq7QcNxlT8VGrBn82k6iXrbpcrYDDU8stssQuCCffOEqfmcHei1gHBmoBWvZ7Wp4P 8L/cnJS/GksURJ3mcjA9prf+QdEfh7WtZDD8BbaUNVc4fWp/xi+6SeDsar6t4x2dfYwO 9UJGoDUn8LuiwBj0qQ3aa6YRzFqwsKuDFnzrGJRdSVCHpbS1j1oUiykZ4DK86Flv97WU Ei5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QucZOh+L0x1kuUchXX+XOyw1VcfuGS6zeDhpxjRwhpY=; b=oRfmLDRhDaV2GhShesTZWXZy8td4iJc+XNtN7SDnTMHP3OLOec1dkifP9b2+9uUsIg jyl3mfRzTpp6Ltb56wniDlip86CPbqG6dlhaShfLeiIscr064at9DuNRJlR8K18QegCQ rq5o7P/8HAvS+Hh49HBpRAJpVE7yTroK3dT69yVSgBBkHIG47nHGgptDqUHsbY6F3k3E RKZqYGXQg/VgrUrBdqR2MwK9/3o5nGc0BocNSx0Fa86Ip4550H6rRupM0A8bNheXTryI XPsYLott7bhm8efJ0FeDK2RQ5yYSLzlIi5JgcN38NmQF4f6yyHcObs4UpjE4CloL5Xuj /vMA== X-Gm-Message-State: AOAM533qoWhPtCVGfz9w/LgROq3L7e8ZhO176WZJmjAcR3HpIdOb5pmj WcTTo51uBvLWE/tHcH2oF1kQ8II/yN1pf8YNWgdq/q/qurQr6w== X-Received: by 2002:a5d:5848:: with SMTP id i8mr3861203wrf.342.1644332678074; Tue, 08 Feb 2022 07:04:38 -0800 (PST) MIME-Version: 1.0 References: <20220207043640.2829295-1-juew@google.com> <5293d81863b54d6ab0835012201d44da@intel.com> In-Reply-To: <5293d81863b54d6ab0835012201d44da@intel.com> From: Jue Wang Date: Tue, 8 Feb 2022 07:04:26 -0800 Message-ID: Subject: Re: [RFC] x86/mce: Add workaround for SKX/CLX/CPX spurious machine checks To: "Luck, Tony" Cc: Borislav Petkov , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the feedback, Tony and Borislav. I will send out an updated patch. Thanks, -Jue On Mon, Feb 7, 2022 at 1:51 PM Luck, Tony wrote: > > >> The erratum has made its way through to the public specification > >> update yet :-( > > > > You mean "has not"? > > Curse my pathetic typing skills ... "has NOT made its way" is where we are today. > I don't know when that status will change. > > > In any case, I guess you could say something like: > > > > pr_err_once("Erratum #XXX detected, disabling fast string copy instructions.\n"); > > > > or so and people can search with the erratum number later where the doc > > will explain it in more detail. > > When the errata (plural, there are separate lists for SKX and CLX) go public > we could update this message with the names. We've found this message in combination with logging about the faulting process info in do_machine_check helpful when analyzing the originating context of the MCEs. > > -Tony