Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1229529lqa; Mon, 29 Apr 2024 02:03:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWe7lKYIu27QxWa+nJUqd9c6SXV6mBHAIOJrIJ9rxvppx+Y3QDz7Nf8/RoJn9JA1pICSGzMGwfq/nCbYckUFnS5jveJxkVm2+UfwVfzTw== X-Google-Smtp-Source: AGHT+IHtrr+WKAA5E9vjGAwbXo/xyL38upkc2wBiu9FCsV5JckY8kuOJgnmSlY4VQf/Nqf8605T0 X-Received: by 2002:a50:8e5e:0:b0:56e:3571:189c with SMTP id 30-20020a508e5e000000b0056e3571189cmr8102034edx.18.1714381413885; Mon, 29 Apr 2024 02:03:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714381413; cv=pass; d=google.com; s=arc-20160816; b=lperCs3q2yS13iB7GX1mwCTgSmHksOy3N/X5HVO10dsXPgjz5JD9QbBQmiu6lSIdz0 mwJEdeLk+fKBmJnVlzzkLIOaEsMnHuscbb3+dYIP4uIl/aTmvzYZCd6SBhT/MQMrsac+ 8bIHAkhQK0arY/Iolj+r/fzMhvCfj6q4PyKs7oQ4hri7m0+GGCk5w3C4nAtPeJDaTmeL HhUVO87M6TlMDXJZZG707wA1fOQT78jglkV3dhIVWCMrXYpjrIsLDZeaadIg/U3NmA1m kUDfPAdeZF4plgP4ZEnnY8CQWDt1IJd0H03Q2Fxx7DL4BwqhHciPT3tm5dHle5XiYWSV TDbA== 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=zKn5lFj3UR+9eC2hMYtOmHR7asN/pEhekjCm25XpOcA=; fh=JTk9+qr5gpUHTA82NAoTC2Dn364LtWPF0bcXdXoFHrA=; b=n7xC+vqzF54xDGOpZpBBd3rIdayC00njB6EnmtXBtuDv/8lvV3vJPgUAFUgIQw5arj a17h133UI9VG0SD7YX3K+vIV/GsXK7tUomfmvhvCP+53mga4HLLtFAqLkjodZwVKg32h lollPh8dSDnCtRuSYAIATQcc2GS5E7UP/TN7DWDR9uXow51boX8rfyhLuX139zE75jB4 xB2nNywSF0FnniQL0eSC513XmDd8Gf3kdN/c77W0plJH/tY5baNFj+JyBO1pokYspJPv gGl33g3TcmrHJvusYA2iKb5MXS/KKdSvfH2P1pzvoe8UL6ideSpIiaJY/h7BFQsdqIb5 D8ZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yLqcCnSe; 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-161952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a3-20020a05640233c300b0056e5c132f49si14116973edc.592.2024.04.29.02.03.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 02:03:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161952-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=@linutronix.de header.s=2020 header.b=yLqcCnSe; 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-161952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161952-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5F53E1F21B20 for ; Mon, 29 Apr 2024 09:03:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A28373D56D; Mon, 29 Apr 2024 09:02:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="yLqcCnSe"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="d1qDZYW3" 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 208362C69C; Mon, 29 Apr 2024 09:02:04 +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=1714381326; cv=none; b=FBQ4hXpDB6eVwoK3v/U9gw82SHozzW9xEa4Z+0awGV5aSlt49QMdp8lwhusq2wPLh3lwpwJXHt92+QA4odQI1YBCUE4XNAkxVc8anP26t2nZmFjgYiG0mPiDlDNiyg5LV/CB1psywtOyXeCN1tLq28ZNpxyffix6ZYdsKjwbPqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714381326; c=relaxed/simple; bh=1jB4+6xBSUvt40mKxhoDG9YV6pf5z6PjWdnpw44olh8=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=o+43ydsxNLvziVJHIiooP6hEg09WrepEd5zUh/uzEG+cr4XvCiJ3qdhtKC5qjZEQZ1z9DpVWzwmPHyp/ng1rNXHp17h4t1Zq7HUuTgZA1ni2DIVPzqJJQxKgatgwLpCXvNNeUgz8mm+jiOhoNg2d7TVvW+zzOqMuG4vAZ+YlnGk= 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=yLqcCnSe; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=d1qDZYW3; 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: Mon, 29 Apr 2024 09:01:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1714381315; 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=zKn5lFj3UR+9eC2hMYtOmHR7asN/pEhekjCm25XpOcA=; b=yLqcCnSemYcbahm31gn5dCxUMBeqhAQp7SCHwyQVBwMMiBjDPeH02xsAV+xSk3zlA3TKdl jP9V0vaSqQDVLou3E3pUDqq50JZ8gAZeMdy1jFEYltKFW9WP/YBn8KTrw7V4nzYp1IGnQK W7RwO7qAprijtxN/B/XsbLHdfw3R+vfmrkpl/Oo4aXsQc3xgy7ofhfAaZcdl8EUjQxQx8Q SFjj17I8bOXhlXa1WLdHXS5ZZb4FPVmfuwETPaAydoS/XfMFtqYe/zV69cDwAZLMp8HJIs OAzOaoc1oQh0CT2P+mC2WoUCXG+9qvxOdF8KGzPDOErVABk3FloZOObRb6IydQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1714381315; 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=zKn5lFj3UR+9eC2hMYtOmHR7asN/pEhekjCm25XpOcA=; b=d1qDZYW3Ko9G7BiB35zrPXCK8YChq+3/oy8pqZpoBYelxkjicC13fT94ZxC1Ft+mhgmlcv a7rjCddogWgtlpAA== 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/aperfmperf: Switch to new Intel CPU model defines Cc: Tony Luck , Dave Hansen , "Borislav Petkov (AMD)" , 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: <171438131510.10875.6021681558326247766.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: d32bc2111c7383ccef1edc8b343cd10e2e5fdb0b Gitweb: https://git.kernel.org/tip/d32bc2111c7383ccef1edc8b343cd10e2e5fdb0b Author: Tony Luck AuthorDate: Wed, 24 Apr 2024 11:15:05 -07:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 29 Apr 2024 10:31:12 +02:00 x86/aperfmperf: 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 Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/all/20240424181505.41654-1-tony.luck%40intel.com --- arch/x86/kernel/cpu/aperfmperf.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/x86/kernel/cpu/aperfmperf.c b/arch/x86/kernel/cpu/aperfmperf.c index fdbb5f0..f9a8c7b 100644 --- a/arch/x86/kernel/cpu/aperfmperf.c +++ b/arch/x86/kernel/cpu/aperfmperf.c @@ -124,25 +124,24 @@ static bool __init slv_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq) return true; } -#define X86_MATCH(model) \ - X86_MATCH_VENDOR_FAM_MODEL_FEATURE(INTEL, 6, \ - INTEL_FAM6_##model, X86_FEATURE_APERFMPERF, NULL) +#define X86_MATCH(vfm) \ + X86_MATCH_VFM_FEATURE(vfm, X86_FEATURE_APERFMPERF, NULL) static const struct x86_cpu_id has_knl_turbo_ratio_limits[] __initconst = { - X86_MATCH(XEON_PHI_KNL), - X86_MATCH(XEON_PHI_KNM), + X86_MATCH(INTEL_XEON_PHI_KNL), + X86_MATCH(INTEL_XEON_PHI_KNM), {} }; static const struct x86_cpu_id has_skx_turbo_ratio_limits[] __initconst = { - X86_MATCH(SKYLAKE_X), + X86_MATCH(INTEL_SKYLAKE_X), {} }; static const struct x86_cpu_id has_glm_turbo_ratio_limits[] __initconst = { - X86_MATCH(ATOM_GOLDMONT), - X86_MATCH(ATOM_GOLDMONT_D), - X86_MATCH(ATOM_GOLDMONT_PLUS), + X86_MATCH(INTEL_ATOM_GOLDMONT), + X86_MATCH(INTEL_ATOM_GOLDMONT_D), + X86_MATCH(INTEL_ATOM_GOLDMONT_PLUS), {} };