Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2746988lqo; Mon, 20 May 2024 15:50:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAhzrelykZIjtW79mWepYaOWNDCrCnIEoLANio3kxdyEnvo1tmuhlN9hpU8dDnm9xZ8KA9+uxl0Y260B+fX3/e8FacWWj5WgLqakGBpg== X-Google-Smtp-Source: AGHT+IEDaOidSBXHGmMz3USOWZTMjNHXhwJmzUNzh3JNbAGXdtkXD+Brhx7KxfHybt4nbGAqbv1C X-Received: by 2002:a05:620a:4904:b0:792:e9d3:2511 with SMTP id af79cd13be357-792e9d3272amr2063347285a.16.1716245400413; Mon, 20 May 2024 15:50:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245400; cv=pass; d=google.com; s=arc-20160816; b=C/cGm0P77YvWvukj5fQ1BXsiCDLxo/m1QCf8CeVJF/CQnEtwx3/yFCI20dcFSfEA36 Ehuu3K3VA+Zj9pjKlxyca1JTHv+gTH54bMd+Tu8fC2XeQk0DSJcB9/d+QUu+Oj4W7h0n QHSWVM0vpvDW8W0xT6ZobxqhnzFkMMGJbUQESUx2uHXpXBJ2P+7SWN8EYHyEhjXUTys9 DLFjTGmHrJiD5vre/IkBTBjdik9wxoMGST+O0CqvuDFFBx7XP8tAUQ/cs8g9kcWHQRso 05yFy+Q3dzuGUQEGsmoRtDCZi9eBsLis5ekoQDP5U6HqfIofAAj+pK2jQM50ZwrQVSMU 7VpQ== 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=90KB5ud5bwGV9Mlr+XdIdeTr3vb+l15RlrzE9BWvaOI=; fh=PjyMTzs7UvWP3U+/qUdzJByTpVUxubPCVIU2iQaWnTI=; b=vS/0JvD1ENzs5y9Y5xfOi24y1PjkZJV2HgnfDqY1JsIWiJVYmWmaA6a/UrwH7ExTUI CeuZRasjmZ8ChOyXSGMVPe9Gcdj+Y6A+B5I8u7pv6YGCbfQxtvF6yvpIrpCtYc4LcByK Y6Pclihc+vrzt7Ahy3o6qnMdAXw1Lxp0SBDBoLH05JYa41tG5wE4dU2ho7q2c3N/s3eE U7V4ED6jiAXBIS665DBBlo83deTW+FFf2Doxzm1CT/DqN1wjgLLQ/hZgNnMwv/5iZjUr UoG7BiZE8actfYmnBi7KejEYLF5fnnPf74tUm/M23GGW9pbboadNwaOJbtB62n/WJqkc p/Ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Un9Hr590; 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-184248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184248-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 af79cd13be357-792bf29a30fsi77268885a.214.2024.05.20.15.50.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:50:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184248-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=Un9Hr590; 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-184248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184248-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 2A85B1C21500 for ; Mon, 20 May 2024 22:50:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80FDD13BC3A; Mon, 20 May 2024 22:46:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Un9Hr590" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 1042D13B2A5 for ; Mon, 20 May 2024 22:46:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245208; cv=none; b=nTyVXNKeGfM678i7nbH4x8LeeLDPLDXOSbcO1V6J6ARGa15ATA+rUOSK0xLZy0SmMXUTmm8SeqgSdFfv4WItCfgt0OXjPSHHRO/Kqd6LjOE5jwKd9+wCLoSmj92Iq6MHWKw8HowGceW+TrmKA7IFkV1FTMtFL26Uul12y19rx+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245208; c=relaxed/simple; bh=32OovBnI96Pt8u6y2/ExOjFMxT/hkeFmHDurbkDaicI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mIlovYJxvHOUSaJBSfls9dUKrW1J4JbzQy3GbrameGshjxEFNRaeoRjVutncG4Nky6Z9njP3f0Eb0DH2DHw8z0dxy2TTBWcmZUUekXWzx33U+t++CA65tcwEMzfVmklUUHBkU7g8QLyAVO/cOTb02s8Hn/7GKCuPgvlncAXbWrQ= 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=Un9Hr590; arc=none smtp.client-ip=192.198.163.18 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=1716245206; x=1747781206; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=32OovBnI96Pt8u6y2/ExOjFMxT/hkeFmHDurbkDaicI=; b=Un9Hr590o3gGq1vVei35p7QT2Yam0/aNZjR6AFw7PlvrY/XGaC3fOCjF VlWsW4ofTIrSQDMhvFPtTQNH58C8JuJvnRGDgTSzIGFqVXJ4R5zOzpDzk 6rh5dkGpi/TFJcyyNFbQMEmA0my91eQVljFCfm4RH5p1kF69ojfHMHjqh BSKyk7fVkUSP771v9CULxf2xPKjxjigB7RnSb+3tE5RmUmWkBSyKxhphU 8oGw1S1jarQ8NZYEHQSxb+33jcR/Mty32Gsbmv9E5LdUn+O1U32QL+d/X aDcsIiGuByOeGDni7e9UKT3kWDXCahz/be5av9hfhAOvsamytXC052rOB w==; X-CSE-ConnectionGUID: j/KaexiDQ3yhxFJX/C2FWA== X-CSE-MsgGUID: 4qRttgz0TsyY37YCi54ygA== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199712" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199712" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:37 -0700 X-CSE-ConnectionGUID: /gZXDJriTOiKIdQcRhTJyw== X-CSE-MsgGUID: 9XGSISLaS2Ku671oT+x9SA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593439" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:37 -0700 From: Tony Luck To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Uros Bizjak , Rick Edgecombe , Arnd Bergmann , Tony Luck , Mateusz Guzik , Thomas Renninger , Andi Kleen , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Hans de Goede Subject: [PATCH v6 19/49] platform/x86: intel_ips: Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:45:50 -0700 Message-ID: <20240520224620.9480-20-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240520224620.9480-1-tony.luck@intel.com> References: <20240520224620.9480-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.45.0