From patchwork Fri Feb 21 07:37:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 230630 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2CCDC35640 for ; Fri, 21 Feb 2020 08:46:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D487206DB for ; Fri, 21 Feb 2020 08:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582274777; bh=xn0c89TUYb91GwJwguGAuyRfda2/y67RUJKduA4/pk4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=bGkrss3NGmuLWhwkq8ed0FTnm4qT1R+dBOvXjk0eM6a5ly6hRtLrb3+G+iMLH++cW GCyqd0bDyJla6UvUiAmCq0CVOxRkvCUUUc3wl/BtDc2ur10lNXThd0HQapaaiewpxv OIr1fMXOyIqATDFemwJVnHzi6ST+LZ+3/rD7Y3dI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729221AbgBUHuQ (ORCPT ); Fri, 21 Feb 2020 02:50:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:47114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729101AbgBUHuQ (ORCPT ); Fri, 21 Feb 2020 02:50:16 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 102DF24650; Fri, 21 Feb 2020 07:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271415; bh=xn0c89TUYb91GwJwguGAuyRfda2/y67RUJKduA4/pk4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MpRc6k1T/FLVA9pzj8oIH6UekEhxfiREWmWx3QFlhK1kS1Pn/tKouQnl+YPBVLFTf lKhCLiFMMxd3KHyvDsxP08r3vuVCY0YZRB2vrJMYSEAbiN+bvO9E9yGuJajhTmZi5W 9QxdDXsdsvWFqu9FbktGG+4jSG35u+JYNyPuLSvg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andre Przywara , Maxime Ripard , Sasha Levin Subject: [PATCH 5.5 119/399] arm64: dts: allwinner: H6: Add PMU mode Date: Fri, 21 Feb 2020 08:37:24 +0100 Message-Id: <20200221072414.042546952@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Andre Przywara [ Upstream commit 7aa9b9eb7d6a8fde7acbe0446444f7e3fae1fe3b ] Add the Performance Monitoring Unit (PMU) device tree node to the H6 .dtsi, which tells DT users which interrupts are triggered by PMU overflow events on each core. The numbers come from the manual and have been checked in U-Boot and with perf in Linux. Tested with perf record and taskset on a Pine H64. Signed-off-by: Andre Przywara Signed-off-by: Maxime Ripard Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 29824081b43b0..24ffe2dcbddbf 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -70,6 +70,16 @@ clock-output-names = "ext_osc32k"; }; + pmu { + compatible = "arm,cortex-a53-pmu", + "arm,armv8-pmuv3"; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; + }; + psci { compatible = "arm,psci-0.2"; method = "smc";