Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp624610lqd; Wed, 24 Apr 2024 11:47:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUB6OTOajabRbyBbyVfwNvTPBaF/LUEtZOCkcK93bFBuSHbiq/TkpyYyp4QOKChGzHtOC/x7SBphSd39gB99JPWjx6E/bHp9omiaCUQ2w== X-Google-Smtp-Source: AGHT+IGAL08FBbOFuq44qCXO+xatxWsqpKGBkiO0tSb2bRfH8if0wlJhoV9y3Wqbet8Ko922kAur X-Received: by 2002:a05:6a00:3a07:b0:6ec:db05:36d2 with SMTP id fj7-20020a056a003a0700b006ecdb0536d2mr4681724pfb.4.1713984460300; Wed, 24 Apr 2024 11:47:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713984460; cv=pass; d=google.com; s=arc-20160816; b=c5CXYWzmkm6pwxoeeh1bS3Ame6UhTXaOMp02bYVr4GZm2OhChzZ9D3BvcUNFwNU2N7 H0+4I8RZEB+sG9WSSRFpbxrsvNJ579rxK/LCDf0nQs0iXU0SWp8Swxks7sCBCUFvvIuV S0WaYZ7lKZohYnWDkbs5ysw5pJd4e94ID3PWbktKZwyfMAcVC51W7yZwdExgbxskg8vs TPIfQIG+DxSXLOrfwMGFBOtsZrGVkyY/scr9NTfmClxAvsabESQmszrBoEbTYH9hSNMZ bqFppTXZhYt+Rgqu9JX34nOyM2KuJ4lbjD0AVp1JHOI6uDD1lvtBqW2TX/SQJSbOA3h9 rQwg== 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=JMfJl4GoUt/0SS/pcPi/svHqF4vA95gRhKF1oJahMhM=; fh=xH3hj0GXmLA1uRTNqUkLU2LwRPs4APStJvctcUInhF4=; b=BpEYNlgQHpO1M6WLrFbz9YUeaDSSdUgqT5MXMTSeLtOiIp9Cw1W6eDH/mxPXPJY5vB 7G9Z3zC3d9zIUQN+91n8vi6B7DMO0Wj7Tzfq8GDx9s40wGpMrZ8OEtA6dDoJSZi/8yP8 OGmcG7zzW9N71bQZSrAeLEXagruYT61RUNZgdASEukdUT6i7sHAAs5h8HT9CQZ/67bi2 X7ct5uYB/WSO4mgECk9IB6M9fKoSAPeNIsu25AwGC0x25+IdNkr0QOqjvZF/hSPsGNW7 Nag4FIOrw/b5YwvEjCoy5vWNOIlfQOOGkGu55OyIV3Y4eC/s9KLIdg5g99tYl0vK9VKy ESdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PJOH3V5m; 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-157490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c4-20020a056a000ac400b006f0c0625085si10200847pfl.290.2024.04.24.11.47.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:47:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PJOH3V5m; 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-157490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157490-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C8F14B2BFDB for ; Wed, 24 Apr 2024 18:22:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA02B16E879; Wed, 24 Apr 2024 18:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PJOH3V5m" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 85977184103 for ; Wed, 24 Apr 2024 18:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982528; cv=none; b=DHyvKWUR/MbnUlvlI6iptcw7oXI9/ZXMP+6Eshgq0OT1ZCPF31kcXA4ireD36ZRWr/mmSE0TUxy/VzkJFYJ/vorolRs3WwZNjDYmCzokt0FNtfknPmUFV4SfADVm8zLOEEGNOh1YzpFFlI5e8tDJ9k8hVE/0QN9ehgq2Yk0YX/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982528; c=relaxed/simple; bh=KWWRdUU5f5jfluH+XjQDN6u50z+YdtCCFs2TFHrBnZg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ENVwJqLvp0SIMD/nWofmM4LA1XI+2iV3j1nI37DrmJb60aFeDdVj5F5So6mBSEQE09dR0JdGuaB+imYp2UMPR1qxl2zHvOLA2tYdWyldc0cB0sFvM3komlPAnPHtYAxrO26Oo8XEBI7YHqc7wmS5fX1567A3pA9Em2/JWnU2EbY= 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=PJOH3V5m; arc=none smtp.client-ip=192.198.163.19 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=1713982526; x=1745518526; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KWWRdUU5f5jfluH+XjQDN6u50z+YdtCCFs2TFHrBnZg=; b=PJOH3V5mGXNnefMXY0iP9ch3e499ofgsDOtlDL3WUjsvao/obfTjYawC 9cSwRg2l8ONMNYLeSsKzuanvjSlPnHbxELN7RvNWXPQJDS59pdQlfKLqw m7ENmtJaKcw5vy8BmXERn14VKix0yxuD3KdJJ8L2mrUSWKLswoBbXSCub 35wFjo5eg2olcWuwRDGzYbbPqZKuXyuycno38h4zAqywS3mCscCw4NW4Y 2UjulORWWL+s8enhVF29n5Y7p6dRSx7DjlvJ0hDAo6atVL0H5G1NrfWAv pwUUywjt5vEjEGjBUAlvgGPFKEb7BfvBGIEXSH5VVHiJdrrgeFsEPg7TY w==; X-CSE-ConnectionGUID: 9BMmsSpCTjyhL2qxtBZI9g== X-CSE-MsgGUID: rhPgeYUKQiKTb9uhifXLWQ== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9503581" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9503581" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:25 -0700 X-CSE-ConnectionGUID: frX1FmZ/Q8+j9izbmvqBfw== X-CSE-MsgGUID: AfU7iprISOqMf9sUP5P87g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="55750156" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:25 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Johannes Stezenbach , Takashi Iwai , Tony Luck , linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH v4 46/71] x86/platform/atom: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:25 -0700 Message-ID: <20240424181525.42043-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/platform/atom/punit_atom_debug.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/x86/platform/atom/punit_atom_debug.c b/arch/x86/platform/atom/punit_atom_debug.c index 6b9c6deca8ba..44c30ce6360a 100644 --- a/arch/x86/platform/atom/punit_atom_debug.c +++ b/arch/x86/platform/atom/punit_atom_debug.c @@ -165,14 +165,13 @@ static void punit_s2idle_check_register(struct punit_device *punit_device) {} static void punit_s2idle_check_unregister(void) {} #endif -#define X86_MATCH(model, data) \ - X86_MATCH_VENDOR_FAM_MODEL_FEATURE(INTEL, 6, INTEL_FAM6_##model, \ - X86_FEATURE_MWAIT, data) +#define X86_MATCH(vfm, data) \ + X86_MATCH_VFM_FEATURE(vfm, X86_FEATURE_MWAIT, data) static const struct x86_cpu_id intel_punit_cpu_ids[] = { - X86_MATCH(ATOM_SILVERMONT, &punit_device_byt), - X86_MATCH(ATOM_SILVERMONT_MID, &punit_device_tng), - X86_MATCH(ATOM_AIRMONT, &punit_device_cht), + X86_MATCH(INTEL_ATOM_SILVERMONT, &punit_device_byt), + X86_MATCH(INTEL_ATOM_SILVERMONT_MID, &punit_device_tng), + X86_MATCH(INTEL_ATOM_AIRMONT, &punit_device_cht), {} }; MODULE_DEVICE_TABLE(x86cpu, intel_punit_cpu_ids); -- 2.44.0