Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp890863rwb; Fri, 18 Nov 2022 09:34:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf6rtx8qbF8OTUpI0M7RfRsbgBMcE7r4cdB0Mqjr1pBapW6w3LoOwc1pslkdYtNopUyIXyja X-Received: by 2002:a17:906:c042:b0:781:541:8f1d with SMTP id bm2-20020a170906c04200b0078105418f1dmr6996266ejb.117.1668792840285; Fri, 18 Nov 2022 09:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668792840; cv=none; d=google.com; s=arc-20160816; b=f00reaYri8vqikga1otKHUWEHvmkBqWoKjy0pcSzQ0fsq98CNhaffEdVMObBxN1vyD JrYbI2PEFmkT5BZgeMTDrZAjEqndEfVHlkvQjSDyXeyHNioG14SILHIeXiYbs3NXD9zG mj2O1Vkw6qogsgJtCRdr1THyfjGGLhB97jUTLB90+jAEb+Nv9UeUQwX+esR0EnNyMln1 5z+3++hmvrKihNJVH3S2GGBc8JNwvEPEbO7j0z03vyfy9Cs2cSHEPZSEH1wEizH11de/ MoNiP6Xt8zynxZ5LTXzcRMYdrJvkDGv9gF89+LAGlU+fuVoSfxkHnIZJSRdjXPiAIqkH D4Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GoXBp2q9ImlqCMH9zYJmeMCA2oyj5oWSubbIiAO56FE=; b=HOoaknhlzw+yLFKm4CYpmIdvVbo7+nS5lc+GObIHEG/2t6GhpY8M0waGsbJhBKE2T4 J1+uEOi8dwAO+T8v9/mXBZbuzeo3ov0y3fJ9DIZSpqCF/MaY3e/Z2j74ExcKE6mjXoUz iiRm/dmoiTtFDrbYCEM1BMy6A03g7nxI0wzBd7vgWgj8GCdEHDqQMghLU3zI53+JcY8t BCt/emJFCvSCWuanqyoV/1WODfa2hgTdNtbHvV5jPIGE6Is2oNlhWZuz4DI3D2Sl92ZE 8guqu3Bi55HjwQqIWAp+JkqJUCn0zgbcz82N2XtbyOuU/UmuU6VLXNtjrPao/hGXweB5 hu2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PDCyFX1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x20-20020a05640226d400b004596d6e78e3si3718062edd.144.2022.11.18.09.33.32; Fri, 18 Nov 2022 09:34:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PDCyFX1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242276AbiKRQum (ORCPT + 90 others); Fri, 18 Nov 2022 11:50:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235463AbiKRQuh (ORCPT ); Fri, 18 Nov 2022 11:50:37 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A07D793721; Fri, 18 Nov 2022 08:50:36 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4A2C7B824BC; Fri, 18 Nov 2022 16:50:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F026C433D6; Fri, 18 Nov 2022 16:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668790234; bh=2SvZU2ZbmXvIOHrpSjoDJyk8GuB3PC2eqavTqAih/c4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PDCyFX1t2lbX2Y+JbxJspQJxL5IivL9nB6T9T8jDuj1ADFyeQ6AhYtrm7AMXDTrR9 3A4jPSXrHBkSeATkubSjiphuP/ZAmTP4Bdu2u/gBp/NdFMaNEjisc9WUIy1/y74jHG dOARPW4nFoH7nbO80T8fpwi4qxBngjNaKyW50XgZMmTTdqDjH6VQQnl/9qmNyK0gy5 Qa62UpjpBwrCiNE4cv2lHgSut3CLX3Ox4hvHWnz2gEi2Q7A/QqhMK0ytZ1NzsQbBtA 3d8r/tBKMo563L/+EBD+upeTVN/Xy+jXaNnw90FnSFpaTbsu6jGPV93yC25scr1K6u UMyclmg+Rj8yA== Date: Fri, 18 Nov 2022 16:50:26 +0000 From: Will Deacon To: Rob Herring Cc: Namhyung Kim , Arnaldo Carvalho de Melo , Jiri Olsa , Peter Zijlstra , Alexander Shishkin , Mark Rutland , Catalin Marinas , Marc Zyngier , Oliver Upton , Ingo Molnar , Suzuki K Poulose , James Morse , Alexandru Elisei , kvmarm@lists.linux.dev, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, James Clark , Mark Brown , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Subject: Re: [PATCH v3 0/8] perf: Arm SPEv1.2 support Message-ID: <20221118165025.GB4872@willie-the-truck> References: <20220825-arm-spe-v8-7-v3-0-87682f78caac@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 17, 2022 at 08:43:17AM -0600, Rob Herring wrote: > On Fri, Nov 4, 2022 at 10:55 AM 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/ > > > > Signed-off-by: Rob Herring > > --- > > Changes in v3: > > - Add some more missing SPE register fields and use Enums for some > > fields > > - Use the new PMSIDR_EL1 register Enum defines in the SPE driver > > - Link to v2: https://lore.kernel.org/r/20220825-arm-spe-v8-7-v2-0-e37322d68ac0@kernel.org > > > > 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 (8): > > 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: Use new PMSIDR_EL1 register enums > > 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 | 139 +++++++++++++++++++++++++++++++++ > > drivers/perf/arm_spe_pmu.c | 156 ++++++++++++++++++++++++------------- > > include/uapi/linux/perf_event.h | 3 + > > 7 files changed, 257 insertions(+), 150 deletions(-) > > Will, any comments on this series? Looks fine to me. Happy to queue it once the uapi change has been acked. Will