Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp416045pxb; Thu, 7 Apr 2022 08:52:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFR1dZKSQfqPgt2J91BSqtAMoVP9qX+UoUaE0Ca4LQYayQeS1sGHwWsmMIu7PdUyc0jdYq X-Received: by 2002:a05:6402:5245:b0:419:5437:fc6b with SMTP id t5-20020a056402524500b004195437fc6bmr14677393edd.282.1649346751472; Thu, 07 Apr 2022 08:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649346751; cv=none; d=google.com; s=arc-20160816; b=X35yK12Sqh9J3CroLHVuDYdxgaNK2TuOEtMA/buUO2h2Y2mieoyUoWS4ia5ypGBhN6 0hSz+dcPI5l1GNygdjB+UUGe3AOuArKGBl1CdZleddWgN60vom8Fd5nXNFi+AKus+Gn8 Nkg0nFVKPse+k2vWxDxhlmEvJB7SQ6Qc+6xo4kP6jD9J64rM36uxv0Gr2W/C5reRycG0 oDXh2gcd3tyNcNYyIm9FuGyo+pDW4iN/nRfCsrf4LuJ+n/mDXYDa1PQnurM7emCevLPM wK55YXxCbiUn8sRShVtNpDswPCHhfEnQjx8oFBjWCZG59mRUBtTil6A2zh0j/pFwzpwe 1/Rg== 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=ggSqlplQhn62MWB540/A0+v1rIdO5Lg2vdMATxL5GmQ=; b=DPrh7F+56k/DkHWFwiSF5K8aOXFnzwgHazfsi0ZG5bOo2H0Ns6CWmivUmgSVXW+xRk QTnQVDF9xpKBIN94tcZSH+oLvXF9P63aJw0EQQOOglDHCSXB98ZV+MdlBbexu4Unk5p9 hmVmLXQVBX+FeqxcbrKWrIBc38ARSIlBUi5xdHZaSgL2Gc/U6MY9f3TOXJKSZSXDaRtp qijLo+bd/V+DkLZNlRjtjOt3G+aQ+rHrgR0eCFOkqeJMFvWU8JOTDx4hhdAwgQUwt1mJ noX+LUpkDbfE88XbKKBkoVyQPQXVoSgPidsu21nVmfjFBKAyi+r23gtIPXJV8JKobqua zYwA== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f23-20020a17090684d700b006df76385c1asi9802035ejy.186.2022.04.07.08.50.56; Thu, 07 Apr 2022 08:52:31 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245299AbiDGMkW (ORCPT + 99 others); Thu, 7 Apr 2022 08:40:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245285AbiDGMkT (ORCPT ); Thu, 7 Apr 2022 08:40:19 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4614A2571CE for ; Thu, 7 Apr 2022 05:38:19 -0700 (PDT) Received: from kwepemi500026.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KZ18c2zBkzgY9Y; Thu, 7 Apr 2022 20:36:32 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by kwepemi500026.china.huawei.com (7.221.188.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 7 Apr 2022 20:38:17 +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, 7 Apr 2022 20:38:17 +0800 From: Qi Liu To: , , CC: , , , Subject: [PATCH v3 0/2] Add Support for HiSilicon CPA PMU Date: Thu, 7 Apr 2022 20:36:43 +0800 Message-ID: <20220407123645.43019-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: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 Add Support for HiSilicon CPA PMU driver. Json file in perf tool is applied in https://lore.kernel.org/linux-arm-kernel/YhkhSZp+a715Ldzr@kernel.org/. Change since v3: - Add more explanation for changing CPA PMUs CPU affinity. - Address the comments from John. - Link: https://lore.kernel.org/linux-arm-kernel/20220321070124.41338-1-liuqi115@huawei.com/ Change since v2: - Associate CPA PMUs with CPUs online, rather than CPUs in the nearest SCCL. - Move CPA power management to probe and remove function. - Address the comments from John. - Link: https://lore.kernel.org/linux-arm-kernel/20220224111129.41416-1-liuqi115@huawei.com/ 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: Associate PMUs in SICL with CPUs online drivers/perf: hisi: Add Support for CPA PMU drivers/perf/hisilicon/Makefile | 2 +- drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c | 401 +++++++++++++++++++ drivers/perf/hisilicon/hisi_uncore_pa_pmu.c | 18 +- drivers/perf/hisilicon/hisi_uncore_pmu.c | 4 + drivers/perf/hisilicon/hisi_uncore_pmu.h | 1 + include/linux/cpuhotplug.h | 1 + 6 files changed, 415 insertions(+), 12 deletions(-) create mode 100644 drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c -- 2.24.0