Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1114279lqa; Sun, 28 Apr 2024 20:19:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6wrKFil+xe1HQR0iAGK8ZBURF/h+9wydvNtCgcY/dqOmMixZ4FeOS+19Rq/Z5l5Ky7U6Xj++pQF6nCGr709z6xI7rFXtk4eoFzOLuSA== X-Google-Smtp-Source: AGHT+IGYk3oEcJjNvjUO/kHcQNq1v8rC2XJXqBeinMUY3EgEmESq/u3aZwbHKIpDRe9iyl6/wWW/ X-Received: by 2002:a50:d496:0:b0:571:d380:95fd with SMTP id s22-20020a50d496000000b00571d38095fdmr5554943edi.28.1714360770858; Sun, 28 Apr 2024 20:19:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714360770; cv=pass; d=google.com; s=arc-20160816; b=tLn5c5LK9BQxRciTBYVt0hD7BBm7wDLfzviF5aoBVbJtKGHkoYj+ihBJwfpjw8xhoX DR3ZAhnIM/IR0YslhCR5BFEql7+VD3IZoJNEJYEpLG/mWE4OXVxmz1xoamT1B/Jp2OU6 G3h7ctalAWK22qsVd3MGKsJstanYKhoAA6wB7gTn2ThfndRDc1YKvA0hOVAd5bWvCOaq PAinI7Y2SI5Ge8+QLs1f264pnzmEs0lX0JwE9SpzWP8XAhMnHVusYHyLau22iGL/5s5g adr4/rwN3jrSg3wZoctnjs2LmhAltpijyhJwWisef4prDc3u0KV8hXUNZOP1yR0D4Cfh Kviw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=NksBLfW8brm2DYTzUHT/n1b6WYvBc7zj7CbToiu5Eoc=; fh=5Wt1yEOqS+IKJkWmcklSTaFw5bSf8t3Uccded4lgY+4=; b=qOyNZ8NcpUUNV1lvnHxoMdSjXzl5+zGpmV30geRs8Os+36DE4yPR1Zb+1g8T2cEHRJ 1RkyshWLesg3TsBm4qNMT7EpUHDhZciUlfYyrzQuucdkuiOw2eCCCoHmxCt4nEfRIG5Z v0oqjCOmIUGfqsITIwJCqnZtxCq3MF7AXdbD8mGVKZs+SUxVuhHFrXANAFz8Hanf7j2c iKt5aVGkorJi94x3GWtJ8w8gy9Tb1l2WMWv85Rl6TZwHz3vS5Tw9QwatNHum5TqTsNLh vD+WmKtH+1rLK4xgCXxHcv1FF4gDlpXvy4Rd0op9gmXWUVGur8CGCa6MppstDGzTROzX 09eQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CtEYzdkF; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-161695-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161695-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. [147.75.80.249]) by mx.google.com with ESMTPS id a9-20020a50e709000000b00571bbbc746bsi13271071edn.412.2024.04.28.20.19.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 20:19:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161695-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CtEYzdkF; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-161695-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161695-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 92F8A1F213E1 for ; Mon, 29 Apr 2024 03:19:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 827428F5D; Mon, 29 Apr 2024 03:19:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CtEYzdkF" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 BB5478C09; Mon, 29 Apr 2024 03:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714360762; cv=none; b=ple5ez3XNeCoeEskAnOyon9WSm39Jl6u2oOynMXrf2tY1aBcw83DLTKoTi8fwHiDYmU8FY3rO/2EKRBLbA2IZfc2RSF54wjVeKKMyzStoLPXVScqBQFswwhKoFGe2I4zvvwzq8ziNyzAKofRMFRwl9YbpL+IpbJI1LoCbGBW2g8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714360762; c=relaxed/simple; bh=OciEEx6Xa4RgJ2yE5vkIFxrnfJLD6otTLW5rQZyujT8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Qiku4HYwsMQ9TI8GnqIEIw7955id8bV2kMWjoedNGtCHzmbR5pZ9GkpA+tEkw82IvGYvN3ZWxClOEyDc2vEbrDxLbMDhXlxNVZAlYYLXyR3a2eZtF6/dEqyRewJqPG5QYMqdxgqbbAqyJkhWsTjX2wcw5+M96P9W9LRGCwhMYVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CtEYzdkF; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714360760; x=1745896760; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=OciEEx6Xa4RgJ2yE5vkIFxrnfJLD6otTLW5rQZyujT8=; b=CtEYzdkFPZw5UIz4RxjGFx13WYyneUt/pt28pUQkMahnBlC1CFnKv5eP 7nAYcW7oPFoFQBitKTeCwf6OmziTJTJ0mrUQBqjPU4G1eNKeCWn/Lg4ip /RFIEtYXBIqu+6hXUEpbLeVc+pYAAYaDtz3c6SX0dRJOeq4PAdo4x9Tbz BikuFpyg2W0g5wO/SreCRhcXmVMiwJBR6+eobvqiSgCJjJ1bHNzJaPMFg By+THTZajTtqLEFATn1H3gsz7Q27ryYiwKVPB+FsBGVgs6dyq2ubJb9Jg D4JDwSQgeynWSi3v4kMd/VAR3x5OCWrx37n+oWz1I6hKyzuIIV04r+huM A==; X-CSE-ConnectionGUID: Ho76BCRfTVydU9TGarAnHQ== X-CSE-MsgGUID: ztbpdwbNQYyrTnoYrlWm9g== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="10226902" X-IronPort-AV: E=Sophos;i="6.07,238,1708416000"; d="scan'208";a="10226902" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2024 20:19:19 -0700 X-CSE-ConnectionGUID: CJ2Vjf+9STq/TRcESaF6hw== X-CSE-MsgGUID: wyUBUmKiR3mGXD/N8gFbVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,238,1708416000"; d="scan'208";a="56876978" Received: from kscheema-mobl.amr.corp.intel.com (HELO [10.251.17.13]) ([10.251.17.13]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2024 20:19:18 -0700 Message-ID: <96c53b0a-5123-4542-8bb2-f8a3f25f112c@linux.intel.com> Date: Sun, 28 Apr 2024 20:19:16 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 02/71] platform/x86/intel/ifs: Switch to new Intel CPU model defines To: Tony Luck , Borislav Petkov , Jithu Joseph , Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: Ashok Raj , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev References: <20240424181245.41141-1-tony.luck@intel.com> <20240424181445.41193-1-tony.luck@intel.com> Content-Language: en-US From: Kuppuswamy Sathyanarayanan In-Reply-To: <20240424181445.41193-1-tony.luck@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 4/24/24 11:14 AM, Tony Luck wrote: > New CPU #defines encode vendor and family as well as model. > > Signed-off-by: Tony Luck > Reviewed-by: Jithu Joseph > --- Reviewed-by: Kuppuswamy Sathyanarayanan > drivers/platform/x86/intel/ifs/core.c | 15 +++++++-------- > 1 file changed, 7 insertions(+), 8 deletions(-) > > diff --git a/drivers/platform/x86/intel/ifs/core.c b/drivers/platform/x86/intel/ifs/core.c > index 7b11198d85a1..33412a584836 100644 > --- a/drivers/platform/x86/intel/ifs/core.c > +++ b/drivers/platform/x86/intel/ifs/core.c > @@ -11,16 +11,15 @@ > > #include "ifs.h" > > -#define X86_MATCH(model, array_gen) \ > - X86_MATCH_VENDOR_FAM_MODEL_FEATURE(INTEL, 6, \ > - INTEL_FAM6_##model, X86_FEATURE_CORE_CAPABILITIES, array_gen) > +#define X86_MATCH(vfm, array_gen) \ > + X86_MATCH_VFM_FEATURE(vfm, X86_FEATURE_CORE_CAPABILITIES, array_gen) > > static const struct x86_cpu_id ifs_cpu_ids[] __initconst = { > - X86_MATCH(SAPPHIRERAPIDS_X, ARRAY_GEN0), > - X86_MATCH(EMERALDRAPIDS_X, ARRAY_GEN0), > - X86_MATCH(GRANITERAPIDS_X, ARRAY_GEN0), > - X86_MATCH(GRANITERAPIDS_D, ARRAY_GEN0), > - X86_MATCH(ATOM_CRESTMONT_X, ARRAY_GEN1), > + X86_MATCH(INTEL_SAPPHIRERAPIDS_X, ARRAY_GEN0), > + X86_MATCH(INTEL_EMERALDRAPIDS_X, ARRAY_GEN0), > + X86_MATCH(INTEL_GRANITERAPIDS_X, ARRAY_GEN0), > + X86_MATCH(INTEL_GRANITERAPIDS_D, ARRAY_GEN0), > + X86_MATCH(INTEL_ATOM_CRESTMONT_X, ARRAY_GEN1), > {} > }; > MODULE_DEVICE_TABLE(x86cpu, ifs_cpu_ids); -- Sathyanarayanan Kuppuswamy Linux Kernel Developer