From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8AA85C83F25 for ; Thu, 29 Aug 2024 13:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:CC:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xHn9Jv4QFJaytf0VTNW5XugUbXFpjygVRVuy0sWNA+Q=; b=SPdhjT/ekQP5EbGGlcOA0i8WNm 2ckaJVE/0gaDxK3NMGoVgRCJ+1rAoqjnUWhQYY7kdpGUUZufGllb5FhpxSSTyMV0jqDVHWKgOySzl AZWPF4JiQj2FTAMkPWhcqAWI/ydHA5siFvgahHYJkrj164m1gqTmFNIN2+RvxB81hcF1htk7UKUw+ v9KPF+iN6CwFO3yOyPedqBXyDX2ctf2BpKhQs0mxBEe2eRedS8FPVGSXZVMwgYBLhBpjlFpE1aSZm JLKLLzu11NzcSPAwSp+N9Tje4YAdSnSh03d0wkRriPAahyz/oKyA5dgmH7EMP1PLfC0wWzXn2yK9F KG6cGJjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjfRZ-00000002F0l-47zj; Thu, 29 Aug 2024 13:44:09 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjfQf-00000002EnR-33oi for linux-arm-kernel@bombadil.infradead.org; Thu, 29 Aug 2024 13:43:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-ID:Subject:CC:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=xHn9Jv4QFJaytf0VTNW5XugUbXFpjygVRVuy0sWNA+Q=; b=GbWqeVHl84W2PcOfjav47gTIFz Dw0cgEMe8W1OGwlQ3NQZpZMZHluLCuWzvxCgHvPfpaFoCy388LATeDO1IiJzzLv6sxX99aj2uJBrB CLIvQLKeeKlqQwrBFYVnWPciUUSPUODl+rG7sBDqHedl4OlDKSIB5fkRaOUOREEH8tmsXteLky5Mt adaK9AQL6WwmN8NBf3iX4l7seYaS4uWRKa1sTPglQY36NY+g5XjWyRAbBdK+IBnFec3DEKiXtxwuO HffvzDHrEA72TZ/GpZeoRECCBW+jarDQQy78kxKzFqHqGJeYtGFUKGVzbfkokfu/oOktH28sznElm RkTGHmdQ==; Received: from frasgout.his.huawei.com ([185.176.79.56]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjfQa-0000000BRdf-25fg for linux-arm-kernel@lists.infradead.org; Thu, 29 Aug 2024 13:43:10 +0000 Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Wvj7R60xKz6K98l; Thu, 29 Aug 2024 21:39:31 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 194C71400E3; Thu, 29 Aug 2024 21:42:53 +0800 (CST) Received: from localhost (10.203.177.66) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 29 Aug 2024 14:42:52 +0100 Date: Thu, 29 Aug 2024 14:42:52 +0100 From: Jonathan Cameron To: Yicong Yang CC: , , , , , , Subject: Re: [PATCH 2/3] drivers/perf: hisi_pcie: Fix TLP headers bandwidth counting Message-ID: <20240829144252.00000103@Huawei.com> In-Reply-To: <20240829090332.28756-3-yangyicong@huawei.com> References: <20240829090332.28756-1-yangyicong@huawei.com> <20240829090332.28756-3-yangyicong@huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.203.177.66] X-ClientProxiedBy: lhrpeml100002.china.huawei.com (7.191.160.241) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240829_144308_704235_035E88EF X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 29 Aug 2024 17:03:31 +0800 Yicong Yang wrote: > From: Yicong Yang > > We make the initial value of event ctrl register as HISI_PCIE_INIT_SET > and modify according to the user options. This will make TLP headers > bandwidth only counting never take effect since HISI_PCIE_INIT_SET > configures to count the TLP payloads bandwidth. Fix this by making > the initial value of event ctrl register as 0. > > Fixes: 17d573984d4d ("drivers/perf: hisi: Add TLP filter support") > Signed-off-by: Yicong Yang Acked-by: Jonathan Cameron