Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1243733imw; Tue, 5 Jul 2022 06:19:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vOF51j/d3/vN5tFsMA9yhSzVBSPgySx7aHsSl5G52zTDOFRlQh1trxj6gAuWS6ZyvCHEk+ X-Received: by 2002:a63:9c01:0:b0:40c:e842:ff5e with SMTP id f1-20020a639c01000000b0040ce842ff5emr29616438pge.145.1657027197297; Tue, 05 Jul 2022 06:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027197; cv=none; d=google.com; s=arc-20160816; b=aFMLiQhYdX5ofGZ6IlsxE1tv9aKh7DBFheKyYPrH02vXVIOPMd+d+YOgsO3KK4HQyO LMpBQN2x85dBI+RjRKrrxj3pIy8qenZNjovCxJAyiEPtX4VG7o7BvujZrpLvwcc7EsOk 7i7F2fjlQwP1fr/1D6h401v5kHKqoeEZPiirQDZekmBTupZHJQkJA2gkPUTg5MSgUcVR wpUdIpLPAQDDCxgMfED4CiTml6XaVSHTipZE97DYTouD33mj8F07IQJ+hPt11VwUfgmV aVBfM45BzAKiA9UJ/KhpRKapeLWi1+MDUgZlMUyqbSNCvP8Py03po7+ANtRrWboEGXBg gtaw== 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=x8eEizBdAdNvHwlSnFqKvSiH/2abaDlVMxaPPuKMU0s=; b=OzLAAMI4OOJvbuUa2jsrkJPUEAaiRtJDv1PJVjHF0ipKsn9fWao/8a8y2FC9OZ0Gxm UCPA7Nz6KN5SIDptrDeo0i1wq/9Le//Nu0LLWeMuEeX7AgtnoYCHbg5MvYdcQoTy3hN5 DMOqD/yS5kiVuzgytiy2ANGVU0wBb+klJIDLwiWum/QyTaUbuINH3UNK8cmv33+VzZpy 2DWRfLn/U6umaGJRptHJecEX9ds3Gku46jNGHTRKm5WeQL//opn3/F8ZDmK+TeWD1gid XYqmgYOAUMsB5VKh/YOl6Ap+PRXO11UqzLIUo+SKpGbjfZnOlaZ1GW8mOhoBMHajnJOM fBpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yyp5yggK; 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 y18-20020aa78052000000b005251b3fc716si42784942pfm.95.2022.07.05.06.19.45; Tue, 05 Jul 2022 06:19:57 -0700 (PDT) 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=Yyp5yggK; 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 S236877AbiGEMSU (ORCPT + 99 others); Tue, 5 Jul 2022 08:18:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233834AbiGEMJR (ORCPT ); Tue, 5 Jul 2022 08:09:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DAC7183BC; Tue, 5 Jul 2022 05:09:16 -0700 (PDT) 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 28367B817CC; Tue, 5 Jul 2022 12:09:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91A71C341C7; Tue, 5 Jul 2022 12:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657022953; bh=gMe2Ijaw82c09SO8FL5eAqBwiWmmaGC/sirYUVrjV4w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yyp5yggKgTaqkE3lKk9P7EyIRKmhnydHYGEKpT+MqyxZJQ/CDFnMtAOjK8Nhd68pB Np0ekJIh+/4WXcKN6nhGefi7JeHoKEtjvP60/xM75utygTBLSRiz1jf0pNXmwOdvl/ lT/rN4D0Mdj8g4d0nHX8jUd4P8ruSZaE9RUBQm9u563I2RBWey14BmVcLMifixTjUe kf6XI33rwEobfKyAK/ZaxoJVByJdldyFyDIYsmCO3SWt55taFfWUphpDdxa4Vlx9Yg 8w+MKa+jqvZKSe5jJnZ8QVLL422psnJki1MBMMcFNyfSPOkr2Y0da8WUwRzWLHW7Rh nUeAmjNMkuaTQ== Date: Tue, 5 Jul 2022 13:09:07 +0100 From: Will Deacon To: Anshuman Khandual Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, peterz@infradead.org, acme@kernel.org, mark.rutland@arm.com, Catalin Marinas , James Clark , Rob Herring , Marc Zyngier , Ingo Molnar , linux-perf-users@vger.kernel.org Subject: Re: [PATCH 0/8] arm64/perf: Enable branch stack sampling Message-ID: <20220705120907.GA1012@willie-the-truck> References: <20220613100119.684673-1-anshuman.khandual@arm.com> <20220627110105.GF22095@willie-the-truck> <967c0a4f-c864-21ec-33f1-5e3943a42409@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <967c0a4f-c864-21ec-33f1-5e3943a42409@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.8 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,T_SCC_BODY_TEXT_LINE 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 Tue, Jun 28, 2022 at 01:10:05PM +0530, Anshuman Khandual wrote: > > > On 6/27/22 16:31, Will Deacon wrote: > > On Mon, Jun 13, 2022 at 03:31:11PM +0530, Anshuman Khandual wrote: > >> This series enables perf branch stack sampling support on arm64 platform > >> via a new arch feature called Branch Record Buffer Extension (BRBE). All > >> relevant register definitions could be accessed here. > >> > >> https://developer.arm.com/documentation/ddi0601/2021-12/AArch64-Registers > >> > >> This series applies on v5.19-rc2 after the BRBE related perf ABI changes series > >> (V6) that was posted earlier. > >> > >> https://lore.kernel.org/linux-arm-kernel/20220610035101.424112-1-anshuman.khandual@arm.com/ > >> > >> Following issues remain inconclusive > >> > >> - Jame's concerns regarding permission inadequacy related to perfmon_capable() > >> - Jame's concerns regarding using perf_event_paranoid along with perfmon_capable() > > > > afaict, the capability stuff remains unresolved with the SPE driver, so I'd > > really like to see it fixed there first before we add more broken drivers. > > > > https://lore.kernel.org/r/20220118100702.GB16547@willie-the-truck > > Hello Will, > > I did go through the above mentioned thread, but could not understand (clear > enough) - what needs to be done. Could you please help summerize the problem > and possible solutions which I can start looking into. Thank you. I don't recall any details beyond what was discussed in the thread. Your best bet is probably to talk to James (Clark) and German, as they reported the issue initially and you all work for the same company... Will