Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4876262iob; Mon, 9 May 2022 03:50:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRvt/3zBcHlgY1PLYn9NSHZNlbudNBX2Y+70cSyCaast/AiLIFgUQssZuHEamPnkVceKsW X-Received: by 2002:a17:90a:2f84:b0:1dd:940:50e7 with SMTP id t4-20020a17090a2f8400b001dd094050e7mr7762413pjd.210.1652093430724; Mon, 09 May 2022 03:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652093430; cv=none; d=google.com; s=arc-20160816; b=qSWVdS1ufVFnHfkwm13/hN29GwxtecpF/R/D15i72mC6ZlxBt+LzSWf3DsZvr8aPwT V4VNKkPqAFShxjUTUK9lFOhz5q+8YwRazRzHP0yS42xXSAEwzJOELTe75Pq9nAbGNBGR REc+vpsnWB5ZJUIAGoujb/SAbCtyRjXLmjxqciZ9FLsev8vmF2Tv1voWtAhOIE8ANmul EgNJmGY1AwXDw4FJk1riFrwraBTilS+u45t8agMq1qRv0X8VzA8XGZIR8kFxp/2SpajZ W+fpb1djozzMi9TqfvxQQVsphxmAukmUqxnS+lhYuCgC0Ep0uZAU0KWTOKw0vHrJNP1t vDxg== 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=ZdR10p6bV96c7SUULK7R5c3K9AWMEbRZH4AvkdPlOBo=; b=K6LX01eOJieOaqIO8KA8mFu6EKquzcHy+UdtDgHJRHgtNKo8mS39r9sGxcaFJfcX7M iyHGdhkvC52IRcyle/c1aVb6TVvw4yr4fGXee0bD8i+GGYtFHTCiuC5x163vRul8p+uK tYceF6v9AbvckHnwgXNkN+tuEJ43BDE4FwLndmcnEGutvNPv0lIFcoSmhMDY2iCg4eJG e15+ilM9pzgusQVC7YY9gcBGcmMBawaJmi5vt/AJwUHqodAsct/pgqIfj9TUO9rIy1Zk r8pAJN0f0FHSq6wV9vlqAjdxu54dg31RRsip+z8HqlfdLBI1w6ViONjJmsEazj55xL+U Orog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BICeC5sQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b15-20020a170902d50f00b00158da867027si12136198plg.624.2022.05.09.03.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:50:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BICeC5sQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 360E22764F9; Mon, 9 May 2022 03:10:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236213AbiEIJhb (ORCPT + 99 others); Mon, 9 May 2022 05:37:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232022AbiEIJct (ORCPT ); Mon, 9 May 2022 05:32:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 971A92218FC; Mon, 9 May 2022 02:28:51 -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 258D6614BB; Mon, 9 May 2022 09:28:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15903C385AC; Mon, 9 May 2022 09:28:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652088530; bh=3iTqXEKUOS/eqYT5xmR3rSnyJdIWdYq46LxP+sQuJpw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BICeC5sQ707kdEq4a9WRgFtwUBmZVnQYKm/9UM+6cbO0vwlKRG5+j1HUmWQxGhvfw D8LyU/SzBNjV6TJdWk78kSbPwmfUn1xn0b0HR3zGHswQVW20XU+tEiUbQtWoNQVdYa P++wJwIOoY/bJF2yq0JCQSjiVvhqh0FZZDHmFjtrRkFaShr9MGFQSjiLwSUq0bt8I8 /6YuDD/d5N7kJvqV4J0fI7dD+r18NuUS4LFZoB1z4Qcap4s9PT5LagrOWQfSXZuXfo n1E4UXBFUKjpq5ei5sg/E6vouI2CBI57Ygh22zsXwKtrgp435QvoOx+mvwLKasSa6j 0xoP6TZC6DCTQ== Date: Mon, 9 May 2022 10:28:44 +0100 From: Will Deacon To: Besar Wicaksono Cc: catalin.marinas@arm.com, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, sudeep.holla@arm.com, thanu.rangarajan@arm.com, Michael.Williams@arm.com, suzuki.poulose@arm.com, treding@nvidia.com, jonathanh@nvidia.com, vsethi@nvidia.com Subject: Re: [PATCH 0/2] perf: ARM CoreSight PMU support Message-ID: <20220509092843.GB26264@willie-the-truck> References: <20220509002810.12412-1-bwicaksono@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220509002810.12412-1-bwicaksono@nvidia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, May 08, 2022 at 07:28:08PM -0500, Besar Wicaksono wrote: > Add driver support for ARM CoreSight PMU device and event attributes for NVIDIA > implementation. The code is based on ARM Coresight PMU architecture and ACPI ARM > Performance Monitoring Unit table (APMT) specification below: > * ARM Coresight PMU: > https://developer.arm.com/documentation/ihi0091/latest > * APMT: https://developer.arm.com/documentation/den0117/latest > > Notes: > * There is a concern on the naming of the PMU device. > Currently the driver is probing "arm-coresight-pmu" device, however the APMT > spec supports different kinds of CoreSight PMU based implementation. So it is > open for discussion if the name can stay or a "generic" name is required. > Please see the following thread: > http://lists.infradead.org/pipermail/linux-arm-kernel/2022-May/740485.html > > Besar Wicaksono (2): > perf: coresight_pmu: Add support for ARM CoreSight PMU driver > perf: coresight_pmu: Add support for NVIDIA SCF and MCF attribute > > arch/arm64/configs/defconfig | 1 + > drivers/perf/Kconfig | 2 + > drivers/perf/Makefile | 1 + > drivers/perf/coresight_pmu/Kconfig | 10 + > drivers/perf/coresight_pmu/Makefile | 7 + > .../perf/coresight_pmu/arm_coresight_pmu.c | 1317 +++++++++++++++++ > .../perf/coresight_pmu/arm_coresight_pmu.h | 147 ++ > .../coresight_pmu/arm_coresight_pmu_nvidia.c | 300 ++++ > .../coresight_pmu/arm_coresight_pmu_nvidia.h | 17 + > 9 files changed, 1802 insertions(+) How does this interact with all the stuff we have under drivers/hwtracing/coresight/? Will