Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2746231lqo; Mon, 20 May 2024 15:47:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEnjqZlEertfhePkRhNOXMxmDbtfZPqE5DByjE18X03mS4oZCG27axn9lljPo9decy3HwYu5u6x/i3I6WK7OhPB+PpU6LwWLje3aqTDg== X-Google-Smtp-Source: AGHT+IEYbbMx95OsGj1arx2jbLXhl6a4j58i9nQEMoGANfvJdZ8iw3I19F01yO3fpufSB0TmOyNK X-Received: by 2002:a05:620a:46a0:b0:792:9482:a9a7 with SMTP id af79cd13be357-792c75b2b1cmr3814169085a.44.1716245250190; Mon, 20 May 2024 15:47:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245250; cv=pass; d=google.com; s=arc-20160816; b=LFyMVeneApRTL9OHQgOV5dt93nOEtMMPfcn+meOKR6l2p2x+EgrIAgWGT8wJEZK6Cm ecpmWLC1hOMtsvEa3XTJNEQeeuSRgmAOjvytVFw9fkUZg3MKcVZmkGLgCzZqVNBAH5gb 6V7ljKdzzczYOKM0acxGlAIsP++GJZemHzephtZOsOf4Z+IGA9ecTi3RpuqjCJ6LbnrI Rzchf0mMBZEW+gQvLczLzsmpI5zryBsgzn2cDSTkjFABkvsP54PI0KE14PCHj4Z7nvNh ftf+wLri/jEXfNVYDSaoOXAFF5E+D2EjjnvM7/+t8XQTmmFwdI5Ie6QI+gNb9r2M7MtQ Rg6g== 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=qujJ3DhiCOuX+u0gjuWEkh27UXLfPYwFqWPJ7ChnDD4=; fh=8jrklzZsJhM6ymrSpLDo9KwEK6tD8Xxrsrags7WwMTY=; b=uODU7FkcErmQN7lGq427sPFKUsmFJyvf3UeXvG9xCnZAUXdeSSaXX9sGOMd14Bcofg jcmlgaOysOvSxevxWJbDUJsn4GoVL7uYIullWTniB+jbs4NqJNOUk+ZX6533RMtFDxZp w+GwCcSj1jeYi0Xtl89zd2RxYtB4aNActiGjMug451GglIbXVY+ATcEEu/ShjNnQPVgZ 1zPKkt+/LputevDyu/+zg7EmPTkcgYdkPRQDJbdHBApV2cRphW5sZcQhJllrF06TIDEY UEDGY3XzzSmtGEEKYS0izWTyOm58AeQrjCALAmLnxTfQIsu2Ig2y0qfuaKOh7se82wJA coFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n6YBzOKt; 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-184233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-79319a3777asi804533085a.231.2024.05.20.15.47.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:47:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n6YBzOKt; 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-184233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184233-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E706A1C20445 for ; Mon, 20 May 2024 22:47:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3DCE13A3EE; Mon, 20 May 2024 22:46:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="n6YBzOKt" 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 5DBDF137C3C for ; Mon, 20 May 2024 22:46:39 +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=1716245201; cv=none; b=BGfQAAS06dLB4FkrEfTwz8tB7/ieGZAf1RLfJmPLlzfpBDW+MEzfybO5vQmvErfnRl0CFL1bN7YfZrmnqE+AhW9Z/kVs4Rehqhizet9/wptAMVswhimMBTa7Y4a2GM40V6w7lAW4DLD+crnsG549B+CK6IYfG7V2xlGx7VZ+Mr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245201; c=relaxed/simple; bh=fAvicYEUo7N506OzcEwxkas4C1y1eHYtbiBB7lA+htE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a7ft+AVVzS45+LD5f0y5pcEJDkeENBk5Twxxk3kOEeOEPewdbuyXQZcdTnxapivkjO511ED8dD3H2y4wBX91nA9t5vFWx6EaHD+qKr6SKhGqxMpoYTHhijeoSPIy2Xh9zvRqU62U7LpinlZgIPL0VhPEDOlfaLnUZ8RsWFMAfjY= 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=n6YBzOKt; 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=1716245199; x=1747781199; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fAvicYEUo7N506OzcEwxkas4C1y1eHYtbiBB7lA+htE=; b=n6YBzOKtxLScgCwFa++2zN1RekVqtCT1FX+2SfM9yef9a4xeNrKy8MZY 6ko6zOGsWD0jVzlek5svosf4OOaHAK1eJFhOz6VzV+2quensDWsCU0FwU UFgVfSRIVmyr3AVI6Eepe1a9SeJLnJ0qnsSEdyg5hBF8j8yeD141A7Y/2 yZkWyShDn5XeuIAy+qqD6wbRuWXUob1BWtLDg43cNjjHIWcuqHq6chvRT sO6qoVZq5AfpIXsC+KKsq+SuGjiBxCQL12cGCEndC5aq8uJAWApwoP4Vq oBLkbovwiB65pywVENcRBEWR+bS9SUOWFGZl02G1fDq+z7PGsm/tz8SFC w==; X-CSE-ConnectionGUID: r4Xuh2dpQMiHBAVOHvelSg== X-CSE-MsgGUID: FhwyzfWgQNupO2JevXvdpQ== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199540" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199540" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:35 -0700 X-CSE-ConnectionGUID: BvlCwA5NSc6OcdylUaJZ4Q== X-CSE-MsgGUID: MVc/I4PNQpijetxDdSbbUw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593392" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:35 -0700 From: Tony Luck To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Uros Bizjak , Rick Edgecombe , Arnd Bergmann , Tony Luck , Mateusz Guzik , Thomas Renninger , Andi Kleen , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Jithu Joseph , Kuppuswamy Sathyanarayanan , Hans de Goede Subject: [PATCH v6 04/49] platform/x86/intel/ifs: Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:45:35 -0700 Message-ID: <20240520224620.9480-5-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240520224620.9480-1-tony.luck@intel.com> References: <20240520224620.9480-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 Reviewed-by: Jithu Joseph Reviewed-by: Kuppuswamy Sathyanarayanan Acked-by: Hans de Goede --- 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); -- 2.45.0