Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2175398lqa; Tue, 30 Apr 2024 09:59:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvM652dFJNATvOsSqCM/RKL+XeD6gWL+S/K7xmJzlphCV/2NMCGqVuG2Vp8mLy5MeNjSuzH3eIGsRpNDjPQtuMSWfriB5pJXlgOv88wg== X-Google-Smtp-Source: AGHT+IE4reQ259yBWItw/Mk8yccA4IGDmo2RCfHNryQeoTRrLAwzBoIFKsH9vNEheR5l20N00gSF X-Received: by 2002:a17:903:41ca:b0:1eb:1240:1aea with SMTP id u10-20020a17090341ca00b001eb12401aeamr18487726ple.20.1714496393566; Tue, 30 Apr 2024 09:59:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714496393; cv=pass; d=google.com; s=arc-20160816; b=DbyBzdHG2CZs9iNHaH9JjRe8LZ+Rw50R2Mi18Hfd2tXwn0l7uDpYXUAaMeHp6ZBXpB uLhHw6G+1FAMAydOKfvAj5UeTVRJFahpV7DQM1L5ecS5EpNLGaVPXY2M3Rem67mMKuqC NZ57BMIIXAq01znJIUQvWsHJGKdPyw+bNqZjUJRNjI8EyDMRp+LPJud4duceZc97XSpi m14CWeVVgO0QbZgfn4XEtzbLs2MYE/3/T/qoy81zgb2GOlDYtdYy5mI7szXkypRTEA6P ENypUjOQcz+pYsfQr+EsUlPxW3k0HrpBIEriPd9U0KT+PYZqvRp7f/wfBDW/Ew96ZuNP kCPQ== 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=fCCNFvJbPqqXo45yXdlgqaDimb/JVSzwDZSVTcpWFog=; b=M8pB4OSXprhYhbbO3rjIk6mZDL7RWUAN/0MvA94511HCuy3xCpmNAqLBtB+/MR4od1 ZF4buTevNnuDO7JTo4GAfAYqD9auDu8ESQ1bQ/BQIfVNdROljsGPI1Z4lAlg/Shm6Aok JAs1TELz4u8KyYRfGmTIQv16uIBAstoiJNKWsW/ID4Lb1JcixRndoArZBFqHsabHWgoW 2JF82GX4rvUJFBOuyCxinDHsArfezwFM0Dpi+pkF1vZk6/vVNmP1sNHcpStjpM6Zz1XA Ep5HcvRsz1d4NrHfY41O+nYBIQOkYb16i60eaYErYK37x8XYBVEY7wv4iPoQ6NGNGIJH kFCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Z2ublLKP; 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-164460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164460-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p11-20020a170902bd0b00b001e00e16b003si22277942pls.413.2024.04.30.09.59.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:59:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Z2ublLKP; 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-164460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164460-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 148B4287BF1 for ; Tue, 30 Apr 2024 16:56:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 018B41C8FCE; Tue, 30 Apr 2024 16:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Z2ublLKP" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 ACFBB1C65E0 for ; Tue, 30 Apr 2024 16:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495911; cv=none; b=BJEmptnru+7P4FIlX2WngtLXEqCyY9uidWYgsOyvistABjigz1V9yImhp/d4RvR5ZZYTAyLdfujND8WLJTWl6SjbI7U3rOQXGZZZZ7IvSTtPgQN6xkhp0xu20SV1f9LWGWJ4HDlbBI4jTQ2j/azha6810JmonjnKfnWT+iwojvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495911; c=relaxed/simple; bh=KWWRdUU5f5jfluH+XjQDN6u50z+YdtCCFs2TFHrBnZg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Pry/yScS3phZDr7M+I3l385VCKpf5/HM+UY4NPXMmawuKHCvp7ZGRgc2pWEh3ltD+f4DnbhOQAcw5+LFyYXhnQbP34J7jc7j+yFPtb+pj1vs21LZG4YIEVm8nM2H4dD9ONiWyq2S1v5WASXV6MRrzqJ1Px9F9i2SC3kOEiSivsU= 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=Z2ublLKP; arc=none smtp.client-ip=198.175.65.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=1714495909; x=1746031909; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KWWRdUU5f5jfluH+XjQDN6u50z+YdtCCFs2TFHrBnZg=; b=Z2ublLKPpIVPhmV6Ep+0kwoIpUZFNMjv2Qt5Rqz0iqlcmDPqkMjmPXW6 Jm0In5wtc/EPDPcTj92f1RuFDViTW2z2WNgBTvMvZhGHcoNktGnsDLPV9 ZmBzgwnkFmxiERUfHTnsglzFvDcMSe5lfNX6H/lFOLxAbnWcx9O3V7QTy vzleWAibw3+5CLP1UmH5FY8OqZKDlkS+CVQjxLVdRNZuhS/dC+anr0oPr U48vKFXhIsrshJaPKVWibl7F3VjnLDVhzvOzqNfF0FSUYqHadBN1JBxIV ayXtNFcG5gERmugCuWhos+p5h71Z/EtI177ggtQEoi839jk9x57UPNJRf w==; X-CSE-ConnectionGUID: WnmbwCqWQeSFdhk1pmHUow== X-CSE-MsgGUID: e5RC09FZRDK4AqsoIx8u1w== X-IronPort-AV: E=McAfee;i="6600,9927,11060"; a="10075791" X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="10075791" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:51:23 -0700 X-CSE-ConnectionGUID: 8p6YeWqzSna9phiURt0taQ== X-CSE-MsgGUID: N3h3NHA9TFeDFdjFZzPeQg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="26515496" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:51:19 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v5 30/47] x86/platform/atom: Switch to new Intel CPU model defines Date: Tue, 30 Apr 2024 09:50:43 -0700 Message-ID: <20240430165100.73491-30-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430165100.73491-1-tony.luck@intel.com> References: <20240430164913.73473-1-tony.luck@intel.com> <20240430165100.73491-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