Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp666925pxb; Thu, 23 Sep 2021 08:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7mDlfYTk4amePiYef42RuPBohgPSMpSRLXzqDWQpC8ZExaaawi+Xt9F5D7wcE6rBZbDIw X-Received: by 2002:a92:d30c:: with SMTP id x12mr4142180ila.245.1632410066557; Thu, 23 Sep 2021 08:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632410066; cv=none; d=google.com; s=arc-20160816; b=psmxdSbARu26sCiiUQQJOHnsj7B9J/l2+wL0yye62s/EUokm8bQ2AaaG0BFnA/GM2W NMYt4DYaP+Nka+XGbbBBzGhMX09Ywla23jEb1FmO705qYNRZ4CFSsXPrIKhaiiIMpvNl t0ALOaCWEcXksugejqMjSaI6qp84qVhRiPE/gHOpoI7dPi6Smyl7T8lDDnuoVP5KhF/q lVK+OEF3H7p/eafBGe2QnFy7B3Knt4WgVuJOPqh0CGbjOwqZG5kz4K1SdlegXnOTi7Se Hdo2MU7Gy1TkDNKJvtFh2EQxtxICfQl5xPXJLjxHlCSAUrhDSx4r5CjCtU811yQY/PNC O4kw== 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=83PeQFJnLC9Hj90LilkIUnPUeYf0Sh9043yi957lXII=; b=tsJQROwL+P9IUpw7cAuiyHOiuJjSMkNdNqBOH26wGNlkhMgfQ8oYJkcpxyDOb9kEfD E5erVuG/U3xYcto3NwZoq+FaNEpd1Bho40elWuwbGH/p0SgWllmtU6j4vyiL9G69j4uM mBo3q09buOhu3dQxwKkTzKGdb7BagIB29kOm5xWGr4qGMLO1MGZx9a4oodZNU8XXm9Yp IkJx0my8oBOwkAqQm1R2JynXPWji5Fua27vFrE+ZuSWcyw46heKV1Ui/k76wcpP0CFoj RAI+WaBQTtl2sds5xQtvXUgL/fY5YntcTJFrz0azQMxidkWNI1eDLyCh/aCunBFYSeg8 o7HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=EOdiwBsg; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si6528017ilt.68.2021.09.23.08.14.11; Thu, 23 Sep 2021 08:14:26 -0700 (PDT) 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=@alien8.de header.s=dkim header.b=EOdiwBsg; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241935AbhIWPMu (ORCPT + 99 others); Thu, 23 Sep 2021 11:12:50 -0400 Received: from mail.skyhub.de ([5.9.137.197]:56704 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241890AbhIWPMu (ORCPT ); Thu, 23 Sep 2021 11:12:50 -0400 Received: from zn.tnic (p200300ec2f0d6800d149a76d0b562da3.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:6800:d149:a76d:b56:2da3]) (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 759A51EC0516; Thu, 23 Sep 2021 17:11:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1632409873; 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=83PeQFJnLC9Hj90LilkIUnPUeYf0Sh9043yi957lXII=; b=EOdiwBsgoW8r0WQd+CcHBTUJnLZ4XXWxZtZCicK0cRsS62oDZCj+xxXLcwtZbUMJTWpGMg NEUejqJilT/OeIlAx7mdK21phli7Rh8bLxClbFzAao3BgzvHESPGBxVdxvfaK/hQAHU/9b HyB3BYS7MwlWELZF+S93YPotVo7p2f0= Date: Thu, 23 Sep 2021 17:11:08 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: Tony Luck , X86 ML , LKML Subject: Re: [PATCH 4/4] x86/mce: Get rid of the ->quirk_no_way_out() indirect call Message-ID: References: <20210917105355.2368-1-bp@alien8.de> <20210917105355.2368-5-bp@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 02:51:49PM +0000, Yazen Ghannam wrote: > On Fri, Sep 17, 2021 at 12:53:55PM +0200, Borislav Petkov wrote: > > From: Borislav Petkov > > > > Use a flag setting to call the only quirk function for that. > > > > I'd like to add another quirk function. First revision here: > https://lkml.kernel.org/r/20210504174712.27675-2-Yazen.Ghannam@amd.com > > Do you recommend this create another quirk flag and follow this patch? Or > should the quirks be grouped together somehow? Does that quirk match machines with mce_flags.smca=1 per chance? :-) Also, your test: + if ((m->mcgstatus & (MCG_STATUS_EIPV|MCG_STATUS_RIPV)) != 0) + return; should be + if ((m->mcgstatus & (MCG_STATUS_EIPV|MCG_STATUS_RIPV)) == (MCG_STATUS_EIPV|MCG_STATUS_RIPV)) + return; methinks. Unless I'm misunderstanding the erratum ofc... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette