From patchwork Thu Mar 30 09:47:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jing Zhang X-Patchwork-Id: 13193741 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 E8FC0C761A6 for ; Thu, 30 Mar 2023 09:48:27 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ArvuafIKPiH5kE+4rVlnqMFKIIVXHtpwJvAulwUc7x4=; b=AVjDa4/3TPUwAn LeRz70hXfNsz/tf5CiyUS4NadSvd8U8DejCXjV1bfM6TyQ7E1NNFastAiYycONL3u8TBXaei57GF2 tYcVwsm454SsSyizSVJjZ9bvpP5vBrq5s3VZxm2LLR6Lod3h2Ky8Opxi1xJnZrPNwlY3vWxx1+JF4 ijftMwdk/JYUL58wmLHs9EAnVljCYPjgyc11jDqdLIHdxzm7HdJELrAyt3YVjT4hKQKVFljmvxkoV lMTM3H5M5jP6uEM5GyCYTp2jn3mEMxcPgD5U6N1HnYo2ir9Z4pKh5OAdCzOOnJ0hSJOs4qTZ+hUcr 0gg3p4+RqgH8EYb9eviw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phosT-003Kz5-0G; Thu, 30 Mar 2023 09:47:29 +0000 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phosO-003Kv4-1i for linux-arm-kernel@lists.infradead.org; Thu, 30 Mar 2023 09:47:27 +0000 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0Vf-9mI6_1680169623; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0Vf-9mI6_1680169623) by smtp.aliyun-inc.com; Thu, 30 Mar 2023 17:47:11 +0800 From: Jing Zhang To: Ilkka Koskinen , Robin Murphy , Will Deacon , Mark Rutland Cc: 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 , Jing Zhang , Ruidong Tian Subject: [PATCH] perf/arm-cmn: fix regitster offset of CMN_MXP__CONNECT_INFO_P2-5 Date: Thu, 30 Mar 2023 17:47:00 +0800 Message-Id: <1680169620-26012-1-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230330_024724_740478_D6A8DEA2 X-CRM114-Status: GOOD ( 10.07 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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") 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 */