Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4825658ybl; Wed, 22 Jan 2020 05:27:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwYHh8+XHbpX+W4fJu+rLzsbjilbVpm0Thz5s8s4Xs9xFfLXcUguOmkaK2+Lh7WwHYURTp6 X-Received: by 2002:aca:1a10:: with SMTP id a16mr6905655oia.9.1579699672519; Wed, 22 Jan 2020 05:27:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699672; cv=none; d=google.com; s=arc-20160816; b=pzjZd9p1kxaNjcROJtJfFlUk0VMeyJXT08251naSio2Kvq3dUw/V34ouaY4aMWBGFM WF/bgTwTcctCR8vE71s5Ugyz5H/JB6Swz09LiGTtySGG+qS9Q+CRZgPX7PJetctSTB6E 92kYNGDjaxzuZTe7yr0ISxseHHuZKiiRwkQy3UoHZTJsGX5xmQMQCeSZZv5SFGxFiBu2 XEeChLlmYZegmNHaeOqRsVBsAL9iG2DhwcVvEj2JXCTKc4TCHcjWSpg8vL4ooCOOKblt RarMIc0q/N7Hdb4dISyZLTHjhpMIqQnKce3QGmASwVGfVexnDJJYvIByhLKRpIzgQWGO J/fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XqPno62xvgP5y7MIHDzFeirv9jqQYz3f0ObX8yXXHpQ=; b=eNaizuWLNdazeCLH9fVgu3tdF+Vo0aJhh095wF7BrnKxR4v3beziL9Hcm3SwbJtY7y VjlsW2/kAx6sW1P6IZiPCtBAugYGJ7WZCySvZip2Zqpbgfi+gnfVrSXn6maNagiR8Zwm aTnDQoD7EaFJOqMABak/txGUJ7PAYvy0apBk2niWc+xiWnafK8aXwEIk+hg+J+/fRhK8 m0YSHbjGLVE196x/d42n3Fn7nI6FtIZbTvekhcDJaUcaNyERh7XdRrwKt5OrAJzd2zBU C7s1WAmBV+rUsmUnMh+wZxf8+OhWetwcqTj17NzwqhdbOovolONdIDAvhM3CsB2ONO3e cAGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="gz/xk4UU"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9si21288235oie.74.2020.01.22.05.27.40; Wed, 22 Jan 2020 05:27:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="gz/xk4UU"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731062AbgAVN0w (ORCPT + 99 others); Wed, 22 Jan 2020 08:26:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:47950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730716AbgAVN0v (ORCPT ); Wed, 22 Jan 2020 08:26:51 -0500 Received: from localhost (unknown [84.241.205.26]) (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 E778F2467F; Wed, 22 Jan 2020 13:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699610; bh=wjfFf6SBVt8xyoOx7ZZmse5Y7YB8YDW3SDtkpCvNTZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gz/xk4UUFE+YxgP/9PMgoPQ0Ht1sEeas/ePxp+84siOJ/aJzq0Uc1O9j1MqDZRgj7 0MP75ZdLine6tYk9mZZNuBm/jsnYDGrh1h7n41e5pD19vLfxQCKZe53eqCnB+o27FC nN9EcgdFb8WrVD/Awejrgh6DScS7syUrVgXiFxkk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andre Przywara , Maxime Ripard Subject: [PATCH 5.4 188/222] arm64: dts: allwinner: a64: Re-add PMU node Date: Wed, 22 Jan 2020 10:29:34 +0100 Message-Id: <20200122092847.146268171@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andre Przywara commit 6b832a148717f1718f57805a9a4aa7f092582d15 upstream. As it was found recently, the Performance Monitoring Unit (PMU) on the Allwinner A64 SoC was not generating (the right) interrupts. With the SPI numbers from the manual the kernel did not receive any overflow interrupts, so perf was not happy at all. It turns out that the numbers were just off by 4, so the PMU interrupts are from 148 to 151, not from 152 to 155 as the manual describes. This was found by playing around with U-Boot, which typically does not use interrupts, so the GIC is fully available for experimentation: With *every* PPI and SPI enabled, an overflowing PMU cycle counter was found to set a bit in one of the GICD_ISPENDR registers, with careful counting this was determined to be number 148. Tested with perf record and perf top on a Pine64-LTS. Also tested with tasksetting to every core to confirm the assignment between IRQs and cores. This somewhat "revert-fixes" commit ed3e9406bcbc ("arm64: dts: allwinner: a64: Drop PMU node"). Fixes: 34a97fcc71c2 ("arm64: dts: allwinner: a64: Add PMU node") Fixes: ed3e9406bcbc ("arm64: dts: allwinner: a64: Drop PMU node") Signed-off-by: Andre Przywara Signed-off-by: Maxime Ripard Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -142,6 +142,15 @@ clock-output-names = "ext-osc32k"; }; + pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; + }; + psci { compatible = "arm,psci-0.2"; method = "smc";