Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp612533lqd; Wed, 24 Apr 2024 11:25:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhGxNXwhTGia82o1OjaK/VTo/zFF938edEk9SnEVWvb+rcoWNJyC3bbEMKRqT5iHYH/wSGQtDQKn1BaZZIfxekkR8SnCQn+/n0Rjpodg== X-Google-Smtp-Source: AGHT+IFpO8V1SBsDHCEzovBL4qK2qFLpRfZlXbOpEZNt+DbzY5rx4tkoF60ryA2aFfo8igJ8pnNP X-Received: by 2002:a05:6870:80cd:b0:221:9013:d783 with SMTP id r13-20020a05687080cd00b002219013d783mr3654904oab.34.1713983128596; Wed, 24 Apr 2024 11:25:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713983128; cv=pass; d=google.com; s=arc-20160816; b=RLGPLJboNKwg2PJWlz0v9R2c6AqBhTMKwNi9dHDbDR8yN/vDoha9jWPCn2pXEgIuOJ 4h6CaVWV80S78d/mJl+atMya6cj3G0zQOUbpWHGuHaGQBlGgNqCpLw06Tj8iJv0wpHOJ mCdK4gP+wnXQii6ZcLWxCkCW7TL5TZYzUDdFyayXVXh4douc6DC1jBHxppalLkF8hXhx uwqQDhBXX1d/h1jfzteYUBMTBthXd4ABD4k7s4fjYoY2vC9re4pyUTTxbXsOFNMiCbT6 Y44kRoPVhBQ2vBi98vlv0qjbwuOifpgSMRpCtxphyMF5ylalapxixga1rWFEGDzBbQzs 818Q== 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=XyQrImJfQgzOCi0uh102s9yjZv3RGEImcH9b7I+DEnE=; fh=XdjPmk4E9ppoVGUT2rem6U6YMy87/I1OaQlekThzXsI=; b=PUe53fgTEoRZ7Sr6BQ9tZXGfpM2fSNzEgCNpHan4/SOZFf+yfhYJUmYBILleQtkqBH 3n/PWqsvLjb89C/XNj0VWfaVzhgoxDwNKGxXVI8GEGQNeQC6H73s/54kragqFyViEyzv xlCAf/i7uqPndVD4fRFU7UN0sf3JLjE8wupGY8TuEJagofaMniAGpZex5LPs3kUQYapG d2Z9TwcCOaCHhu/juCC4ELQwD5VunZZ4JoB/E7upyOpdnI5CNDwCSerAb7AWEvC8M0CQ HZttfDsjmY53mbMZ0kLRoc2Eo0JhQqHqj8zcdONErqHw1EPUY8hCpg0goJ2HoR2AC7EX 253Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LUpRGB3X; 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-157486-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157486-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 p24-20020a634f58000000b005f3e052770esi11440847pgl.83.2024.04.24.11.25.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:25:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157486-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=LUpRGB3X; 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-157486-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157486-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 78E47283B9B for ; Wed, 24 Apr 2024 18:22:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97B21199E83; Wed, 24 Apr 2024 18:15:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LUpRGB3X" 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 146841836D4 for ; Wed, 24 Apr 2024 18:15:24 +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=1713982527; cv=none; b=pVs4yRdNkTnyBzQUhWsJAQMRCbPDt20XA6RCT/4UqMcWFfscPq3CtXuPjqFwCnVTsvSwfLP1NcI271bU3H1BofRlSmcSTN9ja47439YT8cPpaRD4BUOYEysg1/jmesQRva7DqrTEjITiL5/PXx+Sb7+mzybkxLHecfZJZGseRH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982527; c=relaxed/simple; bh=xXGsSwUGJv8u8+15mKqC9kFQ7leMnNCPWaElrpBEOfk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bDabhdGd5JKnh/rV7EelTJoFuSEdR3Sb/ehVAAW8K6sUhLTbxT2JsbwxyPpqfxEWumehmHcr8WehQpbLxq9fWwM4RkbKo2Wuw9XnY6fPs1drUBWm1PUSyACJ/HlwFARBLyutUoSmsQniuFDuuIXluT3RNj7xXWdjzMzh+cj6rEc= 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=LUpRGB3X; 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=1713982525; x=1745518525; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xXGsSwUGJv8u8+15mKqC9kFQ7leMnNCPWaElrpBEOfk=; b=LUpRGB3XLxX8xfDsJZkT+T0W5sdQOliRCLro7ieuWBa2QOhvxUOESKLF OV+BxDCW7RVXgjx2dtNFT4iDioV2lEeaBy3a9JOW4oUWK4ygPdbF673ED BD94gmcZQ5wgPsFMzZOYfDHAfzpYNpiiGh3sYfejYMDk8ENH9ZhoY3ZgF uDqhXCiJ43gKKcGJEUR1M4uJN/SQeomym1tf77COO2SgudYatCLHXuAxJ 8UREWIYZIa1D3OFte0vdXVQ7oJWvgI+w2DLijICyKAxhXse5wcKYN0U/q TCQXuveRI7iAj8jLPRNPtWCQyjnmjS2beQaQow9Z1YKkeFQwFnsPj7Dzo w==; X-CSE-ConnectionGUID: UakUtv3BS9+9+3uVwkuf+A== X-CSE-MsgGUID: ztSa4WjERoept0ebvGatDg== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9503571" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9503571" 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:24 -0700 X-CSE-ConnectionGUID: lqZRJDaJRBO/QzC/dCURfQ== X-CSE-MsgGUID: f/4exrcAQseUlbm3R5Sj6A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="55750149" 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:24 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , Andy Shevchenko , Tony Luck , linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH v4 45/71] x86/platform/intel-mid: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:23 -0700 Message-ID: <20240424181523.42023-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 --- arch/x86/platform/intel-mid/intel-mid.c | 7 ++++--- 1 file changed, 4 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..8b8173fb0a43 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,9 @@ 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_HASWELL: + case INTEL_ATOM_SILVERMONT_MID: x86_platform.legacy.rtc = 1; break; default: -- 2.44.0