Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3046355ybg; Sun, 20 Oct 2019 05:46:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/8nuoKnYHmb1NhJYLy8RZG0/CR0ETzZb5Gw3ASb4W1L/lIMX/U6GU4z1w7QxeB0Og8SFt X-Received: by 2002:a17:906:6b88:: with SMTP id l8mr17393926ejr.26.1571575577512; Sun, 20 Oct 2019 05:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571575577; cv=none; d=google.com; s=arc-20160816; b=qpxG635QuxyEutsWyFAXNOIf61hRGFQl1iap3PBfkAGPxJvaHcgUBO1ZWE02mytMfk GqDBSxTgTduHN88KqUbjqbuXT19NFL2aUB50JToe2/419Mbpze2FyJFKQA8JW7sJVCdK JH6YB7BAio+AZpPMsB2Zjf3ceLMVsRIp3iP3NWBMudqTU9ZaLv//AXFToqfzvJxGJyVV x0nIHkb3f4CT3KKwGdUwY3hUfH/FBXAfPOyU/HC6pinJYTwQzsY9SqG2pakpRYmSpDZF mNqn3W5SX/c2nPtqcVgtjgEaQR/ful2t/w1nxTqe+GTMOrEN242AUcwXbzdiG8/RUG4O 5NdA== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=bQG04vP/Rtr1R3GrSPIuzx1vaQKRkldGMuWC/p8jDIg=; b=bdz7INp4pTVYVg7/ZVma5b6emDJNPaeBFYhCkJebwPxoaIsCmymMH+JTmHuAS502Uk IUh83Ft4B6bT98rtFyix6XWZx8AdsrQ7ckf3O3VSJNqAfB3Qabo74g4bbb19/9fZZMLA r22TNstVu3HfsZEYz8/BZSdmQsBZHtbFu5uJMklwgq+jPBsXOkIFKu4zcvNEBw5YSxMm L5BsItgVGe6Qek6hZzA70L1qyLL/RhZghdvE8cYyidvIWrhFLaVgufideQhy7JK3JG9c 3RXTGrBZMjODbltyIIrm/sYas9P/mLCJ5as2w818XQHnGjyadEDD6DoYSHlHeBGtqnYo ZI0g== 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 k23si6916667ejc.51.2019.10.20.05.45.53; Sun, 20 Oct 2019 05:46:17 -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 S1726378AbfJTMoo (ORCPT + 99 others); Sun, 20 Oct 2019 08:44:44 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:60310 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726362AbfJTMon (ORCPT ); Sun, 20 Oct 2019 08:44:43 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iMAZR-0000C6-Vq; Sun, 20 Oct 2019 14:44:30 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 70C271C0093; Sun, 20 Oct 2019 14:44:29 +0200 (CEST) Date: Sun, 20 Oct 2019 12:44:29 -0000 From: "tip-bot2 for Jiri Olsa" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/urgent] perf/x86/intel/pt: Fix base for single entry topa Cc: Jan Stancek , Jiri Olsa , Alexander Shishkin , Arnaldo Carvalho de Melo , Linus Torvalds , Mark Rutland , Michael Petlan , Namhyung Kim , Peter Zijlstra , Stephane Eranian , Thomas Gleixner , Vince Weaver , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20191019220726.12213-1-jolsa@kernel.org> References: <20191019220726.12213-1-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <157157546913.29376.8671150238400899852.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/urgent branch of tip: Commit-ID: 13301c6b16a6d809b331bb88e40ab9ce38238b8b Gitweb: https://git.kernel.org/tip/13301c6b16a6d809b331bb88e40ab9ce38238b8b Author: Jiri Olsa AuthorDate: Sun, 20 Oct 2019 00:07:26 +02:00 Committer: Ingo Molnar CommitterDate: Sun, 20 Oct 2019 14:42:28 +02:00 perf/x86/intel/pt: Fix base for single entry topa Jan reported failing ltp test for PT: https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/tracing/pt_test/pt_test.c It looks like the reason is this new commit added in this v5.4 merge window: 38bb8d77d0b9 ("perf/x86/intel/pt: Split ToPA metadata and page layout") which did not keep the TOPA_SHIFT for entry base. Add it back. Reported-by: Jan Stancek Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Arnaldo Carvalho de Melo Cc: Linus Torvalds Cc: Mark Rutland Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Gleixner Cc: Vince Weaver Fixes: 38bb8d77d0b9 ("perf/x86/intel/pt: Split ToPA metadata and page layout") Link: https://lkml.kernel.org/r/20191019220726.12213-1-jolsa@kernel.org [ Minor changelog edits. ] Signed-off-by: Ingo Molnar --- arch/x86/events/intel/pt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c index 74e80ed..05e43d0 100644 --- a/arch/x86/events/intel/pt.c +++ b/arch/x86/events/intel/pt.c @@ -627,7 +627,7 @@ static struct topa *topa_alloc(int cpu, gfp_t gfp) * link as the 2nd entry in the table */ if (!intel_pt_validate_hw_cap(PT_CAP_topa_multiple_entries)) { - TOPA_ENTRY(&tp->topa, 1)->base = page_to_phys(p); + TOPA_ENTRY(&tp->topa, 1)->base = page_to_phys(p) >> TOPA_SHIFT; TOPA_ENTRY(&tp->topa, 1)->end = 1; }