Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp622481lqd; Wed, 24 Apr 2024 11:43:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKLzZU++hX+lwpPkvl3gGwxiXL10piNSYURSQESnOyfnkGVqbbYamICJTdD3RUslWAdulMSuxykLgg2Cvhp2IglAi2k8I3aVoIKUnTjg== X-Google-Smtp-Source: AGHT+IGFYPMh4jLOKwGBeEE7XbCYcz8DCfL6RUGSaiaAaM//L5N/WO7XqR8OwdcwP91c5gUqY7Sn X-Received: by 2002:a05:6a21:3985:b0:1aa:5fb4:86a9 with SMTP id ad5-20020a056a21398500b001aa5fb486a9mr4485978pzc.26.1713984212821; Wed, 24 Apr 2024 11:43:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713984212; cv=pass; d=google.com; s=arc-20160816; b=Q71hCzLS8GfkENk/ZnaW3EkL+uBwqnqUaixJ7KJ+VnYjiNm3NVKjb2pE/Jayq8JL0c maWmk30t9o16OeRIBh7OB1kaid6fx2Fin2NIkJOv57j2GAXlER2E7Oh8yeMr3bAiBjav XpeztgKTZxStwnb1D2+aSXZpANLIDgQjjSYIK10Qr1XaVn9qi1LDih1GA+9cQ/Lgvp3u cqJdmSAEHE6YFjIcqqT2Dfz8Idb4k5n87UmhdTtWP15jIHtks6rssPtLpoZHPvvDvbVc WMPArIIEF5+SpsEf5yu5RUBOFRwknqbA99Bfz9bJ8RpNJmk8jja7eFGJOh8hxDvK5WAk yQ0w== 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=M8lHgK8vqxu3VmGnlD1m9xuzJyAkymmWKV8eUwtnyWw=; fh=2wM3EYL3Frr9sT2If5QwUd+jfwKFCAJ3qxNXeFXCpng=; b=zB33rKlb2AGn7xWKvqSyJd7cUSpHAlqc30x8KZGJFWI2e7GdG3wDrOBH5QAl+E4AsP 7AwwmUgePKGFbEdBXmCcOAzeIMkligG9dkjuj6zne7RUhRHubWWS0JaYunRpd24HGIy7 GEJ9Yzqr3ZlcVMgc10QNqkUffRxlylUpZ1dsHv32TcNNwX79Lr0zK6BZz+z4U1UmwGhr R9eCngKyOH7Jofw4D01HvTWbLt9vg1EkOANKysOJsAro3i+cq8MhRV7pKleCcuexxKUz G+Ddn5NwhMOx5mjJDygkPXXZ+OYO1292IA5u8vyhpbkBJB0/wYI+eokYRXZoq1vXRPdW THSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RRIlfN8y; 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-157475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o18-20020a656152000000b0060278c99018si4199193pgv.627.2024.04.24.11.43.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:43:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RRIlfN8y; 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-157475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157475-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A9159B2B103 for ; Wed, 24 Apr 2024 18:20:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64463180A9F; Wed, 24 Apr 2024 18:15:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RRIlfN8y" 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 A542917F39E for ; Wed, 24 Apr 2024 18:15:17 +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=1713982519; cv=none; b=R0xZNqAb2JYnb7uuFTdbIPCB5DE2HcOjn/WMBbjh1qqEQjA6eGrmO4TEZktV9GO4p7gIHCJxjGTecdNHKeVjpH/pSA/zxR8AIdRNdPl4o6+PtS/S4Usp4FAnBJUV2dHmih749XzICYGSGJ3PUCTbEA3dLBneuwf2KYKTIM1CnJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982519; c=relaxed/simple; bh=fKW7Hebo/mjNQBGgGrh7VgSx16cw2WCfuxGWQqV9SBM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qDPMNrcit8ZMV31ftW964OknmY2ToEnma1X0oKvCtvUp5WS6UXDQq/Zsv/i3gVChXxFlzdpMfGiVvaCfwNzQ22l0i/n/bF87hjXKfuiYiXfp4fuwkPNJl9BTPcrTPvuImfFNEgQmuWrU+orO+g0xbcs49J5u+ekMspidANv+Xh0= 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=RRIlfN8y; 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=1713982517; x=1745518517; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fKW7Hebo/mjNQBGgGrh7VgSx16cw2WCfuxGWQqV9SBM=; b=RRIlfN8yOVdT2Y2iVCjX4kTR32Wu3kr+JlipTk4JXbHuWt6UU/7mpGka PaH+C4oUeNGErlOkahB0qCQG0UdK6GbGVKoeELAQLom3NGrBWvF+0XxSq Yh98ZpkbOogjJ6piEzUWOgTz8gSbe3nWsHwUBXh23JT58iarvlS4EjuhM tEiPMji/UemTEqTtgSUAgXGeNM65JsZ5KycGd9goAzABwVFj9+jOWoMmZ uY1f/bAbwxh4WrxKmJg6cFD9e3wCPhZoQ6/uMIvpNSCOGjQsQ0W+HnAIp athVqF6Jyl0SV1Don9Zt8WytGr2mdjV1n8DZ02xS3hEju6FbfTUDRW+P+ A==; X-CSE-ConnectionGUID: 5F8LTdoOSHiRDf10gftlZQ== X-CSE-MsgGUID: Nws+7YUdRFSRKjWLeoE8Sg== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9481933" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9481933" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:05 -0700 X-CSE-ConnectionGUID: Ws0Wt8ZnTPm9OfnsvgRtzg== X-CSE-MsgGUID: +yBwUMi0Q2GQCgsU2hkWHA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262682" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:05 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Tony Luck , linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH v4 25/71] x86/apic: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:04 -0700 Message-ID: <20240424181504.41634-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/kernel/apic/apic.c | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index c342c4aa9c68..f76aaf5216f3 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -497,32 +497,32 @@ static struct clock_event_device lapic_clockevent = { static DEFINE_PER_CPU(struct clock_event_device, lapic_events); static const struct x86_cpu_id deadline_match[] __initconst = { - X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(HASWELL_X, X86_STEPPINGS(0x2, 0x2), 0x3a), /* EP */ - X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(HASWELL_X, X86_STEPPINGS(0x4, 0x4), 0x0f), /* EX */ + X86_MATCH_VFM_STEPPINGS(INTEL_HASWELL_X, X86_STEPPINGS(0x2, 0x2), 0x3a), /* EP */ + X86_MATCH_VFM_STEPPINGS(INTEL_HASWELL_X, X86_STEPPINGS(0x4, 0x4), 0x0f), /* EX */ - X86_MATCH_INTEL_FAM6_MODEL( BROADWELL_X, 0x0b000020), + X86_MATCH_VFM(INTEL_BROADWELL_X, 0x0b000020), - X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(BROADWELL_D, X86_STEPPINGS(0x2, 0x2), 0x00000011), - X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(BROADWELL_D, X86_STEPPINGS(0x3, 0x3), 0x0700000e), - X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(BROADWELL_D, X86_STEPPINGS(0x4, 0x4), 0x0f00000c), - X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(BROADWELL_D, X86_STEPPINGS(0x5, 0x5), 0x0e000003), + X86_MATCH_VFM_STEPPINGS(INTEL_BROADWELL_D, X86_STEPPINGS(0x2, 0x2), 0x00000011), + X86_MATCH_VFM_STEPPINGS(INTEL_BROADWELL_D, X86_STEPPINGS(0x3, 0x3), 0x0700000e), + X86_MATCH_VFM_STEPPINGS(INTEL_BROADWELL_D, X86_STEPPINGS(0x4, 0x4), 0x0f00000c), + X86_MATCH_VFM_STEPPINGS(INTEL_BROADWELL_D, X86_STEPPINGS(0x5, 0x5), 0x0e000003), - X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(SKYLAKE_X, X86_STEPPINGS(0x3, 0x3), 0x01000136), - X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(SKYLAKE_X, X86_STEPPINGS(0x4, 0x4), 0x02000014), - X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS(SKYLAKE_X, X86_STEPPINGS(0x5, 0xf), 0), + X86_MATCH_VFM_STEPPINGS(INTEL_SKYLAKE_X, X86_STEPPINGS(0x3, 0x3), 0x01000136), + X86_MATCH_VFM_STEPPINGS(INTEL_SKYLAKE_X, X86_STEPPINGS(0x4, 0x4), 0x02000014), + X86_MATCH_VFM_STEPPINGS(INTEL_SKYLAKE_X, X86_STEPPINGS(0x5, 0xf), 0), - X86_MATCH_INTEL_FAM6_MODEL( HASWELL, 0x22), - X86_MATCH_INTEL_FAM6_MODEL( HASWELL_L, 0x20), - X86_MATCH_INTEL_FAM6_MODEL( HASWELL_G, 0x17), + X86_MATCH_VFM(INTEL_HASWELL, 0x22), + X86_MATCH_VFM(INTEL_HASWELL_L, 0x20), + X86_MATCH_VFM(INTEL_HASWELL_G, 0x17), - X86_MATCH_INTEL_FAM6_MODEL( BROADWELL, 0x25), - X86_MATCH_INTEL_FAM6_MODEL( BROADWELL_G, 0x17), + X86_MATCH_VFM(INTEL_BROADWELL, 0x25), + X86_MATCH_VFM(INTEL_BROADWELL_G, 0x17), - X86_MATCH_INTEL_FAM6_MODEL( SKYLAKE_L, 0xb2), - X86_MATCH_INTEL_FAM6_MODEL( SKYLAKE, 0xb2), + X86_MATCH_VFM(INTEL_SKYLAKE_L, 0xb2), + X86_MATCH_VFM(INTEL_SKYLAKE, 0xb2), - X86_MATCH_INTEL_FAM6_MODEL( KABYLAKE_L, 0x52), - X86_MATCH_INTEL_FAM6_MODEL( KABYLAKE, 0x52), + X86_MATCH_VFM(INTEL_KABYLAKE_L, 0x52), + X86_MATCH_VFM(INTEL_KABYLAKE, 0x52), {}, }; -- 2.44.0