Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5769372rwb; Tue, 9 Aug 2022 03:57:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR7I1Goz/7k5dNuRGK7zKIqU2iEHqrwlcDpKO+62ZIjqXHbF1nSz4fjvDW5SmYtbTnaQ/7/N X-Received: by 2002:a17:907:8a07:b0:731:48ba:792e with SMTP id sc7-20020a1709078a0700b0073148ba792emr8027180ejc.397.1660042644235; Tue, 09 Aug 2022 03:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660042644; cv=none; d=google.com; s=arc-20160816; b=ZRIcCZQt45CpUb0lTDupG8D2w4gM9T7uhm5JnypLi4N+IapquUcn3FCZu8TtsWiVew Bhh+QiueOUwOQss/SDGrSGAg1sDEUFTi13yxiYkNi0ltra8uWBv3OV+CrFQ/569iAoB7 dn/OuUhYs53xDH4+sxl7bqrfoPalNepQ87ImLl71hB4qyD4Pb9ysXr2ecmL2CZxoZqKZ EFzRvGTlWwfhGfaykDDKWdNpz0mio8RwsOV9UPn7sgM/Ep4tzDeW8VNQKWFFXNAlDuc3 CA1X0tE5SWPUd3GSpPROlLdY8211q3+xxhcBTP3vqiyo17bniekMY0OefXQQbIAoCYGn x5QQ== 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=DyQFKbLWadWAAESxcsplj7qq+C1+OZrFFyqNVGCFs/Y=; b=TCKNrYhRUYi72E3WtyfWk5H7mTFqgy6W0+sIw+vf0E0jBpcXkyoapDzk4tN2CyjiAA qEu7kqNoMDCOhv1k2mqa7sQOmeEULAectx5s3y7hdscNNw1UdefcJMYI43gUbPUx8XYB ZNPh24L7MJ1eNw1Ji0uf7Yzvwwv0Cvfe7pZalkeY/BSkwXNrYXa0V0bQHg5GwdXoVYp8 d41l48cPTVFdJ/dKaLSSrtch4OIJV8FfodF5yt0yaqzfqfK4GdVLdljGk5FNW5d//uC/ eSkmv3y71bVHkndsh8K0y9TquOmz4J96WeBedqAXxpGUCzakI3x2P42Ofx2Y6DyVKHbM U24Q== 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 hp15-20020a1709073e0f00b007314b427e96si1926992ejc.633.2022.08.09.03.56.58; Tue, 09 Aug 2022 03:57:24 -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 S241040AbiHIKFv (ORCPT + 99 others); Tue, 9 Aug 2022 06:05:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241412AbiHIKFq (ORCPT ); Tue, 9 Aug 2022 06:05:46 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8266B1EACC for ; Tue, 9 Aug 2022 03:05:45 -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 0D63523A; Tue, 9 Aug 2022 03:05:46 -0700 (PDT) Received: from [10.57.74.141] (unknown [10.57.74.141]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 164653F67D; Tue, 9 Aug 2022 03:05:43 -0700 (PDT) Message-ID: Date: Tue, 9 Aug 2022 11:05:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.12.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=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 2022-08-08 20:54, 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. Ah, I don't think it ever even crossed my mind to look for changes here, but of course if the node regions have grown from 16KB to 64KB then it's only natural that offsets grow to match. I expect the CMN-700 config that we tested on internally would have been small enough for this not to make a difference. Thanks for the catch! Reviewed-by: Robin Murphy > 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