Received: by 10.223.185.116 with SMTP id b49csp2391328wrg; Mon, 12 Feb 2018 08:50:14 -0800 (PST) X-Google-Smtp-Source: AH8x225yuckrzEfXlm1AfM6BeC1AeqDFl47qxmVeCOstTHZ/kFtCsXHdmH3JvlTVKeyFRlAqP0YV X-Received: by 2002:a17:902:a589:: with SMTP id az9-v6mr10759618plb.298.1518454214357; Mon, 12 Feb 2018 08:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454214; cv=none; d=google.com; s=arc-20160816; b=bRgQDFQXwwu0oAlLK2vA/RtaJbAN3C8qQvUi386QPdw1QX7nsMMh7oiGUpgULTqoqq DSDq0fMW2ws/w8OaY2w13u3gtl0kE2YG5YRlErvRiONLXGNFpeRjK9jCdcYmAm1bGIue 4X6VtipJlaBRZYmmjUg0egycg3w4MpoqCw1nzZ30TcNSESpkF8EazueTneM2mI4059xv oS/xd7qYCZ8cTN5K4W0EVC5+Gz4DTK+KNHox6OZzT6SDKgkjr6X3au/Ldevn1LOlD0Lp j+IYTdWtpyEWVDPYJtt+dJ9pgqNJk5QR1JcCNYmAR+YjkfwYNZVsr1BhGo3SSHlbI7Ud bMNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=tUoY5o2aNNxljcFTLbJhZ6DPS69c5iBgwDdFjcWhM/8=; b=JkR3yPsBAwP1jt8FP0kw7eCZN/xLovZ9WRecU904c8yPHo4zlB3w8jLoZzB//EB2x7 Fx2vaNgaZoSP7ckqAAm7MioZhB6HdRT9hVLfbUha8N3zkHAWNCbxiAVdIZV+b87MVtLY j9yAwPy/jq6zAc/cIsIyaXZtAks4fo+ZAvrwpGjynMGS4d15UAiwqj2ONQdaZuSdyRgD 3vsBmsdL6Tz0FdtBMIA0xvyEVHNkqfdlRN8mvuKT+EC8rIYrLa0QR2aHylfMdPQ7iX4U w2MbOG4nz2++NCA0uWvUJ+1sEc102T7SaPC9XeGyUsrg7LvnSHhL5pmN3iGzRVkghGB0 5Y1w== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si1008446pge.270.2018.02.12.08.49.59; Mon, 12 Feb 2018 08:50:14 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933778AbeBLMjw (ORCPT + 99 others); Mon, 12 Feb 2018 07:39:52 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39222 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933358AbeBLMjv (ORCPT ); Mon, 12 Feb 2018 07:39:51 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 02C3A273050 From: Sebastian Reichel To: Shawn Guo , Sascha Hauer , Fabio Estevam , Will Deacon , Mark Rutland Cc: Russell King , Ian Ray , Nandor Han , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCHv4 0/2] Improved perf support for imx53/ppd Date: Mon, 12 Feb 2018 13:39:43 +0100 Message-Id: <20180212123945.15732-1-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.15.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This improves perf on imx53 by adding support for enabling the Secure Debug Enable Register (SDER) SUNIDEN bit. This unlocks new functionality: ppd before patchset# perf stat -e cycles,instructions sleep 1 2>&1 | grep instructions 0 instructions # 0.00 insn per cycle ppd after patchset# perf stat -e cycles,instructions sleep 1 2>&1 | grep instructions 177864 instructions # 0.05 insn per cycle Changes since PATCHV3: * Use readl_relaxed instead of __raw_readl (and the same for writel) * Drop final return in void function * Add Reviewed-by from Fabio to 2nd patch Changes since PATCHv2: * Always enable GPC_DBG_EN when kernel configuration allows using perf to allow cleanup of the arm-pmu driver. Changes since PATCHv1: * Update DTS patch to reference imx53.dtsi's pmu node * Remove a superfluous newline in first patch -- Sebastian Sebastian Reichel (2): ARM: imx53: add secure-reg-access support for PMU ARM: dts: imx53: PPD: Enable secure-reg-access arch/arm/boot/dts/imx53-ppd.dts | 4 ++++ arch/arm/boot/dts/imx53.dtsi | 2 +- arch/arm/mach-imx/mach-imx53.c | 39 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 43 insertions(+), 2 deletions(-) -- 2.15.1