Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6000401pxb; Mon, 14 Feb 2022 12:49:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHX0FMEX9JP/Ic5TQ0F24yqmJ1/IqFOwchclpCNaUIZg4+uqvAMpjJEevem1Vp2ucJelLt X-Received: by 2002:a05:6a00:244e:: with SMTP id d14mr881229pfj.45.1644871740580; Mon, 14 Feb 2022 12:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644871740; cv=none; d=google.com; s=arc-20160816; b=biGlzuKwjJ+4+sMeHhHMTrqeGS1q30icRnmeglVZOYOkQeCqrCMD39UHVTDJ9CUuNa vGCIh9ZndQPV6Rav6oj/doIX05CgQro15zcaheYmyOPYtuNM8Pz4yJZLlW1SN2/QJNLA ndNMeLpYw5cKGDfo3nM9GqRxjZr0+CqTCZau0vadv9f499QA9tRpo7OLvWYVoKibznfj VNOR3Iedkv6SE4HFtywRwZcKWppRvdhaEegGFE/Da2zUpiI6TSfPUtZt3EOuw9kUjQpg mHtaYClRSc7dTb9zQBe2LFLrvkl0Rg+MTBTvFc/oQ+ZPRxNpMJ9LdcZpcdEHLwy/CFSZ 7UWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=PoLu0/Wt8k2EfS1j8g7nKILK3oce2OQR1d1HZ65ipJo=; b=O2ywgQhzBuY97zdL9nQXcSU89aH/aqGeRkQMs1BHA2wBL6qZZm5zbhcEDlqa273GhU pkfLVls10YF5WKIB2bOWkFHnBMslZ9LwOtb7+209y8pZgvejYDSfHcIYb6GRSfv7EO4Z RmXhNQFvgW7sjfbV/KTQMe+qrfS/4HU0GGOv6FkjzvT2QW1A3vGQ6RAIfsivgvW0iQDW EMnJf1ITT/ghOHG4GC8bfr85I6j4MsMZEUk2k45UHF44IqwX7hfDCZWYxN5zNRn/sTqQ S+86/HYyjZMUZ4lVvBTcRKZclSdWtJBaYVeQ0WUnGok8i4V11dklc6GG+RTfHa/nmdeb 7FWw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id v4si27842578pfm.273.2022.02.14.12.48.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:49:00 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 573121C887F; Mon, 14 Feb 2022 12:14:40 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352525AbiBNLqq (ORCPT + 99 others); Mon, 14 Feb 2022 06:46:46 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353014AbiBNLpx (ORCPT ); Mon, 14 Feb 2022 06:45:53 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A81FF101F for ; Mon, 14 Feb 2022 03:43:34 -0800 (PST) Received: from kwepemi500009.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Jy2LT2pYxz1FCsG; Mon, 14 Feb 2022 19:39:13 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by kwepemi500009.china.huawei.com (7.221.188.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 14 Feb 2022 19:43:32 +0800 Received: from localhost.localdomain (10.67.164.66) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 14 Feb 2022 19:43:32 +0800 From: Qi Liu To: , CC: , , , Subject: [PATCH 0/2] Add Support for HiSilicon CPA PMU Date: Mon, 14 Feb 2022 19:42:26 +0800 Message-ID: <20220214114228.40859-1-liuqi115@huawei.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.164.66] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add Support for HiSilicon CPA PMU, including PMU driver and json file in perf tool. Qi Liu (2): drivers/perf: hisi: Add Support for CPA PMU perf jevents: Add support for HiSilicon CPA PMU aliasing drivers/perf/hisilicon/Makefile | 2 +- drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c | 403 ++++++++++++++++++ include/linux/cpuhotplug.h | 1 + .../arm64/hisilicon/hip09/sys/uncore-cpa.json | 81 ++++ tools/perf/pmu-events/jevents.c | 1 + 5 files changed, 487 insertions(+), 1 deletion(-) create mode 100644 drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip09/sys/uncore-cpa.json -- 2.24.0