Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp609528lqd; Wed, 24 Apr 2024 11:19:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqVxN4ynrjZ3PNTfhklkvm+O34C5zcB8fWJt8Pn4ULdxmX6Z9odDHO7HR/5pZ2NxJ6RSJO0Sx9Wqe2wCVwySbfb67KSa8FCNauVwTwOg== X-Google-Smtp-Source: AGHT+IENGQafQr2R5fDrLicYGYsLdWfqkFXrtrLWB3aN9UWDAfORnwnm1OyVcFZdtphOSBFWltUI X-Received: by 2002:a05:6808:2391:b0:3c6:eb0:7471 with SMTP id bp17-20020a056808239100b003c60eb07471mr3632139oib.43.1713982795673; Wed, 24 Apr 2024 11:19:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713982795; cv=pass; d=google.com; s=arc-20160816; b=xrcmIzWOq1E+vTHuvAA35+FS/BIKmJfcrInWoPwcapWV+duwQFn8DPJyTW56CoAE1p z/0QqBwRxT0aFqSebAnB2/XC4b4cU5s2MSD4hUw64F2TD+iOmuHSQG49DB7i1mPkuCsQ MZZQVYfwClAfnoodmpMde/zu54vVJQMZ0wVB5uV6TWQmgcGWNB3c0kRVK3gMAeAYUTu7 qH/ChxR6eW7oQp2RCHGqrNii1GPFGzPmQhqkbgw8sscdoxof8NItmYSUjURKuR+C84vT +1admdPYlFfiWTnPsbskopsD3dxYSy2kHJoblRMJc4jzFgKH4/TZQNaN6ikRhXYgy1Jk CxLw== 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=+HX27hJAK6+AY4mtImNRJo4EpiD43psyXBBAXMoFvFA=; fh=5s6W4w6x1Zs0Fr3OEets4qgL7TMNt4/0CDcX9+H43TU=; b=MxT2IZiD1OAZTRqQncgXrDlRkJ6ejATO2WBCk7qzzfRyh72/S8NpT/h2j0CUxZs8Ri n46cqWdOYiE80X0XQKdjkw4mqHBDd7ytWYDeBTbaRMRIrfuaVkvyU1YUmzzyNbwm0dmU wylKa0LmggWWcfKilDvbGW4XuPO1cAk4o7omcSD3g/HaoD7gBsxlTZTGljQmbu3oFC99 uzWy8ubc3R/ZoRlJunSlvqCvHPZEicg0oHbO1ac39UghiohU9sLmzNOG8MBXALiurE0B pgzQU5aih3XI0eq8pnPkNPGm2ZmIdmDkK2/refZey5xx8/CHxXzTJnvnvhC3HFlni1/t wrrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UqVwyeMY; 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-157470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157470-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 kl17-20020a056214519100b0069b4963ef74si15433969qvb.381.2024.04.24.11.19.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:19:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157470-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=UqVwyeMY; 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-157470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157470-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 0AC8A1C23A4A for ; Wed, 24 Apr 2024 18:19:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 293B61802BF; Wed, 24 Apr 2024 18:15:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UqVwyeMY" 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 52BCE17BB15; Wed, 24 Apr 2024 18:15:15 +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=1713982517; cv=none; b=CB2NYd0nloXtQKln/DRp/YeUYsEVMyFnFT8FOj9qtJuYzpIH0hOMggkU4mwNIorWg25ntHu4Y7F024t7jaLq/6Z2UU+c7BkkIscQGVszpaWO54obb4M6pMVyNeGRN1CGQ2N+ikcmRwPU21OSOPCQltf0WgWiNgzd/BoC1EeHm2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982517; c=relaxed/simple; bh=Cso0970iBLZBpku05aR/BgRRak+5ImAGQIo7igDchxw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rKmXICCm/y6msEwq/YPStP+yLD7EUXx9A/feqOl8xuMtsHkvoSMWQMFuD2dubyUqd/c4WfGUtmL5nzsmCqwgwLd5f+CHUH/+zT+klVlRlQV+hspyxaSN7k1BYsYjcdrDQ+PEIRWJK3aGb97wABx7sLE9zyVjO4kq1SibV5u+S6k= 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=UqVwyeMY; 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=1713982515; x=1745518515; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Cso0970iBLZBpku05aR/BgRRak+5ImAGQIo7igDchxw=; b=UqVwyeMYdvWQqwY6aLFN+Lj7yRY+RSwBPbCPwynvHQUqoYuJB4+C6cD3 Xu7khF95YCEVQ1gtk8d60aMd9PtqqMkt6B4MndHf7UvoYDOjF8B5x89I3 SOmC4suptBxMuO8e60g5NApOKbPiblIHHFMSLrAcDFUJkxByb0IVprjt1 VT8EpHSIOYUKVOGqKeWHU0upTo5GMJ6oTXRibL2dEYnN7ixayBzclePjw if+4I0+CzO7QFZshy4X5jJjr3UsLave0DSjOWgHxXHmOGXP9qaqchwPqo UQHRrwqfdEdEPNsvsccM9axQuZ5ggrqwgNP6ROksog6RFGeQGWGL1eHLi w==; X-CSE-ConnectionGUID: Jldg4AnGTtmfXARg68QQtw== X-CSE-MsgGUID: P7TUpcTbTDqmdEoprQqUmA== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9481896" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9481896" 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:02 -0700 X-CSE-ConnectionGUID: iOx5Qyl8QySbjZH69dcisA== X-CSE-MsgGUID: ykNmD1OOReqb0Xu6qi2FvA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262662" 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:02 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Dave Hansen , x86@kernel.org Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , "H. Peter Anvin" , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 22/71] perf/x86/intel/uncore: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:02 -0700 Message-ID: <20240424181502.41576-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/events/intel/uncore_nhmex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/events/intel/uncore_nhmex.c b/arch/x86/events/intel/uncore_nhmex.c index 92da8aaa5966..466833478e81 100644 --- a/arch/x86/events/intel/uncore_nhmex.c +++ b/arch/x86/events/intel/uncore_nhmex.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* Nehalem-EX/Westmere-EX uncore support */ +#include #include "uncore.h" /* NHM-EX event control */ @@ -1217,7 +1218,7 @@ static struct intel_uncore_type *nhmex_msr_uncores[] = { void nhmex_uncore_cpu_init(void) { - if (boot_cpu_data.x86_model == 46) + if (boot_cpu_data.x86_vfm == INTEL_NEHALEM_EX) uncore_nhmex = true; else nhmex_uncore_mbox.event_descs = wsmex_uncore_mbox_events; -- 2.44.0