Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1664091pxb; Mon, 20 Sep 2021 02:12:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8rVCKez12NPXDhevy8bW0+g01LGumiSKEdtETaT+hG5cwnN/vycc7Mx7rxN1dlflPXayy X-Received: by 2002:a50:cf08:: with SMTP id c8mr4682771edk.86.1632129165806; Mon, 20 Sep 2021 02:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632129165; cv=none; d=google.com; s=arc-20160816; b=xEtWCIi+Dzvc56bzLN3jubWBXQLkJZsIixS0N+yhBFPPhf53H4CYsUSgUQgbYYGNO8 27vFCzXtDDKAFjqBGPR+3WZz596RYx+ZK5W5e7/QPrzAJr267zi5zT3jitQENUgLl0/Z sXF5q7dRid/1GlBTmMxKmRsOGbX8cypXn6S2PS0qZUSWWZLL4oHdX9RYy4UAYf7CCojT fqqggP8kVj1RTBjna5LEVfXL276oaJei6QGWw0j/SZcb2THQc0bomi4WKGEGWk9BMWQY wbB+gKARwagLaGDRFwZhh+jRnabhmgpQh0AkCTObHeHRbNSNIGnvSzRsoUlnD/IuLEdZ BIHA== 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; bh=a5FxUyTuAG4hhQ9Xh8qVmi9JDTa85DEkglHIhk4r+Ls=; b=Cyzq0Pt/I9dZiXZLusNrd7JzwhDN2hQA4Qyn8rIYZTVVXxZpNNsZcPn1IXvXV4IPjE Z9wEC3psr735kvV8/1FDF4NukCuxz2m47ngBbkfNQ7G3I0Zy1DitM0qWa90upBK2almj FA3DFlKq7Fq0AzXBwZyIl5IJ4Lw8Iq5a0KE4I73boPSsOnCK39zF1iOJM5F4mgwSw0lT 2riKXivaJFgKY6i1LyuMNAravdS7ZpV0MOM5ercDBNJFeWFVlug44JG6RWBhFYoYzrWM 8y/SEGPv/Q+IF3/5MxSDj5j5Ah9IrhQYfAuxbJtHmW3fdajCb7dXQfInUHnuNE4XE9Xz 1Dcg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v20si14701778ejv.515.2021.09.20.02.12.22; Mon, 20 Sep 2021 02:12:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231172AbhITFHc (ORCPT + 99 others); Mon, 20 Sep 2021 01:07:32 -0400 Received: from mga02.intel.com ([134.134.136.20]:50526 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbhITFHb (ORCPT ); Mon, 20 Sep 2021 01:07:31 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10112"; a="210302825" X-IronPort-AV: E=Sophos;i="5.85,307,1624345200"; d="scan'208";a="210302825" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2021 22:06:05 -0700 X-IronPort-AV: E=Sophos;i="5.85,307,1624345200"; d="scan'208";a="555971293" Received: from agluck-desk2.sc.intel.com (HELO agluck-desk2.amr.corp.intel.com) ([10.3.52.146]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2021 22:06:04 -0700 Date: Sun, 19 Sep 2021 22:06:03 -0700 From: "Luck, Tony" To: Borislav Petkov Cc: Yazen Ghannam , 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=us-ascii Content-Disposition: inline In-Reply-To: <20210917105355.2368-5-bp@alien8.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 17, 2021 at 12:53:55PM +0200, Borislav Petkov wrote: > @@ -1793,7 +1791,7 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c) > cfg->bootlog = 0; > > if (c->x86 == 6 && c->x86_model == 45) > - quirk_no_way_out = quirk_sandybridge_ifu; > + mce_flags.snb_ifu_quirk = 1; > } Someday all these tests for random vendor/family/model/stepping could be refactored into a x86_match_cpu() lookup table (now that x86_match_cpu can handle steppings). But that's a topic for a different patch series. -Tony