Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp213138lqp; Fri, 12 Apr 2024 15:29:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTxABXhPX3+pHXI5leAuUH3xzcUA1n8fDx0ukGVhA15zJ6aRSiA3unFYsqqqmLYmhFxNMnAPeGa2MKXpWOxvZ37mTKv8fFzfDeN4g7RA== X-Google-Smtp-Source: AGHT+IG5WP8C3OSgG83JOjS6sdtlJeRFaByQItOc8ZWzsboBeq/dgPSYA6MSr8hkgMkDLZ95q6wY X-Received: by 2002:a05:690c:f0c:b0:618:da:e118 with SMTP id dc12-20020a05690c0f0c00b0061800dae118mr4557577ywb.49.1712960986520; Fri, 12 Apr 2024 15:29:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712960986; cv=pass; d=google.com; s=arc-20160816; b=IDThhPw6l7oS1vzW2Imqr81r8LMeLyFYRf6ikPBuVUtumZlhEl1SWhvpUERAmI+Wv5 YfzlYM4eW/7629m6toNaktfakMo/QLwL7n5H+Vd6qk7a7ZNG6Un1AFOwRLn0SsYW0Sh9 yezsf85O9YZwCdkeBLIlW8tJkZdc+Nn8bBU3BMFLXDLaZYzG3gSJ3CKhskkPssA1wKAM WqeRzNKWKH6qouhjghMe2zxEY02yENnRS0LO5so6nsD6gtQu+HPeGYHgXtF9dmgXoa7i WfmEQLAsJcfR+P+FFimR5YvGZg+HUO0Moxbb0RsgScPptCXKzqAH28njOOyNG3bGicKZ bmFg== 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=2cDz3u677AkrQuxypropRdPPIRZ9VIFjp8PeE77cf+o=; fh=sp9gtqiBSrjV2ZBierBbJUuN4kgGOnMBvc5iFzT7j7g=; b=XZlNbMxueR/tICrEcC5TSOvsGZ0KGx6uErA1JgNIwPMPpgMTumgNfk0DHnXLfwjNEo WNH2A6q03HF30gZtddi4N2P/BQAfX2L7hMl5mwC6u+Wu9HmloEwRIg4GPt//8ZdCWqTu Quhhsc+tRNak9Ewn4aE0jEcwSYt/rxmg+qA/JQEsBPbvlO+mBEJIqaCPfWvkf+ITQusb 3cvMo+KfqgDMeg1+9/m3FEzOedelPfunm0Az4Wyv8mXUAupm6MIU3fTvLvF6Uhp3/Cre lhapbGm/ysbYZB7avOuDdibXOedm4MdRk09kHgTZf35qeNCVSbSfP37yRuydiT24mOPB Js8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dAE9upkI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 7-20020a0562140dc700b0069b533e3530si4377762qvt.232.2024.04.12.15.29.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 15:29:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dAE9upkI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143409-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 352ED1C21C5B for ; Fri, 12 Apr 2024 22:29:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABC3515250A; Fri, 12 Apr 2024 22:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dAE9upkI" 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 D3EC6147C9A; Fri, 12 Apr 2024 22:29:38 +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=1712960978; cv=none; b=SPSznsa9v3a5fQy38aHcqeODSLgHT3ikrUPX85SQikk1EBSVzXqrz+EhaZoH4nY148MV4APchoDomtTgbWvQhruDKOo1kKJTN/j1yNyekpoIYtV8XyZzuqREII2jZpB79QJSbz5ts7LFr1hhOOpc7seDGZnmkn41m1+9l8+Zlpc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712960978; c=relaxed/simple; bh=HWlSNSzNydaMeQStEb5EXv5WktdHgAn9YeBEYdUC28c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Cr2+witxHuhga98gj1aMHElLzY8WDUSJ/LWBSGrUvcoWmpz7Tj4fFiSzp2VerjzG4HVCO3Va4yEa6Kg+cyrh8B5XfMr5S3hJMPxo7b5lfCc2yRmht/Fle97KAfJJ7gRGIEh2gNJ/4u4aHGxVk2FYL9mWtx7wwmi9xWFeg9+Pvss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dAE9upkI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36320C113CC; Fri, 12 Apr 2024 22:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712960978; bh=HWlSNSzNydaMeQStEb5EXv5WktdHgAn9YeBEYdUC28c=; h=From:To:Cc:Subject:Date:From; b=dAE9upkIAiJC1u+Yyml0Un2UD8dKUzvpPGNunaI8cO5+2Gaz492Rui8r0dDwODz1o ca5BjCEvGyomDqjplJrqB6R7cZ/kIf3deFjriQ0vY+oP1WYQ+Ie0AiP2HavpYMDFOC 2E7sQBImDPsroAikLHszoAlPPMfliWa/HVV4mlMwcR9Yk5xLzRTV+d2if5DXCOfSXY mm0Ie1zQBkmcQnwfCeEDJAyQxNWreYRJquHTcJTos/Z2o4PPYEtjVwKyxeWhO6MIrv wQ1J+r6j+qOWfHPTS78zCW1wFLs3ct9TvYHlxALawhEWxxt2Q/+Lp19Jd4NDML6P/n 4/BDZAhkl3gaw== From: Rob Herring To: Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: sprd: Split PMU nodes for heterogeneous CPUs Date: Fri, 12 Apr 2024 17:29:22 -0500 Message-ID: <20240412222923.3873814-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. Signed-off-by: Rob Herring --- arch/arm64/boot/dts/sprd/ums512.dtsi | 14 ++++++++++---- arch/arm64/boot/dts/sprd/ums9620.dtsi | 14 ++++++++++---- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/sprd/ums512.dtsi b/arch/arm64/boot/dts/sprd/ums512.dtsi index dbdb79f8e959..4c080df48724 100644 --- a/arch/arm64/boot/dts/sprd/ums512.dtsi +++ b/arch/arm64/boot/dts/sprd/ums512.dtsi @@ -136,16 +136,22 @@ timer { ; /* Hipervisor PPI */ }; - pmu { - compatible = "arm,armv8-pmuv3"; + pmu-a55 { + compatible = "arm,cortex-a55-pmu"; interrupts = , , , , , - , - , + ; + interrupt-affinity = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>, <&CPU4>, <&CPU5>; + }; + + pmu-a75 { + compatible = "arm,cortex-a75-pmu"; + interrupts = , ; + interrupt-affinity = <&CPU6>, <&CPU7>; }; soc: soc { diff --git a/arch/arm64/boot/dts/sprd/ums9620.dtsi b/arch/arm64/boot/dts/sprd/ums9620.dtsi index 2191f0a4811b..2458071320c9 100644 --- a/arch/arm64/boot/dts/sprd/ums9620.dtsi +++ b/arch/arm64/boot/dts/sprd/ums9620.dtsi @@ -144,16 +144,22 @@ timer { ; /* Hipervisor PPI */ }; - pmu { - compatible = "arm,armv8-pmuv3"; + pmu-a55 { + compatible = "arm,cortex-a55-pmu"; interrupts = , , , - , - , + ; + interrupt-affinity = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>; + }; + + pmu-a76 { + compatible = "arm,cortex-a76-pmu"; + interrupts = , , , ; + interrupt-affinity = <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>; }; soc: soc { -- 2.43.0