Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1879887rwl; Thu, 30 Mar 2023 02:50:46 -0700 (PDT) X-Google-Smtp-Source: AKy350YghEalTx4sIzWEq0FxmA6UV0KqxvJtJEK10I1rC4oJhrPEuRP+07wypuY6PnDms2kBSu0p X-Received: by 2002:a05:6402:2803:b0:502:e50:3358 with SMTP id h3-20020a056402280300b005020e503358mr1987159ede.3.1680169846248; Thu, 30 Mar 2023 02:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680169846; cv=none; d=google.com; s=arc-20160816; b=QgxotIHYqY4bp+LAsHhR0K3BMCLkTavRRrQkN7MJYxbsdJpfY7lGQdJUlHZm658UlR vsLjDscXIEn0QzC77YhnguRCPhHKgFVVuIST+eXrj1C2sNA0vgOD3XDHOYAAKQYIs03g bNS4WNE5EjnBcdzaDoljzo8d3na7u7vjudbZUyZ+64biVI7L/i6dwqHVDwvU2Njr+hgy qiK5iGQ8tsjB9rYJQiTnU5gc38DNeG/s/uwlidJkQgfI2CiApURa063H8TmW+jHpyFVD 6x22NBB4g/QL9anuEuWr3UtQNIb4IJwXPg/+l+eBhIBc0NmMBXObmL3PplFG1tSovwcG bvoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=B1nCU4BshEeuSRpuxqBvc3wXDNlOfWhpl9z959z1NgE=; b=AyMuvicAyapgJaZ/TFo5s02p6G4pwRDpIWixL13JiQpnO4jSq2P3V2px+Icm+i1tQH VYq9TepoiLw6vCuAtfchpKgWf7Wayw/uOpjtLNPWRGCpE8RWOYiBb6vu+qt0EpurkaWo ZORIsvMmyvbmmebL+VurjZznJVBge92hhC8dhUZ4iz5MOj6iIZlBgqtx/Fv2yFzMv2n1 5flXmik/ZdTuZqmUWzb/mQmULxk5Iv3eVSaQ+7why/Lt4O5q96YyHW31eXzJ8oTJfsVj iAjGe+q1lifzdkJDbcDSOjZru8ndvW4eKq3YipHHaVzzCINqukqNUc25v0LU25LVBYTV pPNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a170906914e00b0093331b35aaasi27176866ejw.813.2023.03.30.02.50.20; Thu, 30 Mar 2023 02:50:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230460AbjC3Jsw (ORCPT + 99 others); Thu, 30 Mar 2023 05:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230420AbjC3JsT (ORCPT ); Thu, 30 Mar 2023 05:48:19 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92EA693E0; Thu, 30 Mar 2023 02:47:24 -0700 (PDT) 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-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 */ -- 1.8.3.1