Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp348410pxj; Thu, 24 Jun 2021 00:11:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvU2/Z26K6TYBj3VwBzWXra+6BKU/jQVuuGmOpfOH/5tzRJsiWTNlFxUf7/+lQuvbMNunc X-Received: by 2002:a92:d650:: with SMTP id x16mr2364916ilp.230.1624518686009; Thu, 24 Jun 2021 00:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624518686; cv=none; d=google.com; s=arc-20160816; b=G73T6IxbPz3Fj5HMjNgB+cs2Izy4Ha7GhgJmVgA34CAEtFqIjhGYZ0h4lQIe/YsDZe 0IUl+glrWlp1StlQEdoWs2Ol2sptXOh/nuS3Hj+Igni7vB975FkSFV/2gRhaQpsWm/EM bLBY+rGI3rSBzJZNmvrzrtbZ1BPglztrF1SwHUx/7FMf0xqOPT5l0CYpMOWys8oCGALC vbGab7FcaT70kKeHklFfTGnko7jOWWG0WjOFV605fr0tbbY+anviJMZHRvqUitEFIbap poanLLUy50PsUKpGajmr1F1yTl6Rt0vm0w+Rsg7vcU0Q0JKo/OUFqJygrWO7kF915rMX Mdtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=nZb8bZcnTLvfByHJSritDmBT54k4IXWQmBfw9c44BjA=; b=rMSMiXu90XusT4YSj/5jxQL0o5uI4DO467EKu2VI7MNGY+5W6XadPPeQORUmQAImBZ 5snp8s/f3cObOHU9DrNR+NiKBbO/JJjsUwrNRHaFahdWVfFLu2CHKqv7Zeqs9tDhDMtS hVn5XoSg1T26ztMr3xcFRnGazS6WzNuDp85ALtQGitVnU1C5EHDeKGvs+uWvNJAhX/1B EJ4IhaOQ34Xowx1JE0YLu0V6dTNGO/CWNDUk1zX/TJLHq3Dj0kXJd1yxr3QXyaATvtAR htgc5JCiLZOw0nUVfx+ot5Vzt96UGpV4KND8f7b0Lfct84AGDxOAHWJ0wU+GRAVGihjB OPNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xdOQ7qxo; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/bvx6h+1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si2623572jao.29.2021.06.24.00.11.14; Thu, 24 Jun 2021 00:11:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xdOQ7qxo; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/bvx6h+1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231733AbhFXHMK (ORCPT + 99 others); Thu, 24 Jun 2021 03:12:10 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:42612 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231501AbhFXHMG (ORCPT ); Thu, 24 Jun 2021 03:12:06 -0400 Date: Thu, 24 Jun 2021 07:09:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1624518587; 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: in-reply-to:in-reply-to:references:references; bh=nZb8bZcnTLvfByHJSritDmBT54k4IXWQmBfw9c44BjA=; b=xdOQ7qxo97ku2fddubh7a1A7mqpGsEKgwg08BZACPCa3354Fsn+B52Ka9iv79RA5iIhPIO Sjcum0Pp3HgoEhmRxwsvFpJych40gNIlATedUAKcJo/VDtJsIq/Fj8WFGx+XzBEvg8dpOH Q/MIaPaTI8GI3nIRcu8ZvqhxTh/ah9sTru0cc0TXvhHhINnVTBNHt0x2psv7YTrOJfwK7a 5GtycJQFCgoH0OEGN31VC6KfR4/cT9vwySJEh9rF9sJ6Q7kjUalY9FNgA9fufn+xfQom7h aYwlgyYon0p3eRWfev5GoVjv/9fDVl3rU/vvBN+3BZYS3SWmW/YJVpaURkelcg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1624518587; 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: in-reply-to:in-reply-to:references:references; bh=nZb8bZcnTLvfByHJSritDmBT54k4IXWQmBfw9c44BjA=; b=/bvx6h+1d0PdABwBx8SS9FgEYTDYHLZb9YuQQCJyz4xUymQvlpjKi+sS8+0fb2zdPcuI1K 4z2KaivtV9IVc+BQ== From: "tip-bot2 for Kan Liang" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/x86/intel: Add more events requires FRONTEND MSR on Sapphire Rapids Cc: Kan Liang , "Peter Zijlstra (Intel)" , stable@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1624029174-122219-3-git-send-email-kan.liang@linux.intel.com> References: <1624029174-122219-3-git-send-email-kan.liang@linux.intel.com> MIME-Version: 1.0 Message-ID: <162451858648.395.18261838774067039831.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: d18216fafecf2a3a7c2b97086892269d6ab3cd5e Gitweb: https://git.kernel.org/tip/d18216fafecf2a3a7c2b97086892269d6ab3cd5e Author: Kan Liang AuthorDate: Fri, 18 Jun 2021 08:12:53 -07:00 Committer: Peter Zijlstra CommitterDate: Wed, 23 Jun 2021 18:30:55 +02:00 perf/x86/intel: Add more events requires FRONTEND MSR on Sapphire Rapids On Sapphire Rapids, there are two more events 0x40ad and 0x04c2 which rely on the FRONTEND MSR. If the FRONTEND MSR is not set correctly, the count value is not correct. Update intel_spr_extra_regs[] to support them. Fixes: 61b985e3e775 ("perf/x86/intel: Add perf core PMU support for Sapphire Rapids") Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/1624029174-122219-3-git-send-email-kan.liang@linux.intel.com --- arch/x86/events/intel/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index d39991b..e442b55 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -280,6 +280,8 @@ static struct extra_reg intel_spr_extra_regs[] __read_mostly = { INTEL_UEVENT_EXTRA_REG(0x012b, MSR_OFFCORE_RSP_1, 0x3fffffffffull, RSP_1), INTEL_UEVENT_PEBS_LDLAT_EXTRA_REG(0x01cd), INTEL_UEVENT_EXTRA_REG(0x01c6, MSR_PEBS_FRONTEND, 0x7fff17, FE), + INTEL_UEVENT_EXTRA_REG(0x40ad, MSR_PEBS_FRONTEND, 0x7, FE), + INTEL_UEVENT_EXTRA_REG(0x04c2, MSR_PEBS_FRONTEND, 0x8, FE), EVENT_EXTRA_END };