Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2173313lqa; Tue, 30 Apr 2024 09:56:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGvegqxi+LgQkGjht/6fGgne6nzrR5+B2+dnGtBxeNki0sIDj21G0TAQBce3yYnAFr6BlSTgf579f7vWWo53yxj7p9d65YtIPsRF/Myw== X-Google-Smtp-Source: AGHT+IF8X3CDrGiorGQ+ei4Q4xrHqM5TIhChl7hItHxi74KpwnAiGAuGnvtaDwNPMDSkhGtjx91/ X-Received: by 2002:a17:902:8d8d:b0:1e4:dcfe:848f with SMTP id v13-20020a1709028d8d00b001e4dcfe848fmr12787401plo.16.1714496171522; Tue, 30 Apr 2024 09:56:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714496171; cv=pass; d=google.com; s=arc-20160816; b=EPsN076p1lk5wVNUozhzJ2ADtHWj0EV3HmTXnHeuFTehaTjdcwQpEtMpRvMq7AvJlX JvNkcDhla8Q8I5HMUIdMaqSoQjrLtzjSRkCuP7/gp3hksftIo7nWE6jqih9xOmcmqUsq N9xuaysq08TKXgdeBARm7X0uuYenlsIFkP5+JpgzldoZAsQm0x7kBjNYgG9JTowyn1ap 78DGfvKRfFcXsqDEh4cfcmYU6cOX6LZr4dfNxRHiMid5YcAGyqJemvQHj/CjYL1L812X DMPErRxxBUA4zc298Iox6oyFtY8H5aMZZarU8+W0XO987yNGK99H8i0SFzGcX06atYSZ Kx7g== 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=5u/ON/aAxH8KTukteo6Vi7yjGD6nQ1+dcVWldhI0ojE=; fh=+JI2H2iWMkwJGqr7cZu8y0U973lnv8g4RnihRl96veY=; b=gnEiPgDVSXM7Z3S04uNKGDFcoKzs58AdMCIiLUSLQmwiL31H2igXfYCRilnpvdJYbI TE9fuk8C6ZXy+3fvF3ldpgwsuuQdo+P56DmEOjPoQW/8rei+Ws527Q6ZFgclO09rb4Wj Q5eE2xe2R415nvX7sgGYCX7GHlffsOW2kLM21bGza8Z/57a9C/a+Yen7mgoBpf0VrOX+ CHYxRTppeJI83qnyEFi+sm1qEGOPTUJxeol9WsdYpsUPDBKAR/5Rquj7fQ/WRfCel8bg lVYBaezRBzNNEua4bkYkhuNhGbr4uUJz7dg+c9zTBmj6pkRIgCx3C+0ELxyPncjbqCfO gILQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kEI21aJ7; 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-164442-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164442-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 lk3-20020a17090308c300b001ec5104092esi1201863plb.144.2024.04.30.09.56.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:56:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164442-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=kEI21aJ7; 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-164442-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164442-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 59CFE287202 for ; Tue, 30 Apr 2024 16:53:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 357BF19066C; Tue, 30 Apr 2024 16:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kEI21aJ7" 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 64CBC180A8E for ; Tue, 30 Apr 2024 16:51:38 +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=1714495900; cv=none; b=nA3f3JWGRjet+zzQ4OSML4ubC5JIxgd0TtRu5MUuafpVgNu4k1QRrgH/+EbaQVSu1ALYexxSBetQR6xSY9r1zcQo5DR4urNT4jbq7+tjj0bkaJOWGqFv2Oy8TcY0Vru4avp4Q3KsAaerR7kiut+P7hlHUxDnhwSzm4m2aKTKkLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495900; c=relaxed/simple; bh=DsTxdChN/mYCzh9I4OyIgdX+q2TnrHqwbKbjQIoRaMw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G/fWbnfQFy2Ee5RI7uhE80wkUddEd4f2hV6Ia/wJBBUU9IUvPYEZl9xtOR0Hob8rjgXMP37bPO9ODBkU5MqxjzAOcJeg/Y1lEbjlMo952LCcsBh1crL4CBwuw6glu4/w9aXjNZrmDP9JTihgNp7HEdESJoP/ihWjhEswyHInErQ= 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=kEI21aJ7; 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=1714495899; x=1746031899; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DsTxdChN/mYCzh9I4OyIgdX+q2TnrHqwbKbjQIoRaMw=; b=kEI21aJ7QE+T1hgfD4lDysdJ0wwihs8sr8Dplcw9MDnlMlXarES0hNMO mdEhLJwHTFNKHSbchX3KaFADnzUARNw0g6EFzvSMdllemdd3Y8X6ps3g7 sWsf7ZwHhHjYLxbgBHaqOkcnY7vesE6A21Oc/vyoOeDHm+/acvFClMtXp Hn8LZP2MrURzQ6IVhrldAXj+cBUs5ylbCxyKxngk+AZ6NMLVzw+CKJrkb 9QeFexDRNsYj8qI9IaMRPeItG+hZ5oyZDlj/GIL6kbD2Q3azXjTIwRCCw PxoVWN2WNc5BGeKI3WBOzfOF/POf3KAWr8lXdYlSrR7dlvVeHn5dq7Rcd Q==; X-CSE-ConnectionGUID: RPaReYznQ+qqbmiJ/8WNaw== X-CSE-MsgGUID: cjV68h2LRSqS07L8DS61/w== X-IronPort-AV: E=McAfee;i="6600,9927,11060"; a="10075666" X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="10075666" 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:21 -0700 X-CSE-ConnectionGUID: zIfRzOLYQUebOPWcl77RSg== X-CSE-MsgGUID: oSD0ksI7S2S8/uEMliVl+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="26515446" 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:13 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck , Hans de Goede Subject: [PATCH v5 17/47] platform/x86: intel_ips: Switch to new Intel CPU model defines Date: Tue, 30 Apr 2024 09:50:30 -0700 Message-ID: <20240430165100.73491-17-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 Acked-by: Hans de Goede --- 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