Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2172075lqa; Tue, 30 Apr 2024 09:54:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhS6jkB+6H/xi9NIYXUpLsPpBjD6uaVFVymK0gny/L9SJGkrTJq7YHEsDBAGT3FkQJKyYLioptylM/dCRQadtlOSUKOVwZxTWLjx/iCw== X-Google-Smtp-Source: AGHT+IEveuDDa1gNyhIzhhVrdzXqEGMu92aqbiRLZ271Bb2AZUOS31Ed3qKR58i7X/xz2rdpJuTG X-Received: by 2002:a17:90a:c886:b0:2b2:a04b:cf4a with SMTP id u6-20020a17090ac88600b002b2a04bcf4amr1715pjt.25.1714496049613; Tue, 30 Apr 2024 09:54:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714496049; cv=pass; d=google.com; s=arc-20160816; b=toHTXhb+9e0acFlVjxBsB07tU7Kf0qfOiZ42oWmjemLbCiTfA+wnGaujE0dFGxFJgW EICoet9kpmijCHrXPOUlnh/7u3xQzd5CdWb9EbrIQJzsDpVVWddPWwdHKKKH6RB5dP+d Gvd0EL1irrlsG3svRIQy9ThlGq7BRnC3r5udoxre/jrSRUdKJXu+F3VLiFgAhXO6D1re GZjS9HfMxrZVSNYrfHXtlEmJhJNawDnoOBt1mhoL05ND90b4CofqLOnRwLENxwepIfRw wtw0UopwnblARSuUTWHGgPMa2MDR9IOgBXdxn5Skzvrb96x7Rwnqr1p6xvEvgO9PWhv3 kkPA== 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=mpIC5dtZrPO2hFE5hwM1wbWfbaw8K+ir/GmRQR0Xl0M=; fh=WVX1D4VvHFHlS+S+8wx6UnN4km7jwQkFnpwnjGldapc=; b=ntRrNGFMQKA3PJa3UebgZEv2+TBaRr2ZKAgj4jTeBHCnADy9GWxVNlAntigacIurSh jx8BUI5zUbEOiLjuwsPnzM1DtL55P87Ne4v3f4vJozxCaQTt1g7KQxJr1eXm1mD0Z+Xv VdrtVcb4RIQCAGAeEvBWoNTcqF81LqEiYXqHinNm9lX9vSiHffsyphTld206MmlD6oDF OhYqAhePw6otH+WRyrIVnFb0IdPq8QAJQjg3e47cZVn374W2/EU9pPl8DduFSnyLsyZb ejk4X9SYVhBLKhtFOiw9teyc9s8LmG4zWb6bPadl6RHiZwDbjb873QxFxhpiLImrwbIA /yzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ln+SKqrk; 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-164433-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164433-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 h12-20020a17090aa88c00b002ac87891004si20048903pjq.34.2024.04.30.09.54.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:54:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164433-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=ln+SKqrk; 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-164433-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164433-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 9A57E288347 for ; Tue, 30 Apr 2024 16:52:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5855B180A78; Tue, 30 Apr 2024 16:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ln+SKqrk" 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 1687F17B505 for ; Tue, 30 Apr 2024 16:51:34 +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=1714495895; cv=none; b=SBUSdCt4wCES8rxDmpkVjce4Br/E+6MUcCsDDQDV2ftYSrb11W9Wf2KkHoZrJPahjm9DfsTiGT54GgS3uikRyr6LNKBGXRdT/ryQVVPv3h74+rLUki1WjYShMGFIDNhFiGbZ6eV/K99k/uzV+a1PxHXMya4HsyKBLneDYw5Sd+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495895; c=relaxed/simple; bh=jo++POGDkJ0iaXLFXLmreRUhlhBEdY5sKB13LHFpdWE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eZok5wh888tgEGQuXwITC4SwA0/Zoy7vOeRDsck11ndQAmRaau4/U2HqMBtFieIItKtEGhVpyG9xIx4Dn9y4Xo12kw33SW1YipivWGlFNoSJvFwsxZy+k79Eqf9vYY28otM+cPt1+qTHtp2W2Xs1wzd5FjDRkgyws0urOoYxnfo= 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=ln+SKqrk; 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=1714495894; x=1746031894; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jo++POGDkJ0iaXLFXLmreRUhlhBEdY5sKB13LHFpdWE=; b=ln+SKqrkVIoOG++USVkOOun7MBY516WahOBDu0S7J33KwIKf1SZIVhgs 1RkqWjCeuWGd44f6OrExAEzP/OoT2yHvYUDmZxN2HoS2TIwnRlzOAQp6C ppqGera4vgmRUiAKPRAVVmCT9Dwq9+yvfkTtlD87X34yO2Nmc+xOnpxdl Iib46Owvymh8GDIPYeHBPLx9Q6hD6R8v+j6lE43hAxESyrB3ewHHrHbg+ uBbStWv6i/sSeXMdCIyybRfBiQ90hFs3+HtaeGnMnlPBgk3fQ9fyuOO1V NkjsfsI/tXEFIEc0tm4Z3hEY7HJATlb85i2kIdZGwQ+b5KkJYCFEzPZwf g==; X-CSE-ConnectionGUID: GHROf7FHSAO1seX5Rc8jww== X-CSE-MsgGUID: Ujqbon1VSImuA7Ssddp+Yw== X-IronPort-AV: E=McAfee;i="6600,9927,11060"; a="10075604" X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="10075604" 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:20 -0700 X-CSE-ConnectionGUID: bFd93eraSY+BgwNbeuNM5w== X-CSE-MsgGUID: J4b7pbRsTfiOVnW5F48FJg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="26515410" 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:11 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck , Jithu Joseph , Kuppuswamy Sathyanarayanan , Hans de Goede Subject: [PATCH v5 02/47] platform/x86/intel/ifs: Switch to new Intel CPU model defines Date: Tue, 30 Apr 2024 09:50:15 -0700 Message-ID: <20240430165100.73491-2-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 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.44.0