From patchwork Mon Jun 12 17:16:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 13276997 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 B7188C7EE2F for ; Mon, 12 Jun 2023 17:17:10 +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=vNcPnrk9EL4GsT295521twilcyb9gdVgDNJLoD9aZhU=; b=jKS5GS4dtOwcix cMoJPMMTfDMjpuXDmRN5NJoPaHWBn7LdxrI77ZLc1fhH3Gp3o9HcYCPFPeH/Xyny5+wHxXZCFq7Rv o9GmBoJm1mpGg3exO6SyWlkb8qDPSmLcGcUAbMjdMeKedeWQG4dzKznQ+vqCVoLIdnd1TFk+okrLg b+fTsUJYsUf75Ucnd/ufuSg/iwoJv3xxQsUBfEcPcWZYUolfbx+bewtIp6v4bxXlBgdjnaj7r0Beh 8zPjSRv9knt2yoB7kIWBGAjXAQHB2i9aDHEIk9+Uq1cE2irHi7AD9tOM9lklySQgsu88n4EAm1FfI ax1hm0m4QMS73D72C+fQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q8l9u-004j9K-0v; Mon, 12 Jun 2023 17:16:50 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q8l9q-004j7n-1L for linux-arm-kernel@lists.infradead.org; Mon, 12 Jun 2023 17:16:48 +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 6712E1FB; Mon, 12 Jun 2023 10:17:25 -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 519EE3F5A1; Mon, 12 Jun 2023 10:16:39 -0700 (PDT) From: Robin Murphy To: will@kernel.org Cc: mark.rutland@arm.com, ilkka@os.amperecomputing.com, john.g.garry@oracle.com, renyu.zj@linux.alibaba.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] perf/arm-cmn: Identifier support Date: Mon, 12 Jun 2023 18:16:31 +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-20230612_101646_519396_6525E189 X-CRM114-Status: UNSURE ( 7.10 ) 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 Hi all, Following on from the disussion on Jing's proposal[1], I've had confirmation that we do actually have a reliable hardware identifier, so this mini-series does a bit of refactoring to wire that up and then expose a sysfs identifier based on it. Thanks, Robin. [1] https://lore.kernel.org/r/1685438374-33287-1-git-send-email-renyu.zj@linux.alibaba.com/ Robin Murphy (2): perf/arm-cmn: Revamp model detection perf/arm-cmn: Add sysfs identifier drivers/perf/arm-cmn.c | 165 +++++++++++++++++++++++++++-------------- 1 file changed, 109 insertions(+), 56 deletions(-)