Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp242391lqb; Tue, 16 Apr 2024 14:27:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGMmKYrMhlhq2AJh/D4trsiZBaKaVQvXCLRmRY77cF7o1V0N11NO5/XjTzNeVha8lA/sDCyrR9oYFvD2Egb1000w/fZdYMxYmKuwkt7g== X-Google-Smtp-Source: AGHT+IH2U1NVNWUgr+8wk/gYCpAOicPgcW6LYv43J3Sn1Xp63ErQ9U1FC35jsnOpXUEP1nhtXKDE X-Received: by 2002:ac2:51aa:0:b0:518:aca4:b508 with SMTP id f10-20020ac251aa000000b00518aca4b508mr7391610lfk.36.1713302867802; Tue, 16 Apr 2024 14:27:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713302867; cv=pass; d=google.com; s=arc-20160816; b=LKw1/G0qLk4MB4QQ32AfF1Gjqg8Z8wihlkam7w+o1lbUgobRTtMJYDZ2LfowGN62XX m8ZrTRSjMn0Q76nrCcJZpAyrsqW2oiKSrmpXwuIXUafvlKTpPQDrt5UWCzT7HKLi57+7 nIMbKvTYevqnf5fCl+hkBxpJknQEA+zGZQ099mF7mvXLluR+V06Ot8vbgus97Oy0uA5k 1AVInVw0BERt4EQvKfwufqhYrSwQPjp1MRbLB1l7JbKPNpE/XqYc8Qg14uME2tMZbDLO BHMV2ZQCiLivt5UZrXcWE/JD9MVP/Obussh9/ARnbiEmN3JiYnq1SgEV5WEUNDvsMsZR EErw== 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=fCCNFvJbPqqXo45yXdlgqaDimb/JVSzwDZSVTcpWFog=; b=l3GF15sioMVGP73V8aBUGZNdaQsSJFX1QLny8BsNc1uOsTKgKoFKrWzt7OlHUoAwwC sycChhPx/RzSCH/c2irFwyiYkcgs4N2qw85b397Mieihx3MsaNFb1GLg1rCLMOpwEOP2 MrOGrnpGpc9eDyfrS5yfhRQ8KHA7g3my5Hwfq/x10xzgE340ZFW2sJFFkqPMSdeDOWny AzuonjmB0BHB0KYQ83bMLoz1EeyKp3UeLSjKlcmGA3yKTbsYQxsYM9y1dKmN0ZiB0ZEG lfvw2/ZvTmsW4f/P7jnXWTgsc5Rp9DfQDch1rSF1BoXMIY1887b42P8PRf2JL2N4hugb AdLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LfoaOC8I; 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-147598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147598-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d13-20020a170906304d00b00a51c52f2648si5938396ejd.51.2024.04.16.14.27.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 14:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LfoaOC8I; 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-147598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147598-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 830461F212C0 for ; Tue, 16 Apr 2024 21:27:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 207011487E7; Tue, 16 Apr 2024 21:20:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LfoaOC8I" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 0552B13FD7E for ; Tue, 16 Apr 2024 21:20:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302416; cv=none; b=n4iP73olY80vh4d71Rrcc0LQ/lROEZaEYwFRQ9iv5zYjy0swAyA9fQ0Vg3azeHTK3kqUVDX/8TbjSTe6O3uOoTyQ8lD3VqE9XV/ZXGhz6v8kaDcPmPEYh+RfSpzjafIP5Pl2mvC0JBFg9eUWgzv0LMNk46EDm0ca6v4/a9S4k+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713302416; c=relaxed/simple; bh=xXGsSwUGJv8u8+15mKqC9kFQ7leMnNCPWaElrpBEOfk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eN+2zamfjWgg6mp0pwWpWZ/vIiwtK1OKyVVW/C/IrDSBmUTB+5+L/1nim1N7w96SedGsy95mXEHLjHyGLaKYtBJXkcblYwcDLVrXU+hm2DPHIDDWihSRteMg1QsqXhTr5t5JLhdhyx3G4xzmDQNh4LqYGJN5mOQnHKZ4LmgS+Zs= 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=LfoaOC8I; arc=none smtp.client-ip=198.175.65.13 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=1713302414; x=1744838414; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xXGsSwUGJv8u8+15mKqC9kFQ7leMnNCPWaElrpBEOfk=; b=LfoaOC8IGUWNWOdJUIrgGe3qYh1mcYtDJIMlsAoj8TAV07DykT9+PpjY s8f4YXQSKVvzyk38B8+FaTG9af6ZFS8ns7PbiJb/rLb9gE4V3t4wsx0G7 5TJrA+XjtL6RdSaVoFWYDH0IyIKddWCOhs9G8HOXlS+uwvBaugHL7EQM8 8yv6Wb76XBXfZg2JydxeoU3nswBSHOQwgQA4xI65TJLmGvUzGPiCRg3Jl Cp9lsTk06DZtPDeoxD3nqynWHiqc6/61I8ZSm8PA+5WOnoWXNg55rUrqP voPLgC+JHbI4zaaSh+MmH0xjrwrIdzPZ08eqjlfKzzVxPvcUm9wQUSTtz Q==; X-CSE-ConnectionGUID: 3uqsV188QAeyUK5D0zniDw== X-CSE-MsgGUID: /RDm+H2LRpSo4hzgRSE/uQ== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="19914838" X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="19914838" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:20:02 -0700 X-CSE-ConnectionGUID: Jm8oSg1tRlK6S7/S47jH1w== X-CSE-MsgGUID: gh/5s8S/RRSa2dSQM2BjNQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="22872053" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 14:20:02 -0700 From: Tony Luck To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v3 36/74] x86/cpu/vfm: Update arch/x86/platform/intel-mid/intel-mid.c Date: Tue, 16 Apr 2024 14:19:38 -0700 Message-ID: <20240416211941.9369-37-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240416211941.9369-1-tony.luck@intel.com> References: <20240416211941.9369-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