Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6283357iob; Tue, 10 May 2022 14:52:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1IFfPByFvr6Ahjw60zmcOhUugrFePg3xVVAiZaJmOivKWuxyukcw5fFEoaQSZOFTL24io X-Received: by 2002:a05:6a00:a8b:b0:4e1:52db:9e5c with SMTP id b11-20020a056a000a8b00b004e152db9e5cmr22396217pfl.38.1652219529330; Tue, 10 May 2022 14:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652219529; cv=none; d=google.com; s=arc-20160816; b=ZEepbyKBJSCS3bioT/5LIHCiuH1HcuVO2orOskwEWz0U0dsjS6bSbZOqlfkALCydzv RG+AqR3h3cdFhFLApn+b8i5VV+qnR3R+wflCa3S0WfUTeavldV3bWi8je9ZXUyijx9XQ lV1z5SEuC7yTsNl31CYB/0dZHh6C6ESnNt/Ra/UhkjQk11Yqa8sasMfj8zBBh39vC6KI NRhkjfcuJhfvOkMmo/GG+fCdPgudRpWE4Xv+kYTiaB1xegtW47uJ9BtWoeM3FtQWk4fw QZn7T1WQntR38oCu6dIghaJYYaFCOh2V+YpH5l0ClTvJ/iMpsdvxXR9+uBI0CE4Njcjp 9/4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sTaFIx9c6do0BGMCT+xCL5hoUaSG8rfBw5zDPsgteTY=; b=R8RLx4WlZ/ra+EEWwi+LLqEpXtJQCBaFt6LJ/QhtCGtarrsEF5pz04Yq2w02yVGwcg vySVU1UtAtmzxXERArJrlakplIY/HvUjeIuG1QAsjB3LFly4UAAyZA0StjESbac861K7 N60EYvvUFaj+1Vz2qzUYrcJUAgcOggzaZkQ2VooX9DZq7UzCFyqrzXHTSMyGGVpe/c0O CGgFA6SsvuHzJQVV4CoB1ebXJZTNvkqPoefWujD617imV4tO0vQFvhQUmKGvsid7SL5H KNFLrmRx3qISEN3Epk6m9R3aEEf/+be8pIS9bagRcl9hR5ZoCxiU5o/TZRR6vzP9OLbV qePg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a635602000000b003ab020bfc7fsi530641pgb.587.2022.05.10.14.51.52; Tue, 10 May 2022 14:52:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349015AbiEJSkf (ORCPT + 99 others); Tue, 10 May 2022 14:40:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344053AbiEJSkf (ORCPT ); Tue, 10 May 2022 14:40:35 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 37B532A1500; Tue, 10 May 2022 11:40:33 -0700 (PDT) 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 AFFDE12FC; Tue, 10 May 2022 11:40:33 -0700 (PDT) Received: from bogus (unknown [10.57.0.250]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F202A3F5A1; Tue, 10 May 2022 11:40:30 -0700 (PDT) Date: Tue, 10 May 2022 19:40:25 +0100 From: Sudeep Holla To: Besar Wicaksono Cc: Suzuki K Poulose , Will Deacon , Sudeep Holla , catalin.marinas@arm.com, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, thanu.rangarajan@arm.com, Michael.Williams@arm.com, treding@nvidia.com, jonathanh@nvidia.com, vsethi@nvidia.com, Mathieu Poirier Subject: Re: [PATCH 0/2] perf: ARM CoreSight PMU support Message-ID: <20220510184025.iwgknfqe5ygz4jwn@bogus> References: <20220509002810.12412-1-bwicaksono@nvidia.com> <20220509092843.GB26264@willie-the-truck> <2e5e09f9-b71b-d936-e291-db8f94554b18@arm.com> <20220510110742.ievkihggndpms3fn@bogus> <20220510111318.GD27557@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220510111318.GD27557@willie-the-truck> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,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, May 10, 2022 at 12:13:19PM +0100, Will Deacon wrote: > On Tue, May 10, 2022 at 12:07:42PM +0100, Sudeep Holla wrote: > > On Mon, May 09, 2022 at 11:02:23AM +0100, Suzuki K Poulose wrote: > > > Cc: Mike Williams, Mathieu Poirier > > > On 09/05/2022 10:28, Will Deacon wrote: > > > > On Sun, May 08, 2022 at 07:28:08PM -0500, Besar Wicaksono wrote: > > > > > 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/? > > > > > > Absolutely zero, except for the name. The standard > > > is named "CoreSight PMU" which is a bit unfortunate, > > > given the only link, AFAIU, with the "CoreSight" architecture > > > is the Lock Access Register(LAR). For reference, the > > > drivers/hwtracing/coresight/ is purely "CoreSight" self-hosted > > > tracing and the PMU is called "cs_etm" (expands to coresight etm). > > > Otherwise the standard doesn't have anything to do with what > > > exists already in the kernel. > > That's... a poor naming choice! But good, if it's entirely separate then I > don't have to worry about that. Just wanted to make sure we're not going to > get tangled up in things like ROM tables and Coresight power domains for > these things. > OK, now that triggered another question/thought. 1. Do you need to do active power management for these PMUs ? Or like CPU PMUs, do you reject entering low power states if there is active session in progress. If there is active session, runtime PM won't get triggered but if there is system wide suspend, how is that dealt with ? 2. Assuming you need some sort of PM, and since this is static table(which I really don't like/prefer but it is out there ????), how do you plan to get the power domain related information. -- Regards, Sudeep