From patchwork Thu Jul 22 04:24:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathew McBride X-Patchwork-Id: 12392991 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 07544C6377C for ; Thu, 22 Jul 2021 04:28:51 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C9E9661244 for ; Thu, 22 Jul 2021 04:28:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C9E9661244 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=traverse.com.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=7qgsVCZ7ngzyhqncVO5fLsK900AsOQWw1DW5qZlH6r8=; b=Fz969LnNZ1gGCM 9xX4TrouAbpUQVk4gp7GDgMCNLit625EIGTTdEivaTxr9fNzQvL5bwVkFwYhs/d5BwZVTBjnhGXia mzXR8kuS+Wb2j48AqbrzDB6u1BreqeQfKst63JAZNuS52h6XALNtKDVMFPLinKpU0nsxOs0rvtyVD fHlGVOK1HX/UlBuvZS5qetLAXVPIectlAC78WOxyLBitsrkD8vodbwppDIbyxFeX3ow/EgyhXLMq2 5NkeM0pcD/1CzC8/hHE1TaZ1C+kL3guRjvOFkFL8kcwj9mOqu7cAq0Kp1kmeSZHfbJfMmjSkPc3sl jcZCtsi1/o0Nw2mdy+3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6QIK-000An2-Fz; Thu, 22 Jul 2021 04:26:48 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6QHw-000Aio-DW for linux-arm-kernel@lists.infradead.org; Thu, 22 Jul 2021 04:26:25 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E84DA5C01E3; Thu, 22 Jul 2021 00:26:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 22 Jul 2021 00:26:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traverse.com.au; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=bvHSmzBLvenTa xgVXhkOtqVZ879wzNNM44pHo8k3y7E=; b=hCN+z0YQJTKFnJzfxpYgHY3W3K8pd 31oQQogyyo8l4nZoSSy8p/zCxUvDyGt4wQqRhbDYOCdDFadSEfkALQgOWTy3v8Ip jFl1H+1e1CbJAuUxZaqBfyrSCEP5ddAZ5Mi/wDp0xQZC6OgUOXytRTmzmf9mjTu6 GHyOkucFS35sbVG1hQQJ4+fr+fQoEV8WkjbxC8L7XqzoTdhr6gR6ReFiAIAgQF5Q qu56E0LaHKzcxSm5h9Z6rNMcnolHzxPnOsQiRspFFR6Xa390J7c5ZdpffQHBe90u T+zI/07zzNUHtvB4YCbf6rAwgOZnY/dVTPqPcXezv6O6aql20qeXpiyDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=bvHSmzBLvenTaxgVXhkOtqVZ879wzNNM44pHo8k3y7E=; b=S7JlRNNA QMnXw2dB7qX5odKvfbFsVb9Mm2ftDZy6teejwoScN7YI404EA44wSB1BATlcbdr6 YHPIXNyWDov+wsAn1zj/Sbi2QVXfzQ+QbcRvmERJVGgAAoFZp86Jf5Cr94aMKaL+ 6CoZMZzcTG22nIKEMlXZ1UhzXDOFroC+GYZWA1G6aUbr8ICfBBOPhRQ3eJZ6WnVA e6uXc3Z2p9ftvLGSF6FPP3hi1JLnrfxKzH2iXbbGI2CeuYwHQW4xkkfXZTcRKKOQ T1rSV5RO3sMX1eIG4Mq2nhQJ6K8rvT6kx2LMnZtwr3FB+mmF2b1scbHFxE6ERlzt yYGQemjM/mt2KQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeehgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrthhhvgif ucfotgeurhhiuggvuceomhgrthhtsehtrhgrvhgvrhhsvgdrtghomhdrrghuqeenucggtf frrghtthgvrhhnpeekleevteelvdduheetgfdvfeelueekffeggeethedtteeljeeivedv gfehjeejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehmrghtthesthhrrghvvghrshgvrdgtohhmrdgruh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Jul 2021 00:26:19 -0400 (EDT) From: Mathew McBride To: Shawn Guo , Li Yang , Ioana Ciornei , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Mathew McBride Subject: [PATCH 2/5] arm64: dts: ls1088a: add missing PMU node Date: Thu, 22 Jul 2021 04:24:47 +0000 Message-Id: <20210722042450.11862-3-matt@traverse.com.au> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210722042450.11862-1-matt@traverse.com.au> References: <20210722042450.11862-1-matt@traverse.com.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210721_212624_620991_08793BDD X-CRM114-Status: UNSURE ( 9.60 ) 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 The Performance Manager Unit was not described in the DTS which meant performance event monitoring was not possible. This was exposed by a change to the PMU handling in KVM in 5.11-rc3 which now prevents a PMU being exposed to a guest when the host does not provide one: "KVM: arm64: Don't access PMCR_EL0 when no PMU is available" Signed-off-by: Mathew McBride --- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi index 79ceadc9dc4a..752c7f41e6b1 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi @@ -189,6 +189,11 @@ timer { <1 10 IRQ_TYPE_LEVEL_LOW>;/* Hypervisor PPI */ }; + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = <1 7 0x8>; /* PMU PPI, Level low type */ + }; + psci { compatible = "arm,psci-0.2"; method = "smc";