Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5631529rwb; Wed, 21 Sep 2022 10:12:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5MPf/SCVtZ88uKA3yPpQbPgXzBucvKzewvx+80MeB5g45bu3Bn2lKC+4X/e7mCVZU9TKOj X-Received: by 2002:a05:6402:5243:b0:451:6d52:5928 with SMTP id t3-20020a056402524300b004516d525928mr25951109edd.328.1663780377435; Wed, 21 Sep 2022 10:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663780377; cv=none; d=google.com; s=arc-20160816; b=X4DqS+UbObqK1bufd6Ar+YdCxrVoWd4HScOPfoIRYdt8ZIh8FxzVoyOXQ+eDWfShG4 fMoc4qtntmrnNEkQ9wMHj33cyBAe/QIiplUi2kWdpRFoyN3ZaBQEwwspSy8TzqOtXpXX Uc0hvf33aVVP1hN6kL5eiQHyr8Ya3kMUpBYXYZovo0JzoJcErit4iAOPwVJz7wtL/X6z qVHAoqMTmIysPAPw35hAYV8MKHkPg20g8I3ersdWpMwn8xY2oHWoxvMY48I2UW0Jh72+ skk8eG5Vachp9+DgDFdPMJksz/RrkG1Xq/j+ITScRedlCsP6l90t3Ez/RHIlmXJR6puc rfKQ== 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=Mv9/wxsqtwvnv5kRhvQB8bsiA70ar+gttQtQYSrAzOQ=; b=W7/kKIkXOfvnHC7rZV4NIH72CbKKQfPMe2+UuTDB0E0o4i7pTWEwyxv4DlyS92KH2w CgmfH/0bFlg43J3BLyxYw9rHCzA1mBnf3xUloT5/q9BKff9G0mP8UIt37VswtSszmeOr di5PrjFHvCkUQY8xsu1Nf7/MvBqoVq2t7Ovlje4LEO8NdRyuuT75OM7zY6RETRsb2jM/ 4m1855HGqZtJQr2zo/qgZvWlx2GHz10B5PkmCKC+gaZGbOLfYS1/SoSl+SxOKdKRToWp ubXGfjuMjVLe7YJxTwN95hyWOSq0Yw3luKGtnPbEgD9lLiClBxWE+n29A/OH3PWcgNuT XdMg== 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 j8-20020aa7c408000000b0044ec439e9b0si2707243edq.346.2022.09.21.10.12.31; Wed, 21 Sep 2022 10:12:57 -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 S231404AbiIUQfT (ORCPT + 99 others); Wed, 21 Sep 2022 12:35:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231573AbiIUQex (ORCPT ); Wed, 21 Sep 2022 12:34:53 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 368BCA8955 for ; Wed, 21 Sep 2022 09:17:10 -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 8480C1FC4; Wed, 21 Sep 2022 09:17:16 -0700 (PDT) Received: from [10.1.196.40] (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 373FB3F5A1; Wed, 21 Sep 2022 09:17:09 -0700 (PDT) Message-ID: Date: Wed, 21 Sep 2022 17:17:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 1/1] perf/arm-cmn: Add more bits to child node address offset field Content-Language: en-GB To: Ilkka Koskinen , Will Deacon , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, patches@amperecomputing.com References: <20220808195455.79277-1-ilkka@os.amperecomputing.com> From: Robin Murphy In-Reply-To: <20220808195455.79277-1-ilkka@os.amperecomputing.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 08/08/2022 8:54 pm, Ilkka Koskinen wrote: > CMN-600 uses bits [27:0] for child node address offset while bits [30:28] > are required to be zero. > > For CMN-650, the child node address offset field has been increased > to include bits [29:0] while leaving only bit 30 set to zero. > > Let's include the missing two bits and assume older implementations > comply with the spec and set bits [29:28] to 0. Just to add that other users have run into this as well, so getting it applied as a fix would be just lovely. Technically I think it's: Fixes: 60d1504070c2 ("perf/arm-cmn: Support new IP features") Cheers, Robin. > Signed-off-by: Ilkka Koskinen > --- > > I have tested this patch on CMN-600 and CMN-650. > > drivers/perf/arm-cmn.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/perf/arm-cmn.c b/drivers/perf/arm-cmn.c > index 80d8309652a4..b80a9b74662b 100644 > --- a/drivers/perf/arm-cmn.c > +++ b/drivers/perf/arm-cmn.c > @@ -36,7 +36,7 @@ > #define CMN_CI_CHILD_COUNT GENMASK_ULL(15, 0) > #define CMN_CI_CHILD_PTR_OFFSET GENMASK_ULL(31, 16) > > -#define CMN_CHILD_NODE_ADDR GENMASK(27, 0) > +#define CMN_CHILD_NODE_ADDR GENMASK(29, 0) > #define CMN_CHILD_NODE_EXTERNAL BIT(31) > > #define CMN_MAX_DIMENSION 12