Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1764012rdb; Sat, 3 Feb 2024 23:49:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXNgPMcFXpHJPHxAB9I6sJ/recmOhrn/E4Bu7d5heWN75QhB16eSRD3eTeHWJqUPGbc2qj X-Received: by 2002:a05:6808:1642:b0:3bf:d136:9d08 with SMTP id az2-20020a056808164200b003bfd1369d08mr2663911oib.2.1707032988966; Sat, 03 Feb 2024 23:49:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707032988; cv=pass; d=google.com; s=arc-20160816; b=zJN/0EUuqa2W2Y8o2VEtZ+R7hu9uuJN7L9i5SfWiZ5tmt45Z8HtlQkME8iDqN8FP7y l7zAzpvB0Ws5sqyc9FfvbAuykd2jluq5o1nJUYC4dcHj/E08E01RkcDdJUxKDJQAAsZ4 SmRCSXq1OOMDvnsyFqyFY7VHei9xggPDHadNNZDJEZrLN7AwyFXhWlAtsv/7eKX7tQEP Qf1RyWq/4rOvd4fbZbbJsB4gdeVrNAr2RCOKzzCA5Oz87Kauzfs53mXetZ7x77+auL8T UBWDCWqedL2eKwCQ1OB5oUXYwBKib0GW+n3xHIY+H4Rzk7bsdcB451nD3nAelZtvBn7p 5Ogw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=qSR5OleyqVxvPM3cRvXory6e9aI76CRDAjEmfMXoYTQ=; fh=ko0LoHu60avX7HEGgamSgtzjbOCadGeBKX09A9Ewg/s=; b=0KWmEu2zJYnDqs3V8e9Y6Nv0782fw7ZOCUBszxf1DgMPwufycczbnGycHsEgxIgKP4 MIF3vPt19moIOa/PEEKefhKax4oDexaAW64GRT9dpQs+FH2XtfU/1vtW3tyFbXSeYuS5 BfWuUcwv+MQsLpIig08MCNMS0n1aaIwhtrcg2Ice1hlq5w1mkYJ6vSTuaynS8ZMj/MeM SbdIrnbETpMbq+A98QpWd5Ie/asw0JnvTMlorvUCc2/oy+uHM59omZP2ET2HGLNTIBmo PGxm0TRERhlDK0SXljgQYMhdrlr7sib1qEpdAYMktLoCeqT0W/7PoZsPhV4cJQi4zg+v l1YQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-51499-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51499-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCWWoLs1HW7+CXJwudWK0CCJL7HqHb5dEgofV/jQ9MA8v46J9PoFGv2VmB1bc/NqTmAcf0hzp3qhyO2Db1FvYcfUPh905r+MrXbd7fXFpg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b5-20020a170903228500b001d75d88f9a0si4537162plh.466.2024.02.03.23.49.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 23:49:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51499-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-51499-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51499-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8DD0C284777 for ; Sun, 4 Feb 2024 07:49:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 966A710A1E; Sun, 4 Feb 2024 07:49:40 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4ADFDDBB for ; Sun, 4 Feb 2024 07:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707032980; cv=none; b=MQa8fG2y/ak76TzFPMrnc8/a23L7ncZSiiEyq4CrCOTIbYrFilXL2Foq9fd8FJAIw0qwS9hU4qFYabdbL9Fe22uf19FH4HoJM73VyacOrNq0IhQcZblnUeMxdB2RsOD1iUjkDTjORUFAikOXdHGEqXoooGqcQ0XZajoV1Io2T2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707032980; c=relaxed/simple; bh=rXYFvyH79l7+Yc0s96NnJNKgXE+8nT+G+a5Np9FZCgk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=K3jGuOaXnCHvnqBqCftgm2dCLvjI7dEvxQ1XwsekQpqU0b1sbR4p9kem5SpR4OpYsGlvfzbyuMhDHV9iVxZRjlgWM+b4A0c4ankpx8Dy1wzmHIaNOP81/2Fo3XlLHQItiVGKY4lJsY/QvB2vclOo7b+j6xUxG9O3G/tFp21t5zQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4TSM7j5MRszsWsW; Sun, 4 Feb 2024 15:48:17 +0800 (CST) Received: from canpemm500009.china.huawei.com (unknown [7.192.105.203]) by mail.maildlp.com (Postfix) with ESMTPS id DA800140384; Sun, 4 Feb 2024 15:49:34 +0800 (CST) Received: from localhost.localdomain (10.50.165.33) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 4 Feb 2024 15:49:34 +0800 From: Yicong Yang To: , , , , , CC: , , , Subject: [PATCH 0/7] Several updates for HiSilicon PCIe PMU driver Date: Sun, 4 Feb 2024 15:45:20 +0800 Message-ID: <20240204074527.47110-1-yangyicong@huawei.com> X-Mailer: git-send-email 2.31.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500009.china.huawei.com (7.192.105.203) From: Yicong Yang This series mainly fix and optimize the several usage of the driver: - Add more events to complement the TLP bandwidth counting - Fix the wrong counting on using the event group - Properly check the target filter to avoid invalid filter value - Optimize the handling of related events which are not in an event group - Update the docs Junhao He (4): drivers/perf: hisi_pcie: Check the target filter properly drivers/perf: hisi_pcie: Relax the check on related events drivers/perf: hisi_pcie: Merge find_related_event() and get_event_idx() docs: perf: Update usage for target filter of hisi-pcie-pmu Yicong Yang (3): drivers/perf: hisi_pcie: Introduce hisi_pcie_pmu_get_filter() drivers/perf: hisi_pcie: Fix incorrect counting under metric mode drivers/perf: hisi_pcie: Add more events for counting TLP bandwidth .../admin-guide/perf/hisi-pcie-pmu.rst | 31 ++++-- drivers/perf/hisilicon/hisi_pcie_pmu.c | 99 ++++++++++--------- 2 files changed, 74 insertions(+), 56 deletions(-) -- 2.24.0