Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp634875rwe; Fri, 14 Apr 2023 07:50:32 -0700 (PDT) X-Google-Smtp-Source: AKy350a/Cm5pQXcASS3VleggvsTqSbiazoDrxeNaJc+LlFgufhFDcbIbmEzCewMbUbx64aZq6Irj X-Received: by 2002:a17:90b:8ce:b0:23d:e2b:cf1f with SMTP id ds14-20020a17090b08ce00b0023d0e2bcf1fmr6140389pjb.16.1681483832622; Fri, 14 Apr 2023 07:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681483832; cv=none; d=google.com; s=arc-20160816; b=i3Cox15w42b/4a3/YjKM1Z+Hj9kWnI8E9XBJ2xV5H8tcVuZWwr2ZfS1wxfh1QKHEDD sh/SrURPg72VWTFvGQGBOUNt7jRoyZltP+x7Wx6U+mxM0HbNrBkUA7IucXcEZ5kutcVr l6FZ/BJhNV4pl+JIz3NShWpwLTebUbZeT8Cg6ENkluLvu683LMq4txQh8AmujaQKYy4d EqJnV1r0zxadMpNFebrQi3L/SgP107XxVUm+dcl3H/I5PXsggN1zVA/kynvcdm/p972N 7HyKj/trvYVruMpYBVpAgreAHsVWCXziuH3KBBf8o4YGQR0pp++3kX0lUd7q6LxoJhMl xJVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GCm2LzgRzWLLHYgpNVlRqc81+rKNxW2SWkJLs+eUQ44=; b=hYwsn9LH5xOZYf50vR5Bwh+hiG70bva0v0F6jj8416d/VbZ2Yow0VZlKvmw1IG2cQp gJQsIOuEglK6V26AnU3HMOBnVtN9KnabG+msN0S2GDSz2N2idOSVHz+dKLJndxr/owVj wkwvGu12o3AgX/5saH3jpgCUETTuJPZgM45KTI8HyOx73A5kd1maeLnUMUJ52LeXw87J ZN+vPDA5uSIcA5MRGJSQhbNmaBzBHr2qvHwrLaXGtvv1GAJncZUxVm2Are/thzvRabDO jxGbCqJavooA/K1o4Uz0fAUzUlqeLjr0Zygl448E+L2HArNMJQ4hhmRnapAl+SeQVw/6 Ykrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lCJECLEn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a6550cd000000b0050bf5a43800si4623668pgp.242.2023.04.14.07.50.14; Fri, 14 Apr 2023 07:50:32 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lCJECLEn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbjDNOmD (ORCPT + 99 others); Fri, 14 Apr 2023 10:42:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbjDNOmC (ORCPT ); Fri, 14 Apr 2023 10:42:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E140C144 for ; Fri, 14 Apr 2023 07:41:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9ABE0643D9 for ; Fri, 14 Apr 2023 14:41:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B5A8C433EF; Fri, 14 Apr 2023 14:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681483294; bh=rJzCROYUrVNKZPW1baUFYoh3TmF9NILst0eFGNQTQ9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lCJECLEnvwvN9AwufKSW1noktWGvbknphh4ZISEnW6p7dlCFQbVl5dG8WKE/yy7Vv mlKofDKvx8aCzM6ppASB/NkQyh1q/3d//mzMCmJBr4Bso2QW2RqNHN2hSDyMjk1hDf AMZHpCMuqhaC1znqyGM6kleZNT6RhbfMOsIidvT1uCB1nAM38rnZEcZ7kKX6ToCDYK TYwv/aRLu8XW0Rj/KG8tB7sd3q45dUczgw7d1hDuHsAouuXSNi5n5664J72W58M9MG ezVm1qIPEpeYhMksMnGJK9r84LQFdRGdDtWpqHvjsHUkfhZfBH3BJ3DrPDH5qPxMWr fpMQuDwuQpbwA== From: Will Deacon To: Robin Murphy Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, Jing Zhang , linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, ilkka@os.amperecomputing.com Subject: Re: [PATCH v2] perf/arm-cmn: Fix port detection for CMN-700 Date: Fri, 14 Apr 2023 15:38:38 +0100 Message-Id: <168147630105.2392292.8274353847304643416.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <71d129241d4d7923cde72a0e5b4c8d2f6084525f.1681295193.git.robin.murphy@arm.com> References: <71d129241d4d7923cde72a0e5b4c8d2f6084525f.1681295193.git.robin.murphy@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Wed, 12 Apr 2023 11:29:40 +0100, Robin Murphy wrote: > When the "extra device ports" configuration was first added, the > additional mxp_device_port_connect_info registers were added around the > existing mxp_mesh_port_connect_info registers. What I missed about > CMN-700 is that it shuffled them around to remove this discontinuity. > As such, tweak the definitions and factor out a helper for reading these > registers so we can deal with this discrepancy easily, which does at > least allow nicely tidying up the callsites. With this we can then also > do the nice thing and skip accesses completely rather than relying on > RES0 behaviour where we know the extra registers aren't defined. > > [...] Applied to will (for-next/perf), thanks! [1/1] perf/arm-cmn: Fix port detection for CMN-700 https://git.kernel.org/will/c/2ad91e44e6b0 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev