Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1746693pxm; Thu, 24 Feb 2022 08:37:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwivbb5drn/0MDQZf81QTyYiyrTH/bBdAk2rXB1ImMhQvAnWT7qVVR8gIu+1F8J2tvef8Ak X-Received: by 2002:a63:5110:0:b0:374:2312:1860 with SMTP id f16-20020a635110000000b0037423121860mr2904678pgb.146.1645720625316; Thu, 24 Feb 2022 08:37:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645720625; cv=none; d=google.com; s=arc-20160816; b=huR0FOMJqcumqD1vQ+L0TKXmUnzVLoINe3fJnOpxtmFVBHShizNAUKFitW7RgP0dtV mi6juHFKEC1G2LWqMs+/xPoL+3sbynt2I7o/3xS1tlyQ5XtZDRTb23dAQq7AmIi2dAcp Z04EM5KryMtXMgPp5iJtaAkzkxB266gASLWZY0ocQBEDc3O0uIHS69mRj0uiD/SPWY8o 4O+feGH4ybh082+Cs4/EoaJZjDKv4Y3k9fxWlov3tKe6s1GT4Ud7+L68JIX6B6A88XxB iZ16mSNXGxKrPO7nttae0So+Q/EBr5J9miSzoxXctChwlVNVU5SQgU7g5ExDjA7hREcw adww== 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=fWNsE1qy+wp1xPdEmAr5JN2zOnlCBvVjfhNa8nla4gQ=; b=JUl1CBtHyEWQ/ztiSNYFT3v/bYGW5Wk1FI7B1No4zvU2ZrSoENAFysB2WpZkmQHnCX dgV09BM7mPZV8dcrkrbA5Djb8GUtQxASOQsadUoYrEQHB7+DlZuXysdXLRB8YpuGVLoH RG7GUyQZ/JHSiKukSz2atbIaRSxSEpaQTRd55vgjb9h/zWj1V3hpqLa+Z5vN7vTsqwle IN3U8YA/OtlCRqewGZuE79yhCx6RMj5hcdeNE3T/6ARWO6nMbCjq8G9t+fxzPWxvNWE9 EpKxwV9W1qZSLDYOmnkm98v+A365546g2oCuLHPzXG3Y1yO9Rj1S2UPdA2nD6cLQGuEa WiMg== 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 s22si2559412pgh.253.2022.02.24.08.37.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:37:05 -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 C47AE269292; Thu, 24 Feb 2022 08:20:25 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233937AbiBXLNb (ORCPT + 99 others); Thu, 24 Feb 2022 06:13:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233958AbiBXLNP (ORCPT ); Thu, 24 Feb 2022 06:13:15 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AE412905B1; Thu, 24 Feb 2022 03:12:43 -0800 (PST) Received: from kwepemi500022.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4K49Fr2qGpzdZXK; Thu, 24 Feb 2022 19:11:28 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by kwepemi500022.china.huawei.com (7.221.188.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 24 Feb 2022 19:12:40 +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; Thu, 24 Feb 2022 19:12:40 +0800 From: Qi Liu To: , , , CC: , , , Subject: [PATCH v2 0/2] Add Support for HiSilicon CPA PMU Date: Thu, 24 Feb 2022 19:11:27 +0800 Message-ID: <20220224111129.41416-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: dggems705-chm.china.huawei.com (10.3.19.182) 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. Change since v1: - Address the comments from John. - Link: https://lore.kernel.org/linux-arm-kernel/20220214114228.40859-1-liuqi115@huawei.com/ 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 | 401 ++++++++++++++++++ include/linux/cpuhotplug.h | 1 + .../arm64/hisilicon/hip09/sys/uncore-cpa.json | 81 ++++ tools/perf/pmu-events/jevents.c | 1 + 5 files changed, 485 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