Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4286682rwl; Mon, 3 Apr 2023 02:45:08 -0700 (PDT) X-Google-Smtp-Source: AKy350ZgwHwJNWjKzbU13gIXijeW85YNPW29wj1XDA7ZrOD7AOZeFYEuqmh91lFrPTXEMw4+vplv X-Received: by 2002:a17:903:5c6:b0:19f:3854:3281 with SMTP id kf6-20020a17090305c600b0019f38543281mr29266373plb.8.1680515107897; Mon, 03 Apr 2023 02:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680515107; cv=none; d=google.com; s=arc-20160816; b=prAWdVB5T3XKEBldqhNwXx7pftv5lKITf/s9XW3spnbR9LOoj7u4To9OzsOvM4nim6 JGnvn+9XaXekPmob+0nxvfkP6zj9vIpYzcUawlSVN41KTGfAaXJD7iDsz+WFH2FYcmwn 6jrLtGqPv8SuEl0hpqo45HvDOCg99Z3GUJQhEkJxXyvCDhRDI1Ps4g9Tahnkj/lOOjZn TOI/R7ENiNAXlIedgJJmR+i5W3XJx4s8XIcwOGX88HPp6fEFBs4Uvt/jlh1j5mpPt7tB sOVEhMCjdjCZSNbekeNWpq1ILvnFUvU7WPynnu07c1cZTXow2WHTXlexuNKrmAuKgbcQ s6Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=QmtNbNb8g1gucxdL39tvq9uMp0Bq5WvVhvx80Xw616o=; b=LB3qqDRrlyLIiVFFpYwzooLrm4t4S1OUxQqDYubfYGExa3P2OMB/0h+hSkx26iCFvY 4/K4P9swd3zFAETOW+QkyJ16H9axViTJnAn2Mgk+wOMKvfjkfLzMRAANEM5ZkGaVmcjg 76svH09wkhEFJsEYVxRHAcKDN07obaOwEoRxlRcg/5zLcsT3rgIE4LF/S54DzQf/DKnX 5lad1sC7vi21EJPOUWbjuIrG9xqz5R8QmUe2RjnS2HRACLVx6hFzvDDEnTVXI9KpgEpk TkDAMYpE6XX5UqD35fatAHuwRIfkiW4hFisGP4cH/5Ph335VgGSXYPFzLCMudeLZdz/o sOdQ== 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 q74-20020a632a4d000000b005131739af72si1407745pgq.755.2023.04.03.02.44.56; Mon, 03 Apr 2023 02:45:07 -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 S232295AbjDCJo1 (ORCPT + 99 others); Mon, 3 Apr 2023 05:44:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232206AbjDCJoM (ORCPT ); Mon, 3 Apr 2023 05:44:12 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77CCB11E8D; Mon, 3 Apr 2023 02:43:24 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VfGcEDG_1680514966; Received: from 30.221.149.0(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VfGcEDG_1680514966) by smtp.aliyun-inc.com; Mon, 03 Apr 2023 17:42:48 +0800 Message-ID: <112cd2a0-dad1-7039-9904-858c3c00e0ac@linux.alibaba.com> Date: Mon, 3 Apr 2023 17:42:46 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] perf/arm-cmn: fix regitster offset of CMN_MXP__CONNECT_INFO_P2-5 To: Robin Murphy , Mark Rutland Cc: 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 References: <1680169620-26012-1-git-send-email-renyu.zj@linux.alibaba.com> <3b95e362-300a-12af-0d55-76672c60be9f@arm.com> From: Jing Zhang In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.3 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, NICE_REPLY_A,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 在 2023/4/3 下午5:40, Robin Murphy 写道: > On 2023-04-03 08:45, Mark Rutland wrote: >> 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. > > Yes, indeed. I have half an idea, and the plan for this week was to work on other CMN stuff anyway, so I'll see what I can cook up. > > Cheers, > Robin. Yes, I did ignore the CI700 situation, I don't know much about !CMN700. Robin, can you please help to fix this problem? Thank you so much. Thanks, Jing