Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp610219lqd; Wed, 24 Apr 2024 11:21:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVM/XEy3UmkGZCLFuZgQVZXUmvMJOX+gfQ+7KndbBT6sGhNfukfVB0PKWYY3HLoXXv1DHq7QX9w68fMehxBpQcS5Lc+H9EV5jMCnvUu9A== X-Google-Smtp-Source: AGHT+IH4ZX6jLBoHk0GY3gug6AxHn3FhK6lag/bPvRYvGYKPAc9pjq6pVtO+8ESGvWWY2PPfmZa/ X-Received: by 2002:a17:907:928b:b0:a58:9096:ba43 with SMTP id bw11-20020a170907928b00b00a589096ba43mr2282820ejc.15.1713982874536; Wed, 24 Apr 2024 11:21:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713982874; cv=pass; d=google.com; s=arc-20160816; b=0a6UfmIL5Q3metMRUCEKQBgnNdDziHYCSGu7b3acMZKYFigcEQsCho2+VNMGO1Y0l1 ErXWL9NWLbmQCfjBNdh5ypuCPIc4RsqdmbJPlWlWS2rhUidRCFlGwb98j2i9pN+i7Eeo s3GFFqZevOJFHG7mFns2nbOmlVzH6KjaZHcCRKP8miYPZgA3SOEYE1d+mRywa9U++A13 KShVWu8b+ca9aKbXQjo0OCoFeYUlW9fbj3GPIVYu2kdC21gAQ36vkpYyXyxZxqnNgjM/ S6eMS5OGy9ggRP5NEWRuRvYrfix9RwuX4kXSk4oZYHwv139ML6XHWA2hbtT70jFC6Euu iB/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ZMZ+iBBjgXGkrWbxy4omu0GO/EshQYhOfHqHvX+EZzg=; fh=EJOGqQfeQAsZ0hRyPOWyCGePhwxaBnsHU0wh4XbR9V0=; b=Kqsjz5FGTR0Y6CvCBR/SbQOjbgZ9pqISU6KiwPC/wKr3/HJgRQbM0odcVKJBCEY8Jv 9txNJmgIg8wVEQKC3povtgnsqik6TFQwU4q8cfZNrJe9ubz1Y7kzIsQK48DpXVy9kDZX DgYsDfwN+qhI4xNBmLvAc4JU71jTKLupOLPQmgrpMxLTyp2Z3FA1uVLBwwAGZvNGA9DQ F47XTPjuKxahoeQhBvvDqL2S5ADzqqw+NLOKdT16k5qOTgmJey0uqWW52MrLPPptCUpe axzF/Vm1eCvPfrjhdgAtdhv7+ZHbfHbVFZXluAEAsKcjqwJJb9wZjYeFeWQk8SDVfxYa WnSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UCkIxdrn; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-157481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fx24-20020a170906b75800b00a55b01bd968si4704159ejb.81.2024.04.24.11.21.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:21:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UCkIxdrn; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-157481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 411331F22106 for ; Wed, 24 Apr 2024 18:21:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C51B181D1B; Wed, 24 Apr 2024 18:15:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UCkIxdrn" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4CC218133A; Wed, 24 Apr 2024 18:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982523; cv=none; b=BRP3Ys80+ls+V+WHxDQO1lX7eHZ9+rB7Vde6ow27+/o5kd5Ovv+2QYtErUPW9+Sj5xteQh6aI2QIlWDt9B7KMD0sk3qTiiLZ9AAE/2j8qDFFkDTHfPptZ7anO6+7Iu13AY2mf3xeTyDcVxEMMBZkdr2aoUN4fnf1FATfIvWt4Hk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982523; c=relaxed/simple; bh=J5hiIdzXZvx6tAF17llwzadEEbvMd4HK2TJQKlWWZVo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FaXSCY8QBPkWwI8LopEpsyT8tBZ0tgJVdgglJFRR0h4MBogadx4fTU28dp1ZdOFoNOtLvuFxQgvTc9JEt6cqBZsLpurMeqSvOAZGo9pzC2AaNQsQ3raPt8Vfh2reJNXZEyYy8+QKhNs5ltZ8JdjbDI6fL0R9TLaQVVlBPKSONPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=UCkIxdrn; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713982522; x=1745518522; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=J5hiIdzXZvx6tAF17llwzadEEbvMd4HK2TJQKlWWZVo=; b=UCkIxdrnsmSKj+DzxJkQEwIKAcyqo6wsFZCiAqIxec68E7E9KJCxRCHE DDZyMOUqGJfblyU1N7aeGBfpa8fCYnXwtTsKRbvCUTZ5sPXBDD1+B+2F2 QpCwekAVzihJP6UByVRjlunpbRQoK/mxIMz41vZkD/fHamqFTeCN2R3SO G061f5cE6K7ZKUKxKvJg2BMQgN1GSAhsMq1aKbsZ38Y6Uj8htpRmMfGQL TUN9KJWNf1P2VZeC01R+CNv9y+HYhAqEOWWaIGzNCIPl6l8BmFI5x6lmB pOgJHCsWBJzVNSswVO1+FxyfWlCSyvhv1zrpcohdYX/OB3t5tOMrwBNER Q==; X-CSE-ConnectionGUID: 42oprxY3Ro2AggsFbfmsKw== X-CSE-MsgGUID: 8r4wpvh7SVeAG1HQzMzQpw== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9481994" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9481994" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:12 -0700 X-CSE-ConnectionGUID: u9kpHmymT3qBVaY3N+AmTg== X-CSE-MsgGUID: sLnf+kpDTLyA3e6CtDkmrg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262744" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:12 -0700 From: Tony Luck To: Borislav Petkov , Tony Luck , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH v4 32/71] x86/mce: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:11 -0700 Message-ID: <20240424181511.41772-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240424181245.41141-1-tony.luck@intel.com> References: <20240424181245.41141-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck --- arch/x86/kernel/cpu/mce/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 771a9f183260..ad0623b659ed 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -47,7 +47,7 @@ #include #include -#include +#include #include #include #include @@ -1948,14 +1948,14 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c) if (c->x86 == 6 && c->x86_model <= 13 && cfg->bootlog < 0) cfg->bootlog = 0; - if (c->x86 == 6 && c->x86_model == 45) + if (c->x86_vfm == INTEL_SANDYBRIDGE_X) mce_flags.snb_ifu_quirk = 1; /* * Skylake, Cascacde Lake and Cooper Lake require a quirk on * rep movs. */ - if (c->x86 == 6 && c->x86_model == INTEL_FAM6_SKYLAKE_X) + if (c->x86_vfm == INTEL_SKYLAKE_X) mce_flags.skx_repmov_quirk = 1; } -- 2.44.0