Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp503315lqp; Tue, 11 Jun 2024 10:23:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV34oU9mL/r671MFgrCCpWs5xjgVK4CdPqhb2egm3+0SStIprrnwjJbK0cFm+QJD4QmmZrGEry6fvGc7X7jm1hJHKEcjxTNoOrdSh0j0w== X-Google-Smtp-Source: AGHT+IFfX1uQ7pnqc4Had+VWcNfH1kxaAeL6D6ffyNRz0ZdPEbaB1LZM/fQk5v5LqiZN/SgjvR+9 X-Received: by 2002:a05:6358:57a3:b0:19f:4553:5514 with SMTP id e5c5f4694b2df-19f45535aadmr1041693455d.29.1718126629055; Tue, 11 Jun 2024 10:23:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718126629; cv=pass; d=google.com; s=arc-20160816; b=SUH0jxVBNI3/KjMys4mSpKU5nyIBTGzwu9Ys5TQ4ZJeFHg5WD+Euj/Ng6MoO1K770Y /1Ny4qdVtngN67XjJjafzJ1pR3WbcT6oH+zpEvMQuv/k71+7Ohb2nl8fhJm0jjVPpRqW 563LTdE2jjsQTBDV4eqcl9Q9urWVzMM63hZsmy80h87bbTa10tDQjaTVZwMP7kqk9sBC znC1jHMNdEVGlF0cvqHGtyXbb1UbU8zs9X1MJmDfwN4g7QJVsTPSUTjiiIBY/NStmfPr Bkd4GmC0AyD4DZ07QEnDgBK0PKgriPESkegJe7b3dzzOjymaHx16ARkt/8kjqkMnmrTT THuQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=lOHGTo+4fk4GcJEoP3NvSx18DCj9Df2mQFDhLl0mjvU=; fh=9RivRhqORtpMZYfg2gnR1Dbk0aV2z4zTJSnMb2ZJysY=; b=GQmteBNQtQmgq1cUQqCgrzVA3cdB6ebTRBXLbokNVoy0UPiF9xE5CEg/lVA4U6WNV4 KbqL2GNeSRSagJi4ILGZqsrb+xiLXzugCwj10YRbvIXub+AWeUSY/UC8oS9nhSBYIGpD GBpLNrsilJQ+9nhjC82z09cQ0Z1BLXQIDSedY0TtaFTW2+tjnufQ0XDAlETa7tATUQQ0 5cx2f19LTmWeSp/s3zymkWXGljsV9QwfpbZrzGrmI+BonYZ60wm+ksMht0leHq4O1Xo/ LoubcweeqabFN1VSVQSBS45YrwHYsU7iPiO/D+rTlWbiCjBTWdV1tGFdS7OETxyE4wCO qg3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PBkmswCM; 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-210313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210313-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de262bf668si8016280a12.349.2024.06.11.10.23.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 10:23:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PBkmswCM; 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-210313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210313-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 1DFEA28B7AA for ; Tue, 11 Jun 2024 17:15:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3294C4D8AF; Tue, 11 Jun 2024 17:15:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PBkmswCM" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 E727B482DE; Tue, 11 Jun 2024 17:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718126106; cv=none; b=rO0INVHweYQySMIVv/2/mqfHnJnTE4HXq1+enmzuJQXBzSx9Z5Wi2fz3VfcuI78R5fC/Hrcp+KJaquQMmY2f73Tsp2kvyg6r6jzm/ycpEBttfDf1bL6sJH7TSQAmF6FI0nZHxFmpCLqtAuFG9LFgSVouSlx3IvHZKVolDvKso14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718126106; c=relaxed/simple; bh=K/I146tcC4iAQjRxNjYDWda/7DMkakFd+77UtYpoMoM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VwL7qbf/WSYjjmEZrq7XV+zPlP/0T+3LI95MWz9MNLYmovdNmiOk4GnWrhyy94DblSBWBIQKeArl5Vk+vVLrldIkFqx/QM190QT1g0NBqBo7MG+BmB4dPmlsaqyc+CjLPIip1osHfhvdquViXncdI9UQtGuD0v3BgBN2Ftl3kFw= 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=PBkmswCM; arc=none smtp.client-ip=198.175.65.9 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=1718126104; x=1749662104; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=K/I146tcC4iAQjRxNjYDWda/7DMkakFd+77UtYpoMoM=; b=PBkmswCMKVLet+UsMG5nhfjUdIu8ftylF8Iv47TavVKxniBIch2atlQl nCq6euNLr3YvXPXr3/4YfEPY8ww1/C45LCyYy12jQTmvZIjrze3d52LTG oQdhcqO8Z8jhZYjcpub4AZ8F9zRlU89qom9CCt0be+wmSf9+91kxQXNKU aslJ3H4DraggixdwEGzbemXJZN6RXyCZzBdt4/qMap+EFL5rkUV9Kzsq6 pkHjKq4GPEHINS035cSQMuAp1ch7AFk/1x+XfsKmnTXWiPy4sifBF511x c9AX9vvGP12v3pN1Zzm/AxLztxClvXkY4kQFOwvK+u8XVv/6lYsbjNMOf A==; X-CSE-ConnectionGUID: uJxu6qNySyCRqcjZ6Pd7ng== X-CSE-MsgGUID: vxCJS0T1S/ehWVqoNfKn2Q== X-IronPort-AV: E=McAfee;i="6600,9927,11100"; a="37376397" X-IronPort-AV: E=Sophos;i="6.08,230,1712646000"; d="scan'208";a="37376397" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 10:15:04 -0700 X-CSE-ConnectionGUID: QylkOKhcRJSU9a0Cu6uFrQ== X-CSE-MsgGUID: NtG3lkUVQJuZyCGeKFw/rA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,230,1712646000"; d="scan'208";a="44055568" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 10:15:03 -0700 From: Tony Luck To: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: Hans de Goede , platform-driver-x86@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck , Jithu Joseph , Kuppuswamy Sathyanarayanan Subject: [PATCH v6 04/49 RESEND] platform/x86/intel/ifs: Switch to new Intel CPU model defines Date: Tue, 11 Jun 2024 10:14:55 -0700 Message-ID: <20240611171455.352536-1-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 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 --- Ilpo: I missed this one from the set of new CPU family patches that I sent to you earlier. Can you apply it please. 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