Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp697870lqh; Fri, 31 May 2024 13:38:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/tqVXiEC5tFisVaWbqtJVUYcwvXDwroAfgBYApmAgKfO7O07tEnU0cqvrA9eINoeDp8DrRA30S+8D8QvwkqZLjat2P7DS/NtTHBSTOw== X-Google-Smtp-Source: AGHT+IHdMY86FPp1VHuiCJ+LhwaZyaYFEoEmUbXiOKhbO/aQxNFAYbIkgly7yGUIfF1krmIXE9AH X-Received: by 2002:a05:622a:153:b0:43f:f19a:103d with SMTP id d75a77b69052e-43ff5288ee0mr30930591cf.30.1717187922616; Fri, 31 May 2024 13:38:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717187922; cv=pass; d=google.com; s=arc-20160816; b=brKkmxMUY/2YQ8vuNNOOA82wFgsQSEeISnbZcptpxzO6U9HJweBRA7r/6DGvxDN5Tb QbpYaeYfy1v8O3nhCCBpUQNzf3jVi9uHb+RdKHsRzSzez4lzJurHmbcP8DPVBgpdyD66 QZziJfSpHY+0g6ZITaWfBzl5qgcAIB66LLmE0Hai6uxs/7lnAzNAM+flyW9DM7gK1dUl /2eHHjwt5K8rwxmgYcRNmrm2mD5Ww/36UU80RRZJVnLaUJyr91gz8QlGDZLwq/7JB1H7 y7GbVkrCSC+fuEyFsJVsE1GdG4ftOvIPc3B1mJRNALjHkzrNB7L2iE51XQskheFaoeCt x1AA== 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=7RFrNqOXrkVmTzqnkjgtuaiufRke+FOVLVowWyMSU/k=; fh=Wxk4eDXiGzRWPmnGwHY/fiJJG4GnGwxBu3SzDcL/oAs=; b=W4EIs01RBRUJjYHQ833tEvgz5ihIUfyh5JqmId//R0MkPVLAwfIp3iYgWB1rN1uAdx J6qlnR8fpv6FvoiNL6a2j5sgGax7SZKBAknuXisHPVjSnL4cLmecTe/461fv8EHr1Vgj DevPW4mWTdNznRXwjsFBYXW10hVJuPHwzo8R82rn5YETwSTVa1UmLJM2lUGYND5ZSrXd zw0KZdgyHZo9t1qYhP/FEK4U+GEas7DGdgjgjNy2Zfy2bDqH9XDjj2g05JySDUtxnmuO G97lfHTHQ2rdJqvz7BbKvBqtmCc4hmo9vFN8wNq5bTBGZl4mAU5X9sXXgoTxbycIqukr BnlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GoZzffMv; 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-197455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197455-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 d75a77b69052e-43ff23dbc8esi12470211cf.176.2024.05.31.13.38.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 13:38:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197455-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=GoZzffMv; 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-197455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197455-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 573C41C242D8 for ; Fri, 31 May 2024 20:38:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CADC18309C; Fri, 31 May 2024 20:37:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GoZzffMv" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 B4D1817FAAE; Fri, 31 May 2024 20:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717187837; cv=none; b=M+L+mvyDiHJo7ilo3cps/4glqWe2HKklbRifS/EmNGnnya0XPBlgUHIUllCFPquBopFNirhzO14q0yQNE+PsEFram8Yo+36R+kJryieaPdQHo/j2yadEIuuOh4Odk5taJO34Cvog1ZNkaQJemxnYi7tAG54Vne5idDUlKnpUFZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717187837; c=relaxed/simple; bh=Q4TosjeGaAlesFOvhOKuWq462U/pe+hYmovI9Y0U2Eg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pRhPtghSS9RdZtBuGeeHzS26duxO/ptn168BaaIceuIkkhuatCOwE4xJrEn9en6w50aBMxntk78GWUzyisUJ7SL5oAa3MnI9wgq9UqEZR3KX/tob6E/Zap7SaxnzzXZ3anhnWKRNzEr4JpybLra+1ZAQnaS8theEEwrQ6lF8eGo= 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=GoZzffMv; arc=none smtp.client-ip=198.175.65.17 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=1717187836; x=1748723836; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Q4TosjeGaAlesFOvhOKuWq462U/pe+hYmovI9Y0U2Eg=; b=GoZzffMvppiBbiRLPjn5ZYlnjTjqV36/bbDx/WhX7PwJM+17Fp2oS+7D y+Uo4fbTSA0XKDO8oSELo1fVs2sGqudyIkqiB84Da11eazXp+r0m2rz52 UKICMG9fBh1hFeJP1j/6mcrby17ixIrbP5w+DWHqcLBtvYDsS/jkRJSYU 3sPbAiTdYsjhAi3F2Nozf1+/qETm3z0eryxRkJkDyt8IE+N4fkdqi8kxl v33nGRH04pl+bvWqd3a2MsKLrB5SlBeqiFTRWRKF+QRwoBN1FnezV8OCD gy0reRFrdtQ7tSE26Q3FAnW2qSZnJcxKU9YuhEKceZTAA9ERMkOlrbVJh Q==; X-CSE-ConnectionGUID: pQIlbMfARVa9OSxmzki96A== X-CSE-MsgGUID: enkpRI0pQUa+WiCZTaD9Gw== X-IronPort-AV: E=McAfee;i="6600,9927,11089"; a="13871841" X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="13871841" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 13:37:12 -0700 X-CSE-ConnectionGUID: QgW8GW6hTKCI0O6rhvGZ5g== X-CSE-MsgGUID: vt3AL+dHTxut838gqmSVoA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="36355387" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 13:37:12 -0700 From: Tony Luck To: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hans de Goede Cc: platform-driver-x86@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH 06/11] platform/x86: intel_ips: Switch to new Intel CPU model defines Date: Fri, 31 May 2024 13:37:02 -0700 Message-ID: <20240531203706.233365-7-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240531203706.233365-1-tony.luck@intel.com> References: <20240531203706.233365-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 73ec4460a151..c62c3c4ec20a 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.45.0