Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1468041pxb; Thu, 14 Apr 2022 06:57:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqJMQ4z3KepA0wIHTNkFINvJ8VRD4ZEjdWuiIZJb62PDlHYX/odsw6XErgXuR4fqb+qJFw X-Received: by 2002:a63:1117:0:b0:399:2df0:7fb9 with SMTP id g23-20020a631117000000b003992df07fb9mr2486102pgl.40.1649944646225; Thu, 14 Apr 2022 06:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649944646; cv=none; d=google.com; s=arc-20160816; b=evXMyAV5SU+2cY74h9SZUytrs2jzRG1shvfoXeFsI9WPLUgBNQm1iWeqFs4sywAcBp UY6UnEGXnJbRXjQgqyqqEySYrAf3O81i/wq4GFsTTXr/vqLIZ4AnRBHMix1WW4ZneQod dCOQAAR0L6AOk47dr2B24rRTq2k//U1W66WkOswZd+/H45KlPaBCaFKZsLGmvXk24Jsd ZQUi3RNmEo9jVT+e8CKGe3G0Vym9z694T1je/T3GWu9HxLrkHsb6LWvo9j5kVyyuwCRo R37m8y3aYC2L0AvUveWHcHflEN0t0RvRNhKYbJDTDlUxtmYDyyb4T1PcD4O9lVZ2/9s4 QxTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ICNrImL3BPHaV9p9X4ItFKOFVwiO7Iw4dxLsgdv2I4k=; b=oSOZPE32SLDVOYTX0luq5st2Swvb6MOC08aRWzVXkU24Sog0K0n/H3JEUw5i60rGhl tg0eWbi3T2XLGu+Y+uT1l5sluV2J/NkRL9Qb6eSKZvz+3IX6IYFpKYbLzHiGeslXp0j8 axkyH5iNYEpfy4SXnGSWK7uTVV34jg8uj3mxlnyQAZqXuSgwjk6VzG9CM/ACBMh+Nrrj nkdAq+hxS6RA/rUN7//nNp4Lbe9X50WxkZ0NmFZSwJY1NfvJN8Lf5m9C/TYMTiDVLFWy 4YtIzgjx8KzMP6AJjaaPFjvjW2PGORQ2Wf5Dmw9mKGxlDDYbnMQCU3jFLbOBbOvZBHL9 Y1BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ROxUbYrJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a056a00125000b00505d4875450si13468pfi.112.2022.04.14.06.57.09; Thu, 14 Apr 2022 06:57:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ROxUbYrJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231264AbiDMUWn (ORCPT + 99 others); Wed, 13 Apr 2022 16:22:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238582AbiDMUW0 (ORCPT ); Wed, 13 Apr 2022 16:22:26 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8DF540E7C; Wed, 13 Apr 2022 13:20:03 -0700 (PDT) Received: from zn.tnic (p2e55d808.dip0.t-ipconnect.de [46.85.216.8]) (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 57C251EC0373; Wed, 13 Apr 2022 22:19:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1649881198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=ICNrImL3BPHaV9p9X4ItFKOFVwiO7Iw4dxLsgdv2I4k=; b=ROxUbYrJ+NJijs7vAKnog2D7vsTno17HTR9C9/66sCiW2LmVhkJeGPUe3BSeXKPCnAvCst 1ttjSALKGrneAHtO/UlckkCrW1+YBEd1XE1d3hGDaof9YJQ2TcN1NMxtZCNOA8PAWimLXP jN0j778G+UODDLv6bm/yxz3qxBO2v2c= Date: Wed, 13 Apr 2022 22:19:58 +0200 From: Borislav Petkov To: Smita Koralahalli Cc: x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Luck , "H . Peter Anvin" , Yazen Ghannam Subject: Re: [PATCH v4 1/2] x86/mce: Check for writes ignored in MCA_STATUS register Message-ID: References: <20220214233640.70510-1-Smita.KoralahalliChannabasappa@amd.com> <20220214233640.70510-2-Smita.KoralahalliChannabasappa@amd.com> <2c4c2359-f662-cd5d-e9ab-da5c71ca7dc9@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2c4c2359-f662-cd5d-e9ab-da5c71ca7dc9@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Wed, Apr 13, 2022 at 12:16:26PM -0700, Smita Koralahalli wrote: > > diff --git a/arch/x86/kernel/cpu/mce/internal.h b/arch/x86/kernel/cpu/mce/internal.h > > index 4ae0e603f7fa..7e03f5b7f6bd 100644 > > --- a/arch/x86/kernel/cpu/mce/internal.h > > +++ b/arch/x86/kernel/cpu/mce/internal.h > > @@ -211,7 +211,7 @@ noinstr u64 mce_rdmsrl(u32 msr); > > static __always_inline u32 mca_msr_reg(int bank, enum mca_msr reg) > > { > > - if (mce_flags.smca) { > > + if (cpu_feature_enabled(X86_FEATURE_SMCA)) { > Should this change be part of this patch series? Also, why mce_flags.smca > check won't work? Because you'd need to export it to modules and mca_flags is not something I'd want to export to anything. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette