Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2253553rdb; Wed, 21 Feb 2024 01:40:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXK9JrM3MwUHf/rKxhyRfxFfZQAGmEjFsKHuDWOsXNAAAs1dbdG0W0cAgdXmH8fVeEJ1clhVMdk58fcg9k9TLUR4aI/vpLt5225+qLCVQ== X-Google-Smtp-Source: AGHT+IF8y2P0pipiwdcK6EexRcRBYSwMDz/ERkMMH0E7PBWkCFB/cjpyo++e9tGX4rvJKxc3lhNH X-Received: by 2002:ad4:5d63:0:b0:68f:82b8:70a3 with SMTP id fn3-20020ad45d63000000b0068f82b870a3mr8662723qvb.27.1708508433232; Wed, 21 Feb 2024 01:40:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708508433; cv=pass; d=google.com; s=arc-20160816; b=dgE4uSOhQUTTv6R+vaZ5JN6NKBk1xeHwt974MFITgNNQFOAnVlIugBANVferO3l0Tx e3PjZ5zqCAbXWXCigr03fHfHygjH7JRv+wqx7dl9yucD9slUGcfEk5MTcgmKJ186WOqA mfgvJp3MLwyEghiYZbmrVoaO9M3CvKtpiadPD9AvvnxHFstvqSaM3ATSEPVCGO77B7iE 7xgjWO7+n0oEry36eFYmmEEj4c9gGe17s2H3l558dgo4wXoGdQNmf50OLxEvGSNwQp18 LNHf2giOGyBPJSH1ZM4+B0DBJcdVScMP4kDHTqWPeSInWbgJrpxXb3H7wo4U+IDiFqlr IK0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:to:subject:cc; bh=JDZqWbq0n4NP6EyXufNCNRmhQC29D7yFcBLixBHTLm0=; fh=FgCgFWNoQC/y/LT44Ocdn53rmGu4kiYH/nbdTdER/oc=; b=Ml2F2eUK1Gwo/RUHbFTgRPT37ro/6v5jPVfpOvYCkEASo0VsQS9+5VczifS1hccry1 mlG4PCvDwZj1Fjd4AZPsStRugAunvKPmTzZFMH9jsZxCigL5BxUl/wWZItl35MOcpRg6 gIFfnvlyQt6KSIYuqd8Ld/coeY6JUs71R0TM4KfcTFMdAMKqPRy7UE28Q7C35pR6WTqb eUF3qXlky8TTGxarJ/2In25DFfEjGXY3RHWnB6sVCxkDmMKsDJ4pq8LxXZw4fnUBSTwm pyt0OlMJvRnOiVx8hOf20p5SIuxsMf0Pjt2yZbR2Sygm0OQ6YZf6urf8tFy9za+g/v4Y 0Qsg==; 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-74422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dv3-20020ad44ee3000000b0068efb5d3ad6si10638938qvb.485.2024.02.21.01.40.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:40:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-74422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74422-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A2BAB1C22C54 for ; Wed, 21 Feb 2024 09:40:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13ACF3D548; Wed, 21 Feb 2024 09:40:25 +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 D97913D3B1 for ; Wed, 21 Feb 2024 09:40:22 +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=1708508424; cv=none; b=D38xQyKIFtV1eQP7+CuQ0TxdlDci7WOokfqlIqUgu9TecdoVxzTkO3sNn9hQ+3iBi5ndRiSFJfu+TMZKYk3cOy0P0A0exMwOdPqz6vRPLOaxEJ/Gj9usR1igtKIn5H+tN2yImyGxv6WGG9ZUINVc6KHx850/HV4Z15X5TWbCDHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708508424; c=relaxed/simple; bh=Oy5E/HNDZF5wCVxixr/Zuuk7jVIjUehgBfPYwJ5cO2c=; h=CC:Subject:To:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=h/NiWkqRuMMxIrSWLQFF3d+iF8T6Hm7C2p1i78AgfO/M/WDkLkiq2vVuwHLkWDEypsaYG/IhJedwuZt2SoBH+vNMPmd5uLjpjTf+0YH2dW7vmh3GzsyDGNRJI0ET10uSwUubShr3AXnLFKGfZvQbx/cOfarB505Ial2N0vh/pww= 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 4Tfrmh3M8TzvVtn; Wed, 21 Feb 2024 17:38:12 +0800 (CST) Received: from canpemm500009.china.huawei.com (unknown [7.192.105.203]) by mail.maildlp.com (Postfix) with ESMTPS id CFE32140114; Wed, 21 Feb 2024 17:40:14 +0800 (CST) Received: from [10.67.121.177] (10.67.121.177) 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; Wed, 21 Feb 2024 17:40:14 +0800 CC: , , , , , , , , Subject: Re: [PATCH 3/7] drivers/perf: hisi_pcie: Add more events for counting TLP bandwidth To: Jonathan Cameron References: <20240204074527.47110-1-yangyicong@huawei.com> <20240204074527.47110-4-yangyicong@huawei.com> <20240208122029.000005e1@Huawei.com> From: Yicong Yang Message-ID: <9c033974-aa73-2b1d-c997-e3c38e38a859@huawei.com> Date: Wed, 21 Feb 2024 17:40:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240208122029.000005e1@Huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500009.china.huawei.com (7.192.105.203) On 2024/2/8 20:20, Jonathan Cameron wrote: > On Sun, 4 Feb 2024 15:45:23 +0800 > Yicong Yang wrote: > >> From: Yicong Yang >> >> A typical PCIe transaction is consisted of various TLP packets in both >> direction. For counting bandwidth only memory read events are exported >> currently. Add memory write and completion counting events of both >> direction to complementation. > > complementation? > sorry for the typo. will fix. >> >> Signed-off-by: Yicong Yang > > Reviewed-by: Jonathan Cameron Thanks. > >> --- >> drivers/perf/hisilicon/hisi_pcie_pmu.c | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/drivers/perf/hisilicon/hisi_pcie_pmu.c b/drivers/perf/hisilicon/hisi_pcie_pmu.c >> index 9623bed93876..83be3390686c 100644 >> --- a/drivers/perf/hisilicon/hisi_pcie_pmu.c >> +++ b/drivers/perf/hisilicon/hisi_pcie_pmu.c >> @@ -726,10 +726,18 @@ static struct attribute *hisi_pcie_pmu_events_attr[] = { >> HISI_PCIE_PMU_EVENT_ATTR(rx_mrd_cnt, 0x10210), >> HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_latency, 0x0011), >> HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_cnt, 0x10011), >> + HISI_PCIE_PMU_EVENT_ATTR(rx_mwr_flux, 0x0104), >> + HISI_PCIE_PMU_EVENT_ATTR(rx_mwr_time, 0x10104), >> HISI_PCIE_PMU_EVENT_ATTR(rx_mrd_flux, 0x0804), >> HISI_PCIE_PMU_EVENT_ATTR(rx_mrd_time, 0x10804), >> + HISI_PCIE_PMU_EVENT_ATTR(rx_cpl_flux, 0x2004), >> + HISI_PCIE_PMU_EVENT_ATTR(rx_cpl_time, 0x12004), >> + HISI_PCIE_PMU_EVENT_ATTR(tx_mwr_flux, 0x0105), >> + HISI_PCIE_PMU_EVENT_ATTR(tx_mwr_time, 0x10105), >> HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_flux, 0x0405), >> HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_time, 0x10405), >> + HISI_PCIE_PMU_EVENT_ATTR(tx_cpl_flux, 0x1005), >> + HISI_PCIE_PMU_EVENT_ATTR(tx_cpl_time, 0x11005), >> NULL >> }; >> > > . >