From patchwork Fri Oct 20 17:51:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 13430993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A819DC001DF for ; Fri, 20 Oct 2023 17:52:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dphN1Q2oxGWqrIOdT0UYrYkqZg3fm9zBeXwFT/SC9vU=; b=DYh4jZS2K+h44y qNyKfAwDgHRBOrI4k6JqhKLIiPWFyeHeljlTKMKYuuD5BKPDWPHqbWY1mZdz4+TK7TMOqIRVqHwW7 QGjCe6K43Cn7dOSWVxCdV0d0JR1BmVi4hL40MBKrr75wG4gYNJQRhInJpWOIylwJDysTc75WfpUuz itRcX6/6Ou8NWG27fRNIQc0KA92Onlrg6QEvtMdgpSeUbllN7Y54oxjyubvL4iiA48Aj0IivH40zo oGOVO4Gmkk2C+o7cjQqBHE3uc8QvEt2T4+h60jjjkdZKIwSdoiSnsYNiP9fnCuWlsM3JNU+fVOgU1 VOSAg/Lxx7pyfU+SOjhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qttes-002nQc-2C; Fri, 20 Oct 2023 17:51:38 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qttep-002nOy-2u for linux-arm-kernel@lists.infradead.org; Fri, 20 Oct 2023 17:51:37 +0000 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 71747143D; Fri, 20 Oct 2023 10:52:13 -0700 (PDT) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8360E3F762; Fri, 20 Oct 2023 10:51:31 -0700 (PDT) From: Robin Murphy To: will@kernel.org Cc: mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jeremy.linton@arm.com, ilkka@os.amperecomputing.com, renyu.zj@linux.alibaba.com Subject: [PATCH 0/3] perf/arm-cmn: Multi-DTC improvements Date: Fri, 20 Oct 2023 18:51:24 +0100 Message-Id: X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231020_105135_982062_B806A4BA X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On larger CMN configurations with multiple Debug & Trace Controllers, we've so far ignored the notion of DTC domains, mostly since they were not software-discoverable in the original CMN-600 design. However this means that if the user wants to monitor lots of individual nodes across the whole mesh, we end up multiplexing events which could otherwise happily run in parallel if we allocated DTC counters per-domain. This mini-series finally bites the bullet to do that. As usual I've only been able to personally test that it doesn't regress any behaviour on a single-DTC CMN-600, so it would be nice if anyone with a multi-domain CMN-650/CMN-700 setup could confirm that patches 1+2 alone do not visibly change any behaviour, and then patch #3 on top works as expected. Thanks, Robin. Robin Murphy (3): perf/arm-cmn: Fix DTC domain detection perf/arm-cmn: Rework DTC counters (again) perf/arm-cmn: Enable per-DTC counter allocation drivers/perf/arm-cmn.c | 154 +++++++++++++++++++++++------------------ 1 file changed, 85 insertions(+), 69 deletions(-)