Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3188707lqo; Tue, 21 May 2024 09:10:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYYxZ04Gh0DasKmtH3NBja8LSAMYLa76JIBnk5IjYqj9AY13/qIBMtOh3Jkpg1pK4YZ8jac+wwsUlfxvBvTrByO2oMm8mWoCjrcJYSPw== X-Google-Smtp-Source: AGHT+IH95zptAS/mbEeWXEjjiFvzvcKUlO/j1C4niLo9tlv22UiwnCeSQGYonZ2HioGituXxA36/ X-Received: by 2002:a05:6808:6346:b0:3c9:9396:684c with SMTP id 5614622812f47-3c99705a0c7mr36285762b6e.19.1716307822247; Tue, 21 May 2024 09:10:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716307822; cv=pass; d=google.com; s=arc-20160816; b=UwDk4YoQy0duybF9ZffA5WZiYZKZSMwlXCGSDcJ0ZiB1tfAMRjgxU05PsAZQA1359n n8/gY1/Eu+Z8ufC2RRz9+Z7fiENfFVws1AT5yyyihEvGZTOzc4ExsMD/9SwYgvm55R2t SRHo9Xx9/3FwkuDn8XJ3AOS81fJUdx3H9OE6LEjWWpGo8r8v2JErGzbQVnK0MDHWGLcr cuKYvfIOeXQpbpgB16yASBssYcR9/gfTcMvcobH4Ua22zbj7x7Ki4XWYBuF3RQCjNKpd h/k2rKXviwLn+niRMZKa4nbMXQ8Nd7LTfcxfGfIXTv5+UYtjiHBi+rdjtrBqs/ZF3San PwdQ== 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=DNiqvNjjLq5vxL8V0ydbBivcUHdjFY6Sb2xiOJvzZHo=; fh=KehMSoaNrJ3W0NZyDwMVtZHatQzVOAZPKkizdiAWvCo=; b=gtVKJni7BUCPrJo7MDDQ2FEko3g0ka0Be74UrPbu/G/PvI2pSFh61/FY5xlqaXVM7U BVRoo3PijFSLDaX+3qNfQmm4a8xlIoDQMB01YT85HAnQsU62jBsJZSqIEZPbS5UNRWou njzbJ4qcLSIp1BMBOYSvcUiILfBO1IOIH47gllKUjdzkFH/wZsIIMDSFPy+qjxgBZHsE zlhC1Kb+zFKUOD3J9tctojL6QNt7gh3aL9SzQzytaK5oTTHlw3V9iB00zPzogG1NbbGL Zlb69O18jsSBjv26WpfMqV5QtFKRk1GuZtFNaOHE/fKq7GMZ7R1KGPgbnkX+stXM8Yb3 yz2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iH22YBEn; 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-185203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185203-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ab6c8e2ac9si35783646d6.543.2024.05.21.09.10.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iH22YBEn; 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-185203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185203-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 EE4381C21EC3 for ; Tue, 21 May 2024 16:10:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5275E1C697; Tue, 21 May 2024 16:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iH22YBEn" 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 AAD2B1CD18 for ; Tue, 21 May 2024 16:10:10 +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=1716307813; cv=none; b=iJIQeJABXCohhHcjypBUDvZ4ya9VIJOyASCfGdccbpQrDQmuw+UHlavzmJPrl9Ox3H4c9zcuuXdjomN8+YiwGe9CCobDJRtOybGBcVkvwcr93KbgCRQRhwD85B3+EwSOjX2ZPbtHUN4mzoEcQ47muj6G17w13035itKfusW+C7Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716307813; c=relaxed/simple; bh=68M2NDRggCs0VFE9AYWoncMfFrGsX4y4CaXof55Z9lY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cBR+CjDlNUzqJE8cyLLc+XdshWIgmx+bnUUkNE0Pqe7Whca+RWuxo0wbeJaizPTlOnro/+6nD6TJ3i4Zv/nVn269l7Gt2dBqOInv8cIlNhixOIJhWA4d/6nIG/wAnRQVpA7mDgKvJ7ZtWIqecznjX6pXPZfkOsCc+FnqBsgOll4= 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=iH22YBEn; 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=1716307811; x=1747843811; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=68M2NDRggCs0VFE9AYWoncMfFrGsX4y4CaXof55Z9lY=; b=iH22YBEnb+PRB7VhHisRWVd/ppgozKGHIjA9Lc98Ar94uHikSVJHP+aw 1YXakqH7sL9mJlPbzeRzUgyAH1YofgQkrpRpnk0vroCNSqqtrUOiGBhB7 LkQN+YNIGFYw2IJ2nE49L0S2aDATFgGfOo4ukNMrI9TAki7jy5m3T+uAK UDxnXbjyRuSbPSLhxQSjPgtCDxkUheGlTOaBVNsnHhhrQR7Z0ryKC3ew6 JByO+Pme9gJ+3vMRO7Pcg8pcB0PuNBz586vZ3wVzyOX5tAdunSH6lG8CP 2b/ro0jPeZadRjY8LiiFjOKkHTO2JrF5EhD/jxvER5P4rS4LJH+8fKmu/ Q==; X-CSE-ConnectionGUID: uDIkjjYfTXipXgu3TYwoNA== X-CSE-MsgGUID: jaEBVVzVQYCM3Ye0VvTd2Q== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12357959" X-IronPort-AV: E=Sophos;i="6.08,178,1712646000"; d="scan'208";a="12357959" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2024 09:10:11 -0700 X-CSE-ConnectionGUID: a8tXbICTTXeHaECMbbl+Zg== X-CSE-MsgGUID: m5Lpxi2PS32s4xtVNbvnjA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,178,1712646000"; d="scan'208";a="33129766" 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; 21 May 2024 09:10:10 -0700 From: Tony Luck To: andy@kernel.org Cc: ak@linux.intel.com, arnd@arndb.de, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, mjguzik@gmail.com, patches@lists.linux.dev, peterz@infradead.org, rick.p.edgecombe@intel.com, tglx@linutronix.de, tony.luck@intel.com, trenn@suse.de, ubizjak@gmail.com, x86@kernel.org Subject: [PATCH v6.1 16/49] x86/platform/intel-mid: Switch to new Intel CPU model defines Date: Tue, 21 May 2024 09:10:01 -0700 Message-ID: <20240521161002.12866-1-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: References: 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. N.B. Drop Haswell. CPU model 0x3C was included by mistake in upstream code. Signed-off-by: Tony Luck Acked-by: Andy Shevchenko --- arch/x86/platform/intel-mid/intel-mid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/platform/intel-mid/intel-mid.c b/arch/x86/platform/intel-mid/intel-mid.c index 7be71c2cdc83..f83bbe0acd4a 100644 --- a/arch/x86/platform/intel-mid/intel-mid.c +++ b/arch/x86/platform/intel-mid/intel-mid.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -55,9 +56,8 @@ static void __init intel_mid_time_init(void) static void intel_mid_arch_setup(void) { - switch (boot_cpu_data.x86_model) { - case 0x3C: - case 0x4A: + switch (boot_cpu_data.x86_vfm) { + case INTEL_ATOM_SILVERMONT_MID: x86_platform.legacy.rtc = 1; break; default: -- 2.45.0