Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2658842imm; Thu, 16 Aug 2018 13:19:13 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzKG9Q9nQmfuMjpmjPBGal4uBmxr/GyCSCciBR4P1HwAPguwG66ZOU3TJnzm9JiL33YIr+2 X-Received: by 2002:a17:902:e10d:: with SMTP id cc13-v6mr30172469plb.96.1534450753108; Thu, 16 Aug 2018 13:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534450753; cv=none; d=google.com; s=arc-20160816; b=TXZRbm+l+8MziiVIuwWlrLuGKhOA5XabInhEDBJIY43GrG+pwYC3VenFaASlR/5pun Kxj1wakaszI4UDcVln8tS/gcvKgxpCbvoXPhDpZ6U5FamKNFi3vxHkwiyxPkQF6TlkXe Coh/85Hya8idWKIYeLkwN3hYtI7m/AlyxM/bZxMm/65+zGlhyBHAEYLK0VY5DL7JFdjc 2asr0lMOpX+jeOHqQpJaZQE+tX1ksWRyzUQEcNRue4OxL0osntREpQmoLfsXreY5K2FF Gj22Uh3XacpOyO5PFOXKf8SUWV8I/RohQMWP1IjSD40d5UscgP/AZgfEBTEqAL6dYDle D26Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=LBcuUyqu6A8TQumHHUdXynZXCcpLRW66ZdjUWFSC3Iw=; b=KC0o11FzvsInuzbk0byAmZQR0mHNW3x68UBKsuOTURx7jl9gBh6jzfvnI5oaHp8YiU FaMWE1w5i3xmgI+hgvYLZGSsa7RkisB0xNBZcAhxmFTxGzPxE2HBN2g6Znbbwn4LRJAX gCs0HjoOCi7nUjxucGoGChpmBNBN+SW5XFykhoSrXCmmoYj16HZCKDdw0VGQT0NvDlSN mHeQMawjHsZQH2EGSLrVlTkW4LxPiRp2moN5+HTph3pPbJv3cchSJ/+UNtfn3eTw37D0 uChuFi5i/y7KQo/3zIeS/QwORvbG7PjbuLDbK+OeEeFEYWhpfoXs9NE+JKqQgG60TCDW 90Cg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3-v6si213103pga.298.2018.08.16.13.18.58; Thu, 16 Aug 2018 13:19:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726341AbeHPXSI (ORCPT + 99 others); Thu, 16 Aug 2018 19:18:08 -0400 Received: from mga17.intel.com ([192.55.52.151]:43390 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbeHPXSI (ORCPT ); Thu, 16 Aug 2018 19:18:08 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Aug 2018 13:16:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,248,1531810800"; d="scan'208";a="225248293" Received: from rchatre-s.jf.intel.com ([10.54.70.76]) by orsmga004.jf.intel.com with ESMTP; 16 Aug 2018 13:16:34 -0700 From: Reinette Chatre To: tglx@linutronix.de, fenghua.yu@intel.com, tony.luck@intel.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, vikas.shivappa@linux.intel.com Cc: gavin.hindman@intel.com, jithu.joseph@intel.com, dave.hansen@intel.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, Reinette Chatre Subject: [PATCH V2 6/6] x86/intel_rdt: Re-enable pseudo-lock measurements Date: Thu, 16 Aug 2018 13:16:09 -0700 Message-Id: <531fca4b63b3540df48274c634ab5f9a1ad54e85.1534450299.git.reinette.chatre@intel.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Measurements of pseudo-locked regions were disabled because of their 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. Signed-off-by: Reinette Chatre --- 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 aa27e8081bae..ab371eb819fd 100644 --- a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c +++ b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c @@ -1332,7 +1332,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) -- 2.17.0