From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7943C4332F for ; Fri, 4 Nov 2022 11:31:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JUMiCKv/7ER2lP+QffyUu0Uu41VLaApaTzcd21mWBgw=; b=oyTOfQI70aWOyl QIVWg4OoUGaZt4V4MZgGtsiZUePQvxSEvMoB3X/Oy15E04aaiWvqgzVlJWygUlmQVnEjx6MsY339H e6B7ujC7UeRSB980wJQedCZ8I9T29kexmv30Ml8a/PMawu0KHHx47e7YV77FEFHByi3nPbJ7UKJ+E 3k+b5KDfljlbWpNkcL6vdh0+jHP5kXjAgOXHn8+43GvS/8NJtFgRKjeHJZVNlB6HhSfbYT+JEetmM OsrK/P1ClEC8JWuxqIBdzXF5ivQ6QyUdBeofOjAsa8D9zpE88aznwGr6JM2G7iibwyMMBlA8XKYsX 9zhh6Rj11hwQJnB96YEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oquu1-003Lqi-Gv; Fri, 04 Nov 2022 11:30:25 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqutx-003Lo6-5x for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2022 11:30:23 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A4A3E1FB; Fri, 4 Nov 2022 04:30:20 -0700 (PDT) Received: from [10.57.69.48] (unknown [10.57.69.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EEB5E3F703; Fri, 4 Nov 2022 04:30:10 -0700 (PDT) Message-ID: <5c410969-2176-49cf-640f-8023c421682e@arm.com> Date: Fri, 4 Nov 2022 11:30:09 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2 0/7] perf: Arm SPEv1.2 support Content-Language: en-US To: Rob Herring Cc: kvmarm@lists.cs.columbia.edu, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown , Namhyung Kim , James Morse , Ingo Molnar , Mark Rutland , Marc Zyngier , Suzuki K Poulose , Will Deacon , Alexandru Elisei , Catalin Marinas , Arnaldo Carvalho de Melo , Peter Zijlstra , Alexander Shishkin , Oliver Upton , Jiri Olsa References: <20220825-arm-spe-v8-7-v2-0-e37322d68ac0@kernel.org> From: James Clark In-Reply-To: <20220825-arm-spe-v8-7-v2-0-e37322d68ac0@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221104_043021_338558_CA04C3A2 X-CRM114-Status: GOOD ( 19.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 19/10/2022 20:11, Rob Herring wrote: > This series adds support for Arm SPEv1.2 which is part of the > Armv8.7/Armv9.2 architecture. There's 2 new features that affect the > kernel: a new event filter bit, branch 'not taken', and an inverted > event filter register. > > Since this support adds new registers and fields, first the SPE register > defines are converted to automatic generation. > > Note that the 'config3' addition in sysfs format files causes SPE to > break. A stable fix e552b7be12ed ("perf: Skip and warn on unknown format > 'configN' attrs") landed in v6.1-rc1. > > The perf tool side changes are available here[1]. > > Tested on FVP. > > [1] https://lore.kernel.org/all/20220914-arm-perf-tool-spe1-2-v2-v4-0-83c098e6212e@kernel.org/ > LGTM. Tested with [1] applied and on N1SDP (where it isn't supported), and on the FVP. Enabling all the inverted filters results in no trace and other combinations work as expected. James > Signed-off-by: Rob Herring > --- > Changes in v2: > - Convert the SPE register defines to automatic generation > - Fixed access to SYS_PMSNEVFR_EL1 when not present > - Rebase on v6.1-rc1 > - Link to v1: https://lore.kernel.org/r/20220825-arm-spe-v8-7-v1-0-c75b8d92e692@kernel.org > > --- > Rob Herring (7): > perf: arm_spe: Use feature numbering for PMSEVFR_EL1 defines > arm64: Drop SYS_ from SPE register defines > arm64/sysreg: Convert SPE registers to automatic generation > perf: arm_spe: Drop BIT() and use FIELD_GET/PREP accessors > perf: arm_spe: Support new SPEv1.2/v8.7 'not taken' event > perf: Add perf_event_attr::config3 > perf: arm_spe: Add support for SPEv1.2 inverted event filtering > > arch/arm64/include/asm/el2_setup.h | 6 +- > arch/arm64/include/asm/sysreg.h | 99 +++------------------------ > arch/arm64/kvm/debug.c | 2 +- > arch/arm64/kvm/hyp/nvhe/debug-sr.c | 2 +- > arch/arm64/tools/sysreg | 116 +++++++++++++++++++++++++++++++ > drivers/perf/arm_spe_pmu.c | 136 ++++++++++++++++++++++++------------- > include/uapi/linux/perf_event.h | 3 + > 7 files changed, 224 insertions(+), 140 deletions(-) > --- > base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780 > change-id: 20220825-arm-spe-v8-7-fedf04e16f23 > > Best regards, _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel