Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp118448imm; Wed, 3 Oct 2018 12:58:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV63HU3K7TMqjsuKdZIFxo2Lgr2IKrsF8Sx58tljlhzB0i4RWhn8wruXqzrq7YXsohyY6wRYx X-Received: by 2002:a17:902:4401:: with SMTP id k1-v6mr3114869pld.97.1538596706638; Wed, 03 Oct 2018 12:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538596706; cv=none; d=google.com; s=arc-20160816; b=F9O48yDmpHQiulA99jJ5i18hXdJevaphsa1ATV2RsNeXnoBkqqsxXkwxfmnCHTN1Cl 7l12aknxd+RVNZcvb9zk1XbY6BrQjoiW7j9n5w0v4mI81l3gdICAHKmUCFoIJAKNcvMK vL1LdIXg2Q51OTR11pv3OCtsTCstdiyMLv+P9GD3v/NHbipjVHxrnHqkh628iZziFBX/ f5qBRMkpJ2Mm4qvLUqVXps4I/budZ4pt/TZAItxj8SSLF+WlFX8ll+vgUCw8zheyU/xl uz3B0EK3BB1J7d6MuGdvf+7azazWFH2NUu5jLSIVfYiFel36hllpFGSQ/BSy/XjkUUw4 4gPA== 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; bh=ScUuGP32G52+s3h30Iiueuv7/xSYaKIPf5Xp7m7hWiQ=; b=UNPFSsOyKXL4P0zPZ9umGWGtePqDfM+Ag1zYT+4zaNKhuD+o3gHkm4Bq7kO7/DS2Vh HADmbbq8IbiKWNKk1wsm8ZALa1D3h5KCoaqxtY3bpciIIUfYJez2rAAEp+L09GVUSICp CDvXdFwpeVCsrxSAGWbvXmd8W+LbW4TtOa1h9rkDrFyNMd89zYUl+2N1HDqL3/4fVKBB YyiN9865on3nsptlTN740GNkmYg7NwqnvveR1r3jQJvvYH8qWoIfTpgZgNHVLJpLLqhb 4ADog50USwgip90i9k4DLv8A4+4itQbJOjJzSJcWmSbjgxPeMOjByEwJknvFUyfhgKC2 FKdA== ARC-Authentication-Results: i=1; mx.google.com; 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 u21-v6si2288567pgm.406.2018.10.03.12.58.10; Wed, 03 Oct 2018 12:58:26 -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; 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 S1727188AbeJDCru (ORCPT + 99 others); Wed, 3 Oct 2018 22:47:50 -0400 Received: from terminus.zytor.com ([198.137.202.136]:37835 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726941AbeJDCru (ORCPT ); Wed, 3 Oct 2018 22:47:50 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w93Jvn732469307 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 3 Oct 2018 12:57:50 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w93Jvn042469304; Wed, 3 Oct 2018 12:57:49 -0700 Date: Wed, 3 Oct 2018 12:57:49 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Reinette Chatre Message-ID: Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, reinette.chatre@intel.com Reply-To: tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, reinette.chatre@intel.com In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Re-enable pseudo-lock measurements Git-Commit-ID: 53ed74af05517cf5fe83d87c4bb7ab998adfd631 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=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham 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: 53ed74af05517cf5fe83d87c4bb7ab998adfd631 Gitweb: https://git.kernel.org/tip/53ed74af05517cf5fe83d87c4bb7ab998adfd631 Author: Reinette Chatre AuthorDate: Wed, 19 Sep 2018 10:29:11 -0700 Committer: Thomas Gleixner CommitDate: Wed, 3 Oct 2018 21:53:35 +0200 x86/intel_rdt: Re-enable pseudo-lock measurements Commit 4a7a54a55e72 ("x86/intel_rdt: Disable PMU access") disabled measurements of pseudo-locked regions because of incorrect usage of the performance monitoring hardware. Cache pseudo-locking measurements are now done correctly with the in-kernel perf API and its use can be re-enabled at this time. The adjustment to the in-kernel perf API also separated the L2 and L3 measurements that can be triggered separately from user space. The re-enabling of the measurements is thus not a simple revert of the original disable in order to accommodate the additional parameter possible. Signed-off-by: Reinette Chatre Signed-off-by: Thomas Gleixner Cc: fenghua.yu@intel.com Cc: tony.luck@intel.com Cc: peterz@infradead.org Cc: acme@kernel.org Cc: gavin.hindman@intel.com Cc: jithu.joseph@intel.com Cc: dave.hansen@intel.com Cc: hpa@zytor.com Link: https://lkml.kernel.org/r/bfb9fc31692e0c62d9ca39062e55eceb6a0635b5.1537377064.git.reinette.chatre@intel.com --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c index d68836139cf9..30e6c9f5a0ad 100644 --- a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c +++ b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c @@ -1236,7 +1236,7 @@ static ssize_t pseudo_lock_measure_trigger(struct file *file, buf[buf_size] = '\0'; ret = kstrtoint(buf, 10, &sel); if (ret == 0) { - if (sel != 1) + if (sel != 1 && sel != 2 && sel != 3) return -EINVAL; ret = debugfs_file_get(file->f_path.dentry); if (ret)