Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp422520rwi; Fri, 14 Oct 2022 04:07:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7iAA4yMFhlTscc0/Zj+x0/wuWMatBI+QcQU62nISMEgrU3nkir86ic3BlpEHsK5s0PizjJ X-Received: by 2002:a05:6402:e01:b0:442:dd7e:f49d with SMTP id h1-20020a0564020e0100b00442dd7ef49dmr3739285edh.355.1665745658803; Fri, 14 Oct 2022 04:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665745658; cv=none; d=google.com; s=arc-20160816; b=a++mCxrw/DYI4Jom81vXWs3s06wBPe5PuTjY3fSWpGAOgldRNlBjIAkk76ukgrPE2I p6DjS5vkTI7tH96l2LUCII1n1xRd1a8M6rObKsDnL+UCeZUjCzfEpqcKBGpfiKB3NgED /73Zuzy4aAFUX/DBrW3AArFjKKhPou229ihsD3LYZBdsHJ/8Zm+97eZG+mvrtYb6DGhy UBOucwbVZHuA4wl/tFA0DJVYZFFVtEOfUiHR10gMtoJazG6EHwIl/clzlBGz4YCfqNBm 4agFjwYfHuuJAy+cNn9Fvn/Zr5xZOnNwtG1nemHMuERU4nxqmJRb0RUq8tEIbBjHnPMz VUIQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+5BJllX8tShe21O1phtPeY6nsqkCkdgKAQ+iReuJn7k=; b=UE0dZwrTM3yfMLk9KhVOwV2l44vpODK57JFf8MtGhBJfub2d9OxWRtT2G2xHVtcqpd WyEi8nw5PqZ6g0SprLF6A9wIHpNENpk/cfGawPblMD4a2gXhXgYfnK+vZIBDTwy5w71h FrMStU2Tng1qzJvnyvQg7JKriquYTGbHKQMsC8QQVy/rHenQOKx8pMR6vwcjUpFwdM99 +sAEEV3bavpfdDq0ZgKyJpG+3RkxgewJypuf34k2W7UhxKfRCqdxfTuwB0Vobhk6TE38 2YYYb9Gf2RHbFHnMpm6juVv65GS8j97bxKCmKGy56FLqxB0aniTHpkqk1PIZXyETveMQ Yv5A== 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 go8-20020a1709070d8800b0078153dd2836si2505800ejc.505.2022.10.14.04.07.12; Fri, 14 Oct 2022 04:07:38 -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 S229671AbiJNKz7 (ORCPT + 99 others); Fri, 14 Oct 2022 06:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbiJNKz5 (ORCPT ); Fri, 14 Oct 2022 06:55:57 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8A36B1BF224; Fri, 14 Oct 2022 03:55:56 -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 899DE13D5; Fri, 14 Oct 2022 03:56:02 -0700 (PDT) Received: from bogus (unknown [10.57.35.221]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8DD4B3F792; Fri, 14 Oct 2022 03:55:53 -0700 (PDT) Date: Fri, 14 Oct 2022 11:55:50 +0100 From: Sudeep Holla To: "Rafael J. Wysocki" Cc: Besar Wicaksono , lorenzo.pieralisi@arm.com, lenb@kernel.org, catalin.marinas@arm.com, will@kernel.org, guohanjun@huawei.com, linux-tegra@vger.kernel.org, treding@nvidia.com, jonathanh@nvidia.com, vsethi@nvidia.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2] ACPI: ARM Performance Monitoring Unit Table (APMT) initial support Message-ID: <20221014105550.zf7ufboxid3jryrz@bogus> References: <20220929002834.32664-1-bwicaksono@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 Fri, Sep 30, 2022 at 07:46:08PM +0200, Rafael J. Wysocki wrote: > On Thu, Sep 29, 2022 at 2:29 AM Besar Wicaksono wrote: > > > > ARM Performance Monitoring Unit Table describes the properties of PMU > > support in ARM-based system. The APMT table contains a list of nodes, > > each represents a PMU in the system that conforms to ARM CoreSight PMU > > architecture. The properties of each node include information required > > to access the PMU (e.g. MMIO base address, interrupt number) and also > > identification. For more detailed information, please refer to the > > specification below: > > * APMT: https://developer.arm.com/documentation/den0117/latest > > * ARM Coresight PMU: > > https://developer.arm.com/documentation/ihi0091/latest > > > > The initial support adds the detection of APMT table and generic > > infrastructure to create platform devices for ARM CoreSight PMUs. > > Similar to IORT the root pointer of APMT is preserved during runtime > > and each PMU platform device is given a pointer to the corresponding > > APMT node. > > > > Signed-off-by: Besar Wicaksono > > Acked-by: Rafael J. Wysocki > > for the change in bus.c, but as a side note, it would be good to move > all of the ARM-specific initialization into one place, so it is not > necessary to touch bus.c every time a new piece of it is added. > Agreed, I will look into that and move them all under single acpi_arm_init() or something. -- Regards, Sudeep