Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp885722lqb; Wed, 17 Apr 2024 13:47:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUroCqT8bZXm50sIRtcF0gLgHa/lp21yVEFMikuwgygKpMPwGnkxBhSzfbfutUIFjgTsBfa4P73HqTqkdN/ASMkMunBhd2+EFU6SW3KKg== X-Google-Smtp-Source: AGHT+IFOPD2WLynzYHTCv7xuyEXLC0vCyJFP/j8/UfVFPBDftPI9V/gh/Xks4gYQRnoHCiUv/bgl X-Received: by 2002:a9d:63d0:0:b0:6ea:19af:6c8a with SMTP id e16-20020a9d63d0000000b006ea19af6c8amr621896otl.10.1713386839486; Wed, 17 Apr 2024 13:47:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713386839; cv=pass; d=google.com; s=arc-20160816; b=CNGh0Ph5FCO7hp4sHXJCelM9xfx0OW0C+rPkP953u/TX1U/+ggzb/oIZhVnrCAW1j9 WYZV/MkNBqogwURPHDuAXjiRqG0HZIgWL8Orylz3rMo0cGUdXCZfArkNq5tXUXFCQVQi Z6XGxea52OOOiTnI28QZ6By+M4crYgHubbAGyPx3iT9cR+75avJWTfDur7LeCjZTw+tb nCvoB7469da/kI1nEDplfb1rk7HsztmKj6MARjNeHvHz8lSTDxrlrsK1droV6qzAH3Rw lhKpSr6n8sF3fKDxKGpj82wnYD9Unfz1qIyWSvfGFT47FIX5zAGjB3XSLb9yocDPZt3X MSEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=DQHwLiaieiBZq5rXB0oxIr5/jNTZD2jaKxe0cqrYR/g=; fh=n2QFBC34Mp6HjKCH1xPGvOejv5ZRA5F/dwojxHz8+2k=; b=XFXNMPLoD31eqyp4KosXUOMi6g6HIpbGYIand80va3w9G7pOZSo1B/INXuMW6SfTUY qFlB5EzlI4X0AEkXqSyOaLl3uNS3EX12dFbJyXGWtswuJNJA4C9gb2UfzLYgvOZlMhq9 eyWmmaD3lvWahIKR2DG9DLboe7tczusegBLSkF2OMEcPuvlTIJSYyYW8a7ZLgR4HZEVr s6nIZ28nu4m+gT8t+ZqlTSsufU8lOQa2edn0LFWWe/16u50rplZzwLjn9lm1cNUJm7ke FAs1tY5UK05Du58xQ1iXFTyjRqIrObHdTY6hncDK6o+1yA/mDoHgS2PMWM/SC/wIRCqJ 72NA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JbETSj3/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o17-20020a63f151000000b005dc80a2a308si31405pgk.436.2024.04.17.13.47.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 13:47:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JbETSj3/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A48B8B24353 for ; Wed, 17 Apr 2024 20:44:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C16E4AEE1; Wed, 17 Apr 2024 20:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JbETSj3/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C34D482DB; Wed, 17 Apr 2024 20:44:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713386644; cv=none; b=BO6+eiSczAy1tk0y5mDfAjcjgCobVHJ5RyPAd9xBk0AXQ36ILpfJyFldPv4liQwvIWADLL+LOKdZpnzmtMbPrHYX9HtjAf2VTsaWUgKx3G6OFdEHRGoJ8JmcnqbmpsqLzERLdsS+hXXLz8mi0qAy0LfyRbmRMP3ROpGxBjo4qdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713386644; c=relaxed/simple; bh=kwQCOEyx8WgKKzp5TIPczdJokZvo1f/Y6NjVRYtqmoE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A2b5CNq5mjK7BBn4AKSMOQJ6bZGSmVg9Lqbcf3wJTxsBaIcph+0AXivchLUhmWP8nB0UIsc3CceZ0vl3WVdXnFcuq2EgaGDP4J/QFcrVDEe2bUexsqTBW85cAQ4yrKWSfwngYc5yC62azN2V3skHdxXPYDsyl2Kf/9ra7bNWl5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JbETSj3/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D32EDC072AA; Wed, 17 Apr 2024 20:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713386644; bh=kwQCOEyx8WgKKzp5TIPczdJokZvo1f/Y6NjVRYtqmoE=; h=From:To:Cc:Subject:Date:From; b=JbETSj3/hwG3TIlJnRp4y25EpNmD0EVtcr5WHW/9OfkUihih4dpt/n22fw3ZLEUEx tRc85ZU4RVMpiVxoNYg6FM7hgRPD2JtnLtXejkZCZ2o3rbbD6IHYdylUGPwBZJpWD0 57yCHZmqUCfiWsOcoSGIfZdFubtuqKMnTUVztBNrbXHGt04sHKiR0WpUK5Kr1hpjG1 9vCZmNodoUHdTwRzdijEa0oG0VvSP0hVFJ2XQ4oUf910D0kU367dfqCnBXO5U2EvvG wNhNM5xu3mglemDS/j2PDJors0u2tFouQatzbbRJq7P00zxbrd9MWZYQ1oKjQgmIZD OVbxivAJHDcvw== From: "Rob Herring (Arm)" To: Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley Cc: Dmitry Baryshkov , Xilin Wu , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: qcom: Split PMU nodes for heterogeneous CPUs Date: Wed, 17 Apr 2024 15:42:46 -0500 Message-ID: <20240417204247.3216703-1-robh@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Arm heterogeneous configurations should have separate PMU nodes for each CPU uarch as the uarch specific events can be different. The "arm,armv8-pmuv3" compatible is also intended for s/w models rather than specific uarch implementations. All the kryo CPUs are missing PMU compatibles, so they can't be fixed. Signed-off-by: Rob Herring (Arm) --- v2: - Drop old 'pmu' node in msm8976 - sm8550 should be A715, not A720 --- arch/arm64/boot/dts/qcom/msm8956.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/msm8976.dtsi | 12 +++++++++--- arch/arm64/boot/dts/qcom/sm4450.dtsi | 11 ++++++++--- arch/arm64/boot/dts/qcom/sm8350.dtsi | 14 ++++++++++++-- arch/arm64/boot/dts/qcom/sm8550.dtsi | 19 +++++++++++++++++-- arch/arm64/boot/dts/qcom/sm8650.dtsi | 14 ++++++++++++-- 6 files changed, 60 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8956.dtsi b/arch/arm64/boot/dts/qcom/msm8956.dtsi index 668e05185c21..fa36b62156bb 100644 --- a/arch/arm64/boot/dts/qcom/msm8956.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8956.dtsi @@ -8,8 +8,8 @@ #include "msm8976.dtsi" -&pmu { - interrupts = ; +&pmu_a72 { + interrupts = ; }; &tsens { diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index d2bb1ada361a..3b2962aad20d 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -222,11 +222,17 @@ memory@80000000 { reg = <0x0 0x80000000 0x0 0x0>; }; - pmu: pmu { - compatible = "arm,armv8-pmuv3"; - interrupts = ; + pmu-a53 { + compatible = "arm,cortex-a53-pmu"; + interrupts = ; }; + pmu_a72: pmu-a72 { + compatible = "arm,cortex-a72-pmu"; + interrupts = ; + }; + + psci { compatible = "arm,psci-1.0"; method = "smc"; diff --git a/arch/arm64/boot/dts/qcom/sm4450.dtsi b/arch/arm64/boot/dts/qcom/sm4450.dtsi index 603c962661cc..411eb7577407 100644 --- a/arch/arm64/boot/dts/qcom/sm4450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm4450.dtsi @@ -268,9 +268,14 @@ memory@a0000000 { reg = <0x0 0xa0000000 0x0 0x0>; }; - pmu { - compatible = "arm,armv8-pmuv3"; - interrupts = ; + pmu-a55 { + compatible = "arm,cortex-a55-pmu"; + interrupts = ; + }; + + pmu-a78 { + compatible = "arm,cortex-a78-pmu"; + interrupts = ; }; psci { diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index a5e7dbbd8c6c..127fa9a935da 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -300,8 +300,18 @@ memory@80000000 { reg = <0x0 0x80000000 0x0 0x0>; }; - pmu { - compatible = "arm,armv8-pmuv3"; + pmu-a55 { + compatible = "arm,cortex-a55-pmu"; + interrupts = ; + }; + + pmu-a78 { + compatible = "arm,cortex-a78-pmu"; + interrupts = ; + }; + + pmu-x1 { + compatible = "arm,cortex-x1-pmu"; interrupts = ; }; diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 3904348075f6..d1c0b2d2123b 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -357,8 +357,23 @@ memory@a0000000 { reg = <0 0xa0000000 0 0>; }; - pmu { - compatible = "arm,armv8-pmuv3"; + pmu-a510 { + compatible = "arm,cortex-a510-pmu"; + interrupts = ; + }; + + pmu-a710 { + compatible = "arm,cortex-a710-pmu"; + interrupts = ; + }; + + pmu-a715 { + compatible = "arm,cortex-a715-pmu"; + interrupts = ; + }; + + pmu-x3 { + compatible = "arm,cortex-x3-pmu"; interrupts = ; }; diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index ba72d8f38420..90102a41489d 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -394,8 +394,18 @@ memory@a0000000 { reg = <0 0xa0000000 0 0>; }; - pmu { - compatible = "arm,armv8-pmuv3"; + pmu-a520 { + compatible = "arm,cortex-a520-pmu"; + interrupts = ; + }; + + pmu-a720 { + compatible = "arm,cortex-a720-pmu"; + interrupts = ; + }; + + pmu-x4 { + compatible = "arm,cortex-x4-pmu"; interrupts = ; }; -- 2.43.0