Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2375206rwd; Fri, 19 May 2023 05:05:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44yzsSD9Q1qQSU6vuK2Upx6Xkf937Tdpz/PLAePIL1zFh8/IbJoeJ40NhuMChpfBDPR3s3 X-Received: by 2002:a05:6a00:1896:b0:646:6d5e:1d25 with SMTP id x22-20020a056a00189600b006466d5e1d25mr3163470pfh.16.1684497929823; Fri, 19 May 2023 05:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684497929; cv=none; d=google.com; s=arc-20160816; b=PVCicfzHt7iah5VESqP44G3FfkyRfQS572a5qkGYvpEhMoJceZ6xkpgufBgBT5GDIV eMUeZGNvbS8rlHHbxdH1ezC/54A3oX7mHzmwNMJURpj4e03vqvcuMtktFBoumSo1LY6f ttPg8XBiFs9WLy8bJf3c+iTZx2HA40i8WLV8q4+Wfymv6ppn43rZna2ywZPaygc9c7SL ZR6Kro6ChrMzq0wCW6MxPKk8otElp9OOvNCFxeUbuyTt6MjiJ7X8Zqq/RBLcIavK5Ze4 11a3fkB50BSZmGexSZyfTB8X/072u8WUoQ5lS9EsIw9w+zuBPlvs3vSOvGHCLwkF2Upp UnKA== 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=MeL8o0jNuN0ncb8NLjS5jj3nDN3dvdmSWx2984FTIPQ=; b=G6OnZehUdacZy5L2SouafegJ0rZIr69vNCP/I+DhhAhfUi5Ma7qlhQzeSHMDvz5TIF c6PaPZ0oollzc/O9ID6XC7kM1dsaP7053EvJJs29Zo6tcjAWXIgCHi0JA6BGG7H7+Sqv xhw6xjmieGYE7vifNnJPTHvsuz6KzgznbMyXIHf93E26g29YQAY9NuUmd8EHlh1M4jlM 4a5vwk/JSSR/6UuN6nl13UFBwzjuJkoxbJeee51Fc7OADhIwoFl1r4vz2z6v6IFejkuV ofWfXjUUwcAmYuu5lnWH/ODDTZW/FRqQgavYXxtUqx5Pws4VduUWYvaOxXm8qRdaSxch OCBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SMpbEyWt; 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 n7-20020a6543c7000000b0053071414c3asi3387957pgp.562.2023.05.19.05.05.16; Fri, 19 May 2023 05:05:29 -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=SMpbEyWt; 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 S231688AbjESLxx (ORCPT + 99 others); Fri, 19 May 2023 07:53:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbjESLxv (ORCPT ); Fri, 19 May 2023 07:53:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D217DE60; Fri, 19 May 2023 04:53:47 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 6F8356570B; Fri, 19 May 2023 11:53:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AF4BC433EF; Fri, 19 May 2023 11:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684497226; bh=IpYMvm+1Pvf+LMMwLEDhubWBBc1bK/NQ0YjTQqFP6NQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SMpbEyWtSyImp+/hVn3+dvIAax2bCQKZsQvMpcCofBrhSaQkhGFPE6qYGDEuwdU5W d5NZpCPUIQ6om9Ky9jEhlTi7N3nDZjwGeoMTlKmVDJNGDLz/IIreTJGkXzN/LrNgsO fKs4Difc/BLRa01s35tFkvBAV4mAd0y2IzeU/teBFxLCGH/JEkd0gceD2tdLoeqeUY GC+3R8UOsjMMtNMW6u2SNE/UqIlWqpu5lxJC1Gr9s+0CwMK023LvtQz0Ej0YVzcQsS ppBm9cmpLzJPxl5NlW0QnKWP81ld+rlV6jNSNL3wIUfKnqWw3EyYPF3HM7iATj7VAR k5slRsoV5E7hQ== Date: Fri, 19 May 2023 12:53:40 +0100 From: Will Deacon To: Jonathan Cameron Cc: Dan Williams , Liang Kan , linux-cxl@vger.kernel.org, peterz@infradead.org, mark.rutland@arm.com, mingo@redhat.com, acme@kernel.org, linuxarm@huawei.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso , Dave Jiang Subject: Re: [PATCH v6 4/5] perf: CXL Performance Monitoring Unit driver Message-ID: <20230519115339.GA2637@willie-the-truck> References: <20230413142617.15995-1-Jonathan.Cameron@huawei.com> <20230413142617.15995-5-Jonathan.Cameron@huawei.com> <6444603653882_1b41629414@dwillia2-mobl3.amr.corp.intel.com.notmuch> <20230423144801.00006efd@Huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230423144801.00006efd@Huawei.com> 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,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 Sun, Apr 23, 2023 at 02:48:01PM +0100, Jonathan Cameron wrote: > On Sat, 22 Apr 2023 15:31:18 -0700 > Dan Williams wrote: > > > Jonathan Cameron wrote: > > > CXL rev 3.0 introduces a standard performance monitoring hardware > > > block to CXL. Instances are discovered using CXL Register Locator DVSEC > > > entries. Each CXL component may have multiple PMUs. > > > > > > This initial driver supports a subset of types of counter. > > > It supports counters that are either fixed or configurable, but requires > > > that they support the ability to freeze and write value whilst frozen. > > > > > > Development done with QEMU model which will be posted shortly. > > > > > > Example: > > > > > > $ perf stat -e cxl_pmu_mem0.0/h2d_req_snpcur/ -e cpmu0/h2d_req_snpdata/ -e cpmu0/clock_ticks/ sleep 1 > > > > > > Performance counter stats for 'system wide': > > > > > > 96,757,023,244,321 cxl_pmu_mem0.0/h2d_req_snpcur/ > > > 96,757,023,244,365 cxl_pmu_mem0.0/h2d_req_snpdata/ > > > 193,514,046,488,653 cxl_pmu_mem0.0/clock_ticks/ > > > > > > 1.090539600 seconds time elapsed > > > > > > Reviewed-by: Dave Jiang > > > Reviewed-by: Kan Liang > > > Signed-off-by: Jonathan Cameron > > > > Jonathan, I was awaiting a "perf maintainer ack" before applying this, > > only to now realize there is no maintainer entry for drivers/perf/ in > > general, only "ARM PMU PROFILING AND DEBUGGING". Were you waiting on any > > additional acks from perf folks for this? > > I'm always hopeful. For everything similar we've done in the past in > drivers/perf, Will Deacon has taken a look and ultimately taken the series > (often Mark has as well), but then those drivers could be very loosely > termed ARM PMU on basis they happen to be PMUs on an ARM architecture > system even if they have nothing at all to do with the ARM architecture > itself (e.g. our PCI PMUs). > > I see the riscv stuff has been going in drivers/perf without an Ack from > them though so there is precedent for non ARM stuff in this directory > going in through other trees despite the catch all maintainers entry. > > So, Will / Mark do you consider this in your maintainer scope? > > Your input is welcome either way but as you might be very busy I > don't want to commit you to taking a look at this CXL driver. We try to review and merge as much as we can under drivers/perf/, but where there's another subsystem which is tightly coupled with the driver (e.g. riscv) then we're more than happy for the code to be handled via the other tree. We don't want to bottleneck changes here and I don't think we can reasonably keep up with every perf driver. So please feel free to take this via cxl. Will