Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp28145pxh; Thu, 7 Apr 2022 13:00:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQKDrNTYkVJup8wIa6W3Mt5BH5acj62YDI39ZQoGUqB7c0M0BGxiJGi94Eytg1BxVADtWs X-Received: by 2002:a17:902:e748:b0:156:828e:c07c with SMTP id p8-20020a170902e74800b00156828ec07cmr15666749plf.117.1649361606291; Thu, 07 Apr 2022 13:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649361606; cv=none; d=google.com; s=arc-20160816; b=ArYsdDjRu/Bw3CiiTBxPUb4tAiKC8ZNHAq6uDTngaASYAwuaJrYyNulQT1ZY8nL/B0 kog0eUSZwqpuFwPa0cixzZ1z9DQDUMd1NGHB0wB5C9KIvKV9qRLVrg8vmFYgi2U+uKcZ XzIDy3REpeAecClBgbC5JlGAn3oNB6qCP5AsvAbeb+1fGPFz7ZnOJ4ARaOdRtV2DwpCH o5EJdU15Ra0zWz6uOlluA88g/ot5+4k/03+oA5q830V9KV3qE3yg/IQJsQzoCXO447op t23aFzkFJuLUyy1+pdFQh0oHfAsXaPC9u7Lohfr/O+snf2LJVRUOkYZ3BbVWUbpjJjuF tuHQ== 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=MksVrz0vYWSgws1akOSVPtp2uPvpqRpXizZI0jYNazXxvIUNkpcXKliINZRV1YT6e6 kwHzsbkSvCFmQEOq3nxAH/3i4xgrULENiI//Vpcjg1dQaFgO7yu77COXZciwws/jrNXP Q+k4+5MaWpCXhftSfxY5Ib1HFe0pojn5lfJ5wLG+j2XyTWTQn1bmRwCJpx6YzGAJzHZI m+CEaXnuKyV4rG1umUMaEIU8qI9+4F+BUtkry6cmyvM4tOuYjzLW1Lp1Pxbz0fH0MjbU uoncS6hjj0u7yHhREMGI4AXFgGiLbk5vMsXCgLj/b/K7p7vpsqywaZIBZaFhaG/dwDLQ RSvQ== 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 j34-20020a634a62000000b00398ebebcaa8si17439424pgl.261.2022.04.07.13.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:00:06 -0700 (PDT) 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 719EE2852AB; Thu, 7 Apr 2022 12:26:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245416AbiDGMt5 (ORCPT + 99 others); Thu, 7 Apr 2022 08:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245412AbiDGMtz (ORCPT ); Thu, 7 Apr 2022 08:49:55 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89A3BD1104 for ; Thu, 7 Apr 2022 05:47:51 -0700 (PDT) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4KZ1Jn69t5zBs6p; Thu, 7 Apr 2022 20:43:37 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by kwepemi500015.china.huawei.com (7.221.188.92) 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:47:49 +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:47:49 +0800 From: Qi Liu To: , , CC: , , , Subject: [PATCH v4 0/2] Add Support for HiSilicon CPA PMU Date: Thu, 7 Apr 2022 20:46:15 +0800 Message-ID: <20220407124617.54521-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 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