Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4284230rwl; Mon, 3 Apr 2023 02:42:16 -0700 (PDT) X-Google-Smtp-Source: AKy350a5n9vr2s4WQAOdgg0PmRX2VF6kKnsjJ1GMKGB2q8dYh9lHvGzyeKkV06zoVwjlCk8mZsYw X-Received: by 2002:a17:907:a4c7:b0:947:80a4:5cce with SMTP id vq7-20020a170907a4c700b0094780a45ccemr12743338ejc.65.1680514935982; Mon, 03 Apr 2023 02:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680514935; cv=none; d=google.com; s=arc-20160816; b=BbVlr2ndWNqRr0GISE6FDxuLX672pslHH1iK1eNB7LlbmrFyvyQv6JxkY89c18zyRh ot+qXilNcZpyI579slrC+evhNoeVvevM/8h1Ixq2GeSOdW7VwNkwyF1LRKI9z6nt6uhC zswieXp5u7IezZHKO8ZKqifQYovHWiGlXZ2ZZP6I2AjV0+8gjI046V1mcnzyMk3unavX FZr/BoxZlIgrBW08qYt/DBul+FcAObmb8hPt+4krx+6v2BB8JzMv8K8OFJcyX65zQtKT bAhyeyOyNAR1JZsKIZUkSlz4w1hNyYg93J9xLCJ22yCXCPB+W+18791cdW+jkVjPVKDL yU6g== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=tKDBuvqXjOYICmwHLtbbUBmR2g9wnO0YIfEVo6/vA5A=; b=SbOHVoJg4Zf4/hSM3dBQehzapG64x7Oe82HY+hsRJ2ne3piKF4J8gcUI7RH8RY5nnh 7ZuvkVSrhZroPx9PJT0uLD5vOuxs83es71oRmeSNTZ7EbyU4yoxLlPsfOQ5pXhSVI2gO KAM3k1jjEJcYdcouGmf0BNRSfHGhm101T+dzstudE6KBlYJVZZ0Jdf8RDrAA2LmY2Rzr wfHYaK003r8FkmntRTGrwOZlb43lrsbw/HzAA8G2M/6DUJ3GQkneaw20KtsomEKGDEzB MdKbOkk3XngD7HlA6SG36uvZd46ZOZrrP8/dv0jpmEB6XwrMDtlCcuVXFK7lxiii6Way 8vFA== 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=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020aa7d6c3000000b0048e82d753a3si4250515edr.227.2023.04.03.02.41.51; Mon, 03 Apr 2023 02:42:15 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232135AbjDCJlF (ORCPT + 99 others); Mon, 3 Apr 2023 05:41:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232032AbjDCJkn (ORCPT ); Mon, 3 Apr 2023 05:40:43 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4D4A111E8A; Mon, 3 Apr 2023 02:40:17 -0700 (PDT) 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 456AA1063; Mon, 3 Apr 2023 02:41:01 -0700 (PDT) Received: from [10.57.56.209] (unknown [10.57.56.209]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2E7A83F840; Mon, 3 Apr 2023 02:40:15 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2023 10:40:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH] perf/arm-cmn: fix regitster offset of CMN_MXP__CONNECT_INFO_P2-5 Content-Language: en-GB To: Mark Rutland 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 References: <1680169620-26012-1-git-send-email-renyu.zj@linux.alibaba.com> <3b95e362-300a-12af-0d55-76672c60be9f@arm.com> From: Robin Murphy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 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.