Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2172735lqa; Tue, 30 Apr 2024 09:55:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAgK/B6FraYbkTX/Rnxah46Pjbmk/+BKgrS3AqPZkTvA03bkMEZQ8F+vih/Sx+5Ru3j2p4Cz6ST/QarWLW2wJHV1ag6D/KMdybJbQuuQ== X-Google-Smtp-Source: AGHT+IHFxPKdU7PfWjV2Ag5c6/AGwDShK1XaXtc93ubFQpq5XWBsWWxATaCcxTv40KpGV5CmLv4h X-Received: by 2002:a05:6214:1149:b0:6a0:ac7a:3aa1 with SMTP id b9-20020a056214114900b006a0ac7a3aa1mr12995066qvt.61.1714496112256; Tue, 30 Apr 2024 09:55:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714496112; cv=pass; d=google.com; s=arc-20160816; b=BlCTY9Bt/HIYBk3cfiGecnftW/AjvNBCQnS/rVk+4tpENqxpJmMHK2LcdAHXDi6LAP CwszrVy1WEnCBWHmHmBwihf4kUV7oZmVdQqlFde+kdz4WZYKTAmsg6pFac4oRAbEILUd Yqrk0yxJhemMGaONPjvs2xthwfi6YbNImvCjXBPaEE5mQq1vCF1FVtzoUABr1eY3lIl/ LvzX+e/P/aDcLvtcv2qTT0MvYos8Y8pme4lj6YkDaSQ4cH+odMO8U1BSiS2/oaYS+P8e 6V0bciV+WfUtfBYeHrnV5RrLk8fEJnwYT4QJ5LAkM82mkv+BOvhXE0w3XcDieu3CTyYu ZYzQ== 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=V7gzXQTnpBM1gvfzLQNy9qkLTu3Dm17Ba0OGH6XN0Q4=; fh=xlsRGPDxPKpnsqMkeb14EDn9K58eVs+Zxy1ewxhO0OY=; b=i2F1s/5GyMJxXCa/jlWDLBcn/GNDCaI7avEOGJ7ocYfk9RJqC3psHy5qwnNluY8Abh osEb2iVg5sRTBMUwjD/1Y0kKaivncp9TgnuQZ+89ED13giECandWdJkFYerxZbfU/Bq8 YYSvoFshntGs968+Txh2PFwIwzjR5qnSn+rQOoeaGoL/CKTck/bf1X/rOEjXK8ATPwbw EfEWsA1GCNNvnL+7wQliI1delnR7lqaKe3qnsdFyOYwthy30DgKk5Q5mRLtKXw2+IpMC 7ak+auV50+khnNpgnxb97+5YStebCOk0bZyQnH/spcAwOeiBgacK4oOzYKhfoYjtToHw Pxzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ORbwmPqO; 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-164451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164451-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 pt2-20020a056214048200b006993d828d7fsi29622665qvb.259.2024.04.30.09.55.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164451-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=ORbwmPqO; 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-164451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164451-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 D95611C23BE6 for ; Tue, 30 Apr 2024 16:55:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B38E61C230F; Tue, 30 Apr 2024 16:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ORbwmPqO" 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 842681C0DC7 for ; Tue, 30 Apr 2024 16:51:44 +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=1714495906; cv=none; b=B0qxzvkB+NFHnWuYT/tVMPnjg1rAKyvqeSF1Pvxj/X8QUuGGuSei1qDrUni0Lhf2uFt3l3wZiUeHDukyiqQz7YbXO4HvD+kRzhNt30y3Yn4YrK50t+hwso6MsdUOQRo5VeJJ5Osf6oEU8UesVgxhlwaTf6cTB1L905sYv84JBZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495906; c=relaxed/simple; bh=SFMHZV/UxNJy8zM+holmrAwHdS1VJwo6fJNNlhwW/6o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PZSTkHX3NODK8UzcmplQil4sXc/U3MoRplSFA8U7dbOH6viogl3RsY1ohsjPwohVwbLxj2UpvZan+Wkfa0v8FAJrWkz4wEs46UZaeUxiCb+atn9t3NlPg32S60S3/8O8lslyGnTMSQROwMJFonv0syQS+P7K6Bow6x6pfF081uA= 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=ORbwmPqO; 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=1714495905; x=1746031905; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SFMHZV/UxNJy8zM+holmrAwHdS1VJwo6fJNNlhwW/6o=; b=ORbwmPqO6N8hXbvO939/XXT8CQ5VUrRGvPXqPHD2LWauAW4UvXD7ONL7 2/l1LKfwXQc6yot9+T5f7nKUFn0LowCXYPmE0K3KFWqwdaFMsplZTHYfZ UfngZ4J7cDbAMwg7DLReoueKtAQTs1+e1KmSyNG83673iG/6iPuXO5squ KrDTlvLTy+ueHRBzkMmA0QAk5EFGhTsUtqdJdhLEDJuUHbpirjg0Q6c9S JzJIHvM5SpPMs8VS7FgJO0X4Sr2lsAoCKR3gsF9w8A7ddIo9pV0QxOaie ggaXlIlz0GL87HkVUb4QXNqpz+m87my6lC3y3HeWCShlvJWOB5cf+ITUG g==; X-CSE-ConnectionGUID: ONsMNKBGSuyQlr9f5caROA== X-CSE-MsgGUID: qFtJvCqJQkifG68+SJpwSQ== X-IronPort-AV: E=McAfee;i="6600,9927,11060"; a="10075690" X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="10075690" 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:22 -0700 X-CSE-ConnectionGUID: +P1mMr8fQYqflBKgu9NowQ== X-CSE-MsgGUID: JDzSzK/OTO+WUMGQj1+mXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="26515439" 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:12 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck , Andy Shevchenko Subject: [PATCH v5 14/47] x86/platform/intel-mid: Switch to new Intel CPU model defines Date: Tue, 30 Apr 2024 09:50:27 -0700 Message-ID: <20240430165100.73491-14-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: Andy Shevchenko --- 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