Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp614539lqd; Wed, 24 Apr 2024 11:29:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsDIzzWCAmmgRFpTp2JxJ2Yp5pvwF54U/J3VA5a8JYB3U0URi8F88DMuqinhFDqo71obWQ+MoI16hDUnXNsFbrO2dPxb/TEFfA1vf4EQ== X-Google-Smtp-Source: AGHT+IHpOTwOTI8tOwGMC/L4XlW/lNom76IZfjN8qIsQWlV+Lh/Ry5ZKyWnI2/aYVPUf2MV8b44h X-Received: by 2002:a17:902:ea94:b0:1e4:3df0:38a5 with SMTP id x20-20020a170902ea9400b001e43df038a5mr3274002plb.65.1713983350368; Wed, 24 Apr 2024 11:29:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713983350; cv=pass; d=google.com; s=arc-20160816; b=g2Jfx/rGNU41/ZmTb+RgAcFsrO2AMRUhPuXZjLex7TB8IP9OvqOAEIVT4W+OtfdpYB mWBNJBcWuzIdLDomuWYlFkRR6a6I71JxgwotbSj6qJXgrESRL1xONKRhR0s4oX+VYNcL 1AvnKHb/9TzsJPvSadrKV7UkjqqVkGftHgXrDWGcW5pFCpqTy7CzU6aGKLql0wmVTr9O 2D75M1pNhhTKrqEcSmAWPni0QDHTmtgHcHv9R68MMlE9oK6EcQ9/LlXbF8GXS6NEYxNt BhegHTFWoumQrdsr5pGtbQYkc2kp0a+z6tz+tOQT/JHpR7BUSsJT0MkigRAaO/KjdA9N 5RIw== 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=24u4wnVaMvaZ2mjNgE7KPgUKxS27rkvOG8Pyi4POgmI=; fh=OPNCx5iuOZFNMw9IKdir0Jf4qEeargTf+SPVzpwaEKA=; b=kpzfFbQplV+W12WmATG453IgG5OcNVcnHQazaYxXvXNBLT20j3CsOoKO1bys3cDFeJ BbcmIh39zluYGlx4HslXcdRU+be02KxRkrvcDvGI7rAFRiJODTJF7WmCoIZ8/n1XLxz+ pwim9Jdy0EciPYV1mUQxczjT3QyAUc5sDy9WU0dlD86DUTdPwdXvV4LkW0Yy/6oVG0CC MkJxyE/meN7CT8BZ8bYYk7zNfhAPA4Sr8WtUyJa3+I4sRerafqg8f+FlQj8Q4dcV21rw Y2RX+pxidUFPdC5FuJ3MxQFQkQCtikDX+tlxCzyOQHx/n9xSah+IiEWOjAR+bc1UPhzT Yh8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LZmNV8vB; 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-157505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157505-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 n13-20020a170902e54d00b001e5075f1344si12347829plf.579.2024.04.24.11.29.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157505-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=LZmNV8vB; 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-157505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157505-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 986522884CE for ; Wed, 24 Apr 2024 18:26:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90CC51C6880; Wed, 24 Apr 2024 18:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LZmNV8vB" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 6163F16EC1E; Wed, 24 Apr 2024 18:15:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982537; cv=none; b=BG5NHY4fdC56F8oSvndZ4ISIlWWklF5UDupyH2HsAm6y5aIOwZvP08+CvJqB98XEdkzf/tX6nRxChQcfuQXinz/RNdfyQqdWFdwOpbdLFEx0hlhxRzHcU1wUWKA1Dp/bCOeU9dK5smz6COy8GFuTlr27yjb7y75KdJ++Pb9kwkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982537; c=relaxed/simple; bh=26W7AK4Uyulx7e8OguFS/2MgsGW9fO1MZTL4z9xDJQs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cJJNp8gpErDfDhMKZqw862cd/Pgad+zViv1n7enkffRcK45wdH6txSPXgL+ty6RZzN1cgQo3Ultyizj3ecuUZtnRNa9QNuKGW8hwS9S9SDEziQnyrf1xCW2F6pPWg+Fakj+uT7bzEAaekN0xEE9AWZGjqBdoePmpLjGe7B2yhUk= 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=LZmNV8vB; arc=none smtp.client-ip=192.198.163.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=1713982536; x=1745518536; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=26W7AK4Uyulx7e8OguFS/2MgsGW9fO1MZTL4z9xDJQs=; b=LZmNV8vBqNBfcy9eQhepdO/nx4e8sMDeKoDCQePPPIsDHa/8fcsSmjo8 y+/uVSRf8Hsh8iIQU4nYU4D/Wn5Qk4lkFReRFFZlsw8EniBIRv+dTeKhJ wL6gQHoFlRd1/1yxMySV98Nu3Cep9KiNtWkuq28msy+DflsRaEx7LMym3 sF5DKyM7BYTH50dVbuEOVeskdZihQ0wQBUONn8NdIr94fZu9tX+cfPo7m fBwv39+cpgNOEUG7K64p6g/k5gaJR+svTgpSrNaemKM3rh+2vkvhE88qj E1DdFTTUe6POt4dECIRBBDZ41rjj7sTFIxbpqgYR7TRV7KUoUrrJ8GLz1 w==; X-CSE-ConnectionGUID: 9TsKiSfHTC2uItNPwX0IWA== X-CSE-MsgGUID: /Roi13xRTXKXlqS7ZteNwA== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9503662" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9503662" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:36 -0700 X-CSE-ConnectionGUID: TpvtKG0xTJ2uPfmB6lYM4Q== X-CSE-MsgGUID: KiS/7+AmRAGQhXgz8JQpYg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="55750258" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:35 -0700 From: Tony Luck To: Borislav Petkov , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 56/71] platform/x86: intel_ips: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:35 -0700 Message-ID: <20240424181535.42235-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240424181245.41141-1-tony.luck@intel.com> References: <20240424181245.41141-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 --- drivers/platform/x86/intel_ips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c index ba38649cc142..d95f686e0515 100644 --- a/drivers/platform/x86/intel_ips.c +++ b/drivers/platform/x86/intel_ips.c @@ -62,6 +62,7 @@ #include #include #include +#include #include "intel_ips.h" #include @@ -1284,7 +1285,7 @@ static struct ips_mcp_limits *ips_detect_cpu(struct ips_driver *ips) struct ips_mcp_limits *limits = NULL; u16 tdp; - if (!(boot_cpu_data.x86 == 6 && boot_cpu_data.x86_model == 37)) { + if (!(boot_cpu_data.x86_vfm == INTEL_WESTMERE)) { dev_info(ips->dev, "Non-IPS CPU detected.\n"); return NULL; } -- 2.44.0