Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1082626ybl; Wed, 14 Aug 2019 10:24:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaGxzdaKgZ6Q01h+HcGi61kJowbB6ml4YZujvIPsFffQme9zAeZc+HtiZXxf7RAiDr85z1 X-Received: by 2002:a17:902:be01:: with SMTP id r1mr420267pls.229.1565803489355; Wed, 14 Aug 2019 10:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565803489; cv=none; d=google.com; s=arc-20160816; b=C+ZnxxfnRaMfwc/+Q494Mll2G1poMDThLvgSudUwtBvnEydqrX5DraMwgsmBIUmNes 63V8qQiDuVUnzeXchg5Qz4WXvoMOd9iZjFYN8T8fIqnRJfgokkvKZCH7MpuT5JsPKEBG zeBqkT83r7jN4TCGZoK6PRZ/N2QIrPn0VvSTV6FgVxzuaaXSovLXa5LSdGc+fMmdnyFX O5gLndYE/JalIte7I1E7MHOnUHzt/Q6kajdViDIMMuiMo/oBzN1d6X43VeSWOBFBH5pv J2HabgB7Oi6ycSovF4iwA8VowBiU4i92p91RoW+zKTHLAfap7HEh7zxnejOHCZv550FW DXYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5r3+pF7f/761nspqzRh/NTfVTNNEzmrw6LsYj3ole8o=; b=BxXgTUisISYAqpONXcUlCrrK1EQ0qlXkz6aA6CrQv9y6XTNWywkmgyfyY46dSgIi5r lGIoFG9Ujc13otwpQEKK0Cx1+jrUZdv4MBAFqvULkmVxgpIyChZaaWgpg8mAGSYrYScU FGA/Qv06JKOvReNIrUdH+1lVjWUBbDcSvVgcvuQXFyxtSCevIBN4XME1CNmn/RbKFWWy d5Cng8URldhMVSuKQxKyYzixSivP7Oe4Eotn+TXe+UB3DIzHP1ffpckZ3p+7SGKsLckt FpPe8rOBOgxbHGPLdDj7KKD4UFfAViXW1yZ22kTeFeJmHU4vn43RgxrvwozLVvixIivu qedw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KKMSgQyd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si84355pfi.199.2019.08.14.10.24.33; Wed, 14 Aug 2019 10:24:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KKMSgQyd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729748AbfHNRGx (ORCPT + 99 others); Wed, 14 Aug 2019 13:06:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:56014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728458AbfHNRGr (ORCPT ); Wed, 14 Aug 2019 13:06:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC028216F4; Wed, 14 Aug 2019 17:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802406; bh=BluXNTtUwEK0Jl4OaSu1C2M9EndSW854P3+bDniEGPE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KKMSgQydPzsYgasprJyWlgvOSLgQiP4py9QOh53n+PDE76iqJJdYwGc0S4vuMBY2P /3qkCmMoqBH8B4nj6OCexIILE+mhUhm7j7ilvN7kGszb1bNuQVNCocuHXPpe/jD4Cy R4mkLdalRJ6gmM9zpJ/G9c7FC0ZwOdmZXCEJUa9g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yunying Sun , "Peter Zijlstra (Intel)" , Kan Liang , Linus Torvalds , Thomas Gleixner , acme@kernel.org, alexander.shishkin@linux.intel.com, bp@alien8.de, hpa@zytor.com, jolsa@redhat.com, namhyung@kernel.org, Ingo Molnar , Sasha Levin Subject: [PATCH 5.2 113/144] perf/x86/intel: Fix invalid Bit 13 for Icelake MSR_OFFCORE_RSP_x register Date: Wed, 14 Aug 2019 19:01:09 +0200 Message-Id: <20190814165804.637162453@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 3b238a64c3009fed36eaea1af629d9377759d87d ] The Intel SDM states that bit 13 of Icelake's MSR_OFFCORE_RSP_x register is valid, and used for counting hardware generated prefetches of L3 cache. Update the bitmask to allow bit 13. Before: $ perf stat -e cpu/event=0xb7,umask=0x1,config1=0x1bfff/u sleep 3 Performance counter stats for 'sleep 3': cpu/event=0xb7,umask=0x1,config1=0x1bfff/u After: $ perf stat -e cpu/event=0xb7,umask=0x1,config1=0x1bfff/u sleep 3 Performance counter stats for 'sleep 3': 9,293 cpu/event=0xb7,umask=0x1,config1=0x1bfff/u Signed-off-by: Yunying Sun Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Kan Liang Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: acme@kernel.org Cc: alexander.shishkin@linux.intel.com Cc: bp@alien8.de Cc: hpa@zytor.com Cc: jolsa@redhat.com Cc: namhyung@kernel.org Link: https://lkml.kernel.org/r/20190724082932.12833-1-yunying.sun@intel.com Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- arch/x86/events/intel/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index 2889dd0235668..e9042e3f3052c 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -263,8 +263,8 @@ static struct event_constraint intel_icl_event_constraints[] = { }; static struct extra_reg intel_icl_extra_regs[] __read_mostly = { - INTEL_UEVENT_EXTRA_REG(0x01b7, MSR_OFFCORE_RSP_0, 0x3fffff9fffull, RSP_0), - INTEL_UEVENT_EXTRA_REG(0x01bb, MSR_OFFCORE_RSP_1, 0x3fffff9fffull, RSP_1), + INTEL_UEVENT_EXTRA_REG(0x01b7, MSR_OFFCORE_RSP_0, 0x3fffffbfffull, RSP_0), + INTEL_UEVENT_EXTRA_REG(0x01bb, MSR_OFFCORE_RSP_1, 0x3fffffbfffull, RSP_1), INTEL_UEVENT_PEBS_LDLAT_EXTRA_REG(0x01cd), INTEL_UEVENT_EXTRA_REG(0x01c6, MSR_PEBS_FRONTEND, 0x7fff17, FE), EVENT_EXTRA_END -- 2.20.1