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 23E4BC761A6 for ; Mon, 3 Apr 2023 07:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: 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=7HeEBLq4WGfIzxZHyP+ucuFdVz9kRrXvgY12EfgSbXw=; b=4zgCSQSsT/ZvLk 5qhyAUE4/SquhTJr4GsqzZG9rfFngNbb00uBFQpBrWRRy6SnFT6FbeOwCP8gKEA3JuVYW4/S6rTU5 vgChiWBCBgIsFPti6TJJggQ/+9VSMUDSF2+p65+DnuYTJAfCbz2bfa4wwSNEDB/nKf22xMbxv2GGc iE3v5jsxur029HlIYsja61wNhnMOPtc7hi0U99/s9ojkanCLxko98COgH+PNwKIxuxpQfRaNApudU SFkDO8Qy7NHOwW6nMpTa/BwKFA5SrLGun7VBQnGc3JFD8A0Bsu/DibikD5TNsPPLq8HkCl6YDMV2L 7tfwF5LPnOwHUJFla8yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjEsH-00EQRS-2M; Mon, 03 Apr 2023 07:45:09 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjEsE-00EQQA-1s for linux-arm-kernel@lists.infradead.org; Mon, 03 Apr 2023 07:45:08 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9F195FEC; Mon, 3 Apr 2023 00:45:49 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.57.89]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5F55C3F6C4; Mon, 3 Apr 2023 00:45:03 -0700 (PDT) Date: Mon, 3 Apr 2023 08:45:00 +0100 From: Mark Rutland To: Robin Murphy Cc: Jing Zhang , Ilkka Koskinen , Will Deacon , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Shuai Xue , Zhuo Song , Ruidong Tian Subject: Re: [PATCH] perf/arm-cmn: fix regitster offset of CMN_MXP__CONNECT_INFO_P2-5 Message-ID: References: <1680169620-26012-1-git-send-email-renyu.zj@linux.alibaba.com> <3b95e362-300a-12af-0d55-76672c60be9f@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3b95e362-300a-12af-0d55-76672c60be9f@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230403_004506_682845_6061080B X-CRM114-Status: GOOD ( 22.69 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 30, 2023 at 11:34:22AM +0100, Robin Murphy wrote: > On 2023-03-30 10:47, Jing Zhang wrote: > > In the CMN700 specification, it is described that the address offset > > of the mxp_device_connect_info_p0-5 register is 16'h8 + #{8*index}. > > Therefore, the address offset of the CMN_MXP__CONNECT_INFO_P2-5 macro > > defined in the code is wrong, which causes the cmn700 topology map > > incorrect printed in debugfs. > > > > So correct the address offset value to make the cmn700 topology map > > correct in debugfs. > > > > Fixes: 60d1504070c2 ("perf/arm-cmn: Support new IP features") > > Ugh, these offsets are correct for CI-700, so strictly that commit is fine. > What I failed to notice is that CMN-700 shuffled the mesh_port_connect_info > registers out of the way, so it's commit 23760a014417 which should have > added more handling for this difference. I'm assuming that means that this patch breaks !CMN-700 ? i.e. a more substantial fix is necessary, and it's not just a matter of changing the Fixes tag. Thanks, Mark. > > Thanks, > Robin. > > > Signed-off-by: Jing Zhang > > Signed-off-by: Ruidong Tian > > --- > > drivers/perf/arm-cmn.c | 8 ++++---- > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/perf/arm-cmn.c b/drivers/perf/arm-cmn.c > > index 1deb61b..e9f844b 100644 > > --- a/drivers/perf/arm-cmn.c > > +++ b/drivers/perf/arm-cmn.c > > @@ -59,10 +59,10 @@ > > /* XPs also have some local topology info which has uses too */ > > #define CMN_MXP__CONNECT_INFO_P0 0x0008 > > #define CMN_MXP__CONNECT_INFO_P1 0x0010 > > -#define CMN_MXP__CONNECT_INFO_P2 0x0028 > > -#define CMN_MXP__CONNECT_INFO_P3 0x0030 > > -#define CMN_MXP__CONNECT_INFO_P4 0x0038 > > -#define CMN_MXP__CONNECT_INFO_P5 0x0040 > > +#define CMN_MXP__CONNECT_INFO_P2 0x0018 > > +#define CMN_MXP__CONNECT_INFO_P3 0x0020 > > +#define CMN_MXP__CONNECT_INFO_P4 0x0028 > > +#define CMN_MXP__CONNECT_INFO_P5 0x0030 > > #define CMN__CONNECT_INFO_DEVICE_TYPE GENMASK_ULL(4, 0) > > /* PMU registers occupy the 3rd 4KB page of each node's region */ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel