Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11165677ybi; Thu, 25 Jul 2019 11:07:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNj7u8gwjsG9d48pnDwnDGH7ZHzkqomk2lSCjml4cbuvK2zF/+BSYvTDnLUiHKbyQs8qe1 X-Received: by 2002:a17:902:1e9:: with SMTP id b96mr92822125plb.277.1564078039523; Thu, 25 Jul 2019 11:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564078039; cv=none; d=google.com; s=arc-20160816; b=VRwUwBWbPwu24i/BMv0DjGx90KNROzG8+M9E8MmvHRF77i94oz2Seve47I4N2NzatK yDUPtfFz1lJS3zIbfHQ6xzoQ52ykRCc00UqZ4ZqX4F+r/d3nNFdXdfHP4NPhFe22yFsL DyOnHCguKrtw/TsnybJiFGfJyJSZLwnXPEvUaVDAeX6jEZeDXgyT0ZeW3nDfDZ5RrWWo c1w33HBpwViVA8BGu7+aOk5bOzmuqLQuW71LuIPRO5+cvZzndnWJntIk+E6s7tIMaxUK TW0FK09NsnjFQK7KJKBIo/PrP/D30A5dyxyTBXbOXZJ+PNQfqvhKZ0+RsUmi/DphU5sb wOVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=mfjusjIAMDresxCsLNGATat7D/iNdClmjfR+p1J/358=; b=AfaUsiFqF7hIXfzzPPxXxhMTFbpgfGvZcEcHxG0CzMsktcEtseuaHl78PqkwCNtH89 Fk/9vu/xYm24BichMIHZKCi0o14boVPN+FVPJLuyTf39Xe8+rHju6j98sNf4q/7o34HK Ex6DFp71mzObhgKx6bAH1Hl58WFzRNmM7Ja2F61rvNZP5Z98saRoUK1z9C1/sWzcPOjg +0xZ7mplilqkewgQDO5XK88YksLkX/6j0Ez805pIcM3ZYm/SBJL1QLGD+uKHiE33OtqL vf8SV3KCGNU12QvE/z/sTqd+Ad8Y4Rg8zmlF3bLfZWYUxlMmpvApZ9IdfABIJ8bpKWut ohBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019071901 header.b="TuB6h/cv"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si17238796pgl.7.2019.07.25.11.07.04; Thu, 25 Jul 2019 11:07:19 -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=@zytor.com header.s=2019071901 header.b="TuB6h/cv"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389919AbfGYQGh (ORCPT + 99 others); Thu, 25 Jul 2019 12:06:37 -0400 Received: from terminus.zytor.com ([198.137.202.136]:45171 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387547AbfGYQGh (ORCPT ); Thu, 25 Jul 2019 12:06:37 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x6PG6NO71073442 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 25 Jul 2019 09:06:23 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x6PG6NO71073442 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1564070784; bh=mfjusjIAMDresxCsLNGATat7D/iNdClmjfR+p1J/358=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=TuB6h/cvBgsXtCT3haZKXQtHH/sgYlLTzdzpGc6YqlM7J/3P12OkJOu8AIqghjFXO 23q4d7q9O3a9PB5AGNP5oRU29AnGJzzPs5SBY2kK1r1fks1Y4f/wEMnxi2oPkBbehe m0UtkCUp5+cXFM32s9fo4zacZqvdE4ZhSgAeNrVlThYpUpBS/Av6Soq5uWnOPGm/iq t5lANfT1+wjKOtClkhfEb+hVwoSuerxIBKwNxdgl2C756Pjb4E3Nux0yDLmQ+2FMpl WTjLKhafuSwTz6B/tJQAQ1jYhdKef4Dc0sKVSXd9og3qyBsA01ErLlBvG+s7jLzQU+ l8DZMnIzcnmfQ== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x6PG6NvH1073439; Thu, 25 Jul 2019 09:06:23 -0700 Date: Thu, 25 Jul 2019 09:06:23 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Yunying Sun Message-ID: Cc: tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, yunying.sun@intel.com, hpa@zytor.com, kan.liang@linux.intel.com, torvalds@linux-foundation.org Reply-To: yunying.sun@intel.com, hpa@zytor.com, kan.liang@linux.intel.com, torvalds@linux-foundation.org, mingo@kernel.org, tglx@linutronix.de, peterz@infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <20190724082932.12833-1-yunying.sun@intel.com> References: <20190724082932.12833-1-yunying.sun@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf/x86/intel: Fix invalid Bit 13 for Icelake MSR_OFFCORE_RSP_x register Git-Commit-ID: 3b238a64c3009fed36eaea1af629d9377759d87d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 3b238a64c3009fed36eaea1af629d9377759d87d Gitweb: https://git.kernel.org/tip/3b238a64c3009fed36eaea1af629d9377759d87d Author: Yunying Sun AuthorDate: Wed, 24 Jul 2019 16:29:32 +0800 Committer: Ingo Molnar CommitDate: Thu, 25 Jul 2019 15:41:30 +0200 perf/x86/intel: Fix invalid Bit 13 for Icelake MSR_OFFCORE_RSP_x register 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 --- 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 9e911a96972b..b35519cbc8b4 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