Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp153308lqg; Fri, 26 Apr 2024 11:16:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlM7HGDq98c3aJdTARuV1PHK4ml2Tt0BO/I/JmirHWFA6ofR+fk22DfrX+vxpQ+OetFfX1b/zRu3FQpTSoArid4epjvCqH+kOo14h5Og== X-Google-Smtp-Source: AGHT+IGtBc/d12oxoXnOeqlA2NRR3mwI3XbcQRdSbXb42uW4uQEk2ueJ8uCXCciy6vPEVdzZIRwf X-Received: by 2002:a17:902:e743:b0:1e9:13eb:9082 with SMTP id p3-20020a170902e74300b001e913eb9082mr4408870plf.0.1714155376377; Fri, 26 Apr 2024 11:16:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714155376; cv=pass; d=google.com; s=arc-20160816; b=rJsTcjN6cdlIyOWgTbktFYUW0XWHfOc1/1tJhjwidMopq8rKOKSEXxap1KZi6qkx6M 3iczTv/HaDhwKg+7I4KFatPqYoLZhZMd/902vbvWBDcY/o47lxi8YGF2Eg1+yybRw61H mwNz23zc34qQSTGUmAaLNW/4bcnYR4ksbZn+jbLBHMOgZKY8aqKC2GfyhAAquZfg9vzw Bez+CGbLd6w1ilJWfBAtXIn8fb2rQzf4poiDW26fSjRVM0qJT60ITbyb9Elp+o6II2ld gSYd94nMefYEOgAViPRUIFjbeDm14DhCUBhMrwywh21N9CSBBx3B04e3XB2rZ1Yk9atG Rg6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:cc:subject:to:reply-to:sender:from:dkim-signature :dkim-signature:date; bh=bVjdz7Gy4RkZPfkFiFDmeELpqJB65Gv1pm9Ngk9ZgM4=; fh=sRuoxverM9+fK9z5tkT0IKJpR0o28A+KF9ywarzvQRc=; b=W+LabfsJkNNJP1HzE5GET1lV0zihBC9W9SUX+x+uzF4cXT+wuD0u6ibaxdlktYy79Z QRC2s77ELtVbO6TEVJotEHpHpeR0/iOHJWb915qdLeaZIus6x5QLYe+XKgKAJNpvo+yZ O0SvGamrAuNzUZDW0o7FcvZxF43Xy+05L3H6R7BRJvff33wQN21I7Xi0odVvng3pwUPw RclwvXqmB741KiLTwFk6Vz6xsVyJexVdjU7IMenmeGhIHr//uR8zk/2VirQPtb0Wq1uq PUV3m8b0vdr/vvbg0qQNYDjhWyACt0bCkNbnipAsS6Fkai7RH11Gzp4u7IFY920+VYzp /GLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PSey554N; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-160551-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x8-20020a170902ec8800b001e904d7aadesi12291030plg.462.2024.04.26.11.16.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 11:16:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160551-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=@linutronix.de header.s=2020 header.b=PSey554N; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-160551-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 6C6C8B24AE9 for ; Fri, 26 Apr 2024 18:13:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5FD2172BD3; Fri, 26 Apr 2024 18:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="PSey554N"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ugBXJwH1" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 4950116FF4A; Fri, 26 Apr 2024 18:12:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714155137; cv=none; b=m8Mf/0l3lfN5UPweDJ7UmcL94G6uWn92hSNZOFGPZOHcH5amsJPjBXsm8V09AK5+x0tUX4XwBltqNNcRzEPVft64prPXzU5NA4FF8SMG9Tb9lUj1VeZ/83z+nNwFs2TNyj7Ppei4TO5sz7bTRrr8wOmI/GS95DczPNhCPdoGwGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714155137; c=relaxed/simple; bh=iK/oQ9SUPl3EQWcpPeA3epLY9MXR30hbXyX0eJ0boSc=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=ZkCaBhKR/qXI7zQSZNeaJczu59TiewA6FfRCDmPnsG7VZ0/ZvcCmlGp8WIKlQ7mAIsF4eQa+F2KHYl64/b18nRT1XJEo0yH0HhiVUc7JIay7oHpzNPjt3WJU7t2jMrf9Q9qpvec86VKt/htc0Zuy77VakiZs8epBzC9hcEEMYL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=PSey554N; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ugBXJwH1; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Fri, 26 Apr 2024 18:12:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1714155132; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bVjdz7Gy4RkZPfkFiFDmeELpqJB65Gv1pm9Ngk9ZgM4=; b=PSey554NDGWovvJ8kJ2/2gpfOXSXW1nzGyCkQb4vOWCmn+oHbHagNpA5ttPddZthQ4cLPz N1WsnY+ZgMDYlWhKs9Rrl+RdBQz3oHkIr/Rr438okw46AclADjCPW8zeIwuh/DrAyY7srB 3tmeBqN/6Uflr+dEmNkgxtRTOrS6+bb3WTEzPasB0I16ynnLrAX0bDxmJPrXRULDjxi6Pm mqBFfRPtMAlzPmtQ5yU7k2I4GITUM0YbuMxBjHod1nYSvFUvTnyOA+N8AzRjf9CVNfRM4V D8nrxgtTrswKaE/tTE05pd6B2jrw+FotMF92S5qiDarS8G1rvdvgUngWDJ8BWg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1714155132; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bVjdz7Gy4RkZPfkFiFDmeELpqJB65Gv1pm9Ngk9ZgM4=; b=ugBXJwH1Jmf2WR6IXx3jvJrbiRmwxnKBahonQZ2EkLou7k1ee3G9DP3LoayVCE9EKvf3l6 n3b0L9v58L/UFECQ== From: "tip-bot2 for Tony Luck" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] x86/apic: Switch to new Intel CPU model defines Cc: Tony Luck , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171415513183.10875.14797863535860070158.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 22878345b4c1e9eced4b5df51ab8b5006b36e802 Gitweb: https://git.kernel.org/tip/22878345b4c1e9eced4b5df51ab8b5006b36e802 Author: Tony Luck AuthorDate: Wed, 24 Apr 2024 11:15:04 -07:00 Committer: Dave Hansen CommitterDate: Fri, 26 Apr 2024 08:49:23 -07:00 x86/apic: Switch to new Intel CPU model defines New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck Signed-off-by: Dave Hansen Link: https://lore.kernel.org/all/20240424181504.41634-1-tony.luck%40intel.com --- 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 c342c4a..f76aaf5 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), {}, };