Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4614757iob; Sun, 8 May 2022 19:17:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyABX4hybkoaymWyHscGl66tBE5zuArzOyGPop4wB5atbDWEiFWU8ZVgfNxCA0nrStOQDfR X-Received: by 2002:a63:8a43:0:b0:3c2:2b52:848a with SMTP id y64-20020a638a43000000b003c22b52848amr11453602pgd.1.1652062650314; Sun, 08 May 2022 19:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652062650; cv=none; d=google.com; s=arc-20160816; b=j3QOVHUa836Xpjg5ciwuPQdCLngLprWOlsnG5aGeHf8K745FopByuNapqELD8YbTZU HZG8r5U3SRSLD8ELVzppEDjTqNgOsr0ChOx2oksnXyyxfFKPMIFTE8g3UT7YcD4LWHxi FQ8TLD1SFW+RfaFMLMUsNz08kQ0I5GF+6RvshInFR7Z+xJZO6BS8WwcfD/j1qsbh+kv9 hq4ZyQ2HBqxSEutlucTyAXxfe8x1pmeCtSJa03UhfXmvizYHbCg7Imc48kVqujEIMThk FcN7kstgAM2arRkS8TfGSYiBqzKXwumk5Aa1U9KuGJAqqxHHUUR0xuS8U9ycAfrfqEf2 UvAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Hv2xTJDNg7q83aCgIdhKWAEe0g2JWDV+NJzH4MGI2iA=; b=ZxIfN0u5xU9LZbgEz660aTBVEPEAF1/DWjvAIFT7PY1sCEKFSg0x/nZeln9WHtKYJj 9JZCGj43ZuvpkytSdd4W7QbRGHR+R5PZAbv2z8YSI713dY75ocf+t5TP28DdEwefgPxV 6hkqalJcDKU63aivtJ5YiGiM+ZLaUng0wobvj9+BMpbrKe2ZL32SzpxWXJ0TrJTZbs6v /t/QZgmlDptw4I49A0wnaDM2okJyx5OLyxo1XMOSD5G/unFOqqvzdioi+5oybsTMvuea A1c6qDzsHS+Mw8FTTAPcidcT0gP3hi3Ponb0zfSjD5nhGx/cNQIRFJ75sQiJ1jxEsf/0 bFKg== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q64-20020a632a43000000b003c61560e0cbsi12772919pgq.517.2022.05.08.19.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:17: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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B80633DDCC; Sun, 8 May 2022 19:17:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446585AbiEGPHj (ORCPT + 99 others); Sat, 7 May 2022 11:07:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377471AbiEGPHa (ORCPT ); Sat, 7 May 2022 11:07:30 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE66513F31; Sat, 7 May 2022 08:03:42 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KwVxL4LtKzGpL4; Sat, 7 May 2022 23:00:54 +0800 (CST) Received: from dggpemm500002.china.huawei.com (7.185.36.229) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 7 May 2022 23:03:39 +0800 Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 7 May 2022 23:03:39 +0800 Subject: Re: [PATCH 2/2] ACPI: ARM Performance Monitoring Unit Table (APMT) initial support To: Besar Wicaksono , , , , , , , CC: , , , , , , References: <20220419205432.46021-1-bwicaksono@nvidia.com> <20220419205432.46021-3-bwicaksono@nvidia.com> From: Hanjun Guo Message-ID: Date: Sat, 7 May 2022 23:03:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20220419205432.46021-3-bwicaksono@nvidia.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.247] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 2022/4/20 4:54, 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 > --- > arch/arm64/Kconfig | 1 + > drivers/acpi/arm64/Kconfig | 3 + > drivers/acpi/arm64/Makefile | 1 + > drivers/acpi/arm64/apmt.c | 176 ++++++++++++++++++++++++++++++++++++ > drivers/acpi/bus.c | 2 + > include/linux/acpi_apmt.h | 19 ++++ > 6 files changed, 202 insertions(+) > create mode 100644 drivers/acpi/arm64/apmt.c > create mode 100644 include/linux/acpi_apmt.h > > +++ b/drivers/acpi/arm64/apmt.c > @@ -0,0 +1,176 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * ARM APMT table support. > + * Design document number: ARM DEN0117. > + * > + * Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. > + * > + */ > + > +#define pr_fmt(fmt) "ACPI: APMT: " fmt > + > +#include > +#include > +#include > +#include Please include , here is the similar patch: https://lore.kernel.org/lkml/CAJZ5v0gqr97AFuk855UZkcVpDnmj1Q6B2PE32zWmx4eKxbNvCw@mail.gmail.com/T/ Thanks Hanjun